示例#1
0
        public OrderItemViewModel(Ent4BannerDTO ent4BannerDto, BaseContext context, bool isOutPress = false)
        {
            this.id_en     = ent4BannerDto.Id_ent;
            this.code_entp = ent4BannerDto.Code_entp;
            this.context   = context;

            if (isOutPress)
            {//出院带药
                emsAppModeEnum = EmsAppModeEnum.OUTHEMSAPPMODE;
            }
            else if (EnDictCodeConst.SD_ENTP_INPATIENT == this.code_entp)//住院
            {
                emsAppModeEnum = EmsAppModeEnum.IVEMSAPPMODE;
            }
            else
            {//门诊或其他
                emsAppModeEnum = EmsAppModeEnum.SVEMSAPPMODE;
            }

            this.udidocService                = XapServiceMgr.find <IUdidocCrudService>();
            this.orderItemMService            = XapServiceMgr.find <ICiorderMDOCrudService>();
            this.maintainService              = XapServiceMgr.find <ICiOrdMaintainService>();
            this.entdiCrudService             = XapServiceMgr.find <IEntdiCrudService>();
            this.diagservice                  = XapServiceMgr.find <ICidiagCrudService>();
            this.qryService                   = XapServiceMgr.find <ICiorderCrudService>();
            this.bsservice                    = XapServiceMgr.find <IBsQueryService>();
            this.ciOrderQryService            = XapServiceMgr.find <ICiOrdQryService>();
            this.bdHpUnlimitDrugDoCrudService = XapServiceMgr.find <IBdHpUnlimitDrugDOCrudService>();

            OrderSequenceModel = this.ciOrderQryService.getOrderSequenceMode();
        }
示例#2
0
        public override void OnSetData(Dictionary <string, object> datadict)
        {
            if (datadict != null && datadict.Count > 0)
            {
                string id_ent = datadict["id_ent"] as string;
                string id_pat = datadict["id_pat"] as string;
                if (id_ent != null && id_pat != null)
                {
                    qryService = XapServiceMgr.find <ICiOrdQryService>();
                    string[] amt = this.qryService.getBlcgAmtVsDrugRation(id_pat, id_ent, "01");

                    if (amt != null && amt.Length > 0)
                    {
                        this.BalanceValue(amt[0], false);
                        this.ExpendAmountValue(amt[1]);
                        this.DrugProportionValue(amt[2]);
                    }
                    else
                    {
                        this.BalanceValue("1000", false);
                        this.ExpendAmountValue("100");
                        this.DrugProportionValue("10%");
                    }
                }
            }
        }
示例#3
0
        public prescriptionListViewModel(string id_tpl)
        {
            this.qryService = XapServiceMgr.find <ICiOrdQryService>();
            //SrvortplitemAggDO[] agg = this.qryService.getSrvortplitemAggDOS(id_tpl);
            //if (agg != null && agg.Length>0)
            //{
            //    this.SrvortplitemAggDOList = new XapAggDO<SrvortplitemAggDO>(this.qryService, agg[0]);
            //}


            OrderTemplateDTO orderTemplateDto = this.qryService.getSrvortplitemAggDOS(id_tpl);
            FMap             fmap             = orderTemplateDto.Srvortplitemaggdo;
            FArrayList       srvagg           = fmap["SrvortplitemAggDO"] as FArrayList;
            FMap             freqmap          = orderTemplateDto.Freqdefdo;
            FArrayList       freqList         = freqmap["FreqDefDO"] as FArrayList;


            FMap       measMap  = orderTemplateDto.Measdocdo;
            FArrayList measList = measMap["MeasDocDO"] as FArrayList;

            if (srvagg != null)
            {
                SrvortplitemAggDOList = new XapAggDO <SrvortplitemAggDO>(this.qryService, (SrvortplitemAggDO)srvagg[0]);
                SrvortplitemAggDOList.AggDO.setFreqdefdo(freqList);
                SrvortplitemAggDOList.AggDO.setmeasList(measList);
            }
        }
