示例#1
0
 void clientAtt_ImportAttendMonthlyBalanceForShowCompleted(object sender, ImportAttendMonthlyBalanceForShowCompletedEventArgs e)
 {
     if (e.Error == null)
     {
         if (e.Result != null)
         {
             ListBalance = e.Result;
             this.LoadData(ListBalance.ToList());
         }
         else
         {
             ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CAUTION"), "没有导入的数据",
                                            Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
             return;
         }
     }
     else
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CAUTION"), "导入月度考勤结算记录失败",
                                        Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
         return;
     }
 }
示例#2
0
        void clientAtt_ImportAttendMonthlyBalanceForShowCompleted(object sender, ImportAttendMonthlyBalanceForShowCompletedEventArgs e)
        {
            if (e.Error == null)
            {

                if (e.Result != null)
                {
                    ListBalance = e.Result;
                    this.LoadData(ListBalance.ToList());
                }
                else
                {
                    ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CAUTION"), "没有导入的数据",
                    Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
                    return;
                }
            }
            else
            {
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CAUTION"), "导入月度考勤结算记录失败",
                Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
                return;
            }
        }