Esempio n. 1
0
        /// <summary>
        /// 收费价格初始化
        /// </summary>
        private void charge_load()
        {
            DataTable charge_table = new DataTable();

            charge_table = Docotor.charge_search(comboBox4.SelectedItem.ToString());
            foreach (DataRow row in charge_table.Rows)
            {
                string charge_items = row[0].ToString();
                comboBox7.Items.Add(charge_items);
            }
            charge_table.Dispose();
            try
            {
                comboBox7.SelectedIndex = 0;
            }
            catch (Exception ex)
            {
            }
        }
Esempio n. 2
0
        /// <summary>
        /// 过敏源的初始化
        /// </summary>
        private void all_load()
        {
            DataTable all_table = new DataTable();

            all_table = Docotor.all_search();
            foreach (DataRow row in all_table.Rows)
            {
                string all_items = row[0].ToString();
                comboBox6.Items.Add(all_items);
            }
            all_table.Dispose();
            try
            {
                comboBox6.SelectedIndex = 0;
            }
            catch (Exception ex)
            {
            }
        }
Esempio n. 3
0
        /// <summary>
        /// 初始化医生
        /// </summary>
        private void doc_load()
        {
            DataTable doc_table = new DataTable();

            doc_table = Docotor.doc_search(comboBox2.SelectedItem.ToString());
            foreach (DataRow row in doc_table.Rows)
            {
                string doc_items = row[0].ToString();
                comboBox4.Items.Add(doc_items);
            }
            doc_table.Dispose();
            try
            {
                comboBox4.SelectedIndex = 0;
            }
            catch (Exception ex)
            {
                MBox.Warn("该科室仍无医师!");
            }
        }
Esempio n. 4
0
        /// <summary>
        /// 时间段的初始化
        /// </summary>
        private void time_load()
        {
            DataTable time_table = new DataTable();

            time_table = Docotor.time_search(comboBox5.SelectedItem.ToString(), comboBox4.SelectedItem.ToString());
            foreach (DataRow row in time_table.Rows)
            {
                string time_items = row[0].ToString();
                comboBox9.Items.Add(time_items);
            }
            time_table.Dispose();
            try
            {
                comboBox9.SelectedIndex = 0;
            }
            catch (Exception ex)
            {
                MBox.Warn("已满号!");
            }
        }