private void CustCombo_SelectedIndexChanged(object sender, EventArgs e) { Customer TCust = CustList.SearchCustomer(CustCombo.Text); custNameLbl.Text = TCust.CustName; PartList = new PartsList(); PartCombo.DataSource = PartList.GetCustParts(TCust.ID); if (PartCombo.Items.Count == 0) { ClearRcv(sender, e); } }
private void Form3_Load(object sender, EventArgs e) { CustList = new CustomerList(); CustCombo.DataSource = CustList.ListCustomers(); Customer TCust = CustList.SearchCustomer(CustCombo.Text); custNameLbl.Text = TCust.CustName; PartList = new PartsList(); PartCombo.DataSource = PartList.GetCustParts(TCust.ID); POL = new POList(); cid = 0; }
private void comboBox4_SelectedIndexChanged(object sender, EventArgs e) { BillShipList BSList; Customer TCust = CustList.SearchCustomer(CustCombo.Text); BSList = new BillShipList(TCust.ID); BillToCombo.DataSource = BSList.ListBilling(); AddrCombo.DataSource = BSList.ListShipping(); custNamelbl.Text = TCust.CustName; PartList = new PartsList(); PartCombo.DataSource = PartList.GetCustParts(TCust.ID); if (PartCombo.Items.Count == 0) { PartCombo.Text = ""; ClearCount(sender, e); clearINVPOlist(); } //Get ShipVia Box }