コード例 #1
0
        protected EmsRstDTO SaveRemote(Object uiModel)
        {
            ICiEmsMainService emsMainService = XapServiceMgr.find <ICiEmsMainService>();
            var emsSave = new EmsSaveDTO();

            emsSave.Document = new FArrayList();
            emsSave.Document.Add(uiModel);
            emsSave.EnContext = CiEnContextUtil.GetCiEnContext(
                this.GetEnt4BannerDTO(),
                EmsAppModeEnum.SVEMSAPPMODE,
                OrSourceFromEnum.IIHSRVREF,
                this.GetContext());
            emsSave.EmsDriver         = ((int)this.uiEmsDTO.EmsType).ToString();
            emsSave.OperateSourceFrom = IOprSourceFromConst.IOSF_EMS;
            return(emsMainService.save(emsSave));
        }
コード例 #2
0
ファイル: EmsConsViewModel.cs プロジェクト: fhis/order.client
        /// <summary>
        /// 新会诊远程保存逻辑调用
        /// </summary>
        /// <returns></returns>
        public CiOrderDO New_Save()
        {
            ICiEmsMainService emsMainService = XapServiceMgr.find <ICiEmsMainService>();

            if (null != emsMainService)
            {
                var emsSave = new EmsSaveDTO();
                this.uiEmsDTO.Emsapcons.Id_srvof = emsMgrDTO.Id_ems;

                emsSave.Document = new FArrayList();
                emsSave.Document.Add(this.uiEmsDTO.Emsapcons);
                emsSave.EnContext = CiEnContextUtil.GetCiEnContext(this.GetEnt4BannerDTO(), EmsAppModeEnum.SVEMSAPPMODE, OrSourceFromEnum.IIHSRVREF, this.GetContext());
                emsSave.EmsDriver = ((int)this.uiEmsDTO.EmsType).ToString();
                EmsRstDTO rst = emsMainService.save(emsSave);
                if (rst != null)
                {
                    return((rst.Document[0] as CiorderAggDO).getParentDO());
                }
            }

            return(null);
        }