Exemple #1
0
        private void aUHypertensionPatientServices_Load(object sender, EventArgs e)
        {
            this.label47.ForeColor = Color.SkyBlue;
            label47.Font           = new Font("微软雅黑", 20F, FontStyle.Bold, GraphicsUnit.Point, ((byte)(134)));
            label47.Left           = (this.panel1.Width - this.label47.Width) / 2;
            label47.BringToFront();

            //既往史疾病清单表
            DataTable dt = personalBasicInfoService.queryResident_diseases(id);

            goodsList = dt.Clone();
            for (int i = 0; i < dt.Rows.Count; i++)
            {
                DataRow drtmp = goodsList.NewRow();
                drtmp["id"] = dt.Rows[i]["id"].ToString();
                drtmp["resident_base_info_id"] = dt.Rows[i]["resident_base_info_id"].ToString();
                drtmp["disease_name"]          = dt.Rows[i]["disease_name"].ToString();
                drtmp["disease_date"]          = dt.Rows[i]["disease_date"].ToString();
                goodsList.Rows.Add(drtmp);
            }
            goodsListBind();
            ///////////////////////////////////
            //既往史手术清单表
            DataTable dt0 = personalBasicInfoService.queryOperation_record(id);

            goodsList0 = dt0.Clone();
            for (int i = 0; i < dt0.Rows.Count; i++)
            {
                DataRow drtmp = goodsList0.NewRow();
                drtmp["id"] = dt0.Rows[i]["id"].ToString();
                drtmp["resident_base_info_id"] = dt0.Rows[i]["resident_base_info_id"].ToString();
                drtmp["operation_name"]        = dt0.Rows[i]["operation_name"].ToString();
                drtmp["operation_time"]        = dt0.Rows[i]["operation_time"].ToString();
                goodsList0.Rows.Add(drtmp);
            }
            goodsList0Bind();
            ///////////////////////////////////
            //既往史外伤清单表 traumatism_record
            DataTable dt1 = personalBasicInfoService.queryTraumatism_record(id);

            goodsList1 = dt1.Clone();
            for (int i = 0; i < dt1.Rows.Count; i++)
            {
                DataRow drtmp = goodsList1.NewRow();
                drtmp["id"] = dt1.Rows[i]["id"].ToString();
                drtmp["resident_base_info_id"] = dt1.Rows[i]["resident_base_info_id"].ToString();
                drtmp["traumatism_name"]       = dt1.Rows[i]["traumatism_name"].ToString();
                drtmp["traumatism_time"]       = dt1.Rows[i]["traumatism_time"].ToString();
                goodsList1.Rows.Add(drtmp);
            }
            goodsList1Bind();
            ///////////////////////////////////
            //既往史输血清单表 metachysis_record
            DataTable dt2 = personalBasicInfoService.queryMetachysis_record(id);

            goodsList2 = dt2.Clone();
            for (int i = 0; i < dt2.Rows.Count; i++)
            {
                DataRow drtmp = goodsList2.NewRow();
                drtmp["id"] = dt2.Rows[i]["id"].ToString();
                drtmp["resident_base_info_id"] = dt2.Rows[i]["resident_base_info_id"].ToString();
                drtmp["metachysis_reasonn"]    = dt2.Rows[i]["metachysis_reasonn"].ToString();
                drtmp["metachysis_time"]       = dt2.Rows[i]["metachysis_time"].ToString();
                goodsList2.Rows.Add(drtmp);
            }
            goodsList2Bind();
            ///////////////////////////////////
            //家族史表 family_record
            DataTable dt3 = personalBasicInfoService.queryFamily_record(id);

            goodsList3 = dt3.Clone();
            for (int i = 0; i < dt3.Rows.Count; i++)
            {
                DataRow drtmp = goodsList3.NewRow();
                drtmp["id"] = dt3.Rows[i]["id"].ToString();
                drtmp["resident_base_info_id"] = dt3.Rows[i]["resident_base_info_id"].ToString();
                drtmp["relation"]     = dt3.Rows[i]["relation"].ToString();
                drtmp["disease_name"] = dt3.Rows[i]["disease_name"].ToString();
                goodsList3.Rows.Add(drtmp);
            }
            goodsList3Bind();
            ///////////////////////////////////
        }
