Ejemplo n.º 1
0
        private void comboBox1_TextChanged(object sender, EventArgs e)   //수입_관선택시(항표시)
        {
            comboBox2.Items.Clear();
            comboBox3.Items.Clear();
            igcode = dbhand.get_gwancode(igwan, comboBox1.Text.ToString());
            int ihang_count = dbhand.count_row(ihang);

            for (int i = 1; i <= ihang_count; i++)
            {
                if (dbhand.hang(ihang, igcode, i) != "")
                {
                    comboBox2.Items.Add(dbhand.hang(ihang, igcode, i));
                }
            }
        }
Ejemplo n.º 2
0
        private void combo1_TextChanged(object sender, EventArgs e)   //수입_관선택
        {
            combo2.Items.Clear();
            combo3.Items.Clear();
            igcode = dbhand.get_gwancode(igwan, combo1.Text.ToString());
            int ihang_count = dbhand.count_row(ihang);

            for (int i = 1; i <= ihang_count; i++)
            {
                if (dbhand.hang(ihang, igcode, i) != "")
                {
                    combo2.Items.Add(dbhand.hang(ihang, igcode, i));
                }
            }
            if (i_gwan.Checked == true)
            {
                DataView dvi = idv;
                dvi.RowFilter            = "관코드 = " + dbhand.get_gwancode(igwan, combo1.Text);
                dataGridView1.DataSource = dvi;
            }
        }