public void Setup(ClsAddress pObj_Address) { ClsSysCurrentUser CurrentUser = (ClsSysCurrentUser)this.Session[Layer01_Constants_Web.CnsSession_CurrentUser]; this.mObjID = CurrentUser.GetNewPageObjectID(); this.mObj_Address = pObj_Address; this.ViewState[CnsObjID] = this.mObjID; this.Session[this.mObjID + CnsObj_Address] = this.mObj_Address; this.SetupPage(); }
protected override void Setup(ClsSysCurrentUser pCurrentUser, string pTableName = "", string pViewName = "") { base.Setup(pCurrentUser, pTableName, pViewName); this.mObj_Address = new ClsAddress(this.mCurrentUser); }
protected void Page_Load(object sender, EventArgs e) { this.EOCb_Accept.Execute += new EO.Web.CallbackEventHandler(EOCb_Accept_Execute); this.EOCb_Cancel.Execute += new EO.Web.CallbackEventHandler(EOCb_Cancel_Execute); //[-] this.mObjID = (string)this.ViewState[CnsObjID]; this.mObj_Customer = (ClsCustomer)this.Session[this.mObjID + CnsObj_Customer]; this.mObj_Address = (ClsAddress)this.Session[this.mObjID + CnsObj_Address]; this.mTmpKey = (this.ViewState[CnsTmpKey] != null) ? (Int64)this.ViewState[CnsTmpKey] : 0 ; }
void SetupPage() { DataRow[] ArrDr = this.mObj_Customer.pDt_ShippingAddress.Select("TmpKey = " + this.mTmpKey); DataRow Dr_ShippingAddress = null; if (ArrDr.Length > 0) { Dr_ShippingAddress = ArrDr[0]; } else { this.mTmpKey = 0; } if (this.mTmpKey == 0) { this.Txt_StoreCode.Text = ""; //this.mObj_Address = new ClsAddress(this.mObj_Customer.pCurrentUser); //this.mObj_Address.Load(); Dr_ShippingAddress = this.mObj_Customer.pObj_ShippingAddress.Add_Item(); this.mTmpKey = Do_Methods.Convert_Int64(Dr_ShippingAddress["TmpKey"]); this.mObj_Address = this.mObj_Customer.pObj_ShippingAddress_Address_Get(this.mTmpKey); this.mObj_Address.pDr["Address"] = this.mObj_Customer.pDr_Address["Address"]; this.mObj_Address.pDr["City"] = this.mObj_Customer.pDr_Address["City"]; this.mObj_Address.pDr["LookupID_States"] = this.mObj_Customer.pDr_Address["LookupID_States"]; this.mObj_Address.pDr["LookupID_Country"] = this.mObj_Customer.pDr_Address["LookupID_Country"]; this.mObj_Address.pDr["ZipCode"] = this.mObj_Customer.pDr_Address["ZipCode"]; this.UcAddress_ShippingAddress.Setup(this.mObj_Address); this.ViewState[CnsTmpKey] = this.mTmpKey; } else { this.Txt_StoreCode.Text = (string)Do_Methods.IsNull(Dr_ShippingAddress["StoreCode"], ""); //this.mObj_Address = (ClsAddress)this.mObj_Customer.pBO_ShippingAddress_Address[this.mTmpKey.ToString()]; this.mObj_Address = this.mObj_Customer.pObj_ShippingAddress_Address_Get(this.mTmpKey); this.UcAddress_ShippingAddress.Setup(this.mObj_Address); } this.Session[this.mObjID + CnsObj_Address] = this.mObj_Address; try { this.EOCbp_Dialog_ShippingAddress.Update(); } catch { } }
protected void Page_Load(object sender, EventArgs e) { this.mObjID = (string)this.ViewState[CnsObjID]; this.mObj_Address = (ClsAddress)this.Session[this.mObjID + CnsObj_Address]; }
protected override void Setup(ClsSysCurrentUser CurrentUser, string TableName, string ViewName = "", string CacheTableName = "") { base.Setup(CurrentUser, TableName, ViewName, CacheTableName); this.mObj_Address = new ClsAddress(this.mCurrentUser); }