public void Setup(ClsPerson pObj_Person)
        {
            ClsSysCurrentUser CurrentUser = (ClsSysCurrentUser)this.Session[Layer01_Constants_Web.CnsSession_CurrentUser];
            this.mObjID = CurrentUser.GetNewPageObjectID();
            this.mObj_Person = pObj_Person;

            this.ViewState[CnsObjID] = this.mObjID;
            this.Session[this.mObjID + CnsObj_Person] = this.mObj_Person;

            this.SetupPage();
        }
        void SetupPage()
        {
            DataRow[] ArrDr = this.mObj_ContactPerson.pDt_ContactPerson.Select("TmpKey = " + this.mTmpKey);
            DataRow Dr_ContactPerson = null;
            if (ArrDr.Length > 0)
            { Dr_ContactPerson = ArrDr[0]; }
            else
            { this.mTmpKey = 0; }

            //string Title = "";
            if (this.mTmpKey == 0)
            {
                //Title = "Add Contact Person";
                this.Txt_Position.Text = "";
                this.mObj_Person = new ClsPerson(this.mObj_ContactPerson.pCurrentUser);
                this.mObj_Person.Load();
            }
            else
            {
                //Title = "Update Contact Person";
                this.Txt_Position.Text = (string)Do_Methods.IsNull(Dr_ContactPerson["Position"], "");
                //this.mObj_Person = (ClsPerson)this.mObj_ContactPerson.pBO_ContactPerson_Persons[this.mTmpKey.ToString()];
                this.mObj_Person = this.mObj_ContactPerson.pObj_ContactPerson_Details.pObj_Person_Get(this.mTmpKey);
            }

            this.UcPerson.Setup(this.mObj_Person);
            this.Session[this.mObjID + CnsObj_Person] = this.mObj_Person;

            try
            { this.EOCbp_Dialog_ContactPerson.Update(); }
            catch { }
        }
        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]);
        }
示例#4
0
 protected override void Setup(Layer01_Common.Common.Layer01_Constants.eSystem_LookupPartyType pPartyType, ClsSysCurrentUser pCurrentUser = null, string pTableName = "", string pViewName = "")
 {
     base.Setup(pPartyType, pCurrentUser, pTableName, pViewName);
     this.mObj_Person = new ClsPerson(this.mCurrentUser);
 }
 protected override void Setup(Layer01_Common.Common.Layer01_Constants.eSystem_LookupPartyType PartyType, ClsSysCurrentUser CurrentUser, String TableName, String ViewName = "", String CacheTableName = "")
 {
     base.Setup(PartyType, CurrentUser, TableName, ViewName);
     this.mObj_Person = new ClsPerson(this.mCurrentUser);
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            this.EOCb_Txt_Changed.Execute += new EO.Web.CallbackEventHandler(EOCb_Txt_Changed_Execute);

            //[-]

            this.mObjID = (string)this.ViewState[CnsObjID];
            this.mObj_Person = (ClsPerson)this.Session[this.mObjID + CnsObj_Person];
        }