public int getVoucherID(VoucherQuery v) //to display voucher ID in the label { VoucherQuery e = v; int i = v.returnVoucherNo(); return(i); }
public dynamic VoucherDataControl() // to show Voucher Table Data { VoucherQuery voucherQuery = new VoucherQuery(); var voucherData = voucherQuery.DisplayVoucherData(); return(voucherData); }
public void showVoucherID() { VoucherQuery vm = new VoucherQuery(); VoucherControl vController = new VoucherControl(); int i = vController.getVoucherID(vm); VoucherLabel.Text = i.ToString(); //Console.WriteLine(i); }
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); }