Beispiel #1
0
 public void ZReport()
 {
     if (this.bwPOSOperation_BeforeStart())
     {
         this.lState.set_Text("Закрытие смены...");
         this.m_CurrentOperation = POSOperations.ZReport;
         this.bwPOSOperation.RunWorkerAsync();
     }
 }
Beispiel #2
0
 private void bwPOSOperation_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     IskraPOS.IsBusy = false;
     if ((e.Error != null) || (this.m_Error != null))
     {
         if ((this.m_CurrentOperation == POSOperations.PrintPayment) && (this.m_PrintPaymentFailured != null))
         {
             this.m_PrintPaymentFailured();
         }
         this.lState.set_Text(("Ошибка: " + this.m_Error) ?? e.Error.get_Message());
         Messages.ShowError((e.Error == null) ? this.m_Error : e.Error.get_Message());
     }
     else
     {
         this.lState.set_Text("Готово.");
         if ((this.m_CurrentOperation == POSOperations.PrintPayment) && (this.m_PrintPaymentSuccessed != null))
         {
             this.m_PrintPaymentSuccessed();
         }
         this.m_CurrentOperation = POSOperations.None;
     }
 }
Beispiel #3
0
 public void XReport()
 {
     if (this.bwPOSOperation_BeforeStart())
     {
         this.lState.set_Text("Х-отчет...");
         this.m_CurrentOperation = POSOperations.XReport;
         this.bwPOSOperation.RunWorkerAsync();
     }
 }
Beispiel #4
0
 public void ToCash()
 {
     if (this.bwPOSOperation_BeforeStart())
     {
         this.lState.set_Text("Внести в кассу...");
         this.m_CurrentOperation = POSOperations.ToCash;
         this.bwPOSOperation.RunWorkerAsync();
     }
 }
Beispiel #5
0
 public void RebootPOS()
 {
     if (this.bwPOSOperation_BeforeStart())
     {
         this.lState.set_Text("Закрытие...");
         this.m_CurrentOperation = POSOperations.RebootPOS;
         this.bwPOSOperation.RunWorkerAsync();
     }
 }
Beispiel #6
0
 public void PrintPayment(AccountOther account, ObjectList<SpPayment> services, string uno, bool cancelPayment, decimal paymentSumm, decimal commission, bool isUseSlipDoc, VoidDelegate printPaymentSuccessed, VoidDelegate printPaymentFailured)
 {
     try
     {
         if (!this.IsUseFiscalDocument.Value)
         {
             if (printPaymentSuccessed != null)
             {
                 printPaymentSuccessed();
             }
         }
         else if (!this.bwPOSOperation_BeforeStart())
         {
             if (printPaymentFailured != null)
             {
                 printPaymentFailured();
             }
         }
         else
         {
             this.lState.set_Text("Печать чека...");
             this.m_CurrentOperation = POSOperations.PrintPayment;
             this.m_Account = account;
             this.m_AccountServices = services;
             this.m_Uno = uno;
             this.m_PaymentSumm = paymentSumm;
             this.m_Commission = commission;
             this.m_CancelPayment = cancelPayment;
             this.m_PrintPaymentSuccessed = printPaymentSuccessed;
             this.m_PrintPaymentFailured = printPaymentFailured;
             this.m_IsUseSlipDoc = isUseSlipDoc;
             this.bwPOSOperation.RunWorkerAsync();
         }
     }
     catch (System.Exception)
     {
         if (printPaymentFailured != null)
         {
             printPaymentFailured();
         }
         throw;
     }
 }
Beispiel #7
0
 public void FromCash()
 {
     if (this.bwPOSOperation_BeforeStart())
     {
         this.lState.set_Text("Инкасация...");
         this.m_CurrentOperation = POSOperations.FromCash;
         this.bwPOSOperation.RunWorkerAsync();
     }
 }