public FormSafetyManegerAndControl( ) { InitializeComponent( ); _dc = new MulaolaoLibrary.SafetyManegerAndControlDCEntity( ); _dd = new MulaolaoLibrary.SafetyManegerAndControlDDEntity( ); _de = new MulaolaoLibrary.SafetyManegerAndControlDEEntity( ); _bll = new MulaolaoBll.Bll.SafetyManegerAndControlBll( ); tableView = new DataTable( ); tableViewOne = new DataTable( ); GridViewMoHuSelect.SetFilter(secView); GridViewMoHuSelect.SetFilter(gridView1); GrivColumnStyle.setColumnStyle(new DevExpress.XtraGrid.Views.Grid.GridView [] { gridView1 }); MulaolaoBll.UserInfoMation.tableName = this.Name; Power(this); UnEnable( ); secDC002.Properties.DataSource = _bll.getProInfo( ); secDC002.Properties.DisplayMember = "PQF04"; secDC002.Properties.ValueMember = "PQF01"; //tableViewOne = _bll . getTableOfCoefficient ( ); //gridControl2 . DataSource = tableViewOne; resCheckCom.DataSource = _bll.itemNum( ); resCheckCom.DisplayMember = "DE002"; }
void setValues( ) { tableView = _bll.getTableView(" DD001='" + _dd.DD001 + "'"); gridControl1.DataSource = tableView; //tableViewOne = _bll . getTableOfCoefficient ( ); //gridControl2 . DataSource = tableViewOne; _dc = _bll.getModel(_dc.DC001); setValue( ); }
/// <summary> /// save data to r_pqdc,r_pqdd,r_pqde /// </summary> /// <param name="tableOne"></param> /// <param name="tableTwo"></param> /// <param name="_dc"></param> /// <param name="bodyList"></param> /// <param name="coeList"></param> /// <param name="logins"></param> /// <returns></returns> public bool Save(DataTable tableOne, DataTable tableTwo, MulaolaoLibrary.SafetyManegerAndControlDCEntity _dc, List <string> bodyList, List <string> coeList, string logins) { return(_dal.Save(tableOne, tableTwo, _dc, bodyList, coeList, logins)); }