Exemple #2
0
        private void aUHypertensionPatientServices_Load(object sender, EventArgs e)
        {
            this.label47.ForeColor = Color.SkyBlue;
            label47.Font           = new Font("微软雅黑", 20F, FontStyle.Bold, GraphicsUnit.Point, ((byte)(134)));
            label47.Left           = (this.panel1.Width - this.label47.Width) / 2;
            label47.BringToFront();

            DataTable dtno = Common.GetNationDataTable(1);

            this.comboBox1.DataSource    = dtno;   //绑定数据源
            this.comboBox1.DisplayMember = "name"; //显示给用户的数据集表项
            this.comboBox1.ValueMember   = "id";   //操作时获取的值
            if (mzid != "")
            {
                this.comboBox1.SelectedValue = mzid;
            }
            //既往史疾病清单表
            DataTable dt = personalBasicInfoService.queryResident_diseases(id);

            goodsList = dt.Clone();
            for (int i = 0; i < dt.Rows.Count; i++)
            {
                DataRow drtmp = goodsList.NewRow();
                drtmp["id"] = dt.Rows[i]["id"].ToString();
                drtmp["resident_base_info_id"] = dt.Rows[i]["resident_base_info_id"].ToString();
                drtmp["disease_name"]          = dt.Rows[i]["disease_name"].ToString();
                drtmp["disease_date"]          = dt.Rows[i]["disease_date"].ToString();
                drtmp["disease_type"]          = dt.Rows[i]["disease_type"].ToString();
                goodsList.Rows.Add(drtmp);
            }
            goodsListBind();
            ///////////////////////////////////
            //既往史手术清单表
            DataTable dt0 = personalBasicInfoService.queryOperation_record(id);

            goodsList0 = dt0.Clone();
            for (int i = 0; i < dt0.Rows.Count; i++)
            {
                DataRow drtmp = goodsList0.NewRow();
                drtmp["id"] = dt0.Rows[i]["id"].ToString();
                drtmp["resident_base_info_id"] = dt0.Rows[i]["resident_base_info_id"].ToString();
                drtmp["operation_name"]        = dt0.Rows[i]["operation_name"].ToString();
                drtmp["operation_time"]        = dt0.Rows[i]["operation_time"].ToString();
                drtmp["operation_code"]        = dt0.Rows[i]["operation_code"].ToString();
                goodsList0.Rows.Add(drtmp);
            }
            goodsList0Bind();
            ///////////////////////////////////
            //既往史外伤清单表 traumatism_record
            DataTable dt1 = personalBasicInfoService.queryTraumatism_record(id);

            goodsList1 = dt1.Clone();
            for (int i = 0; i < dt1.Rows.Count; i++)
            {
                DataRow drtmp = goodsList1.NewRow();
                drtmp["id"] = dt1.Rows[i]["id"].ToString();
                drtmp["resident_base_info_id"] = dt1.Rows[i]["resident_base_info_id"].ToString();
                drtmp["traumatism_name"]       = dt1.Rows[i]["traumatism_name"].ToString();
                drtmp["traumatism_time"]       = dt1.Rows[i]["traumatism_time"].ToString();
                drtmp["traumatism_code"]       = dt1.Rows[i]["traumatism_code"].ToString();
                goodsList1.Rows.Add(drtmp);
            }
            goodsList1Bind();
            ///////////////////////////////////
            //既往史输血清单表 metachysis_record
            DataTable dt2 = personalBasicInfoService.queryMetachysis_record(id);

            goodsList2 = dt2.Clone();
            for (int i = 0; i < dt2.Rows.Count; i++)
            {
                DataRow drtmp = goodsList2.NewRow();
                drtmp["id"] = dt2.Rows[i]["id"].ToString();
                drtmp["resident_base_info_id"] = dt2.Rows[i]["resident_base_info_id"].ToString();
                drtmp["metachysis_reasonn"]    = dt2.Rows[i]["metachysis_reasonn"].ToString();
                drtmp["metachysis_time"]       = dt2.Rows[i]["metachysis_time"].ToString();
                drtmp["metachysis_code"]       = dt2.Rows[i]["metachysis_code"].ToString();
                goodsList2.Rows.Add(drtmp);
            }
            goodsList2Bind();
            ///////////////////////////////////
            //家族史表 family_record
            DataTable dt3 = personalBasicInfoService.queryFamily_record(id);

            goodsList3 = dt3.Clone();
            for (int i = 0; i < dt3.Rows.Count; i++)
            {
                DataRow drtmp = goodsList3.NewRow();
                drtmp["id"] = dt3.Rows[i]["id"].ToString();
                drtmp["resident_base_info_id"] = dt3.Rows[i]["resident_base_info_id"].ToString();
                drtmp["relation"]     = dt3.Rows[i]["relation"].ToString();
                drtmp["disease_name"] = dt3.Rows[i]["disease_name"].ToString();
                drtmp["disease_type"] = dt3.Rows[i]["disease_type"].ToString();
                goodsList3.Rows.Add(drtmp);
            }
            goodsList3Bind();
        }