Esempio n. 1
0
 private void BtnRemoveSO_Click(object sender, EventArgs e)
 {
     if (LIBUtil.Util.displayMessageBoxYesNo("Hapus SO?"))
     {
         POItem.updateSaleOrderItem((Guid)Util.getSelectedRowValue(gridPOItems, col_gridPOItems_id), null, null);
         populateIncompletePO();
     }
 }
Esempio n. 2
0
 private void gridPOItems_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (Util.isColumnMatch(sender, e, col_gridPOItems_SaleOrderItems_CustomerPONo))
     {
         Sales.SaleOrders_Form form = new Sales.SaleOrders_Form(FormMode.Browse, null);
         Tools.displayForm(form);
         if (form.DialogResult == DialogResult.OK)
         {
             POItem.updateSaleOrderItem((Guid)Util.getSelectedRowValue(sender, col_gridPOItems_id), form.browseItemSelection, form.browseItemDescription);
             populateIncompletePO();
         }
     }
     else if (e.RowIndex > -1 && GlobalData.UserAccount.role != Roles.User)
     {
         Tools.displayForm(new POs.Print_Form((Guid)gridPOItems.Rows[e.RowIndex].Cells[col_gridPOItems_poid.Name].Value));
     }
 }