Ejemplo n.º 1
0
 void clientAtt_GetAbnormRecordRdListByMultSearchCompleted(object sender, GetAbnormRecordRdListByMultSearchCompletedEventArgs e)
 {
     try
     {
         if (e.Error == null)
         {
             if (outExcell)
             {
                 OutCsventList = e.Result;
             }
             else
             {
                 IEnumerable <T_HR_EMPLOYEEABNORMRECORD> entList = e.Result;
                 dgAbnormRecordList.ItemsSource = entList;
                 dataPager.PageCount            = e.pageCount;
             }
         }
         else
         {
             Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message.ToString());
         }
     }
     catch (Exception ex)
     {
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.Message.ToString());
     }
     finally
     {
         loadbar.Stop();
     }
 }
Ejemplo n.º 2
0
        void clientAtt_GetAbnormRecordRdListByMultSearchCompleted(object sender, GetAbnormRecordRdListByMultSearchCompletedEventArgs e)
        {
            try
            {
                if (e.Error == null)
                {
                    if (outExcell)
                    {
                        OutCsventList = e.Result;
                    }
                    else
                    {

                        IEnumerable<T_HR_EMPLOYEEABNORMRECORD> entList = e.Result;
                        dgAbnormRecordList.ItemsSource = entList;
                        dataPager.PageCount = e.pageCount;
                    }
                }
                else
                {
                    Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message.ToString());
                }
            }
            catch (Exception ex)
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.Message.ToString());
            }
            finally
            {
                loadbar.Stop();
            }

        }