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 SlmOrderLineDeliveryTgBean
{
	private String Ord_pk = "";
	private String Ord_ln_pk = "";
	private String Ord_ln_dly_pk = "";
	private String Delivery_no = "";
	private java.util.Date Delvry_bdate = null;
	private java.util.Date Delvry_edate = null;
	private Double Delvry_qty = 0.0;
	private String Order_unit = "";
	private Double Wgt_estmt = 0.0;
	private Double Ensu_totl_len = 0.0;
	private String Receiv_no = "";
	private String Receiv_nm = "";
	private String Delvry_addr = "";
	private String Agency_fl = "";
	private String Receiv_addr = "";
	private String Transit_typ = "";
	private String Transit_plan = "";
	private Double Transit_mny = 0.0;
	private String Be_delivery_status = "";
	private String Be_obj_sts_op = "";
	private String Delivery_status = "";
	private String Obj_sts_op = "";
	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 Islock = "";
	private String Pickup_flag = "";

	private String Extra_flag = "";
	private String Is_add = "";

	public String getExtra_flag()
	{
		return Extra_flag;
	}

	public void setExtra_flag(String extraFlag)
	{
		Extra_flag = extraFlag;
	}

	public String getIs_add()
	{
		return Is_add;
	}

	public void setIs_add(String isAdd)
	{
		Is_add = isAdd;
	}

	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 getDelivery_no()
	{
		return Delivery_no;
	}

	public void setDelivery_no(String deliveryNo)
	{
		Delivery_no = deliveryNo;
	}

	public java.util.Date getDelvry_bdate()
	{
		return Delvry_bdate;
	}

	public void setDelvry_bdate(java.util.Date delvryBdate)
	{
		Delvry_bdate = delvryBdate;
	}

	public java.util.Date getDelvry_edate()
	{
		return Delvry_edate;
	}

	public void setDelvry_edate(java.util.Date delvryEdate)
	{
		Delvry_edate = delvryEdate;
	}

	public Double getDelvry_qty()
	{
		return Delvry_qty;
	}

	public void setDelvry_qty(Double delvryQty)
	{
		Delvry_qty = delvryQty;
	}

	public String getOrder_unit()
	{
		return Order_unit;
	}

	public void setOrder_unit(String orderUnit)
	{
		Order_unit = orderUnit;
	}

	public Double getWgt_estmt()
	{
		return Wgt_estmt;
	}

	public void setWgt_estmt(Double wgtEstmt)
	{
		Wgt_estmt = wgtEstmt;
	}

	public Double getEnsu_totl_len()
	{
		return Ensu_totl_len;
	}

	public void setEnsu_totl_len(Double ensuTotlLen)
	{
		Ensu_totl_len = ensuTotlLen;
	}

	public String getReceiv_no()
	{
		return Receiv_no;
	}

	public void setReceiv_no(String receivNo)
	{
		Receiv_no = receivNo;
	}

	public String getReceiv_nm()
	{
		return Receiv_nm;
	}

	public void setReceiv_nm(String receivNm)
	{
		Receiv_nm = receivNm;
	}

	public String getDelvry_addr()
	{
		return Delvry_addr;
	}

	public void setDelvry_addr(String delvryAddr)
	{
		Delvry_addr = delvryAddr;
	}

	public String getAgency_fl()
	{
		return Agency_fl;
	}

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

	public String getReceiv_addr()
	{
		return Receiv_addr;
	}

	public void setReceiv_addr(String receivAddr)
	{
		Receiv_addr = receivAddr;
	}

	public String getTransit_typ()
	{
		return Transit_typ;
	}

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

	public String getTransit_plan()
	{
		return Transit_plan;
	}

	public void setTransit_plan(String transitPlan)
	{
		Transit_plan = transitPlan;
	}

	public Double getTransit_mny()
	{
		return Transit_mny;
	}

	public void setTransit_mny(Double transitMny)
	{
		Transit_mny = transitMny;
	}

	public String getBe_delivery_status()
	{
		return Be_delivery_status;
	}

	public void setBe_delivery_status(String beDeliveryStatus)
	{
		Be_delivery_status = beDeliveryStatus;
	}

	public String getBe_obj_sts_op()
	{
		return Be_obj_sts_op;
	}

	public void setBe_obj_sts_op(String beObjStsOp)
	{
		Be_obj_sts_op = beObjStsOp;
	}

	public String getDelivery_status()
	{
		return Delivery_status;
	}

	public void setDelivery_status(String deliveryStatus)
	{
		Delivery_status = deliveryStatus;
	}

	public String getObj_sts_op()
	{
		return Obj_sts_op;
	}

	public void setObj_sts_op(String objStsOp)
	{
		Obj_sts_op = objStsOp;
	}

	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 getIslock()
	{
		return Islock;
	}

	public void setIslock(String islock)
	{
		Islock = islock;
	}

	public String getPickup_flag()
	{
		return Pickup_flag;
	}

	public void setPickup_flag(String pickupFlag)
	{
		Pickup_flag = pickupFlag;
	}

	public static SlmOrderLineDeliveryTgBean convertHashMapToBean(HashMap hs)
	{
		SlmOrderLineDeliveryTgBean bean = new SlmOrderLineDeliveryTgBean();

		try
		{
			bean.setExtra_flag(( String)hs.get("EXTRA_FLAG"));
		}
		catch (java.lang.Exception ex)
		{
		}

		try
		{
			bean.setIs_add(( String)hs.get("IS_ADD"));
		}
		catch (java.lang.Exception ex)
		{
		}

		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.setDelivery_no(( String)hs.get("DELIVERY_NO"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setDelvry_bdate(( java.util.Date)hs.get("DELVRY_BDATE"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setDelvry_edate(( java.util.Date)hs.get("DELVRY_EDATE"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setDelvry_qty(( Double)hs.get("DELVRY_QTY"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setOrder_unit(( String)hs.get("ORDER_UNIT"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setWgt_estmt(( Double)hs.get("WGT_ESTMT"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setEnsu_totl_len(( Double)hs.get("ENSU_TOTL_LEN"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setReceiv_no(( String)hs.get("RECEIV_NO"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setReceiv_nm(( String)hs.get("RECEIV_NM"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setDelvry_addr(( String)hs.get("DELVRY_ADDR"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setAgency_fl(( String)hs.get("AGENCY_FL"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setReceiv_addr(( String)hs.get("RECEIV_ADDR"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setTransit_typ(( String)hs.get("TRANSIT_TYP"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setTransit_plan(( String)hs.get("TRANSIT_PLAN"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setTransit_mny(( Double)hs.get("TRANSIT_MNY"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setBe_delivery_status(( String)hs.get("BE_DELIVERY_STATUS"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setBe_obj_sts_op(( String)hs.get("BE_OBJ_STS_OP"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setDelivery_status(( String)hs.get("DELIVERY_STATUS"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setObj_sts_op(( String)hs.get("OBJ_STS_OP"));
		}
		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.setIslock(( String)hs.get("ISLOCK"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setPickup_flag(( String)hs.get("PICKUP_FLAG"));
		}
		catch (java.lang.Exception ex)
		{
		}
		return bean;
	}

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

		while (set.next())
		{
			bean = new SlmOrderLineDeliveryTgBean();

			try
			{
				bean.setExtra_flag(( String)set.getObject("EXTRA_FLAG"));
			}
			catch (java.lang.Exception ex)
			{
			}

			try
			{
				bean.setIs_add(( String)set.getObject("IS_ADD"));
			}
			catch (java.lang.Exception ex)
			{
			}

			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.setDelivery_no(( String)set.getObject("DELIVERY_NO"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setDelvry_bdate(( java.util.Date)set
						.getObject("DELVRY_BDATE"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setDelvry_edate(( java.util.Date)set
						.getObject("DELVRY_EDATE"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setDelvry_qty( (( java.math.BigDecimal)set
						.getObject("DELVRY_QTY") ).doubleValue());
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setOrder_unit(( String)set.getObject("ORDER_UNIT"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setWgt_estmt( (( java.math.BigDecimal)set
						.getObject("WGT_ESTMT") ).doubleValue());
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setEnsu_totl_len( (( java.math.BigDecimal)set
						.getObject("ENSU_TOTL_LEN") ).doubleValue());
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setReceiv_no(( String)set.getObject("RECEIV_NO"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setReceiv_nm(( String)set.getObject("RECEIV_NM"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setDelvry_addr(( String)set.getObject("DELVRY_ADDR"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setAgency_fl(( String)set.getObject("AGENCY_FL"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setReceiv_addr(( String)set.getObject("RECEIV_ADDR"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setTransit_typ(( String)set.getObject("TRANSIT_TYP"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setTransit_plan(( String)set.getObject("TRANSIT_PLAN"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setTransit_mny( (( java.math.BigDecimal)set
						.getObject("TRANSIT_MNY") ).doubleValue());
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setBe_delivery_status(( String)set
						.getObject("BE_DELIVERY_STATUS"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setBe_obj_sts_op(( String)set.getObject("BE_OBJ_STS_OP"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setDelivery_status(( String)set
						.getObject("DELIVERY_STATUS"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setObj_sts_op(( String)set.getObject("OBJ_STS_OP"));
			}
			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.setIslock(( String)set.getObject("ISLOCK"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setPickup_flag(( String)set.getObject("PICKUP_FLAG"));
			}
			catch (java.lang.Exception ex)
			{
			}
			listbean.add(bean);
		}

		try
		{
			set.close();

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