示例#4
0
 public OrdFeeBillViewModel()
 {
     iCiorderMDOCrudService = XapServiceMgr.find <ICiorderMDOCrudService>();
     iCiOrdQryService       = XapServiceMgr.find <ICiOrdQryService>();
     iCiOrdMaintainService  = XapServiceMgr.find <ICiOrdMaintainService>();
     iCiFeeListMainService  = XapServiceMgr.find <ICiFeeListMainService>();
 }
示例#5
0
        /// <summary>
        /// 查询医保规则
        /// </summary>
        /// <param name="id_srv"></param>
        /// <param name="id_mm"></param>
        /// <param name="patinfo"></param>
        /// <returns></returns>
        public BdHpIndicationDTO[] getBdHpIndicationDTO(string[] id_srvs, string[] id_mms, Ent4BannerDTO patinfo)
        {
            if (id_srvs == null || patinfo == null || string.IsNullOrEmpty(patinfo.Id_hp) || true != patinfo.Fg_hpfundpay)
            {
                return(null);
            }
            CiEnContextDTO   contextdto = CiEnContextUtil.GetCiEnContext(patinfo);
            ICiOrdQryService service    = XapServiceMgr.find <ICiOrdQryService>();

            BdHpIndicDTO[] bdhpindic = service.getBdHpIndicationDTOs(id_srvs, id_mms, contextdto);
            if (bdhpindic != null)
            {
                BdHpIndicationDTO[] bdHpIndications = new BdHpIndicationDTO[bdhpindic.Length];
                for (int i = 0; i < bdhpindic.Length; i++)
                {
                    BdHpIndicationDTO bdHpIndication = new BdHpIndicationDTO();
                    LogicEx.GetInstance().CopyTo(bdhpindic[i], bdHpIndication);
                    bdHpIndications[i] = bdHpIndication;
                }
                return(bdHpIndications);
            }
            else
            {
                return(null);
            }
        }
        public OrderTemplateListViewModel(string id_srvtpl)
        {
            this.qryService = XapServiceMgr.find <ICiOrdQryService>();
            OrderTemplateDTO orderTemplateDto = this.qryService.getSrvortplitemAggDOS(id_srvtpl);
            FMap             aggMap           = orderTemplateDto.Srvortplitemaggdo;
            FArrayList       srvagg           = aggMap["SrvortplitemAggDO"] as FArrayList;

            FMap       freqmap  = orderTemplateDto.Freqdefdo;
            FArrayList freqList = freqmap["FreqDefDO"] as FArrayList;


            FMap       measMap  = orderTemplateDto.Measdocdo;
            FArrayList measList = measMap["MeasDocDO"] as FArrayList;

            XapDataList <SrvortplitemAggDO> xaplist = new XapDataList <SrvortplitemAggDO>();

            if (srvagg != null)
            {
                foreach (SrvortplitemAggDO agg in srvagg)
                {
                    agg.setFreqdefdo(freqList);
                    agg.setmeasList(measList);
                    xaplist.Add(agg);
                }
            }
            SrvortplitemAggDOList = xaplist;
        }
示例#7
0
 public GetSrvSetImp()
 {
     service       = XapServiceMgr.find <IMaterialService>();
     serviceQry    = XapServiceMgr.find <ICiOrdQryService>();
     serviceSet    = XapServiceMgr.find <IMedSrvSetItemDOCrudService>();
     medsrvService = XapServiceMgr.find <IMedsrvCrudService>();
 }
示例#8
0
        public OrderTemplateTreeViewModel(string tpltypeCode, string code_entp)
        {
            this.qryService = XapServiceMgr.find <ICiOrdQryService>();
            Emp2Dep2GroupDTO edg = new Emp2Dep2GroupDTO();

            edg.Id_dep    = UserManager.getInstance().CurrentDept.Id_dep;
            edg.Name_dep  = UserManager.getInstance().CurrentDept.Name;
            edg.Id_emp    = UserManager.getInstance().CurrentPsnInfo.Id_psndoc;
            edg.Name_emp  = UserManager.getInstance().CurrentPsnInfo.Name;
            edg.Id_org    = UserManager.getInstance().CurrentOrg.Id_org;
            edg.Name_org  = UserManager.getInstance().CurrentOrg.Name;
            edg.Code_entp = code_entp;
            UdidocDO udidocDo = UdiDocCache.GetInstance()
                                .GetUdidoc(BdSrvDictCodeTypeConst.SD_ORTPLTP, tpltypeCode);

            if (udidocDo != null)
            {
                this.OrderTplTreeList = this.qryService.getOrderTplTreeDto(udidocDo.Id_udidoc, edg);
            }

            KeyNodeDataAdapterFactory <OrderTplTreeDto> moduleAdapter = new KeyNodeDataAdapterFactory <OrderTplTreeDto>("Id", "Parent");

            moduleAdapter.CustomCaptionFunc = (dataobj => dataobj.Nm);

            this.TreeModel        = new TreeKeyModel <OrderTplTreeDto>(moduleAdapter);
            this.TreeModel.Loader = new OTreeKeyLoader();
            this.TreeModel.AddRange(this.OrderTplTreeList);
        }
