Example #1
0
        public void loadData(DataRow dr)
        {
            this.ShowWaitingPanel(() =>
            {
                userid = dr["user_id"].ToString();

                userTime       = dr["user_times"].ToString();
                string xmlData = TmoServiceClient.InvokeServerMethodT <string>(funCode.GetAttach, new object[] { userid, userTime, "old" });
                if (xmlData != "")
                {
                    DataTable dt = TmoShare.getDataTableFromXML(xmlData);
                    if (dt != null && dt.Rows.Count > 0)
                    {
                        return(dt);
                    }
                    return(null);
                }

                return(null);
            }, x =>
            {
                if (x == null)
                {
                    return;
                }
                DataTable dt   = x as DataTable;
                DataRow drData = dt.Rows[0];
                htmlE1.Html    = drData["content"].ToString();
            });
        }
Example #2
0
 /// <summary>
 /// 加载数据
 /// </summary>
 public void GetData()
 {
     this.ShowWaitingPanel(() =>
     {
         try
         {
             string strmlx = TmoServiceClient.InvokeServerMethodT <string>(funCode.GetMedicalInUser, new object[] { _user_id, _dc });
             DataTable dt  = TmoShare.getDataTableFromXML(strmlx);
             if (TmoShare.DataTableIsNotEmpty(dt))
             {
                 return(dt);
             }
             return(null);
         }
         catch
         { }
         return(null);
     }, x =>
     {
         try
         {
             DataTable dt = x as DataTable;
             SetPiont(dt);
         }
         catch (Exception ex)
         {
             LogHelper.Log.Error("实体加载数据出错", ex);
             DXMessageBox.ShowWarning2("数据加载失败!请重试!");
         }
     });
 }
Example #3
0
        /// <summary>
        /// 执行服务端远程接口方法
        /// </summary>
        /// <param name="ip">服务器ip地址</param>
        /// <param name="port">服务器Port</param>
        /// <param name="funCode">方法编号</param>
        /// <param name="funParams">方法参数</param>
        /// <returns></returns>
        public static T InvokeServerMethodT <T>(string ip, int port, funCode funCode, params object[] funParams)
        {
            T retT = default(T);

            try
            {
                string result = InvokeServerMethod(ip, port, funCode, funParams);
                if (result != null && result.StartsWith("err_"))
                {
                    throw new Exception(result);
                }
                if (typeof(T) == typeof(DataSet))
                {
                    if (!string.IsNullOrWhiteSpace(result))
                    {
                        result = JsonConvert.DeserializeObject <string>(result);
                        DataSet ds = TmoShare.getDataSetFromXML(result);
                        if (ds != null)
                        {
                            retT = (T)(object)ds;
                        }
                        else
                        {
                            throw new Exception("返回结果非DataSet格式:" + result);
                        }
                    }
                }
                else if (typeof(T) == typeof(DataTable))
                {
                    if (!string.IsNullOrWhiteSpace(result))
                    {
                        result = JsonConvert.DeserializeObject <string>(result);
                        DataTable dt = TmoShare.getDataTableFromXML(result);
                        if (dt != null)
                        {
                            retT = (T)(object)dt;
                        }
                        else
                        {
                            throw new Exception("返回结果非DataTable格式:" + result);
                        }
                    }
                }
                else
                {
                    retT = JsonConvert.DeserializeObject <T>(result);
                }
            }
            catch (Exception ex)
            {
                LogHelper.Log.Error("InvokeServerMethodT<T>错误 funCode:" + funCode, ex);
            }

            return(retT);
        }
Example #4
0
        public void RefData(string userId, string user_times, string queryids)
        {
            List <string> md5res    = new List <string>();
            string        resultxml = TmoLinkServer.TmoServiceClient.InvokeServerMethodT <string>(funCode.getFeiPang, new object[] { userId, user_times, queryids });
            DataTable     DsReslut  = TmoShare.getDataTableFromXML(resultxml);
            double        zongfen   = 0;
            string        jianyi    = "";
            string        yinsu     = "";
            //string jielun = "";
            int i = 0;
            int j = 0;

            foreach (DataRow row in DsReslut.Rows)
            {
                if (!string.IsNullOrEmpty(row["q_reault"].ToString()))
                {
                    i++;
                    jianyi = jianyi + i + "、" + row["q_reault"].ToString().Trim() + "\n\n";
                }
                if (!string.IsNullOrEmpty(row["q_resik"].ToString()))
                {
                    string val = TmoCommon.MD5Helper.Md5Encrypt(row["q_resik"].ToString());
                    if (md5res.Contains(val))
                    {
                    }
                    else
                    {
                        j++;
                        yinsu = yinsu + j + "、" + row["q_resik"] + ",";
                        md5res.Add(val);
                    }
                }
                //if (!string.IsNullOrEmpty(row["q_advice"].ToString()))
                //{ j++; jielun = jielun + j + "、" + row["q_advice"].ToString().Trim() + "\n\n"; }
            }
            if (!string.IsNullOrEmpty(yinsu))
            {
                yinsu = "现在的运动方式以及运动频率" + yinsu;
            }
            if (string.IsNullOrEmpty(jianyi))
            {
                jianyi = "运动量不足,造成能量蓄积,导致肥胖,影响供血供氧,建议进行运动前个性化评估制定合理运动计划。运动量过大,导致消瘦和各种意外损伤,建议进行运动前个性化评估制定合理运动计划";
            }
            jinyi.Text = jianyi.TrimStart();
            if (advicDs.Tables[0] != null)
            {
                if (advicDs.Tables[0].Rows.Count > 0)
                {
                    DataRow dar = advicDs.Tables[0].Rows[0];
                    this.zhuanjiajianyi.Text = dar["yundongJianyi"] == null ? "" : dar["yundongJianyi"].ToString();
                }
            }
            yundongyinsu.Text = yinsu.TrimEnd(',').TrimStart();;
        }
Example #5
0
        public void loadData(DataRow dr)
        {
            string user_name = dr.GetDataRowStringValue("name");

            this.lblName.Text = user_name;
            this.ShowWaitingPanel(() =>
            {
                userid         = dr["user_id"].ToString();
                userTime       = dr["user_times"].ToString();
                string xmlData = TmoServiceClient.InvokeServerMethodT <string>(funCode.GetAttach, new object[] { userid, userTime, "new" });
                return(xmlData);
            }, xml =>
            {
                string xmlData = xml?.ToString();
                if (!string.IsNullOrWhiteSpace(xmlData))
                {
                    DataTable dt = TmoShare.getDataTableFromXML(xmlData);
                    if (TmoShare.DataTableIsNotEmpty(dt))
                    {
                        DataRow drData = dt.Rows[0];
                        atId           = drData.GetDataRowStringValue("att_id");
                        if (!string.IsNullOrWhiteSpace(atId))
                        {
                            Up(); //判断是否是更新
                        }
                        var fileName = drData.GetDataRowStringValue("filename");
                        downBytes    = drData["content_bt"] as byte[];
                        if (string.IsNullOrEmpty(fileName) || downBytes == null || downBytes.Length == 0)
                        {
                            lblTips.Text = "当前文件已经失效,请重新上传!";
                        }
                        else
                        {
                            downExName    = fileName.Substring(fileName.IndexOf('.'));
                            Stream stream = new MemoryStream(downBytes);
                            LoadPdfOrWord(stream, downExName);
                            lblTips.Text = String.Empty;
                        }
                    }
                    else
                    {
                        lblTips.Text = "当前文件已经失效,请重新上传!";
                    }
                }
                else
                {
                    lblTips.Text = "还未上传检查报告单";
                }
            }, "文件下载中");
        }
Example #6
0
        void btnLogin_Click(object sender, EventArgs e)
        {
            if (!dxvalidation.Validate() || string.IsNullOrWhiteSpace(txtUid.Text))
            {
                DXMessageBox.Show("用户名和密码不能为空!", MessageIcon.Info, MessageButton.OK);
            }
            else
            {
                string uidmd5 = DESEncrypt.Encrypt(txtUid.Text);
                string pwdmd5 = DESEncrypt.Encrypt(txtPwd.Text);
                uidmd5 = StringPlus.CompressString(uidmd5);
                pwdmd5 = StringPlus.CompressString(pwdmd5);
                try
                {
                    this.loginPress.Show();
                    btnLogin.Enabled = btnCancel.Enabled = chkAutoLogin.Enabled = false;
                    this.CrossThreadCallsSync(x =>
                    {
                        this.loginPress.Hide();
                        btnLogin.Enabled = btnCancel.Enabled = chkAutoLogin.Enabled = true;
                        string rtCode    = x as string;
                        switch (rtCode)
                        {
                        case "err_uid":
                            DXMessageBox.ShowWarning("用户名不存在!");
                            txtUid.Focus();
                            break;

                        case "err_pwd":
                            DXMessageBox.ShowWarning("密码错误!");
                            txtPwd.Focus();
                            break;

                        default:
                            if (!string.IsNullOrWhiteSpace(rtCode) && rtCode.Length > 1)
                            {
                                #region 错误信息处理
                                if (rtCode.StartsWith("err_"))
                                {
                                    DXMessageBox.ShowError(rtCode.Substring(4));
                                    return;
                                }
                                #endregion

                                #region 本地记住用户名和密码
                                if (chkAutoLogin.Checked)
                                {
                                    ConfigHelper.UpdateConfig("u", uidmd5, true);
                                    ConfigHelper.UpdateConfig("p", pwdmd5, true);
                                }
                                #endregion

                                DataTable dt = TmoShare.getDataTableFromXML(StringPlus.DecompressString(rtCode));
                                DataRow dr   = dt.Rows[0];
                                //用户编号 用户姓名
                                Userinfo user = new Userinfo()
                                {
                                    user_id = dr.GetDataRowStringValue("user_id"), name = dr.GetDataRowStringValue("name")
                                };
                                TmoComm.login_userInfo = user;

                                DXMessageBox.Show(string.Format("用户【{0}】登录成功!", TmoComm.login_userInfo.name), true);

                                if (this.ParentForm != null)
                                {
                                    this.ParentForm.DialogResult = DialogResult.OK;
                                    this.ParentForm.Close();
                                }
                            }
                            else
                            {
                                TmoShare.WriteLog("登录失败", "未知错误:返回值->" + rtCode);
                                DXMessageBox.ShowError("未知错误!");
                            }
                            break;
                        }
                    }, () =>
                    {
                        try
                        {
                            WebServiceDLL.MonitorService service = new WebServiceDLL.MonitorService();
                            return(service.UserLogin(uidmd5, pwdmd5));
                        }
                        catch
                        { return("err_与服务器通信失败!请检查网络连接"); }
                    });
                }
                catch (Exception ex)
                {
                    TmoShare.WriteLog("登录失败", ex);
                    DXMessageBox.ShowError("与服务器通信失败!请检查网络连接");
                }
            }
        }
