Exemplo n.º 1
0
        public void setform()
        {
            this.Close();
            String           str = LVFO.Items[LVFO.FocusedItem.Index].SubItems[1].Text;
            DataTable        dt1 = conn.getdataset("select * from FormFormat where isactive=1 and type='" + strfinalarray[0] + "' and setdefault=1");
            DefaultSale      bd  = new DefaultSale(this, master, LVFO.Items[LVFO.FocusedItem.Index].SubItems[3].Text);
            DefaultSaleOrder bd1 = new DefaultSaleOrder(this, master, LVFO.Items[LVFO.FocusedItem.Index].SubItems[3].Text);
            SalePurchaseOrderSimpleformate bd2 = new SalePurchaseOrderSimpleformate(this, master, LVFO.Items[LVFO.FocusedItem.Index].SubItems[3].Text);
            Stockinout bd3 = new Stockinout(this, master, LVFO.Items[LVFO.FocusedItem.Index].SubItems[3].Text);

            //  Sale p = new Sale(this, master, tabControl);

            string[] a = new string[LVFO.CheckedItems.Count];
            string[] b = new string[LVFO.CheckedItems.Count];
            string[] c = new string[LVFO.CheckedItems.Count];
            for (int i = 0, j = 0; i < LVFO.Items.Count; i++)
            {
                //if (LVFO.Items[i].Checked == true)
                //{
                if (Convert.ToBoolean(LVFO.Items[i].Checked) == true)
                {
                    lvid     = LVFO.Items[i].SubItems[8].Text;
                    lvid1    = LVFO.Items[i].SubItems[1].Text;
                    type     = LVFO.Items[i].SubItems[3].Text;
                    clientid = Convert.ToInt32(LVFO.Items[i].SubItems[7].Text);
                    a[j]     = lvid;
                    b[j]     = type;
                    c[j]     = lvid1;
                    j++;
                }
            }
            if (dt1.Rows[0]["formname"].ToString() == bd.Text)
            {
                defaultSale.getdata(a, a, clientid, b, c);
                //   master.AddNewTab(bd);
            }
            else if (dt1.Rows[0]["formname"].ToString() == bd1.Text)
            {
                defaultSaleOrder.getdata(a, a, clientid, b, c);
            }
            else if (dt1.Rows[0]["formname"].ToString() == bd2.Text)
            {
                salePurchaseOrderSimpleformate.getdata(a, a, clientid, b, c);
            }
            else if (dt1.Rows[0]["formname"].ToString() == bd3.Text)
            {
                stockinout.getdata(a, a, clientid, b, c);
            }
            //else if (dt1.Rows[0]["formname"].ToString() == p.Text)
            //{
            //  //  p.updatemode(str, LVFO.Items[LVFO.FocusedItem.Index].SubItems[1].Text, 1);
            // //   master.AddNewTab(p);
            //}
        }
Exemplo n.º 2
0
        public ChargesPnl(TextBox txtcharamt, Stockinout stockinout, string[] strfinalarray)
        {
            // TODO: Complete member initialization

            /*this.txtcharamt = txtcharamt;
             * this.stockinout = stockinout;
             * this.strfinalarray = strfinalarray; */
            InitializeComponent();
            this.txtcharamt    = txtcharamt;
            this.stockinout    = stockinout;
            this.strfinalarray = strfinalarray;
        }
Exemplo n.º 3
0
 public SaleOrder(string p, Stockinout stockinout, string[] strfinalarray)
 {
     // TODO: Complete member initialization
     //this.p = p;
     //this.stockinout = stockinout;
     //this.strfinalarray = strfinalarray;
     InitializeComponent();
     loadpage();
     this.p             = p;
     this.stockinout    = stockinout;
     this.strfinalarray = strfinalarray;
     binddata(p);
 }
Exemplo n.º 4
0
 public PurchaseTypeEntry(Stockinout stockinout, Master master, TabControl tabControl, string activecontroal)
 {
     // TODO: Complete member initialization
     //this.stockinout = stockinout;
     //this.master = master;
     //this.tabControl = tabControl;
     //this.activecontroal = activecontroal;
     InitializeComponent();
     bindgroup();
     bindtaxtype();
     purchaseid      = 1;
     this.stockinout = stockinout;
     this.master     = master;
     this.tabControl = tabControl;
     pvc             = activecontroal;
 }
Exemplo n.º 5
0
        public SaletypeEntry(Stockinout stockinout, Master master, TabControl tabControl, string activecontroal)
        {
            // TODO: Complete member initialization

            /*  this.stockinout = stockinout;
             * this.master = master;
             * this.tabControl = tabControl;
             * this.activecontroal = activecontroal; */
            InitializeComponent();
            this.stockinout = stockinout;
            this.master     = master;
            this.tabControl = tabControl;
            bindgroup();
            bindtaxtype();
            label11.Visible = false;
            pvc             = activecontroal;
        }
Exemplo n.º 6
0
        public ChargesHead(Stockinout stockinout, string p, Master master, TabControl tabControl, string activecontroal)
        {
            // TODO: Complete member initialization

            /* this.stockinout = stockinout;
             * this.p = p;
             * this.master = master;
             * this.tabControl = tabControl;
             * this.activecontroal = activecontroal; */
            InitializeComponent();
            this.stockinout = stockinout;
            this.p          = p;
            this.master     = master;
            this.tabControl = tabControl;
            pageLoad();
            pvc         = activecontroal;
            flagforbind = 1;
        }