Esempio n. 1
0
        public void NewReceipt()
        {
            varClient.Clear();
            SetDefaultClient();
            varReceipt.SetReceipt(varWDB.GetCodeReceipt());


            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("parDateReceipt", varReceipt.varDateReceipt, DbType.DateTime);
            varParameters.Add("parCodeWarehouse", GlobalVar.varCodeWarehouse, DbType.Int32);
            varParameters.Add("parCodePattern", varReceipt.varCodePattern, DbType.Int32);
            varParameters.Add("parCodeClient", varClient.varCodeClient, DbType.Int32);
            varParameters.Add("parNumberCashier", varUser.varCodeUser, DbType.Int32);
            varParameters.Add("parUserCreate", varUser.varCodeUser, DbType.Int32);

            varWDB.AddReceipt(varParameters);

            Global.Log(CodeEvent.NewReceipt, varReceipt.varCodePeriod, varReceipt.varCodeReceipt, varReceipt.varDateReceipt.ToString());
        }