예제 #1
0
        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();
            }
        }
예제 #2
0
        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();
            }
        }
예제 #3
0
        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();
        }
예제 #4
0
        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();
        }