public void AddNew(ref ClsContactPerson pObj_ContactPerson) { this.mObj_ContactPerson = pObj_ContactPerson; this.mTmpKey = 0; this.SetupPage(); this.Update(); }
public ClsCustomer(ClsSysCurrentUser CurrentUser) { //this.Setup(Layer01_Common.Common.Layer01_Constants.eSystem_LookupPartyType.Customer, CurrentUser, "Customer", "uvw_Customer"); this.Setup(Layer01_Common.Common.Layer01_Constants.eSystem_LookupPartyType.Customer, CurrentUser, "Customer", "Materialized_Customer"); this.Setup_AddTableDetail("Customer_Receipt", "", "IsNull(IsDeleted,0) = 0"); //this.Setup_AddTableDetail("Customer_ShippingAddress", "uvw_Customer_ShippingAddress", "IsNull(IsDeleted,0) = 0"); this.Setup_AddListDetail("Customer_ShippingAddress", new ClsCustomer_ShippingAddress(CurrentUser)); this.Setup_EnableCache(); this.mObj_ContactPerson = new ClsContactPerson(this.mCurrentUser); //this.mObj_ShippingAddress = new ClsCustomer_ShippingAddress(CurrentUser); }
public string Show(ref ClsContactPerson pObj_ContactPerson, Int64 pTmpKey = 0) { ClsSysCurrentUser CurrentUser = (ClsSysCurrentUser)this.Session[Layer01_Constants_Web.CnsSession_CurrentUser]; this.mObjID = CurrentUser.GetNewPageObjectID(); this.mObj_ContactPerson = pObj_ContactPerson; this.mTmpKey = pTmpKey; this.ViewState[CnsObjID] = this.mObjID; this.Session[this.mObjID + CnsObj_ContactPerson] = this.mObj_ContactPerson; this.ViewState[CnsTmpKey] = this.mTmpKey; this.Page_Load(null, null); //[-] //[-] System.Text.StringBuilder Sb_Js = new System.Text.StringBuilder(); Sb_Js.Append("var EODialog = eo_GetObject('" + this.EODialog_ContactPerson.ClientID + "');"); Sb_Js.Append("EODialog.show(true); "); return Sb_Js.ToString(); }
protected void Page_Load(object sender, EventArgs e) { this.EOCb_Accept.Execute += new EO.Web.CallbackEventHandler(EOCb_Accept_Execute); //[-] this.mObjID = (string)this.ViewState[CnsObjID]; this.mObj_ContactPerson = (ClsContactPerson)this.Session[this.mObjID + CnsObj_ContactPerson]; this.mObj_Person = (ClsPerson)this.Session[this.mObjID + CnsObj_Person]; this.mTmpKey = System.Convert.ToInt64(this.ViewState[CnsTmpKey]); }