Example #1
0
 public void open()
 {
     if (LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[3].Text == "Cheque Issued")
     {
         String    str = LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[11].Text;
         BankEntry be  = new BankEntry(master, tabControl);
         be.updatemode(str, LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[3].Text);
         master.AddNewTab(be);
     }
     else if (LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[3].Text == "Draft Issued")
     {
         String    str = LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[11].Text;
         BankEntry be  = new BankEntry(master, tabControl);
         be.updatemode(str, LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[3].Text);
         master.AddNewTab(be);
     }
     else if (LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[3].Text == "Cheque/Draft/Rtgs Received")
     {
         String    str = LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[11].Text;
         BankEntry be  = new BankEntry(master, tabControl);
         be.updatemode(str, LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[3].Text);
         master.AddNewTab(be);
     }
     else if (LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[3].Text == "Deposit Cash Into Bank")
     {
         String    str = LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[11].Text;
         BankEntry be  = new BankEntry(master, tabControl);
         be.updatemode(str, LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[3].Text);
         master.AddNewTab(be);
     }
     else if (LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[3].Text == "Withdraw Cash from Bank")
     {
         String    str = LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[11].Text;
         BankEntry be  = new BankEntry(master, tabControl);
         be.updatemode(str, LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[3].Text);
         master.AddNewTab(be);
     }
     else if (LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[3].Text == "Bank Expenses")
     {
         String    str = LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[11].Text;
         BankEntry be  = new BankEntry(master, tabControl);
         be.updatemode(str, LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[3].Text);
         master.AddNewTab(be);
     }
     else if (LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[3].Text == "Online Transfer")
     {
         String    str = LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[11].Text;
         BankEntry be  = new BankEntry(master, tabControl);
         be.updatemode(str, LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[3].Text);
         master.AddNewTab(be);
     }
     //String str = LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[11].Text;
     //DebitandCreditNote be = new DebitandCreditNote(master, tabControl);
     //be.updatemode(str, LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[3].Text,debitorcredit);
     //master.AddNewTab(be);
 }
Example #2
0
 public SelectBankBills(TextBox txtAmount, DataTable dt, object p, string p_2, BankEntry bankEntry, string btntype, string billno1)
 {
     // TODO: Complete member initialization
     InitializeComponent();
     this.txtAmount = txtAmount;
     this.dt        = dt;
     this.p         = p;
     this.p_2       = p_2;
     this.bankEntry = bankEntry;
     buttontype     = btntype;
     billno         = billno1;
 }