void client_GetSystemParamSetPagingCompleted(object sender, GetSystemParamSetPagingCompletedEventArgs e) { if (e.Error == null) { if (e.Result != null) { T_HR_SYSTEMSETTING temp = e.Result.FirstOrDefault(); temp.PARAMETERVALUE = newpwd.Password; temp.PARAMETERVALUE = SMT.SaaS.FrameworkUI.Common.Utility.Encrypt(newpwd.Password); client.SystemParamSetUpdateAsync(temp); } else { tbmsg.Text = Utility.GetResourceStr("OLDPWDERROR"); //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("OLDPWDERROR")); loadbar.Stop(); } } else { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"),Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); loadbar.Stop(); } }
void salaryClient_GetSystemParamSetPagingCompleted(object sender, GetSystemParamSetPagingCompletedEventArgs e) { if (e.Error == null) { if (e.Result != null) { systemSetting = e.Result.FirstOrDefault(); txtSalaryPwd.Password = SMT.SaaS.FrameworkUI.Common.Utility.Decrypt(systemSetting.PARAMETERVALUE); } } }
void client_GetSystemParamSetPagingCompleted(object sender, GetSystemParamSetPagingCompletedEventArgs e) { List<T_HR_SYSTEMSETTING> list = new List<T_HR_SYSTEMSETTING>(); if (e.Error == null) { if (e.Result != null) { list = e.Result.ToList(); } DtGrid.ItemsSource = list; dataPager.PageCount = e.pageCount; } else { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message)); } loadbar.Stop(); }
void client_GetSystemParamSetPagingCompleted(object sender, GetSystemParamSetPagingCompletedEventArgs e) { List <T_HR_SYSTEMSETTING> list = new List <T_HR_SYSTEMSETTING>(); if (e.Error == null) { if (e.Result != null) { list = e.Result.ToList(); } DtGrid.ItemsSource = list; dataPager.PageCount = e.pageCount; } else { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message)); } loadbar.Stop(); }
void client_GetSystemParamSetPagingCompleted(object sender, GetSystemParamSetPagingCompletedEventArgs e) { if (e.Error == null) { if (e.Result != null) { T_HR_SYSTEMSETTING temp = e.Result.FirstOrDefault(); temp.PARAMETERVALUE = newpwd.Password; temp.PARAMETERVALUE = SMT.SaaS.FrameworkUI.Common.Utility.Encrypt(newpwd.Password); client.SystemParamSetUpdateAsync(temp); } else { tbmsg.Text = Utility.GetResourceStr("OLDPWDERROR"); //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("OLDPWDERROR")); loadbar.Stop(); } } else { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); loadbar.Stop(); } }