Exemple #1
0
 private void Form1_Load(object sender, EventArgs e)
 {
     PartsL = new PartsList();
     PartNoCombo.DataSource = PartsL.ListParts();
     FeetCB.DataSource = cFeet;
     MinConvCB.DataSource = cConvSpeed;
     HangerCB.DataSource = cHangers;
     PartsSelectedCustList.Items.Clear();
     PartsUnSelectedCustList.Items.Clear();
     ColorsL = new ColorsList();
     PartColorCombo.DataSource = ColorsL.ListColors();
     Colors c = new Colors();
     c = ColorsL.SearchColor(PartColorCombo.SelectedItem.ToString());
     powderlbl.Text = c.ColorNumber;
     if (PartsL.PartExists(PartNoCombo.Text))
     {
         Part p1 = PartsL.SearchPart(PartNoCombo.Text);
         PartNoCombo.DataSource =PartsL.ListParts();
         Object2Form(p1);
     }
 }
Exemple #2
0
        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);
            }
        }
Exemple #3
0
 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;
 }
Exemple #4
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
        }