//诊断过程 类型 public void setditp(Ent4BannerDTO patientsDTO, string ciditype) { if (patientsDTO != null) { this.xyCidiList.Clear();//清空集合 this.zyCidiList.Clear(); UdidocDO[] udidocs = qrySerice.getDiType(patientsDTO.Id_ent, ciditype); if (udidocs != null && udidocs.Count() > 0) { DidtoAggDTO agg = new DidtoAggDTO(); this.CidixyAggDto.AggDO.getParentDO().Id_ditp = udidocs[0].Id_udidoc; this.CidixyAggDto.AggDO.getParentDO().Id_ditp_code = udidocs[0].Code; this.CidixyAggDto.AggDO.getParentDO().Id_ditp_name = udidocs[0].Name; this.CidixyAggDto.AggDO.getParentDO().Id_emp_create = UserManager.getInstance().CurrentPsnInfo.Id_psndoc; this.CidixyAggDto.AggDO.getParentDO().Id_emp_create_name = UserManager.getInstance().CurrentPsnInfo.Name; this.CidixyAggDto.AggDO.getParentDO().Dt_di = CommonExtentions.NowTime(this); // this.cidixyList.AggDO.setCididtozy(new Cididtozy[]{new Cididtozy(), }); //this.cidixyList.AggDO.setCidixy(null); // 补充诊断 if (udidocs[0].Code == CiDictCodeConst.SD_SUPPLY) { this.xyCidiList.Clear();//清空集合 this.zyCidiList.Clear(); } else { CidiagAggDO[] ciagg = qrySerice.getLastCiDiags(patientsDTO.Id_ent); if (ciagg != null) { ciagg[0].getParentDO().Id_ditp = udidocs[0].Id_udidoc; ciagg[0].getParentDO().Sd_ditp = udidocs[0].Code; ciagg[0].getParentDO().Name_ditp = udidocs[0].Name; ciagg[0].getParentDO().Id_emp_create = UserManager.getInstance().CurrentPsnInfo.Id_psndoc; ciagg[0].getParentDO().Empname = UserManager.getInstance().CurrentPsnInfo.Name; ciagg[0].getParentDO().Dt_di = CommonExtentions.NowTime(this); ciagg[0].getParentDO().Fg_sign = FBoolean.False; getCiDiDtoList(ciagg[0]); } else { // this.CidixyAggDto.AggDO.setCidixy(new Cidixy[] {new Cidixy()}); //this.CidixyAggDto.AggDO.setCididtozy(new Cididtozy[] { new Cididtozy() }); this.CidixyAggDto.AggDO.ChildrenList.Clear(); // agg.setCidixy(new Cidixy[]{new Cidixy()}); // this.CidixyAggDto = new XapAggDO<DidtoAggDTO>(qrySerice, agg); } } } } }
private void getCiDiDtoList(CidiagAggDO ciagg) { DidtoAggDTO agg = new DidtoAggDTO(); Headdto headdto = new Headdto(); if (ciagg != null && ciagg.getCiDiagItemDO() != null) { List <Cidixy> cidiListxy = new List <Cidixy>(); List <Cididtozy> cidiListzy = new List <Cididtozy>(); //int i = 0; headdto.Id_ditp = ciagg.getParentDO().Id_ditp; headdto.Id_ditp_code = ciagg.getParentDO().Sd_ditp; headdto.Id_ditp_name = ciagg.getParentDO().Name_ditp; headdto.Dt_di = ciagg.getParentDO().Dt_di; headdto.Id_emp_create = ciagg.getParentDO().Id_emp_create; headdto.Id_emp_create_name = ciagg.getParentDO().Empname; //this.CidixyAggDto.AggDO.getParentDO().Id_ditp = ciagg.getParentDO().Id_ditp; //this.CidixyAggDto.AggDO.getParentDO().Id_ditp_code = ciagg.getParentDO().Sd_ditp; //this.CidixyAggDto.AggDO.getParentDO().Id_ditp_name = ciagg.getParentDO().Name_ditp; //this.CidixyAggDto.AggDO.getParentDO().Dt_di = ciagg.getParentDO().Dt_di; //this.CidixyAggDto.AggDO.getParentDO().Id_emp_create = ciagg.getParentDO().Id_emp_create; //this.CidixyAggDto.AggDO.getParentDO().Id_emp_create_name = ciagg.getParentDO().Empname; agg.setParentDO(headdto); foreach (CiDiagItemDO item in ciagg.getCiDiagItemDO()) { if (item.Id_disys == CiDictCodeConst.ID_CI_DISYS_XYZDTX) //判断 西医 { getCidixy(cidiListxy, ciagg, item); } else if (item.Id_disys == CiDictCodeConst.ID_CI_DISYS_ZYZDTX) //判断中医 { getCidizy(cidiListzy, ciagg, item); } else { //todo 暂时 其它体系 getCidixy(cidiListxy, ciagg, item); } } agg.setCidixy(cidiListxy.ToArray()); agg.setCididtozy(cidiListzy.ToArray()); // this.CidixyAggDto.AggDO.setCididtozy(cidiListzy.ToArray()); //this.CidixyAggDto.AggDO.setCidixy(cidiListxy.ToArray()); // this.CidixyAggDto.AggDO.setCidixy(cidiListxy.ToArray()); // this.CidixyAggDto.AggDO.setCididtozy(cidiListzy.ToArray()); this.CidixyAggDto = new XapAggDO <DidtoAggDTO>(qrySerice, agg); } }