Exemplo n.º 1
0
 void client_GetEmployeeCustomRecordOneCompleted(object sender, GetEmployeeCustomRecordOneCompletedEventArgs e)
 {
     if (e.Error == null)
     {
         if (e.Result != null)
         {
             List <T_HR_CUSTOMGUERDONRECORD> salaryrecordlast = new List <T_HR_CUSTOMGUERDONRECORD>();
             txtbtitle.Text = Utility.GetResourceStr("SALARYLAST") + ":";
             salaryrecordlast.Add(e.Result);
             DGSalary2.ItemsSource = salaryrecordlast;
         }
         else
         {
             DGSalary2.Visibility = Visibility.Collapsed;
         }
     }
     else
     {
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
     }
 }
Exemplo n.º 2
0
        void client_GetEmployeeCustomRecordOneCompleted(object sender, GetEmployeeCustomRecordOneCompletedEventArgs e)
        {


            if (e.Error == null)
            {
                if (e.Result != null)
                {
                    List<T_HR_CUSTOMGUERDONRECORD> salaryrecordlast = new List<T_HR_CUSTOMGUERDONRECORD>();
                    txtbtitle.Text = Utility.GetResourceStr("SALARYLAST") + ":";
                    salaryrecordlast.Add(e.Result);
                    DGSalary2.ItemsSource = salaryrecordlast;
                }
                else
                {
                    DGSalary2.Visibility = Visibility.Collapsed;
                }
            }
            else
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
            }
        }