示例#9
0
        //CiPresDO ciPresDO;
        public OrderPresViewModel(string id_en)
        {
            service         = XapServiceMgr.find <IPresCrudService>();
            orderQryservice = XapServiceMgr.find <ICiOrdQryService>();

            this.init(id_en);
        }
 public commonOrderListViewModel(String id_regularorca)
 {
     this.qryService    = XapServiceMgr.find <ICiOrdQryService>();
     this.ordQryService = XapServiceMgr.find <ICiOrdQryService>();
     // this.regularOrRelSrvDO = this.qryService.getOrTplNItmDO(id_regularorca);
     this.newOrderTemplate = this.ordQryService.getNewOrderTemplateDTO(id_regularorca);
 }
示例#11
0
 public OrderCardViewModel()
 {
     this.crudService          = XapServiceMgr.find <ICiOrdCrudService>();
     this.qryService           = XapServiceMgr.find <ICiOrdQryService>();
     this.medsrvMdoCrudService = XapServiceMgr.find <IMedsrvMDOCrudService>();
     mdService = XapServiceMgr.find <ICiorderMDOCrudService>();
 }
示例#12
0
        /// <summary>
        /// 服务不可开立判断
        /// </summary>
        /// <param name="idsrvs"></param>
        /// <returns></returns>
        public static Dictionary <string, string> OrdEnabelValivate(String[] idsrvs, String code_entp)
        {
            Dictionary <string, string> dic = new Dictionary <string, string>();

            if (idsrvs != null && idsrvs.Length > 0)
            {
                List <OrdSrvChangedInfoDTO> lstDOs = new List <OrdSrvChangedInfoDTO>();
                foreach (var idsrv in idsrvs)
                {
                    lstDOs.Add(new OrdSrvChangedInfoDTO()
                    {
                        Id_srv = idsrv
                    });
                }

                ICiOrdQryService ciOrdQryService = XapServiceMgr.find <ICiOrdQryService>();
                FMap2            map             = ciOrdQryService.JudgeOrdChangedSrv(lstDOs.ToArray(), code_entp);
                if (map != null)
                {
                    foreach (var key in map.Keys)
                    {
                        dic.Add(key, map[key].ToString());
                    }
                }
            }

            return(dic);
        }
示例#13
0
        private string getDiInfo(string id_ent)
        {
            string           str             = "";
            ICiOrdQryService ciOrdQryService = XapServiceMgr.find <ICiOrdQryService>();

            EntDiDO[] entDiDOs = ciOrdQryService.getEntDiDOList(id_ent);
            if (entDiDOs != null && entDiDOs.Length > 0)
            {
                int i = 1;
                foreach (EntDiDO item in entDiDOs)
                {
                    str += i + "." + item.Name_didef_dis;
                    if (item.Fg_suspdi != null && item.Fg_suspdi.Value)
                    {
                        str += "?";
                    }
                    if (item.Supplement != null && item.Supplement.Length > 0)
                    {
                        str += "——" + item.Supplement;
                    }
                    str += ";";
                    i++;
                }
                str = str.Substring(0, str.LastIndexOf(';'));
            }

            return(str);
        }
        public OPProofOfDiagnosisViewModel(String id_ent)
        {
            service         = XapServiceMgr.find <IEntdiproveCrudService>();
            ciOrdQryService = XapServiceMgr.find <ICiOrdQryService>();

            LoadData(id_ent);
        }
