Ejemplo n.º 1
0
 private void btn6_Click(object sender, EventArgs e)
 {
     switch (deptCode)
     {
     case "WC":
     case "PM":
     case "CM":
     case "AD":
     case "RM":
         this.Hide();
         EditAc eac = new EditAc(deptCode, StaffNo, this);
         eac.Show();
         break;
     }
 }
Ejemplo n.º 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (listViewUser.SelectedItems.Count >= 1 || listViewRest.SelectedItems.Count >= 1)
     {
         if (target == 0)
         {
             EditAc ea = new EditAc(listViewUser.SelectedItems[0].SubItems[3].Text, "AM", listViewUser.SelectedItems[0].SubItems[0].Text, this);
             this.Hide();
             ea.Show();
         }
         else
         {
             EditRest er = new EditRest(listViewRest.SelectedItems[0].SubItems[0].Text, this);
             this.Hide();
             er.Show();
         }
     }
     else
     {
         MessageBox.Show("Please select the target \n that you want to edit.", "Select Target!", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }
Ejemplo n.º 3
0
        private void btn4_Click(object sender, EventArgs e)
        {
            switch (deptCode)
            {
            case "AD":
                this.Hide();
                EditAc eac = new EditAc(deptCode, StaffNo, this);
                eac.Show();
                break;

            case "WC":
                this.Hide();
                WHPurchaseOrder WHPO = new WHPurchaseOrder(this);
                WHPO.Show();
                break;

            case "RM":
                confirmRequest confirmRequest = new confirmRequest("R001");
                confirmRequest.Show();
                break;
            }
        }