public StandardAuditTwoAll(string text) { InitializeComponent( ); GrivColumnStyle.setColumnStyle(new DevExpress.XtraGrid.Views.Grid.GridView [] { gridView1 }); this.Text = text; _bll = new MulaolaoBll.Bll.StandardAuditTwoBll( ); tableQuery = new DataTable( ); }
public FormStandardAuditTwo( ) { InitializeComponent( ); _cd = new MulaolaoLibrary.StandardAuditTwoCDEntity( ); _ce = new MulaolaoLibrary.StandardAuditTwoCEEntity( ); _bll = new MulaolaoBll.Bll.StandardAuditTwoBll( ); tableView = new DataTable( ); tablePrintOne = new DataTable( ); tablePrintTwo = new DataTable( ); GridViewMoHuSelect.SetFilter(secView); GridViewMoHuSelect.SetFilter(bandedGridView1); GrivColumnStyle.setColumnStyle(new DevExpress.XtraGrid.Views.Grid.GridView [] { bandedGridView1 }); MulaolaoBll.UserInfoMation.tableName = this.Name; Power(this); UnEnable( ); secPro.Properties.DataSource = _bll.getProInfo( ); secPro.Properties.DisplayMember = "PQF04"; secPro.Properties.ValueMember = "PQF01"; DataTable dt = _bll.getUser( ); if (dt != null && dt.Rows.Count > 0) { DataTable da = dt.Copy( ).DefaultView.ToTable(true, "CD007"); for (int i = 0; i < da.Rows.Count; i++) { cmbUserOne.Properties.Items.Add(da.Rows [i] ["CD007"].ToString( )); } da = dt.Copy( ).DefaultView.ToTable(true, "CD008"); for (int i = 0; i < da.Rows.Count; i++) { cmbUserTwo.Properties.Items.Add(da.Rows [i] ["CD008"].ToString( )); } da = dt.Copy( ).DefaultView.ToTable(true, "CD009"); for (int i = 0; i < da.Rows.Count; i++) { cmbUserTre.Properties.Items.Add(da.Rows [i] ["CD009"].ToString( )); } da = dt.Copy( ).DefaultView.ToTable(true, "CD010"); for (int i = 0; i < da.Rows.Count; i++) { cmbUserFor.Properties.Items.Add(da.Rows [i] ["CD010"].ToString( )); } } }