示例#15
0
 public GetPatDiagImp()
 {
     service = XapServiceMgr.find <ICidiagCrudService>();
     this.srvRisDoCrudService = XapServiceMgr.find <IMedSrvRisDOCrudService>();
     this.udidocCrudService   = XapServiceMgr.find <IUdidocCrudService>();
     this.ciOrdQryService     = XapServiceMgr.find <ICiOrdQryService>();
     this.diagQryService      = XapServiceMgr.find <ICidiagQryService>();
 }
示例#16
0
 public EmrEditorViewModel()
 {
     qryservice             = XapServiceMgr.find <ICiOrdQryService>();
     ipativisitCrudService  = XapServiceMgr.find <IPativisitCrudService>();
     iCiemrCrudService      = XapServiceMgr.find <ICiemrCrudService>();
     iCiorderMDOCrudService = XapServiceMgr.find <ICiorderMDOCrudService>();
     iCidiagCrudService     = XapServiceMgr.find <ICidiagCrudService>();
 }
示例#17
0
 public DiagtreatCardViewModel()
 {
     qryService   = XapServiceMgr.find <ICiOrdQryService>();
     enQryService = XapServiceMgr.find <IEnOutQryService>();
     //CacheUtils = new CacheUtils();
     KeyPointCacheUtils = new KeyPointCacheDataUtils();
     NewCacheUtils      = new NewCacheDataUtils();
 }
示例#18
0
        public DiCertificateTreeViewModel()
        {
            service          = XapServiceMgr.find <IEntdiproveCrudService>();
            ciOrdQryService  = XapServiceMgr.find <ICiOrdQryService>();
            lstEntDiProveDOs = new XapDataList <EntDiProveDO>();

            getUdidocDOs();
        }
示例#19
0
 public OrderSaveViewModel()
 {
     service            = XapServiceMgr.find <ICiorderCrudService>();
     ciEventService     = XapServiceMgr.find <ICieventCrudService>();
     orsrvsetService    = XapServiceMgr.find <IOrdsrvsetCrudService>();
     ordMaintainService = XapServiceMgr.find <ICiOrdMaintainService>();
     qryService         = XapServiceMgr.find <ICiOrdQryService>();
 }
示例#20
0
 public OrdApBuCardViewModel()
 {
     qryservice         = XapServiceMgr.find <ICiOrdQryService>();
     ordMaintainService = XapServiceMgr.find <ICiOrdMaintainService>();
     medservice         = XapServiceMgr.find <IMedusageCrudService>();
     usService          = XapServiceMgr.find <IUdidocServiceExt>();
     btservice          = XapServiceMgr.find <ICiorappbtMDOCrudService>();
 }
示例#21
0
 public override void Init()
 {
     btService  = XapServiceMgr.find <ICiorappbtMDOCrudService>();
     orService  = XapServiceMgr.find <ICiorderCrudService>();
     qryservice = XapServiceMgr.find <ICiOrdQryService>();
     base.Init();
     uiEmsDTO.EmsType = EmsType.BT;
 }
示例#22
0
        public CiOrderDO[] opsignords;//门诊已签署的医嘱(处置刷新到病历用)


        public CiOrdViewModel(Ent4BannerDTO bannerDTO, BaseContext context)
        {
            this.bannerDTO    = bannerDTO;
            this.context      = context;
            ciOrdQryService   = XapServiceMgr.find <ICiOrdQryService>();
            orderItemMService = XapServiceMgr.find <ICiorderMDOCrudService>();
            //获取医嘱列表排序字段
            orderStr = ciOrdQryService.getOrderSequenceMode();
        }
 public OrderConfirmCardViewModel()
 {
     orConfirm         = new OrConfirm();
     orConfirm.Fg_sign = FBoolean.False;
     orConfirm.Fg_canc = FBoolean.False;
     orConfirm.Fg_stop = FBoolean.False;
     qryservice        = XapServiceMgr.find <ICiOrdQryService>();
     usService         = XapServiceMgr.find <IUdidocServiceExt>();
 }
