Ejemplo n.º 1
0
        public SearchInfoInitViewModel SearchInfoInit()
        {
            #region 參數宣告

            SearchInfoInitViewModel searchInfoInit      = new SearchInfoInitViewModel();
            IActorSettingService    actorSettingService = new ActorSettingService();

            #endregion

            #region 流程

            //檢查是否驗證通過
            if (!_authState.IsAuth)
            {
                throw new Exception(_authState.AuthDescription);
            }

            try
            {
                //取得SearchInfoInit
                searchInfoInit = actorSettingService.QuerySearchInfoInit();
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(searchInfoInit);

            #endregion
        }
Ejemplo n.º 2
0
        public SearchInfoInitViewModel SearchInfoInit()
        {
            #region 參數宣告

            SearchInfoInitViewModel        searchInfoInit = new SearchInfoInitViewModel();
            IDeviceSellPriceHistoryService deviceSellPriceHistoryService = new DeviceSellPriceHistoryService();
            IAuthorityService authorityService = new AuthorityService();

            #endregion

            #region 流程

            //檢查是否驗證通過
            if (!_authState.IsAuth)
            {
                throw new Exception(_authState.AuthDescription);
            }

            try
            {
                //取得SearchInfoInit
                searchInfoInit = deviceSellPriceHistoryService.QuerySearchInfoInit();
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(searchInfoInit);

            #endregion
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 初始化搜尋列表(下拉選單)
        /// </summary>
        /// <returns></returns>
        public SearchInfoInitViewModel QuerySearchInfoInit()
        {
            #region 參數宣告
            SearchInfoInitViewModel searchInfoInit = new SearchInfoInitViewModel();
            #endregion

            #region 流程

            return(searchInfoInit);

            #endregion
        }