Пример #1
0
        /// <summary>
        /// 获取控件相关的数据,不涉及界面(不读写界面元素)。
        /// </summary>
        protected override void OnLoadData()
        {
            if (CiHeadDo.IsNEW && string.IsNullOrEmpty(CiHeadDo.Emsapobs.Id_di))
            {
                string[] di = new string[2];
                cof.GetPatDis(CiHeadDo, ref di);
                CiHeadDo.Emsapobs.Id_di     = di[0];
                CiHeadDo.Emsapobs.Name_diag = di[1];
            }

            // 获取医嘱流向科室数据
            OrWfDeptInfoDTO wf = new viewmodel.impext.GetDeptMpImp().GetDept_mp_ids(CiHeadDo.PatInfo.Code_entp, CiHeadDo.PatInfo.Id_entp, CiHeadDo.MedSrvDO.Sd_srvtp, CiHeadDo.MedSrvDO.Id_srvca, CiHeadDo.MedSrvDO.Id_srv, CiHeadDo.MedSrvDO.Id_route, "id_mm", CiHeadDo.PatInfo.Id_dep_nur, CiHeadDo.PatInfo.Id_dep_phy);

            idDepMps = wf == null ? "" : wf.Id_mp_depts;

            // 新建时默认选中第一个执行科室
            if (CiHeadDo.IsNEW)
            {
                CiHeadDo.Emsapobs.Id_mp_dep   = wf == null ? "" : wf.Firstid_mp_dept;
                CiHeadDo.Emsapobs.Name_mp_dep = wf == null ? "" : wf.Firstname_mp_dept;;
            }
            if (gv != null)
            {
                gv.DataTable.DataSource = null;
            }
        }
Пример #2
0
        public override void OnRefreshData(EmsUIDTO headDo, object e)
        {
            this.EmsHeadDO = headDo;
            OrWfDeptInfoDTO wf = new viewmodel.impext.GetDeptMpImp().GetDept_mp_ids(this.EmsHeadDO.PatInfo.Code_entp, this.EmsHeadDO.PatInfo.Id_entp, this.EmsHeadDO.MedSrvDO.Sd_srvtp, this.EmsHeadDO.MedSrvDO.Id_srvca, this.EmsHeadDO.MedSrvDO.Id_srv, this.EmsHeadDO.MedSrvDO.Id_route, "id_mm", headDo.PatInfo.Id_dep_nur, headDo.PatInfo.Id_dep_phy);

            if (wf != null)
            {
                idDepMps = wf.Id_mp_depts;
            }
            string[] di = new string[2];
            if (this.EmsHeadDO.IsNEW)
            {
                if (wf != null)
                {
                    this.EmsHeadDO.Emsappathgy.Id_mp_dep   = wf.Firstid_mp_dept;
                    this.EmsHeadDO.Emsappathgy.Name_mp_dep = wf.Firstname_mp_dept;
                }
            }
            base.OnRefreshData(headDo, e);

            if (emsItemInPathgyView != null)
            {
                emsItemInPathgyView.bEdit = !IsReadOnly;
                emsItemInPathgyView.RefreshData(this.EmsHeadDO.Emsappathgy);
            }
        }
Пример #3
0
        public override void OnRefreshData(EmsUIDTO ems, object e)
        {
            EmsHeadDO     = ems;
            this.CiEmsDTO = e as CiEmsDTO;
            OrWfDeptInfoDTO wf = new viewmodel.impext.GetDeptMpImp().GetDept_mp_ids(EmsHeadDO.PatInfo.Code_entp,
                                                                                    EmsHeadDO.PatInfo.Id_entp, EmsHeadDO.MedSrvDO.Sd_srvtp, EmsHeadDO.MedSrvDO.Id_srvca, EmsHeadDO.MedSrvDO.Id_srv,
                                                                                    EmsHeadDO.MedSrvDO.Id_route, "id_mm", EmsHeadDO.PatInfo.Id_dep_nur, EmsHeadDO.PatInfo.Id_dep_phy);

            idDepMps = wf == null ? "" : wf.Id_mp_depts;
            string[] di = new string[2];
            if (EmsHeadDO.IsNEW)
            {
                LoadIndicatorData();
                EmsHeadDO.Emsapop.Id_mp_dep   = wf == null ? "" : wf.Firstid_mp_dept;;
                EmsHeadDO.Emsapop.Name_mp_dep = wf == null ? "" : wf.Firstname_mp_dept;
                cof.GetPatDis(EmsHeadDO, ref di);
                EmsHeadDO.Emsapop.Id_di     = di[0];
                EmsHeadDO.Emsapop.Name_diag = di[1];
            }

            if (Created)
            {
                this.LoadData();
            }
        }