示例#24
0
 //private DateTime nowtime;
 //**************************************************构造函数*************************************************************
 public OrderConfirmViewModel(string idorg, XapFormControl xapFormControl)
 {
     ordService          = XapServiceMgr.find <ICiorderMDOCrudService>();
     maintainService     = XapServiceMgr.find <ICiOrdMaintainService>();
     qryservice          = XapServiceMgr.find <ICiOrdQryService>();
     OrderList           = new XapDataList <OrConfirm>();
     this.xapFormControl = xapFormControl;
     //   num = qryservice.getIntSystemParam(idorg, ICiOrdNSysParamConst.SYS_PARAM_OrStopChkMaxLeadTime);
 }
示例#25
0
 public IpOverViewModel()
 {
     ciOrderService = XapServiceMgr.find <ICiorderMDOCrudService>();
     qryService     = XapServiceMgr.find <ICiOrdQryService>();
     obsService     = XapServiceMgr.find <ICirptobsCrudService>();
     labItemService = XapServiceMgr.find <ICiRptLabItmDOCrudService>();
     this.ImatchscopeCrudService = XapServiceMgr.find <IMatchscopeCrudService>();
     this.portalletCrudService   = XapServiceMgr.find <IPortalletCrudService>();
 }
示例#26
0
 //**************************************************构造函数*************************************************************
 public OrderConfirmViewModel(string idorg)
 {
     ordService      = XapServiceMgr.find <ICiorderMDOCrudService>();
     maintainService = XapServiceMgr.find <ICiOrdMaintainService>();
     freqservice     = XapServiceMgr.find <IFreqdefMDOCrudService>();
     qryservice      = XapServiceMgr.find <ICiOrdQryService>();
     OrderList       = new XapDataList <OrConfirm>();
     AddFeeDTOList   = new XapDataList <AddFeeDTO>();
     num             = qryservice.getIntSystemParam(idorg, ICiOrdNSysParamConst.SYS_PARAM_OrStopChkMaxLeadTime);
 }
示例#27
0
        public OrderSrvListViewModel(string strWhere)
        {
            service       = XapServiceMgr.find <IMedsrvMDOCrudService>();
            udidocService = XapServiceMgr.find <IUdidocCrudService>();
            serviceMm     = XapServiceMgr.find <IOrdsrvmmCrudService>();

            qryService = XapServiceMgr.find <ICiOrdQryService>();

            this.GetSrvtp();
        }
示例#28
0
        //private MedSrvDO medsrv;
        #endregion

        #region 构造方法
        public ExpenseModel(XapDataList <EmsOrDrug> ds)
        {
            this.ciOrdQryService = XapServiceMgr.find <ICiOrdQryService>();

            tableDataSource = ds;
            if (tableDataSource == null)
            {
                this.tableDataSource = new XapDataList <EmsOrDrug>();
            }
        }
示例#29
0
 //**************************************************构造函数*************************************************************
 public OrderConfirmFeeViewModel(OrConfirm orfirm, XapFormControl xapFormControl)
 {
     this.xapFormControl = xapFormControl;
     maintainService     = XapServiceMgr.find <ICiOrdMaintainService>();
     freqservice         = XapServiceMgr.find <IFreqdefMDOCrudService>();
     qryservice          = XapServiceMgr.find <ICiOrdQryService>();
     ordservice          = XapServiceMgr.find <ICiorderMDOCrudService>();
     AddFeeDTOList       = new XapDataList <AddFeeDTO>();
     GetFeeList(orfirm);
 }
示例#30
0
 public ConsGridViewModel(string str)
 {
     serviceCons       = XapServiceMgr.find <ICiOrdQryService>();
     psndocCrudService = XapServiceMgr.find <IPsndocCrudService>();
     consAggService    = XapServiceMgr.find <ICiorappconsultCrudService>();
     //this.consDoService = XapServiceMgr.find<ICiorappconsultMDOCrudService>();
     saveService = XapServiceMgr.find <ICiOrdMaintainService>();
     OrdConsDTO[] cons = serviceCons.GetConsList(UserManager.getInstance().CurrentDept.Id_dep, str);
     consList = new XapDataList <OrdConsDTO>(serviceCons, setValue(cons));
 }