Пример #1
0
        protected override void OnLoadData()
        {
            // 就诊id ,就诊类型为空时清空model
            if (!string.IsNullOrEmpty(this.Id_ent) && !string.IsNullOrEmpty(this.Code_entp))
            {
                if (ciOrdViewModel == null)
                {
                    ciOrdViewModel = new CiOrdViewModel(this.Ent4BannerDTO, this.Context);
                }

                ciOrdViewModel.loadOderItems(this.Id_ent, this.Code_entp);
            }
            else
            {
                ciOrdViewModel.xapList = null;
                ciOrdViewModel.PriMap  = null;
            }
        }
Пример #2
0
        /// <summary>
        /// 保存医嘱,保存失败的医嘱转发给医疗单处理
        /// </summary>
        /// <param name="obj"></param>
        private void LoadCiEms(object obj)
        {
            CiOrderDO[] ciorders = (CiOrderDO[])obj;
            if (ciorders != null && ciorders.Length > 0)
            {
                string[] idOrs = new string[ciorders.Length];

                for (int i = 0; i < ciorders.Length; i++)
                {
                    idOrs[i] = ciorders[i].Id_or;
                }

                CiOrdViewModel  ciordModel = new CiOrdViewModel(this.Ent4BannerDTO, this.Context);
                MoreEmsParamDTO moreEmsDto = ciordModel.GetMoreEmsParam(idOrs);

                AssToolEx.SentMessage(this, EventCodeType.EVENT_EMS_TMPL_EDIT, EventCodeType.ARGKEY_EMS_TMPL_EDIT, moreEmsDto);
            }
        }