Пример #4
0
        public override void OnRefreshData(EmsUIDTO headDo, object e)
        {
            if (headDo != null)
            {
                this.EmsHeadDO = headDo;
                OrWfDeptInfoDTO wf = new viewmodel.impext.GetDeptMpImp().GetDept_mp_ids(this.EmsHeadDO.PatInfo.Code_entp, this.EmsHeadDO.PatInfo.Id_entp, this.EmsHeadDO.MedSrvDO.Sd_srvtp, this.EmsHeadDO.MedSrvDO.Id_srvca, this.EmsHeadDO.MedSrvDO.Id_srv, this.EmsHeadDO.MedSrvDO.Id_route, "id_mm", this.EmsHeadDO.PatInfo.Id_dep_nur, this.EmsHeadDO.PatInfo.Id_dep_phy);
            }

            if (this.Created)
            {
                this.LoadData();
            }
        }
Пример #5
0
        public override void OnRefreshData(EmsUIDTO ems, object e)
        {
            this.labitmexplainNullFlag = true;
            EmsHeadDO     = ems;
            this.CiEmsDTO = e as CiEmsDTO;
            if (EmsHeadDO == null)
            {
                return;
            }

            string[] di = new string[2];
            cof.GetPatDis(EmsHeadDO, ref di);
            if (EmsHeadDO.Emsapbt.Id_di == null)
            {
                EmsHeadDO.Emsapbt.Id_di     = di[0];
                EmsHeadDO.Emsapbt.Name_diag = di[1];
            }
            if (EmsHeadDO.Emsapbt.BtLabItem.Count == 0)
            {
                LoadIndicatorData();
            }
            else
            {
                indicatorDataAllFilled(EmsHeadDO.Emsapbt.BtLabItem);
            }
            OrWfDeptInfoDTO wf = new viewmodel.impext.GetDeptMpImp().GetDept_mp_ids(this.EmsHeadDO.PatInfo.Code_entp, EmsHeadDO.PatInfo.Id_entp, EmsHeadDO.MedSrvDO.Sd_srvtp, EmsHeadDO.MedSrvDO.Id_srvca, EmsHeadDO.MedSrvDO.Id_srv, EmsHeadDO.MedSrvDO.Id_route, "id_mm", EmsHeadDO.PatInfo.Id_dep_nur, EmsHeadDO.PatInfo.Id_dep_phy);

            if (wf != null)
            {
                idDepMps = wf.Id_mp_depts;
            }
            this.CiEmsDTO.Id_dep_mp = wf == null ? "" : wf.Firstid_mp_dept;
            if (this.EmsHeadDO.IsNEW)
            {
                if (wf != null)
                {
                    this.EmsHeadDO.Emsapbt.Id_mp_dep   = wf.Firstid_mp_dept;
                    this.EmsHeadDO.Emsapbt.Name_mp_dep = wf.Firstname_mp_dept;
                }
            }
            if (this.Created)
            {
                this.LoadData();
            }
        }
Пример #6
0
        public override void OnRefreshData(EmsUIDTO ems, object e)
        {
            EmsHeadDO = ems;
            //获取执行科室筛选字符串
            OrWfDeptInfoDTO wf = new viewmodel.impext.GetDeptMpImp().GetDept_mp_ids(EmsHeadDO.PatInfo.Code_entp, EmsHeadDO.PatInfo.Id_entp,
                                                                                    EmsHeadDO.MedSrvDO.Sd_srvtp, EmsHeadDO.MedSrvDO.Id_srvca, EmsHeadDO.MedSrvDO.Id_srv, EmsHeadDO.MedSrvDO.Id_route, "id_mm", EmsHeadDO.PatInfo.Id_dep_nur, EmsHeadDO.PatInfo.Id_dep_phy);

            EmsHeadDO.Emsdrugs.Str_mp_dep_ids = wf == null?"":wf.Id_mp_depts;
            idWfdeps = wf.Id_mp_depts;
            if (EmsHeadDO.IsNEW)
            {
                EmsHeadDO.Emsdrugs.Id_dep   = wf == null ? "" : wf.Firstid_mp_dept;
                EmsHeadDO.Emsdrugs.Name_dep = wf == null ? "" : wf.Firstname_mp_dept;
            }
            if (Created)
            {
                this.LoadData();
            }
        }