private void Iddl_SaleOrderItems_isBrowseMode_Clicked(object sender, EventArgs e)
        {
            SaleOrders_Form form = new SaleOrders_Form(FormMode.Browse, (Guid?)iddl_Customers.SelectedValue);

            Tools.displayForm(form);
            if (form.DialogResult == DialogResult.OK)
            {
                itxt_SaleOrderItems.ValueGuid = form.browseItemSelection;
                itxt_SaleOrderItems.ValueText = form.browseItemDescription;
                _browseItemCustomerId         = form.browseItemCustomers_Id;
            }
        }
Beispiel #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));
     }
 }