Example #7
0
        public void RefData(string userId, string user_times, string queryId)
        {
            List <string> md5res    = new List <string>();
            string        resultxml = TmoLinkServer.TmoServiceClient.InvokeServerMethodT <string>(funCode.getFeiPang, new object[] { userId, user_times, queryId });
            DataTable     DsReslut  = TmoShare.getDataTableFromXML(resultxml);
            double        zongfen   = 0;
            string        jianyi    = "";
            string        yinsu     = "";
            string        jielun    = "";
            int           i         = 0;
            int           j         = 0;
            int           g         = 0;
            float         bimva     = 0f;
            float         yao       = 0f;

            foreach (DataRow row in DsReslut.Rows)
            {
                string q_id = row["q_id"].ToString();

                if (q_id == "7B524F8B31AA4952B27E3119B69FBEB7")
                {
                    bimva                 = TmoShare.GetValueFromJson <float>(row["qr_result"].ToString());
                    zhishuValue.Text      = bimva.ToString();
                    zhishuValue.ForeColor = Color.Red;
                    string qrscore = row["qr_score"].ToString();
                    switch (qrscore)
                    {
                    case "0":
                        feifr.Text      = "正常";
                        ResultVale      = "正常";
                        feifr.ForeColor = Color.Black;
                        xp2.Visible     = true;
                        xp3.Visible     = false;
                        xp1.Visible     = false;
                        xp4.Visible     = false;
                        break;

                    case "1":
                        feifr.Text      = "体重过低";
                        ResultVale      = "体重过低";
                        feifr.ForeColor = Color.Red;
                        xp1.Visible     = true;
                        xp3.Visible     = false;
                        xp2.Visible     = false;
                        xp4.Visible     = false;
                        break;

                    case "2":
                        feifr.Text      = "超重";
                        ResultVale      = "超重";
                        feifr.ForeColor = Color.Red;
                        xp3.Visible     = true;
                        xp1.Visible     = false;
                        xp2.Visible     = false;
                        xp4.Visible     = false;
                        break;

                    case "4":
                        feifr.Text      = "肥胖";
                        ResultVale      = "肥胖";
                        feifr.ForeColor = Color.Red;
                        xp4.Visible     = true;
                        xp1.Visible     = false;
                        xp2.Visible     = false;
                        xp3.Visible     = false;
                        break;

                    default:
                        break;
                    }
                }
                if (q_id == "27BBE810676845939AFBE59A5B900822")
                {
                    yao                   = TmoShare.GetValueFromJson <float>(row["qr_result"].ToString());
                    yaoValue.Text         = yao + "厘米";
                    yaoValue.ForeColor    = Color.Red;
                    yaoweiValue.Text      = yao + "厘米";
                    yaoweiValue.ForeColor = Color.Red;
                    string qrscore = row["qr_score"].ToString();
                    switch (qrscore)
                    {
                    case "0":
                        yaofr.Text      = "正常";
                        yaoweiDe.Text   = "正常";
                        feifr.ForeColor = Color.Black;
                        wp1.Visible     = true;
                        wp2.Visible     = false;
                        break;

                    case "4":
                        yaofr.Text      = "腰围超大";
                        yaoweiDe.Text   = "中心型肥胖";
                        feifr.ForeColor = Color.Red;
                        wp2.Visible     = true;
                        wp1.Visible     = false;
                        break;

                    default:
                        break;
                    }
                }
                zongfen = zongfen + Convert.ToDouble(row["qr_score"]);
                if (!string.IsNullOrEmpty(row["q_reault"].ToString()))
                {
                    i++;
                    jianyi = jianyi + i + "、" + row["q_reault"].ToString().Trim() + " \n\n";
                }
                if (!string.IsNullOrEmpty(row["q_resik"].ToString()))
                {
                    string val = TmoCommon.MD5Helper.Md5Encrypt(row["q_resik"].ToString());
                    if (md5res.Contains(val))
                    {
                    }
                    else
                    {
                        yinsu = yinsu + row["q_resik"] + ",";
                        md5res.Add(val);
                    }
                }
                if (!string.IsNullOrEmpty(row["q_advice"].ToString()))
                {
                    j++; jielun = jielun + j + "、" + row["q_advice"].ToString().Trim() + "\n\n";
                }
            }



            this.feipangDre.Text = jianyi;
            JianYi          = jianyi;
            JieLun          = jielun;
            this.yinsu.Text = yinsu.TrimEnd(',').Replace("\n", "").Replace("\t", "");
        }
Example #8
0
        public void GetItemData(DataRow dr)
        {
            assessment_time.Visible = false;
            int    user_times = 0;
            string timesStr   = dr["user_times"] == null ? "" : dr["user_times"].ToString();

            int.TryParse(timesStr, out user_times);
            DataTable dt    = dr.Table.Clone();
            string    times = "";
            string    clum  = "";

            try
            {
                times = dr["assessment_time"].ToString();
                clum  = "assessment_time";
            }
            catch
            {
                try
                {
                    times = dr["input_time"].ToString();
                    clum  = "input_time";
                }
                catch (Exception)
                {
                    times = dr["questionnaire_time"].ToString();
                    clum  = "questionnaire_time";
                }
            }

            Dictionary <string, string> dics = new Dictionary <string, string>();
            string    userId  = dr["user_id"].ToString();
            string    strmlx  = TmoServiceClient.InvokeServerMethodT <string>(funCode.GetIds, new object[] { userId, "" });
            DataTable dtTable = TmoShare.getDataTableFromXML(strmlx);

            if (TmoShare.DataTableIsNotEmpty(dtTable))
            {
                foreach (DataRow row in dtTable.Rows)
                {
                    if (row["usertimes"] != null && !string.IsNullOrEmpty(row["usertimes"].ToString()))
                    {
                        dics.Add(row["usertimes"].ToString(), row["qc_ids"].ToString());
                    }
                }
            }

            for (int i = 1; i <= user_times; i++)
            {
                DataRow newDr = dt.NewRow();
                newDr["user_id"]    = userId;
                newDr["user_times"] = i.ToString();
                newDr["name"]       = dr["name"];
                newDr["gender"]     = dr["gender"];
                newDr["age"]        = dr["age"];
                newDr["address"]    = dr["address"];
                string key = i.ToString();
                newDr["qc_ids"]     = dics[key];
                newDr[clum]         = times;
                newDr["birth_date"] = dr["birth_date"];
                if (i == user_times)
                {
                    newDr["del"] = dr["del"];
                }
                else
                {
                    newDr["del"] = "---";
                }
                newDr["look_report"] = dr["look_report"];
                newDr["lookImg"]     = "浏览";
                newDr["lookold"]     = "浏览(旧)";
                //dt.Columns.Add("lookold", typeof(string));
                //dt.Columns.Add("lookImg", typeof(string));
                //foreach (DataRow row in dt.Rows)
                //{
                //    row["lookImg"] = "浏览病历";
                //    //  row["look_report"]
                //    row["lookold"] = "浏览之前上传病历";
                //}
                dt.Rows.Add(newDr);
            }


            dgcTree.DataSource = dt;
            if (gridView1.GroupCount > 0)
            {
                gridView1.ExpandAllGroups();
            }

            gridView1.MoveFirst();
            if (dt == null)
            {
                return;
            }
        }
        public static object addmedic(string xmldata)
        {
            DataTable dt = TmoShare.getDataTableFromXML(xmldata);

            return(tmo_medical_dictionaryManager.Instance.addmedic(dt));
        }
