Example #1
0
 private void toolStripButton4_Click(object sender, EventArgs e)
 {
     if (ProdListV.SelectedItems.Count == 1)
     {
         if (ProdListV.SelectedItems[0].SubItems[2].Text != "Completed")
         {
             Transaction.CheckedInFrm frm = new Transaction.CheckedInFrm();
             frm.MdiParent = MdiParent;
             frm.POid      = Convert.ToInt16(ProdListV.SelectedItems[0].Text);
             frm.Show();
             loadInformation();
         }
         else
         {
             MessageBox.Show("Cannot edit completed transaction.");
         }
     }
     else
     {
         Transaction.ReleaseFrm frm = new Transaction.ReleaseFrm();
         frm.MdiParent = MdiParent;
         frm.Show();
     }
     loadInformation();
 }
Example #2
0
 private void toolStripButton4_Click(object sender, EventArgs e)
 {
     Transaction.ReleaseFrm frm = new Transaction.ReleaseFrm();
     frm.MdiParent = MdiParent;
     if (ProdListV.SelectedItems.Count == 1)
     {
         int index = Convert.ToInt32(ProdListV.SelectedItems[0].Text);
         frm.OrderId = index;
     }
     else
     {
         frm.OrderId = 0;
     }
     frm.isView = false;
     frm.Show();
     loadinformation();
 }