示例#1
0
 /// <summary>
 /// 加载选择公司员工档案信息进行预览
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void perClient_GetEmployeeByCompanyIDCompleted(object sender, GetEmployeeByCompanyIDCompletedEventArgs e)
 {
     try
     {
         if (e.Error != null && e.Error.Message != "")
         {
             ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), e.Error.Message, Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
             return;
         }
         DtGrid.ItemsSource = e.Result;
         RefreshUI(RefreshedTypes.HideProgressBar);
     }
     catch (Exception ex)
     {
         RefreshUI(RefreshedTypes.HideProgressBar);
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), ex.ToString(), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
     }
 }
示例#2
0
 /// <summary>
 /// 加载选择公司员工档案信息进行预览
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void perClient_GetEmployeeByCompanyIDCompleted(object sender, GetEmployeeByCompanyIDCompletedEventArgs e)
 {
     try
     {
         if (e.Error != null && e.Error.Message != "")
         {
             ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), e.Error.Message, Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
             return;
         }
         DtGrid.ItemsSource = e.Result;
         RefreshUI(RefreshedTypes.HideProgressBar);
     }
     catch (Exception ex)
     {
         RefreshUI(RefreshedTypes.HideProgressBar);
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), ex.ToString(), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
     }
 }