Example #10
0
        public void getData(string userId, string user_times, string mquesTypeId)
        {
            List <string> md5res    = new List <string>();
            string        resultxml = TmoLinkServer.TmoServiceClient.InvokeServerMethodT <string>(funCode.getTangniao, new object[] { userId, user_times, mquesTypeId });
            DataTable     DsReslut  = TmoShare.getDataTableFromXML(resultxml);
            double        zongfen   = 0;
            string        jianyi    = "";
            string        yinsu     = "";

            int i = 0;
            int j = 0;
            int g = 0;

            foreach (DataRow row in DsReslut.Rows)
            {
                zongfen = zongfen + Convert.ToDouble(row["qr_score"]);
            }
            string jielun = "根据您所填写的问卷调查内容,我们对您的疾病风险进行了评估,您现在处于糖尿病";

            if (zongfen >= 0 && zongfen <= 5)
            {
                ResultVale       = "低风险";
                lblfen.ForeColor = Color.Black;
                this.lblfen.Text = "低风险"; idsss.Add(1); idsss.Add(0); idsss.Add(0); idsss.Add(0);
            }
            if (zongfen >= 6 && zongfen <= 11)
            {
                ResultVale = "中风险"; this.lblfen.Text = "中风险"; idsss.Add(0); idsss.Add(2); idsss.Add(0); idsss.Add(0); lblfen.ForeColor = Color.Red;
            }
            if (zongfen >= 12 && zongfen <= 54)
            {
                ResultVale = "高风险"; this.lblfen.Text = "高风险"; idsss.Add(0); idsss.Add(0); idsss.Add(3); idsss.Add(0); lblfen.ForeColor = Color.Red;
            }
            if (zongfen >= 55)
            {
                ResultVale = "已患糖尿病"; this.lblfen.Text = "已患糖尿病"; idsss.Add(0); idsss.Add(0); idsss.Add(0); idsss.Add(4); lblfen.ForeColor = Color.Red;
            }
            jielun = jielun + this.lblfen.Text + "阶段,建议您,您存在的糖尿风险评估有:\n\n";
            foreach (DataRow row in DsReslut.Rows)
            {
                if (!string.IsNullOrEmpty(row["q_reault"].ToString()))
                {
                    i++;
                    jianyi = jianyi + i + "、" + row["q_reault"].ToString().Trim() + "\n\n";
                }
                if (!string.IsNullOrEmpty(row["q_resik"].ToString()))
                {
                    string val = TmoCommon.MD5Helper.Md5Encrypt(row["q_resik"].ToString());
                    if (md5res.Contains(val))
                    {
                    }
                    else
                    {
                        yinsu = yinsu + row["q_resik"] + ",";
                        md5res.Add(val);
                    }
                }
                if (!string.IsNullOrEmpty(row["q_advice"].ToString()))
                {
                    j++; jielun = jielun + j + "、" + row["q_advice"].ToString().Trim() + "\n\n";
                }
            }
            JianYi = jianyi;
            JieLun = jielun;
            this.lbljianyi.Text = jianyi;
            this.lblddd.Text    = yinsu.TrimEnd(',').TrimEnd(',');;
            lbldes.Text         = jielun;
        }
Example #11
0
        public void RefData(string userId, string user_times, string queryIds)
        {
            //
            List <string> md5res    = new List <string>();
            string        resultxml = TmoLinkServer.TmoServiceClient.InvokeServerMethodT <string>(funCode.getFeiPang, new object[] { userId, user_times, queryIds });
            DataTable     DsReslut  = TmoShare.getDataTableFromXML(resultxml);
            double        zongfen   = 0;
            string        jianyi    = "";
            string        yinsu     = "";
            //string jielun = "";
            int i = 0;
            int j = 0;

            foreach (DataRow row in DsReslut.Rows)
            {
                zongfen = zongfen + Convert.ToDouble(row["qr_score"]);
            }
            if (zongfen >= 0 && zongfen <= 3)
            {
                sbdeng.Text      = "优秀";
                ResultVale       = "优秀";
                sbdeng.ForeColor = Color.Black;
            }
            if (zongfen >= 3)
            {
                sbdeng.Text      = "较差";
                ResultVale       = "较差";
                sbdeng.ForeColor = Color.Red;
            }

            foreach (DataRow row in DsReslut.Rows)
            {
                if (!string.IsNullOrEmpty(row["q_reault"].ToString()))
                {
                    i++;
                    jianyi = jianyi + i + "、" + row["q_reault"].ToString().Trim() + "\n\n";
                }
                if (!string.IsNullOrEmpty(row["q_resik"].ToString()))
                {
                    string val = TmoCommon.MD5Helper.Md5Encrypt(row["q_resik"].ToString());
                    if (md5res.Contains(val))
                    {
                    }
                    else
                    {
                        yinsu = yinsu + row["q_resik"] + ",";
                        md5res.Add(val);
                    }
                }
            }
            if (TmoCommon.TmoShare.DataSetIsNotEmpty(advicDs))
            {
                if (advicDs.Tables[0] != null)
                {
                    if (advicDs.Tables[0].Rows.Count > 0)
                    {
                        DataRow dar = advicDs.Tables[0].Rows[0];
                        this.shanZhuanjia.Text = dar["shanJianyi"] == null ? "" : dar["shanJianyi"].ToString();
                    }
                }
            }
            if (!string.IsNullOrEmpty(yinsu))
            {
                yinsu = "现在的饮食误区:" + yinsu;
            }
            ssbjianyi.Text = jianyi;
            sbyinsu.Text   = yinsu.TrimEnd(',');
        }
Example #12
0
        public void RefData(string userId, string user_times, string quids)
        {
            List <string> md5res    = new List <string>();
            string        resultxml = TmoLinkServer.TmoServiceClient.InvokeServerMethodT <string>(funCode.getFeiPang, new object[] { userId, user_times, quids });
            DataTable     DsReslut  = TmoShare.getDataTableFromXML(resultxml);
            double        zongfen   = 0;
            string        jianyi    = "";
            string        yinsu     = "";
            string        jielun    = "根据您所填写的问卷调查内容,我们对您的疾病风险进行了评估,您现在处于糖尿病眼部病变的中";
            int           i         = 0;
            int           j         = 0;

            foreach (DataRow row in DsReslut.Rows)
            {
                zongfen = zongfen + Convert.ToDouble(row["qr_score"]);
            }
            if (zongfen >= 0 && zongfen <= 7)
            {
                yandeng.Text      = "低风险";
                ResultVale        = "低风险";
                jielun            = jielun + "低风险阶段:";
                yandeng.ForeColor = Color.Black;
                idsss.Add(1); idsss.Add(0); idsss.Add(0);
            }
            if (zongfen >= 8 && zongfen <= 15)
            {
                yandeng.Text      = "中风险";
                ResultVale        = "中风险";
                jielun            = jielun + "中风险阶段:";
                yandeng.ForeColor = Color.Red;
                idsss.Add(0); idsss.Add(2); idsss.Add(0);
            }
            if (zongfen >= 16)
            {
                yandeng.Text      = "高风险";
                ResultVale        = "高风险";
                jielun            = jielun + "高风险阶段:";
                yandeng.ForeColor = Color.Red;
                idsss.Add(0); idsss.Add(0); idsss.Add(3);
            }
            foreach (DataRow row in DsReslut.Rows)
            {
                if (!string.IsNullOrEmpty(row["q_reault"].ToString()))
                {
                    i++;
                    jianyi = jianyi + "\n\n" + i + "、" + row["q_reault"].ToString().Trim();
                }
                if (!string.IsNullOrEmpty(row["q_resik"].ToString()))
                {
                    string val = TmoCommon.MD5Helper.Md5Encrypt(row["q_resik"].ToString());
                    if (md5res.Contains(val))
                    {
                    }
                    else
                    {
                        yinsu = yinsu + row["q_resik"] + ",";
                        md5res.Add(val);
                    }
                }
                if (!string.IsNullOrEmpty(row["q_advice"].ToString()))
                {
                    j++; jielun = jielun + "\n\n" + j + "、" + row["q_advice"].ToString().Trim();
                }
            }

            yandadvice.Text = jielun;
            yanresult.Text  = jianyi;
            yanyinsu.Text   = yinsu.TrimEnd(',');
            JianYi          = jianyi;
            JieLun          = jielun;
        }
Example #13
0
        public void RefData(string userId, string user_times, string quesid)
        {
            List <string> md5res    = new List <string>();
            string        resultxml = TmoLinkServer.TmoServiceClient.InvokeServerMethodT <string>(funCode.getFeiPang, new object[] { userId, user_times, quesid });
            DataTable     DsReslut  = TmoShare.getDataTableFromXML(resultxml);
            double        zongfen   = 0;
            string        jianyi    = "";
            string        yinsu     = "";

            int i = 0;
            int j = 0;
            int g = 0;

            foreach (DataRow row in DsReslut.Rows)
            {
                zongfen = zongfen + Convert.ToDouble(row["qr_score"]);
            }
            string jielun = "根据您所填写的问卷调查内容,我们对您的疾病风险进行了评估,您现在处于糖尿病肾病的";

            if (zongfen >= 0 && zongfen <= 5)
            {
                ResultVale       = "低风险";
                this.sbdeng.Text = "低风险";
                sbdeng.ForeColor = Color.Black;
                idsss.Add(1); idsss.Add(0); idsss.Add(0);
            }
            if (zongfen >= 6 && zongfen <= 17)
            {
                ResultVale = "中风险"; this.sbdeng.Text = "中风险"; sbdeng.ForeColor = Color.Red; idsss.Add(0); idsss.Add(2); idsss.Add(0);
            }
            if (zongfen >= 18)
            {
                ResultVale       = "高风险"; this.sbdeng.Text = "高风险";
                sbdeng.ForeColor = Color.Red;
                idsss.Add(0); idsss.Add(0); idsss.Add(3);
            }

            jielun = jielun + this.sbdeng.Text + "您存在的糖尿病肾病患病风险评估有:\n\n";
            foreach (DataRow row in DsReslut.Rows)
            {
                if (!string.IsNullOrEmpty(row["q_reault"].ToString()))
                {
                    i++;
                    jianyi = jianyi + i + "、" + row["q_reault"].ToString().Trim() + "\n\n";
                }
                if (!string.IsNullOrEmpty(row["q_resik"].ToString()))
                {
                    string val = TmoCommon.MD5Helper.Md5Encrypt(row["q_resik"].ToString());
                    if (md5res.Contains(val))
                    {
                    }
                    else
                    {
                        yinsu = yinsu + row["q_resik"] + ",";
                        md5res.Add(val);
                    }
                }
                if (!string.IsNullOrEmpty(row["q_advice"].ToString()))
                {
                    j++; jielun = jielun + j + "、" + row["q_advice"].ToString().Trim().Replace("1、", "(1)").Replace("①", "(1)").Replace("②", "(2)").Replace("③", "(3)").Replace("④", "(4)").Replace("⑤", "(5)").Replace("⑥", "(6)").Replace("⑦", "(7)").Replace("⑧", "(8)").Replace("⑨", "(9)").Replace("⑩", "(10)") + "\n\n";
                }
            }
            this.sbjianyi.Text = jianyi;
            this.sbyinsu.Text  = yinsu.TrimEnd(',').Replace("年龄", "").Replace("家族史", "");
            sbjielun.Text      = jielun;
            JianYi             = jianyi;
            JieLun             = jielun;
        }
