Exemple #1
0
 void client_GetEmployeeSurveyAppByCheckstateAndDateCompleted(object sender, GetEmployeeSurveyAppByCheckstateAndDateCompletedEventArgs e)
 {
     RefreshUI(RefreshedTypes.HideProgressBar);
     if (e.Error != null)
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("GETDATAFAILED"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
         return;
     }
     if (e.Result == null)
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("TIPS"), Utility.GetResourceStr("NOTFOUNDDATAOFMATCHCONDITION"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Information);
         return;
     }
     employeeAppList      = new ObservableCollection <V_EmployeeSurveyApp>();
     employeeAppList      = e.Result as ObservableCollection <V_EmployeeSurveyApp>;
     dgScheme.ItemsSource = null;
     dgScheme.ItemsSource = employeeAppList;
 }
Exemple #2
0
 void client_GetEmployeeSurveyAppByCheckstateAndDateCompleted(object sender, GetEmployeeSurveyAppByCheckstateAndDateCompletedEventArgs e)
 {
     RefreshUI(RefreshedTypes.HideProgressBar);
     if (e.Error != null)
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("GETDATAFAILED"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
         return;
     }
     if (e.Result == null)
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("TIPS"), Utility.GetResourceStr("NOTFOUNDDATAOFMATCHCONDITION"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Information);
         return;
     }
     employeeAppList = new ObservableCollection<V_EmployeeSurveyApp>();
     employeeAppList = e.Result as ObservableCollection<V_EmployeeSurveyApp>;
     dgScheme.ItemsSource = null;
     dgScheme.ItemsSource = employeeAppList;
    }