/// <summary> /// 打印 /// </summary> public void m_mthPrint() { frmOPCrytalReport fp = new frmOPCrytalReport(1); fp.TextName = this.m_objViewer.txtAppName.Text; fp.TextSex = this.m_objViewer.txtAppSex.Text; fp.TextAge = this.m_objViewer.txtAppAge.Text; fp.TextCard = this.m_objViewer.txtAppCardNo.Text; fp.TextDept = this.m_objViewer.cboDepartment.Text; fp.TextOP = this.m_objViewer.txtAppOPSName.Text; fp.Textyear = this.m_objViewer.txtAppYear.Text; fp.Textmonth = this.m_objViewer.txtAppMonth.Text; fp.Textday = this.m_objViewer.txtAppDay.Text; fp.Texttime = this.m_objViewer.txtAppHour.Text; fp.Textsecond = this.m_objViewer.txtAppMinute.Text; fp.TextTip = this.m_objViewer.txtAppHint.Text; fp.TextSinature = this.m_objViewer.txtAppDoctor.Text; fp.Textkaidantime = this.m_objViewer.txtAppDate.Text; fp.ShowDialog(); }
/// <summary> /// 打印 /// </summary> public void m_mthPrint() { if (billflag == 0) { return; } if (applyid == "") { return; } if (this.m_objViewer.lblRepsave.Text.Trim() != "已审核") { MessageBox.Show("报告尚未审核,不能打印报告。", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Stop); return; } frmOPCrytalReport fp = new frmOPCrytalReport(2); fp.TextYearRoom = this.m_objViewer.lblRepYear.Text; fp.TextMonthRoom = this.m_objViewer.lblRepMonth.Text; fp.TextdayRoom = this.m_objViewer.lblRepDay.Text; fp.TextNameRoom = this.m_objViewer.lblRepName.Text; fp.Text1SexRoom = this.m_objViewer.lblRepSex.Text; fp.Text1AgeRoom = this.m_objViewer.lblRepAge.Text; fp.Text1CardRoom = this.m_objViewer.lblRepCardNo.Text; fp.TextDeptRoom = this.m_objViewer.lblRepDept.Text; fp.TextDiagoseRoom = this.m_objViewer.txtRepDiagbegin.Text; fp.TextDialogseAfterRoom = this.m_objViewer.txtRepDiagend.Text; fp.TextOPERRoom = this.m_objViewer.txtRepMaindoctor.Text; fp.TextHelperRoom = this.m_objViewer.txtRepAnadoctor.Text; fp.TextCarRoom = this.m_objViewer.txtRepMedtool.Text; fp.TextWayRoom = this.m_objViewer.cboAnamode.Text; fp.TextWayERRoom = this.m_objViewer.txtRepAnadoctor.Text; fp.TextStepRoom = this.m_objViewer.txtRepOPSStepandResult.Text; fp.TextDocNameRoom = this.m_objViewer.txtRepDoctor.Text; fp.TextTimeRoom = this.m_objViewer.txtRepSigndate.Text; fp.TextOPNameRoom = this.m_objViewer.txtRepOPSName.Text; fp.ShowDialog(); }