Exemplo n.º 1
0
        public int getVoucherID(VoucherQuery v)  //to display voucher ID in the label
        {
            VoucherQuery e = v;
            int          i = v.returnVoucherNo();

            return(i);
        }
Exemplo n.º 2
0
        public dynamic VoucherDataControl()     // to show Voucher Table Data
        {
            VoucherQuery voucherQuery = new VoucherQuery();
            var          voucherData  = voucherQuery.DisplayVoucherData();

            return(voucherData);
        }
Exemplo n.º 3
0
        public void showVoucherID()
        {
            VoucherQuery   vm          = new VoucherQuery();
            VoucherControl vController = new VoucherControl();

            int i = vController.getVoucherID(vm);

            VoucherLabel.Text = i.ToString();
            //Console.WriteLine(i);
        }
Exemplo n.º 4
0
        public void InsertIntoVoucherControl(int paidBy, int transactionType, int amount, string narration, DateTime date, string employeeID)
        {
            Voucher voucher = new Voucher()
            {
                Credit           = paidBy,
                Debit            = transactionType,
                AuthenticationBy = employeeID,
                Amount           = amount,
                Narration        = narration,
                VDate            = date
            };
            VoucherQuery voucherQuery = new VoucherQuery();

            voucherQuery.InsertIntoVoucher(paidBy, transactionType, amount, narration, date, employeeID);
        }