//合并文档,将文档合并到xpsShow.xps里面 public void MergeDocument() { string newFile = Path + "xpsShow.xps"; List <string> lsFileName = new List <string>(); List <string> lstName = new List <string>(); lsFileName.AddRange(Directory.GetFiles(Path)); if (lsFileName.Count == 0) { IsHaveReport = false; return; } lsFileName.Sort(); string[] idCardsStrings = CardID.Split(';'); foreach (string idCardNo in idCardsStrings) { foreach (var item in lsFileName) { if (!string.IsNullOrEmpty(item) && item.Contains(idCardNo)) { lstName.Add(item); } } } FixedDocumentSequence newFds = new FixedDocumentSequence();//创建一个新的文档结构 foreach (var item in lstName) { if (count < 50) { setProcess(count); count++; } if (item != "xpsShow.xps" && item.ToUpper().Contains(".XPS")) { DocumentReference newDocRef = AddPage(item); newFds.References.Add(newDocRef); } } File.Delete(newFile); setProcess(46); //xps写入新文件 XpsDocument NewXpsDocument = new XpsDocument(newFile, System.IO.FileAccess.ReadWrite); XpsDocumentWriter xpsDocumentWriter = XpsDocument.CreateXpsDocumentWriter(NewXpsDocument); setProcess(47); xpsDocumentWriter.Write(newFds); NewXpsDocument.Close(); }
public void saveFun() { string[] idCardsStrings = CardID.Split(';'); count = 0; IGetReport igp; foreach (string idCardNo in idCardsStrings) { switch (PrintType) { case "btnHousePhysical": igp = new HousePhysical(); saveInvoke(igp, idCardNo); break; case "btnTypeBUI": igp = new TypeBchao(); igp.CardID = idCardNo; saveInvoke(igp, idCardNo); break; case "btnECG": string ecgType = DrawItems.GetECGConfig(); if (ecgType == "2") { igp = new ElectroCardioGramcs(); igp.CardID = idCardNo; saveInvoke(igp, idCardNo); } else { igp = null; } break; default: igp = null; break; } } Thread.Sleep(1000); setMsg("开始生成合并文档"); MergeInvoke(); CloseWin("test"); }
public void MergeDocument() { string path = Path + "xpsShow.xps"; List <string> list = new List <string>(); List <string> lstName = new List <string>(); list.AddRange(Directory.GetFiles(Path)); list.Sort(); string[] idCardsStrings = CardID.Split(';'); foreach (string idCardNo in idCardsStrings) { foreach (var item in list) { if (!string.IsNullOrEmpty(item) && item.Contains(idCardNo)) { lstName.Add(item); } } } FixedDocumentSequence fixedDocumentSequence = new FixedDocumentSequence(); foreach (string current in lstName) { if (frmShowSave.count < 50) { this.setProcess(frmShowSave.count); frmShowSave.count++; } if (current != "xpsShow.xps" && current.Contains(".xps")) //&& !current.ToUpper().Contains(".PNG") { DocumentReference item = this.AddPage(current); fixedDocumentSequence.References.Add(item); } } File.Delete(path); this.setProcess(46); XpsDocument xpsDocument = new XpsDocument(path, FileAccess.ReadWrite); XpsDocumentWriter xpsDocumentWriter = XpsDocument.CreateXpsDocumentWriter(xpsDocument); this.setProcess(47); xpsDocumentWriter.Write(fixedDocumentSequence); xpsDocument.Close(); }
public void saveFun() { frmShowSave.count = 0; IGetReport igp; int no = 1; string[] idCardsStrings = CardID.Split(';'); foreach (string idCardNo in idCardsStrings) { igp = new HousePhysical(); this.saveInvoke(igp, idCardNo, no.ToString()); igp = new TypeBchao(); this.saveInvoke(igp, idCardNo, no.ToString()); igp = new HouseBone(); this.saveInvoke(igp, idCardNo, no.ToString()); igp = new HealthVascular(); this.saveInvoke(igp, idCardNo, no.ToString()); igp = new HealthLung(); this.saveInvoke(igp, idCardNo, no.ToString()); igp = new HealthAssess(); this.saveInvoke(igp, idCardNo, no.ToString()); igp = new HealthGuide(); this.saveInvoke(igp, idCardNo, no.ToString()); string ecgType = DrawItems.GetECGConfig(); if (ecgType == "2") { igp = new ElectroCardioGramcs(); this.saveInvoke(igp, idCardNo, no.ToString()); } no++; } Thread.Sleep(1000); this.setMsg("开始生成合并文档"); this.MergeInvoke(); this.CloseWin("test"); }
public void saveFun() { if (File.Exists("printtemp\\xpsShow.xps")) { File.Delete("printtemp\\xpsShow.xps"); } foreach (string strFile in Directory.GetFiles("printTemp")) { File.Delete(strFile); } if (!Directory.Exists(@"D:\汇出打印文件\" + date)) { //foreach (string strFile in Directory.GetFiles(@"D:\汇出打印文件")) //{ // File.Delete(strFile); //} Directory.CreateDirectory(@"D:\汇出打印文件\" + date); } //else Directory.CreateDirectory(@"D:\汇出打印文件"); RecordsBaseInfoBLL archive_baseinfo = new RecordsBaseInfoBLL(); count = 0; IsHaveReport = false; IGetReport igp; string[] SelectName = PrintType.Split(';'); int no = 1; // 取得资料笔数 DataTable dtData = archive_baseinfo.GetList(PrintWhere, "").Tables[0]; DataTable dt = dtData.DefaultView.ToTable("IDCardNo", true, "IDCardNo"); if (dt.Rows.Count > 0) { for (int i = 0; i < dt.Rows.Count; i += 10) { CardID = ""; for (int j = i; j < i + 10; j++) { if (j < dt.Rows.Count) { CardID += dt.Rows[j]["IDCardNo"].ToString() + ";"; } else { break; } } IDCard.Add(CardID); #region 生成文件 string[] idCardsStrings = CardID.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries); foreach (string idCardNo in idCardsStrings) { foreach (string name in SelectName) { switch (name) { case "封面": if (area == "淄博") { igp = new HealthReport(); } else { igp = new ArchiveCover(); } this.saveInvoke(igp, idCardNo, no.ToString()); break; case "基本信息": igp = new ArchiveBase(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "健康体检表": igp = new ArchivePhysical(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "高血压随访": igp = new Hypertension_Followup(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "糖尿病随访": igp = new Diabetes_Followup(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "精神病信息补充": igp = new Mentaldisease_Baseinfo(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "精神病随访": igp = new Mentaldisease_Followup(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "居民健康档案卡": igp = new ArchiveCard(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "老年人中医健康": igp = new Old_Medicine_CN(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "新生儿家庭访视": igp = new Child_With_NEW(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "1岁内儿童健康检查": igp = new Child_With_ONE(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "1-2岁内儿童健康检查": igp = new Child_With_TWO(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "3-6岁内儿童健康检查": igp = new Child_With_THREE(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "第1次产前随访": igp = new GRAVIDA_FRIST(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "第2-5次产前随访": igp = new GRAVIDA_TWO(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "产后访视记录": igp = new GRAVIDA_Postpartum(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "产后42天健康检查": igp = new GRAVIDA_Postpartum42(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "脑卒中随访记录": igp = new Stroke_Followup(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "冠心病随访记录": igp = new CHD_Follow(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "6-18月龄儿童中医健康": igp = new Child_CN_ONE(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "24-36月龄儿童中医健康": igp = new Child_CN_TWO(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "3-6岁内儿童中医健康": igp = new Child_CN_THREE(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "第1次肺结核随访": igp = new LungerFirstVisit(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "肺结核随访": igp = new ChronicLungerVisit(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "健康教育": igp = new HealthEducation(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "接诊记录": igp = new Medical_Receive(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "会诊记录": igp = new Medical_Consulation(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "双向转诊": igp = new Medical_Refferral(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "健康体检反馈单": igp = new HealthFeedback(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "老年人自理能力": igp = new Physical_OldSelfCare(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "65岁以上老年人健康体检反馈单": if (area.Equals("淄博")) { igp = new OldHealthFeedback(); } else if (community.Equals("日照街道社区")) { igp = new OldHealthFeedbackRiZhao(); } else { igp = new OldHealthFeedbackYuCheng(); } this.saveInvoke(igp, idCardNo, no.ToString()); break; case "档案封面": igp = new HealthCoverCard(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "血生化、血常规、尿液数据": igp = new Blood_Urine(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "心电": string ecgType = DrawItems.GetECGConfig(); if (ecgType == "2") { igp = new ElectroCardioGramcs(); igp.CardID = idCardNo; if (!igp.hasData()) { igp = null; } else { this.saveInvoke(igp, idCardNo, no.ToString()); } } break; case "B超": igp = new TypeBchao(); igp.CardID = idCardNo; if (!igp.hasData()) { igp = null; } else { this.saveInvoke(igp, idCardNo, no.ToString()); } break; case "体检报告": igp = new PhyicalReport(); this.saveInvoke(igp, idCardNo, no.ToString()); break; default: igp = null; break; } } no++; if (no % 10 == 0) { Thread.Sleep(1000); } } #endregion } Thread.Sleep(1000); if (!IsHaveReport) { System.Windows.Forms.MessageBox.Show("无可汇出资料!", "提示", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Asterisk, System.Windows.Forms.MessageBoxDefaultButton.Button1, System.Windows.Forms.MessageBoxOptions.DefaultDesktopOnly); CloseWin("none"); return; } this.setMsg("开始生成合并文档"); this.MergeInvoke(); this.CloseWin("test"); } else { System.Windows.Forms.MessageBox.Show("无可汇出资料!", "提示", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Asterisk, System.Windows.Forms.MessageBoxDefaultButton.Button1, System.Windows.Forms.MessageBoxOptions.DefaultDesktopOnly); CloseWin("none"); return; } }
public void saveFun() { //if (File.Exists("printtemp\\xpsShow.xps")) //{ // File.Delete("printtemp\\xpsShow.xps"); //} //string[] files = Directory.GetFiles("printTemp"); //for (int i = 0; i < files.Length; i++) //{ // string path = files[i]; // File.Delete(path); //} frmShowSave.count = 0; IGetReport igp; int no = 1; IsHaveReport = false; string[] idCardsStrings = CardID.Split(';'); foreach (string idCardNo in idCardsStrings) { if (area.Equals("济南")) { igp = new OldHealthReport(); this.saveInvoke(igp, idCardNo, no.ToString(), 0); } igp = new HealthCoverCard(); this.saveInvoke(igp, idCardNo, no.ToString(), 1); igp = new ArchivePhysical(); this.saveInvoke(igp, idCardNo, no.ToString(), 2); //igp = new HealthReport(); //this.saveInvoke(igp, idCardNo, no.ToString()); igp = new Physical_OldSelfCare(); this.saveInvoke(igp, idCardNo, no.ToString(), 3); igp = new Old_Medicine_CN(); this.saveInvoke(igp, idCardNo, no.ToString(), 4); if (area.Equals("禹城")) { igp = new TypeBchao(); igp.CardID = idCardNo; if (!igp.hasData()) { igp = null; } else { this.saveInvoke(igp, idCardNo, no.ToString(), 6); } string ecgType = DrawItems.GetECGConfig(); if (ecgType == "2") { igp = new ElectroCardioGramcs(); igp.CardID = idCardNo; if (!igp.hasData()) { igp = null; } else { this.saveInvoke(igp, idCardNo, no.ToString(), 7); } } igp = new OldHealthFeedback(); this.saveInvoke(igp, idCardNo, no.ToString(), 6); } if (IsPrintBlood) { igp = new Blood_Urine(); this.saveInvoke(igp, idCardNo, no.ToString(), 5); } no++; } Thread.Sleep(1000); if (!IsHaveReport) { System.Windows.Forms.MessageBox.Show("无打印资料!", "提示", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Asterisk, System.Windows.Forms.MessageBoxDefaultButton.Button1, System.Windows.Forms.MessageBoxOptions.DefaultDesktopOnly); CloseWin("test"); return; } this.setMsg("开始生成合并文档"); this.MergeInvoke(); this.CloseWin("test"); }
public void saveFun() { //if (File.Exists("printtemp\\xpsShow.xps")) //{ // File.Delete("printtemp\\xpsShow.xps"); //} //foreach (string strFile in Directory.GetFiles("printTemp")) //{ // File.Delete(strFile); //} string[] idCardsStrings = CardID.Split(';'); count = 0; IsHaveReport = false; IGetReport igp; //int i = 0; //int n = 0; foreach (string idCardNo in idCardsStrings) { //n ++; //if (n != idCardsStrings.Length) //{ // if (PrintType == "btnOLDMEDICINECN") // { // RecordsCustomerBaseInfoModel modelc = new RecordsCustomerBaseInfoDAL().GetMaxModel(idCardNo); // if (modelc == null ) // { // continue; // } // RecordsMediPhysDistModel modelMdist = new RecordsMediPhysDistDAL().GetModelByOutKey(modelc.ID); // if (modelMdist != null) // { // RecordsMedicineCnModel model2 = new RecordsMedicineCnBLL().GetModel(modelMdist.MedicineID); // if (model2 == null || model2.FollowUpDoctor == "") // { // continue; // } // } // } //} //else //{ // if (i != 0) // { // if (PrintType == "btnOLDMEDICINECN") // { // RecordsCustomerBaseInfoModel modelc = new RecordsCustomerBaseInfoDAL().GetMaxModel(idCardNo); // if (modelc == null) // { // continue; // } // RecordsMediPhysDistModel modelMdist = new RecordsMediPhysDistDAL().GetModelByOutKey(modelc.ID); // if (modelMdist != null) // { // RecordsMedicineCnModel model2 = new RecordsMedicineCnBLL().GetModel(modelMdist.MedicineID); // if (model2 == null || model2.FollowUpDoctor == "") // { // continue; // } // } // } // } //} //i++; switch (PrintType) { case "btnFengmian": if (area == "淄博") { igp = new HealthReport(); saveInvoke(igp, idCardNo); } else { igp = new ArchiveCover(); saveInvoke(igp, idCardNo); } break; case "btnBaseInfo": igp = new ArchiveBase(); saveInvoke(igp, idCardNo); break; case "btnHyper": igp = new Hypertension_Followup(); saveInvoke(igp, idCardNo); break; case "btnDiabetes": igp = new Diabetes_Followup(); saveInvoke(igp, idCardNo); break; case "btnMentaldisease_Baseinfo": igp = new Mentaldisease_Baseinfo(); saveInvoke(igp, idCardNo); break; case "btnMentalFollow": igp = new Mentaldisease_Followup(); saveInvoke(igp, idCardNo); break; case "btnPhysical": igp = new ArchivePhysical(); saveInvoke(igp, idCardNo); break; case "btnArchiveCard": igp = new ArchiveCard(); saveInvoke(igp, idCardNo); break; case "btnChildInOne": igp = new Child_With_ONE(); saveInvoke(igp, idCardNo); break; case "btnChildNEW": igp = new Child_With_NEW(); saveInvoke(igp, idCardNo); break; case "btnChildTWO": igp = new Child_With_TWO(); saveInvoke(igp, idCardNo); break; case "btnChildTHREE": igp = new Child_With_THREE(); saveInvoke(igp, idCardNo); break; case "btnGRAVIDA_FRIST": igp = new GRAVIDA_FRIST(); saveInvoke(igp, idCardNo); break; case "btnGRAVIDA_TWO": igp = new GRAVIDA_TWO(); saveInvoke(igp, idCardNo); break; case "btnGRAVIDA_POST": igp = new GRAVIDA_Postpartum(); saveInvoke(igp, idCardNo); break; case "btnGRAVIDA_POST42": igp = new GRAVIDA_Postpartum42(); saveInvoke(igp, idCardNo); break; case "btnOLDMEDICINECN": igp = new Old_Medicine_CN(); saveInvoke(igp, idCardNo); break; case "btnChildCNOne": igp = new Child_CN_ONE(); saveInvoke(igp, idCardNo); break; case "btnChildCNOne2Three": igp = new Child_CN_TWO(); saveInvoke(igp, idCardNo); break; //case "btnChildCNThree2Six": // igp = new Child_CN_THREE(); // saveInvoke(igp, idCardNo); // break; case "btnChd": igp = new CHD_Follow(); saveInvoke(igp, idCardNo); break; case "btStroke": igp = new Stroke_Followup(); saveInvoke(igp, idCardNo); break; case "btnOnePTBVisit": igp = new LungerFirstVisit(); saveInvoke(igp, idCardNo); break; case "btnPTBVisit": igp = new ChronicLungerVisit(); saveInvoke(igp, idCardNo); break; case "btnHealth": igp = new HealthEducation(); //igp = new HealthExamination(); saveInvoke(igp, idCardNo); break; case "btnHealthFeedback": igp = new HealthFeedback(); saveInvoke(igp, idCardNo); break; case "btnMReceiveTreat": igp = new Medical_Receive(); saveInvoke(igp, idCardNo); break; case "btnMConsulation": igp = new Medical_Consulation(); saveInvoke(igp, idCardNo); break; case "btnMReferral": igp = new Medical_Refferral(); saveInvoke(igp, idCardNo); break; case "btnPhyOLDSelf": igp = new Physical_OldSelfCare(); saveInvoke(igp, idCardNo); break; case "btnOldHealthFeedback": if (area.Equals("淄博")) { igp = new OldHealthFeedback(); } else if (community.Equals("日照街道社区")) { igp = new OldHealthFeedbackRiZhao(); } else { igp = new OldHealthFeedbackYuCheng(); } saveInvoke(igp, idCardNo); break; case "btnCoverCard": igp = new HealthCoverCard(); saveInvoke(igp, idCardNo); break; case "btnBloodUrine": igp = new Blood_Urine(); saveInvoke(igp, idCardNo); break; case "btnCoverCard_2": igp = new HealthCoverCard_Colour(); saveInvoke(igp, idCardNo); break; case "btnECG": string ecgType = DrawItems.GetECGConfig(); if (ecgType == "2") { igp = new ElectroCardioGramcs(); igp.CardID = idCardNo; if (!igp.hasData()) { igp = null; } else { this.saveInvoke(igp, idCardNo); } } break; case "btnTypeBUI": igp = new TypeBchao(); igp.CardID = idCardNo; if (!igp.hasData()) { igp = null; } else { this.saveInvoke(igp, idCardNo); } break; case "btnPhyicalRe": igp = new PhyicalReport(); saveInvoke(igp, idCardNo); break; case "btnOldCover": igp = new OldHealthReport(); saveInvoke(igp, idCardNo); break; default: igp = null; break; } } Thread.Sleep(1000); if (!IsHaveReport) { System.Windows.Forms.MessageBox.Show("无打印资料!", "提示", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Asterisk, System.Windows.Forms.MessageBoxDefaultButton.Button1, System.Windows.Forms.MessageBoxOptions.DefaultDesktopOnly); CloseWin("test"); return; } setMsg("开始生成合并文档"); MergeInvoke(); CloseWin("test"); }
public void saveFun() { File.Delete("printtemp\\xpsShow.xps"); string[] files = Directory.GetFiles("printTemp"); for (int i = 0; i < files.Length; i++) { string path = files[i]; File.Delete(path); } frmSelectSave.count = 0; IGetReport igp; IsHaveReport = false; int no = 1; string[] idCardsStrings = CardID.Split(';'); string[] SelectName = PrintType.Split(';'); foreach (string idCardNo in idCardsStrings) { foreach (string name in SelectName) { try { switch (name) { case "封面": if (area == "淄博") { igp = new HealthReport(); } else { igp = new ArchiveCover(); } this.saveInvoke(igp, idCardNo, no.ToString()); break; case "基本信息": igp = new ArchiveBase(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "健康体检表": igp = new ArchivePhysical(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "高血压随访": igp = new Hypertension_Followup(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "糖尿病随访": igp = new Diabetes_Followup(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "精神病信息补充": igp = new Mentaldisease_Baseinfo(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "精神病随访": igp = new Mentaldisease_Followup(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "居民健康档案卡": igp = new ArchiveCard(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "老年人中医健康(随访)": igp = new Old_Medicine_CN(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "新生儿家庭访视": igp = new Child_With_NEW(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "1岁内儿童健康检查": igp = new Child_With_ONE(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "1-2岁内儿童健康检查": igp = new Child_With_TWO(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "3-6岁内儿童健康检查": igp = new Child_With_THREE(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "第1次产前随访": igp = new GRAVIDA_FRIST(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "第2-5次产前随访": igp = new GRAVIDA_TWO(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "产后访视记录": igp = new GRAVIDA_Postpartum(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "产后42天健康检查": igp = new GRAVIDA_Postpartum42(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "脑卒中随访记录": igp = new Stroke_Followup(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "冠心病随访记录": igp = new CHD_Follow(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "6-18月龄儿童中医健康": igp = new Child_CN_ONE(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "24-36月龄儿童中医健康": igp = new Child_CN_TWO(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "3-6岁内儿童中医健康": igp = new Child_CN_THREE(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "第1次肺结核随访": igp = new LungerFirstVisit(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "肺结核随访": igp = new ChronicLungerVisit(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "健康教育": igp = new HealthEducation(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "接诊记录": igp = new Medical_Receive(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "会诊记录": igp = new Medical_Consulation(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "双向转诊": igp = new Medical_Refferral(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "健康体检反馈单": igp = new HealthFeedback(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "老年人自理能力(体检)": igp = new Physical_OldSelfCare(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "65岁以上老年人健康体检反馈单": if (area.Equals("淄博")) { igp = new OldHealthFeedback(); } else if (community.Equals("日照街道社区")) { igp = new OldHealthFeedbackRiZhao(); } else { igp = new OldHealthFeedbackYuCheng(); } this.saveInvoke(igp, idCardNo, no.ToString()); break; case "档案封面": igp = new HealthCoverCard(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "血生化、血常规、尿液数据": igp = new Blood_Urine(); this.saveInvoke(igp, idCardNo, no.ToString()); break; case "心电打印": string ecgType = DrawItems.GetECGConfig(); if (ecgType == "2") { igp = new ElectroCardioGramcs(); igp.CardID = idCardNo; if (!igp.hasData()) { igp = null; } else { this.saveInvoke(igp, idCardNo, no.ToString()); } } break; case "B超打印": igp = new TypeBchao(); igp.CardID = idCardNo; if (!igp.hasData()) { igp = null; } else { this.saveInvoke(igp, idCardNo, no.ToString()); } break; default: igp = null; break; } } catch (Exception ex) { throw ex; } } no++; } Thread.Sleep(1000); if (!IsHaveReport) { System.Windows.Forms.MessageBox.Show("无打印资料!", "提示", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Asterisk, System.Windows.Forms.MessageBoxDefaultButton.Button1, System.Windows.Forms.MessageBoxOptions.DefaultDesktopOnly); CloseWin("test"); return; } this.setMsg("开始生成合并文档"); this.MergeInvoke(); this.CloseWin("test"); }