void client_GetSalaryStandardPagingCompleted(object sender, GetSalaryStandardPagingCompletedEventArgs e) { List <T_HR_SALARYSTANDARD> list = new List <T_HR_SALARYSTANDARD>(); if (e.Error != null) { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); loadbar.Stop(); } else { if (e.Result != null) { list = e.Result.ToList(); } DtGridStand.ItemsSource = list; dataPagerStand.PageCount = e.pageCount; if (list.Count > 0) { selectedStandard = list.FirstOrDefault() as T_HR_SALARYSTANDARD; if (treeOrganization.Visibility == Visibility.Collapsed) { LoadDefaultData(); } else { LoadData(); } } else { loadbar.Stop(); } } }
void client_GetSalaryStandardPagingCompleted(object sender, GetSalaryStandardPagingCompletedEventArgs e) { List <T_HR_SALARYSTANDARD> list = new List <T_HR_SALARYSTANDARD>(); if (e.Error != null) { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); } else { if (e.Result != null) { list = e.Result.ToList(); } DtGridStand.ItemsSource = list; dataPagerStand.PageCount = e.pageCount; //try //{ // salaryStandardid = list[0].SALARYSTANDARDID; // LoadSalaryRecordData(); //} //catch (Exception exc) //{ // exc.Message.ToString(); //} } //loadbar.Stop(); }
void client_GetSalaryStandardPagingCompleted(object sender, GetSalaryStandardPagingCompletedEventArgs e) { List <T_HR_SALARYSTANDARD> list = new List <T_HR_SALARYSTANDARD>(); if (e.Error != null) { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message)); } else { if (e.Result != null) { list = e.Result.ToList(); //list = (from a in list.AsQueryable() select a.SALARYSTANDARDID).Intersect(from b in list.AsQueryable() select b.SALARYSTANDARDID); //NumericUpDown nuYear1 = Utility.FindChildControl<NumericUpDown>(expander, "Nuyear"); //NumericUpDown nuStartmounth1 = Utility.FindChildControl<NumericUpDown>(expander, "NuStartmounth"); //client.FilterStandardAsync(nuYear1.Value.ToString(), nuStartmounth1.Value.ToString(),list); DtGridStand.ItemsSource = list; dataPagerStand.PageCount = e.pageCount; //try //{ // salaryStandardid = list[0].SALARYSTANDARDID; // LoadSalaryRecordData(); //} //catch (Exception exc) //{ // exc.Message.ToString(); //} } else { list = null; DtGridStand.ItemsSource = null; } } //loadbar.Stop(); }
void client_GetSalaryStandardPagingCompleted(object sender, GetSalaryStandardPagingCompletedEventArgs e) { List<T_HR_SALARYSTANDARD> list = new List<T_HR_SALARYSTANDARD>(); if (e.Error != null) { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"),Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); } else { if (e.Result != null) { list = e.Result.ToList(); } DtGridStand.ItemsSource = list; dataPagerStand.PageCount = e.pageCount; //try //{ // salaryStandardid = list[0].SALARYSTANDARDID; // LoadSalaryRecordData(); //} //catch (Exception exc) //{ // exc.Message.ToString(); //} } //loadbar.Stop(); }
void client_GetSalaryStandardPagingCompleted(object sender, GetSalaryStandardPagingCompletedEventArgs e) { List<T_HR_SALARYSTANDARD> list = new List<T_HR_SALARYSTANDARD>(); if (e.Error != null) { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message)); } else { if (e.Result != null) { list = e.Result.ToList(); //list = (from a in list.AsQueryable() select a.SALARYSTANDARDID).Intersect(from b in list.AsQueryable() select b.SALARYSTANDARDID); //NumericUpDown nuYear1 = Utility.FindChildControl<NumericUpDown>(expander, "Nuyear"); //NumericUpDown nuStartmounth1 = Utility.FindChildControl<NumericUpDown>(expander, "NuStartmounth"); //client.FilterStandardAsync(nuYear1.Value.ToString(), nuStartmounth1.Value.ToString(),list); DtGridStand.ItemsSource = list; dataPagerStand.PageCount = e.pageCount; //try //{ // salaryStandardid = list[0].SALARYSTANDARDID; // LoadSalaryRecordData(); //} //catch (Exception exc) //{ // exc.Message.ToString(); //} } else { list = null; DtGridStand.ItemsSource = null; } } //loadbar.Stop(); }
void client_GetSalaryStandardPagingCompleted(object sender, GetSalaryStandardPagingCompletedEventArgs e) { List<T_HR_SALARYSTANDARD> list = new List<T_HR_SALARYSTANDARD>(); if (e.Error != null) { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"),Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message)); loadbar.Stop(); } else { if (e.Result != null) { list = e.Result.ToList(); std = e.Result.ToList(); num = std.Count; } DtGridStand.ItemsSource = list; dataPager.PageCount = e.pageCount; if (list.Count > 0) { //selectedStand = list.FirstOrDefault() as T_HR_SALARYSTANDARD; //foreach(var li in list) //{ // //selectedStand = li as T_HR_SALARYSTANDARD; // LoadData(); //} LoadData(); } else loadbar.Stop(); } }
void client_GetSalaryStandardPagingCompleted(object sender, GetSalaryStandardPagingCompletedEventArgs e) { List<T_HR_SALARYSTANDARD> list = new List<T_HR_SALARYSTANDARD>(); if (e.Error != null) { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); loadbar.Stop(); } else { if (e.Result != null) { list = e.Result.ToList(); } DtGridStand.ItemsSource = list; dataPagerStand.PageCount = e.pageCount; if (list.Count > 0) { selectedStandard = list.FirstOrDefault() as T_HR_SALARYSTANDARD; if (treeOrganization.Visibility == Visibility.Collapsed) { LoadDefaultData(); } else { LoadData(); } } else loadbar.Stop(); } }