Example #14
0
        public void getData(string userId, string user_times, string quesTypeId, int age)
        {
            List <string> md5res  = new List <string>();
            List <string> shenHuo = new List <string>();

            shenHuo.Add("超重/肥胖或腹型肥胖*");
            shenHuo.Add("高盐、低钾饮食*");
            shenHuo.Add("吸烟");
            shenHuo.Add("长期过量饮酒");
            string    ssHeng     = "无";
            string    resultxml  = TmoLinkServer.TmoServiceClient.InvokeServerMethodT <string>(funCode.getTest, new object[] { userId, user_times, quesTypeId });
            DataTable DsReslut   = TmoShare.getDataTableFromXML(resultxml);
            string    resultxml1 = TmoLinkServer.TmoServiceClient.InvokeServerMethodT <string>(funCode.getScreenData, new object[] { userId, user_times, "'02390D277242464192B05F08D03D298B','751624508AA94D05864287B3CB6B723B'" });

            DataTable DsReslut1 = TmoShare.getDataTableFromXML(resultxml1);
            double    zongfen   = 0;
            string    jianyi    = "";
            string    yinsu     = "";
            string    jielun    = "根据您所填写的问卷调查内容,我们对您的疾病风险进行了评估,您现在处于高血压的";

            foreach (DataRow row in DsReslut.Rows)
            {
                zongfen = zongfen + Convert.ToDouble(row["qr_score"]);
            }
            if (DsReslut1 != null && DsReslut1.Rows.Count > 0)
            {
                //DataRow drrow = DsReslut1.Rows[0];
                foreach (DataRow drrow in DsReslut1.Rows)
                {
                    if (drrow["q_id"].ToString() == "02390D277242464192B05F08D03D298B")
                    {
                        bool val = TmoShare.GetValueFromJson <bool>(drrow["qr_result"].ToString());
                        if (val)
                        {
                            ResultVale = "已患"; xuya.Text = "有"; this.lblfen.Text = "已患高血压"; idsss.Add(0); idsss.Add(0); idsss.Add(0); idsss.Add(4); lblfen.ForeColor = Color.Red;
                        }
                        else
                        {
                            if (zongfen <= 5)
                            {
                                ResultVale = "低风险"; this.lblfen.Text = "低风险"; idsss.Add(1); idsss.Add(0); idsss.Add(0); idsss.Add(0); lblfen.ForeColor = Color.Black;
                            }
                            if (zongfen >= 6 && zongfen <= 9)
                            {
                                ResultVale = "中风险"; this.lblfen.Text = "中风险"; idsss.Add(0); idsss.Add(2); idsss.Add(0); idsss.Add(0); lblfen.ForeColor = Color.Red;
                            }
                            if (zongfen >= 10 && zongfen <= 24)
                            {
                                ResultVale = "高风险"; this.lblfen.Text = "高风险"; xuya.Text = "有"; idsss.Add(0); idsss.Add(0); idsss.Add(3); idsss.Add(0); lblfen.ForeColor = Color.Red;
                            }
                            if (zongfen >= 25)
                            {
                                ResultVale = "已患高血压"; xuya.Text = "有"; this.lblfen.Text = "已患高血压"; idsss.Add(0); idsss.Add(0); idsss.Add(0); idsss.Add(4); lblfen.ForeColor = Color.Red;
                            }
                        }
                    }
                    if (drrow["q_id"].ToString() == "751624508AA94D05864287B3CB6B723B")
                    {
                        float tis = TmoShare.GetValueFromJson <float>(drrow["qr_result"].ToString());
                        if (tis <= 18.5 || tis >= 24)
                        {
                            BMItxt.Text = "有";
                        }
                    }
                }
            }
            else
            {
                if (zongfen <= 5)
                {
                    ResultVale = "低风险"; this.lblfen.Text = "低风险"; idsss.Add(1); idsss.Add(0); idsss.Add(0); idsss.Add(0); lblfen.ForeColor = Color.Black;
                }
                if (zongfen >= 6 && zongfen <= 9)
                {
                    ResultVale = "中风险"; this.lblfen.Text = "中风险"; idsss.Add(0); idsss.Add(2); idsss.Add(0); idsss.Add(0); lblfen.ForeColor = Color.Red;
                }
                if (zongfen >= 10 && zongfen <= 24)
                {
                    ResultVale = "高风险"; this.lblfen.Text = "高风险"; xuya.Text = "有"; idsss.Add(0); idsss.Add(0); idsss.Add(3); idsss.Add(0); lblfen.ForeColor = Color.Red;
                }
                if (zongfen >= 25)
                {
                    ResultVale = "已患高血压"; xuya.Text = "有"; this.lblfen.Text = "已患高血压"; idsss.Add(0); idsss.Add(0); idsss.Add(0); idsss.Add(4); lblfen.ForeColor = Color.Red;
                }
            }
            jielun = jielun + this.lblfen.Text + "阶段;\n\n";
            int i = 0;
            int j = 0;
            int g = 0;

            foreach (DataRow row in DsReslut.Rows)
            {
                if (!string.IsNullOrEmpty(row["q_reault"].ToString()))
                {
                    i++;
                    jianyi = jianyi + i + "、" + row["q_reault"].ToString().Trim() + "\n\n";
                }
                if (!string.IsNullOrEmpty(row["q_resik"].ToString()))
                {
                    string mingtxt = row["q_resik"].ToString();
                    if (shenHuo.Contains(mingtxt))
                    {
                        ssHeng = "有";
                    }
                    if (mingtxt == "家族史*" || mingtxt == "家族史")
                    {
                        xtjzs.Text = "有";
                    }
                    if (mingtxt == "年龄*" || mingtxt == "年龄")
                    {
                        xtnianling.Text = "有";
                    }
                    if (mingtxt == "血压")
                    {
                        xuya.Text = "有";
                    }
                    if (mingtxt == "血脂")
                    {
                        xuezhitxt.Text = "有";
                    }
                    if (mingtxt == "超重/肥胖或腹型肥胖*")
                    {
                        BMItxt.Text = "有";
                    }
                    string val = TmoCommon.MD5Helper.Md5Encrypt(row["q_resik"].ToString());
                    if (md5res.Contains(val))
                    {
                    }
                    else
                    {
                        g++;
                        yinsu.TrimEnd(',').TrimEnd(',');
                        if (row["q_resik"].ToString() == "家族史")
                        {
                            break;
                        }
                        if (row["q_resik"].ToString() == "年龄")
                        {
                            break;
                        }
                        if (row["q_resik"].ToString() == "年龄*")
                        {
                            break;
                        }
                        yinsu = yinsu + row["q_resik"] + ",";
                        md5res.Add(val);
                    }
                }
                if (!string.IsNullOrEmpty(row["q_advice"].ToString()))
                {
                    j++; jielun = jielun + j + "、" + row["q_advice"].ToString().Trim() + "\n\n";
                }
            }
            if (XUEZhi == "血脂异常")
            {
                xuezhitxt.Text = "有";
            }
            if (age > 45)
            {
                xtnianling.Text = "有";
            }
            this.xtsheng.Text   = ssHeng;
            this.lbljianyi.Text = jianyi;
            JianYi           = jianyi;
            JieLun           = jielun;
            this.lblddd.Text = yinsu.TrimEnd(',');
            lbldes.Text      = jielun;
        }
Example #15
0
        public static object unpdteProAll(string xmlAll)
        {
            DataTable dt = TmoShare.getDataTableFromXML(xmlAll);

            return(tmo_project_resultManager.Instance.unpdteProAll(dt));
        }
