public StandardAuditTreAll(string text) { InitializeComponent( ); GrivColumnStyle.setColumnStyle(new DevExpress.XtraGrid.Views.Grid.GridView [] { gridView1 }); this.Text = text; _bll = new MulaolaoBll.Bll.StandardAuditTreBll( ); tableQuery = new DataTable( ); }
public FormStandardAuditTre( ) { InitializeComponent( ); _cf = new MulaolaoLibrary.StandardAuditTreCFEntity( ); _cg = new MulaolaoLibrary.StandardAuditTreCGEntity( ); _bll = new MulaolaoBll.Bll.StandardAuditTreBll( ); tableView = new DataTable( ); PrintOne = new DataTable( ); PrintTwo = new DataTable( ); GridViewMoHuSelect.SetFilter(secView); GridViewMoHuSelect.SetFilter(bandedGridView1); GrivColumnStyle.setColumnStyle(new DevExpress.XtraGrid.Views.Grid.GridView [] { bandedGridView1 }); Power(this); UnEnable( ); MulaolaoBll.UserInfoMation.tableName = this.Name; 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, "CF007"); for (int i = 0; i < da.Rows.Count; i++) { cmbUserOne.Properties.Items.Add(da.Rows [i] ["CF007"].ToString( )); } da = dt.Copy( ).DefaultView.ToTable(true, "CF008"); for (int i = 0; i < da.Rows.Count; i++) { cmbUserTwo.Properties.Items.Add(da.Rows [i] ["CF008"].ToString( )); } da = dt.Copy( ).DefaultView.ToTable(true, "CF009"); for (int i = 0; i < da.Rows.Count; i++) { cmbUserTre.Properties.Items.Add(da.Rows [i] ["CF009"].ToString( )); } da = dt.Copy( ).DefaultView.ToTable(true, "CF010"); for (int i = 0; i < da.Rows.Count; i++) { cmbUserFor.Properties.Items.Add(da.Rows [i] ["CF010"].ToString( )); } } }