예제 #1
0
        private void tabControl1_SelectedTabChanged(object sender, DevComponents.DotNetBar.TabStripTabChangedEventArgs e)
        {
            if (tabControl1.Tabs.Count > 0)
            {
                if (tabControl1.SelectedTab != null)
                {
                    ucPascInfo temp = (ucPascInfo)tabControl1.SelectedTab.Tag;
                    lblCheckDoctor.Text  = temp.Shys;
                    lblReportDoctor.Text = temp.Bgys;

                    temp.Yxxbx = temp.Yxxbx.Replace("\n", "").Replace(" ", "").Replace("\t", "").Replace("\r", ";");
                    temp.Yxxyj = temp.Yxxyj.Replace("\n", "").Replace(" ", "").Replace("\t", "").Replace("\r", ";");

                    yxx_bx = temp.Sqsj + " " + temp.Jclx + " 影像学表现:" + temp.Yxxbx;
                    yxx_yj = temp.Sqsj + " " + temp.Jclx + " 影像学意见:" + temp.Yxxyj;
                }
            }
        }
예제 #2
0
        private void frm_Pasc_Load(object sender, EventArgs e)
        {
            if (pt != null)
            {
                lblName.Text = pt.Patient_Name;
                if (pt.Gender_Code == "0")
                {
                    lblSex.Text = "男";
                }
                else
                {
                    lblSex.Text = "女";
                }
                lblAge.Text = pt.Age.ToString();
                if (pt.Birthday != "")
                {
                    lblBirthday.Text = Convert.ToDateTime(pt.Birthday).ToShortDateString();
                }
                lblSickNo.Text = pt.PId; //病案号
                if (App.UserAccount.CurrentSelectRole.Role_type == "O")
                {
                    btnOutPutYxxbx.Visible = false;
                    btnOutPutYxxyj.Visible = false;
                }
            }

            DataSet ds = App.GetDataSet("select * from  t_pasc_data where ZYH='" + pt.PId + "'");

            this.tabControl1.Tabs.Clear();
            string yxh;
            string jch;
            string shys;
            string bgys;
            string sqks;
            string sqbw;
            string sqys;
            string jcff;
            string yxxbx;
            string yxxyj;
            string sqsj;
            string jclx;

            if (ds != null)
            {
                sqsj = string.Empty;
                for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
                {
                    yxh   = ds.Tables[0].Rows[i]["YXH"].ToString();
                    jch   = ds.Tables[0].Rows[i]["JCH"].ToString();
                    shys  = ds.Tables[0].Rows[i]["SHYD"].ToString();
                    bgys  = ds.Tables[0].Rows[i]["BGYS"].ToString();
                    sqks  = ds.Tables[0].Rows[i]["SQKS"].ToString();
                    sqbw  = ds.Tables[0].Rows[i]["JCBW"].ToString();
                    sqys  = ds.Tables[0].Rows[i]["SQYS"].ToString();
                    jcff  = ds.Tables[0].Rows[i]["METHOD"].ToString();
                    yxxbx = ds.Tables[0].Rows[i]["EYESEE"].ToString();
                    yxxyj = ds.Tables[0].Rows[i]["ZDBG"].ToString();
                    //sqsj = ds.Tables[0].Rows[i]["JCSJ"].ToString();
                    jclx = ds.Tables[0].Rows[i]["JCLX"].ToString();
                    if (sqsj.Trim() != "")
                    {
                        sqsj = Convert.ToDateTime(sqsj).ToShortDateString();
                    }
                    ucPascInfo pascinfo = new ucPascInfo(yxh, jch, shys, bgys, sqks, sqbw, sqys, jcff, yxxbx, yxxyj, sqsj, jclx, pt.PId);
                    pascinfo.Dock = DockStyle.Fill;
                    DevComponents.DotNetBar.TabControlPanel tabctpnDoc = new DevComponents.DotNetBar.TabControlPanel();
                    tabctpnDoc.AutoScroll = true;
                    DevComponents.DotNetBar.TabItem page = new DevComponents.DotNetBar.TabItem();
                    page.Text            = jch + "--" + jclx;
                    tabctpnDoc.TabItem   = page;
                    tabctpnDoc.Dock      = DockStyle.Fill;
                    page.AttachedControl = tabctpnDoc;
                    page.Tag             = pascinfo;
                    tabctpnDoc.Controls.Add(pascinfo);
                    this.tabControl1.Controls.Add(tabctpnDoc);
                    this.tabControl1.Tabs.Add(page);
                    this.tabControl1.Refresh();
                    this.tabControl1.SelectedTab = page;
                }
            }
        }