Exemplo n.º 1
0
        void client_GetEmployeeByNumberIDCompleted(object sender, GetEmployeeByNumberIDCompletedEventArgs e)
        {
            if (e.Error != null && e.Error.Message != "")
            {
                //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));

                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"),
                                               Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
            }
            else
            {
                Employee = e.Result;
                if (string.IsNullOrEmpty(Employee.EMPLOYEECNAME))
                {
                    Employee.EMPLOYEECNAME = strName;
                }
                if (string.IsNullOrEmpty(Employee.IDNUMBER))
                {
                    Employee.IDNUMBER = sIDNumber;
                }
                Employee.EMPLOYEESTATE = "4";
                Employee.EMPLOYEEENAME = HanziZhuanPingYin.Convert(strName).ToLower();
                GetBirthDay(sIDNumber.Trim());
                BindData();
                client.GetResumeByNumberAsync(sIDNumber);
            }
        }
Exemplo n.º 2
0
        void client_GetEmployeeByNumberIDCompleted(object sender, GetEmployeeByNumberIDCompletedEventArgs e)
        {
            if (e.Error != null && e.Error.Message != "")
            {
                //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));

                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"),
                               Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
            }
            else
            {
                Employee = e.Result;
                if (string.IsNullOrEmpty(Employee.EMPLOYEECNAME))
                {
                    Employee.EMPLOYEECNAME = strName;
                }
                if (string.IsNullOrEmpty(Employee.IDNUMBER))
                {
                    Employee.IDNUMBER = sIDNumber;
                }
                Employee.EMPLOYEESTATE = "4";
                Employee.EMPLOYEEENAME = HanziZhuanPingYin.Convert(strName).ToLower();
                GetBirthDay(sIDNumber.Trim());
                BindData();
                client.GetResumeByNumberAsync(sIDNumber);
            }
        }