Beispiel #1
0
        private void comboBox2_TextChanged(object sender, EventArgs e)   //수입_항선택시(목표시)
        {
            comboBox3.Items.Clear();
            ihcode = dbhand.get_hangcode(ihang, comboBox2.Text.ToString());
            int imok_count = dbhand.count_row(imok);

            for (int i = 1; i <= imok_count; i++)
            {
                if (dbhand.mok(imok, igcode, ihcode, i) != "")
                {
                    comboBox3.Items.Add(dbhand.mok(imok, igcode, ihcode, i));
                }
            }
        }
Beispiel #2
0
        private void combo2_TextChanged(object sender, EventArgs e)   //수입_항선택
        {
            combo3.Items.Clear();
            ihcode = dbhand.get_hangcode(ihang, combo2.Text.ToString());
            int imok_count = dbhand.count_row(imok);

            for (int i = 1; i <= imok_count; i++)
            {
                if (dbhand.mok(imok, igcode, ihcode, i) != "")
                {
                    combo3.Items.Add(dbhand.mok(imok, igcode, ihcode, i));
                }
            }
            if (i_hang.Checked == true)
            {
                DataView dvi = idv;
                dvi.RowFilter            = "항코드 = " + dbhand.get_hangcode(ihang, combo2.Text);
                dataGridView1.DataSource = dvi;
            }
        }