Ejemplo n.º 1
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 = "";
 }
Ejemplo n.º 2
0
 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();
 }