/// <summary>
        /// adjust the personal details in textboxes to see the user all of them
        /// after the change it can recollect the possibly changed details!!
        /// </summary>
        private void loadAllDatasIn()
        {
            try
            {
                servicePersProfileManage = new ServiceProfileManage(dbci, personalWin);

                if (modeOfProfileWindow == profileManageMode.BackChangeDETAILS)
                {
                    string[] newNameTaj = servicePersProfileManage.getTheNewNameAndTaj(usod.userId);
                    txtbLaName.Text = newNameTaj[0];
                    txtbFiName.Text = newNameTaj[1];
                    txtbTaj.Text    = newNameTaj[2];
                }
                else
                {
                    txtbLaName.Text = usod.userLastName;
                    txtbFiName.Text = usod.userFirstName;
                    txtbTaj.Text    = usod.userTaj;
                }


                txtbUserName.Text  = usod.userName;
                txtbUserGroup.Text = usod.userAccountGroup;
                txtbPosition.Text  = usod.userPosition;
                txtbArea.Text      = usod.userArea;
            }
            catch (ErrorServiceProfileMange e)
            {
                handleError(e.Message);
            }
        }
示例#2
0
 /// <summary>
 /// defines of process to create the persHealthPDF creation
 /// </summary>
 public void collectsDatasAndCreatesHealthDetailsPDF()
 {
     try
     {
         servicePersProfileManage = new ServiceProfileManage(dbci, personalWin);
         servicePersProfileManage.createHealthCarePDF(usod);
     }
     catch (ErrorServiceProfileMange e)
     {
         handleError(e.Message);
     }
 }
 /// <summary>
 /// process of savint into DB the changed user personal details - if it is correct
 /// </summary>
 public void savesTheNewPersDetails()
 {
     try
     {
         servicePersProfileManage = new ServiceProfileManage(dbci, personalWin);
         servicePersProfileManage.changeUserDetails(usod.userId, txtbLaName.Text, txtbFiName.Text, txtbTaj.Text);
         closeFieldsAfterChangePersDetails();
     }
     catch (ErrorServiceProfileMange e)
     {
         handleError(e.Message);
     }
 }
 /// <summary>
 /// process of saving into DB the changed password - if it is correct hashing it
 /// </summary>
 public void saveTheNewPwd()
 {
     try
     {
         servicePersProfileManage = new ServiceProfileManage(dbci, personalWin);
         servicePersProfileManage.changeUserPwd(usod.userId, txtbPwdNew.Text);
         closeFieldsAfterChangePwd();
     }
     catch (ErrorServiceProfileMange e)
     {
         handleError(e.Message);
     }
 }
 /// <summary>
 /// defines of process to create the persHealthPDF creation
 /// </summary>
 public void collectsDatasAndCreatesHealthDetailsPDF()
 {
     try
     {
         servicePersProfileManage = new ServiceProfileManage(dbci, personalWin);
         servicePersProfileManage.createHealthCarePDF(usod);
     }
     catch (ErrorServiceProfileMange e)
     {
         handleError(e.Message);
     }
     catch (ErrorServiceProfileManagePDFOpenProb e)
     {
         handleWarning("A fálj elkészült, de megnyitása sikertelen " + e.Message);
     }
 }