Esempio n. 1
0
        private void SaveUpToDateReceiptNo(ACMSDAL.ConnectionProvider connProvider, DataTable branchReceiptNoTable)
        {
            TblBranchReceiptNo branchReceiptNo = new TblBranchReceiptNo();
            branchReceiptNo.MainConnectionProvider = connProvider;

            branchReceiptNo.SaveData(branchReceiptNoTable);
        }
Esempio n. 2
0
        private int GetLatestReceiptNo(ACMSDAL.ConnectionProvider connProvider, ACMSLogic.POS pos, ref DataTable branchReceiptNoTable)
        {
            TblBranchReceiptNo branchReceiptNo = new TblBranchReceiptNo();
            branchReceiptNo.MainConnectionProvider = connProvider;
            branchReceiptNoTable = branchReceiptNo.GetLatestReceiptNo(pos.StrBranchCode, pos.NTerminalID);

            int receiptNo = 0;
            if (branchReceiptNoTable.Rows.Count > 0)
            {
                receiptNo = ACMS.Convert.ToInt32(branchReceiptNoTable.Rows[0]["nReceiptNo"]);
            }
            return receiptNo;
        }