コード例 #1
0
        public object TemperatureChartEdit()
        {
            var draw = HttpContext.Current.Request.Form["draw"];

            var patientid = HttpContext.Current.Request.Form["patientid"];
            var edittime  = HttpContext.Current.Request.Form["edittime"];
            NURSE_THERMOMETERService service = new NURSE_THERMOMETERService();
            var tempdata = service.SearchByPtIdAndEdTime(patientid, edittime);
            // return new ResultObject(false, null);
            List <string[]> arrs = new List <string[]>();

            foreach (DataRow row in tempdata.Tables["thermometer_record"].Rows)
            {
                arrs.Add(new string[] {
                    row["MEASUREMENT_TIME"].ToString(),
                    row["TEMPERATURE"].ToString(),
                    row["PULSE"].ToString(),
                    row["BREATHING"].ToString(),
                    row["BLOOD_PRESSURE_1"].ToString() + "/" + row["BLOOD_PRESSURE_2"].ToString(),
                    row["OXYGEN_SATURATION"].ToString(),
                    row["TYPE_MEASUREMENT"].ToString(),
                    row["SUPPLEMENTARY_DESCRIPTION"].ToString(),
                    string.Format("<a href='javascript:TemperatureRecord(\"{0}\");'>{1}</a><a href='javascript:DeleteRecord(\"{0}\");'>{2}</a><a href='#tab3' data-toggle='tab' id='nav3'>{3}</a>"
                                  , row["ID"].ToString(), "编辑", "删除", "导入")
                });
            }
            long count = 0;

            return(Json(new TableObject(arrs, int.Parse(draw), count, count)));
        }
コード例 #2
0
 public object TemperatureDataByPtIdAndEdTime(string patientid, string edtime)
 {
     try
     {
         NURSE_THERMOMETERService service = new NURSE_THERMOMETERService();
         var tempdata = service.SearchByPtIdAndEdTime(patientid, edtime);
         return(new ResultObject(true, tempdata.Tables[0]));
     }
     catch (Exception ex)
     {
         return(new ResultObject(false, null));
     }
 }