Esempio n. 1
0
        private void FormUserChange_Load(object sender, EventArgs e)
        {
            DataTable dt = bll.GetDataTableLeader( );

            comboBox1.DataSource    = dt.Copy( );
            comboBox1.DisplayMember = "DBA002";
            comboBox1.ValueMember   = "DBA001";
            comboBox2.DataSource    = dt.Copy( );
            comboBox2.DisplayMember = "DBA002";
            comboBox2.ValueMember   = "DBA001";

            tableOrder              = bll.getTableOfPQW( );
            comboBox3.DataSource    = tableOrder.DefaultView.ToTable(true, new string [] { "GZ16", "GZ32" });
            comboBox3.DisplayMember = "GZ16";
            comboBox3.ValueMember   = "GZ32";

            comboBox5.DataSource    = tableOrder.Copy( ).DefaultView.ToTable(true, new string [] { "GZ16", "GZ32" });
            comboBox5.DisplayMember = "GZ16";
            comboBox5.ValueMember   = "GZ32";

            comboBox6.DataSource    = tableOrder.DefaultView.ToTable(true, new string [] { "GZ37", "GZ38" });
            comboBox6.DisplayMember = "GZ37";
            comboBox6.ValueMember   = "GZ38";

            comboBox4.DataSource    = tableOrder.Copy( ).DefaultView.ToTable(true, new string [] { "GZ37", "GZ38" });
            comboBox4.DisplayMember = "GZ37";
            comboBox4.ValueMember   = "GZ38";

            DataTable tableC = bll.getTableOfPQWC( );

            comboBox7.DataSource    = tableC;
            comboBox7.DisplayMember = "GZ30";
            comboBox7.ValueMember   = "GZ31";

            comboBox8.DataSource    = tableC.Copy( );
            comboBox8.DisplayMember = "GZ30";
            comboBox8.ValueMember   = "GZ31";
        }