void dgrdvReceipt_CellContentClick(object sender, DataGridViewCellEventArgs e) { int irow = e.RowIndex; int icol = e.ColumnIndex; if ((irow == -1) || (icol == -1)) { return; } long NoteID = (long)this.dtblReceiptNotes.DefaultView[irow]["NoteID"]; if (this.dgrdvReceipt.Columns[icol].Name == this.ColumnNoteCode.Name) { if (frmDetail == null) { frmDetail = new JERPApp.Finance.Report.Bill.Product.FrmSaleReceiptNote(); new FrmStyle(frmDetail).SetPopFrmStyle(this); } frmDetail.Detail(NoteID); frmDetail.ShowDialog(); } }
void dgrdv_CellContentClick(object sender, DataGridViewCellEventArgs e) { int irow = e.RowIndex; int icol = e.ColumnIndex; if ((irow == -1) || (icol == -1) || (irow == this.dgrdv.Rows.Count - 1)) { return; } long ReconciliationID = (long)this.dtblReconciliations.DefaultView[irow]["ReconciliationID"]; if (this.dgrdv.Columns[icol].Name == this.ColumnReconciliationCode.Name) { if (frmReconciliation == null) { frmReconciliation = new JERPApp.Finance.Report.Bill.Product.FrmSaleReconciliation(); new FrmStyle(frmReconciliation).SetPopFrmStyle(this.ParentForm); } frmReconciliation.DetailNote(ReconciliationID); frmReconciliation.ShowDialog(); } if (icol >= iGrid) { int SerialNo = int.Parse(this.dgrdv.Columns[icol].DataPropertyName); long ReceiptNoteID = -1; this.accReceiptNotes.GetParmSaleReceiptNotesNoteIDByReconciliationSerialNo(ReconciliationID, SerialNo, ref ReceiptNoteID); if (frmReceiptNote == null) { frmReceiptNote = new JERPApp.Finance.Report.Bill.Product.FrmSaleReceiptNote(); new FrmStyle(frmReceiptNote).SetPopFrmStyle(this.ParentForm); } frmReceiptNote.Detail(ReceiptNoteID); frmReceiptNote.ShowDialog(); } }