private void ShowEditFormForInvoice(int OrderID)
        {
            var dialog = new ReceiptInvoiceDialog(OrderID);

            dialog.ShowDialog(this);
            RefreshInvoice();
        }
 private void btnInvoice_Click(object sender, EventArgs e)
 {
     BLL.Receipt GRV = new BLL.Receipt();
     GRV.LoadByPrimaryKey(ReceiptID);
     ReceiptInvoice invoice = new ReceiptInvoice();
     invoice.LoadByPrimaryKey(GRV.ReceiptInvoiceID);
     ReceiptInvoiceDialog InvoiceDialog = new ReceiptInvoiceDialog(invoice.POID, invoice.ID);
     InvoiceDialog.ShowDialog();
     LoadSelectedGRVDetailForCostBuildUp(ReceiptID);
 }
        private void ShowEditFormForInvoice(int OrderID, int InvoiceID)
        {
            if (BLL.Settings.UseNewUserManagement && !this.HasPermission("Edit-Invoice"))
            {
                return;
            }
            var dialog = new ReceiptInvoiceDialog(OrderID, InvoiceID);

            dialog.ShowDialog(this);
            RefreshInvoice();
        }
        private void btnInvoice_Click(object sender, EventArgs e)
        {
            BLL.Receipt GRV = new BLL.Receipt();
            GRV.LoadByPrimaryKey(ReceiptID);
            ReceiptInvoice invoice = new ReceiptInvoice();

            invoice.LoadByPrimaryKey(GRV.ReceiptInvoiceID);
            ReceiptInvoiceDialog InvoiceDialog = new ReceiptInvoiceDialog(invoice.POID, invoice.ID);

            InvoiceDialog.ShowDialog();
            LoadSelectedGRVDetailForCostBuildUp(ReceiptID);
        }
 private void ShowEditFormForInvoice(int OrderID, int InvoiceID)
 {
     if (BLL.Settings.UseNewUserManagement && !this.HasPermission("Edit-Invoice"))
     {
         return;
     }
     var dialog = new ReceiptInvoiceDialog(OrderID, InvoiceID);
     dialog.ShowDialog(this);
     RefreshInvoice();
 }
 private void ShowEditFormForInvoice(int OrderID)
 {
     var dialog = new ReceiptInvoiceDialog(OrderID);
     dialog.ShowDialog(this);
     RefreshInvoice();
 }