package core.stlmes.server.sale.service.balance;

import java.util.Collection;
import java.util.Collections;

public class SlmInvoiceKey
{
	private String Buyercode = "";
	private String Ord_no = "";
	private String Spetkey = "";
	private String Steelcodekey = "";
	private String Price = "";

	public String getBuyercode()
	{
		return Buyercode;
	}

	public void setBuyercode(String buyercode)
	{
		Buyercode = buyercode;
	}

	public String getOrd_no()
	{
		return Ord_no;
	}

	public void setOrd_no(String ordNo)
	{
		Ord_no = ordNo;
	}

	public String getSpetkey()
	{
		return Spetkey;
	}

	public void setSpetkey(String spetkey)
	{
		Spetkey = spetkey;
	}

	public String getSteelcodekey()
	{
		return Steelcodekey;
	}

	public void setSteelcodekey(String steelcodekey)
	{
		Steelcodekey = steelcodekey;
	}

	public String getPrice()
	{
		return Price;
	}

	public void setPrice(String price)
	{

		Price = price;
	}

	public boolean equals(Object obj)
	{

		if (! (obj instanceof SlmInvoiceKey )) return false;
		SlmInvoiceKey obj1 = ( SlmInvoiceKey)obj;
		return (this.getBuyercode() + this.getOrd_no() + this.getSpetkey()
				+ this.getSteelcodekey() + this.getPrice() ).equals(obj1
				.getBuyercode()
				+ obj1.getOrd_no()
				+ obj1.getSpetkey()
				+ obj1.getSteelcodekey()
				+ obj1.getPrice());

	}

	public String toString()
	{
		return this.getBuyercode() + this.getOrd_no() + this.getSpetkey()
				+ this.getSteelcodekey() + this.getPrice();
	}

}
