void client_GetEmailNameIsExistNameAddOneCompleted(object sender, GetEmailNameIsExistNameAddOneCompletedEventArgs e) { try { if (e.Error != null && e.Error.Message != "") { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); } else { string strMsg = string.Empty; if (!string.IsNullOrEmpty(e.Result)) { string Result = ""; if (Employee.EMPLOYEEENAME != e.Result) { Employee.EMPLOYEEENAME = e.Result; Employee.EMAIL = e.Result + "@sinomaster.com"; ComfirmWindow com = new ComfirmWindow(); com.OnSelectionBoxClosed += (obj, result) => { if (!string.IsNullOrEmpty(Employee.FINGERPRINTID)) { client.IsExistFingerPrintIDAsync(Employee.FINGERPRINTID, Employee.EMPLOYEEID, "Save"); } else { if (btnActionType == "Save") { client.EmployeeAddOrUpdateAsync(Employee, strMsg); } else { OnUIRefreshed(); } } }; com.SelectionBox(Utility.GetResourceStr("CONFIRM"), Utility.GetResourceStr("用户名重复,系统自动更名为" + e.Result), ComfirmWindow.titlename, Result); } else { Employee.EMAIL = e.Result + "@sinomaster.com"; if (btnActionType == "Save") { client.EmployeeAddOrUpdateAsync(Employee, strMsg); } else { OnUIRefreshed(); } } } else { if (btnActionType == "Save") { client.EmployeeAddOrUpdateAsync(Employee, strMsg); } else { OnUIRefreshed(); } } } } catch { } }
void client_GetEmailNameIsExistNameAddOneCompleted(object sender, GetEmailNameIsExistNameAddOneCompletedEventArgs e) { try { if (e.Error != null && e.Error.Message != "") { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); } else { string strMsg = string.Empty; if (!string.IsNullOrEmpty(e.Result)) { string Result = ""; if (Employee.EMPLOYEEENAME != e.Result) { Employee.EMPLOYEEENAME = e.Result; Employee.EMAIL = e.Result + "@sinomaster.com"; ComfirmWindow com = new ComfirmWindow(); com.OnSelectionBoxClosed += (obj, result) => { if (!string.IsNullOrEmpty(Employee.FINGERPRINTID)) { client.IsExistFingerPrintIDAsync(Employee.FINGERPRINTID, Employee.EMPLOYEEID, "Save"); } else { if (btnActionType == "Save") { client.EmployeeAddOrUpdateAsync(Employee, strMsg); } else { OnUIRefreshed(); } } }; com.SelectionBox(Utility.GetResourceStr("CONFIRM"), Utility.GetResourceStr("用户名重复,系统自动更名为" + e.Result), ComfirmWindow.titlename, Result); } else { Employee.EMAIL = e.Result + "@sinomaster.com"; if (btnActionType == "Save") { client.EmployeeAddOrUpdateAsync(Employee, strMsg); } else { OnUIRefreshed(); } } } else { if (btnActionType == "Save") { client.EmployeeAddOrUpdateAsync(Employee, strMsg); } else { OnUIRefreshed(); } } } } catch { } }
void client_GetEmailNameIsExistNameAddOneCompleted(object sender, GetEmailNameIsExistNameAddOneCompletedEventArgs e) { try { if (e.Error != null && e.Error.Message != "") { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); } else { string strMsg = string.Empty; if (!string.IsNullOrEmpty(e.Result)) { if (EmployeeEntry.T_HR_EMPLOYEE.EMPLOYEEENAME != e.Result) { ComfirmWindow com = new ComfirmWindow(); com.OnSelectionBoxClosed += (obj, result) => { EmployeeEntry.T_HR_EMPLOYEE.EMPLOYEEENAME = e.Result; EmployeeEntry.T_HR_EMPLOYEE.EMAIL = e.Result + "@sinomaster.com"; txtUser.Text = e.Result; //client.EmployeeAddOrUpdateAsync(EmployeeEntry.T_HR_EMPLOYEE, strMsg); }; com.SelectionBox(Utility.GetResourceStr("CONFIRM"), Utility.GetResourceStr("用户名重复,系统自动更名为" + e.Result), ComfirmWindow.titlename, ""); } } } } catch { } }