internal int GetPrintPage(string reportGroupID, string applicationId) { int page = 0; List <string> list = new List <string>(); clsPrintReport clsPrintReport = new clsPrintReport(); if (list.IndexOf(reportGroupID + applicationId) < 0) { list.Add(reportGroupID + applicationId); clsPrintReport.m_mthGetPrintContentFromDB(reportGroupID, applicationId, true); DataTable m_dtbResult = clsPrintReport.m_ObjPrintInfo.m_dtbResult; DataTable m_dtbSample = clsPrintReport.m_ObjPrintInfo.m_dtbBaseInfo; clsUnifyReportPrint printReport = new clsUnifyReportPrint(); float p_fltX = 41.3500023F; float p_fltY = 127.796875F; float p_fltWidth = 744.3F; float p_fltHeight = 360.203125F; float p_fltMaxHeight = 360.203125F; printReport.m_dtbSample = m_dtbSample; printReport.m_mthInitalPrintTool(); clsPrintPerPageInfo[] m_objPrintPage = printReport.m_objConstructPrintPageInfoGetPage(m_dtbResult, p_fltX, p_fltY, p_fltWidth, p_fltHeight, p_fltMaxHeight); page = m_objPrintPage.Length; } return(page); }
public static infPrintRecord Create(string reportGroupId) { infPrintRecord printTool = null; switch (reportGroupId) { case "000001": printTool = new clsMarrowReportPrintTool(); clsMarrowReportPrintTool.blnSurePrintDiagnose = true; break; case "000002": printTool = new clsGermReportPrinTool(); clsGermReportPrinTool.blnSurePrintDiagnose = true; break; case "000004": printTool = new clsGermReportPrinToolV2(); clsGermReportPrinToolV2.blnSurePrintDiagnose = true; break; default: string strFlag = null; //4003:检验报告格式 0:默认格式 1:格式一 2:格式二 long lngRes = m_lngGetCollocate(out strFlag, "4003"); if (lngRes > 0) { if (strFlag != "") { switch (strFlag) { case "0": printTool = new clsUnifyReportPrint(); clsUnifyReportPrint.blnSurePrintDiagnose = true; break; //case "1": // printTool = new clsUnifyReportPrintForChildHospital(); // clsUnifyReportPrintForChildHospital.blnSurePrintDiagnose = true; // break; //case "2": // printTool = new clsUnifyReportPrintForChildHospital_B5(); // clsUnifyReportPrintForChildHospital_B5.blnSurePrintDiagnose = true; // break; default: printTool = new clsUnifyReportPrint(); clsUnifyReportPrint.blnSurePrintDiagnose = true; break; } } } break; } return(printTool); }
public static infPrintRecord Create(string reportGroupId) { infPrintRecord result = null; if (reportGroupId != null) { if (reportGroupId == "000001") { result = new clsMarrowReportPrintTool(); clsMarrowReportPrintTool.blnSurePrintDiagnose = true; return(result); } if (reportGroupId == "000002") { result = new clsGermReportPrinTool(); clsGermReportPrinTool.blnSurePrintDiagnose = true; return(result); } if (reportGroupId == "000004") { result = new clsGermReportPrinToolV2(); clsGermReportPrinToolV2.blnSurePrintDiagnose = true; return(result); } } string text = null; long num = clsPrintToolFactory.m_lngGetCollocate(out text, "4003"); if (num > 0L) { if (text != "") { string text2 = text; if (text2 != null) { if (text2 == "0") { result = new clsUnifyReportPrint(); clsUnifyReportPrint.blnSurePrintDiagnose = true; return(result); } } result = new clsUnifyReportPrint(); clsUnifyReportPrint.blnSurePrintDiagnose = true; } } return(result); }
private void m_mthBatchPrint() { //获取需要打印的报告单数量 int count = this.m_lsvBaseCheckItem.CheckedItems.Count; clsLisBatchReportList_VO[] objReportArr1 = null; clsLisBatchReportList_VO[] objReportArr2 = null; clsLisBatchReportDetail_VO[] objResultArr1 = null; clsLisBatchReportDetail_VO[] objResultArr2 = null; if (count > 5) { objReportArr1 = new clsLisBatchReportList_VO[5]; objReportArr2 = new clsLisBatchReportList_VO[count - 5]; } else { objReportArr1 = new clsLisBatchReportList_VO[count]; } for (int i = 0; i < count; i++) { if (i >= 5) { objReportArr2[i - 5] = (clsLisBatchReportList_VO)this.m_lsvBaseCheckItem.CheckedItems[i].Tag; } else { objReportArr1[i] = (clsLisBatchReportList_VO)this.m_lsvBaseCheckItem.CheckedItems[i].Tag; } } clsBatchPrint objBatchPrint = new clsBatchPrint(); com.digitalwave.iCare.gui.LIS.clsUnifyReportPrint[] objBatchReportPrint = null; m_printDlg.Document = objBatchPrint.m_printDoc; DialogResult objDialogRes = m_printDlg.ShowDialog(); if (objDialogRes == DialogResult.OK) { new clsController_LisBatchReport().m_mthGetReportInfoArr(objReportArr1, out objResultArr1); if (objResultArr1 == null) { return; } objBatchReportPrint = new clsUnifyReportPrint[objResultArr1.Length]; string m_strParmValue = null; long lngRes = m_objController.m_lngGetSysParmValue("4030", out m_strParmValue); for (int i = 0; i < objResultArr1.Length; i++) { objBatchReportPrint[i] = new clsUnifyReportPrint(); objBatchReportPrint[i].m_dtbSample = objResultArr1[i].m_dtbReportBaseInfo; objBatchReportPrint[i].m_dtbResult = dtbFilter(objResultArr1[i].m_dtbCheckResult); } objBatchPrint.m_objBatchReportPrint = objBatchReportPrint; objBatchPrint.m_mthPrint(); if (objReportArr2 != null) { new clsController_LisBatchReport().m_mthGetReportInfoArr(objReportArr2, out objResultArr2); if (objResultArr2 == null) { return; } objBatchReportPrint = new clsUnifyReportPrint[objResultArr2.Length]; for (int i = 0; i < objResultArr2.Length; i++) { objBatchReportPrint[i] = new clsUnifyReportPrint(); objBatchReportPrint[i].m_dtbSample = objResultArr2[i].m_dtbReportBaseInfo; objBatchReportPrint[i].m_dtbResult = dtbFilter(objResultArr2[i].m_dtbCheckResult); } objBatchPrint.m_objBatchReportPrint = objBatchReportPrint; objBatchPrint.m_mthPrint(); } } }