예제 #1
0
        public ActionResult HospitalDetailById(int id)
        {
            var token = Session["token"] == null ? "XXXXXXX" : Session["token"].ToString();
            HospitalDetailResponse hdr = new HospitalDetailResponse();

            try
            {
                hdr = hospitalRequest.Detail(token, id);
                ViewBag.HospitalDetailById = hdr;
            }
            catch (Exception ex)
            {
                AppLog.Instance.Write("HospitalDetailById", AppLog.LogMessageType.Error, ex);
            }

            hdr = hospitalRequest.Detail(token, id);
            ViewBag.HospitalDetailById = hdr;
            return(View(hdr));
        }
예제 #2
0
        /// <summary>
        /// 10、	医院详情
        /// </summary>
        /// <param name="token">token</param>
        /// <param name="id">指标id</param>
        /// <returns></returns>
        /// Jack Ding
        public HospitalDetailResponse Detail(string token, int id)
        {
            string strResponse = string.Empty;
            HospitalDetailResponse response = new HospitalDetailResponse();

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

                sPara.Add("id", id.ToString());
                strResponse = F8YLSubmit.BuildGetRequest(sPara, "hospital/detail?token=" + token);

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

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