void auditBill() { int rowIdx = this.dgvPurchaseOrder.CurrentCell == null ? -1 : this.dgvPurchaseOrder.CurrentCell.RowIndex; if (rowIdx < 0) { this.ShowMessage("请指定要审核记录!"); return; } Guid? guidKey = this.dgvPurchaseOrder["colPOGuid", rowIdx].Value.ToGuid(); string billNo = this.dgvPurchaseOrder["colBillNo", rowIdx].Value.ToStringHasNull(); ZNLCRM.UI.Logic.WF.frmAuditRecordList frmRecord = new ZNLCRM.UI.Logic.WF.frmAuditRecordList("ORD_PurchaseOrder", guidKey, billNo); frmRecord.ShowDialog(); }
void auditBill() { int rowIdx = this.dgvMain.CurrentCell == null ? -1 : this.dgvMain.CurrentCell.RowIndex; if (rowIdx < 0) { this.ShowMessage("请指定要审核记录!"); return; } Guid? guidKey = this.dgvMain["col_CRM_JobMast_EmpJobGuid", rowIdx].Value.ToGuid(); string billNo = this.dgvMain["col_CRM_JobMast_BillNo", rowIdx].Value.ToStringHasNull(); ZNLCRM.UI.Logic.WF.frmAuditRecordList frmRecord = new ZNLCRM.UI.Logic.WF.frmAuditRecordList("CRM_JobMast", guidKey, billNo); frmRecord.ShowDialog(); }
private void tlbAuditBill_Click(object sender, EventArgs e) { if (dgvSalesOrder.CurrentCell != null) { int rowIndex = dgvSalesOrder.CurrentCell.RowIndex; if (rowIndex >= 0) { Guid? _SOGuid = dgvSalesOrder["colSOGuid", rowIndex].Value.ToGuid(); string billNo = dgvSalesOrder["colBillNo", rowIndex].Value.ToStringHasNull(); ZNLCRM.UI.Logic.WF.frmAuditRecordList frmRecord = new ZNLCRM.UI.Logic.WF.frmAuditRecordList("ORD_SalesOrder", _SOGuid, billNo); frmRecord.BringToFront(); frmRecord.ShowDialog(); } else { this.ShowMessage("请指定要审核记录!"); return; } } }