Example #16
0
        /// <summary>
        /// 加载数据
        /// </summary>
        public void GetData()
        {
            this.ShowWaitingPanel(() =>
            {
                try
                {
                    string strmlx = TmoServiceClient.InvokeServerMethodT <string>(funCode.GetMedicalIn, new object[] { _user_id });
                    DataTable dt  = TmoShare.getDataTableFromXML(strmlx);
                    if (TmoShare.DataTableIsNotEmpty(dt))
                    {
                        return(dt);
                    }

                    return(null);
                }
                catch
                {
                }

                return(null);
            }, x =>
            {
                try
                {
                    DataTable dt = x as DataTable;
                    DataRow dr   = dt.Rows[0];
                    _id          = dr["id"].ToString();

                    DataTable dtNew = new DataTable();
                    dtNew.Columns.Add("luru_name", typeof(string));
                    dtNew.Columns.Add("luru_val", typeof(string));
                    dtNew.Columns.Add("id", typeof(string));
                    dtNew.Columns.Add("lookqu", typeof(string));
                    dtNew.Columns.Add("dc", typeof(string));

                    foreach (DataColumn dc in dt.Columns)
                    {
                        DataRow newRow = dtNew.NewRow();
                        if (dc.ColumnName == "user_id" || dc.ColumnName == "id" || dc.ColumnName == "input_time")
                        {
                            continue;
                        }

                        if (dc.ColumnName == "fbg")
                        {
                            newRow["luru_name"] = "空腹血糖";
                            newRow["dc"]        = "fbg";
                        }

                        if (dc.ColumnName == "pbg")
                        {
                            newRow["luru_name"] = "餐后血糖";
                            newRow["dc"]        = "pbg";
                        }

                        if (dc.ColumnName == "chol")
                        {
                            newRow["luru_name"] = "总胆固醇";
                            newRow["dc"]        = "chol";
                        }

                        if (dc.ColumnName == "trig")
                        {
                            newRow["luru_name"] = "甘油三酯";
                            newRow["dc"]        = "trig";
                        }

                        if (dc.ColumnName == "hdl")
                        {
                            newRow["luru_name"] = "高密度胆固醇";
                            newRow["dc"]        = "hdl";
                        }

                        if (dc.ColumnName == "ldl")
                        {
                            newRow["luru_name"] = "低密度胆固醇";
                            newRow["dc"]        = "ldl";
                        }

                        if (dc.ColumnName == "dbp")
                        {
                            newRow["luru_name"] = "舒张压";
                            newRow["dc"]        = "dbp";
                        }

                        if (dc.ColumnName == "sbp")
                        {
                            newRow["luru_name"] = "收缩压";
                            newRow["dc"]        = "sbp";
                        }

                        newRow["id"]       = id;
                        newRow["luru_val"] = dr[dc];
                        newRow["lookqu"]   = "查看趋势图";
                        dtNew.Rows.Add(newRow);
                    }

                    dgcTree.DataSource = dtNew;
                    if (gridView1.GroupCount > 0)
                    {
                        gridView1.ExpandAllGroups();
                    }

                    gridView1.MoveFirst();
                    if (dt == null)
                    {
                        return;
                    }
                }
                catch (Exception ex)
                {
                    LogHelper.Log.Error("实体加载数据出错", ex);
                    DXMessageBox.ShowWarning2("没有数据");
                }
            });
        }
Example #17
0
        /// <summary>
        /// 添加监测数据
        /// </summary>
        /// <param name="submitData">包含监测数据的参数</param>
        /// <returns></returns>
        public bool AddMonitorData(string submitData)
        {
            DataTable submitTable = TmoShare.getDataTableFromXML(submitData);

            return(AddMonitorData(submitTable));
        }
Example #18
0
        public void RefData(string userId, string user_times, string querisd)
        {
            List <string> md5res    = new List <string>();
            string        resultxml = TmoLinkServer.TmoServiceClient.InvokeServerMethodT <string>(funCode.getFeiPang, new object[] { userId, user_times, querisd });
            DataTable     DsReslut  = TmoShare.getDataTableFromXML(resultxml);
            double        zongfen   = 0;
            string        jianyi    = "";
            string        yinsu     = "";

            int i = 0;
            int j = 0;
            int g = 0;

            foreach (DataRow row in DsReslut.Rows)
            {
                zongfen = zongfen + Convert.ToDouble(row["qr_score"]);
            }
            string jielun = "根据您所填写的问卷调查内容,我们对您的疾病风险进行了评估,您现在处于糖尿病神经病变的";

            if (zongfen >= 1 && zongfen <= 8)
            {
                ResultVale       = "低风险";
                this.bsDeng.Text = "低风险";
                bsDeng.ForeColor = Color.Black;
                idsss.Add(1); idsss.Add(0); idsss.Add(0);
            }
            if (zongfen >= 9 && zongfen <= 19)
            {
                ResultVale = "中风险"; this.bsDeng.Text = "中风险"; bsDeng.ForeColor = Color.Red; idsss.Add(0); idsss.Add(2); idsss.Add(0);
            }
            if (zongfen >= 20)
            {
                ResultVale       = "高风险"; this.bsDeng.Text = "高风险";
                bsDeng.ForeColor = Color.Red;
                idsss.Add(0); idsss.Add(0); idsss.Add(3);
            }

            jielun = jielun + this.bsDeng.Text + "您存在的糖尿病神经病变患病风险评估有:\n\n";
            foreach (DataRow row in DsReslut.Rows)
            {
                if (!string.IsNullOrEmpty(row["q_reault"].ToString()))
                {
                    i++;
                    jianyi = jianyi + i + "、" + row["q_reault"].ToString().Trim() + "\n\n";
                }
                if (!string.IsNullOrEmpty(row["q_resik"].ToString()))
                {
                    string val = TmoCommon.MD5Helper.Md5Encrypt(row["q_resik"].ToString());
                    if (md5res.Contains(val))
                    {
                    }
                    else
                    {
                        yinsu = yinsu + row["q_resik"] + ",";
                        md5res.Add(val);
                    }
                }
                if (!string.IsNullOrEmpty(row["q_advice"].ToString()))
                {
                    j++; jielun = jielun + j + "、" + row["q_advice"].ToString().Trim() + "\n\n";
                }
            }
            this.bsjianyi.Text = jianyi;
            this.bsyisu.Text   = yinsu.TrimEnd(',');
            bsjielun.Text      = jielun;
            JianYi             = jianyi;
            JieLun             = jielun;
        }
