예제 #1
0
        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;
        }
예제 #2
0
 void assign( )
 {
     _model        = _bll.GetModel(_model.IDX);
     textBox1.Text = 0.ToString( );
     if (_model == null)
     {
         _model = new MulaolaoLibrary.TargetActualWarnLibrary( );
         return;
     }
     textBox1.Text = _model.SZ004.ToString( );
 }
예제 #3
0
 private void query_PassDataBetweenForm(object sender, PassDataWinFormEventArgs e)
 {
     _model       = new MulaolaoLibrary.TargetActualWarnLibrary( );
     _model.SZ001 = e.ConOne;
 }
예제 #4
0
 /// <summary>
 /// 编辑一条记录
 /// </summary>
 /// <param name="_model"></param>
 /// <returns></returns>
 public bool UpdateOne(MulaolaoLibrary.TargetActualWarnLibrary _model)
 {
     return(_dao.UpdateOne(_model));
 }
예제 #5
0
 /// <summary>
 /// 生成记录
 /// </summary>
 /// <param name="_model"></param>
 /// <returns></returns>
 public bool Generate(MulaolaoLibrary.TargetActualWarnLibrary _model)
 {
     return(_dao.Generate(_model));
 }