private void frmIventoryRepair_Load(object sender, EventArgs e) { DataTable dt = bllss4.getAllPart(); foreach (DataRow dr in dt.Rows) { comboBox1.Items.Add(dr[1]); } DataTable dt1 = bllss4.getAllTranSactionTypes(); foreach (DataRow dr in dt1.Rows) { comboBox2.Items.Add(dr[1]); } DataTable dt2 = bllss4.getAllWareHouses(); foreach (DataRow dr in dt2.Rows) { comboBox4.Items.Add(dr[1]); } addValuecbb5(); comboBox1.SelectedText = partName; comboBox2.SelectedText = transactionType; txtAmount.SelectedText = amount.ToString(); comboBox4.SelectedText = source; comboBox5.SelectedText = destination; }
private void Warehouse_Management_Load(object sender, EventArgs e) { DataTable dt = bllss4.getAllWareHouses(); comboBox1.DataSource = dt; comboBox1.DisplayMember = "WareHouseName"; comboBox1.ValueMember = "ID"; DataTable dt1 = bllss4.getAllWareHouses(); comboBox2.DataSource = dt1; comboBox2.DisplayMember = "WareHouseName"; comboBox2.ValueMember = "ID"; }
private void frmIventoryReport_Load(object sender, EventArgs e) { DataTable dt1 = bllss4.getAllWareHouses(); comboBox1.DataSource = dt1; comboBox1.DisplayMember = "WareHouseName"; comboBox1.ValueMember = "ID"; dt2 = bllss4.getIventoryReport(int.Parse(comboBox1.SelectedValue.ToString())); dataGridView1.DataSource = dt2; }
public void frmIventory_Load(object sender, EventArgs e) { dtAll = bllss4.getAllOrders(); dataGridView1.DataSource = dtAll; DataView view = dtAll.DefaultView; view.Sort = "OrderDate ASC, TranSactionName ASC"; DataTable dt1 = bllss4.getAllWareHouses(); AmountColor(); }
private void frmPurchaseOrder_Load(object sender, EventArgs e) { DataTable dt = bllss4.getAllSuppliers(); comboBox1.DataSource = dt; comboBox1.DisplayMember = "SupplyName"; comboBox1.ValueMember = "ID"; DataTable dt1 = bllss4.getAllWareHouses(); comboBox2.DataSource = dt1; comboBox2.DisplayMember = "WareHouseName"; comboBox2.ValueMember = "ID"; DataTable dt2 = bllss4.getAllPart(); comboBox3.DataSource = dt2; comboBox3.DisplayMember = "PartName"; comboBox3.ValueMember = "ID"; textBox1.Enabled = false; }