void Page_Load(object sender, EventArgs e)
        {
            if (!this.CheckIsLoaded())
            {
                try
                {
                    this.mCurrentUser      = this.mMaster.pCurrentUser;
                    this.mSystem_ModulesID = (Int64)this.ViewState[CnsSystem_ModulesID];
                    this.mIsReadOnly       = this.pIsReadOnly;
                    this.mObjID            = (string)this.ViewState[CnsObjID];
                    this.mObj_Base         = (ClsBase)this.Session[this.mObjID];

                    if (!this.IsPostBack)
                    {
                        this.SetupPage();
                        this.Save_Redirected();
                    }

                    this.SetupPage_ControlAttributes();
                }
                catch (Exception ex)
                {
                    Layer01_Methods_Web.ErrorHandler(ex, this.Server);
                    throw ex;
                }
            }
        }
Example #2
0
 void EOCb_TaxCode_Execute(object sender, EO.Web.CallbackEventArgs e)
 {
     try
     { e.Data = this.Details_TaxCode(); }
     catch (Exception Ex)
     {
         Layer01_Methods_Web.ErrorHandler(Ex, this.Server);
         throw Ex;
     }
 }
Example #3
0
 void EOCb_Accept_Execute(object sender, EO.Web.CallbackEventArgs e)
 {
     try
     { this.Update(); }
     catch (Exception Ex)
     {
         Layer01_Methods_Web.ErrorHandler(Ex, this.Server);
         throw Ex;
     }
 }
 void Btn_Save_Click(object sender, EventArgs e)
 {
     try
     { this.RaiseSave(); }
     catch (Exception Ex)
     {
         Layer01_Methods_Web.ErrorHandler(Ex, this.Server);
         this.Show_EventMsg(Ex.Message, eStatus.Event_Error);
     }
 }
Example #5
0
 void EOCb_ShippingAddress_Update_Execute(object sender, EO.Web.CallbackEventArgs e)
 {
     try
     {
         this.UcAddress.Update();
         this.UcGrid_ShippingAddress.Post();
         this.UcCdsa.AddNew(this.mObj);
     }
     catch (Exception Ex)
     {
         Layer01_Methods_Web.ErrorHandler(Ex, this.Server);
         throw Ex;
     }
 }
Example #6
0
 void EOCb_Cancel_Execute(object sender, EO.Web.CallbackEventArgs e)
 {
     try
     {
         this.mObj_Customer.pObj_ShippingAddress.Delete_Item(this.mTmpKey);
         this.mTmpKey = 0;
         this.ViewState[CnsTmpKey] = this.mTmpKey;
     }
     catch (Exception Ex)
     {
         Layer01_Methods_Web.ErrorHandler(Ex, this.Server);
         throw Ex;
     }
 }
Example #7
0
 void EOCb_Selection_Execute(object sender, EO.Web.CallbackEventArgs e)
 {
     try
     {
         if (e.Parameter == this.Btn_SalesPerson.ID)
         {
             this.UcSelection.Show("Select_Employee");
         }
     }
     catch (Exception Ex)
     {
         Layer01_Methods_Web.ErrorHandler(Ex, this.Server);
         throw Ex;
     }
 }
Example #8
0
 void EOCb_ShippingAddress_Add_Execute(object sender, EO.Web.CallbackEventArgs e)
 {
     try
     {
         if (e.Parameter == this.Btn_AddShippingAddress.ID)
         {
             this.UcGrid_ShippingAddress.Post();
             e.Data = this.UcCdsa.Show(this.mObj);
         }
     }
     catch (Exception Ex)
     {
         Layer01_Methods_Web.ErrorHandler(Ex, this.Server);
         throw Ex;
     }
 }
Example #9
0
 void EOCb_ShippingAddress_Edit_Execute(object sender, EO.Web.CallbackEventArgs e)
 {
     try
     {
         Int64 Key = 0;
         try
         { Key = Convert.ToInt64(e.Parameter); }
         catch { }
         e.Data = this.UcCdsa.Show(this.mObj, Key);
     }
     catch (Exception Ex)
     {
         Layer01_Methods_Web.ErrorHandler(Ex, this.Server);
         throw Ex;
     }
 }
Example #10
0
        void EOCb_ShippingAddress_IsActive_Execute(object sender, EO.Web.CallbackEventArgs e)
        {
            try
            {
                Int64 Key = 0;
                try
                { Key = Convert.ToInt64(e.Parameter); }
                catch { }

                if (Key == 0)
                {
                    return;
                }

                this.Details_ShippingAddress_IsActive(Key);
            }
            catch (Exception Ex)
            {
                Layer01_Methods_Web.ErrorHandler(Ex, this.Server);
                throw Ex;
            }
        }
 void EOCb_Selection_Execute(object sender, EO.Web.CallbackEventArgs e)
 {
     try
     {
         if (e.Parameter == this.Btn_AddItemPart.ID)
         {
             this.UcSelection.Show("Select_Item", "", true, e.Parameter);
         }
         else if (e.Parameter == this.Btn_AddItemSupplier.ID)
         {
             this.UcSelection.Show("Select_Supplier", "", true, e.Parameter);
         }
         else if (e.Parameter == this.Btn_AddItemLocation.ID)
         {
             this.UcSelection.Show("Select_Warehouse", "", true, e.Parameter);
         }
     }
     catch (Exception Ex)
     {
         Layer01_Methods_Web.ErrorHandler(Ex, this.Server);
         throw Ex;
     }
 }