コード例 #1
0
ファイル: Common.svc.cs プロジェクト: paraneye/WebService
        public SigmaResultType ProgressStepCombo()
        {
            SigmaResultType result = new SigmaResultType();
            try
            {
                var queryStr = WebOperationContext.Current.IncomingRequest.UriTemplateMatch.QueryParameters;

                List<string> s_option = new List<string>();
                List<string> s_key = new List<string>();
                s_option.Add("@CwpId");
                s_option.Add("@TaskCategoryId");
                s_option.Add("@TaskTypeId");
                s_key.Add(queryStr["CwpId"]);
                s_key.Add(queryStr["TaskCategoryId"]);
                s_key.Add(queryStr["TaskTypeId"]);

                ComboBoxMgr comboBoxMgr = new ComboBoxMgr();
                result = comboBoxMgr.GetProgressStepCombo(s_option, s_key);
                return result;
            }
            catch (Exception ex)
            {
                // Log Exception
                ExceptionHelper.logException(ex);
                result.IsSuccessful = false;
                result.ErrorMessage = ex.Message;
                return result;
            }
        }