Esempio n. 1
0
        void client_GetEmployeePagingCompleted(object sender, GetEmployeePagingCompletedEventArgs e)
        {
            List <SMT.Saas.Tools.PersonnelWS.T_HR_EMPLOYEE> list = new List <SMT.Saas.Tools.PersonnelWS.T_HR_EMPLOYEE>();

            if (e.Error != null && e.Error.Message != "")
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
            }
            else
            {
                if (e.Result != null)
                {
                    list = e.Result.ToList();
                }
                DtGrid.ItemsSource  = list;
                dataPager.PageCount = e.pageCount;
            }
            loadbar.Stop();
        }
Esempio n. 2
0
        void client_GetEmployeePagingCompleted(object sender, GetEmployeePagingCompletedEventArgs e)
        {
            List <SMT.Saas.Tools.PersonnelWS.T_HR_EMPLOYEE> list = new List <SMT.Saas.Tools.PersonnelWS.T_HR_EMPLOYEE>();

            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;
            loadbar.Stop();
        }
Esempio n. 3
0
 void client_GetEmployeePagingCompleted(object sender, GetEmployeePagingCompletedEventArgs e)
 {
     List<SMT.Saas.Tools.PersonnelWS.T_HR_EMPLOYEE> list = new List<SMT.Saas.Tools.PersonnelWS.T_HR_EMPLOYEE>();
     if (e.Error != null && e.Error.Message != "")
     {
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
     }
     else
     {
         if (e.Result != null)
         {
             list = e.Result.ToList();
         }
         DtGrid.ItemsSource = list;
         dataPager.PageCount = e.pageCount;
     }
     loadbar.Stop();
 }
Esempio n. 4
0
 void client_GetEmployeePagingCompleted(object sender, GetEmployeePagingCompletedEventArgs e)
 {
     List<SMT.Saas.Tools.PersonnelWS.T_HR_EMPLOYEE> list = new List<SMT.Saas.Tools.PersonnelWS.T_HR_EMPLOYEE>();
     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;
     loadbar.Stop();
 }
Esempio n. 5
0
 /// <summary>
 /// 获取列表人员后触发事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void client_GetEmployeePagingCompleted(object sender, GetEmployeePagingCompletedEventArgs e)
 {
     List<SMT.Saas.Tools.PersonnelWS.T_HR_EMPLOYEE> list = new List<SMT.Saas.Tools.PersonnelWS.T_HR_EMPLOYEE>();
     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;
         DtGrid.SelectedIndex = 0;
         DtGrid.SelectedItem = DtGrid.SelectedItem;
         //DtGrid.CurrentColumn = DtGrid.Columns[1]; 
     }
 }