Beispiel #1
0
 public ChargesPnl(TextBox txtcharamt, GSTVouchers gSTVouchers, string[] strfinalarray)
 {
     // TODO: Complete member initialization
     InitializeComponent();
     this.txtcharamt    = txtcharamt;
     this.gSTVouchers   = gSTVouchers;
     this.strfinalarray = strfinalarray;
 }
Beispiel #2
0
 public ChargesHead(GSTVouchers gSTVouchers, string p, Master master, TabControl tabControl, string activecontroal)
 {
     // TODO: Complete member initialization
     InitializeComponent();
     this.gSTVouchers = gSTVouchers;
     this.p           = p;
     this.master      = master;
     this.tabControl  = tabControl;
     pageLoad();
     pvc         = activecontroal;
     flagforbind = 1;
 }
Beispiel #3
0
 public void setform()
 {
     try
     {
         this.Enabled = false;
         String str      = LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[4].Text;
         int    clientid = Convert.ToInt32(LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[9].Text);
         string billtype = LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[10].Text;
         if (billtype == "S")
         {
             strfinalarray = new string[5] {
                 "S", "D", "GSTVOUCHERS", "S", ""
             };
         }
         else if (billtype == "SR")
         {
             strfinalarray = new string[5] {
                 "SR", "C", "GSTVOUCHERSR", "SR", ""
             };
         }
         else if (billtype == "P")
         {
             strfinalarray = new string[5] {
                 "P", "C", "GSTVOUCHERP", "P", ""
             };
         }
         else if (billtype == "PR")
         {
             strfinalarray = new string[5] {
                 "PR", "D", "GSTVOUCHERPR", "PR", ""
             };
         }
         else if (billtype == "DN")
         {
             strfinalarray = new string[5] {
                 "DN", "D", "GSTVOUCHERDN", "DN", ""
             };
         }
         else if (billtype == "CN")
         {
             strfinalarray = new string[5] {
                 "CN", "C", "GSTVOUCHERCN", "CN", ""
             };
         }
         else if (billtype == "EXP")
         {
             strfinalarray = new string[5] {
                 "EXP", "D", "GSTVOUCHEREXP", "EXP", ""
             };
         }
         //   bd = new DefaultSale(this, master, tabControl, strfinalarray);
         GSTVouchers gs = new GSTVouchers(this, master, tabControl, strfinalarray);
         gs.updatemode(str, LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[4].Text, clientid, strfinalarray);
         master.AddNewTab(gs);
     }
     catch
     {
     }
     finally
     {
         this.Enabled = true;
     }
 }
Beispiel #4
0
        private void btnnew_Click(object sender, EventArgs e)
        {
            GSTVouchers gs = new GSTVouchers(master, tabControl);

            master.AddNewTab(gs);
        }