示例#1
0
 public void RefreshData(BaseEmsViewModel model)
 {
     this.SetViewModel(model);
     if (emsItemInPathgyView != null)
     {
         emsItemInPathgyView.RefreshData(model.GetFormDataSource() as EmsPathgyItemDO);
     }
     this.LoadData();
 }
示例#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);
        }
示例#3
0
        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);
        }
示例#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);
        }
示例#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);
        }
示例#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);
        }
示例#7
0
 public virtual void SetViewModel(BaseEmsViewModel m)
 {
     this.model = m;
 }
 public PKUPathgySrvTableView(BaseEmsViewModel model)
     : base(model)
 {
 }