Example #1
0
        void client_EmployeeContractPagingCompleted(object sender, EmployeeContractPagingCompletedEventArgs e)
        {
            loadbar.Stop();
            List <T_HR_EMPLOYEECONTRACT> list = new List <T_HR_EMPLOYEECONTRACT>();

            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
            {
                if (e.Result != null)
                {
                    list = e.Result.ToList();
                }
                DtGrid.ItemsSource  = list;
                dataPager.PageCount = e.pageCount;
            }
            ToolBar.btnRefresh.IsEnabled = true;
        }
Example #2
0
        void client_EmployeeContractPagingCompleted(object sender, EmployeeContractPagingCompletedEventArgs e)
        {
            loadbar.Stop();
            List<T_HR_EMPLOYEECONTRACT> list = new List<T_HR_EMPLOYEECONTRACT>();
            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
            {
                if (e.Result != null)
                {
                    list = e.Result.ToList();
                }
                DtGrid.ItemsSource = list;
                dataPager.PageCount = e.pageCount;
            }
            ToolBar.btnRefresh.IsEnabled = true;
        }
Example #3
0
 //void Client_PensionMasterPagingCompleted(object sender, PensionMasterPagingCompletedEventArgs e)
 //{
 //    List<T_HR_PENSIONMASTER> list = new List<T_HR_PENSIONMASTER>();
 //    if (e.Error != null && e.Error.Message != string.Empty)
 //    {
 //         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"),Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); 
 //    }
 //    else
 //    {
 //        if (e.Result != null)
 //        {
 //            list = e.Result.ToList();
 //            tabPension.DataContext = list[0];
 //        }
 //        //DtGrid.ItemsSource = list;
 //        //dataPager.PageCount = e.pageCount;
 //    }
 //}
 /// <summary>
 /// 合同
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void Client_EmployeeContractPagingCompleted(object sender, EmployeeContractPagingCompletedEventArgs e)
 {
     ListContract = null;
     if (e.Error != null && e.Error.Message != string.Empty)
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
     }
     else
     {
         if (e.Result != null)
         {
             ListContract = e.Result.Where(s => s.CHECKSTATE == "2").ToList();//条件为2,审核通过
         }
         DtGrid.ItemsSource = ListContract;
         dataPagerContract.PageCount = e.pageCount;
     }
 }