/////////添加检验、检查、诊疗多剂量多次执行,杨敬本20171111 public override void OnDataChanged(Object ds, string fieldName, string value) { if (String.IsNullOrEmpty(fieldName)) { return; } if (fieldName.ToLower().Equals("fg_urgent")) { this.uiEmsDTO.Emsapobs.Fg_urgent = bool.Parse(value); } else if (fieldName.Equals("Use_days") || fieldName.Equals("customercolumn_med_unit") || fieldName.Equals("customercolumn_sale_unit")) { EmsOrDrug itemDrug = ds as EmsOrDrug; if (itemDrug != null && itemDrug.Quan_med != null && itemDrug.Id_freq != null && itemDrug.Freqct != null && itemDrug.Use_days != null) { itemDrug.Quan_cur = this.logicEx.getNotDrugTotal(itemDrug.Quan_med.ToDouble(), itemDrug.Id_freq, itemDrug.Freqct.Value, itemDrug.Use_days.Value); itemDrug.Totalprice = itemDrug.Price * itemDrug.Quan_cur; } } else if (fieldName.Equals("Dt_plan")) { this.uiEmsDTO.Emsapobs.Dt_begin_ui = this.uiEmsDTO.Emsapobs.Dt_plan; if (this.uiEmsDTO.Emsapobs.Dt_begin_ui == null) { this.uiEmsDTO.Emsapobs.Dt_end_ui = this.uiEmsDTO.Emsapobs.Dt_begin_ui; } else { this.uiEmsDTO.Emsapobs.Dt_end_ui = ((DateTime)this.uiEmsDTO.Emsapobs.Dt_begin_ui).AddDays((int)this.uiEmsDTO.Emsapobs.Use_days); } } else if (fieldName.Equals("customercolumn_details")) { //TODO 后台抽出新的方法后需要替换 EmsOrDrug itemDrug = ds as EmsOrDrug; MedSrvDO medSrv = new MedSrvDO(); medSrv.Id_srv = itemDrug.Id_srv; medSrv.Id_primd = itemDrug.Id_pri; LogicEx logicEx = LogicEx.GetInstance(); itemDrug.Totalprice = logicEx.getSrvNotMMPri(medSrv, this.uiEmsDTO.Emsapobs.EmsOrObsList, this.ent4BannerDTO.Id_pripat); itemDrug.Price = itemDrug.Totalprice; } }