コード例 #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void clientAtt_GetAttendMonthlyBatchBalanceByIDCompleted(object sender, GetAttendMonthlyBatchBalanceByIDCompletedEventArgs e)
 {
     try
     {
         if (e.Error == null)
         {
             if (e.Result == null)
             {
                 Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ISNOT"));
                 return;
             }
             AttendMonthlyBatchBalance = e.Result;
             this.DataContext          = AttendMonthlyBatchBalance;
             BalanceObjectType         = AttendMonthlyBatchBalance.BALANCEOBJECTTYPE;
             BalanceObjectValue        = AttendMonthlyBatchBalance.BALANCEOBJECTID;
             CheckState            = AttendMonthlyBatchBalance.CHECKSTATE;
             txtBalanceYear.Text   = AttendMonthlyBatchBalance.BALANCEYEAR.Value.ToString();
             nudBalanceMonth.Value = AttendMonthlyBatchBalance.BALANCEMONTH.Value.ToDouble();
             SetBalanceObject();
         }
         else
         {
             Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
         }
     }
     catch (Exception ex)
     {
         RefreshUI(RefreshedTypes.HideProgressBar);
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(ex.Message));
     }
 }
コード例 #2
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void clientAtt_GetAttendMonthlyBatchBalanceByIDCompleted(object sender, GetAttendMonthlyBatchBalanceByIDCompletedEventArgs e)
 {
     try
     {
         if (e.Error == null)
         {
             if (e.Result == null)
             {
                  Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ISNOT"));
                 return;
             }
                 AttendMonthlyBatchBalance = e.Result;
                 this.DataContext = AttendMonthlyBatchBalance;
                 BalanceObjectType = AttendMonthlyBatchBalance.BALANCEOBJECTTYPE;
                 BalanceObjectValue = AttendMonthlyBatchBalance.BALANCEOBJECTID;
                 CheckState = AttendMonthlyBatchBalance.CHECKSTATE;
                 txtBalanceYear.Text = AttendMonthlyBatchBalance.BALANCEYEAR.Value.ToString();
                 nudBalanceMonth.Value = AttendMonthlyBatchBalance.BALANCEMONTH.Value.ToDouble();
                 SetBalanceObject();
             }
         else
         {
             Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
         }
     }
     catch (Exception ex)
     {
         RefreshUI(RefreshedTypes.HideProgressBar);
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(ex.Message));
     }
 }