protected override void Print() { if (this.grdData.CurrentRow != null && this.grdData.CurrentRow.RowType == Janus.Windows.GridEX.RowType.Record) { XVEquipmentReceiveInfo receiveInfo = this.grdData.CurrentRow.DataRow as XVEquipmentReceiveInfo; if (!this.m_FileAttachBusiness.IsFileExist(receiveInfo.RID)) { XMessageBox.ShowError("未找到要打印的报告文档,请确认是否已上传报告!"); return; } frmPrintPreview frm = new frmPrintPreview(receiveInfo, true); frm.ShowDialog(); } }
private void btnPrint_Click(object sender, EventArgs e) { frmPrintPreview frm = new frmPrintPreview(this.m_CurrentModel as XVEquipmentReceiveInfo, false); frm.ShowDialog(); }