private void OpenDeliveryNoteDetailForm()
        {
            int    rowIdx         = this.pagedDgvDeliveryNote.DgvData.CurrentRow.Index;
            String deliveryNoteId = this.pagedDgvDeliveryNote.DgvData.Rows[rowIdx].Cells[0].Value.ToString();

            FrmEditDeliveryNote frmCreateDeliveryNote = new FrmEditDeliveryNote(deliveryNoteId);

            frmCreateDeliveryNote.ShowDialog();
            if (frmCreateDeliveryNote.Modified)
            {
                pagedDgvDeliveryNote.LoadData();
            }
        }
        private void ToolStripMenuItemCreateDeliveryNoteFromOrders_Click(object sender, EventArgs e)
        {
            DataGridViewSelectedRowCollection selectedRows = this.dataGridViewAllOrders.SelectedRows;
            List <String> tranIdList = new List <string>();

            foreach (DataGridViewRow row in selectedRows)
            {
                String tranId = row.Cells[OrderDgv_TransactionIdIndex].Value.ToString();
                tranIdList.Add(tranId);
            }

            FrmEditDeliveryNote frmEditDeliveryNote = new FrmEditDeliveryNote(tranIdList);

            frmEditDeliveryNote.ShowDialog();

            if (frmEditDeliveryNote.Added)
            {
                LoadOrderData();
            }
        }
        private void OpenDeliveryNoteDetailForm()
        {
            int rowIdx = this.pagedDgvDeliveryNote.DgvData.CurrentRow.Index;
            String deliveryNoteId = this.pagedDgvDeliveryNote.DgvData.Rows[rowIdx].Cells[0].Value.ToString();

            FrmEditDeliveryNote frmCreateDeliveryNote = new FrmEditDeliveryNote(deliveryNoteId);
            frmCreateDeliveryNote.ShowDialog();
            if (frmCreateDeliveryNote.Modified)
                pagedDgvDeliveryNote.LoadData();
        }
        private void ToolStripMenuItemCreateDeliveryNoteFromOrders_Click(object sender, EventArgs e)
        {
            DataGridViewSelectedRowCollection selectedRows = this.dataGridViewAllOrders.SelectedRows;
            List<String> tranIdList = new List<string>();
            foreach (DataGridViewRow row in selectedRows)
            {
                String tranId = row.Cells[OrderDgv_TransactionIdIndex].Value.ToString();
                tranIdList.Add(tranId);
            }

            FrmEditDeliveryNote frmEditDeliveryNote = new FrmEditDeliveryNote(tranIdList);
            frmEditDeliveryNote.ShowDialog();

            if (frmEditDeliveryNote.Added)
                LoadOrderData();
        }