public InventoryForm() { invComment = ""; openList = new POList("OPEN"); openInv = new POList("OPEN_INV"); InitializeComponent(); }
public POSelForm(string partno, int custid,string cname) { cList = new CustomerList(); CustID =custid; PartNum = partno; InitializeComponent(); pList = new POList("OPEN"); }
public ShippingForm() { Shippers = new ShippersList(); shipComment = ""; shipList = new POList("INV"); openInv = new POList("OPEN_INV"); InitializeComponent(); ShipViaCombo.DataSource = Shippers.ListShippers(); }
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 popinvlist() { int CustID; string PartNum; ShipTotals st = new ShipTotals(); shipList = new POList("INV"); openInv = new POList("OPEN_INV"); Customer TCust = CustList.SearchCustomer(CustCombo.Text); CustID = TCust.ID; PartNum = PartCombo.Text; foreach (PO po in shipList.GetMatchingPOs(CustID, PartNum)) { st.AddPO(po); PopGrid(po); } foreach (PO po in openInv.GetMatchingPOs(CustID, PartNum)) { st.AddPO(po); PopGrid(po); } ShippedQtyLbl.Text = st.ShippedQty.ToString(); ShipOnHandQtyLbl.Text = st.OnHandQty.ToString(); ShipInitRcvQty.Text = st.InitRcvQty.ToString(); BackOrderlbl.Text = st.BackOrderQty.ToString(); LastShipLbl.Text = ""; }
private void popinvlist() { int totalavqty = 0; int CustID; string PartNum; openList = new POList("OPEN"); openInv = new POList("OPEN_INV"); Customer TCust = CustList.SearchCustomer(CustCombo.Text); CustID = TCust.ID; PartNum = PartCombo.Text; foreach (PO po in openList.GetMatchingPOs(CustID, PartNum)) { totalavqty += PopGrid(po); } foreach (PO po in openInv.GetMatchingPOs(CustID, PartNum)) { totalavqty += PopGrid(po); } TquanAvail.Text = totalavqty.ToString(); }