2019-03-11

111
111
111
111

1

2

3





2019-03-11_第1张图片
大熊猫

2019-03-11_第2张图片
jt.png

百度

  • 1
    • 1
      • 1
      • 1
    • 1
  • 1
  • 1
  • 1
姓名 技能 排行
刘备 大哥
关羽 二哥
张飞 三弟

·
string
·

     function fun(){    
     }
     fun();
     $("#id").text();
     $("#id").css("","");
     document.getElementById('id').innerHTML = “111”;
    
        [HttpPost]
        public ActionResult GetTCMReport(string user_times)
        {
            int user_time = 0;
            int.TryParse(user_times, out user_time);
            DataTable dtResult = new DataTable();
            dtResult.Columns.Add("score", typeof(string));
            dtResult.Columns.Add("caName", typeof(string));
            dtResult.Columns.Add("factor", typeof(string));
            dtResult.Columns.Add("feature", typeof(string));
            dtResult.Columns.Add("improve", typeof(string));
            dtResult.Columns.Add("DietRows", typeof(string));
            DataRow dr = dtResult.NewRow();
            TouchHandler touchHandler = new TouchHandler();
            DataSet ds = touchHandler.GetReportData(user_time, "16");
            if (WellCareShare.DataSetIsNotEmpty(ds))
            {
                DataTable dtConstitutionimage = ds.Tables["TcmConstitutionimage"];
                DataTable dtTcmConstitutionresult = ds.Tables["TcmConstitutionresult"];
                DataTable dtDietGudance = ds.Tables["DietGudance"];
                string caName = "";
                string score = "";
                foreach (DataRow row in dtConstitutionimage.Rows)
                {
                    caName = caName + row["type"].ToString() + ",";
                    if (isTcmtrue(row))
                        score = score + (Convert.ToInt32(row["score1"]) + Convert.ToInt32(row["score2"]) + Convert.ToInt32(row["score3"])).ToString() + ",";
                    else
                    {
                        if (row["score1"] != null && !string.IsNullOrEmpty(row["score1"].ToString()))
                            score = score + row["score1"].ToString() + ",";
                        if (row["score2"] != null && !string.IsNullOrEmpty(row["score2"].ToString()))
                            score = score + row["score2"].ToString() + ",";
                        if (row["score3"] != null && !string.IsNullOrEmpty(row["score3"].ToString()))
                            score = score + row["score3"].ToString() + ",";
                    }
                }
                Dictionary dicdiet = new Dictionary();
                DataTable dt = new DataTable();
                dt.Columns.Add("imgUrl", typeof(string));
                dt.Columns.Add("dic_name", typeof(string));
                dt.Columns.Add("dic_explain", typeof(string));
                foreach (DataRow row in dtDietGudance.Rows)
                {
                    dicdiet.Add(row["dic_name"].ToString(), (byte[])row["sourceimg"]);
                    DataRow rowNew = dt.NewRow();
                    rowNew["imgUrl"] = "/App/Image/" + row["dic_name"].ToString() + "_" + user_times;
                    rowNew["dic_name"] = row["dic_name"];
                    rowNew["dic_explain"] = row["dic_explain"].ToString().Replace("。", "。
"); dt.Rows.Add(rowNew); } Session["dtDietGudance"] = dicdiet; dr["DietRows"] = WS.DataTable2Json(dt) == "]" ? "" : WS.DataTable2Json(dt); if (!string.IsNullOrEmpty(caName)) caName = caName.TrimEnd(','); if (!string.IsNullOrEmpty(score)) score = score.TrimEnd(','); dr["score"] = score; dr["caName"] = caName; dr["factor"] = dtTcmConstitutionresult.Rows[0]["factor"].ToString(); dr["feature"] = dtTcmConstitutionresult.Rows[0]["feature"].ToString().Replace("。", "。
"); dr["improve"] = dtTcmConstitutionresult.Rows[0]["improve"].ToString().Replace("。", "。
"); dtResult.Rows.Add(dr); } return Content(WS.DataTable2Json(dtResult)); }
st=>start: 开始
op=>operation: My Operation
cond=>condition: Yes or No?
e=>end
st->op->cond
cond(yes)->e
cond(no)->op
&```

你可能感兴趣的:(2019-03-11)