public override void EditEms(CiEmsDTO ems) { base.EditEms(ems); orCiEmsToUiEms.EditDrug(ems, this.uiEmsDTO); this.uiEmsDTO.Status = DOStatus.NEW; foreach (EmsOrDrug item in this.uiEmsDTO.Emsdrugs.EmsOrDrugList) { if (String.IsNullOrEmpty(this.uiEmsDTO.Emsdrugs.Id_route)) { this.uiEmsDTO.Emsdrugs.Name_route = null; } if (String.IsNullOrEmpty(this.uiEmsDTO.Emsdrugs.Id_freq)) { this.uiEmsDTO.Emsdrugs.Name_freq = null; this.uiEmsDTO.Emsdrugs.Freqct = null; } this.fillSameInfoForEmsOrDrug(item, this.uiEmsDTO.Emsdrugs); // 计算 明细总金额 item.Totalprice = item.Quan_cur * item.Price; } if (this.uiEmsDTO.Emsdrugs.EmsOrDrugList != null && this.uiEmsDTO.Emsdrugs.EmsOrDrugList.Count > 0 && this.uiEmsDTO.Emsdrugs.EmsOrDrugList[0].Id_route != "") { id_dosages = this.logicEx.getDrugRouteOfDoSages(this.uiEmsDTO.Emsdrugs.EmsOrDrugList[0].Id_route); } // 物质流向 OrWfDeptInfoDTO wf = new GetDeptMpImp().GetDept_mp_ids(this.GetEnt4BannerDTO().Code_entp, this.GetEnt4BannerDTO().Id_entp, ems.Sd_srvtp, ems.Id_srvca, ems.Id_srv, ems.Id_route, "id_mm", this.GetEnt4BannerDTO().Id_dep_nur, this.GetEnt4BannerDTO().Id_dep_phy); this.uiEmsDTO.Emsdrugs.Str_mp_dep_ids = wf == null ? "" : wf.Id_mp_depts; if (this.uiEmsDTO.Emsdrugs.Id_dep == null) { this.uiEmsDTO.Emsdrugs.Id_dep = wf == null ? "" : wf.Firstid_mp_dept; this.uiEmsDTO.Emsdrugs.Name_dep = wf == null ? "" : wf.Firstname_mp_dept; } if (null != wf) { foreach (EmsOrDrug drug in uiEmsDTO.Emsdrugs.EmsOrDrugList) { //皮试判断逻辑 AssToolEx.CheckTestSkinSrv(null, drug, this.GetEnt4BannerDTO()); drug.Id_dep_wh = wf.Id_dept_wh; } } }