package core.stlmes.server.sale.po;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;

public class SlmOrderPriceListBean
{
	private String Price_no = "";
	private String Ord_ln_pk = "";
	private Double Out_price = 0.0;
	private Double Bla_price = 0.0;
	private Double Trs_price = 0.0;
	private Double Pak_price = 0.0;
	private Double Price_1 = 0.0;
	private Double Price_2 = 0.0;
	private Double Price_3 = 0.0;
	private Double Price_4 = 0.0;
	private Double Price_5 = 0.0;
	private Double Price_6 = 0.0;
	private String Create_name = "";
	private java.util.Date Create_time = null;
	private String Update_name = "";
	private java.util.Date Update_time = null;
	private String Delete_name = "";
	private java.util.Date Delete_time = null;

	public String getPrice_no()
	{
		return Price_no;
	}

	public void setPrice_no(String priceNo)
	{
		Price_no = priceNo;
	}

	public String getOrd_ln_pk()
	{
		return Ord_ln_pk;
	}

	public void setOrd_ln_pk(String ordLnPk)
	{
		Ord_ln_pk = ordLnPk;
	}

	public Double getOut_price()
	{
		return Out_price;
	}

	public void setOut_price(Double outPrice)
	{
		Out_price = outPrice;
	}

	public Double getBla_price()
	{
		return Bla_price;
	}

	public void setBla_price(Double blaPrice)
	{
		Bla_price = blaPrice;
	}

	public Double getTrs_price()
	{
		return Trs_price;
	}

	public void setTrs_price(Double trsPrice)
	{
		Trs_price = trsPrice;
	}

	public Double getPak_price()
	{
		return Pak_price;
	}

	public void setPak_price(Double pakPrice)
	{
		Pak_price = pakPrice;
	}

	public Double getPrice_1()
	{
		return Price_1;
	}

	public void setPrice_1(Double price_1)
	{
		Price_1 = price_1;
	}

	public Double getPrice_2()
	{
		return Price_2;
	}

	public void setPrice_2(Double price_2)
	{
		Price_2 = price_2;
	}

	public Double getPrice_3()
	{
		return Price_3;
	}

	public void setPrice_3(Double price_3)
	{
		Price_3 = price_3;
	}

	public Double getPrice_4()
	{
		return Price_4;
	}

	public void setPrice_4(Double price_4)
	{
		Price_4 = price_4;
	}

	public Double getPrice_5()
	{
		return Price_5;
	}

	public void setPrice_5(Double price_5)
	{
		Price_5 = price_5;
	}

	public Double getPrice_6()
	{
		return Price_6;
	}

	public void setPrice_6(Double price_6)
	{
		Price_6 = price_6;
	}

	public String getCreate_name()
	{
		return Create_name;
	}

	public void setCreate_name(String createName)
	{
		Create_name = createName;
	}

	public java.util.Date getCreate_time()
	{
		return Create_time;
	}

	public void setCreate_time(java.util.Date createTime)
	{
		Create_time = createTime;
	}

	public String getUpdate_name()
	{
		return Update_name;
	}

	public void setUpdate_name(String updateName)
	{
		Update_name = updateName;
	}

	public java.util.Date getUpdate_time()
	{
		return Update_time;
	}

	public void setUpdate_time(java.util.Date updateTime)
	{
		Update_time = updateTime;
	}

	public String getDelete_name()
	{
		return Delete_name;
	}

	public void setDelete_name(String deleteName)
	{
		Delete_name = deleteName;
	}

	public java.util.Date getDelete_time()
	{
		return Delete_time;
	}

	public void setDelete_time(java.util.Date deleteTime)
	{
		Delete_time = deleteTime;
	}

	public static List<SlmOrderPriceListBean> convertResultSetToBeanList(
			ResultSet set) throws SQLException
	{
		List<SlmOrderPriceListBean> listbean = new ArrayList<SlmOrderPriceListBean>();
		SlmOrderPriceListBean bean = null;

		while (set.next())
		{
			bean = new SlmOrderPriceListBean();
			try
			{
				bean.setPrice_no(( String)set.getObject("PRICE_NO"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setOrd_ln_pk(( String)set.getObject("ORD_LN_PK"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setOut_price( (( java.math.BigDecimal)set
						.getObject("OUT_PRICE") ).doubleValue());
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setBla_price( (( java.math.BigDecimal)set
						.getObject("BLA_PRICE") ).doubleValue());
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setTrs_price( (( java.math.BigDecimal)set
						.getObject("TRS_PRICE") ).doubleValue());
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setPak_price( (( java.math.BigDecimal)set
						.getObject("PAK_PRICE") ).doubleValue());
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setPrice_1( (( java.math.BigDecimal)set
						.getObject("PRICE_1") ).doubleValue());
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setPrice_2( (( java.math.BigDecimal)set
						.getObject("PRICE_2") ).doubleValue());
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setPrice_3( (( java.math.BigDecimal)set
						.getObject("PRICE_3") ).doubleValue());
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setPrice_4( (( java.math.BigDecimal)set
						.getObject("PRICE_4") ).doubleValue());
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setPrice_5( (( java.math.BigDecimal)set
						.getObject("PRICE_5") ).doubleValue());
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setPrice_6( (( java.math.BigDecimal)set
						.getObject("PRICE_6") ).doubleValue());
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setCreate_name(( String)set.getObject("CREATE_NAME"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setCreate_time(( java.util.Date)set
						.getObject("CREATE_TIME"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setUpdate_name(( String)set.getObject("UPDATE_NAME"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setUpdate_time(( java.util.Date)set
						.getObject("UPDATE_TIME"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setDelete_name(( String)set.getObject("DELETE_NAME"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setDelete_time(( java.util.Date)set
						.getObject("DELETE_TIME"));
			}
			catch (java.lang.Exception ex)
			{
			}
			listbean.add(bean);
		}

		try
		{
			set.close();

		}
		catch (java.lang.Exception ex)
		{
		}
		return (listbean.size() == 0 ) ? null : listbean;
	}

	public static SlmOrderPriceListBean convertHashMapToBean(HashMap hs)
	{
		SlmOrderPriceListBean bean = new SlmOrderPriceListBean();
		try
		{
			bean.setPrice_no(( String)hs.get("PRICE_NO"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setOrd_ln_pk(( String)hs.get("ORD_LN_PK"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setOut_price(( Double)hs.get("OUT_PRICE"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setBla_price(( Double)hs.get("BLA_PRICE"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setTrs_price(( Double)hs.get("TRS_PRICE"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setPak_price(( Double)hs.get("PAK_PRICE"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setPrice_1(( Double)hs.get("PRICE_1"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setPrice_2(( Double)hs.get("PRICE_2"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setPrice_3(( Double)hs.get("PRICE_3"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setPrice_4(( Double)hs.get("PRICE_4"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setPrice_5(( Double)hs.get("PRICE_5"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setPrice_6(( Double)hs.get("PRICE_6"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setCreate_name(( String)hs.get("CREATE_NAME"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setCreate_time(( java.util.Date)hs.get("CREATE_TIME"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setUpdate_name(( String)hs.get("UPDATE_NAME"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setUpdate_time(( java.util.Date)hs.get("UPDATE_TIME"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setDelete_name(( String)hs.get("DELETE_NAME"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setDelete_time(( java.util.Date)hs.get("DELETE_TIME"));
		}
		catch (java.lang.Exception ex)
		{
		}
		return bean;
	}

}
