public ViewPO(string customer) { po = new PO(customer); InitializeComponent(); grpPO.Visible = false; txtCustomer.Text = OrderInfo.getNameFromId(customer); buildLists(); }
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")); } }