Exemplo n.º 1
0
        //done
        //根据医疗流水号找到相关医生的id和name,返回一个arraylist{doc_id,doc_name}
        public HttpResponseMessage GetDoctorIdName(string treatment_id)
        {
            HttpResponseMessage response = new HttpResponseMessage();

            ArrayList doctorIdName = PatientHelper.GetDoctorIdName(treatment_id);

            if (doctorIdName == null)
            {
                response.Content    = new StringContent("查询医生未找到");
                response.StatusCode = HttpStatusCode.NotFound;
            }
            else
            {
                response.Content    = new StringContent(JsonObjectConverter.ObjectToJson(doctorIdName));
                response.StatusCode = HttpStatusCode.OK;
            }

            return(response);
        }