public void RefreshData(BaseEmsViewModel model)
 {
     this.SetViewModel(model);
     if (emsItemInPathgyView != null)
     {
         emsItemInPathgyView.RefreshData(model.GetFormDataSource() as EmsPathgyItemDO);
     }
     this.LoadData();
 }
Exemple #2
0
        public PathgyObsItemView(EmsPathgyItemDO pathgyItemDO, BaseEmsViewModel model)
        {
            InitializeComponent();
            this.model           = model;
            this.emsPathgyItemDO = pathgyItemDO;

            this.xapFormControl1.Load        += new EventHandler(EmsItemInPathgyView_Load);
            this.xapFormControl1.FormCreated += new EventHandler(EmsItemInPathgyView_FormCreated);
        }
        public PathgySrvTableView(BaseEmsViewModel model)
        {
            this.model = model;

            this.SetViewModel(model);
            this.emsItemInPathgyView = new PathgyObsItemView(model.GetFormDataSource() as EmsPathgyItemDO, model);
            Dictionary <string, Control> dicControls = new Dictionary <string, Control>();

            dicControls.Add("collcontainer", emsItemInPathgyView);
            this.GetXapFormControl().RegisterControl(dicControls);
        }
Exemple #4
0
        public virtual BaseEmsViewModel GetEmsModel()
        {
            if (this.ent4Banner == null)
            {
                return(null);
            }
            //if (this.emsModel == null)
            {
                this.emsModel = CreateEmsModel(this.ent4Banner).setEmsMatchRstDTO(this.EmsMgrDTO);
            }

            return(emsModel);
        }
Exemple #5
0
        public virtual BaseEmsDriver Initialize(BaseFormBizView c, Ent4BannerDTO e, SrvMatchEmsRstDTO eo)
        {
            this.ent4Banner = e;
            this.EmsMgrDTO  = eo;
            if (null == c)
            {
                return(null);
            }
            //if (null == this.emsView)
            {
                this.emsView = this.CreateEmsView(c);
            }
            BaseEmsViewModel model = this.GetEmsModel();

            model.SetContext(c.Context);
            this.emsView.SetViewModel(model);

            return(this);
        }
Exemple #6
0
        /// <summary>
        /// 是否已经判断自费
        /// </summary>
        /// <returns></returns>
        private bool getFgselfpay(BaseEmsViewModel model)
        {
            if (model == null)
            {
                return(false);
            }
            EmsUIDTO uidto = (model.GetEmsUIDTO() as EmsUIDTO);

            if (uidto != null && uidto.Emsdrugs != null && uidto.Emsdrugs.EmsOrDrug != null)
            {
                XapDataList <EmsOrDrug> emsOrDrug = uidto.Emsdrugs.EmsOrDrug;

                foreach (EmsOrDrug drug in emsOrDrug)
                {
                    FArrayList bdhp = drug.BdHpIndicationDTO;
                    if (bdhp == null)
                    {
                        return(true);
                    }
                    foreach (BdHpIndicationDTO bdhpDTO in bdhp)
                    {   /*
                         * 1	甲类
                         * 2	乙类
                         * 3	丙类*/
                        if (bdhpDTO != null && bdhpDTO.Code_hpindicjudged == HpIndicationRuleEnum.NO_CONTROL && bdhpDTO.Sd_hpsrvtp == BdPpDictCodeConst.SD_HP_BJ_THREE)
                        {
                            return(true);
                        }
                        if (bdhpDTO != null && bdhpDTO.Code_hpindicjudged == HpIndicationRuleEnum.SYS_CONFIRM && bdhpDTO.Fg_indic == FBoolean.False)
                        {
                            return(true);
                        }
                    }
                }
            }
            return(false);
        }
Exemple #7
0
 public virtual void SetViewModel(BaseEmsViewModel m)
 {
     this.model = m;
 }
 public PKUPathgySrvTableView(BaseEmsViewModel model)
     : base(model)
 {
 }