Ejemplo n.º 1
0
        private void Query_scheduling_form_Load(object sender, EventArgs e)
        {
            showTime.showAPM(dataGridView1);

            Bdoctorinfo Bd = new Bdoctorinfo();             //显示科室选项

            comboBox1.DisplayMember   = "Office";
            comboBox1.ValueMember     = "Office";
            this.comboBox1.DataSource = Bd.QuaryOffice().Tables[0];

            comboBox3.DisplayMember   = "name";             //显示可选调班医生
            comboBox3.ValueMember     = "name";
            this.comboBox3.DataSource = Bd.QuaryDoctorNameByOffice(app.user_office).Tables[0];

            showTime.show(dataGridView1, dateTimePicker1);
        }
Ejemplo n.º 2
0
 private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
 {
     comboBox2.DisplayMember   = "name";
     comboBox2.ValueMember     = "name";
     this.comboBox2.DataSource = Bd.QuaryDoctorNameByOffice(comboBox1.SelectedValue.ToString()).Tables[0];
 }