public R_FrmTargetActualWarn( ) { InitializeComponent( ); _model = new MulaolaoLibrary.TargetActualWarnLibrary( ); GridViewMoHuSelect.SetFilter(gridView1); GridViewMoHuSelect.SetFilter(gridView2); GrivColumnStyle.setColumnStyle(new DevExpress.XtraGrid.Views.Grid.GridView [] { gridView1, gridView2 }); MulaolaoBll.UserInfoMation.tableName = this.Name; }
void assign( ) { _model = _bll.GetModel(_model.IDX); textBox1.Text = 0.ToString( ); if (_model == null) { _model = new MulaolaoLibrary.TargetActualWarnLibrary( ); return; } textBox1.Text = _model.SZ004.ToString( ); }
private void query_PassDataBetweenForm(object sender, PassDataWinFormEventArgs e) { _model = new MulaolaoLibrary.TargetActualWarnLibrary( ); _model.SZ001 = e.ConOne; }
/// <summary> /// 编辑一条记录 /// </summary> /// <param name="_model"></param> /// <returns></returns> public bool UpdateOne(MulaolaoLibrary.TargetActualWarnLibrary _model) { return(_dao.UpdateOne(_model)); }
/// <summary> /// 生成记录 /// </summary> /// <param name="_model"></param> /// <returns></returns> public bool Generate(MulaolaoLibrary.TargetActualWarnLibrary _model) { return(_dao.Generate(_model)); }