예제 #1
0
        private void btnNewBill_Click(object sender, EventArgs e)
        {
            PurchaseOrderEntry frmpurchaseOrderEntry = new PurchaseOrderEntry();

            frmpurchaseOrderEntry.OnClose += GenerateOrderList;
            frmpurchaseOrderEntry.Show(this);
        }
예제 #2
0
 private void dgvBills_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (dgvBills.SelectedCells.Count > 0 && e.RowIndex != -1 && dgvBills.Columns[e.ColumnIndex].Name != "Action")
     {
         if (UserTools._IsEdit)
         {
             string             orderID          = dgvBills.CurrentRow.Cells["OrderID"].Value.ToString();
             string             status           = dgvBills.CurrentRow.Cells["Status"].Value.ToString();
             string             StatusForchallan = dgvBills.CurrentRow.Cells["StatusForchallan"].Value.ToString();
             PurchaseOrderEntry frmOrderEntry    = new PurchaseOrderEntry(orderID, status, StatusForchallan);
             frmOrderEntry.OnClose += GenerateOrderList;
             frmOrderEntry.ShowDialog();
         }
         else
         {
             MessageBox.Show("Permission Denied", "Edit", MessageBoxButtons.OK, MessageBoxIcon.Stop);
         }
     }
 }