Ejemplo n.º 1
0
        public void Update()
        {
            ClsPerson Obj = this.mObj_Person;

            Obj.pDr["FirstName"]  = this.Txt_FirstName.Text;
            Obj.pDr["MiddleName"] = this.Txt_MiddleName.Text;
            Obj.pDr["LastName"]   = this.Txt_LastName.Text;

            System.Text.StringBuilder Sb_FullName = new System.Text.StringBuilder();
            Sb_FullName.Append(this.Txt_FirstName.Text);
            Sb_FullName.Append(" ");
            Sb_FullName.Append(this.Txt_MiddleName.Text);
            Sb_FullName.Append(" ");
            Sb_FullName.Append(this.Txt_LastName.Text);

            Obj.pDr["FullName"] = Sb_FullName.ToString();

            this.Details_FormatPhoneNo(ref this.Txt_Phone);
            this.Details_FormatPhoneNo(ref this.Txt_Mobile);
            this.Details_FormatPhoneNo(ref this.Txt_Fax);

            Obj.pDr["Phone"]     = this.Txt_Phone.Text;
            Obj.pDr["Mobile"]    = this.Txt_Mobile.Text;
            Obj.pDr["Fax"]       = this.Txt_Fax.Text;
            Obj.pDr["Email"]     = this.Txt_Email.Text;
            Obj.pDr["WorkEmail"] = this.Txt_Email_Work.Text;

            try
            { Obj.pDr["BirthDate"] = this.EODtp_BirthDate.SelectedDate; }
            catch
            { Obj.pDr["BirthDate"] = DBNull.Value; }

            Do_Methods.ConvertCaps(Obj.pDr);
        }
Ejemplo n.º 2
0
        void SetupPage()
        {
            this.SetupPage_ControlAttributes();

            ClsPerson Obj = this.mObj_Person;

            this.Txt_FirstName.Text  = (string)Do_Methods.IsNull(Obj.pDr["FirstName"], "");
            this.Txt_MiddleName.Text = (string)Do_Methods.IsNull(Obj.pDr["MiddleName"], "");
            this.Txt_LastName.Text   = (string)Do_Methods.IsNull(Obj.pDr["LastName"], "");

            this.Txt_Phone.Text      = (string)Do_Methods.IsNull(Obj.pDr["Phone"], "");
            this.Txt_Mobile.Text     = (string)Do_Methods.IsNull(Obj.pDr["Mobile"], "");
            this.Txt_Fax.Text        = (string)Do_Methods.IsNull(Obj.pDr["Fax"], "");
            this.Txt_Email.Text      = (string)Do_Methods.IsNull(Obj.pDr["Email"], "");
            this.Txt_Email_Work.Text = (string)Do_Methods.IsNull(Obj.pDr["WorkEmail"], "");

            this.EODtp_BirthDate.VisibleDate = DateTime.Now;
            if (!Microsoft.VisualBasic.Information.IsDBNull(Obj.pDr["BirthDate"]))
            {
                this.EODtp_BirthDate.SelectedDate = (DateTime)Obj.pDr["BirthDate"];
            }
            else
            {
                this.EODtp_BirthDate.SelectedDate = new DateTime();
            }
        }
Ejemplo n.º 3
0
        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];
        }
Ejemplo n.º 4
0
        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]);
        }
Ejemplo n.º 5
0
        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();
        }
Ejemplo n.º 6
0
        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 { }
        }
Ejemplo n.º 7
0
 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);
 }
Ejemplo n.º 8
0
        public bool bClosedPerson(string PersonCode)
        {
            ClsPerson cls = new ClsPerson();

            return(cls.bClosed(ClsDES.Decrypt(PersonCode)));
        }
Ejemplo n.º 9
0
        public string delPerson(string sPerCode)
        {
            ClsPerson cls = new ClsPerson();

            return(ClsDES.Encrypt(cls.del(ClsDES.Decrypt(sPerCode))));
        }
Ejemplo n.º 10
0
        public string savePerson(string sdt)
        {
            ClsPerson cls = new ClsPerson();

            return(ClsDES.Encrypt(cls.save(Cls序列化.DeserializeDataTable(ClsDES.Decrypt(sdt)))));
        }
Ejemplo n.º 11
0
        public string dtPerson()
        {
            ClsPerson cls = new ClsPerson();

            return(ClsDES.Encrypt(cls.dt()));
        }