private void AutogenerateItemno() { Autogenerateclass a1 = new Autogenerateclass(); int i = a1.Autogenerateid("items"); ino = ino + i; txtitemno.Text = ino; }
private void AutogenerateEmpno() { Autogenerateclass a1 = new Autogenerateclass(); int i = a1.Autogenerateid("employee"); eno = eno + i; txteno.Text = eno; }
private void AutogenerateStockid() { Autogenerateclass a1 = new Autogenerateclass(); int i = a1.Autogenerateid("stocktransaction"); sid = sid + i; textBox1.Text = sid; }
private void AutogenerateItemtypeno() { Autogenerateclass a1 = new Autogenerateclass(); int i = a1.Autogenerateid("itemmaster"); itemtyno = itemtyno + i; //string+index txttypeno.Text = itemtyno; }
private void AdditemTypes() { Autogenerateclass a1 = new Autogenerateclass(); DataSet ds = a1.BinditemTypes(); cbitemtype.DataSource = ds.Tables[0]; cbitemtype.DisplayMember = "itype"; cbitemtype.ValueMember = "ityno"; }
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"; }