Esempio n. 1
0
        private void DisplayPersonTeShuInfo(string id_number)
        {
            label45.Text = "";
            service.personalBasicInfoService pBasicInfo = new service.personalBasicInfoService();
            DataTable dt = pBasicInfo.query(id_number);

            if (dt == null || dt.Rows.Count <= 0)
            {
                return;
            }
            string tmp = dt.Rows[0]["is_hypertension"].ToString();

            if (tmp == "")
            {
                tmp = "0";
            }
            int is_hypertension = int.Parse(tmp);

            tmp = dt.Rows[0]["is_diabetes"].ToString();
            if (tmp == "")
            {
                tmp = "0";
            }
            int is_diabetes = int.Parse(tmp);

            tmp = dt.Rows[0]["is_psychosis"].ToString();
            if (tmp == "")
            {
                tmp = "0";
            }
            int is_psychosis = int.Parse(tmp);

            tmp = dt.Rows[0]["is_tuberculosis"].ToString();
            if (tmp == "")
            {
                tmp = "0";
            }
            int is_tuberculosis = int.Parse(tmp);

            string _teshubiaoqian = "";

            if (is_hypertension != 0)
            {
                _teshubiaoqian = _teshubiaoqian + " 高";
            }
            if (is_diabetes != 0)
            {
                _teshubiaoqian = _teshubiaoqian + " 糖";
            }
            if (is_psychosis != 0)
            {
                _teshubiaoqian = _teshubiaoqian + " 精";
            }
            if (is_tuberculosis != 0)
            {
                _teshubiaoqian = _teshubiaoqian + " 结";
            }
            if (_teshubiaoqian != "")
            {
                label45.Text = _teshubiaoqian;
            }
        }