Example #19
0
        public void RefData(string userId, string user_times, string querId)
        {
            List <string> md5res    = new List <string>();
            string        zhibiaos  = "";
            float         ganyouUps = -100f;
            float         ganyous   = -100f;

            float zongUps = -100f;
            float zongs   = -100f;

            float diUps = -100f;
            float dis   = -100f;

            float gaoUps = -100f;
            float gaos   = -100f;

            float     tiUps     = -100f;
            float     tis       = -100f;
            float     gaozhiUps = -100f;
            float     gaozhis   = -100f;
            double    zongfen   = 0;
            string    yinsu     = "";
            string    resultxml = TmoLinkServer.TmoServiceClient.InvokeServerMethodT <string>(funCode.getFeiPang, new object[] { userId, user_times, querId });
            DataTable DsReslut  = TmoShare.getDataTableFromXML(resultxml);
            int       timeup    = 0;

            if (user_times == "1" || user_times == "0")
            {
            }
            else
            {
                timeup = Convert.ToInt32(user_times) - 1;
            }
            string    upxml    = TmoLinkServer.TmoServiceClient.InvokeServerMethodT <string>(funCode.getFeiPang, new object[] { userId, timeup, querId });
            DataTable upResult = TmoShare.getDataTableFromXML(upxml);

            #region  次和本次
            if (DsReslut != null)
            {
                foreach (DataRow row in DsReslut.Rows)
                {
                    if (!string.IsNullOrEmpty(row["q_resik"].ToString()))
                    {
                        string val = TmoCommon.MD5Helper.Md5Encrypt(row["q_resik"].ToString());
                        if (md5res.Contains(val))
                        {
                        }
                        else
                        {
                            yinsu = yinsu + row["q_resik"] + ",";
                            md5res.Add(val);
                        }
                    }
                    string q_id   = row["q_id"].ToString();
                    string fenshu = row["qr_score"].ToString();
                    zongfen = zongfen + Convert.ToDouble(row["qr_score"]);
                    if (q_id == "FC2D9933EAA14E8A89EC8E8AC61602D5")
                    {
                        if (fenshu == "20")
                        {
                            zhibiaos = zhibiaos + "甘油三酯、";
                        }
                        ganyous = TmoShare.GetValueFromJson <float>(row["qr_result"].ToString());
                        if (ganyous == 0)
                        {
                            continue;
                        }
                        if (ganyous < 1.70)
                        {
                            ganyouguan.Text = "减少"; ganyoudong.Text = "减少"; gaunyougao.Text = "减少"; tanyoutang.Text = "减少";
                        }
                        else
                        {
                            ganyouguan.Text = "增加"; ganyoudong.Text = "增加"; gaunyougao.Text = "增加"; tanyoutang.Text = "增加";
                        }
                        ganyou.Text = ganyous.ToString();
                    }
                    if (q_id == "7543252298164AAF8BCD50A8FCECF80F")
                    {
                        if (fenshu == "20")
                        {
                            zhibiaos = zhibiaos + "总胆固醇、";
                        }
                        zongs = TmoShare.GetValueFromJson <float>(row["qr_result"].ToString());
                        if (zongs == 0)
                        {
                            continue;
                        }
                        if (zongs < 5.17)
                        {
                            zongdangan.Text = "减少"; zongdandong.Text = "减少"; zongdangao.Text = "减少"; zongdantang.Text = "减少";
                        }
                        else
                        {
                            zongdangan.Text = "增加"; zongdandong.Text = "增加"; zongdangao.Text = "增加"; zongdantang.Text = "增加";
                        }
                        zong.Text = zongs.ToString();
                    }
                    if (q_id == "9F576888D01A4BCABDF3B61CEDE6948B")
                    {
                        if (fenshu == "20")
                        {
                            zhibiaos = zhibiaos + "低密度脂蛋白、";
                        }
                        dis = TmoShare.GetValueFromJson <float>(row["qr_result"].ToString());
                        if (dis == 0)
                        {
                            continue;
                        }
                        if (dis < 3.37)
                        {
                            dimiguan.Text = "减少"; dimidong.Text = "减少"; dimigao.Text = "减少"; dimitang.Text = "减少";
                        }
                        else
                        {
                            dimiguan.Text = "增加"; dimidong.Text = "增加"; dimigao.Text = "增加"; dimitang.Text = "增加";
                        }
                        xrTableCell40.Text = dis.ToString();
                    }
                    if (q_id == "5E1D0A34001D4C02AB4FC7786139B208")
                    {
                        if (fenshu == "20")
                        {
                            zhibiaos = zhibiaos + "高密度脂蛋白、";
                        }
                        gaos = TmoShare.GetValueFromJson <float>(row["qr_result"].ToString());
                        if (gaos == 0)
                        {
                            continue;
                        }
                        if (gaos >= 1.04)
                        {
                            gaomiguan.Text = "减少"; gaomidong.Text = "减少"; gaomigao.Text = "减少"; gaomitang.Text = "减少";
                        }
                        else
                        {
                            gaomiguan.Text = "增加"; gaomidong.Text = "增加"; gaomigao.Text = "增加"; gaomitang.Text = "增加";
                        }
                        gao.Text = gaos.ToString();
                    }
                    if (q_id == "751624508AA94D05864287B3CB6B723B")
                    {
                        tis       = TmoShare.GetValueFromJson <float>(row["qr_result"].ToString());
                        zhid.Text = tis.ToString();
                    }
                    if (q_id == "7462E7B63F974594BADCAD5031FC05D2")
                    {
                        gaozhis = TmoShare.GetValueFromJson <float>(row["qr_result"].ToString());
                        if (gaozhis == 0)
                        {
                            continue;
                        }
                        if (gaozhis == 2)
                        {
                            gaozhi.Text = "是";
                        }
                        else
                        {
                            gaozhi.Text = "否";
                        }
                    }
                }
            }
            if (upResult != null)
            {
                foreach (DataRow row in upResult.Rows)
                {
                    string q_id = row["q_id"].ToString();
                    if (q_id == "FC2D9933EAA14E8A89EC8E8AC61602D5")
                    {
                        ganyouUps = TmoShare.GetValueFromJson <float>(row["qr_result"].ToString());
                        if (ganyouUps == 0)
                        {
                            continue;
                        }
                        ganyouup.Text = ganyouUps.ToString();
                    }
                    if (q_id == "7543252298164AAF8BCD50A8FCECF80F")
                    {
                        zongUps = TmoShare.GetValueFromJson <float>(row["qr_result"].ToString());
                        if (zongUps == 0)
                        {
                            continue;
                        }
                        zongup.Text = zongUps.ToString();
                    }
                    if (q_id == "9F576888D01A4BCABDF3B61CEDE6948B")
                    {
                        diUps = TmoShare.GetValueFromJson <float>(row["qr_result"].ToString());
                        if (diUps == 0)
                        {
                            continue;
                        }
                        diup.Text = diUps.ToString();
                    }
                    if (q_id == "5E1D0A34001D4C02AB4FC7786139B208")
                    {
                        gaoUps = TmoShare.GetValueFromJson <float>(row["qr_result"].ToString());
                        if (gaoUps == 0)
                        {
                            continue;
                        }
                        gaoup.Text = gaoUps.ToString();
                    }
                    if (q_id == "751624508AA94D05864287B3CB6B723B")
                    {
                        tiUps = TmoShare.GetValueFromJson <float>(row["qr_result"].ToString());
                        if (tiUps == 0)
                        {
                            continue;
                        }
                        zhiup.Text = tiUps.ToString();
                    }
                    if (q_id == "7462E7B63F974594BADCAD5031FC05D2")
                    {
                        gaozhiUps = TmoShare.GetValueFromJson <float>(row["qr_result"].ToString());
                        if (gaozhiUps == 0)
                        {
                            continue;
                        }
                        gaozhiup.Text = gaozhiUps.ToString();
                    }
                }
            }
            #endregion
            #region 指标变化
            if (ganyouUps != -100f && ganyous != 100f)
            {
                if (ganyous > ganyouUps)
                {
                    ganbian.Text = "升高";
                }
                else if (ganyous < ganyouUps)
                {
                    ganbian.Text = "下降";
                }
                else
                {
                    ganbian.Text = "没变";
                }
            }
            if (zongUps != -100f && zongs != 100f)
            {
                if (zongs > zongUps)
                {
                    zongbian.Text = "升高";
                }
                else if (zongs < zongUps)
                {
                    zongbian.Text = "下降";
                }
                else
                {
                    zongbian.Text = "没变";
                }
            }
            if (diUps != -100f && dis != 100f)
            {
                if (dis > diUps)
                {
                    dibian.Text = "升高";
                }
                else if (dis < diUps)
                {
                    dibian.Text = "下降";
                }
                else
                {
                    dibian.Text = "没变";
                }
            }
            if (gaoUps != -100f && gaos != 100f)
            {
                if (gaos > gaoUps)
                {
                    gaobian.Text = "升高";
                }
                else if (gaos < gaoUps)
                {
                    gaobian.Text = "下降";
                }
                else
                {
                    gaobian.Text = "没变";
                }
            }
            if (gaozhiUps != -100f && gaozhis != 100f)
            {
                if (gaozhis > gaozhiUps)
                {
                    gaozhibian.Text = "升高";
                }
                else if (gaozhis < gaozhiUps)
                {
                    gaozhibian.Text = "下降";
                }
                else
                {
                    gaozhibian.Text = "没变";
                }
            }
            if (tiUps != -100f && tis != 100f)
            {
                if (tis > tiUps)
                {
                    tibian.Text = "升高";
                }
                else if (tis < tiUps)
                {
                    tibian.Text = "下降";
                }
                else
                {
                    tibian.Text = "没变";
                }
            }
            #endregion

            #region 风险判断
            if (zongfen <= 4)
            {
                picFat1.Visible         = true;
                xuezhiReslut1.Text      = "低危险人群";
                ResultVale              = "低危险人群";
                this.xuezhiReslut1.Text = "低危险人群";
                xuezhiReslut1.ForeColor = Color.Black;
                xuezhiResult.ForeColor  = Color.Black;
            }
            if (zongfen >= 5 && zongfen <= 18)
            {
                picFat2.Visible         = true;
                this.xuezhiResult.Text  = "高危人群";
                ResultVale              = "高危人群";
                xuezhiResult.ForeColor  = Color.Red;
                this.xuezhiReslut1.Text = "高危人群";
                xuezhiReslut1.ForeColor = Color.Red;
            }
            if (zongfen >= 18)
            {
                picFat3.Visible         = true;
                this.xuezhiResult.Text  = "血脂异常";
                xuezhiResult.ForeColor  = Color.Red;
                this.xuezhiReslut1.Text = "血脂异常";
                xuezhiReslut1.ForeColor = Color.Red;
                ResultVale = "血脂异常";
            }
            #endregion
            string firs = "血脂检查共4项,即总胆固醇、甘油三酯、低密度脂蛋白和高密度脂蛋白。血脂异常就是指血中总胆固醇、甘油三酯、低密度脂蛋白胆固醇超过正常及(或)高密度脂蛋白胆固醇低下。血脂异常作为脂代谢障碍的表现,属于代谢性疾病,它对健康的损害主要在心血管系统,易导致冠心病及其他动脉粥样硬化性疾病。";
            if (!string.IsNullOrEmpty(zhibiaos))
            {
                firs = firs + "\n\n您已达到血脂异常的诊断标准,您目前的血脂四项中存在异常的指标包括" + zhibiaos + ",您可以通过减轻体重、增加体力活动水平等治疗性生活方式改善措施来有效调节血脂,预防心脑血管病的发生。";
            }
            zhidaojianyi.Text = firs;
            JianYi            = firs;
            JieLun            = "《中国成人血脂异常防治指南》对血脂异常的定义:血清甘油三酯≥1.70mmol/L,总胆固醇≥5.17mmol/L,高密度脂蛋白胆固醇<1.04mmol/L,低密度脂蛋白胆固醇≥3.37mmol/L,4项中具备1项及以上者即为血脂异常。根据您提供的有关信息及临床.检查结果,您血脂情况为" + xuezhiReslut1.Text;
            yinsutxt.Text     = yinsu.TrimEnd(',').TrimEnd(',');
        }
