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 SelFundCustFundInoutBean
{
	private String Busiseq = "";
	private String Balancesubject = "";
	private String Buyercode = "";
	private Double Inoutmoney = 0.0;
	private java.util.Date Inouttime = null;
	private String Fundtype = "";
	private String Billno = "";
	private String Isvalid = "";
	private String Remark = "";
	private String Importor = "";
	private java.util.Date Importtime = null;
	private Double Leavemoney = 0.0;

	public String getBusiseq()
	{
		return Busiseq;
	}

	public void setBusiseq(String busiseq)
	{
		Busiseq = busiseq;
	}

	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 Double getInoutmoney()
	{
		return Inoutmoney;
	}

	public void setInoutmoney(Double inoutmoney)
	{
		Inoutmoney = inoutmoney;
	}

	public java.util.Date getInouttime()
	{
		return Inouttime;
	}

	public void setInouttime(java.util.Date inouttime)
	{
		Inouttime = inouttime;
	}

	public String getFundtype()
	{
		return Fundtype;
	}

	public void setFundtype(String fundtype)
	{
		Fundtype = fundtype;
	}

	public String getBillno()
	{
		return Billno;
	}

	public void setBillno(String billno)
	{
		Billno = billno;
	}

	public String getIsvalid()
	{
		return Isvalid;
	}

	public void setIsvalid(String isvalid)
	{
		Isvalid = isvalid;
	}

	public String getRemark()
	{
		return Remark;
	}

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

	public String getImportor()
	{
		return Importor;
	}

	public void setImportor(String importor)
	{
		Importor = importor;
	}

	public java.util.Date getImporttime()
	{
		return Importtime;
	}

	public void setImporttime(java.util.Date importtime)
	{
		Importtime = importtime;
	}

	public Double getLeavemoney()
	{
		return Leavemoney;
	}

	public void setLeavemoney(Double leavemoney)
	{
		Leavemoney = leavemoney;
	}

	public static SelFundCustFundInoutBean convertHashMapToBean(HashMap hs)
	{
		SelFundCustFundInoutBean bean = new SelFundCustFundInoutBean();
		try
		{
			bean.setBusiseq(( String)hs.get("BUSISEQ"));
		}
		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.setInoutmoney(( Double)hs.get("INOUTMONEY"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setInouttime(( java.util.Date)hs.get("INOUTTIME"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setFundtype(( String)hs.get("FUNDTYPE"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setBillno(( String)hs.get("BILLNO"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setIsvalid(( String)hs.get("ISVALID"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setRemark(( String)hs.get("REMARK"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setImportor(( String)hs.get("IMPORTOR"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setImporttime(( java.util.Date)hs.get("IMPORTTIME"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setLeavemoney(( Double)hs.get("LEAVEMONEY"));
		}
		catch (java.lang.Exception ex)
		{
		}
		return bean;
	}

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

		while (set.next())
		{
			bean = new SelFundCustFundInoutBean();
			try
			{
				bean.setBusiseq(( String)set.getObject("BUSISEQ"));
			}
			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.setInoutmoney( (( java.math.BigDecimal)set
						.getObject("INOUTMONEY") ).doubleValue());
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setInouttime(( java.util.Date)set.getObject("INOUTTIME"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setFundtype(( String)set.getObject("FUNDTYPE"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setBillno(( String)set.getObject("BILLNO"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setIsvalid(( String)set.getObject("ISVALID"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setRemark(( String)set.getObject("REMARK"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setImportor(( String)set.getObject("IMPORTOR"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean
						.setImporttime(( java.util.Date)set
								.getObject("IMPORTTIME"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setLeavemoney( (( java.math.BigDecimal)set
						.getObject("LEAVEMONEY") ).doubleValue());
			}
			catch (java.lang.Exception ex)
			{
			}
			listbean.add(bean);
		}

		try
		{
			set.close();

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

}
