package core.stlmes.server.sale.po.fund;

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

public class SelFundPactFundUseDetailBean
{
	private String Trans_seq = "";
	private String Trans_type = "";
	private String Balancesubject = "";
	private String Buyercode = "";
	private String Secondaccount = "";
	private String Pactno = "";
	private String Askplan_id = "";
	private Double Weight = 0.0;
	private Double Money = 0.0;
	private Double Askplan_money = 0.0;
	private Double Trans_money = 0.0;
	private java.util.Date Trans_time = null;
	private String Ismoneyvalid = "";
	private String Trans_person = "";
	private String Remark = "";
	private java.util.Date Updatetime = null;

	public String getTrans_seq()
	{
		return Trans_seq;
	}

	public void setTrans_seq(String transSeq)
	{
		Trans_seq = transSeq;
	}

	public String getTrans_type()
	{
		return Trans_type;
	}

	public void setTrans_type(String transType)
	{
		Trans_type = transType;
	}

	public String getBalancesubject()
	{
		return Balancesubject;
	}

	public void setBalancesubject(String balancesubject)
	{
		Balancesubject = balancesubject;
	}

	public String getBuyercode()
	{
		return Buyercode;
	}

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

	public String getSecondaccount()
	{
		return Secondaccount;
	}

	public void setSecondaccount(String secondaccount)
	{
		Secondaccount = secondaccount;
	}

	public String getPactno()
	{
		return Pactno;
	}

	public void setPactno(String pactno)
	{
		Pactno = pactno;
	}

	public String getAskplan_id()
	{
		return Askplan_id;
	}

	public void setAskplan_id(String askplanId)
	{
		Askplan_id = askplanId;
	}

	public Double getWeight()
	{
		return Weight;
	}

	public void setWeight(Double weight)
	{
		Weight = weight;
	}

	public Double getMoney()
	{
		return Money;
	}

	public void setMoney(Double money)
	{
		Money = money;
	}

	public Double getAskplan_money()
	{
		return Askplan_money;
	}

	public void setAskplan_money(Double askplanMoney)
	{
		Askplan_money = askplanMoney;
	}

	public Double getTrans_money()
	{
		return Trans_money;
	}

	public void setTrans_money(Double transMoney)
	{
		Trans_money = transMoney;
	}

	public java.util.Date getTrans_time()
	{
		return Trans_time;
	}

	public void setTrans_time(java.util.Date transTime)
	{
		Trans_time = transTime;
	}

	public String getIsmoneyvalid()
	{
		return Ismoneyvalid;
	}

	public void setIsmoneyvalid(String ismoneyvalid)
	{
		Ismoneyvalid = ismoneyvalid;
	}

	public String getTrans_person()
	{
		return Trans_person;
	}

	public void setTrans_person(String transPerson)
	{
		Trans_person = transPerson;
	}

	public String getRemark()
	{
		return Remark;
	}

	public void setRemark(String remark)
	{
		Remark = remark;
	}

	public java.util.Date getUpdatetime()
	{
		return Updatetime;
	}

	public void setUpdatetime(java.util.Date updatetime)
	{
		Updatetime = updatetime;
	}

	public static SelFundPactFundUseDetailBean convertHashMapToBean(HashMap hs)
	{
		SelFundPactFundUseDetailBean bean = new SelFundPactFundUseDetailBean();
		try
		{
			bean.setTrans_seq(( String)hs.get("TRANS_SEQ"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setTrans_type(( String)hs.get("TRANS_TYPE"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setBalancesubject(( String)hs.get("BALANCESUBJECT"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setBuyercode(( String)hs.get("BUYERCODE"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setSecondaccount(( String)hs.get("SECONDACCOUNT"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setPactno(( String)hs.get("PACTNO"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setAskplan_id(( String)hs.get("ASKPLAN_ID"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setWeight(( Double)hs.get("WEIGHT"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setMoney(( Double)hs.get("MONEY"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setAskplan_money(( Double)hs.get("ASKPLAN_MONEY"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setTrans_money(( Double)hs.get("TRANS_MONEY"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setTrans_time(( java.util.Date)hs.get("TRANS_TIME"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setIsmoneyvalid(( String)hs.get("ISMONEYVALID"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setTrans_person(( String)hs.get("TRANS_PERSON"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setRemark(( String)hs.get("REMARK"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setUpdatetime(( java.util.Date)hs.get("UPDATETIME"));
		}
		catch (java.lang.Exception ex)
		{
		}
		return bean;
	}

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

		while (set.next())
		{
			bean = new SelFundPactFundUseDetailBean();
			try
			{
				bean.setTrans_seq(( String)set.getObject("TRANS_SEQ"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setTrans_type(( String)set.getObject("TRANS_TYPE"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean
						.setBalancesubject(( String)set
								.getObject("BALANCESUBJECT"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setBuyercode(( String)set.getObject("BUYERCODE"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setSecondaccount(( String)set.getObject("SECONDACCOUNT"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setPactno(( String)set.getObject("PACTNO"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setAskplan_id(( String)set.getObject("ASKPLAN_ID"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean
						.setWeight( (( java.math.BigDecimal)set
								.getObject("WEIGHT") ).doubleValue());
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setMoney( (( java.math.BigDecimal)set.getObject("MONEY") )
						.doubleValue());
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setAskplan_money( (( java.math.BigDecimal)set
						.getObject("ASKPLAN_MONEY") ).doubleValue());
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setTrans_money( (( java.math.BigDecimal)set
						.getObject("TRANS_MONEY") ).doubleValue());
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean
						.setTrans_time(( java.util.Date)set
								.getObject("TRANS_TIME"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setIsmoneyvalid(( String)set.getObject("ISMONEYVALID"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setTrans_person(( String)set.getObject("TRANS_PERSON"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setRemark(( String)set.getObject("REMARK"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean
						.setUpdatetime(( java.util.Date)set
								.getObject("UPDATETIME"));
			}
			catch (java.lang.Exception ex)
			{
			}
			listbean.add(bean);
		}

		try
		{
			set.close();

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

}
