Esempio n. 1
0
        public Content1(string polis)
        {
            number_polis = polis;
            InitializeComponent();

            ColumnsCreator.GetData(comboBox1, "view_docktors");
            ColumnsCreator.GetData(comboBox2, "fun_sel_get_time");
        }
Esempio n. 2
0
        public Content2(string polis)
        {
            number_polis = polis;
            InitializeComponent();


            ColumnsCreator.GetData(dataGridView1, "fun_sel_talons");
        }
Esempio n. 3
0
        public Content2()
        {
            InitializeComponent();
            this.Dock = DockStyle.Fill;

            ColumnsCreator.GetData(comboBox2, "view_offices");
            comboBox2.DataSource    = DataBase.Select("view_offices").DefaultView;
            dateTimePicker1.MaxDate = DateTime.Today;
            dateTimePicker1.Value   = DateTime.Today.AddYears(-20);
        }
Esempio n. 4
0
        public Content1()
        {
            InitializeComponent();

            ColumnsCreator.GetData(comboBox1, "view_streets");
            ColumnsCreator.GetData(comboBox2, "fun_sel_building");
            ColumnsCreator.GetData(comboBox4, "employments");
            ColumnsCreator.GetData(comboBox5, "view_lgots");

            this.comboBox5.DrawMode  = DrawMode.OwnerDrawFixed;
            this.comboBox5.DrawItem += new DrawItemEventHandler(comboBox5_DrawItem);
        }
Esempio n. 5
0
        public Content2()
        {
            InitializeComponent();

            ColumnsCreator.GetData(dataGridView1, "fun_sel_template");
            ColumnsCreator.GetData(comboBox1, "view_templnames");
            ColumnsCreator.GetData(comboBox2, "fun_sel_doctors_by_office");


            comboBox1.DropDownStyle = ComboBoxStyle.DropDownList;
            dataGridView1.EditMode  = DataGridViewEditMode.EditOnEnter;
            set_combo();
        }
Esempio n. 6
0
 private void comboBox2_SelectedIndexChanged(object sender, EventArgs e)
 {
     panel2.Visible = false;
     if (comboBox2.Items.Count != 0)
     {
         if (comboBox2.SelectedIndex != -1)
         {
             ColumnsCreator.GetData(comboBox3, "fun_sel_post_in_office");
             comboBox3.DataSource    = DataBase.Select("fun_sel_post_in_office", comboBox2.SelectedValue).DefaultView;
             comboBox3.SelectedIndex = -1;
         }
     }
 }
Esempio n. 7
0
        private void Content2_VisibleChanged(object sender, EventArgs e)
        {
            switcher = false;
            comboBox4.SelectedIndex = -1;

            if (this.Visible)
            {
                comboBox4.DataSource = DataBase.Select("view_workers");
                ColumnsCreator.GetData(comboBox4, "view_workers");

                comboBox4.SelectedIndex = -1;
                switcher = true;
                comboBox4.SelectedIndex = 0;
            }
        }
Esempio n. 8
0
        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            panel2.Visible = false;

            switch (comboBox1.SelectedIndex)
            {
            case -1:
                label2.Visible          = false;
                comboBox2.Visible       = false;
                label3.Visible          = false;
                comboBox3.Visible       = false;
                comboBox2.SelectedIndex = -1;
                break;

            case 0:
                label2.Visible          = true;
                comboBox2.Visible       = true;
                comboBox2.SelectedIndex = 0;
                label3.Visible          = true;
                comboBox3.Visible       = true;
                break;

            case 1:
            case 2:
                label2.Visible          = false;
                comboBox2.Visible       = false;
                label3.Visible          = true;
                comboBox3.Visible       = true;
                comboBox2.SelectedIndex = -1;

                char ch;
                if (comboBox1.SelectedIndex == 1)
                {
                    ch = 'H';
                }
                else
                {
                    ch = 'A';
                }

                ColumnsCreator.GetData(comboBox3, "fun_sel_post_in_depart");
                comboBox3.DataSource    = DataBase.Select("fun_sel_post_in_depart", ch);
                comboBox3.SelectedIndex = -1;
                break;
            }
        }
Esempio n. 9
0
        public Content1()
        {
            InitializeComponent();
            this.Dock = DockStyle.Fill;

            ColumnsCreator.GetData(dataGridView1, "fun_sel_graph");
            dataGridView1.EditMode = DataGridViewEditMode.EditOnEnter;

            //dateTimePicker
            DateTime date = DateTime.Today;

            dateTimePicker1.MinDate = date;
            dateTimePicker1.MaxDate = date.AddMonths(1);
            dateTimePicker1.Value   = date;

            set_combo();
        }
Esempio n. 10
0
        public Content4()
        {
            InitializeComponent();
            menu = 1;

            dateTimePicker1.MinDate = DateTime.Today;
            dateTimePicker1.MaxDate = DateTime.Today.AddMonths(1);

            ColumnsCreator.GetData(dataGridView1, "fun_sel_graph_with_office_and_date");

            this.panel3.Controls.Add(new MyMenu(
                                         "Терапевтическое отделение",
                                         "Хирургическое отделение",
                                         "Детское отделение",
                                         "Стоматологическое отделение"
                                         ));
            ((Label)panel3.Controls[0].Controls[0]).Click += new System.EventHandler(this.label5_Click);
            ((Label)panel3.Controls[0].Controls[1]).Click += new System.EventHandler(this.label4_Click);
            ((Label)panel3.Controls[0].Controls[2]).Click += new System.EventHandler(this.label3_Click);
            ((Label)panel3.Controls[0].Controls[3]).Click += new System.EventHandler(this.label2_Click);
        }
Esempio n. 11
0
 public Content2()
 {
     InitializeComponent();
     ColumnsCreator.GetData(dataGridView1, "view_patients_district");
 }
Esempio n. 12
0
        public Talon()
        {
            InitializeComponent();

            ColumnsCreator.GetData(dataGridView1, "fun_sel_talons");
        }
Esempio n. 13
0
        public Record()
        {
            InitializeComponent();

            ColumnsCreator.GetData(comboBox2, "fun_sel_get_time");
        }
Esempio n. 14
0
        public Doctor()
        {
            InitializeComponent();

            ColumnsCreator.GetData(dataGridView1, "fun_sel_doctors_with_post");
        }