示例#1
0
        private void Modify_Sform_Load(object sender, EventArgs e)
        {
            showTime.showAPM(dataGridView1);

            //显示科室选项
            comboBox1.DisplayMember   = "Office";
            comboBox1.ValueMember     = "Office";
            this.comboBox1.DataSource = Bd.QuaryOffice().Tables[0];

            showTime.show(dataGridView1, dateTimePicker1);
        }
示例#2
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);
        }