public FormSupplierForMould( ) { InitializeComponent( ); GridViewMoHuSelect.SetFilter(gridView1); GrivColumnStyle.setColumnStyle(new DevExpress.XtraGrid.Views.Grid.GridView [] { gridView1 }); FieldInfo fi = typeof(XPaint).GetField("graphics", BindingFlags.Static | BindingFlags.NonPublic); fi.SetValue(null, new DrawXPaint( )); model = new LineProductMesEntityu.SupplierForMouldEntity( ); _bll = new LineProductMesBll.Bll.SupplierForMouldBll( ); ToolBarContain.ToolbarsC(barTool, new DevExpress.XtraBars.BarItem [] { toolCanecl, toolSave, toolPrint, toolExamin }); Query( ); }
public FormSupplierMould(LineProductMesEntityu.SupplierForMouldEntity entity) { InitializeComponent( ); _bll = new LineProductMesBll.Bll.SupplierForMouldBll( ); model = new LineProductMesEntityu.SupplierForMouldEntity( ); getPUA( ); model = entity; if (model != null && model.idx > 0) { setValue( ); } else { txtSFM001.Text = _bll.getOddNum( ); } }