예제 #1
0
파일: admin.cs 프로젝트: GM303/Hospital
        private void 科室医生信息维护ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            UCDeptDocInfoMaintain UC = new UCDeptDocInfoMaintain();

            groupBox1.Controls.Clear();
            UC.Location = groupBox1.Location;
            groupBox1.Controls.Add(UC);
            groupBox1.Text = "科室医生信息维护";
        }
예제 #2
0
파일: admin.cs 프로젝트: GM303/Hospital
        public admin(login l)
        {
            InitializeComponent();
            this.l = l;
            UCDeptDocInfoMaintain UC = new UCDeptDocInfoMaintain();

            groupBox1.Controls.Clear();
            UC.Location = groupBox1.Location;
            groupBox1.Controls.Add(UC);
            groupBox1.Text = "科室医生信息维护";
        }
예제 #3
0
 public UCUpdateDepartment(UCDeptDocInfoMaintain UC)
 {
     InitializeComponent();
     this.UC = UC;
     if (this.UC.modifyFlag == 0)
     {
         button1.Enabled = false;
     }
     else
     {
         textBox1.Text = UC.id;
         textBox2.Text = UC.name;
         label3.Text   = "";
     }
 }
예제 #4
0
        public UCCreatDoctor(UCDeptDocInfoMaintain UC)
        {
            InitializeComponent();
            this.UC = UC;
            comboBox1.Items.Add("医生");
            comboBox1.Items.Add("科室主任");

            comboBox2.Items.Add("在岗");
            comboBox2.Items.Add("离岗");
            if (UC.modifyFlag == 0)
            {
                textBox4.Text  = UC.deptid;
                comboBox1.Text = "医生";
                comboBox2.Text = "在岗";
            }
            else
            {
                dname = UC.name;
                did   = UC.id;
                DataTable dt = new DataTable();
                dt            = Fill("select * from doctorinfo where did='" + did + "'");
                textBox1.Text = dt.Rows[0]["dname"].ToString();
                textBox2.Text = dt.Rows[0]["dsex"].ToString();
                textBox3.Text = dt.Rows[0]["did"].ToString();
                textBox4.Text = dt.Rows[0]["deptid"].ToString();
                textBox6.Text = dt.Rows[0]["account"].ToString();
                if (dt.Rows[0]["isDirector"].ToString() == "0")
                {
                    comboBox1.Text = "医生";
                }
                else
                {
                    comboBox1.Text = "科室主任";
                }
                if (Convert.ToInt32(dt.Rows[0]["status"]) == 1)
                {
                    comboBox2.Text = "在岗";
                }
                else
                {
                    comboBox2.Text = "离岗";
                }
            }
        }