Esempio n. 1
0
        public void loadStaffDetails(Guid StaffId)
        {
            DayCarePL.Logger.Write(DayCarePL.LogType.INFO, DayCarePL.ModuleToLog.Staff, "SubmitRecord", "Submit record method called", DayCarePL.Common.GUID_DEFAULT);
            try
            {
                DayCarePL.Logger.Write(DayCarePL.LogType.DEBUG, DayCarePL.ModuleToLog.ChildData, "SubmitRecord", "Debug Submit Record Of MyAccountDetails", DayCarePL.Common.GUID_DEFAULT);
                DayCareBAL.MyAccountService proxyMyAccount = new DayCareBAL.MyAccountService();

                if (Session["StaffId"] != null)
                {
                    StaffId = new Guid(Session["StaffId"].ToString());
                }
                DayCarePL.StaffProperties objstaff = proxyMyAccount.LoadMyAccountDetails(StaffId);
                if (objstaff != null)
                {
                    txtFirstName.Text = objstaff.FirstName;
                    txtLastName.Text  = objstaff.LastName;
                    txtUserName.Text  = objstaff.UserName;
                    //txtPassword.Text = objstaff.Password;
                    // txtOldPassword .Text= objstaff.Password;
                    //txtCode.Text = objstaff.Code;
                    hdnPassword.Value = objstaff.Password;
                }
            }
            catch (Exception ex)
            {
                DayCarePL.Logger.Write(DayCarePL.LogType.EXCEPTION, DayCarePL.ModuleToLog.Staff, "LoadMyAccountData", ex.Message.ToString(), DayCarePL.Common.GUID_DEFAULT);
            }
        }