Example #1
0
 void client_GetEmployeeEntryByIDCompleted(object sender, GetEmployeeEntryByIDCompletedEventArgs e)
 {
     if (e.Error != null && e.Error.Message != "")
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
     }
     else
     {
         sName.Text = e.Result.T_HR_EMPLOYEE.EMPLOYEECNAME;
         sNumberID.Text = e.Result.T_HR_EMPLOYEE.IDNUMBER;
     }
 }
Example #2
0
 void client_GetEmployeeEntryByIDCompleted(object sender, GetEmployeeEntryByIDCompletedEventArgs e)
 {
     if (e.Error != null && e.Error.Message != "")
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
     }
     else
     {
         sName.Text     = e.Result.T_HR_EMPLOYEE.EMPLOYEECNAME;
         sNumberID.Text = e.Result.T_HR_EMPLOYEE.IDNUMBER;
     }
 }
Example #3
0
        void client_GetEmployeeEntryByIDCompleted(object sender, GetEmployeeEntryByIDCompletedEventArgs e)
        {
            if (e.Error != null && e.Error.Message != "")
            {
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
            }
            else
            {
                if (e.Result == null)
                {
                    //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("NOTFOUND"));
                    ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
                    return;
                }
                EmployeeEntry = e.Result;
                if (FormType == FormTypes.Resubmit)
                {
                    EmployeeEntry.CHECKSTATE = Convert.ToInt32(CheckStates.UnSubmit).ToString();
                }
                if (EmployeeEntry.CHECKSTATE != Convert.ToInt32(CheckStates.UnSubmit).ToString())
                {
                    EnablControl();
                }
                if (EmployeeEntry.REMARK != null)
                {
                    int index = EmployeeEntry.REMARK.IndexOf("Ё");
                    if (index > 0)
                    {
                        if (EmployeeEntry.EDITSTATE == "0")
                        {
                            tbRemark.Text = Utility.GetResourceStr(EmployeeEntry.REMARK.Substring(0, index));
                        }
                        txtRemarks.Text = EmployeeEntry.REMARK.Substring(index + 1);
                    }
                    else
                    {
                        txtRemarks.Text = EmployeeEntry.REMARK;
                    }
                }



                if (EmployeeEntry.CHECKSTATE == Convert.ToInt32(CheckStates.Approving).ToString() || EmployeeEntry.CHECKSTATE == Convert.ToInt32(CheckStates.Approved).ToString())
                {
                    SetOnlyBrowse();
                }

                //client.GetEmployeePostByEmployeeIDAsync(EmployeeEntry.T_HR_EMPLOYEE.EMPLOYEEID);
                client.GetEmployeePostByEmployeePostIDAsync(employeeEntry.EMPLOYEEPOSTID);
                perclient.GetUserByEmployeeIDAsync(EmployeeEntry.T_HR_EMPLOYEE.EMPLOYEEID);
                // RefreshUI(RefreshedTypes.AuditInfo);
                //SetToolBar();
            }
            RefreshUI(RefreshedTypes.HideProgressBar);

        }