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 SlmOrderDeliveryTransitTgBean
{
	private String Ord_pk = "";
	private String Ord_ln_pk = "";
	private String Ord_ln_dly_pk = "";
	private String Index_seq = "";
	private String Agency_fl = "";
	private String Transit_typ = "";
	private String Destination = "";
	private String Station_no = "";
	private String Station_nm = "";
	private String Spcl_ln_no = "";
	private String Spcl_ln_nm = "";
	private String Port_no = "";
	private String Port_desc = "";
	private String Carrier_unit = "";
	private String Receivor = "";
	private Double Transit_ln_mny = 0.0;
	private String Validflag = "";
	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;
	private String Lv_facty_typ = "";

	public String getOrd_pk()
	{
		return Ord_pk;
	}

	public void setOrd_pk(String ordPk)
	{
		Ord_pk = ordPk;
	}

	public String getOrd_ln_pk()
	{
		return Ord_ln_pk;
	}

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

	public String getOrd_ln_dly_pk()
	{
		return Ord_ln_dly_pk;
	}

	public void setOrd_ln_dly_pk(String ordLnDlyPk)
	{
		Ord_ln_dly_pk = ordLnDlyPk;
	}

	public String getIndex_seq()
	{
		return Index_seq;
	}

	public void setIndex_seq(String indexSeq)
	{
		Index_seq = indexSeq;
	}

	public String getAgency_fl()
	{
		return Agency_fl;
	}

	public void setAgency_fl(String agencyFl)
	{
		Agency_fl = agencyFl;
	}

	public String getTransit_typ()
	{
		return Transit_typ;
	}

	public void setTransit_typ(String transitTyp)
	{
		Transit_typ = transitTyp;
	}

	public String getDestination()
	{
		return Destination;
	}

	public void setDestination(String destination)
	{
		Destination = destination;
	}

	public String getStation_no()
	{
		return Station_no;
	}

	public void setStation_no(String stationNo)
	{
		Station_no = stationNo;
	}

	public String getStation_nm()
	{
		return Station_nm;
	}

	public void setStation_nm(String stationNm)
	{
		Station_nm = stationNm;
	}

	public String getSpcl_ln_no()
	{
		return Spcl_ln_no;
	}

	public void setSpcl_ln_no(String spclLnNo)
	{
		Spcl_ln_no = spclLnNo;
	}

	public String getSpcl_ln_nm()
	{
		return Spcl_ln_nm;
	}

	public void setSpcl_ln_nm(String spclLnNm)
	{
		Spcl_ln_nm = spclLnNm;
	}

	public String getPort_no()
	{
		return Port_no;
	}

	public void setPort_no(String portNo)
	{
		Port_no = portNo;
	}

	public String getPort_desc()
	{
		return Port_desc;
	}

	public void setPort_desc(String portDesc)
	{
		Port_desc = portDesc;
	}

	public String getCarrier_unit()
	{
		return Carrier_unit;
	}

	public void setCarrier_unit(String carrierUnit)
	{
		Carrier_unit = carrierUnit;
	}

	public String getReceivor()
	{
		return Receivor;
	}

	public void setReceivor(String receivor)
	{
		Receivor = receivor;
	}

	public Double getTransit_ln_mny()
	{
		return Transit_ln_mny;
	}

	public void setTransit_ln_mny(Double transitLnMny)
	{
		Transit_ln_mny = transitLnMny;
	}

	public String getValidflag()
	{
		return Validflag;
	}

	public void setValidflag(String validflag)
	{
		Validflag = validflag;
	}

	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 String getLv_facty_typ()
	{
		return Lv_facty_typ;
	}

	public void setLv_facty_typ(String lvFactyTyp)
	{
		Lv_facty_typ = lvFactyTyp;
	}

	public static SlmOrderDeliveryTransitTgBean convertHashMapToBean(HashMap hs)
	{
		SlmOrderDeliveryTransitTgBean bean = new SlmOrderDeliveryTransitTgBean();
		try
		{
			bean.setOrd_pk(( String)hs.get("ORD_PK"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setOrd_ln_pk(( String)hs.get("ORD_LN_PK"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setOrd_ln_dly_pk(( String)hs.get("ORD_LN_DLY_PK"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setIndex_seq(( String)hs.get("INDEX_SEQ"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setAgency_fl(( String)hs.get("AGENCY_FL"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setTransit_typ(( String)hs.get("TRANSIT_TYP"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setDestination(( String)hs.get("DESTINATION"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setStation_no(( String)hs.get("STATION_NO"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setStation_nm(( String)hs.get("STATION_NM"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setSpcl_ln_no(( String)hs.get("SPCL_LN_NO"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setSpcl_ln_nm(( String)hs.get("SPCL_LN_NM"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setPort_no(( String)hs.get("PORT_NO"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setPort_desc(( String)hs.get("PORT_DESC"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setCarrier_unit(( String)hs.get("CARRIER_UNIT"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setReceivor(( String)hs.get("RECEIVOR"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setTransit_ln_mny(( Double)hs.get("TRANSIT_LN_MNY"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setValidflag(( String)hs.get("VALIDFLAG"));
		}
		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)
		{
		}
		try
		{
			bean.setLv_facty_typ(( String)hs.get("LV_FACTY_TYP"));
		}
		catch (java.lang.Exception ex)
		{
		}
		return bean;
	}

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

		while (set.next())
		{
			bean = new SlmOrderDeliveryTransitTgBean();
			try
			{
				bean.setOrd_pk(( String)set.getObject("ORD_PK"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setOrd_ln_pk(( String)set.getObject("ORD_LN_PK"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setOrd_ln_dly_pk(( String)set.getObject("ORD_LN_DLY_PK"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setIndex_seq(( String)set.getObject("INDEX_SEQ"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setAgency_fl(( String)set.getObject("AGENCY_FL"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setTransit_typ(( String)set.getObject("TRANSIT_TYP"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setDestination(( String)set.getObject("DESTINATION"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setStation_no(( String)set.getObject("STATION_NO"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setStation_nm(( String)set.getObject("STATION_NM"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setSpcl_ln_no(( String)set.getObject("SPCL_LN_NO"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setSpcl_ln_nm(( String)set.getObject("SPCL_LN_NM"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setPort_no(( String)set.getObject("PORT_NO"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setPort_desc(( String)set.getObject("PORT_DESC"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setCarrier_unit(( String)set.getObject("CARRIER_UNIT"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setReceivor(( String)set.getObject("RECEIVOR"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setTransit_ln_mny( (( java.math.BigDecimal)set
						.getObject("TRANSIT_LN_MNY") ).doubleValue());
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setValidflag(( String)set.getObject("VALIDFLAG"));
			}
			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)
			{
			}
			try
			{
				bean.setLv_facty_typ(( String)set.getObject("LV_FACTY_TYP"));
			}
			catch (java.lang.Exception ex)
			{
			}
			listbean.add(bean);
		}

		try
		{
			set.close();

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