public List <ListValue> getList(string MonthType) { string text = ""; if (MonthType != null) { if (MonthType == "1") { text = "12"; } else if (MonthType == "2") { text = "18"; } else if (MonthType == "3") { text = "24"; } else if (MonthType == "4") { text = "30"; } } List <ListValue> list = new List <ListValue>(); KidsOneToThreeYearOldModel model = this.getModel(MonthType); if (model == null) { return(null); } list.Add(new ListValue { strMark = "$" + MonthType + "sfrq", strVal = DrawItems.strToDate(model.FollowupDate) }); list.Add(new ListValue { strMark = "$" + MonthType + "tz", strVal = DrawItems.objToNumStr(model.Weight) }); list.Add(new ListValue { strMark = "$" + MonthType + "sc", strVal = DrawItems.objToNumStr(model.Stature, 0) }); list.Add(new ListValue { strMark = "$" + MonthType + "ql", strVal = DrawItems.objToNumStr(model.BregmaLeft) }); list.Add(new ListValue { strMark = "$" + MonthType + "qr", strVal = DrawItems.objToNumStr(model.BregmaRight) }); list.Add(new ListValue { strMark = "$" + MonthType + "cy", strVal = DrawItems.objToNumStr(model.TeethDcnLeft, 0) }); list.Add(new ListValue { strMark = "$" + MonthType + "qc", strVal = DrawItems.objToNumStr(model.TeethDcnRight, 0) }); list.Add(new ListValue { strMark = "$" + MonthType + "xh", strVal = DrawItems.objToNumStr(model.HemoglobinValue) }); list.Add(new ListValue { strMark = "$" + MonthType + "hw", strVal = DrawItems.objToNumStr(model.OutdoorActivities, 1) }); list.Add(new ListValue { strMark = "$" + MonthType + "wss", strVal = DrawItems.objToNumStr(model.TakingVitaminsd) }); list.Add(new ListValue { strMark = "$" + MonthType + "qt", strVal = model.Other }); list.Add(new ListValue { strMark = "$" + MonthType + "zzyy", strVal = model.ReferralReason }); list.Add(new ListValue { strMark = "$" + MonthType + "wssm", strVal = model.AgenciesDepartments }); list.Add(new ListValue { strMark = "$" + MonthType + "xcsf", strVal = DrawItems.strToDate(model.NextFollowupDate) }); list.Add(new ListValue { strMark = "$" + MonthType + "zdqt", strVal = model.GuidanceOther }); list.Add(new ListValue { strMark = "$" + MonthType + "fy", strVal = DrawItems.objToNumStr(model.PneumoniaCounts, 0) }); list.Add(new ListValue { strMark = "$" + MonthType + "fx", strVal = DrawItems.objToNumStr(model.DiarrheaCounts, 0) }); list.Add(new ListValue { strMark = "$" + MonthType + "ws", strVal = DrawItems.objToNumStr(model.TraumaCounts, 0) }); list.Add(new ListValue { strMark = "$" + MonthType + "hbqt", strVal = DrawItems.objToNumStr(model.SickOther, 0) }); list.Add(new ListValue { strMark = "&" + MonthType + "sfys", strVal = string.Format("{0}{1}_Month_{2}_Doc.png", SignPath, model.IDCardNo, text) }); list.Add(new ListValue { strMark = "&" + MonthType + "qm", strVal = string.Format("{0}{1}_Month_{2}.png", SignPath, model.IDCardNo, text) }); list.AddRange(DrawItems.lsCheck(model.Gait, MonthType, "bt", 3)); list.AddRange(DrawItems.lsCheck(model.EarAppearance, MonthType, "ew", 3)); list.AddRange(DrawItems.lsCheck(model.Stomach, MonthType, "fb", 3)); list.AddRange(DrawItems.lsCheck(model.AuxeEstimate, MonthType, "fypg", 3)); list.AddRange(DrawItems.lsCheck(model.SuspiciousRickets, MonthType, "glb", 3)); list.AddRange(DrawItems.lsCheck(model.ColourFace, MonthType, "ms", 3)); list.AddRange(DrawItems.lsCheck(model.Skin, MonthType, "pf", 3)); list.AddRange(DrawItems.lsCheck(model.Bregma, MonthType, "qx", 3)); list.AddRange(DrawItems.lsCheck(model.StatureAnalysis, MonthType, "s", 3)); list.AddRange(DrawItems.lsCheck(model.AmongTwoFollowup, MonthType, "sfhb", 3)); list.AddRange(DrawItems.lsCheck(model.FourLimb, MonthType, "sz", 3)); list.AddRange(DrawItems.lsCheck(model.WeightAnalysis, MonthType, "t", 3)); list.AddRange(DrawItems.lsCheck(model.Listening, MonthType, "tl", 3)); list.AddRange(DrawItems.lsCheck(model.HeartLung, MonthType, "xf", 3)); list.AddRange(DrawItems.lsCheck(model.EyeAppearance, MonthType, "yw", 3)); list.AddRange(DrawItems.lsCheck(model.Guidance, MonthType, "zd", 5)); list.AddRange(DrawItems.lsCheck(model.ReferralAdvice, MonthType, "zz", 3)); return(list); }
public FixedDocumentSequence getReport() { if (!string.IsNullOrEmpty(this.CardID)) { RecordsBaseInfoModel model = new RecordsBaseInfoBLL().GetModel(this.CardID); List <ListValue> list = new List <ListValue> { new ListValue { strMark = "$recordid", strVal = model.RecordID }, new ListValue { strMark = "$name", strVal = model.CustomerName }, new ListValue { strMark = "$adress", strVal = model.Address } }; string strsex = ""; if (!string.IsNullOrEmpty(model.Sex)) { if (DrawItems.objToNumStr(model.Sex, 0) == "1") { strsex = "男"; } if (DrawItems.objToNumStr(model.Sex, 0) == "2") { strsex = "女"; } if (DrawItems.objToNumStr(model.Sex, 0) == "0") { strsex = "未知"; } if (DrawItems.objToNumStr(model.Sex, 0) == "9") { strsex = "未说明"; } } list.Add(new ListValue { strMark = "$sex", strVal = strsex }); int dage = 0; if (model.IDCardNo != null) { dage = DateTime.Now.Year - Convert.ToInt32(model.IDCardNo.Substring(6, 4)); } list.Add(new ListValue { strMark = "$age", strVal = dage.ToString(), }); ReferraBaseInfoModel Referramodel = new ReferraBaseInfoDAL().GetMaxModel(this.CardID); if (Referramodel != null) { list.Add(new ListValue { strMark = "$phone", strVal = Referramodel.SickPhone, }); list.Add(new ListValue { strMark = "$referdate", strVal = DrawItems.strToDate(Referramodel.IllnessDate, 1) }); list.Add(new ListValue { strMark = "$hospital", strVal = Referramodel.NewUnitName }); list.Add(new ListValue { strMark = "$keshi", strVal = Referramodel.NewDepartName }); list.Add(new ListValue { strMark = "$jzDname", strVal = Referramodel.NewDoctor }); list.Add(new ListValue { strMark = "$zhuanzname", strVal = Referramodel.RefDoctor }); list.Add(new ListValue { strMark = "$zhuandate", strVal = DrawItems.strToDate(Referramodel.TranseDate, 1) }); list.Add(new ListValue { strMark = "$orghospital", strVal = Referramodel.CreateUnitName }); list.Add(new ListValue { strMark = "%cbyx", strVal = Referramodel.FirstImpress }); list.Add(new ListValue { strMark = "%zyxbs", strVal = Referramodel.TransReason }); list.Add(new ListValue { strMark = "%zyjws", strVal = Referramodel.HistoryIllness }); list.Add(new ListValue { strMark = "%zyjg", strVal = Referramodel.Retrospectively }); list.Add(new ListValue { strMark = "$Doctname", strVal = Referramodel.RefDoctor }); list.Add(new ListValue { strMark = "$lxdh", strVal = Referramodel.RefDoctorPhone }); list.Add(new ListValue { strMark = "$orgname", strVal = Referramodel.CreateUnitName }); list.Add(new ListValue { strMark = "$zchuDate", strVal = DrawItems.strToDate(Referramodel.TranseDate, 1) }); } return(DrawItems.setPage("printXps\\31双向转诊单.xps", list)); } return(null); }
public FixedDocumentSequence getReport() { if (!string.IsNullOrEmpty(this.CardID)) { RecordsBaseInfoModel model = new RecordsBaseInfoBLL().GetModel(this.CardID); string strsex = ""; if (model.Sex != null) { if (DrawItems.objToNumStr(model.Sex, 0) == "1") { strsex = "男"; } if (DrawItems.objToNumStr(model.Sex, 0) == "2") { strsex = "女"; } if (DrawItems.objToNumStr(model.Sex, 0) == "0") { strsex = "未知"; } if (DrawItems.objToNumStr(model.Sex, 0) == "9") { strsex = "未说明"; } } List <ListValue> dicVal = new List <ListValue> { new ListValue { strMark = "$dahnum", strVal = model.RecordID }, new ListValue { strMark = "$xunum", strVal = "" }, new ListValue { strMark = "$name", strVal = model.CustomerName }, new ListValue { strMark = "$IdCardNo", strVal = model.IDCardNo }, new ListValue { strMark = "$sex", strVal = strsex }, new ListValue { strMark = "$address", strVal = model.Address }, new ListValue { strMark = "$huji", strVal = model.HouseHoldAddress }, new ListValue { strMark = "$lianxi", strVal = model.Phone }, new ListValue { strMark = "$jdrq", strVal = DrawItems.strToDate(model.CreateDate) } }; string strUnit = ""; string orgcode = ConfigHelper.GetNode("orgCode"); string TownCode = (orgcode.Length < 9) ? "" : orgcode.Substring(0, 9); if (!string.IsNullOrEmpty(TownCode)) { SysOrgTownModel TownModel = new SysOrgTownBLL().GetModel(TownCode); strUnit = TownModel.Name; } dicVal.Add(new ListValue { strMark = "$jddw", strVal = strUnit }); RecordsCustomerBaseInfoModel model2 = new RecordsCustomerBaseInfoBLL().GetMaxModel(this.CardID); if (model2 != null) { dicVal.Add(new ListValue { strMark = "$tjrq", strVal = DrawItems.strToDate(model2.CheckDate, 1) }); } string path = PhotoPath + this.CardID + ".jpeg"; if (area.Equals("菏泽")) { string path2 = PhotosPath + "Base//" + model.IDCardNo + ".jpg"; if (File.Exists(path2)) { path = path2; } } dicVal.Add(new ListValue { strMark = "&photo", strVal = path }); return(DrawItems.setPage("printXps\\" + PrintName, dicVal)); } return(null); }
public FixedDocumentSequence getReport() { if (!string.IsNullOrEmpty(this.CardID)) { RecordsBaseInfoModel model = new RecordsBaseInfoBLL().GetModel(this.CardID); string strage = ""; DateTime dtage; decimal dnow = 0, dage = 0; if (model.Birthday != null) { dtage = Convert.ToDateTime(model.Birthday); dnow = Convert.ToDecimal(DateTime.Today.ToString("yyyyMMdd")); dage = Convert.ToDecimal(dtage.ToString("yyyyMMdd")); strage = Convert.ToString(dnow - dage).ToString(); switch (strage.Length) { case 1: case 2: case 3: case 4: strage = "0"; break; case 5: strage = strage.Substring(0, 1); break; case 6: strage = strage.Substring(0, 2); break; case 7: strage = strage.Substring(0, 3); break; default: break; } } List <ListValue> list = new List <ListValue> { new ListValue { strMark = "$archiveid", strVal = model.RecordID }, new ListValue { strMark = "$name", strVal = model.CustomerName }, new ListValue { strMark = "$age", strVal = strage } }; RecordsCustomerBaseInfoModel CustomerModel = new RecordsCustomerBaseInfoDAL().GetMaxModel(this.CardID); if (CustomerModel != null) { list.Add(new ListValue { strMark = "$pgrq", strVal = DrawItems.strToDate(CustomerModel.CheckDate, 1) }); RecordsGeneralConditionModel GeneralModel = new RecordsGeneralConditionDAL().GetModelByOutKey(CustomerModel.ID); if (GeneralModel != null && GeneralModel.SelfID != 0) { RecordsSelfcareabilityModel model2 = new RecordsSelfcareabilityBLL().GetModelID(GeneralModel.SelfID); if (model2 != null) { list.Add(new ListValue { strMark = "$hd", strVal = DrawItems.objToNum(model2.Activity, 0) }); list.Add(new ListValue { strMark = "$rc", strVal = DrawItems.objToNum(model2.Tolet, 0) }); if (model2.Dressing == 2m) { model2.Dressing = new decimal?(0m); } list.Add(new ListValue { strMark = "$cy", strVal = DrawItems.objToNum(model2.Dressing, 0) }); list.Add(new ListValue { strMark = "$sx", strVal = DrawItems.objToNum(model2.Groming, 0) }); if (model2.Dine == 2m) { model2.Dine = new decimal?(0m); } list.Add(new ListValue { strMark = "$jc", strVal = DrawItems.objToNum(model2.Dine, 0) }); list.Add(new ListValue { strMark = "$zf", strVal = DrawItems.objToNumStr(model2.TotalScore, 2) }); //一般情况签名 list.Add(new ListValue { strMark = "&pjysqm", strVal = SignPath + "_Doctor1.png" }); } } } return(DrawItems.setPage("printXps\\" + this.PrintName, list)); } return(null); }
public FixedDocumentSequence getReport() { if (!string.IsNullOrEmpty(this.CardID)) { RecordsBaseInfoModel model = new RecordsBaseInfoBLL().GetModel(this.CardID); List <ListValue> list = new List <ListValue> { new ListValue { strMark = "$archiveid", strVal = model.RecordID }, new ListValue { strMark = "$name", strVal = model.CustomerName } }; KidsNewBornVisitModel model2 = new KidsNewBornVisitDAL().GetModel(this.CardID); if (model2 != null) { //list.Add(new ListValue //{ // strMark = "$sfys", // strVal = model2.FollowUpDoctorSign //}); list.Add(new ListValue { strMark = "#xb", strVal = model2.Sex }); list.Add(new ListValue { strMark = "!csrq", strVal = DrawItems.strToDate(model2.Birthday, 2) }); list.Add(new ListValue { strMark = "$sfzh", strVal = model2.IDCardNo }); list.Add(new ListValue { strMark = "$jtzz", strVal = model2.HomeAddr }); list.Add(new ListValue { strMark = "$fqxm", strVal = model2.FatherName }); list.Add(new ListValue { strMark = "$fqzy", strVal = model2.FatherJob }); list.Add(new ListValue { strMark = "$fqdh", strVal = model2.FatherTel }); list.Add(new ListValue { strMark = "$dbcs", strVal = DrawItems.objToNumStr(model2.StoolFrequen, 0) }); list.Add(new ListValue { strMark = "$tw", strVal = DrawItems.objToNumStr(model2.Temperature, 1) }); list.Add(new ListValue { strMark = "$ml", strVal = DrawItems.objToNumStr(model2.PulseRate, 0) }); list.Add(new ListValue { strMark = "$hxpl", strVal = DrawItems.objToNumStr(model2.BreathingRate, 0) }); list.Add(new ListValue { strMark = "#ms", strVal = model2.ColourFace }); list.Add(new ListValue { strMark = "$msqt", strVal = model2.ColourFaceOther }); list.Add(new ListValue { strMark = "#hd", strVal = model2.Jaundice }); list.Add(new ListValue { strMark = "$qxx", strVal = DrawItems.objToNumStr(model2.BregmaLeft, 2) }); list.Add(new ListValue { strMark = "$qxy", strVal = DrawItems.objToNumStr(model2.BregmaRight, 2) }); list.Add(new ListValue { strMark = "#qx", strVal = model2.Bregma }); list.Add(new ListValue { strMark = "$qxqt", strVal = model2.BregmaOther }); list.Add(new ListValue { strMark = "#yw", strVal = model2.EyeAppearance }); list.Add(new ListValue { strMark = "$ywgqt", strVal = model2.EyeAppearanceEx }); list.Add(new ListValue { strMark = "#zh", strVal = model2.LimbsActivity }); list.Add(new ListValue { strMark = "$hdqt", strVal = model2.LimbsActivityEx }); list.Add(new ListValue { strMark = "#ew", strVal = model2.EarAppearance }); list.Add(new ListValue { strMark = "$ewgqt", strVal = model2.EarAppearanceEx }); list.Add(new ListValue { strMark = "#jb", strVal = model2.NeckMass }); list.Add(new ListValue { strMark = "$jbqt", strVal = model2.NeckMassHave }); list.Add(new ListValue { strMark = "#bw", strVal = model2.Nose }); list.Add(new ListValue { strMark = "$bwgqt", strVal = model2.NoseEx }); list.Add(new ListValue { strMark = "#pf", strVal = model2.Skin }); list.Add(new ListValue { strMark = "$pfqt", strVal = model2.SkinOther }); list.Add(new ListValue { strMark = "#kq", strVal = model2.MouthCavity }); list.Add(new ListValue { strMark = "$kqqt", strVal = model2.MouthCavityEx }); list.Add(new ListValue { strMark = "#gm", strVal = model2.Anus }); list.Add(new ListValue { strMark = "$gmqt", strVal = model2.AnusEx }); list.Add(new ListValue { strMark = "#xf", strVal = model2.HeartLungAuscul }); list.Add(new ListValue { strMark = "$xfqt", strVal = model2.HeartLungAusculEx }); list.Add(new ListValue { strMark = "#sz", strVal = model2.Aedea }); list.Add(new ListValue { strMark = "$szqt", strVal = model2.AedeaEx }); list.Add(new ListValue { strMark = "#fb", strVal = model2.AbdominalTouch }); list.Add(new ListValue { strMark = "$fbqt", strVal = model2.AbdominalTouchEx }); list.Add(new ListValue { strMark = "#jz", strVal = model2.Spine }); list.Add(new ListValue { strMark = "$jzqt", strVal = model2.SpineEx }); list.Add(new ListValue { strMark = "#qd", strVal = model2.UmbilicalCord }); list.Add(new ListValue { strMark = "$qdqt", strVal = model2.UmbilicalCordOther }); list.Add(new ListValue { strMark = "#zz", strVal = model2.ReferralAdvice }); list.Add(new ListValue { strMark = "$zzyy", strVal = model2.ReferralReason }); list.Add(new ListValue { strMark = "$zzks", strVal = model2.AgenciesDepartments }); list.Add(new ListValue { strMark = "#zd", strVal = model2.Guidance }); list.Add(new ListValue { strMark = "$bcsfrq", strVal = DrawItems.strToDate(model2.InterviewDate) }); list.Add(new ListValue { strMark = "$xcsf", strVal = model2.NextFollowupPlace }); list.Add(new ListValue { strMark = "$xdsfrq", strVal = DrawItems.strToDate(model2.NextFollowupDate) }); list.Add(new ListValue { strMark = "$mqxm", strVal = model2.MotherName }); list.Add(new ListValue { strMark = "$mqzy", strVal = model2.MotherJob }); list.Add(new ListValue { strMark = "$mqdh", strVal = model2.MotherTel }); list.Add(new ListValue { strMark = "$csyz", strVal = DrawItems.objToNumStr(model2.GestationalWeek, 0) }); list.Add(new ListValue { strMark = "#hb", strVal = model2.PregnancPreva }); list.Add(new ListValue { strMark = "$rqhb", strVal = model2.PregnancPrevaOther }); list.Add(new ListValue { strMark = "$zcjg", strVal = model2.MidwifOrganizaName }); list.Add(new ListValue { strMark = "#csqk", strVal = model2.BirthInforma }); list.Add(new ListValue { strMark = "$csqt", strVal = model2.BirthInformaOther }); list.Add(new ListValue { strMark = "#zx", strVal = model2.Aasphyxia }); list.Add(new ListValue { strMark = "#jx", strVal = model2.WhetherAbnorma }); list.Add(new ListValue { strMark = "$jxqt", strVal = model2.WhetherAbnormaHave }); list.Add(new ListValue { strMark = "#tl", strVal = model2.HearingScreen }); list.Add(new ListValue { strMark = "#sc", strVal = model2.DiseaseScreen }); list.Add(new ListValue { strMark = "$scqt", strVal = model2.DiseaseScreenOther }); list.Add(new ListValue { strMark = "$cstz", strVal = DrawItems.objToNumStr(model2.BirthWeight) }); list.Add(new ListValue { strMark = "$mqtz", strVal = DrawItems.objToNumStr(model2.PresentWeight) }); list.Add(new ListValue { strMark = "$cssc", strVal = DrawItems.objToNumStr(model2.BirthStature) }); list.Add(new ListValue { strMark = "#wy", strVal = model2.FeedingPattern }); list.Add(new ListValue { strMark = "$cnl", strVal = DrawItems.objToNumStr(model2.NursingQuantity, 0) }); list.Add(new ListValue { strMark = "$cncs", strVal = DrawItems.objToNumStr(model2.InfantFrequen, 0) }); list.Add(new ListValue { strMark = "#ot", strVal = model2.Vomit }); list.Add(new ListValue { strMark = "#db", strVal = model2.Stool }); list.Add(new ListValue { strMark = "@apg" + model2.Apgar, strVal = "1" }); list.Add(new ListValue { strMark = "$fqid", strVal = model2.FatherID }); list.Add(new ListValue { strMark = "$mqid", strVal = model2.MotherID }); list.Add(new ListValue { strMark = "#xb", strVal = model2.Chest }); list.Add(new ListValue { strMark = "$xbqt", strVal = model2.ChestEx }); list.Add(new ListValue { strMark = "$zdqt", strVal = model2.GuidanceOther }); list.Add(new ListValue { strMark = "$zzjg", strVal = model2.ReferralOrgan }); list.Add(new ListValue { strMark = "$zzlxr", strVal = model2.ReferraContacts }); list.Add(new ListValue { strMark = "$zzlxdh", strVal = model2.ReferralContactsTel }); list.Add(new ListValue { strMark = "#zzjg", strVal = model2.ReferralResult }); list.Add(new ListValue { strMark = "&sfys", strVal = string.Format("{0}{1}_NewBorn_Doc.png", SignPath, model2.IDCardNo) }); list.Add(new ListValue { strMark = "&jzqm", strVal = string.Format("{0}{1}_NewBorn.png", SignPath, model2.IDCardNo) }); } return(DrawItems.setPage("printXps\\11新生儿家庭访视记录表.xps", list)); } return(null); }
public FixedDocumentSequence getReport() { List <ListValue> list = null; if (!string.IsNullOrEmpty(this.CardID)) { RecordsBaseInfoModel model = new RecordsBaseInfoBLL().GetModel(this.CardID); list = new List <ListValue> { new ListValue { strMark = "$archiveid", strVal = model.RecordID }, new ListValue { strMark = "$name", strVal = model.CustomerName } }; int Year = DateTime.Now.Year; string strWhere = string.Format("IDCardNo='{0}'order by VisitDate desc limit 0,4 ", this.CardID); List <ChronicDiadetesVisitModel> model1 = new ChronicDiadetesVisitBLL().GetModelList(strWhere); int count = model1.Count; foreach (ChronicDiadetesVisitModel model2 in model1) { list.Add(new ListValue { strMark = "$zsx" + count.ToString(), strVal = DrawItems.objToNumStr(model2.StapleFooddailygTarget) }); list.Add(new ListValue { strMark = "$sfrq" + count.ToString(), strVal = DrawItems.strToDate(model2.VisitDate) }); list.Add(new ListValue { strMark = "$xcsfsj" + count.ToString(), strVal = DrawItems.strToDate(model2.NextVisitDate) }); list.Add(new ListValue { strMark = "#zz" + count.ToString(), strVal = model2.Symptom }); list.Add(new ListValue { strMark = "%zzqt" + count.ToString(), strVal = model2.SymptomOther }); list.Add(new ListValue { strMark = "$xgy" + count.ToString(), strVal = DrawItems.objToNumStr(model2.Hypertension) }); list.Add(new ListValue { strMark = "$xdy" + count.ToString(), strVal = DrawItems.objToNumStr(model2.Hypotension) }); list.Add(new ListValue { strMark = "$tz" + count.ToString(), strVal = DrawItems.objToNumStr(model2.Weight) }); list.Add(new ListValue { strMark = "$tzzs" + count.ToString(), strVal = DrawItems.objToNumStr(model2.BMI) }); list.Add(new ListValue { strMark = "#tzzs" + count.ToString(), strVal = Convert.ToString(Convert.ToInt32(model2.DorsalisPedispulse)) }); list.Add(new ListValue { strMark = "$tzqt" + count.ToString(), strVal = model2.PhysicalSymptomMother }); list.Add(new ListValue { strMark = "$rxy" + count.ToString(), strVal = DrawItems.objToNumStr(model2.DailySmokeNum, 0) }); list.Add(new ListValue { strMark = "$ryj" + count.ToString(), strVal = DrawItems.objToNumStr(model2.DailyDrinkNum, 0) }); list.Add(new ListValue { strMark = "$ydz" + count.ToString(), strVal = DrawItems.objToNumStr(model2.SportTimePerWeek, 0) }); list.Add(new ListValue { strMark = "$ydc" + count.ToString(), strVal = DrawItems.objToNumStr(model2.SportPerMinuteTime, 0) }); list.Add(new ListValue { strMark = "$zs" + count.ToString(), strVal = DrawItems.objToNumStr(model2.StapleFooddailyg) }); list.Add(new ListValue { strMark = "#xltz" + count.ToString(), strVal = model2.PsychoAdjustment }); list.Add(new ListValue { strMark = "#zyxw" + count.ToString(), strVal = model2.ObeyDoctorBehavior }); list.Add(new ListValue { strMark = "$kfxt" + count.ToString(), strVal = DrawItems.objToNumStr(model2.FPG) }); list.Add(new ListValue { strMark = "$xh" + count.ToString(), strVal = DrawItems.objToNumStr(model2.HbAlc) }); list.Add(new ListValue { strMark = "$fzrq" + count.ToString(), strVal = DrawItems.strToDate(model2.ExamDate) }); list.Add(new ListValue { strMark = "%fzjcqt" + count.ToString(), strVal = model2.AssistantExam }); list.Add(new ListValue { strMark = "#fyyc" + count.ToString(), strVal = model2.MedicationCompliance }); list.Add(new ListValue { strMark = "#blfy" + count.ToString(), strVal = model2.Adr }); list.Add(new ListValue { strMark = "$fyqt" + count.ToString(), strVal = model2.AdrEx }); list.Add(new ListValue { strMark = "#dxtfy" + count.ToString(), strVal = model2.HypoglyceMiarreAction }); list.Add(new ListValue { strMark = "#sffl" + count.ToString(), strVal = model2.VisitType }); list.Add(new ListValue { strMark = "$ydzl" + count.ToString(), strVal = model2.InsulinType }); list.Add(new ListValue { strMark = "$ydyf" + count.ToString(), strVal = model2.InsulinUsage }); list.Add(new ListValue { strMark = "#sffs" + count.ToString(), strVal = model2.VisitWay }); list.Add(new ListValue { strMark = "$zzyy" + count.ToString(), strVal = model2.ReferralReason }); list.Add(new ListValue { strMark = "$zzjg" + count.ToString(), strVal = model2.ReferralOrg }); list.Add(new ListValue { strMark = "$tzx" + count.ToString(), strVal = DrawItems.objToNumStr(model2.TargetWeight) }); list.Add(new ListValue { strMark = "$tzzsx" + count.ToString(), strVal = DrawItems.objToNumStr(model2.BMITarget) }); list.Add(new ListValue { strMark = "$rxyx" + count.ToString(), strVal = DrawItems.objToNumStr(model2.DailySmokeNumTarget, 0) }); list.Add(new ListValue { strMark = "$ryjx" + count.ToString(), strVal = DrawItems.objToNumStr(model2.DailyDrinkNumTarget, 0) }); list.Add(new ListValue { strMark = "$ydzx" + count.ToString(), strVal = DrawItems.objToNumStr(model2.SportTimePerWeekTarget, 0) }); list.Add(new ListValue { strMark = "$ydcx" + count.ToString(), strVal = DrawItems.objToNumStr(model2.SportPerMinuteTimeTarget, 0) }); if ((int)model2.DorsalisPedispulse.Value == 2) { list.AddRange(DrawItems.lsCheck(DrawItems.objToStr(model2.DorsalisPedispulseType), "jr" + count.ToString(), 3)); } else if ((int)model2.DorsalisPedispulse.Value == 3) { list.AddRange(DrawItems.lsCheck(DrawItems.objToStr(model2.DorsalisPedispulseType), "xs" + count.ToString(), 3)); } list.Add(new ListValue { strMark = "#xbcs" + count.ToString(), strVal = model2.NextMeasures }); list.Add(new ListValue { strMark = "$zzlx" + count.ToString(), strVal = model2.ReferralContacts }); list.Add(new ListValue { strMark = "#zzjg" + count.ToString(), strVal = model2.ReferralResult }); list.Add(new ListValue { strMark = "$bz" + count.ToString(), strVal = model2.Remarks }); list.Add(new ListValue { strMark = "$ydtzzl" + count.ToString(), strVal = model2.InsulinAdjustType }); list.Add(new ListValue { strMark = "$ydtzyf" + count.ToString(), strVal = model2.InsulinAdjustUsage }); //滕州无签字版 list.Add(new ListValue { strMark = "$qm" + count.ToString(), strVal = model.CustomerName }); list.Add(new ListValue { strMark = "$sfys" + count.ToString(), strVal = model2.VisitDoctor }); list.Add(new ListValue { strMark = "&qm" + count.ToString(), strVal = string.Format("{0}{1}_{2}.png", SignPath, model2.IDCardNo, Convert.ToDateTime(model2.VisitDate).ToString("yyyyMMdd")) }); list.Add(new ListValue { strMark = "&sfys" + count.ToString(), strVal = string.Format("{0}{1}_{2}_Doc.png", SignPath, model2.IDCardNo, Convert.ToDateTime(model2.VisitDate).ToString("yyyyMMdd")) }); List <ChronicDrugConditionModel> modelList = new ChronicDrugConditionBLL().GetModelList(string.Format(" IDCardNo = '{0}' and TYPE = '{1}' and OUTKey = '" + model2.ID + "' ", this.CardID, "2")); if (modelList != null && modelList.Count > 0) { list.AddRange(this.getDrug(modelList, count, 0).ToArray()); } List <ChronicDrugConditionModel> modelListTZ = new ChronicDrugConditionBLL().GetModelList(string.Format(" IDCardNo = '{0}' and TYPE = '{1}' and OUTKey ='" + model2.ID + "' ", this.CardID, "8"));//用药调整类型为8 if (modelListTZ != null && modelListTZ.Count > 0) { list.AddRange(this.getDrug(modelListTZ, count, 3).ToArray()); } count--; } } return(DrawItems.setPage("printXps\\" + this.PrintName, list)); }
public FixedDocumentSequence getReport() { if (!string.IsNullOrEmpty(this.CardID)) { RecordsBaseInfoModel model = new RecordsBaseInfoBLL().GetModel(this.CardID); List <ListValue> list = new List <ListValue> { new ListValue { strMark = "$archiveid", strVal = model.RecordID }, new ListValue { strMark = "$name", strVal = model.CustomerName } }; WomenGravidaFirstVisitModel model2 = new WomenGravidaFirstVisitDAL().GetModel(this.CardID); if (model2 != null) { list.Add(new ListValue { strMark = "$ylc", strVal = model2.AbortionInfo }); list.Add(new ListValue { strMark = "$ylcr", strVal = model2.ArtificialAbortion }); list.Add(new ListValue { strMark = "$yst", strVal = model2.Deadfetus }); list.Add(new ListValue { strMark = "$ysc", strVal = model2.StillBirthInfo }); list.Add(new ListValue { strMark = "$ysw", strVal = model2.NewBornDead }); list.Add(new ListValue { strMark = "$yqx", strVal = model2.NewBornDefect }); list.Add(new ListValue { strMark = "$sg", strVal = DrawItems.objToNumStr(model2.Height, 2) }); list.Add(new ListValue { strMark = "$tz", strVal = DrawItems.objToNumStr(model2.Weight) }); list.Add(new ListValue { strMark = "$tzzs", strVal = DrawItems.objToNumStr(model2.Bmi) }); list.Add(new ListValue { strMark = "$xgy", strVal = DrawItems.objToNumStr(model2.HBloodpressure) }); list.Add(new ListValue { strMark = "$xdy", strVal = DrawItems.objToNumStr(model2.LBloodpressure) }); list.Add(new ListValue { strMark = "#t", strVal = model2.Heart }); list.Add(new ListValue { strMark = "$tzxz", strVal = model2.Heartex }); list.Add(new ListValue { strMark = "#f", strVal = model2.Lung }); list.Add(new ListValue { strMark = "$tzfb", strVal = model2.Lungex }); list.Add(new ListValue { strMark = "#w", strVal = model2.Vulva }); list.Add(new ListValue { strMark = "$wy", strVal = model2.VulvaEx }); list.Add(new ListValue { strMark = "#y", strVal = model2.V****a }); list.Add(new ListValue { strMark = "$fkyd", strVal = model2.VaginaEx }); list.Add(new ListValue { strMark = "#g", strVal = model2.CervixuTeri }); list.Add(new ListValue { strMark = "$gj", strVal = model2.CervixuTeriex }); list.Add(new ListValue { strMark = "#z", strVal = model2.Corpus }); list.Add(new ListValue { strMark = "$fkzg", strVal = model2.CorpusEx }); list.Add(new ListValue { strMark = "#j", strVal = model2.Attach }); list.Add(new ListValue { strMark = "$fj", strVal = model2.AttachEx }); list.Add(new ListValue { strMark = "#ztpg", strVal = model2.OverAlassessMent }); list.Add(new ListValue { strMark = "$ztpjyc", strVal = model2.OverAlassessmentEx }); list.Add(new ListValue { strMark = "#bjzd", strVal = model2.HealthZhiDao }); list.Add(new ListValue { strMark = "$zdqt", strVal = model2.HealthZhiDaoOthers }); list.Add(new ListValue { strMark = "#zz", strVal = model2.Referral }); list.Add(new ListValue { strMark = "$zzyy", strVal = model2.ReferralReason }); list.Add(new ListValue { strMark = "$zzjg", strVal = model2.ReferralOrg }); list.Add(new ListValue { strMark = "$zzlxr", strVal = model2.ReferralContacts }); list.Add(new ListValue { strMark = "$zzlxfs", strVal = model2.ReferralContactsTel }); list.Add(new ListValue { strMark = "#zzjg", strVal = model2.ReferralResult }); list.Add(new ListValue { strMark = "$xcsfrq", strVal = DrawItems.strToDate(model2.NextfollowupDate) }); //list.Add(new ListValue //{ // strMark = "$sfys", // strVal = model2.FollowUpDoctor //}); list.Add(new ListValue { strMark = "$fksqt", strVal = model2.GynecologyHistoryEx }); list.Add(new ListValue { strMark = "$tbrq", strVal = DrawItems.strToDate(model2.RecordDate) }); list.Add(new ListValue { strMark = "$tbyz", strVal = DrawItems.objToNumStr(model2.PregancyWeeks, 0) }); list.Add(new ListValue { strMark = "$yfnl", strVal = DrawItems.objToNumStr(model2.CustomerAge, 0) }); list.Add(new ListValue { strMark = "$zfxm", strVal = model2.HusbandName }); list.Add(new ListValue { strMark = "$tzfnl", strVal = DrawItems.objToNumStr(model2.HusbandAge, 0) }); list.Add(new ListValue { strMark = "$zfdh", strVal = model2.HusbandPhone }); list.Add(new ListValue { strMark = "$yc", strVal = DrawItems.objToNumStr(model2.PregancyCount, 0) }); list.Add(new ListValue { strMark = "$ydcc", strVal = DrawItems.objToNumStr(model2.NatrualChildBirthCount, 0) }); list.Add(new ListValue { strMark = "$pgcc", strVal = DrawItems.objToNumStr(model2.CaeSareanCount, 0) }); if (model2.LastMenStruation == "0") { list.Add(new ListValue { strMark = "$mcyj", strVal = "不详" }); } else { list.Add(new ListValue { strMark = "$mcyj", strVal = DrawItems.strToDate(model2.LastMenStruationDate) }); } list.Add(new ListValue { strMark = "$ycc", strVal = DrawItems.strToDate(model2.ExpectedDueDate) }); list.Add(new ListValue { strMark = "#jws", strVal = model2.CustomerHistory }); list.Add(new ListValue { strMark = "$jwsqt", strVal = model2.CustomerHistoryEx }); list.Add(new ListValue { strMark = "#jzs", strVal = model2.FamilyHistory }); list.Add(new ListValue { strMark = "$jzsqt", strVal = model2.FamilyHistoryEx }); list.Add(new ListValue { strMark = "#grs", strVal = model2.PersonalHistory }); list.Add(new ListValue { strMark = "$grsqt", strVal = model2.PersonalHistoryEx }); list.Add(new ListValue { strMark = "#fks", strVal = model2.GyNecoloGyHistory }); list.Add(new ListValue { strMark = "$jcjg", strVal = model2.BooksInstitution }); list.Add(new ListValue { strMark = "#jcqk", strVal = model2.BooksInfo }); } WomenGravidaPreAssistCheckModel model3 = new WomenGravidaPreAssistCheckDAL().GetModel(this.CardID); if (model3 != null) { list.Add(new ListValue { strMark = "$xhdb", strVal = DrawItems.objToNumStr(model3.HB) }); list.Add(new ListValue { strMark = "$xbxb", strVal = DrawItems.objToNumStr(model3.WBC) }); list.Add(new ListValue { strMark = "$xxb", strVal = DrawItems.objToNumStr(model3.PlT) }); list.Add(new ListValue { strMark = "$xcqt", strVal = model3.BloodOther }); list.Add(new ListValue { strMark = "$ndb", strVal = model3.PRO }); list.Add(new ListValue { strMark = "$nt", strVal = model3.GLU }); list.Add(new ListValue { strMark = "$ntt", strVal = model3.KET }); list.Add(new ListValue { strMark = "$nqx", strVal = model3.BLD }); list.Add(new ListValue { strMark = "$nqt", strVal = model3.UrineOthers }); string bLOODTYPE; string strVal; if ((bLOODTYPE = model3.BloodType) != null) { if (bLOODTYPE == "1") { strVal = "A型"; goto IL_BBF; } if (bLOODTYPE == "2") { strVal = "B型"; goto IL_BBF; } if (bLOODTYPE == "3") { strVal = "O型"; goto IL_BBF; } if (bLOODTYPE == "4") { strVal = "AB型"; goto IL_BBF; } if (bLOODTYPE == "5") { strVal = "不详"; goto IL_BBF; } } strVal = ""; IL_BBF: list.Add(new ListValue { strMark = "$abo", strVal = strVal }); if (model3.RH == "1") { list.Add(new ListValue { strMark = "$rh", strVal = "阴性" }); } else { if (model3.RH == "2") { list.Add(new ListValue { strMark = "$rh", strVal = "阳性" }); } else { if (model3.RH == "3") { list.Add(new ListValue { strMark = "$rh", strVal = "不详" }); } } } list.Add(new ListValue { strMark = "$xt", strVal = DrawItems.objToNumStr(model3.FPGL) }); list.Add(new ListValue { strMark = "$ggb", strVal = DrawItems.objToNumStr(model3.SGPT) }); list.Add(new ListValue { strMark = "$ggc", strVal = DrawItems.objToNumStr(model3.GOT) }); list.Add(new ListValue { strMark = "$gdb", strVal = DrawItems.objToNumStr(model3.BP) }); list.Add(new ListValue { strMark = "$gdh", strVal = DrawItems.objToNumStr(model3.TBIL) }); list.Add(new ListValue { strMark = "$gjh", strVal = DrawItems.objToNumStr(model3.CB) }); list.Add(new ListValue { strMark = "$sxq", strVal = DrawItems.objToNumStr(model3.SCR) }); list.Add(new ListValue { strMark = "$sxn", strVal = DrawItems.objToNumStr(model3.BUN) }); list.Add(new ListValue { strMark = "#ydfm", strVal = model3.VaginalSecretions }); list.Add(new ListValue { strMark = "$ydqt", strVal = model3.VaginalSecretionSothers }); list.Add(new ListValue { strMark = "#ydqj", strVal = model3.VaginalCleaess }); list.Add(new ListValue { strMark = "$ygby", strVal = model3.HBSAG }); list.Add(new ListValue { strMark = "$xtt", strVal = model3.HBSAB }); list.Add(new ListValue { strMark = "$ygey", strVal = model3.HBEAG }); list.Add(new ListValue { strMark = "$xet", strVal = model3.HBEAB }); list.Add(new ListValue { strMark = "$yght", strVal = model3.HBCAB }); list.Add(new ListValue { strMark = "#mdxq", strVal = model3.LUES }); list.Add(new ListValue { strMark = "#hiv", strVal = model3.HIV }); list.Add(new ListValue { strMark = "$bc", strVal = model3.BCHAO }); list.Add(new ListValue { strMark = "$fzqt", strVal = model3.AssistOther }); } list.Add(new ListValue { strMark = "&qm", strVal = string.Format("{0}{1}_{2}.png", SignPath, model.IDCardNo, "PrenatalS_1") }); list.Add(new ListValue { strMark = "&sfys", strVal = string.Format("{0}{1}_{2}_Doc.png", SignPath, model.IDCardNo, "PrenatalS_1") }); return(DrawItems.setPage("printXps\\15第一次产前随访服务记录表.xps", list)); } return(null); }
public List <ListValue> getList(string MonthType) { List <ListValue> list = new List <ListValue>(); string text; if (MonthType != null) { if (MonthType == "1") { text = "1"; goto IL_72; } if (MonthType == "2") { text = "3"; goto IL_72; } if (MonthType == "3") { text = "6"; goto IL_72; } if (MonthType == "4") { text = "8"; goto IL_72; } } text = "1"; IL_72: KidsWithinOneYearOldModel model = this.getModel(MonthType); if (model == null) { return(null); } list.Add(new ListValue { strMark = "$" + text + "sfrq", strVal = DrawItems.strToDate(model.VisitDate) }); list.Add(new ListValue { strMark = "$" + text + "tz", strVal = DrawItems.objToNumStr(model.Weight, 2) }); list.Add(new ListValue { strMark = "$" + text + "sc", strVal = DrawItems.objToNumStr(model.Stature, 2) }); list.Add(new ListValue { strMark = "$" + text + "tw", strVal = DrawItems.objToNumStr(model.HeadCircumference, 2) }); list.Add(new ListValue { strMark = "$" + text + "qx", strVal = DrawItems.objToNumStr(model.BregmaLeft, 1) }); list.Add(new ListValue { strMark = "$" + text + "qy", strVal = DrawItems.objToNumStr(model.BregmaRight, 1) }); list.Add(new ListValue { strMark = "$" + text + "xhdb", strVal = DrawItems.objToNumStr(model.HemoglobinValue, 1) }); list.Add(new ListValue { strMark = "$" + text + "hwhd", strVal = DrawItems.objToNumStr(model.OutdoorActivities, 1) }); list.Add(new ListValue { strMark = "$" + text + "wsdd", strVal = DrawItems.objToNumStr(model.TakingVitaminsd, 1) }); list.Add(new ListValue { strMark = "$" + text + "cy", strVal = DrawItems.objToNumStr(model.TeethNum, 0) }); list.Add(new ListValue { strMark = "$" + text + "zzyy", strVal = DrawItems.objToStr(model.ReferralReason) }); list.Add(new ListValue { strMark = "$" + text + "zzks", strVal = DrawItems.objToStr(model.AgenciesDepartments) }); list.Add(new ListValue { strMark = "$" + text + "xcsf", strVal = DrawItems.strToDate(model.NextFollowupDate, 1) }); //list.Add(new ListValue //{ // strMark = "$" + text + "sfys", // strVal = DrawItems.objToStr(model.FollowUpDoctorSign) //}); list.Add(new ListValue { strMark = "$" + text + "fy", strVal = DrawItems.objToStr(model.PneumoniaCounts) }); list.Add(new ListValue { strMark = "$" + text + "fx", strVal = DrawItems.objToStr(model.DiarrheaCounts) }); list.Add(new ListValue { strMark = "$" + text + "ws", strVal = DrawItems.objToStr(model.TraumaCounts) }); list.Add(new ListValue { strMark = "$" + text + "qt", strVal = model.SickOther }); list.Add(new ListValue { strMark = "$" + text + "lxr", strVal = model.ReferraContacts }); list.Add(new ListValue { strMark = "$" + text + "lxfs", strVal = model.ReferralContactsTel }); list.Add(new ListValue { strMark = "#" + text + "dw", strVal = model.ReferralResult }); list.Add(new ListValue { strMark = "&" + text + "sfys", strVal = string.Format("{0}{1}_Month_{2}_Doc.png", SignPath, model.IDCardNo, text) }); list.Add(new ListValue { strMark = "&" + text + "qm", strVal = string.Format("{0}{1}_Month_{2}.png", SignPath, model.IDCardNo, text) }); if (!string.IsNullOrEmpty(model.WeightAnalysis)) { model.WeightAnalysis = (int.Parse(model.WeightAnalysis) - 1).ToString(); } if (!string.IsNullOrEmpty(model.StatureAnalysis)) { model.StatureAnalysis = (int.Parse(model.StatureAnalysis) - 1).ToString(); } list.AddRange(DrawItems.lsCheck(model.WeightAnalysis, text, "t", 3)); list.AddRange(DrawItems.lsCheck(model.StatureAnalysis, text, "s", 3)); list.AddRange(DrawItems.lsCheck(model.ColorFace, text, "ms", 3)); list.AddRange(DrawItems.lsCheck(model.Skin, text, "pf", 3)); list.AddRange(DrawItems.lsCheck(model.Bregma, text, "qx", 3)); list.AddRange(DrawItems.lsCheck(model.NeckMass, text, "jb", 2)); list.AddRange(DrawItems.lsCheck(model.EyeAppearance, text, "ywg", 2)); list.AddRange(DrawItems.lsCheck(model.EyeAppearance, text, "ewg", 2)); list.AddRange(DrawItems.lsCheck(model.Listening, text, "tl", 2)); list.AddRange(DrawItems.lsCheck(model.OralCavity, text, "kq", 2)); list.AddRange(DrawItems.lsCheck(model.HeartLung, text, "xf", 2)); list.AddRange(DrawItems.lsCheck(model.Stomach, text, "fb", 2)); list.AddRange(DrawItems.lsCheck(model.UmbilicalRegion, text, "qb", 4)); list.AddRange(DrawItems.lsCheck(model.FourLimb, text, "sz", 4)); list.AddRange(DrawItems.lsCheck(model.RicketsSympotom, text, "gzz", 4)); list.AddRange(DrawItems.lsCheck(model.RicketsSign, text, "gtz", 7)); list.AddRange(DrawItems.lsCheck(model.AnusExternalGenita, text, "gw", 2)); list.AddRange(DrawItems.lsCheck(model.AuxeEstimate, text, "fy", 4)); list.AddRange(DrawItems.lsCheck(model.AmongTwoFollowup, text, "hb", 2)); list.AddRange(DrawItems.lsCheck(model.ReferralAdvice, text, "zz", 2)); list.AddRange(DrawItems.lsCheck(model.Guidance, text, "zd", 5)); list.AddRange(DrawItems.lsCheck(model.Chest, text, "xb", 2)); if (model.SickNone == "有") { list.AddRange(DrawItems.lsCheck("1", text, "hb", 1)); } return(list); }
public List <ListValue> getList(string MonthType) { List <ListValue> list = new List <ListValue>(); KidsThreeToSixYearOldModel model = this.getModel(MonthType); if (model == null) { return(null); } list.Add(new ListValue { strMark = "$" + MonthType + "cy", strVal = DrawItems.objToNumStr(model.TcnLeft, 0) }); list.Add(new ListValue { strMark = "$" + MonthType + "fx", strVal = DrawItems.objToNumStr(model.DiarrhoeaFrequen, 0) }); list.Add(new ListValue { strMark = "$" + MonthType + "fy", strVal = DrawItems.objToNumStr(model.PneumoniaFrequen, 0) }); list.Add(new ListValue { strMark = "$" + MonthType + "jcqt", strVal = model.Other }); list.Add(new ListValue { strMark = "$" + MonthType + "qc", strVal = DrawItems.objToNumStr(model.TdcnRight, 0) }); list.Add(new ListValue { strMark = "$" + MonthType + "qt", strVal = model.AmongTwoFolloOther }); list.Add(new ListValue { strMark = "$" + MonthType + "sc", strVal = DrawItems.objToNumStr(model.Stature) }); list.Add(new ListValue { strMark = "$" + MonthType + "sfrq", strVal = DrawItems.strToDate(model.VisitDate) }); //list.Add(new ListValue //{ // strMark = "$" + MonthType + "sfys", // strVal = model.VisitDoctorSign //}); list.Add(new ListValue { strMark = "$" + MonthType + "sl", strVal = DrawItems.objToNumStr(model.Sight, 1) }); list.Add(new ListValue { strMark = "$" + MonthType + "tz", strVal = DrawItems.objToNumStr(model.Weight) }); list.Add(new ListValue { strMark = "$" + MonthType + "ws", strVal = DrawItems.objToNumStr(model.TraumatismFrequen, 0) }); list.Add(new ListValue { strMark = "$" + MonthType + "wssm", strVal = model.AgenciesDepartments }); list.Add(new ListValue { strMark = "$" + MonthType + "xcsf", strVal = DrawItems.strToDate(model.NextVisitDate) }); list.Add(new ListValue { strMark = "$" + MonthType + "xhdb", strVal = DrawItems.objToNumStr(model.HemoglobinValue) }); list.Add(new ListValue { strMark = "$" + MonthType + "zdqt", strVal = model.GuidanceOther }); list.Add(new ListValue { strMark = "$" + MonthType + "zzyy", strVal = model.ReferralReason }); list.Add(new ListValue { strMark = "&" + MonthType + "sfys", strVal = string.Format("{0}{1}_Year_{2}_Doc.png", SignPath, model.IDCardNo, model.Flag) }); list.Add(new ListValue { strMark = "&" + MonthType + "qm", strVal = string.Format("{0}{1}_Year_{2}.png", SignPath, model.IDCardNo, model.Flag) }); list.AddRange(DrawItems.lsCheck(model.Stomach, MonthType, "fb", 3)); list.AddRange(DrawItems.lsCheck(model.StatureAnalysis, MonthType, "s", 3)); list.AddRange(DrawItems.lsCheck(model.AmongTwoFolloNone, MonthType, "sfhb", 3)); list.AddRange(DrawItems.lsCheck(model.WeightAnalysis, MonthType, "t", 3)); list.AddRange(DrawItems.lsCheck(model.PhysicalAuxeEvaluat, MonthType, "tg", 5)); list.AddRange(DrawItems.lsCheck(model.Listening, MonthType, "tl", 3)); list.AddRange(DrawItems.lsCheck(model.HeartLung, MonthType, "xf", 3)); list.AddRange(DrawItems.lsCheck(model.Guidance, MonthType, "zd", 5)); list.AddRange(DrawItems.lsCheck(model.ReferralAdvice, MonthType, "zz", 3)); return(list); }
public FixedDocumentSequence getReport() { List <ListValue> list = null; if (!string.IsNullOrEmpty(this.CardID)) { RecordsBaseInfoModel model = new RecordsBaseInfoBLL().GetModel(this.CardID); list = new List <ListValue> { new ListValue { strMark = "$archiveid", strVal = model.RecordID }, new ListValue { strMark = "$name", strVal = model.CustomerName } }; ChronicMentalDiseaseVisitModel model2 = new ChronicMentalDiseaseVisitBLL().GetModel(this.CardID); if (model2 != null) { list.Add(new ListValue { strMark = "$xcsfsj", strVal = DrawItems.strToDate(model2.NextFollowUpDate) }); list.Add(new ListValue { strMark = "$sfrq", strVal = DrawItems.strToDate(model2.FollowUpDate) }); list.Add(new ListValue { strMark = "#wxx", strVal = model2.Fatalness }); list.Add(new ListValue { strMark = "#zqty", strVal = model2.PresentSymptom }); list.Add(new ListValue { strMark = "$zzqt", strVal = model2.PresentSymptoOther }); list.Add(new ListValue { strMark = "#zznl", strVal = model2.Insight }); list.Add(new ListValue { strMark = "#smqk", strVal = model2.SleepQuality }); list.Add(new ListValue { strMark = "#ysqk", strVal = model2.Diet }); list.Add(new ListValue { strMark = "#grsh", strVal = model2.PersonalCare }); list.Add(new ListValue { strMark = "#jwld", strVal = model2.Housework }); list.Add(new ListValue { strMark = "#scld", strVal = model2.ProductLaborWork }); list.Add(new ListValue { strMark = "#xxnl", strVal = model2.LearningAbility }); list.Add(new ListValue { strMark = "#shrj", strVal = model2.SocialInterIntera }); list.Add(new ListValue { strMark = "$qdzs", strVal = DrawItems.objToNumStr(model2.MildTroubleFrequen, 0) }); list.Add(new ListValue { strMark = "$zs", strVal = DrawItems.objToNumStr(model2.CreateDistuFrequen, 0) }); list.Add(new ListValue { strMark = "$zh", strVal = DrawItems.objToNumStr(model2.CauseAccidFrequen, 0) }); list.Add(new ListValue { strMark = "$zsh", strVal = DrawItems.objToNumStr(model2.AutolesionFrequen, 0) }); list.Add(new ListValue { strMark = "$zsws", strVal = DrawItems.objToNumStr(model2.AttemptSuicFrequen, 0) }); list.Add(new ListValue { strMark = "$qtwh", strVal = DrawItems.objToNumStr(model2.OtherDangerFrequen, 0) }); list.Add(new ListValue { strMark = "@hbyxw", strVal = (model2.AttemptSuicideNone != "有") ? "1" : "" }); list.Add(new ListValue { strMark = "#gsqk", strVal = model2.LockCondition }); list.Add(new ListValue { strMark = "#zyqk", strVal = model2.HospitalizatiStatus }); list.Add(new ListValue { strMark = "$zycy", strVal = DrawItems.strToDate(model2.LastLeaveHospTime) }); list.Add(new ListValue { strMark = "#syjc", strVal = model2.LaborExaminati }); list.Add(new ListValue { strMark = "$syjcy", strVal = model2.LaborExaminatiHave }); list.Add(new ListValue { strMark = "#fyyc", strVal = model2.MedicatioCompliance }); list.Add(new ListValue { strMark = "#blfy", strVal = model2.AdnerDruReact }); list.Add(new ListValue { strMark = "$blqt", strVal = model2.AdverDruReactHave }); list.Add(new ListValue { strMark = "#zlxg", strVal = model2.TreatmentEffect }); list.Add(new ListValue { strMark = "#zz", strVal = model2.WhetherReferral }); list.Add(new ListValue { strMark = "$zzyy", strVal = model2.ReferralReason }); list.Add(new ListValue { strMark = "$zzks", strVal = model2.ReferralAgencDepar }); list.Add(new ListValue { strMark = "#kfcs", strVal = model2.RehabiliMeasu }); list.Add(new ListValue { strMark = "$kfqt", strVal = model2.RehabiliMeasuOther }); list.Add(new ListValue { strMark = "#sffl", strVal = model2.FollowupClassificat }); list.Add(new ListValue { strMark = "$swrq", strVal = DrawItems.strToDate(model2.DeathDate) }); list.Add(new ListValue { strMark = "#qtjb", strVal = model2.IllReason }); list.Add(new ListValue { strMark = "#swqt", strVal = model2.DeathReason }); list.Add(new ListValue { strMark = "#sfyy", strVal = model2.NoVisitReason }); list.Add(new ListValue { strMark = "#sffs", strVal = model2.FollowUpType }); list.Add(new ListValue { strMark = "#lxbm", strVal = model2.JointPartFlag }); list.Add(new ListValue { strMark = "$gadlr", strVal = model2.PoliceAgent }); list.Add(new ListValue { strMark = "$sqdlr", strVal = model2.CommunityAgent }); list.Add(new ListValue { strMark = "$gadh", strVal = model2.PoliceAgentTel }); list.Add(new ListValue { strMark = "$sqdh", strVal = model2.CommunityAgentTel }); list.Add(new ListValue { strMark = "#zzcg", strVal = model2.ReferralResult }); list.Add(new ListValue { strMark = "$zzjg", strVal = model2.ReferralOrgan }); list.Add(new ListValue { strMark = "$zzlxr", strVal = model2.ReferraContacts }); list.Add(new ListValue { strMark = "$zzlxdh", strVal = model2.ReferralContactsTel }); list.Add(new ListValue { strMark = "#jskys", strVal = model2.ContactSpecialist }); list.Add(new ListValue { strMark = "$jsys", strVal = model2.SpecialistName }); list.Add(new ListValue { strMark = "$jsysdh", strVal = model2.SpecialistTel }); list.Add(new ListValue { strMark = "$czjg", strVal = model2.DisposalResult }); list.Add(new ListValue { strMark = "&qm", strVal = string.Format("{0}{1}_{2}.png", SignPath, model2.IDCardNo, Convert.ToDateTime(model2.FollowUpDate).ToString("yyyyMMdd")) }); list.Add(new ListValue { strMark = "&yfys", strVal = string.Format("{0}{1}_{2}_Doc.png", SignPath, model2.IDCardNo, Convert.ToDateTime(model2.FollowUpDate).ToString("yyyyMMdd")) }); //滕州无签字版 list.Add(new ListValue { strMark = "$qm", strVal = model.CustomerName }); list.Add(new ListValue { strMark = "$yfys", strVal = model2.FollowUpDoctor }); List <ChronicDrugConditionModel> modelList = new ChronicDrugConditionBLL().GetModelList(string.Format(" IDCardNo = '{0}' and TYPE = '{1}' and OUTKey = '" + model2.ID + "' ", this.CardID, "3")); if (modelList != null && modelList.Count > 0) { list.AddRange(this.getDrug(modelList, 0).ToArray()); } List <ChronicDrugConditionModel> YYZDmodelList = new ChronicDrugConditionBLL().GetModelList(string.Format(" IDCardNo = '{0}' and TYPE = '{1}' and OUTKey = '" + model2.ID + "' ", this.CardID, "6"));//调整用药情况 if (YYZDmodelList != null && YYZDmodelList.Count > 0) { list.AddRange(this.getDrug(YYZDmodelList, 3).ToArray()); } } } return(DrawItems.setPage("printXps\\" + this.PrintName, list)); }
public FixedDocumentSequence getReport() { if (!string.IsNullOrEmpty(this.CardID)) { RecordsBaseInfoModel model = new RecordsBaseInfoDAL().GetModel(this.CardID); List <ListValue> list = new List <ListValue> { new ListValue { strMark = "$archiveid", strVal = model.RecordID }, new ListValue { strMark = "$name", strVal = model.CustomerName }, new ListValue { strMark = "$idcard", strVal = model.IDCardNo } }; RecordsCustomerBaseInfoModel Customermodel = new RecordsCustomerBaseInfoDAL().GetMaxModel(this.CardID); if (Customermodel != null) { list.Add(new ListValue { strMark = "$gxrq", strVal = DrawItems.strToDate(Customermodel.LastUpdateDate) }); RecordsAssistCheckModel AssistModel = new RecordsAssistCheckDAL().GetModelByOutKey(Customermodel.ID); if (AssistModel != null) { list.Add(new ListValue { strMark = "$bxp", strVal = DrawItems.objToNumStr(AssistModel.WBC, 2) }); list.Add(new ListValue { strMark = "$ndb", strVal = AssistModel.PRO }); list.Add(new ListValue { strMark = "$qx", strVal = AssistModel.BLD }); list.Add(new ListValue { strMark = "$tt", strVal = AssistModel.KET }); list.Add(new ListValue { strMark = "$ptt", strVal = AssistModel.GLU }); } } return(DrawItems.setPage("printXps\\33尿液数据表.xps", list)); } return(null); }
public FixedDocumentSequence getReport() { List <ListValue> list = new List <ListValue>(); if (!string.IsNullOrEmpty(this.CardID)) { RecordsBaseInfoModel model = new RecordsBaseInfoBLL().GetModel(this.CardID); list = new List <ListValue> { new ListValue { strMark = "$archiveid", strVal = model.RecordID }, new ListValue { strMark = "$name", strVal = model.CustomerName } }; int Year = DateTime.Now.Year; string strWhere = string.Format("IDCardNo='{0}'order by FollowUpDate desc limit 0,4 ", this.CardID); List <ChronicHypertensionVisitModel> model1 = new ChronicHypertensionVisitBLL().GetModelList(strWhere); int count = model1.Count; foreach (ChronicHypertensionVisitModel model2 in model1) { list.Add(new ListValue { strMark = "$sfrq" + count.ToString(), strVal = DrawItems.strToDate(model2.FollowUpDate) }); list.Add(new ListValue { strMark = "$sfys" + count.ToString(), strVal = model2.FollowUpDoctor }); list.Add(new ListValue { strMark = "$xcsfsj" + count.ToString(), strVal = DrawItems.strToDate(model2.NextFollowUpDate) }); list.Add(new ListValue { strMark = "#zz" + count.ToString(), strVal = model2.Symptom }); list.Add(new ListValue { strMark = "%zzqt" + count.ToString(), strVal = model2.SympToMother }); list.Add(new ListValue { strMark = "$xgy" + count.ToString(), strVal = DrawItems.objToNumStr(model2.Hypertension, 0) }); list.Add(new ListValue { strMark = "$xdy" + count.ToString(), strVal = DrawItems.objToNumStr(model2.Hypotension, 0) }); list.Add(new ListValue { strMark = "$tz" + count.ToString(), strVal = DrawItems.objToNumStr(model2.Weight) }); list.Add(new ListValue { strMark = "$tzzs" + count.ToString(), strVal = DrawItems.objToNumStr(model2.BMI) }); list.Add(new ListValue { strMark = "$xl" + count.ToString(), strVal = DrawItems.objToNumStr(model2.HeartRate, 2) }); list.Add(new ListValue { strMark = "$tzqt" + count.ToString(), strVal = model2.PhysicalSympToMother }); list.Add(new ListValue { strMark = "$rxy" + count.ToString(), strVal = DrawItems.objToNumStr(model2.DailySmokeNum, 0) }); list.Add(new ListValue { strMark = "$ryj" + count.ToString(), strVal = DrawItems.objToNumStr(model2.DailyDrinkNum, 0) }); list.Add(new ListValue { strMark = "$ydz" + count.ToString(), strVal = DrawItems.objToNumStr(model2.SportTimePerWeek, 0) }); list.Add(new ListValue { strMark = "$ydc" + count.ToString(), strVal = DrawItems.objToNumStr(model2.SportPerMinuteTime, 0) }); list.Add(new ListValue { strMark = "#xltz" + count.ToString(), strVal = model2.PsyChoadJustMent }); list.Add(new ListValue { strMark = "#zyxw" + count.ToString(), strVal = model2.ObeyDoctorBehavior }); list.Add(new ListValue { strMark = "%fzjc" + count.ToString(), strVal = model2.AssistantExam }); list.Add(new ListValue { strMark = "#fyyc" + count.ToString(), strVal = model2.MedicationCompliance }); list.Add(new ListValue { strMark = "#blfy" + count.ToString(), strVal = model2.Adr }); list.Add(new ListValue { strMark = "$blfyqt" + count.ToString(), strVal = model2.AdrEx }); list.Add(new ListValue { strMark = "#sffl" + count.ToString(), strVal = model2.FollowUpType }); list.Add(new ListValue { strMark = "$zzyy" + count.ToString(), strVal = model2.ReferralReason }); list.Add(new ListValue { strMark = "$zzjg" + count.ToString(), strVal = model2.ReferralOrg }); list.Add(new ListValue { strMark = "#sffs" + count.ToString(), strVal = model2.FollowUpWay }); list.Add(new ListValue { strMark = "$tzx" + count.ToString(), strVal = DrawItems.objToNumStr(model2.WeightTarGet) }); list.Add(new ListValue { strMark = "$tzzsx" + count.ToString(), strVal = DrawItems.objToNumStr(model2.BMITarGet) }); list.Add(new ListValue { strMark = "$rxyx" + count.ToString(), strVal = DrawItems.objToNumStr(model2.DailySmokeNumTarget, 0) }); list.Add(new ListValue { strMark = "$ryjx" + count.ToString(), strVal = DrawItems.objToNumStr(model2.DailyDrinkNumTarget, 0) }); list.Add(new ListValue { strMark = "$ydzx" + count.ToString(), strVal = DrawItems.objToNumStr(model2.SportTimeSperWeekTarget, 0) }); list.Add(new ListValue { strMark = "$ydcx" + count.ToString(), strVal = DrawItems.objToNumStr(model2.SportPerMinutesTimeTarget, 0) }); list.Add(new ListValue { strMark = "#xbcs" + count.ToString(), strVal = model2.NextMeasures }); list.Add(new ListValue { strMark = "$zzlx" + count.ToString(), strVal = model2.ReferralContacts }); list.Add(new ListValue { strMark = "#zzjg" + count.ToString(), strVal = model2.ReferralResult }); list.Add(new ListValue { strMark = "$bz" + count.ToString(), strVal = model2.Remarks }); //滕州无签字版 list.Add(new ListValue { strMark = "$qm" + count.ToString(), strVal = model.CustomerName }); list.Add(new ListValue { strMark = "$ysqm" + count.ToString(), strVal = model2.FollowUpDoctor }); string qm = string.Format("{0}{1}_{2}.png", SignPath, model2.IDCardNo, Convert.ToDateTime(model2.FollowUpDate).ToString("yyyyMMdd")); string ysqm = string.Format("{0}{1}_{2}_Doc.png", SignPath, model2.IDCardNo, Convert.ToDateTime(model2.FollowUpDate).ToString("yyyyMMdd")); list.Add(new ListValue { strMark = "&qm" + count.ToString(), strVal = qm }); list.Add(new ListValue { strMark = "&ysqm" + count.ToString(), strVal = ysqm }); list.AddRange(DrawItems.lsCheck(model2.EatSaltType, "by" + count.ToString(), 3)); list.AddRange(DrawItems.lsCheck(model2.EatSaltTarGet, "xy" + count.ToString(), 3)); List <ChronicDrugConditionModel> modelList = new ChronicDrugConditionBLL().GetModelList(string.Format(" IDCardNo = '{0}' and TYPE = '{1}' and OUTKey ='" + model2.ID + "' ", this.CardID, "1")); if (modelList != null && modelList.Count > 0) { list.AddRange(this.getDrug(modelList, count, 0).ToArray()); } List <ChronicDrugConditionModel> modelListTZ = new ChronicDrugConditionBLL().GetModelList(string.Format(" IDCardNo = '{0}' and TYPE = '{1}' and OUTKey ='" + model2.ID + "' ", this.CardID, "7"));//用药调整类型为7 if (modelListTZ != null && modelListTZ.Count > 0) { list.AddRange(this.getDrug(modelListTZ, count, 3).ToArray()); } count--; } } return(DrawItems.setPage("printXps\\" + this.PrintName, list)); }
public FixedDocumentSequence getReport() { if (!string.IsNullOrEmpty(this.CardID)) { this.model = new RecordsBaseInfoBLL().GetModel(this.CardID); string strsex = "", strage = ""; if (model.Sex != null) { if (DrawItems.objToNumStr(model.Sex, 0) == "1") { strsex = "男"; } if (DrawItems.objToNumStr(model.Sex, 0) == "2") { strsex = "女"; } if (DrawItems.objToNumStr(model.Sex, 0) == "0") { strsex = "未知"; } if (DrawItems.objToNumStr(model.Sex, 0) == "9") { strsex = "未说明"; } } TimeParser timeParser = new TimeParser(); strage = timeParser.GetAge(model.Birthday); List <ListValue> list = new List <ListValue> { new ListValue { strMark = "$archiveid", strVal = model.RecordID }, new ListValue { strMark = "$name", strVal = model.CustomerName }, new ListValue { strMark = "$idcard", strVal = model.IDCardNo }, new ListValue { strMark = "$xb", strVal = strsex }, new ListValue { strMark = "$nl", strVal = strage } }; string strUnit = ""; string orgcode = ConfigHelper.GetNode("orgCode"); string TownCode = (orgcode.Length < 9) ? "" : orgcode.Substring(0, 9); if (!string.IsNullOrEmpty(TownCode)) { SysOrgTownModel TownModel = new SysOrgTownBLL().GetModel(TownCode); strUnit = TownModel.Name; } list.Add(new ListValue { strMark = "^Unit", strVal = strUnit }); string strYear = DateTime.Now.Year.ToString(); string strPWhere = string.Format("IDCardNo='{0}' and LEFT(CheckDate ,4)='{1}' ORDER BY CheckDate DESC LIMIT 0,1 ", this.CardID, strYear); RecordsCustomerBaseInfoModel model2 = new RecordsCustomerBaseInfoDAL().GetModelByWhere(strPWhere);//获取本年度最新一笔 DataSet AssistDateSet = new DataSet(); if (model2 != null) { list.Add(new ListValue { strMark = "$tjrq", strVal = DrawItems.strToDate(model2.CheckDate, 1) }); AssistDateSet = new RecordsAssistCheckDAL().GetList("OutKey=" + model2.ID); strYear = Convert.ToDateTime(model2.CheckDate).ToString("yyyy"); } else { list.Add(new ListValue { strMark = "$tjrq", strVal = DrawItems.strToDate(DateTime.Now.Date, 1) }); } DataTable dtSH = null; if (File.Exists(Application.StartupPath + "\\SHValueRange.xml")) { DataSet ds = new DataSet(); ds.ReadXml(Application.StartupPath + "\\SHValueRange.xml"); dtSH = ds.Tables[0]; } // 血常规数据 if (AssistDateSet.Tables.Count > 0) { string strXuex = ""; switch (AssistDateSet.Tables[0].Rows[0]["BloodType"].ToString()) { case "1": strXuex = "A型"; break; case "2": strXuex = "B型"; break; case "3": strXuex = "O型"; break; case "4": strXuex = "AB型"; break; default: break; } list.Add(new ListValue { strMark = "$xx", strVal = strXuex }); #region 禹城乙肝五项 if (area == "禹城") { list.Add(new ListValue { strMark = "$xmmc" + num.ToString(), strVal = "乙肝表面抗原" }); if (AssistDateSet.Tables[0].Rows[0]["HBSAG"].ToString() == "1") { list.Add(new ListValue { strMark = "$jcjg" + num.ToString(), strVal = "-" }); } else if (AssistDateSet.Tables[0].Rows[0]["HBSAG"].ToString() == "2") { list.Add(new ListValue { strMark = "$jcjg" + num.ToString(), strVal = "+" }); } else if (AssistDateSet.Tables[0].Rows[0]["HBSAG"].ToString() == "3") { list.Add(new ListValue { strMark = "$jcjg" + num.ToString(), strVal = "+-" }); } num++; list.Add(new ListValue { strMark = "$xmmc" + num.ToString(), strVal = "乙肝表面抗体" }); if (AssistDateSet.Tables[0].Rows[0]["HBSAB"].ToString() == "1") { list.Add(new ListValue { strMark = "$jcjg" + num.ToString(), strVal = "-" }); } else if (AssistDateSet.Tables[0].Rows[0]["HBSAB"].ToString() == "2") { list.Add(new ListValue { strMark = "$jcjg" + num.ToString(), strVal = "+" }); } else if (AssistDateSet.Tables[0].Rows[0]["HBSAB"].ToString() == "3") { list.Add(new ListValue { strMark = "$jcjg" + num.ToString(), strVal = "+-" }); } num++; list.Add(new ListValue { strMark = "$xmmc" + num.ToString(), strVal = "乙肝e抗原" }); if (AssistDateSet.Tables[0].Rows[0]["HBEAG"].ToString() == "1") { list.Add(new ListValue { strMark = "$jcjg" + num.ToString(), strVal = "-" }); } else if (AssistDateSet.Tables[0].Rows[0]["HBEAG"].ToString() == "2") { list.Add(new ListValue { strMark = "$jcjg" + num.ToString(), strVal = "+" }); } else if (AssistDateSet.Tables[0].Rows[0]["HBEAG"].ToString() == "3") { list.Add(new ListValue { strMark = "$jcjg" + num.ToString(), strVal = "+-" }); } num++; list.Add(new ListValue { strMark = "$xmmc" + num.ToString(), strVal = "乙肝e抗体" }); if (AssistDateSet.Tables[0].Rows[0]["HBEAB"].ToString() == "1") { list.Add(new ListValue { strMark = "$jcjg" + num.ToString(), strVal = "-" }); } else if (AssistDateSet.Tables[0].Rows[0]["HBEAB"].ToString() == "2") { list.Add(new ListValue { strMark = "$jcjg" + num.ToString(), strVal = "+" }); } else if (AssistDateSet.Tables[0].Rows[0]["HBEAB"].ToString() == "3") { list.Add(new ListValue { strMark = "$jcjg" + num.ToString(), strVal = "+-" }); } num++; list.Add(new ListValue { strMark = "$xmmc" + num.ToString(), strVal = "乙肝核心抗体" }); if (AssistDateSet.Tables[0].Rows[0]["HBCAB"].ToString() == "1") { list.Add(new ListValue { strMark = "$jcjg" + num.ToString(), strVal = "-" }); } else if (AssistDateSet.Tables[0].Rows[0]["HBCAB"].ToString() == "2") { list.Add(new ListValue { strMark = "$jcjg" + num.ToString(), strVal = "+" }); } else if (AssistDateSet.Tables[0].Rows[0]["HBCAB"].ToString() == "3") { list.Add(new ListValue { strMark = "$jcjg" + num.ToString(), strVal = "+-" }); } num++; } #endregion // 生化常规数据 if (community.Equals("聊城韩集乡医院")) { list.AddRange(CombinData(AssistDateSet.Tables[0], dtSH, "TP", true)); //总蛋白 list.AddRange(CombinData(AssistDateSet.Tables[0], dtSH, "GLB", true)); //球蛋白 list.AddRange(CombinData(AssistDateSet.Tables[0], dtSH, "AG", true)); //白球比 list.AddRange(CombinData(AssistDateSet.Tables[0], dtSH, "CB", true)); //直接胆红素 list.AddRange(CombinData(AssistDateSet.Tables[0], dtSH, "IBIL", true)); //间接胆红素 } if (area.Equals("禹城")) { list.AddRange(CombinData(AssistDateSet.Tables[0], dtSH, "FPGL", true)); //空腹血糖 list.AddRange(CombinData(AssistDateSet.Tables[0], dtSH, "TC", true)); //总胆固醇 list.AddRange(CombinData(AssistDateSet.Tables[0], dtSH, "TG", true)); //甘油三脂 list.AddRange(CombinData(AssistDateSet.Tables[0], dtSH, "HeiCho", true)); //高密度脂蛋白 list.AddRange(CombinData(AssistDateSet.Tables[0], dtSH, "LowCho", true)); //低密度脂蛋白 list.AddRange(CombinData(AssistDateSet.Tables[0], dtSH, "TP", true)); //总蛋白 list.AddRange(CombinData(AssistDateSet.Tables[0], dtSH, "GLB", true)); //球蛋白 list.AddRange(CombinData(AssistDateSet.Tables[0], dtSH, "BP", true)); //白蛋白 list.AddRange(CombinData(AssistDateSet.Tables[0], dtSH, "AG", true)); //白球比 list.AddRange(CombinData(AssistDateSet.Tables[0], dtSH, "GOT", true)); //血清谷草氨酸 list.AddRange(CombinData(AssistDateSet.Tables[0], dtSH, "SGPT", true)); //血清谷丙氨酸 list.AddRange(CombinData(AssistDateSet.Tables[0], dtSH, "GT", true)); //谷氨酰氨基转肽酶 list.AddRange(CombinData(AssistDateSet.Tables[0], dtSH, "TBIL", true)); //总胆红素 list.AddRange(CombinData(AssistDateSet.Tables[0], dtSH, "SCR", true)); //血清肌酐 list.AddRange(CombinData(AssistDateSet.Tables[0], dtSH, "BUN", true)); //血尿素氮 list.AddRange(CombinData(AssistDateSet.Tables[0], dtSH, "UA", true)); //尿酸 XueStart = 26; } else if (area.Equals("乐陵")) { list.AddRange(CombinData(AssistDateSet.Tables[0], dtSH, "BP", true)); //白蛋白 list.AddRange(CombinData(AssistDateSet.Tables[0], dtSH, "CB", true)); //结合胆红素 } if (!area.Equals("禹城")) { list.AddRange(CombinData(AssistDateSet.Tables[0], dtSH, "TBIL", true)); //总胆红素 list.AddRange(CombinData(AssistDateSet.Tables[0], dtSH, "GOT", true)); //血清谷草氨酸 list.AddRange(CombinData(AssistDateSet.Tables[0], dtSH, "SGPT", true)); //血清谷丙氨酸 list.AddRange(CombinData(AssistDateSet.Tables[0], dtSH, "TC", true)); //总胆固醇 list.AddRange(CombinData(AssistDateSet.Tables[0], dtSH, "TG", true)); //甘油三脂 list.AddRange(CombinData(AssistDateSet.Tables[0], dtSH, "LowCho", true)); //低密度脂蛋白 list.AddRange(CombinData(AssistDateSet.Tables[0], dtSH, "HeiCho", true)); //高密度脂蛋白 list.AddRange(CombinData(AssistDateSet.Tables[0], dtSH, "SCR", true)); //血清肌酐 list.AddRange(CombinData(AssistDateSet.Tables[0], dtSH, "BUN", true)); //血尿素氮 list.AddRange(CombinData(AssistDateSet.Tables[0], dtSH, "FPGL", true)); //空腹血糖 } if (community.Equals("威海美年大健康")) { list.AddRange(CombinData(AssistDateSet.Tables[0], dtSH, "UA", false));//血清尿酸 XueStart = 12; } } // 血常规 num = XueStart; list.AddRange(CombinData(AssistDateSet.Tables[0], dtSH, "HB", false)); //血红蛋白 list.AddRange(CombinData(AssistDateSet.Tables[0], dtSH, "PLT", false)); //血小板 list.AddRange(CombinData(AssistDateSet.Tables[0], dtSH, "WBC", false)); //白细胞 //血液细胞检测报告 string strWhere = string.Format("IDCardNo='{0}' AND LEFT(TestTime ,4)='{1}' ORDER BY TestTime DESC,ID DESC LIMIT 0,1 ", this.CardID, strYear); DataSet BlooDt = new RecordsxqDAL().GetDT(strWhere); if (BlooDt.Tables.Count > 0) { //血液细胞数据 list.AddRange(CombinData(BlooDt.Tables[0], dtSH, "NEU_B", false)); //中性粒细胞百分比 list.AddRange(CombinData(BlooDt.Tables[0], dtSH, "LYMPH_B", false)); //淋巴细胞百分比 list.AddRange(CombinData(BlooDt.Tables[0], dtSH, "MON_B", false)); //单核细胞百分比 list.AddRange(CombinData(BlooDt.Tables[0], dtSH, "EOS_B", false)); //嗜酸性粒细胞百分比 list.AddRange(CombinData(BlooDt.Tables[0], dtSH, "BAS_B", false)); //嗜碱性粒细胞百分比 list.AddRange(CombinData(BlooDt.Tables[0], dtSH, "NEU_N", false)); //中性粒细胞数目 list.AddRange(CombinData(BlooDt.Tables[0], dtSH, "LYMPH_N", false)); //淋巴细胞数目 list.AddRange(CombinData(BlooDt.Tables[0], dtSH, "MON_N", false)); //单核细胞数目 list.AddRange(CombinData(BlooDt.Tables[0], dtSH, "EOS_N", false)); //嗜酸性粒细胞数目 list.AddRange(CombinData(BlooDt.Tables[0], dtSH, "BAS_N", false)); //嗜碱性粒细胞数目 list.AddRange(CombinData(BlooDt.Tables[0], dtSH, "RBC", false)); //红细胞数目 list.AddRange(CombinData(BlooDt.Tables[0], dtSH, "HCT", false)); //红细胞压积 list.AddRange(CombinData(BlooDt.Tables[0], dtSH, "MCV", false)); //平均红细胞体积 list.AddRange(CombinData(BlooDt.Tables[0], dtSH, "MCH", false)); //平均红细胞血红蛋白含量 list.AddRange(CombinData(BlooDt.Tables[0], dtSH, "MCHC", false)); //平均红细胞血红蛋白浓度 list.AddRange(CombinData(BlooDt.Tables[0], dtSH, "RDW_CV", false)); //红细胞分布宽度变异系数 list.AddRange(CombinData(BlooDt.Tables[0], dtSH, "RDW_SD", false)); //红细胞分布宽度标准差 list.AddRange(CombinData(BlooDt.Tables[0], dtSH, "MPV", false)); //平均血小板体积 list.AddRange(CombinData(BlooDt.Tables[0], dtSH, "PDW", false)); //血小板分布宽度 list.AddRange(CombinData(BlooDt.Tables[0], dtSH, "PCT", false)); //血小板压积 } //尿液常规 string strUWhere = string.Format("IDCardNo='{0}' AND Devicetype=33 AND LEFT(UpdateData,4)='{1}' ORDER BY UpdateData DESC,ID DESC LIMIT 0,1 ", this.CardID, strYear); DataSet UrineDt = new DeviceInfoDAL().GetList(strUWhere); if (UrineDt != null && UrineDt.Tables.Count > 0 && UrineDt.Tables[0].Rows.Count > 0) { foreach (DataRow UrineRow in UrineDt.Tables[0].Rows) { list.Add(new ListValue { strMark = "$bxp", strVal = UrineRow["VALUE9"].ToString() }); list.Add(new ListValue { strMark = "$bxpf", strVal = UrineRow["VALUE9"].ToString().Contains("+") ? "阳性" : "阴性" }); list.Add(new ListValue { strMark = "$yxs", strVal = UrineRow["VALUE8"].ToString() }); list.Add(new ListValue { strMark = "$yxsf", strVal = UrineRow["VALUE8"].ToString().Contains("+") ? "阳性" : "阴性" }); list.Add(new ListValue { strMark = "$nny", strVal = UrineRow["VALUE1"].ToString() }); list.Add(new ListValue { strMark = "$nnyf", strVal = UrineRow["VALUE1"].ToString().Contains("+") ? "阳性" : "阴性" }); list.Add(new ListValue { strMark = "$dbz", strVal = UrineRow["VALUE6"].ToString() }); list.Add(new ListValue { strMark = "$dbzf", strVal = UrineRow["VALUE6"].ToString().Contains("+") ? "阳性" : "阴性" }); list.Add(new ListValue { strMark = "$qx", strVal = UrineRow["VALUE2"].ToString() }); list.Add(new ListValue { strMark = "$qxf", strVal = UrineRow["VALUE2"].ToString().Contains("+") ? "阳性" : "阴性" }); list.Add(new ListValue { strMark = "$phz", strVal = UrineRow["VALUE7"].ToString() }); list.Add(new ListValue { strMark = "$tt", strVal = UrineRow["VALUE4"].ToString() }); list.Add(new ListValue { strMark = "$ttf", strVal = UrineRow["VALUE4"].ToString().Contains("+") ? "阳性" : "阴性" }); list.Add(new ListValue { strMark = "$dhs", strVal = UrineRow["VALUE3"].ToString() }); list.Add(new ListValue { strMark = "$dhsf", strVal = UrineRow["VALUE3"].ToString().Contains("+") ? "阳性" : "阴性" }); list.Add(new ListValue { strMark = "$ptt", strVal = UrineRow["VALUE5"].ToString() }); list.Add(new ListValue { strMark = "$pttf", strVal = UrineRow["VALUE5"].ToString().Contains("+") ? "阳性" : "阴性" }); list.Add(new ListValue { strMark = "$vss", strVal = UrineRow["VALUE11"].ToString() }); list.Add(new ListValue { strMark = "$vssf", strVal = UrineRow["VALUE11"].ToString().Contains("+") ? "阳性" : "阴性" }); list.Add(new ListValue { strMark = "$bz", strVal = UrineRow["VALUE10"].ToString() }); foreach (DataRow dtrow in dtSH.Rows) { if (dtrow["code"].ToString() == "SG") { list.Add(new ListValue { strMark = "$bzf", strVal = dtrow["minvalue"].ToString() + "-" + dtrow["maxvalue"].ToString() }); } if (dtrow["code"].ToString() == "PH") { list.Add(new ListValue { strMark = "$phf", strVal = dtrow["minvalue"].ToString() + "-" + dtrow["maxvalue"].ToString() }); } } } } else { if (AssistDateSet.Tables.Count > 0)// { list.Add(new ListValue { strMark = "$dbz", strVal = AssistDateSet.Tables[0].Rows[0]["PRO"].ToString() }); list.Add(new ListValue { strMark = "$dbzf", strVal = AssistDateSet.Tables[0].Rows[0]["PRO"].ToString().Contains("+") ? "阳性" : "阴性" }); list.Add(new ListValue { strMark = "$ptt", strVal = AssistDateSet.Tables[0].Rows[0]["GLU"].ToString() }); list.Add(new ListValue { strMark = "$pttf", strVal = AssistDateSet.Tables[0].Rows[0]["GLU"].ToString().Contains("+") ? "阳性" : "阴性" }); list.Add(new ListValue { strMark = "$tt", strVal = AssistDateSet.Tables[0].Rows[0]["KET"].ToString() }); list.Add(new ListValue { strMark = "$ttf", strVal = AssistDateSet.Tables[0].Rows[0]["KET"].ToString().Contains("+") ? "阳性" : "阴性" }); list.Add(new ListValue { strMark = "$qx", strVal = AssistDateSet.Tables[0].Rows[0]["BLD"].ToString() }); list.Add(new ListValue { strMark = "$qxf", strVal = AssistDateSet.Tables[0].Rows[0]["BLD"].ToString().Contains("+") ? "阳性" : "阴性" }); } } list.Add(new ListValue { strMark = "&q1", strVal = SignPath + "_Doctor6.png" }); if (area.Equals("平度") || area.Equals("济南") || area.Equals("禹城")) { list.Add(new ListValue { strMark = "&q2", strVal = SignPath + "_Doctor6.png" }); list.Add(new ListValue { strMark = "&q3", strVal = SignPath + "_Doctor6.png" }); } else if (area.Equals("乐陵") || area.Equals("菏泽") || area.Equals("聊城") || area.Equals("泰安")) { list.Add(new ListValue { strMark = "&q2", strVal = SignPath + "_Doctor6.png" }); list.Add(new ListValue { strMark = "&q3", strVal = SignPath + "_Doctor6.png" }); if (File.Exists(SignPath + "_Doctor22.png")) { list.Add(new ListValue { strMark = "&q4", strVal = SignPath + "_Doctor22.png" }); list.Add(new ListValue { strMark = "&q5", strVal = SignPath + "_Doctor22.png" }); list.Add(new ListValue { strMark = "&q6", strVal = SignPath + "_Doctor22.png" }); } else { RecordsSignatureModel signModel = new RecordsSignatureBLL().GetModel("签字维护"); if (signModel != null) { list.Add(new ListValue { strMark = "$jcys1", strVal = signModel.ExamineDoctor }); list.Add(new ListValue { strMark = "$jcys2", strVal = signModel.ExamineDoctor }); list.Add(new ListValue { strMark = "$jcys3", strVal = signModel.ExamineDoctor }); } } } return(DrawItems.setPage("printXps\\" + this.PrintName, list)); } return(null); }
public FixedDocumentSequence getReport() { List <ListValue> list = null; if (!string.IsNullOrEmpty(this.CardID)) { RecordsBaseInfoModel model = new RecordsBaseInfoBLL().GetModel(this.CardID); list = new List <ListValue> { new ListValue { strMark = "$archiveid", strVal = model.RecordID }, new ListValue { strMark = "$name", strVal = model.CustomerName } }; ChronicChdVisitModel model2 = new ChronicChdVisitBLL().GetModel(this.CardID); if (model2 != null) { list.Add(new ListValue { strMark = "#zhzh", strVal = model2.Symptom }); list.Add(new ListValue { strMark = "%zhzhex", strVal = model2.SymptomEx }); list.Add(new ListValue { strMark = "$xy_h", strVal = DrawItems.objToNumStr(model2.Systolic, 0) }); list.Add(new ListValue { strMark = "$xy_l", strVal = DrawItems.objToNumStr(model2.Diastolic, 0) }); list.Add(new ListValue { strMark = "$tzh", strVal = DrawItems.objToNumStr(model2.Weight) }); list.Add(new ListValue { strMark = "$dyxy", strVal = string.IsNullOrEmpty(model2.HearVoice) ? "" : ((model2.HearVoice == "1") ? "是" : "否") }); list.Add(new ListValue { strMark = "$xlsc", strVal = string.IsNullOrEmpty(model2.HeartRate) ? "" : ((model2.HeartRate == "1") ? "是" : "否") }); list.Add(new ListValue { strMark = "$xjb", strVal = string.IsNullOrEmpty(model2.Apex) ? "" : ((model2.Apex == "1") ? "是" : "否") }); list.Add(new ListValue { strMark = "#sffsh", strVal = model2.VisitType }); list.Add(new ListValue { strMark = "$yj", strVal = model2.Smoking }); list.Add(new ListValue { strMark = "$yd", strVal = model2.Sports }); list.Add(new ListValue { strMark = "$sy", strVal = model2.Salt }); list.Add(new ListValue { strMark = "#zyxw", strVal = model2.Action }); list.Add(new ListValue { strMark = "$fzjc", strVal = model2.AssistCheck }); list.Add(new ListValue { strMark = "$xsgy", strVal = model2.AfterPill }); list.Add(new ListValue { strMark = "#fyyc", strVal = model2.Compliance }); list.Add(new ListValue { strMark = "#blfy", strVal = model2.Untoward }); list.Add(new ListValue { strMark = "$blfyqt", strVal = model2.UntowardEx }); list.Add(new ListValue { strMark = "#sffl", strVal = model2.FollowType }); list.Add(new ListValue { strMark = "$zhzhyy", strVal = model2.ReferralReason }); list.Add(new ListValue { strMark = "$zhzhjg", strVal = model2.ReferralDepart }); list.Add(new ListValue { strMark = "$xcsfriq", strVal = DrawItems.strToDate(model2.NextVisitDate, 1) }); list.Add(new ListValue { strMark = "$sfys", strVal = model2.VisitDoctor }); list.Add(new ListValue { strMark = "$sfrq", strVal = DrawItems.strToDate(model2.VisitDate, 1) }); List <ChronicDrugConditionModel> modelList = new ChronicDrugConditionBLL().GetModelList(string.Format(" IDCardNo = '{0}' and TYPE = '{1}' and OUTKey = '" + model2.ID + "' ", this.CardID, "4")); if (modelList != null && modelList.Count > 0) { list.AddRange(this.getDrug(modelList).ToArray()); } } } return(DrawItems.setPage("printXps\\" + this.PrintName, list)); }
public FixedDocumentSequence getReport() { if (!string.IsNullOrEmpty(this.CardID)) { RecordsBaseInfoModel model = new RecordsBaseInfoBLL().GetModel(this.CardID); List <ListValue> list = new List <ListValue> { new ListValue { strMark = "$archiveid", strVal = model.RecordID }, new ListValue { strMark = "$name", strVal = model.CustomerName } }; WomenGravidaPostpartumModel model2 = new WomenGravidaPostpartumDAL().GetModel(this.CardID); if (model2 != null) { list.Add(new ListValue { strMark = "$sfrq", strVal = DrawItems.strToDate(model2.FollowupDate) }); list.Add(new ListValue { strMark = "$tw", strVal = DrawItems.objToNumStr(model2.Tem, 1) }); list.Add(new ListValue { strMark = "%ybjk", strVal = model2.HealthCondition }); list.Add(new ListValue { strMark = "%ybxl", strVal = model2.Mentalcondition }); list.Add(new ListValue { strMark = "$xgy", strVal = DrawItems.objToNumStr(model2.HBbloodPressure, 0) }); list.Add(new ListValue { strMark = "$xdy", strVal = DrawItems.objToNumStr(model2.LBloodPressure, 0) }); list.Add(new ListValue { strMark = "#rf", strVal = model2.Breast }); list.Add(new ListValue { strMark = "$rfyc", strVal = model2.BreastEx }); list.Add(new ListValue { strMark = "#el", strVal = model2.Lochia }); list.Add(new ListValue { strMark = "$elyc", strVal = model2.LochiaEx }); list.Add(new ListValue { strMark = "#zg", strVal = model2.Uterus }); list.Add(new ListValue { strMark = "$zgyc", strVal = model2.UterusEx }); list.Add(new ListValue { strMark = "#sk", strVal = model2.Wound }); list.Add(new ListValue { strMark = "$skyc", strVal = model2.WoundEx }); list.Add(new ListValue { strMark = "%qt", strVal = model2.Other }); list.Add(new ListValue { strMark = "#fl", strVal = model2.Classification }); list.Add(new ListValue { strMark = "$flyc", strVal = model2.ClassificationEx }); list.Add(new ListValue { strMark = "#zd", strVal = model2.Advising }); list.Add(new ListValue { strMark = "$zdqt", strVal = model2.AdvisingOther }); list.Add(new ListValue { strMark = "#zz", strVal = model2.Referral }); list.Add(new ListValue { strMark = "$zzyy", strVal = model2.ReferralReason }); list.Add(new ListValue { strMark = "$zzjg", strVal = model2.ReferralOrg }); list.Add(new ListValue { strMark = "$xcsfrq", strVal = DrawItems.strToDate(model2.NextFollowupDate) }); //list.Add(new ListValue //{ // strMark = "$sfysqm", // strVal = model2.FollowupDoctor //}); list.Add(new ListValue { strMark = "$fmrq", strVal = DrawItems.strToDate(model2.DeliveryDate) }); list.Add(new ListValue { strMark = "$cyrq", strVal = DrawItems.strToDate(model2.LeaveHospitalDate) }); list.Add(new ListValue { strMark = "$zzlxr", strVal = model2.ReferralContacts }); list.Add(new ListValue { strMark = "$zzlxfs", strVal = model2.ReferralContactsTel }); list.Add(new ListValue { strMark = "#zzjg", strVal = model2.ReferralResult }); list.Add(new ListValue { strMark = "&qm", strVal = string.Format("{0}{1}_{2}.png", SignPath, model2.IDCardNo, "PostpartumS") }); list.Add(new ListValue { strMark = "&sfysqm", strVal = string.Format("{0}{1}_{2}_Doc.png", SignPath, model2.IDCardNo, "PostpartumS") }); } return(DrawItems.setPage("printXps\\17产后访视记录表.xps", list)); } return(null); }
public FixedDocumentSequence getReport() { if (!string.IsNullOrEmpty(this.CardID)) { RecordsBaseInfoModel model = new RecordsBaseInfoBLL().GetModel(this.CardID); List<ListValue> list = new List<ListValue> { new ListValue { strMark = "$name", strVal = model.CustomerName, }, new ListValue { strMark = "$idcard", strVal = model.IDCardNo, }, new ListValue { strMark = "$adress", strVal = model.Address, } }; string strsex = ""; if (!string.IsNullOrEmpty(model.Sex)) { if (DrawItems.objToNumStr(model.Sex, 0) == "1") { strsex = "男"; } if (DrawItems.objToNumStr(model.Sex, 0) == "2") { strsex = "女"; } if (DrawItems.objToNumStr(model.Sex, 0) == "0") { strsex = "未知"; } if (DrawItems.objToNumStr(model.Sex, 0) == "9") { strsex = "未说明"; } } list.Add(new ListValue { strMark = "$sex", strVal = strsex }); ConsulationBaseInfoModel model1 = new ConsulationBaseInfoBLL().GetMaxModel(this.CardID); if(model1!=null) { list.Add(new ListValue { strMark = "%hzreson", strVal = model1.Reason, }); list.Add(new ListValue { strMark = "$Doctname", strVal = model1.ResponsibilityDoctor, }); list.Add(new ListValue { strMark = "%hzview", strVal = model1.View, }); list.Add(new ListValue { strMark = "$huizhenDate", strVal = model1.ConsultationDate.ToString(), }); DataSet consulateDate = new ConsulationDoctorsBLL().GetList(" OutKey='" + model1.ID + "'"); if (consulateDate != null && consulateDate.Tables.Count > 0) { DataTable dataTable = consulateDate.Tables[0]; for (int i = 0; i < dataTable.Rows.Count; i++) { list.Add(new ListValue { strMark = "$yljg" + (i + 1).ToString(), strVal = DrawItems.objToStr(dataTable.Rows[i]["ConsultationUnitName"]), }); list.Add(new ListValue { strMark = "$hzys" + (i + 1).ToString() + "1", strVal = DrawItems.objToStr(dataTable.Rows[i]["ConsultationDoctor1"]), }); list.Add(new ListValue { strMark = "$hzys" + (i + 1).ToString() + "2", strVal = DrawItems.objToStr(dataTable.Rows[i]["ConsultationDoctor2"]), }); list.Add(new ListValue { strMark = "$hzys" + (i + 1).ToString() + "3", strVal = DrawItems.objToStr(dataTable.Rows[i]["ConsultationDoctor3"]), }); } } } return DrawItems.setPage("printXps\\29会诊记录表.xps", list); } return null; }
public FixedDocumentSequence getReport() { if (!string.IsNullOrEmpty(this.CardID)) { RecordsBaseInfoModel model = new RecordsBaseInfoBLL().GetModel(this.CardID); string strage = "", strsex = ""; TimeParser timeParser = new TimeParser(); strage = timeParser.GetAge(model.Birthday); if (model.Sex != null) { if (DrawItems.objToNumStr(model.Sex, 0) == "1") { strsex = "男"; } if (DrawItems.objToNumStr(model.Sex, 0) == "2") { strsex = "女"; } if (DrawItems.objToNumStr(model.Sex, 0) == "0") { strsex = "未知"; } if (DrawItems.objToNumStr(model.Sex, 0) == "9") { strsex = "未说明"; } } List <ListValue> list = new List <ListValue> { new ListValue { strMark = "$archiveid", strVal = model.RecordID }, new ListValue { strMark = "$age", strVal = strage }, new ListValue { strMark = "$sex", strVal = strsex }, new ListValue { strMark = "$name", strVal = model.CustomerName }, new ListValue { strMark = "$phone", strVal = model.Phone } }; OlderSelfCareabilityModel olderself = new OlderSelfCareabilityBLL().GetModel(this.CardID); if (olderself != null) { this.OutKey = olderself.ID; OlderMedicineCnModel model2 = new OlderMedicineCnBLL().GetModel(this.CardID, this.OutKey); if (model2 != null) { if (community.Equals("顾官屯卫生院")) { if (File.Exists(SignPath + "Year//" + Convert.ToDateTime(model2.RecordDate).ToString("yyyy-MM-dd") + "//" + "_Doctor24.png")) { list.Add(new ListValue { strMark = "&ysqm", strVal = SignPath + "Year//" + Convert.ToDateTime(model2.RecordDate).ToString("yyyy-MM-dd") + "//" + "_Doctor24.png" }); } else { list.Add(new ListValue { strMark = "&ysqm", strVal = SignPath + "Year//" + "_Doctor24.png" }); } string a = FingerPath + model2.IDCardNo + Convert.ToDateTime(model2.RecordDate).ToString("yyyyMMdd") + "_Finger.png"; if (File.Exists(a)) { list.Add(new ListValue { strMark = "&zw", strVal = a }); } } else { if (File.Exists(SignPath + "OldVisit//" + model2.IDCardNo + "_" + Convert.ToDateTime(model2.RecordDate).ToString("yyyyMMdd") + "_Asses.png")) { list.Add(new ListValue { strMark = "&ysqm", strVal = SignPath + "OldVisit//" + model2.IDCardNo + "_" + Convert.ToDateTime(model2.RecordDate).ToString("yyyyMMdd") + "_Asses.png" }); } else { list.Add(new ListValue { strMark = "&ysqm", strVal = SignPath + "Year//" + "_Doctor18.png" //strVal=ysqm }); } } list.Add(new ListValue { strMark = "$ysqm", strVal = olderself.FollowUpDoctor }); list.Add(new ListValue { strMark = "$tbrq", strVal = DrawItems.strToDate(model2.RecordDate, 1) }); list.AddRange(DrawItems.lsCheck(DrawItems.objToStr(model2.Coolfood), "pcl", 5)); list.AddRange(DrawItems.lsCheck(DrawItems.objToStr(model2.Defecate), "dbnz", 5)); list.AddRange(DrawItems.lsCheck(DrawItems.objToStr(model2.Defecatedry), "dbgz", 5)); list.AddRange(DrawItems.lsCheck(DrawItems.objToStr(model2.Tongue), "sthn", 5)); list.AddRange(DrawItems.lsCheck(DrawItems.objToStr(model2.Vein), "sxjm", 5)); list.AddRange(DrawItems.lsCheck(DrawItems.objToStr(model2.Energy), "jlcp", 5)); list.AddRange(DrawItems.lsCheck(DrawItems.objToStr(model2.Tired), "rypf", 5)); list.AddRange(DrawItems.lsCheck(DrawItems.objToStr(model2.Breath), "ryqd", 5)); list.AddRange(DrawItems.lsCheck(DrawItems.objToStr(model2.Voice), "shwl", 5)); list.AddRange(DrawItems.lsCheck(DrawItems.objToStr(model2.Emotion), "mmbl", 5)); list.AddRange(DrawItems.lsCheck(DrawItems.objToStr(model2.Spirit), "jsjz", 5)); list.AddRange(DrawItems.lsCheck(DrawItems.objToStr(model2.Alone), "shsl", 5)); list.AddRange(DrawItems.lsCheck(DrawItems.objToStr(model2.Fear), "gdhp", 5)); list.AddRange(DrawItems.lsCheck(DrawItems.objToStr(model2.Weight), "stcz", 5)); list.AddRange(DrawItems.lsCheck(DrawItems.objToStr(model2.Eye), "yjgs", 5)); list.AddRange(DrawItems.lsCheck(DrawItems.objToStr(model2.Abdomen), "fbfd", 5)); list.AddRange(DrawItems.lsCheck(DrawItems.objToStr(model2.Smell), "kkyw", 5)); list.AddRange(DrawItems.lsCheck(DrawItems.objToStr(model2.Thirsty), "kgyz", 5)); list.AddRange(DrawItems.lsCheck(DrawItems.objToStr(model2.FootHand), "sjfl", 5)); list.AddRange(DrawItems.lsCheck(DrawItems.objToStr(model2.Spot), "msha", 5)); list.AddRange(DrawItems.lsCheck(DrawItems.objToStr(model2.Greasy), "mbyn", 5)); list.AddRange(DrawItems.lsCheck(DrawItems.objToStr(model2.Arms), "ztmm", 5)); list.AddRange(DrawItems.lsCheck(DrawItems.objToStr(model2.Mouth), "pfg", 5)); list.AddRange(DrawItems.lsCheck(DrawItems.objToStr(model2.Scratch), "pfh", 5)); list.AddRange(DrawItems.lsCheck(DrawItems.objToStr(model2.Skin), "qy", 5)); list.AddRange(DrawItems.lsCheck(DrawItems.objToStr(model2.Urticaria), "xmz", 5)); list.AddRange(DrawItems.lsCheck(DrawItems.objToStr(model2.Allergy), "gm", 5)); list.AddRange(DrawItems.lsCheck(DrawItems.objToStr(model2.Snore), "knkn", 5)); list.AddRange(DrawItems.lsCheck(DrawItems.objToStr(model2.Nasal), "bs", 5)); list.AddRange(DrawItems.lsCheck(DrawItems.objToStr(model2.Influenza), "yhgm", 5)); list.AddRange(DrawItems.lsCheck(DrawItems.objToStr(model2.Cold), "bnyh", 5)); list.AddRange(DrawItems.lsCheck(DrawItems.objToStr(model2.Stomach), "wbpl", 5)); list.AddRange(DrawItems.lsCheck(DrawItems.objToStr(model2.Eczema), "pfsz", 5)); } OlderMedicineResultModel model3 = new OlderMedicineResultBLL().GetModel(this.CardID, this.OutKey); if (model3 != null) { list.AddRange(DrawItems.lsCheck(model3.Mild, "tph", 2)); list.AddRange(DrawItems.lsCheck(model3.Faint, "tqx", 3)); list.AddRange(DrawItems.lsCheck(model3.Yang, "tyxa", 3)); list.AddRange(DrawItems.lsCheck(model3.Yin, "tyy", 3)); list.AddRange(DrawItems.lsCheck(model3.PhlegmDamp, "tts", 3)); list.AddRange(DrawItems.lsCheck(model3.Muggy, "tsr", 3)); list.AddRange(DrawItems.lsCheck(model3.BloodStasis, "txy", 3)); list.AddRange(DrawItems.lsCheck(model3.QiConstraint, "tqy", 3)); list.AddRange(DrawItems.lsCheck(model3.Characteristic, "ttl", 3)); list.AddRange(DrawItems.lsCheck(model3.MildAdvising, "tphzd", 6)); list.AddRange(DrawItems.lsCheck(model3.FaintAdvising, "tqxzd", 6)); list.AddRange(DrawItems.lsCheck(model3.YangAdvising, "tyxzd", 6)); list.AddRange(DrawItems.lsCheck(model3.YinAdvising, "tyyzd", 6)); list.AddRange(DrawItems.lsCheck(model3.PhlegmdampAdvising, "ttszd", 6)); list.AddRange(DrawItems.lsCheck(model3.MuggyAdvising, "tsrzd", 6)); list.AddRange(DrawItems.lsCheck(model3.BloodStasisAdvising, "txyzd", 6)); list.AddRange(DrawItems.lsCheck(model3.QiconstraintAdvising, "tqyzd", 6)); list.AddRange(DrawItems.lsCheck(model3.CharacteristicAdvising, "ttlzd", 6)); list.Add(new ListValue { strMark = "$tphdf", strVal = DrawItems.objToNumStr(model3.MildScore) }); list.Add(new ListValue { strMark = "$tqxdf", strVal = DrawItems.objToNumStr(model3.FaintScore) }); list.Add(new ListValue { strMark = "$tyxdf", strVal = DrawItems.objToNumStr(model3.YangsCore) }); list.Add(new ListValue { strMark = "$tyydf", strVal = DrawItems.objToNumStr(model3.YinScore) }); list.Add(new ListValue { strMark = "$ttsdf", strVal = DrawItems.objToNumStr(model3.PhlegmdampScore) }); list.Add(new ListValue { strMark = "$tsrdf", strVal = DrawItems.objToNumStr(model3.MuggyScore) }); list.Add(new ListValue { strMark = "$txydf", strVal = DrawItems.objToNumStr(model3.BloodStasisScore) }); list.Add(new ListValue { strMark = "$tqydf", strVal = DrawItems.objToNumStr(model3.QiConstraintScore) }); list.Add(new ListValue { strMark = "$ttldf", strVal = DrawItems.objToNumStr(model3.CharacteristicScore) }); list.Add(new ListValue { strMark = "%tphqt", strVal = model3.MildAdvisingEx }); list.Add(new ListValue { strMark = "%tqxqt", strVal = model3.FaintAdvisingEx }); list.Add(new ListValue { strMark = "%tyxqt", strVal = model3.YangadvisingEx }); list.Add(new ListValue { strMark = "%tyyqt", strVal = model3.YinAdvisingEx }); list.Add(new ListValue { strMark = "%ttsqt", strVal = model3.PhlegmdampAdvisingEx }); list.Add(new ListValue { strMark = "%tsrqt", strVal = model3.MuggyAdvisingEx }); list.Add(new ListValue { strMark = "%txyqt", strVal = model3.BloodStasisAdvisingEx }); list.Add(new ListValue { strMark = "%tqyqt", strVal = model3.QiconstraintAdvisingEx }); list.Add(new ListValue { strMark = "%ttlqt", strVal = model3.CharacteristicAdvisingEx }); } } return(DrawItems.setPage("printXps\\" + this.PrintName, list)); } return(null); }
public FixedDocumentSequence getReport() { if (!string.IsNullOrEmpty(this.CardID)) { bool flagEx = false; RecordsBaseInfoModel model = new RecordsBaseInfoBLL().GetModel(this.CardID); string strage = "", strsex = ""; TimeParser timeParser = new TimeParser(); strage = timeParser.GetAge(model.Birthday); if (model.Sex != null) { if (DrawItems.objToNumStr(model.Sex, 0) == "1") { strsex = "男"; } if (DrawItems.objToNumStr(model.Sex, 0) == "2") { strsex = "女"; } if (DrawItems.objToNumStr(model.Sex, 0) == "0") { strsex = "未知"; } if (DrawItems.objToNumStr(model.Sex, 0) == "9") { strsex = "未说明"; } } List <ListValue> list = new List <ListValue> { new ListValue { strMark = "$name", strVal = model.CustomerName }, new ListValue { strMark = "$age", strVal = strage }, new ListValue { strMark = "$sex", strVal = strsex }, new ListValue { strMark = "$fkys", strVal = model.Doctor }, new ListValue { strMark = "$zhen", strVal = model.TownName }, new ListValue { strMark = "$cun", strVal = model.VillageName }, new ListValue { strMark = "$cardid", strVal = model.IDCardNo }, new ListValue { strMark = "$archiveid", strVal = model.RecordID }, new ListValue { strMark = "$address", strVal = model.Address } }; string phone = ConfigHelper.GetSetNode("phone"); list.Add(new ListValue { strMark = "$zxdh", strVal = phone }); string strOrg = ConfigHelper.GetNode("orgCode").Substring(0, 9); string TownID = (strOrg.Length < 9) ? "" : strOrg.Substring(0, 9); if (!string.IsNullOrEmpty(TownID)) { SysOrgTownModel townmodel = new SysOrgTownBLL().GetModel(strOrg); if (townmodel != null) { list.Add(new ListValue { strMark = "^wsy", strVal = townmodel.Name }); list.Add(new ListValue { strMark = "$zxwsy", strVal = townmodel.Name }); } } RecordsCustomerBaseInfoModel model2 = new RecordsCustomerBaseInfoBLL().GetMaxModel(this.CardID); if (model2 != null) { list.Add(new ListValue { strMark = "$tjsj", strVal = DrawItems.strToDate(model2.CheckDate, 1) }); RecordsGeneralConditionModel model3 = new RecordsGeneralConditionDAL().GetModelByOutKey(model2.ID); if (model3 != null) { list.Add(new ListValue { strMark = "$height", strVal = DrawItems.objToNumStr(model3.Height) }); string strBMI = model3.BMI.ToString(); if (model3.BMI > 24) { strBMI += "↑"; } else if (model3.BMI < 18) { strBMI += "↓"; } list.Add(new ListValue { strMark = "$tzzs", strVal = strBMI }); list.Add(new ListValue { strMark = "$weight", strVal = DrawItems.objToNumStr(model3.Weight) }); list.Add(new ListValue { strMark = "$ml", strVal = DrawItems.objToNumStr(model3.PulseRate) }); list.Add(new ListValue { strMark = "$xyg", strVal = DrawItems.objToNumStr(model3.RightHeight, 0) }); string strxyd = DrawItems.objToNumStr(model3.RightPre, 0); if (!string.IsNullOrEmpty(Convert.ToString(model3.RightHeight)) || !string.IsNullOrEmpty(Convert.ToString(model3.RightPre))) { if (Convert.ToDouble(model3.RightHeight) > 140 || Convert.ToDouble(model3.RightPre) > 90) { flagEx = true; strxyd += "↑"; } else if (Convert.ToDouble(model3.RightHeight) < 90 || Convert.ToDouble(model3.RightPre) < 60) { flagEx = true; strxyd += "↓"; } } list.Add(new ListValue { strMark = "$xyd", strVal = strxyd }); list.Add(new ListValue { strMark = "$gy", strVal = DrawItems.objToNumStr(model3.LeftHeight, 0) }); list.Add(new ListValue { strMark = "$dy", strVal = DrawItems.objToNumStr(model3.LeftPre, 0) }); list.Add(new ListValue { strMark = "$rgy", strVal = DrawItems.objToNumStr(model3.RightHeight, 0) }); list.Add(new ListValue { strMark = "$rdy", strVal = DrawItems.objToNumStr(model3.RightPre, 0) }); } //尿液常规 string strYear = DateTime.Now.Year.ToString(); string strWhere = string.Format("IDCardNo='{0}' AND Devicetype=33 AND LEFT(UpdateData,4)='{1}' ORDER BY UpdateData DESC,ID DESC LIMIT 0,1 ", this.CardID, strYear); DataSet UrineDt = new DeviceInfoDAL().GetList(strWhere); if (UrineDt.Tables.Count > 0) { foreach (DataRow UrineRow in UrineDt.Tables[0].Rows) { // 白细胞 list.Add(new ListValue { strMark = "$nbxb", strVal = UrineRow["VALUE9"].ToString() }); // 亚硝酸盐 list.Add(new ListValue { strMark = "$sy", strVal = UrineRow["VALUE8"].ToString() }); // 尿胆原 list.Add(new ListValue { strMark = "$ndy", strVal = UrineRow["VALUE1"].ToString() }); // 胆红素 list.Add(new ListValue { strMark = "$dhs", strVal = UrineRow["VALUE3"].ToString() }); // 维生素C list.Add(new ListValue { strMark = "$vc", strVal = UrineRow["VALUE11"].ToString() }); // PH值 list.Add(new ListValue { strMark = "$ph", strVal = UrineRow["VALUE7"].ToString() }); // 比重 list.Add(new ListValue { strMark = "$bz", strVal = UrineRow["VALUE10"].ToString() }); } } RecordsAssistCheckModel model7 = new RecordsAssistCheckBLL().GetModelByOutKey(model2.ID); if (model7 != null) { string strHB = "", strWBC = "", strPLT = "", strTC = "", strTG = "", strHeiCho = "", strLowCho = "", strFPGL = "", strSGPT = "", strGOT = "", strTBIL = "", strSCR = "", strBUN = "", strHCY = ""; #region if (File.Exists(Application.StartupPath + "\\SHValueRange.xml")) { DataSet ds = new DataSet(); ds.ReadXml(Application.StartupPath + "\\SHValueRange.xml"); DataTable dtSH = ds.Tables[0]; if (dtSH.Rows.Count > 0) { foreach (DataRow item in dtSH.Rows) { if (item["name"].ToString() == "血红蛋白") //血红蛋白 { strHB = model7.HB.ToString(); list.Add(new ListValue { strMark = "$hbg", strVal = item["minvalue"].ToString() + " - " + item["maxvalue"].ToString() }); if (!string.IsNullOrEmpty(Convert.ToString(model7.HB)) && !string.IsNullOrEmpty(item["minvalue"].ToString()) && !string.IsNullOrEmpty(item["maxvalue"].ToString())) { if (Convert.ToDouble(model7.HB) < Convert.ToDouble(item["minvalue"].ToString())) { flagEx = true; strHB = model7.HB.ToString() + "↓"; } else if (Convert.ToDouble(model7.HB) > Convert.ToDouble(item["maxvalue"].ToString())) { flagEx = true; strHB = model7.HB.ToString() + "↑"; } } continue; } if (item["name"].ToString() == "白细胞") //白细胞 { strWBC = model7.WBC.ToString(); list.Add(new ListValue { strMark = "$wbcg", strVal = item["minvalue"].ToString() + " - " + item["maxvalue"].ToString() }); if (!string.IsNullOrEmpty(Convert.ToString(model7.WBC)) && !string.IsNullOrEmpty(item["minvalue"].ToString()) && !string.IsNullOrEmpty(item["maxvalue"].ToString())) { if (Convert.ToDouble(model7.WBC) < Convert.ToDouble(item["minvalue"].ToString())) { flagEx = true; strWBC = model7.WBC.ToString() + "↓"; } else if (Convert.ToDouble(model7.WBC) > Convert.ToDouble(item["maxvalue"].ToString())) { flagEx = true; strWBC = model7.WBC.ToString() + "↑"; } } continue; } if (item["name"].ToString() == "血小板") //血小板PLT { strPLT = model7.PLT.ToString(); list.Add(new ListValue { strMark = "$xxbg", strVal = item["minvalue"].ToString() + " - " + item["maxvalue"].ToString() }); if (!string.IsNullOrEmpty(Convert.ToString(model7.PLT)) && !string.IsNullOrEmpty(item["minvalue"].ToString()) && !string.IsNullOrEmpty(item["maxvalue"].ToString())) { if (Convert.ToDouble(model7.PLT) < Convert.ToDouble(item["minvalue"].ToString())) { flagEx = true; strPLT = model7.PLT.ToString() + "↓"; } else if (Convert.ToDouble(model7.PLT) > Convert.ToDouble(item["maxvalue"].ToString())) { flagEx = true; strPLT = model7.PLT.ToString() + "↑"; } } continue; } if (item["name"].ToString() == "总胆固醇") //总胆固醇(TC) { strTC = model7.TC.ToString(); list.Add(new ListValue { strMark = "$tcg", strVal = item["minvalue"].ToString() + " - " + item["maxvalue"].ToString() }); if (!string.IsNullOrEmpty(Convert.ToString(model7.TC)) && !string.IsNullOrEmpty(item["minvalue"].ToString()) && !string.IsNullOrEmpty(item["maxvalue"].ToString())) { if (Convert.ToDouble(model7.TC) < Convert.ToDouble(item["minvalue"].ToString())) { flagEx = true; strTC = model7.TC.ToString() + "↓"; } else if (Convert.ToDouble(model7.TC) > Convert.ToDouble(item["maxvalue"].ToString())) { flagEx = true; strTC = model7.TC.ToString() + "↑"; } } continue; } if (item["name"].ToString() == "甘油三酯") //甘油三酯(TG) { strTG = model7.TG.ToString(); list.Add(new ListValue { strMark = "$tgg", strVal = item["minvalue"].ToString() + " - " + item["maxvalue"].ToString() }); if (!string.IsNullOrEmpty(Convert.ToString(model7.TG)) && !string.IsNullOrEmpty(item["minvalue"].ToString()) && !string.IsNullOrEmpty(item["maxvalue"].ToString())) { if (Convert.ToDouble(model7.TG) > Convert.ToDouble(item["maxvalue"].ToString())) { flagEx = true; strTG = model7.TG.ToString() + "↑"; } else if (Convert.ToDouble(model7.TG) < Convert.ToDouble(item["minvalue"].ToString())) { flagEx = true; strTG = model7.TG.ToString() + "↓"; } } continue; } if (item["name"].ToString() == "血清高密度脂蛋白胆固醇") //高密度脂蛋白HeiCho { strHeiCho = model7.HeiCho.ToString(); list.Add(new ListValue { strMark = "$gzg", strVal = item["minvalue"].ToString() + " - " + item["maxvalue"].ToString() }); if (!string.IsNullOrEmpty(Convert.ToString(model7.HeiCho)) && !string.IsNullOrEmpty(item["minvalue"].ToString()) && !string.IsNullOrEmpty(item["maxvalue"].ToString())) { if (Convert.ToDouble(model7.HeiCho) > Convert.ToDouble(item["maxvalue"].ToString())) { flagEx = true; strHeiCho = model7.HeiCho.ToString() + "↑"; } else if (Convert.ToDouble(model7.HeiCho) < Convert.ToDouble(item["minvalue"].ToString())) { flagEx = true; strHeiCho = model7.HeiCho.ToString() + "↓"; } } continue; } if (item["name"].ToString() == "血清低密度脂蛋白胆固醇") //低密度脂蛋白LowCho { strLowCho = model7.LowCho.ToString(); list.Add(new ListValue { strMark = "$dzg", strVal = item["minvalue"].ToString() + " - " + item["maxvalue"].ToString() }); if (!string.IsNullOrEmpty(Convert.ToString(model7.LowCho)) && !string.IsNullOrEmpty(item["minvalue"].ToString()) && !string.IsNullOrEmpty(item["maxvalue"].ToString())) { if (Convert.ToDouble(model7.LowCho) > Convert.ToDouble(item["maxvalue"].ToString())) { flagEx = true; strLowCho = model7.LowCho.ToString() + "↑"; } else if (Convert.ToDouble(model7.LowCho) < Convert.ToDouble(item["minvalue"].ToString())) { flagEx = true; strLowCho = model7.LowCho.ToString() + "↓"; } } continue; } if (item["name"].ToString() == "空腹血糖") //空腹血糖FPGL { strFPGL = model7.FPGL.ToString(); list.Add(new ListValue { strMark = "$xtg", strVal = item["minvalue"].ToString() + " - " + item["maxvalue"].ToString() }); if (!string.IsNullOrEmpty(Convert.ToString(model7.FPGL)) && !string.IsNullOrEmpty(item["minvalue"].ToString()) && !string.IsNullOrEmpty(item["maxvalue"].ToString())) { if (Convert.ToDouble(model7.FPGL) > Convert.ToDouble(item["maxvalue"].ToString())) { flagEx = true; strFPGL = model7.FPGL.ToString() + "↑"; } else if (Convert.ToDouble(model7.FPGL) < Convert.ToDouble(item["minvalue"].ToString())) { flagEx = true; strFPGL = model7.FPGL.ToString() + "↓"; } } continue; } if (item["name"].ToString() == "血清谷丙转氨酶") //谷丙转氨酶SGPT { strSGPT = model7.SGPT.ToString(); list.Add(new ListValue { strMark = "$gbg", strVal = item["minvalue"].ToString() + " - " + item["maxvalue"].ToString() }); if (!string.IsNullOrEmpty(Convert.ToString(model7.SGPT)) && !string.IsNullOrEmpty(item["minvalue"].ToString()) && !string.IsNullOrEmpty(item["maxvalue"].ToString())) { if (Convert.ToDouble(model7.SGPT) > Convert.ToDouble(item["maxvalue"].ToString())) { flagEx = true; strSGPT = model7.SGPT.ToString() + "↑"; } else if (Convert.ToDouble(model7.SGPT) < Convert.ToDouble(item["minvalue"].ToString())) { flagEx = true; strSGPT = model7.SGPT.ToString() + "↓"; } } continue; } if (item["name"].ToString() == "血清谷草转氨酶") //谷草转氨酶GOT { strGOT = model7.GOT.ToString(); list.Add(new ListValue { strMark = "$gcg", strVal = item["minvalue"].ToString() + " - " + item["maxvalue"].ToString() }); if (!string.IsNullOrEmpty(Convert.ToString(model7.GOT)) && !string.IsNullOrEmpty(item["minvalue"].ToString()) && !string.IsNullOrEmpty(item["maxvalue"].ToString())) { if (Convert.ToDouble(model7.GOT) > Convert.ToDouble(item["maxvalue"].ToString())) { flagEx = true; strGOT = model7.GOT.ToString() + "↑"; } else if (Convert.ToDouble(model7.GOT) < Convert.ToDouble(item["minvalue"].ToString())) { flagEx = true; strGOT = model7.GOT.ToString() + "↓"; } } continue; } if (item["name"].ToString() == "同型半胱氨酸") //同型半胱氨酸 { strHCY = model7.HCY.ToString(); list.Add(new ListValue { strMark = "$bgdg", strVal = item["minvalue"].ToString() + " - " + item["maxvalue"].ToString() }); if (!string.IsNullOrEmpty(Convert.ToString(model7.HCY)) && !string.IsNullOrEmpty(item["minvalue"].ToString()) && !string.IsNullOrEmpty(item["maxvalue"].ToString())) { if (Convert.ToDouble(model7.HCY) > Convert.ToDouble(item["maxvalue"].ToString())) { flagEx = true; strHCY = model7.HCY.ToString() + "↑"; } else if (Convert.ToDouble(model7.HCY) < Convert.ToDouble(item["minvalue"].ToString())) { flagEx = true; strHCY = model7.HCY.ToString() + "↓"; } } continue; } if (item["name"].ToString() == "总胆红素") //总胆红素TBIL { strTBIL = model7.TBIL.ToString(); list.Add(new ListValue { strMark = "$zdg", strVal = item["minvalue"].ToString() + " - " + item["maxvalue"].ToString() }); if (!string.IsNullOrEmpty(Convert.ToString(model7.TBIL)) && !string.IsNullOrEmpty(item["minvalue"].ToString()) && !string.IsNullOrEmpty(item["maxvalue"].ToString())) { if (Convert.ToDouble(model7.TBIL) > Convert.ToDouble(item["maxvalue"].ToString())) { flagEx = true; strTBIL = model7.TBIL.ToString() + "↑"; } else if (Convert.ToDouble(model7.TBIL) < Convert.ToDouble(item["minvalue"].ToString())) { flagEx = true; strTBIL = model7.TBIL.ToString() + "↓"; } } continue; } if (item["name"].ToString() == "血清肌酐") //肌酐SCR { strSCR = model7.SCR.ToString(); list.Add(new ListValue { strMark = "$jgg", strVal = item["minvalue"].ToString() + " - " + item["maxvalue"].ToString() }); if (!string.IsNullOrEmpty(Convert.ToString(model7.SCR)) && !string.IsNullOrEmpty(item["minvalue"].ToString()) && !string.IsNullOrEmpty(item["maxvalue"].ToString())) { if (Convert.ToDouble(model7.SCR) > Convert.ToDouble(item["maxvalue"].ToString())) { flagEx = true; strSCR = model7.SCR.ToString() + "↑"; } else if (Convert.ToDouble(model7.SCR) < Convert.ToDouble(item["minvalue"].ToString())) { flagEx = true; strSCR = model7.SCR.ToString() + "↓"; } } continue; } if (item["name"].ToString() == "血尿素氮") //尿素氮BUN { strBUN = model7.BUN.ToString(); list.Add(new ListValue { strMark = "$sdg", strVal = item["minvalue"].ToString() + " - " + item["maxvalue"].ToString() }); if (!string.IsNullOrEmpty(Convert.ToString(model7.BUN)) && !string.IsNullOrEmpty(item["minvalue"].ToString()) && !string.IsNullOrEmpty(item["maxvalue"].ToString())) { if (Convert.ToDouble(model7.BUN) > Convert.ToDouble(item["maxvalue"].ToString())) { flagEx = true; strBUN = model7.BUN.ToString() + "↑"; } else if (Convert.ToDouble(model7.BUN) < Convert.ToDouble(item["minvalue"].ToString())) { flagEx = true; strBUN = model7.BUN.ToString() + "↓"; } } continue; } } } } #endregion #region list.Add(new ListValue //血红蛋白 { strMark = "$xhdb", strVal = strHB }); list.Add(new ListValue //白细胞数 { strMark = "$bxbs", strVal = strWBC }); list.Add(new ListValue //血小板PLT { strMark = "$xxb", strVal = strPLT }); list.Add(new ListValue //总胆固醇(TC) { strMark = "$zdgc", strVal = strTC }); list.Add(new ListValue //甘油三酯(TG) { strMark = "$gysz", strVal = strTG }); list.Add(new ListValue //高密度脂蛋白HeiCho { strMark = "$gzdb", strVal = strHeiCho }); list.Add(new ListValue //低密度脂蛋白LowCho { strMark = "$dzdb", strVal = strLowCho }); list.Add(new ListValue //尿蛋白PRO { strMark = "$ncdb", strVal = model7.PRO }); list.Add(new ListValue //尿糖GLU { strMark = "$ncnt", strVal = model7.GLU }); list.Add(new ListValue //尿酮体KET { strMark = "$nctt", strVal = model7.KET }); list.Add(new ListValue //尿潜血BLD { strMark = "$ncqx", strVal = model7.BLD }); list.Add(new ListValue // 尿常规其他 { strMark = "%nqt", strVal = model7.UrineOther }); if ((model7.PRO + model7.GLU + model7.KET + model7.BLD + model7.UrineOther).Contains("+")) { flagEx = true; } list.Add(new ListValue //空腹血糖FPGL { strMark = "$kfxt", strVal = strFPGL }); list.Add(new ListValue //谷丙转氨酶SGPT { strMark = "$bzam", strVal = strSGPT }); list.Add(new ListValue //谷草转氨酶GOT { strMark = "$czam", strVal = strGOT }); list.Add(new ListValue //总胆红素TBIL { strMark = "$zdhs", strVal = strTBIL }); list.Add(new ListValue //肌酐SCR { strMark = "$jig", strVal = strSCR }); list.Add(new ListValue //尿素氮BUN { strMark = "$nsd", strVal = strBUN }); #endregion string strECG = "", strECGex = ""; if (!string.IsNullOrEmpty(model7.ECG)) { string[] ecg = model7.ECG.Split(new char[] { ',' }); foreach (string c in ecg) { switch (c) { case "1": strECG = "1"; break; case "2": strECG = "2"; strECGex += "ST-T改变,"; break; case "3": strECG = "2"; strECGex += "陈旧性心肌梗塞,"; break; case "4": strECG = "2"; strECGex += "窦性心动过速,"; break; case "5": strECG = "2"; strECGex += "窦性心动过缓,"; break; case "6": strECG = "2"; strECGex += "早搏,"; break; case "7": strECG = "2"; strECGex += "房颤,"; break; case "8": strECG = "2"; strECGex += "房室传导阻滞,"; break; case "9": strECG = "2"; break; } } } list.Add(new ListValue { strMark = "#xdt", strVal = strECG }); if (!string.IsNullOrEmpty(model7.ECGEx)) { strECGex += "其他:" + model7.ECGEx.Replace('\n', ';').Replace('\r', ' ').Replace(" ", ""); } list.Add(new ListValue { strMark = "$xdtex", strVal = strECGex }); list.Add(new ListValue { strMark = "#bc", strVal = model7.BCHAO }); list.Add(new ListValue { strMark = "$BCex", strVal = model7.BCHAOEx }); string strex = "1"; if (flagEx) { strex = "2"; } list.Add(new ListValue { strMark = "#tjjl", strVal = strex }); } RecordsAssessmentGuideModel guidemodel = new RecordsAssessmentGuideDAL().GetModelByOutKey(model2.ID); if (guidemodel != null) { list.Add(new ListValue { strMark = "#tjjl", strVal = guidemodel.IsNormal }); list.Add(new ListValue { strMark = "$Ex1", strVal = guidemodel.Exception1 }); list.Add(new ListValue { strMark = "$Ex2", strVal = guidemodel.Exception2 }); list.Add(new ListValue { strMark = "$Ex3", strVal = guidemodel.Exception3 }); list.Add(new ListValue { strMark = "$Ex4", strVal = guidemodel.Exception4 }); } } //int Count = 0; OlderSelfCareabilityModel CareModel = new OlderSelfCareabilityBLL().GetModel(this.CardID); if (CareModel != null) { OlderMedicineResultModel model4 = new OlderMedicineResultBLL().GetModel(this.CardID, CareModel.ID); if (model4 != null) { string strzytz = ""; if (!string.IsNullOrEmpty(model4.Mild) && (model4.Mild == "1" || model4.Mild == "2")) { strzytz += "平和质、"; } if (!string.IsNullOrEmpty(model4.Faint) && (model4.Faint == "1" || model4.Faint == "2")) { strzytz += "气虚质、"; } if (!string.IsNullOrEmpty(model4.Yang) && (model4.Yang == "1" || model4.Yang == "2")) { strzytz += "阳虚质、"; } if (!string.IsNullOrEmpty(model4.Yin) && (model4.Yin == "1" || model4.Yin == "2")) { strzytz += "阴虚质、"; } if (!string.IsNullOrEmpty(model4.PhlegmDamp) && (model4.PhlegmDamp == "1" || model4.PhlegmDamp == "2")) { strzytz += "痰湿质、"; } if (!string.IsNullOrEmpty(model4.Muggy) && (model4.Muggy == "1" || model4.Muggy == "2")) { strzytz += "湿热质、"; } if (!string.IsNullOrEmpty(model4.BloodStasis) && (model4.BloodStasis == "1" || model4.BloodStasis == "2")) { strzytz += "血瘀质、"; } if (!string.IsNullOrEmpty(model4.QiConstraint) && (model4.QiConstraint == "1" || model4.QiConstraint == "2")) { strzytz += "气郁质、"; } if (!string.IsNullOrEmpty(model4.Characteristic) && (model4.Characteristic == "1" || model4.Characteristic == "2")) { strzytz += "特兼质、"; } if (!string.IsNullOrEmpty(strzytz)) { strzytz = strzytz.Trim(new char[] { '、' }); } list.Add(new ListValue { strMark = "$zytz", strVal = strzytz }); } } list.Add(new ListValue { strMark = "&photo", strVal = PhotoPath + this.CardID + ".jpeg" }); list.Add(new ListValue { strMark = "&fkys", strVal = SignPath + "_Doctor13.png" }); return(DrawItems.setPage("printXps\\" + this.PrintName, list)); } return(null); }
public FixedDocumentSequence getReport() { if (!string.IsNullOrEmpty(this.CardID)) { RecordsBaseInfoModel model = new RecordsBaseInfoBLL().GetModel(this.CardID); List <ListValue> list = new List <ListValue> { new ListValue { strMark = "$idcard", strVal = model.IDCardNo }, new ListValue { strMark = "$name", strVal = model.CustomerName }, new ListValue { strMark = "$adress", strVal = model.Address } }; string strsex = ""; if (!string.IsNullOrEmpty(model.Sex)) { if (DrawItems.objToNumStr(model.Sex, 0) == "1") { strsex = "男"; } if (DrawItems.objToNumStr(model.Sex, 0) == "2") { strsex = "女"; } if (DrawItems.objToNumStr(model.Sex, 0) == "0") { strsex = "未知"; } if (DrawItems.objToNumStr(model.Sex, 0) == "9") { strsex = "未说明"; } } list.Add(new ListValue { strMark = "$sex", strVal = strsex }); ReceiveTreatBaseInfoModel receivemodel = new ReceiveTreatBaseInfoBLL().GetMaxModel(this.CardID); if (receivemodel != null) { list.Add(new ListValue { strMark = "%zgzl", strVal = receivemodel.SubjectiveData }); list.Add(new ListValue { strMark = "%pinggu", strVal = receivemodel.Assessment }); list.Add(new ListValue { strMark = "%kgzl", strVal = receivemodel.ObjectiveData }); list.Add(new ListValue { strMark = "%czjh", strVal = receivemodel.ManagePlane }); list.Add(new ListValue { strMark = "$Doctname", strVal = receivemodel.Doctor }); list.Add(new ListValue { strMark = "$jiezhenDate", strVal = DrawItems.strToDate(receivemodel.ReceiveDate, 1) }); } return(DrawItems.setPage("printXps\\30接诊记录表.xps", list)); } return(null); }
public List <ListValue> getList(string monthType) { List <ListValue> list = new List <ListValue>(); WomenGravidaTwoToFiveVisitModel model = this.getModel(monthType); if (model == null) { return(null); } list.Add(new ListValue { strMark = "$" + monthType + "fw", strVal = DrawItems.objToNumStr(model.AbdominalCirumference, 2) }); list.Add(new ListValue { strMark = "$" + monthType + "gdgd", strVal = DrawItems.objToNumStr(model.UteruslowHeight, 1) }); list.Add(new ListValue { strMark = "$" + monthType + "txl", strVal = DrawItems.objToNumStr(model.FHR, 1) }); list.Add(new ListValue { strMark = "$" + monthType + "xgy", strVal = DrawItems.objToNumStr(model.HBloodPressure, 0) }); list.Add(new ListValue { strMark = "$" + monthType + "xdy", strVal = DrawItems.objToNumStr(model.LBloodPressure, 0) }); list.Add(new ListValue { strMark = "$" + monthType + "xhdb", strVal = DrawItems.objToNumStr(model.HB) }); list.Add(new ListValue { strMark = "%" + monthType + "qtfz", strVal = model.AssistanTexam }); list.Add(new ListValue { strMark = "#" + monthType + "fl", strVal = model.Classification }); list.Add(new ListValue { strMark = "$" + monthType + "fly", strVal = model.ClassificationEx }); list.Add(new ListValue { strMark = "$" + monthType + "zdqt", strVal = model.AdvisingOther }); list.Add(new ListValue { strMark = "#" + monthType + "zd", strVal = model.Referral }); list.Add(new ListValue { strMark = "$" + monthType + "zzyy", strVal = model.ReferralReason }); list.Add(new ListValue { strMark = "$" + monthType + "zzjg", strVal = model.ReferralOrg }); list.Add(new ListValue { strMark = "$" + monthType + "xcrq", strVal = DrawItems.strToDate(model.NextFollowupDate) }); //list.Add(new ListValue //{ // strMark = "$" + MonthType + "sfys", // strVal = model.FollowUpDoctor //}); list.Add(new ListValue { strMark = "$" + monthType + "ndb", strVal = model.PRO }); list.Add(new ListValue { strMark = "$" + monthType + "sfrq", strVal = DrawItems.strToDate(model.FollowupDate) }); list.Add(new ListValue { strMark = "$" + monthType + "yz", strVal = DrawItems.objToNumStr(model.PregancyWeeks, 0) }); list.Add(new ListValue { strMark = "%" + monthType + "zs", strVal = model.ChiefComPlaint }); list.Add(new ListValue { strMark = "$" + monthType + "tz", strVal = DrawItems.objToNumStr(model.Weight) }); list.Add(new ListValue { strMark = "$" + monthType + "tw", strVal = model.FetusPosition }); list.Add(new ListValue { strMark = "#" + monthType + "sf", strVal = model.FollowupWay }); list.Add(new ListValue { strMark = "$" + monthType + "jgmc", strVal = model.PrenatalOrg }); list.Add(new ListValue { strMark = "#" + monthType + "jc", strVal = model.FreeSerumCheck }); //list.Add(new ListValue //{ // strMark = "@" + MonthType + "jcjg", // strVal = model.SerumCheckResult //}); list.Add(new ListValue { strMark = "$" + monthType + "lxr", strVal = model.ReferralContacts }); list.Add(new ListValue { strMark = "$" + monthType + "lxfs", strVal = model.ReferralContactsTel }); list.Add(new ListValue { strMark = "#" + monthType + "dw", strVal = model.ReferralResult }); list.Add(new ListValue { strMark = "$" + monthType + "jgmc", strVal = model.PrenatalOrg }); list.Add(new ListValue { strMark = "&" + monthType + "qm", strVal = string.Format("{0}{1}_{2}.png", SignPath, model.IDCardNo, "PrenatalS_" + model.Times) }); list.Add(new ListValue { strMark = "&" + monthType + "sfys", strVal = string.Format("{0}{1}_{2}_Doc.png", SignPath, model.IDCardNo, "PrenatalS_" + model.Times) }); list.AddRange(DrawItems.lsCheck(DrawItems.objToStr(model.Advising), monthType, "zd", 8)); list.AddRange(DrawItems.lsCheck(DrawItems.objToStr(model.SerumCheckResult), monthType, "jcjg", 4)); return(list); }
public FixedDocumentSequence getReport() { List <ListValue> list = null; if (!string.IsNullOrEmpty(this.CardID)) { RecordsBaseInfoModel model = new RecordsBaseInfoBLL().GetModel(this.CardID); list = new List <ListValue> { new ListValue { strMark = "$archiveid", strVal = model.RecordID }, new ListValue { strMark = "$name", strVal = model.CustomerName } }; ChronicStrokeVisitModel model2 = new ChronicStrokeVisitBLL().GetModel(this.CardID); if (model2 != null) { list.Add(new ListValue { strMark = "$xyzy", strVal = model2.SmokeDrinkAttention }); list.Add(new ListValue { strMark = "$tzqt", strVal = model2.SignOther }); list.Add(new ListValue { strMark = "$xdy", strVal = DrawItems.objToNumStr(model2.Hypotension, 0) }); list.Add(new ListValue { strMark = "$xgy", strVal = DrawItems.objToNumStr(model2.Hypertension, 0) }); list.Add(new ListValue { strMark = "%zzqt", strVal = model2.SymptomOther }); list.Add(new ListValue { strMark = "#zz", strVal = model2.Symptom }); list.Add(new ListValue { strMark = "$xcsfsj", strVal = DrawItems.strToDate(model2.NextFollowupDate) }); list.Add(new ListValue { strMark = "$sfys", strVal = model2.FollowUpDoctor }); list.Add(new ListValue { strMark = "$sfrq", strVal = DrawItems.strToDate(model2.FollowupDate) }); list.Add(new ListValue { strMark = "%fyhzyw", strVal = model2.EatingDrug }); list.Add(new ListValue { strMark = "#sffs", strVal = model2.FollowupWay }); list.Add(new ListValue { strMark = "$zzjg", strVal = model2.ReferralOrg }); list.Add(new ListValue { strMark = "$zzyy", strVal = model2.ReferralReason }); list.Add(new ListValue { strMark = "#sffl", strVal = model2.FollowupType }); list.Add(new ListValue { strMark = "$ywbly", strVal = model2.AdrEx }); list.Add(new ListValue { strMark = "#ywbl", strVal = model2.Adr }); list.Add(new ListValue { strMark = "#fyyc", strVal = model2.MedicationCompliance }); list.Add(new ListValue { strMark = "%fzjc", strVal = model2.AssistantExam }); list.Add(new ListValue { strMark = "#zyxw", strVal = model2.ObeyDoctorBehavio }); list.Add(new ListValue { strMark = "#xltz", strVal = model2.PsychicAdjust }); list.Add(new ListValue { strMark = "$syzy", strVal = model2.EatSaltAttention }); list.Add(new ListValue { strMark = "$ydzy", strVal = model2.SportAttention }); list.Add(new ListValue { strMark = "$tz", strVal = DrawItems.objToNumStr(model2.Weight) }); list.Add(new ListValue { strMark = "&qm", strVal = string.Format("{0}{1}_{2}.png", SignPath, model2.IDCardNo, Convert.ToDateTime(model2.FollowupDate).ToString("yyyyMMdd")) }); List <ChronicDrugConditionModel> modelList = new ChronicDrugConditionBLL().GetModelList(string.Format(" IDCardNo = '{0}' and TYPE = '{1}' and OUTKey ='" + model2.ID + "' ", this.CardID, "5")); if (modelList != null && modelList.Count > 0) { list.AddRange(this.getDrug(modelList).ToArray()); } } } return(DrawItems.setPage("printXps\\" + this.PrintName, list)); }
public FixedDocumentSequence getReport() { List <ListValue> list = null; if (!string.IsNullOrEmpty(this.CardID)) { RecordsBaseInfoModel model = new RecordsBaseInfoBLL().GetModel(this.CardID); list = new List <ListValue> { new ListValue { strMark = "$archiveid", strVal = model.RecordID }, new ListValue { strMark = "$name", strVal = model.CustomerName } }; ChronicMentalDiseaseBaseInfoModel model2 = new ChronicMentalDiseaseBaseInfoModel(); model2 = new ChronicMentalDiseaseBaseInfoBLL().GetModel(this.CardID); if (model2 != null) { list.Add(new ListValue { strMark = "#gsqk", strVal = model2.LockInfo }); list.Add(new ListValue { strMark = "%zjzl", strVal = model2.SpecialistProposal }); list.Add(new ListValue { strMark = "$tbrq", strVal = DrawItems.strToDate(model2.FillformTime) }); list.Add(new ListValue { strMark = "$sczlsj", strVal = DrawItems.strToDate(model2.FirstTreatmenTTime) }); list.Add(new ListValue { strMark = "$qdzs", strVal = DrawItems.objToNumStr(model2.MildTroubleFrequen, 0) }); list.Add(new ListValue { strMark = "$zs", strVal = DrawItems.objToNumStr(model2.CreateDistuFrequen, 0) }); list.Add(new ListValue { strMark = "$zh", strVal = DrawItems.objToNumStr(model2.CauseAccidFrequen, 0) }); list.Add(new ListValue { strMark = "$qtwx", strVal = DrawItems.objToNumStr(model2.OtherDangerFrequen, 0) }); list.Add(new ListValue { strMark = "$zsh", strVal = DrawItems.objToNumStr(model2.AutolesionFrequen, 0) }); list.Add(new ListValue { strMark = "$zsws", strVal = DrawItems.objToNumStr(model2.AttemptSuicFrequen, 0) }); //list.Add(new ListValue //{ // strMark = "@hbyxw", // strVal = (model2.AttemptSuicideNone != "有") ? "1" : "" //}); list.Add(new ListValue { strMark = "$jhrxm", strVal = model2.GuardianName }); string strhzgx = ""; switch (Convert.ToInt32(model2.Ralation)) { case 1: strhzgx = "户主"; break; case 2: strhzgx = "配偶"; break; case 3: strhzgx = "父亲"; break; case 4: strhzgx = "母亲"; break; case 5: strhzgx = "兄弟"; break; case 6: strhzgx = "姐妹"; break; case 7: strhzgx = "儿子"; break; case 8: strhzgx = "女儿"; break; case 9: strhzgx = "儿媳"; break; case 10: strhzgx = "女婿"; break; case 11: strhzgx = "孙子"; break; case 12: strhzgx = "孙女"; break; case 13: strhzgx = "外孙"; break; case 14: strhzgx = "外孙女"; break; case 15: strhzgx = "其他"; break; default: break; } list.Add(new ListValue { strMark = "$hzgx", strVal = strhzgx }); list.Add(new ListValue { strMark = "$jhzz", strVal = model2.GuradianAddr }); list.Add(new ListValue { strMark = "$jhdh", strVal = model2.GuradianPhone }); list.Add(new ListValue { strMark = "$ccfb", strVal = DrawItems.strToDate(model2.FirstTime) }); list.Add(new ListValue { strMark = "#zqty", strVal = model2.AgreeManagement }); list.Add(new ListValue { strMark = "$zqqz", strVal = model2.AgreeSignature }); list.Add(new ListValue { strMark = "$qzsj", strVal = DrawItems.strToDate(model2.AgreeTime) }); list.Add(new ListValue { strMark = "#zz", strVal = model2.Symptom }); list.Add(new ListValue { strMark = "$zzqt", strVal = model2.SymptomOther }); list.Add(new ListValue { strMark = "#jwmz", strVal = model2.OutPatien }); list.Add(new ListValue { strMark = "$zycs", strVal = DrawItems.objToNumStr(model2.HospitalCount, 0) }); list.Add(new ListValue { strMark = "$mqzd", strVal = model2.DiagnosisInfo }); list.Add(new ListValue { strMark = "$qzyy", strVal = model2.DiagnosisHospital }); list.Add(new ListValue { strMark = "$qzrq", strVal = DrawItems.strToDate(model2.DiagnosisTime) }); list.Add(new ListValue { strMark = "#zjzl", strVal = model2.LastCure }); list.Add(new ListValue { strMark = "$lxr", strVal = model2.VillageContacts + " / " + model2.VillageTel }); list.Add(new ListValue { strMark = "#jjzk", strVal = model2.Economy }); list.Add(new ListValue { strMark = "#hzzy", strVal = model2.Professional }); list.Add(new ListValue { strMark = "#hb", strVal = model2.HouseType }); string strwxxw = ""; if (!string.IsNullOrEmpty(model2.AttemptSuicFrequen.ToString()) && model2.MildTroubleFrequen != 0) { strwxxw += "1,"; } if (!string.IsNullOrEmpty(model2.CreateDistuFrequen.ToString()) && model2.CreateDistuFrequen != 0) { strwxxw += "2,"; } if (!string.IsNullOrEmpty(model2.CauseAccidFrequen.ToString()) && model2.CauseAccidFrequen != 0) { strwxxw += "3,"; } if (!string.IsNullOrEmpty(model2.AttemptSuicideNone.ToString()) && model2.OtherDangerFrequen != 0) { strwxxw += "4,"; } if (!string.IsNullOrEmpty(model2.AutolesionFrequen.ToString()) && model2.AutolesionFrequen != 0) { strwxxw += "5,"; } if (!string.IsNullOrEmpty(model2.AttemptSuicFrequen.ToString()) && model2.AttemptSuicFrequen != 0) { strwxxw += "6,"; } list.Add(new ListValue { strMark = "#wxxw", strVal = string.IsNullOrEmpty(strwxxw) ? "7" : strwxxw.Substring(0, strwxxw.Length - 1) }); list.Add(new ListValue { strMark = "&qm", strVal = string.Format("{0}{1}_{2}.png", SignPath, model2.IDCardNo, "BaseInfo") }); list.Add(new ListValue { strMark = "&ysqz", strVal = string.Format("{0}{1}_{2}_Doc.png", SignPath, model2.IDCardNo, "BaseInfo") }); //滕州无签字版 list.Add(new ListValue { strMark = "$qm", strVal = model.CustomerName }); list.Add(new ListValue { strMark = "$ysqz", strVal = model2.DoctorMark }); } } return(DrawItems.setPage("printXps\\07重性精神疾病患者个人信息补充表.xps", list)); }