Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        private void m_mthDemoPrint_FromDataSource()
        {
            m_objPrintTool = new clsPartogramPrintTool();
            m_objPrintTool.m_mthInitPrintTool(null);
            //clsInBedSessionInfo objSession = m_objBaseCurrentPatient.m_ObjInBedInfo.m_objGetSessionByIndex(m_cboInpatientDate.Items.Count - m_cboInpatientDate.SelectedIndex - 1);
            m_objBaseCurrentPatient.m_StrHISInPatientID = m_ObjCurrentEmrPatientSession.m_strHISInpatientId;
            m_objPrintTool.m_mthSetPrintInfo(m_objBaseCurrentPatient, m_objBaseCurrentPatient.m_DtmSelectedInDate, DateTime.MinValue);

            m_objPrintTool.m_mthInitPrintContent();

            m_mthStartPrint();
        }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
 private void m_mthSetPrintTool(string p_strParmValue)
 {
     this.m_objPrintTool = clsPrintToolFactory.Create(this.m_strReportGroupID);
 }