Exemple #1
0
        private void AutogenerateItemno()
        {
            Autogenerateclass a1 = new Autogenerateclass();
            int i = a1.Autogenerateid("items");

            ino            = ino + i;
            txtitemno.Text = ino;
        }
Exemple #2
0
        private void AutogenerateEmpno()
        {
            Autogenerateclass a1 = new Autogenerateclass();
            int i = a1.Autogenerateid("employee");

            eno         = eno + i;
            txteno.Text = eno;
        }
Exemple #3
0
        private void AutogenerateStockid()
        {
            Autogenerateclass a1 = new Autogenerateclass();
            int i = a1.Autogenerateid("stocktransaction");

            sid           = sid + i;
            textBox1.Text = sid;
        }
Exemple #4
0
        private void AutogenerateItemtypeno()
        {
            Autogenerateclass a1 = new Autogenerateclass();
            int i = a1.Autogenerateid("itemmaster");

            itemtyno       = itemtyno + i; //string+index
            txttypeno.Text = itemtyno;
        }
Exemple #5
0
        private void AdditemTypes()
        {
            Autogenerateclass a1 = new Autogenerateclass();
            DataSet           ds = a1.BinditemTypes();

            cbitemtype.DataSource    = ds.Tables[0];
            cbitemtype.DisplayMember = "itype";
            cbitemtype.ValueMember   = "ityno";
        }
Exemple #6
0
        private void cbitemtypes_SelectedIndexChanged(object sender, EventArgs e)
        {
            Autogenerateclass a1 = new Autogenerateclass();
            DataSet           ds = a1.Binditemnames(cbitemtype.SelectedValue.ToString());

            cbitemtype.DataSource   = ds.Tables[0];
            comboBox2.DisplayMember = "iname";
            comboBox2.ValueMember   = "ino";
        }