protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { cObj = new Entity.Stock_Commodity(); DataInit(); } }
private void DataInit() { listID = ZWL.ObjectOperation.QueryStringHelper.GetQuery("listID"); jobID = ZWL.ObjectOperation.QueryStringHelper.GetQuery("jobID"); hJobID.Value = jobID; hListID.Value = listID; if (!string.IsNullOrEmpty(listID)) { Entity.SaleList sl = new DataAccess.SaleList().GetModel(listID); cObj = new DataAccess.Stock_Commodity().GetEntity(sl.ProductType); txtNum.Value = sl.Num.ToString(); } }