//获取基本信息字典(样本源) private Dictionary <string, string> GetBaseInfoDic(string formStr) { Dictionary <string, string> dic = new Dictionary <string, string>(); //基本信息对象 Model.EmpiInfo empiInfo = new Model.EmpiInfo(); if (!string.IsNullOrEmpty(formStr) && formStr != "[]") { //转换页面上的baseinfo为对象 List <Dictionary <string, string> > dicList = new List <Dictionary <string, string> >(); dicList = FreezerProUtility.Fp_Common.FpJsonHelper.JsonStrToObject <List <Dictionary <string, string> > >(formStr); empiInfo = FormToDic.GetFromInfo <Model.EmpiInfo>(dicList); dic = FormToDic.ConvertModelToDic(empiInfo); } return(dic); }
private List <Dictionary <string, string> > GetClinicalInfoDgDicList(string dataStr) { List <Model.PatientDiagnose> pageClinicalInfoList = new List <Model.PatientDiagnose>(); Model.PatientDiagnose cl = new Model.PatientDiagnose(); List <Dictionary <string, string> > ClinicalInfoDgDicList = new List <Dictionary <string, string> >(); if (!string.IsNullOrEmpty(dataStr) && dataStr != "[]") { pageClinicalInfoList = FreezerProUtility.Fp_Common.FpJsonHelper.JsonStrToObject <List <Model.PatientDiagnose> >(dataStr);//转换ok } foreach (Model.PatientDiagnose item in pageClinicalInfoList) { //给对象拼接--临床数据中需要添加基本信息中的RegisterID,InPatientID ClinicalInfoDgDicList.Add(FormToDic.ConvertModelToDic(item)); } return(ClinicalInfoDgDicList); }
//获取基本信息字典(样本源) private Dictionary <string, string> GetBaseInfoDic(string formStr) { Dictionary <string, string> dic = new Dictionary <string, string>(); Model.PatientDiagnose data = new Model.PatientDiagnose(); Dictionary <string, string> dicc = new Dictionary <string, string>(); if (!string.IsNullOrEmpty(formStr) && formStr != "[]") { List <Dictionary <string, string> > dicList = new List <Dictionary <string, string> >(); dicList = FreezerProUtility.Fp_Common.FpJsonHelper.JsonStrToObject <List <Dictionary <string, string> > >(formStr); dicc = dicList[0]; string aa = JsonConvert.SerializeObject(dicc); data = JsonConvert.DeserializeObject <Model.PatientDiagnose>(aa); //data = FormToDic.GetFromInfo<Model.PatientDiagnose>(dicList); dic = FormToDic.ConvertModelToDic(data); } return(dic); }
private List <Dictionary <string, string> > GetClinicalInfoDgDicList(string dataStr) { string clinicalInfoDg = dataStr;//dg //页面上临床数据对象集合 List <Model.NormalLisItems> pageClinicalInfoList = new List <Model.NormalLisItems>(); List <Dictionary <string, string> > ClinicalInfoDgDicList = new List <Dictionary <string, string> >(); //将页面上的临床信息转换成对象集合 if (!string.IsNullOrEmpty(clinicalInfoDg) && clinicalInfoDg != "[]") { //转换页面上的clinicalInfoDg为对象集合 pageClinicalInfoList = FreezerProUtility.Fp_Common.FpJsonHelper.JsonStrToObject <List <Model.NormalLisItems> >(clinicalInfoDg);//转换ok } Model.NormalLisItems cl = new Model.NormalLisItems(); foreach (Model.NormalLisItems item in pageClinicalInfoList) { //给对象拼接--临床数据中需要添加基本信息中的RegisterID,InPatientID ClinicalInfoDgDicList.Add(FormToDic.ConvertModelToDic(item)); } return(ClinicalInfoDgDicList); }