예제 #1
0
 public ViewPO(string customer)
 {
     po = new PO(customer);
     InitializeComponent();
     grpPO.Visible = false;
     txtCustomer.Text = OrderInfo.getNameFromId(customer);
     buildLists();
 }
예제 #2
0
        public ViewPO(string pono, string mode)
        {
            po = new PO(pono, mode);
            InitializeComponent();
            buildLists();
            txtCustomer.Text = OrderInfo.getNameFromId(po.CustID);
            btnCreatePO.Visible = false;
            datePoDate.Value = po.PO_Date;
            txtPoNo.Text = po.PO_No;
            cmbPOStatus.Text = po.PO_Status;
            foreach(Job j in po.associatedJobs)
            {
                listAssociatedJobs.Items.Add(j.JobID);
                listJobs.Items.Add(j.JobID);
            }

            foreach(JobRun jr in po.jobRuns)
            {
                listJobRuns.Items.Add("" + jr.RunID + ", " + jr.JobID + ", " + jr.ShipDate.ToString("MM-dd-yyyy"));
            }


        }