Beispiel #1
0
        public void WriteReceipt()
        {
            ParametersCollection varParameters = new ParametersCollection();

            varParameters.Add("parIdWorkplace", GlobalVar.varIdWorkPlace, DbType.Int32);
            varParameters.Add("parCodePeriod", varReceipt.varCodePeriod, DbType.Int32);
            varParameters.Add("parCodeReceipt", varReceipt.varCodeReceipt, DbType.Int32);

            varParameters.Add("parStateReceipt", 1, DbType.Int32);
            varParameters.Add("parSumReceipt", varReceipt.varSumReceipt, DbType.Decimal);
            varParameters.Add("parVatReceipt", varReceipt.varVatReceipt, DbType.Decimal);

            varParameters.Add("parSumCash", varReceipt.varSumCash, DbType.Decimal);
            varParameters.Add("parSumCreditCard", varReceipt.varSumCreditCard, DbType.Decimal);
            varParameters.Add("parCodeCreditCard", varReceipt.varCodeCreditCard, DbType.Int64);
            varParameters.Add("parNumberSlip", varReceipt.varNumberSlip, DbType.Int64);
            varWDB.CloseReceipt(varParameters);
            Global.Log(CodeEvent.CloseReceipt);
        }
Beispiel #2
0
        void PrintReceipt()
        {
            //Друк чека!!!
            //varEKKA.p
            //Збереження роздукованого чека
            ParametersCollection varParameters = new ParametersCollection();

            varParameters.Add("parIdWorkplace", GlobalVar.varIdWorkPlace, DbType.Int32);
            varParameters.Add("parCodePeriod", varReceipt.varCodePeriod, DbType.Int32);
            varParameters.Add("parCodeReceipt", varReceipt.varCodeReceipt, DbType.Int32);

            varParameters.Add("parStateReceipt", 1, DbType.Int32);
            varParameters.Add("parSumReceipt", varReceipt.varSumReceipt, DbType.Decimal);
            varParameters.Add("parVatReceipt", varReceipt.varVatReceipt, DbType.Decimal);

            varParameters.Add("parSumCash", varReceipt.varSumCash, DbType.Decimal);
            varParameters.Add("parSumCreditCard", varReceipt.varSumCreditCard, DbType.Decimal);
            varParameters.Add("parCodeCreditCard", varReceipt.varCodeCreditCard, DbType.Int64);
            varParameters.Add("parNumberSlip", varReceipt.varNumberSlip, DbType.Int64);
            varWDB.CloseReceipt(varParameters);
            Global.Log(CodeLog.CloseReceipt);
            NewReceipt();             //Відкримаємо новий чек.
        }