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() { 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 void InitEveryThing() { dsRequire = new RequireBLL().GetList("TabName = '健康体检' AND Comment = '治疗情况' "); this.HospitalHistory = new RecordsHospitalHistoryBLL().GetModelList(string.Format("IDCardNo = '{0}' and OutKey={1}", this.Model.IDCardNo, PhysicalInfoFactory.ID)); this.FamilyBedHistoryInfo = new RecordsFamilyBedHistoryBLL().GetModelList(string.Format("IDCardNo = '{0}' and OutKey={1}", this.Model.IDCardNo, PhysicalInfoFactory.ID)); this.Medication = new RecordsMedicationBLL().GetModelList(string.Format("IDCardNo = '{0}' and OutKey={1}", this.Model.IDCardNo, PhysicalInfoFactory.ID)); this.Perzhuyuans = new List <ZhuYuanUserControl> { this.zhuYuan1, this.zhuYuan2 }; this.FamZhuyuans = new List <ZhuYuanUserControl> { this.homezhuYuan1, this.homezhuYuan2 }; //新增体检时,从设备中读取的栏位设置为空 if (PhysicalInfoFactory.falgID == 0) { if (area.Equals("威海")) { this.Medication = new List <RecordsMedicationModel>(); } this.PresetValue(); if (community.Equals("平度云山医院") || area.Equals("威海"))//平度云山医院、威海,从高血压,糖尿病随访中获取用药 { string strYear = DateTime.Now.Year.ToString(); string strHypeWhere = string.Format(" Left(FollowUpDate,4)='{0}' and IDCardNo='{1}' order by FollowUpDate desc ", strYear, this.Model.IDCardNo); List <ChronicHypertensionVisitModel> HyperModellist = new ChronicHypertensionVisitBLL().GetModelList(strHypeWhere); if (HyperModellist.Count > 0) { List <ChronicDrugConditionModel> DrugConditions = new ChronicDrugConditionBLL().GetModelList(string.Format(" IDCardNo = '{0}' and type = '{1}' and OUTKey = '{2}' ", HyperModellist[0].IDCardNo, "1", HyperModellist[0].ID)); foreach (ChronicDrugConditionModel drugmodel in DrugConditions) { RecordsMedicationModel newModel = new RecordsMedicationModel { MedicinalName = drugmodel.Name, UseNum = drugmodel.DosAge, IDCardNo = this.Model.IDCardNo }; this.Medication.Add(newModel); } } string strDiaWhere = string.Format(" Left(VisitDate,4)='{0}'and IDCardNo='{1}' order by VisitDate desc ", strYear, this.Model.IDCardNo); List <ChronicDiadetesVisitModel> DiamodelList = new ChronicDiadetesVisitBLL().GetModelList(strDiaWhere); if (DiamodelList.Count > 0) { List <ChronicDrugConditionModel> DiaDrugConditions = new ChronicDrugConditionBLL().GetModelList(string.Format(" IDCardNo = '{0}' and type = '{1}' and OUTKey = '{2}' ", DiamodelList[0].IDCardNo, "2", DiamodelList[0].ID)); foreach (ChronicDrugConditionModel drugmodel in DiaDrugConditions) { RecordsMedicationModel newModel = new RecordsMedicationModel { MedicinalName = drugmodel.Name, UseNum = drugmodel.DosAge, IDCardNo = this.Model.IDCardNo }; this.Medication.Add(newModel); } } } } for (int i = 0; i < this.HospitalHistory.Count; i++) { this.Perzhuyuans[i].PerSource = this.HospitalHistory[i]; } for (int j = 0; j < this.FamilyBedHistoryInfo.Count; j++) { this.FamZhuyuans[j].FamSource = this.FamilyBedHistoryInfo[j]; } if (this.FamilyBedHistoryInfo.Count > 0) { this.homezhuYuan1.FamSource = this.FamilyBedHistoryInfo[0]; if (this.FamilyBedHistoryInfo.Count == 2) { this.homezhuYuan2.FamSource = this.FamilyBedHistoryInfo[1]; } } //读取用药情况 if (File.Exists(Application.StartupPath + "\\dose.xml")) { DataSet ds = new DataSet(); ds.ReadXml(Application.StartupPath + "\\dose.xml"); DataTable dt_yw = ds.Tables[0]; doseUC1.setSource(dt_yw); doseUC2.setSource(DeepCopy(dt_yw)); doseUC3.setSource(DeepCopy(dt_yw)); doseUC4.setSource(DeepCopy(dt_yw)); doseUC5.setSource(DeepCopy(dt_yw)); doseUC6.setSource(DeepCopy(dt_yw)); } for (int k = 0; k < this.doses.Count; k++) { if (k < this.Medication.Count) { this.doses[k].Source = this.Medication[k]; } else { RecordsMedicationModel recordsMedicationModel = new RecordsMedicationModel { IDCardNo = this.Model.IDCardNo, ModelState = RecordsStateModel.NoValue }; this.doses[k].Source = recordsMedicationModel; } } this.EveryThingIsOk = true; MustChoose(); }
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() { 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)); }
private void dgvData_CellContentClick(object sender, DataGridViewCellEventArgs e) { if ((this.bds.Position >= 0) && (e.RowIndex >= 0)) { DataRowView view = (DataRowView)this.bds.List[this.bds.Position]; if (((this.dgvData.Columns[e.ColumnIndex].HeaderText == "修改") && (this.bds.Position >= 0)) && (e.RowIndex >= 0)) { if (view != null) { DataRow row = view.Row; new Controler(new MDIParentForm(view.Row["IDCardNo"].ToString()), new FocusQueryInfoFactory(Convert.ToInt32(row["ID"].ToString()), RecordsName)).IParentFrm.IShowDialog(); //this.GetDataView(); } } if (((this.dgvData.Columns[e.ColumnIndex].HeaderText == "删除") && (this.bds.Position >= 0)) && (e.RowIndex >= 0)) { if (view != null) { DataRow row = view.Row; string Sign = "", SignDoc = ""; if (MessageBox.Show("确定删除:" + row["CustomerName"].ToString() + "?删除之后的信息将无法恢复!", "删除", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.Yes) { ChronicDrugConditionBLL drugbll = new ChronicDrugConditionBLL(); switch (this.RecordsName) { case "老年人记录": OlderMedicineResultBLL oldMedicineResultbll = new OlderMedicineResultBLL(); oldMedicineResultbll.DelOUTkey(Convert.ToInt32(row["ID"].ToString())); OlderMedicineCnBLL OlderMedicineCnbll = new OlderMedicineCnBLL(); OlderMedicineCnModel MedResultModel = OlderMedicineCnbll.GetModelOUTKey(Convert.ToInt32(row["ID"].ToString())); OlderMedicineCnbll.DelOUTkey(Convert.ToInt32(row["ID"].ToString())); //删除签名 Sign = string.Format("{0}{1}_{2}_Asses.png", SignPath + "OldVisit//", row["IDCardNo"].ToString(), Convert.ToDateTime(row["CheckDate"]).ToString("yyyyMMdd")); DeletSign(Sign); if (MedResultModel != null) { SignDoc = string.Format("{0}{1}_{2}_MeC.png", SignPath + "OldVisit//", row["IDCardNo"].ToString(), Convert.ToDateTime(MedResultModel.RecordDate).ToString("yyyyMMdd")); DeletSign(SignDoc); } break; case "高血压记录": this.drugType = "1"; //删除签名 Sign = string.Format("{0}{1}_{2}.png", SignPath + "HypVisit//", row["IDCardNo"].ToString(), Convert.ToDateTime(row["CheckDate"]).ToString("yyyyMMdd")); SignDoc = string.Format("{0}{1}_{2}_Doc.png", SignPath + "HypVisit//", row["IDCardNo"].ToString(), Convert.ToDateTime(row["CheckDate"]).ToString("yyyyMMdd")); DeletSign(Sign); DeletSign(SignDoc); drugbll.DeleteOUTKey(Convert.ToInt32(row["ID"].ToString()), drugType); break; case "糖尿病记录": this.drugType = "2"; drugbll.DeleteOUTKey(Convert.ToInt32(row["ID"].ToString()), drugType); //删除签名 Sign = string.Format("{0}{1}_{2}.png", SignPath + "DiaVisit//", row["IDCardNo"].ToString(), Convert.ToDateTime(row["CheckDate"]).ToString("yyyyMMdd")); SignDoc = string.Format("{0}{1}_{2}_Doc.png", SignPath + "DiaVisit//", row["IDCardNo"].ToString(), Convert.ToDateTime(row["CheckDate"]).ToString("yyyyMMdd")); DeletSign(Sign); DeletSign(SignDoc); break; case "冠心病记录": this.drugType = "4"; drugbll.DeleteOUTKey(Convert.ToInt32(row["ID"].ToString()), drugType); break; case "脑卒中记录": this.drugType = "5"; drugbll.DeleteOUTKey(Convert.ToInt32(row["ID"].ToString()), drugType); break; case "精神病记录": this.drugType = "3"; drugbll.DeleteOUTKey(Convert.ToInt32(row["ID"].ToString()), drugType); //删除签名 Sign = string.Format("{0}{1}_{2}.png", SignPath + "MentalVisit//", row["IDCardNo"].ToString(), Convert.ToDateTime(row["CheckDate"]).ToString("yyyyMMdd")); SignDoc = string.Format("{0}{1}_{2}_Doc.png", SignPath + "MentalVisit//", row["IDCardNo"].ToString(), Convert.ToDateTime(row["CheckDate"]).ToString("yyyyMMdd")); DeletSign(Sign); DeletSign(SignDoc); break; case "肺结核记录": ChronicLungerVisitBLL lungerVisit = new ChronicLungerVisitBLL(); //删除签名 DataSet ds = lungerVisit.GetList(" OutKey=" + Convert.ToInt32(row["ID"].ToString())); for (int i = 0; i < ds.Tables[0].Rows.Count; i++) { string VisitCount = ds.Tables[0].Rows[i]["VisitCount"].ToString(); string strDate = Convert.ToDateTime(ds.Tables[0].Rows[i]["FollowupDate"]).ToString("yyyyMMdd"); Sign = string.Format("{0}{1}_{2}_{3}.png", SignPath + "PTBVisit//", row["IDCardNo"].ToString(), VisitCount, strDate); SignDoc = string.Format("{0}{1}_{2}_{3}_Doc.png", SignPath + "PTBVisit//", row["IDCardNo"].ToString(), VisitCount, strDate); DeletSign(Sign); DeletSign(SignDoc); } break; case "": break; default: break; } archive_baseinfo.Delete(Convert.ToInt32(row["ID"].ToString())); string where = this.GetWhere(); this.totalCount = archive_baseinfo.GetRecordCount(where); this.lbTotalCount.Text = string.Format("共计{0}条", this.totalCount.ToString()); row.Delete(); row.Table.AcceptChanges(); } } } } }
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)); }