public void AddNew(ClsCustomer pObj_Customer)
 {
     this.mObj_Customer = pObj_Customer;
     this.mTmpKey = 0;
     this.SetupPage();
     this.Update();
 }
        public string Show(ClsCustomer pObj_Customer, Int64 pTmpKey = 0)
        {
            ClsSysCurrentUser CurrentUser = (ClsSysCurrentUser)this.Session[Layer01_Constants_Web.CnsSession_CurrentUser];
            this.mObjID = CurrentUser.GetNewPageObjectID();
            this.mObj_Customer = pObj_Customer;
            this.mTmpKey = pTmpKey;

            this.ViewState[CnsObjID] = this.mObjID;
            this.Session[this.mObjID + CnsObj_Customer] = this.mObj_Customer;
            this.ViewState[CnsTmpKey] = this.mTmpKey;

            this.SetupPage();

            StringBuilder Sb_Js = new StringBuilder();
            Sb_Js.Append("var EODialog = eo_GetObject('" + this.EODialog_ShippingAddress.ClientID + "'); ");
            Sb_Js.Append("EODialog.show(true); ");

            return Sb_Js.ToString();
        }
コード例 #3
0
        protected override void Page_Load(object sender, EventArgs e)
        {
            if (!this.CheckIsLoaded())
            {
                base.Page_Load(sender, e);
                this.mObj = (ClsCustomer)this.pObj_Base;

                this.UcSelection.EvAccept += this.Handle_Selection;
                this.UcCdsa.EvAccept += this.Handle_ShippingAddress;

                this.EOCb_Selection.Execute += new EO.Web.CallbackEventHandler(EOCb_Selection_Execute);
                this.EOCb_ShippingAddress_Add.Execute += new EO.Web.CallbackEventHandler(EOCb_ShippingAddress_Add_Execute);
                this.EOCb_ShippingAddress_Edit.Execute += new EO.Web.CallbackEventHandler(EOCb_ShippingAddress_Edit_Execute);
                this.EOCb_ShippingAddress_IsActive.Execute += new EO.Web.CallbackEventHandler(EOCb_ShippingAddress_IsActive_Execute);
                this.EOCb_ShippingAddress_Update.Execute += new EO.Web.CallbackEventHandler(EOCb_ShippingAddress_Update_Execute);
                this.EOCb_TaxCode.Execute += new EO.Web.CallbackEventHandler(EOCb_TaxCode_Execute);

                if (!this.IsPostBack)
                { this.SetupPage(); }
            }
        }
        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 ;
        }