Beispiel #1
0
        public void reset()
        {
            PRMapping newPRM = new PRMapping(m);

            this.Close();
            newPRM.Show();
            //itemList.Update();
            //itemList.Refresh();
            //radioButton1.Checked = false;
            //radioButton2.Checked = false;
            //radioButton3.Checked = false;
            //radioButton4.Checked = false;
            //requestList.Update();
            //requestList.Refresh();
        }
 public BPAAdd(PRMapping prmapping, string BPAno, string[] requestNoList, string supplierNo, string[] ItemList, string[] QtyList)
 {
     InitializeComponent();
     BPANo.Text     = BPAno;
     this.prmapping = prmapping;
     cnn.Open();
     foreach (string genRequestNo in requestNoList)
     {
         if (RequestNo.Text == "")
         {
             RequestNo.Text += genRequestNo;
         }
         else
         {
             RequestNo.Text += ", " + genRequestNo;
         }
     }
     SupplierNo.Text = supplierNo;
     for (int i = 0; i < ItemList.Length; i++)
     {
         dataGridView1.Rows.Add(ItemList[i].ToString(), QtyList[i].ToString());
     }
 }
Beispiel #3
0
        private void btn2_Click(object sender, EventArgs e)
        {
            switch (deptCode)
            {
            case "PM":
                this.Hide();
                PRMapping prm = new PRMapping(this);
                prm.Show();
                break;

            case "RM":
                this.Hide();
                ViewDeliveryNoteMenu vDN = new ViewDeliveryNoteMenu(this, "RM", restNo);
                vDN.Show();
                break;

            case "AD":
            case "WC":
                this.Hide();
                ViewDeliveryNoteMenu WHvDN = new ViewDeliveryNoteMenu(this, "WC");
                WHvDN.Show();
                break;

            case "AM":
                this.Hide();
                EditMenu em = new EditMenu(this, 1);
                em.Show();
                break;

            case "CM":
                this.Hide();
                Item itm = new Item(this);
                itm.Show();
                break;
            }
        }