Ejemplo n.º 1
0
        public FormMaPlate(LineProductMesEntityu.MachinePlatEntity model)
        {
            InitializeComponent( );

            _model = new LineProductMesEntityu.MachinePlatEntity( );
            _bll   = new LineProductMesBll.Bll.MachinePlatBll( );

            GridViewMoHuSelect.SetFilter(view);
            FieldInfo fi = typeof(XPaint).GetField("graphics", BindingFlags.Static | BindingFlags.NonPublic);

            fi.SetValue(null, new DrawXPaint( ));

            getTable( );

            this._model = model;
            setValue( );

            if (model == null || model.idx < 1)
            {
                this.Text      = this.Text + "新增";
                txtMAP001.Text = _bll.getOddNum( );
            }
            else
            {
                this.Text = this.Text + "编辑";
            }
        }
Ejemplo n.º 2
0
        public FormMachinePlat( )
        {
            InitializeComponent( );

            model = new LineProductMesEntityu.MachinePlatEntity( );
            _bll  = new LineProductMesBll.Bll.MachinePlatBll( );

            GridViewMoHuSelect.SetFilter(gridView1);
            FieldInfo fi = typeof(XPaint).GetField("graphics", BindingFlags.Static | BindingFlags.NonPublic);

            fi.SetValue(null, new DrawXPaint( ));

            ToolBarContain.ToolbarsC(barTool, new DevExpress.XtraBars.BarItem [] { toolCanecl, toolSave, toolPrint, toolExamin });

            Query( );
        }