Exemplo n.º 1
0
 public InventoryForm()
 {
     invComment = "";
     openList = new POList("OPEN");
     openInv = new POList("OPEN_INV");
     InitializeComponent();
 }
Exemplo n.º 2
0
 public POSelForm(string partno, int custid,string cname)
 {
     cList = new CustomerList();
     CustID =custid;
     PartNum = partno;
     InitializeComponent();
     pList = new POList("OPEN");
 }
Exemplo n.º 3
0
 public ShippingForm()
 {
     Shippers = new ShippersList();
     shipComment = "";
     shipList = new POList("INV");
     openInv = new POList("OPEN_INV");
     InitializeComponent();
     ShipViaCombo.DataSource = Shippers.ListShippers();
 }
Exemplo n.º 4
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;
 }
Exemplo n.º 5
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 = "";
 }
Exemplo n.º 6
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();
 }