Example #20
0
        public void RefData(string userId, string user_times, string quesIDs)
        {
            string uptimes = "0";

            if (user_times != "1")
            {
                uptimes = (int.Parse(user_times) - 1).ToString();
            }
            string    strmlx = TmoServiceClient.InvokeServerMethodT <string>(funCode.getScreenData, new object[] { userId, user_times, quesIDs });
            DataTable dt     = TmoShare.getDataTableFromXML(strmlx);
            string    upxml  = TmoServiceClient.InvokeServerMethodT <string>(funCode.getScreenData, new object[] { userId, uptimes, quesIDs });
            DataTable updtdd = TmoShare.getDataTableFromXML(upxml);

            if (TmoShare.DataTableIsNotEmpty(dt))
            {
                foreach (DataRow row in dt.Rows)
                {
                    string p_id = row["q_id"].ToString();
                    if (p_id == "D9115BD44B1344B88A45EF121EADCBA5")
                    {
                    }

                    #region 指标结果

                    if (p_id == "EBE1C353B35842189EF8F4041BE95CB6")
                    {
                        if (TmoShare.GetValueFromJson <float>(row["qr_result"].ToString()) == 0)
                        {
                            continue;
                        }
                        tizhong.Text = TmoShare.GetValueFromJson <float>(row["qr_result"].ToString()).ToString();
                    }
                    if (p_id == "D9115BD44B1344B88A45EF121EADCBA5")
                    {
                        float val = TmoShare.GetValueFromJson <float>(row["qr_result"].ToString());
                        if (val == 0)
                        {
                            continue;
                        }
                        if (val > 24)
                        {
                            fpd.Text = "肥胖";
                        }
                        bmiValue.Text = TmoShare.GetValueFromJson <float>(row["qr_result"].ToString()).ToString();
                    }
                    if (p_id == "CE8C9F888AD2447487EAA996BBA5A6BF")
                    {
                        if (TmoShare.GetValueFromJson <float>(row["qr_result"].ToString()) == 0)
                        {
                            continue;
                        }
                        yaowei.Text = TmoShare.GetValueFromJson <float>(row["qr_result"].ToString()).ToString();
                    }
                    if (p_id == "ADF9331BADAB48BF9147611A9BBD1C79")
                    {
                        float vald = TmoShare.GetValueFromJson <float>(row["qr_result"].ToString());
                        if (vald > 5.6 || vald < 3.9)
                        {
                            kong.ForeColor = Color.Red;
                        }
                        kong.Text = vald.ToString();
                    }

                    if (p_id == "0C1553EA1A274B56A211CCFC5F4A429E")
                    {
                        if (TmoShare.GetValueFromJson <float>(row["qr_result"].ToString()) == 0)
                        {
                            continue;
                        }
                        float vald = TmoShare.GetValueFromJson <float>(row["qr_result"].ToString());
                        if (vald > 7.8 || vald < 4.4)
                        {
                            can.ForeColor = Color.Red;
                        }
                        can.Text = vald.ToString();
                    }

                    if (p_id == "C41F469521E849D8B6314833C6FA92B0")
                    {
                        string[] valds = TmoShare.GetValueFromJson <string[]>(row["qr_result"].ToString());
                        if (valds != null && valds.Length > 0)
                        {
                            if (!string.IsNullOrEmpty(valds[0]) && !string.IsNullOrEmpty(valds[1]))
                            {
                                float v1 = float.Parse(valds[0]);
                                float v2 = float.Parse(valds[1]);
                                if (v1 > 140 || v1 < 90 || v2 < 60 || v2 > 90)
                                {
                                    xueya.ForeColor = Color.Red;
                                }
                                xueya.Text = v1 + "/" + v2;
                            }
                        }
                    }
                    if (p_id == "6E3658E76CE141CEB0264BA1ADEF9664")
                    {
                        float vald = TmoShare.GetValueFromJson <float>(row["qr_result"].ToString());
                        if (vald == 0)
                        {
                            continue;
                        }
                        if (vald > 5.2 || vald < 3)
                        {
                            zongdangu.ForeColor = Color.Red;
                        }
                        zongdangu.Text = vald.ToString();
                    }
                    if (p_id == "225368D504EB431CA2E597FAD50D2949")
                    {
                        float vald = TmoShare.GetValueFromJson <float>(row["qr_result"].ToString());
                        if (vald == 0)
                        {
                            continue;
                        }
                        if (vald > 1.7 || vald < 0)
                        {
                            ganyou.ForeColor = Color.Red;
                        }
                        ganyou.Text = vald.ToString();
                    }

                    if (p_id == "6A67F0E229964527AB541B5DD318E2C3")
                    {
                        float vald = TmoShare.GetValueFromJson <float>(row["qr_result"].ToString());
                        if (vald == 0)
                        {
                            continue;
                        }
                        if (vald > 3.12 || vald < 0)
                        {
                            dimi.ForeColor = Color.Red;
                        }
                        dimi.Text = vald.ToString();
                    }
                    if (p_id == "D2198A7F78CF4DEFA821C4F41893E415")
                    {
                        float vald = TmoShare.GetValueFromJson <float>(row["qr_result"].ToString());
                        if (vald == 0)
                        {
                            continue;
                        }
                        if (vald > 0.2 || vald < 0.7)
                        {
                            xrTableCell72.ForeColor = Color.Red;
                        }
                        xrTableCell72.Text = vald.ToString();
                    }//805E2FAC0F3B442DBBBFAFB4BF61F427
                    if (p_id == "805E2FAC0F3B442DBBBFAFB4BF61F427")
                    {
                        if (TmoShare.GetValueFromJson <float>(row["qr_result"].ToString(), false) == 0)
                        {
                            continue;
                        }
                        niaodan.Text = TmoShare.GetValueFromJson <float>(row["qr_result"].ToString()).ToString();
                    }
                    if (p_id == "4CD308E584744A36BC499CECCADAEB18")
                    {
                        if (TmoShare.GetValueFromJson <float>(row["qr_result"].ToString(), false) == 0)
                        {
                            continue;
                        }
                        niaobai.Text = TmoShare.GetValueFromJson <float>(row["qr_result"].ToString()).ToString();
                    }
                    if (p_id == "6501E7A0165648A6BD9409430028ADEB")
                    {
                        if (TmoShare.GetValueFromJson <float>(row["qr_result"].ToString(), false) == 0)
                        {
                            continue;
                        }
                        tongxing.Text = TmoShare.GetValueFromJson <float>(row["qr_result"].ToString()).ToString();
                    }
                    if (p_id == "C1443DA657174BC696008614A6659A99")
                    {
                        if (TmoShare.GetValueFromJson <float>(row["qr_result"].ToString(), false) == 0)
                        {
                            continue;
                        }
                        xuehong.Text = TmoShare.GetValueFromJson <float>(row["qr_result"].ToString()).ToString();
                    }
                    #endregion
                    #region 个人疾病史
                    if (p_id == "02390D277242464192B05F08D03D298B")
                    {
                        bool val = TmoShare.GetValueFromJson <bool>(row["qr_result"].ToString());
                        if (val)
                        {
                            xrTableCell138.Text      = "有";//高血压
                            xrTableCell138.ForeColor = Color.Red;
                            gxy.Text = "已患";
                        }
                    }
                    if (p_id == "0F58D8725EB5467E91231F0742FF4271")
                    {
                        bool val = TmoShare.GetValueFromJson <bool>(row["qr_result"].ToString());
                        if (val)
                        {
                            shenjing.Text = "已患";//糖尿病神经病变
                        }
                    }
                    if (p_id == "9407E0C29A914D9795B203968A8050EB")
                    {
                        bool val = TmoShare.GetValueFromJson <bool>(row["qr_result"].ToString());
                        if (val)
                        {
                            tnb.Text                 = "已患";//糖尿时间
                            xrTableCell126.Text      = "有";
                            xrTableCell126.ForeColor = Color.Red;
                        }
                    }
                    if (p_id == "16D3E509B9C0400F97F7D88EB91C8247")
                    {
                        DateTime val        = TmoShare.GetValueFromJson <DateTime>(row["qr_result"].ToString());
                        var      dtimeValue = val.ToString("yyyy-MM-dd");
                        if (dtimeValue != "0001-01-01" && dtimeValue != "9999-12-31")
                        {
                            tnb.Text                 = "已患";//糖尿时间
                            xrTableCell126.Text      = "有";
                            xrTableCell126.ForeColor = Color.Red;
                        }
                    }
                    if (p_id == "1E39A6F3231E47C7994FCD380F5A6FC6")
                    {
                        bool val = TmoShare.GetValueFromJson <bool>(row["qr_result"].ToString());
                        if (val)
                        {
                            zb.Text = "已患";//糖尿病足病
                        }
                    }
                    if (p_id == "3289721340EE4EA4BC3EB82366703B75")
                    {
                        bool val = TmoShare.GetValueFromJson <bool>(row["qr_result"].ToString());
                        if (val)
                        {
                            xrTableCell136.Text      = "有";
                            xrTableCell136.ForeColor = Color.Red;
                            xz.Text = "已患";//血脂异常
                        }
                    }
                    if (p_id == "4E89929897B3449384BAB2DC1B886BE1")
                    {
                        bool val = TmoShare.GetValueFromJson <bool>(row["qr_result"].ToString());
                        if (val)
                        {
                            yb.Text = "已患";//和病眼病
                        }
                    }
                    if (p_id == "C9541C75D3EE43D9A94124605E4FE70B")
                    {
                        bool val = TmoShare.GetValueFromJson <bool>(row["qr_result"].ToString());
                        if (val)
                        {
                            shenbing.Text = "已患";//肾病
                        }
                    }
                    if (p_id == "A44EF95BEF084F919FB78FC614E2C58E")
                    {
                        int[] vals = TmoShare.GetValueFromJson <int[]>(row["qr_result"].ToString());
                        if (vals != null && vals.Length > 0)
                        {
                            if (iscontext(vals, 226))
                            {
                                xrTableCell132.Text      = "有";
                                xrTableCell132.ForeColor = Color.Red;
                            }
                            if (iscontext(vals, 227))
                            {
                                xrTableCell134.Text      = "有";
                                xrTableCell134.ForeColor = Color.Red;
                            }
                            if (iscontext(vals, 228))
                            {
                                xrTableCell144.Text      = "有";
                                xrTableCell144.ForeColor = Color.Red;
                            }
                            if (iscontext(vals, 229))
                            {
                                xrTableCell30.Text      = "有";
                                xrTableCell30.ForeColor = Color.Red;
                            }
                            if (iscontext(vals, 225))
                            {
                                xrTableCell146.Text      = "有";
                                xrTableCell146.ForeColor = Color.Red;
                            }
                            if (iscontext(vals, 214))
                            {
                                xrTableCell148.Text      = "有";
                                xrTableCell148.ForeColor = Color.Red;
                            }
                        }
                    }
                    if (p_id == "08EAA9700B0440C2BB8957D3722F9E87")//父亲
                    {
                        int[] vals = TmoShare.GetValueFromJson <int[]>(row["qr_result"].ToString());
                        if (vals != null && vals.Length > 0)
                        {
                            if (iscontext(vals, 212))
                            {
                                fugao.Text      = "有";
                                fugao.ForeColor = Color.Red;
                            }
                            if (iscontext(vals, 208))
                            {
                                futang.Text      = "有";
                                futang.ForeColor = Color.Red;
                            }
                            if (iscontext(vals, 207))
                            {
                                fuxuezhi.Text      = "有";
                                fuxuezhi.ForeColor = Color.Red;
                            }
                            if (iscontext(vals, 225))
                            {
                                fujia.Text      = "有";
                                fujia.ForeColor = Color.Red;
                            }
                            if (iscontext(vals, 214))
                            {
                                guanxin.Text      = "有";
                                guanxin.ForeColor = Color.Red;
                            }
                            if (iscontext(vals, 226))
                            {
                                naoguanxin.Text      = "有";
                                naoguanxin.ForeColor = Color.Red;
                            }
                            if (iscontext(vals, 227))
                            {
                                fuzhongliu.Text      = "有";
                                fuzhongliu.ForeColor = Color.Red;
                            }
                        }
                    }
                    if (p_id == "65D243DFF6654CD3BC65900E8467DDA9")//母亲
                    {
                        int[] vals = TmoShare.GetValueFromJson <int[]>(row["qr_result"].ToString());
                        if (vals != null && vals.Length > 0)
                        {
                            if (iscontext(vals, 212))
                            {
                                mugao.Text      = "有";
                                mugao.ForeColor = Color.Red;
                            }
                            if (iscontext(vals, 208))
                            {
                                mutang.Text      = "有";
                                mutang.ForeColor = Color.Red;
                            }
                            if (iscontext(vals, 207))
                            {
                                muxuezhi.Text      = "有";
                                muxuezhi.ForeColor = Color.Red;
                            }
                            if (iscontext(vals, 225))
                            {
                                mujia.Text      = "有";
                                mujia.ForeColor = Color.Red;
                            }
                            if (iscontext(vals, 214))
                            {
                                muguanxin.Text      = "有";
                                muguanxin.ForeColor = Color.Red;
                            }
                            if (iscontext(vals, 226))
                            {
                                muxinnao.Text      = "有";
                                muxinnao.ForeColor = Color.Red;
                            }
                            if (iscontext(vals, 227))
                            {
                                muzhongliu.Text      = "有";
                                muzhongliu.ForeColor = Color.Red;
                            }
                        }
                    }
                    if (p_id == "F88D1C04B0F64D6B8D59CDB821AEBB4B")//兄弟姐妹
                    {
                        int[] vals = TmoShare.GetValueFromJson <int[]>(row["qr_result"].ToString());
                        if (vals != null && vals.Length > 0)
                        {
                            if (iscontext(vals, 212))
                            {
                                xmgao.Text      = "有";
                                xmgao.ForeColor = Color.Red;
                            }
                            if (iscontext(vals, 208))
                            {
                                xmtang.Text      = "有";
                                xmtang.ForeColor = Color.Red;
                            }
                            if (iscontext(vals, 207))
                            {
                                xmxuezhi.Text      = "有";
                                xmxuezhi.ForeColor = Color.Red;
                            }
                            if (iscontext(vals, 225))
                            {
                                xmjia.Text      = "有";
                                xmjia.ForeColor = Color.Red;
                            }
                            if (iscontext(vals, 214))
                            {
                                xmgaunxin.Text      = "有";
                                xmgaunxin.ForeColor = Color.Red;
                            }
                            if (iscontext(vals, 226))
                            {
                                xmxinao.Text      = "有";
                                xmxinao.ForeColor = Color.Red;
                            }
                            if (iscontext(vals, 227))
                            {
                                xmzhongliu.Text      = "有";
                                xmzhongliu.ForeColor = Color.Red;
                            }
                        }
                    }
                    #endregion
                }
            }



            if (TmoShare.DataTableIsNotEmpty(updtdd))
            {
                #region 判断上次指标结果
                foreach (DataRow row in updtdd.Rows)
                {
                    string p_id = row["q_id"].ToString();



                    if (p_id == "EBE1C353B35842189EF8F4041BE95CB6")
                    {
                        if (TmoShare.GetValueFromJson <float>(row["qr_result"].ToString()) == 0)
                        {
                            continue;
                        }
                        tizhongUp.Text = TmoShare.GetValueFromJson <float>(row["qr_result"].ToString()).ToString();
                    }
                    if (p_id == "D9115BD44B1344B88A45EF121EADCBA5")
                    {
                        if (TmoShare.GetValueFromJson <float>(row["qr_result"].ToString()) == 0)
                        {
                            continue;
                        }
                        bmiValueUp.Text = TmoShare.GetValueFromJson <float>(row["qr_result"].ToString()).ToString();
                    }
                    if (p_id == "CE8C9F888AD2447487EAA996BBA5A6BF")
                    {
                        if (TmoShare.GetValueFromJson <float>(row["qr_result"].ToString()) == 0)
                        {
                            continue;
                        }
                        yaoweiUp.Text = TmoShare.GetValueFromJson <float>(row["qr_result"].ToString()).ToString();
                    }
                    if (p_id == "ADF9331BADAB48BF9147611A9BBD1C79")
                    {
                        float vald = TmoShare.GetValueFromJson <float>(row["qr_result"].ToString());
                        if (vald == 0)
                        {
                            continue;
                        }
                        if (vald == 0)
                        {
                            continue;
                        }
                        if (vald > 5.6 || vald < 3.9)
                        {
                            kongup.ForeColor = Color.Red;
                        }
                        kongup.Text = vald.ToString();
                    }
                    if (p_id == "0C1553EA1A274B56A211CCFC5F4A429E")
                    {
                        float vald = TmoShare.GetValueFromJson <float>(row["qr_result"].ToString());
                        if (vald == 0)
                        {
                            continue;
                        }
                        if (vald == 0)
                        {
                            continue;
                        }
                        if (vald > 7.8 || vald < 4.4)
                        {
                            canUP.ForeColor = Color.Red;
                        }
                        canUP.Text = vald.ToString();
                    }

                    if (p_id == "C41F469521E849D8B6314833C6FA92B0")
                    {
                        string[] valds = TmoShare.GetValueFromJson <string[]>(row["qr_result"].ToString());

                        if (valds != null && valds.Length > 0)
                        {
                            if (!string.IsNullOrEmpty(valds[0]) && !string.IsNullOrEmpty(valds[1]))
                            {
                                float v1 = float.Parse(valds[0]);
                                float v2 = float.Parse(valds[1]);
                                if (v1 > 140 || v1 < 90 || v2 < 60 || v2 > 90)
                                {
                                    xueyaUp.ForeColor = Color.Red;
                                }
                                xueyaUp.Text = v1 + "/" + v2;
                            }
                        }
                    }
                    if (p_id == "6E3658E76CE141CEB0264BA1ADEF9664")
                    {
                        float vald = TmoShare.GetValueFromJson <float>(row["qr_result"].ToString());
                        if (vald == 0)
                        {
                            continue;
                        }
                        if (vald == 0)
                        {
                            continue;
                        }
                        if (vald > 5.2 || vald < 3)
                        {
                            zongdanguUp.ForeColor = Color.Red;
                        }
                        zongdanguUp.Text = vald.ToString();
                    }
                    if (p_id == "225368D504EB431CA2E597FAD50D2949")
                    {
                        float vald = TmoShare.GetValueFromJson <float>(row["qr_result"].ToString());
                        if (vald == 0)
                        {
                            continue;
                        }
                        if (vald == 0)
                        {
                            continue;
                        }
                        if (vald > 1.7 || vald < 0)
                        {
                            ganyouUP.ForeColor = Color.Red;
                        }
                        ganyouUP.Text = vald.ToString();
                    }

                    if (p_id == "6A67F0E229964527AB541B5DD318E2C3")
                    {
                        float vald = TmoShare.GetValueFromJson <float>(row["qr_result"].ToString());
                        if (vald == 0)
                        {
                            continue;
                        }
                        if (vald == 0)
                        {
                            continue;
                        }
                        if (vald > 3.12 || vald < 0)
                        {
                            dimiUP.ForeColor = Color.Red;
                        }
                        dimiUP.Text = vald.ToString();
                    }
                    if (p_id == "D2198A7F78CF4DEFA821C4F41893E415")
                    {
                        float vald = TmoShare.GetValueFromJson <float>(row["qr_result"].ToString());
                        if (vald == 0)
                        {
                            continue;
                        }
                        if (vald == 0)
                        {
                            continue;
                        }
                        if (vald > 0.2 || vald < 0.7)
                        {
                            gaomiUp.ForeColor = Color.Red;
                        }
                        gaomiUp.Text = vald.ToString();
                    }
                    if (p_id == "805E2FAC0F3B442DBBBFAFB4BF61F427")
                    {
                        if (TmoShare.GetValueFromJson <float>(row["qr_result"].ToString()) == 0)
                        {
                            continue;
                        }
                        nianodanUP.Text = TmoShare.GetValueFromJson <float>(row["qr_result"].ToString()).ToString();
                    }
                    if (p_id == "4CD308E584744A36BC499CECCADAEB18")
                    {
                        if (TmoShare.GetValueFromJson <float>(row["qr_result"].ToString()) == 0)
                        {
                            continue;
                        }
                        niaobaiUP.Text = TmoShare.GetValueFromJson <float>(row["qr_result"].ToString()).ToString();
                    }
                    if (p_id == "6501E7A0165648A6BD9409430028ADEB")
                    {
                        if (TmoShare.GetValueFromJson <float>(row["qr_result"].ToString()) == 0)
                        {
                            continue;
                        }
                        tongxingUP.Text = TmoShare.GetValueFromJson <float>(row["qr_result"].ToString()).ToString();
                    }
                    if (p_id == "C1443DA657174BC696008614A6659A99")
                    {
                        if (TmoShare.GetValueFromJson <float>(row["qr_result"].ToString()) == 0)
                        {
                            continue;
                        }
                        xuehongUP.Text = TmoShare.GetValueFromJson <float>(row["qr_result"].ToString()).ToString();
                    }
                }
                #endregion
            }
        }
Example #21
0
        public static object UpdateDicUser(string xmlData)
        {
            DataTable dt = TmoShare.getDataTableFromXML(xmlData);

            return(tmo_tuijianManager.Instance.UpdateDicUser(dt));
        }