Пример #1
0
        /// <summary>
        /// 14、	指标详细设置与获取
        /// </summary>
        /// <param name="token">token</param>
        /// <param name="id">指标id</param>
        /// <returns></returns>
        /// Jerry Shi
        public TermDetailResponse TermDetail(string token, string id)
        {
            try
            {
                string                      ApiResponse        = string.Empty;
                TermDetailResponse          termDetailResponse = new TermDetailResponse();
                Dictionary <string, string> sPara = new Dictionary <string, string>();

                sPara.Add("id", id);

                ApiResponse        = F8YLSubmit.BuildGetRequest(sPara, "term/detail?token=" + token);
                termDetailResponse = JsonHelper.DeserializeJsonToObject <TermDetailResponse>(ApiResponse);

                return(termDetailResponse);
            }
            catch (Exception)
            {
                throw;
            }
        }
Пример #2
0
        /// <summary>
        /// 13、	删除指标
        /// </summary>
        /// <param name="id">要删除的指标id</param>
        /// <returns></returns>
        /// Jack Ding
        public TermDropResponse Drop(int id)
        {
            string           strResponse = string.Empty;
            TermDropResponse response    = new TermDropResponse();

            try
            {
                Dictionary <string, string> sPara = new Dictionary <string, string>();

                sPara.Add("id", id.ToString());

                strResponse = F8YLSubmit.BuildRequest(sPara, "term/drop");

                response = JsonHelper.DeserializeJsonToObject <TermDropResponse>(strResponse);

                return(response);
            }
            catch
            {
                throw;
            }
        }
Пример #3
0
        /// <summary>
        /// 12、	指标列表
        /// </summary>
        /// <param name="hospitalid">医院id</param>
        /// <param name="page">分页id</param>
        /// <param name="name">指标名称(糊糊)</param>
        /// <param name="token"></param>
        /// <returns></returns>
        /// Jack Ding
        public TermListResponse List(int hospitalid, int page, string name, string token)
        {
            string           strResponse = string.Empty;
            TermListResponse response    = new TermListResponse();

            try
            {
                Dictionary <string, string> sPara = new Dictionary <string, string>();

                sPara.Add("hospitalid", hospitalid.ToString());
                sPara.Add("page", page.ToString());
                sPara.Add("name", name);
                strResponse = F8YLSubmit.BuildGetRequest(sPara, "term/list?token=" + token);

                response = JsonHelper.DeserializeJsonToObject <TermListResponse>(strResponse);

                return(response);
            }
            catch
            {
                throw;
            }
        }