コード例 #1
0
ファイル: FormPurProductPlan.cs プロジェクト: icprog/MiKe
        public FormPurProductPlan( )
        {
            InitializeComponent( );

            _bll  = new LineProductMesBll.Bll.SemiProductPlanBll( );
            model = new LineProductMesEntityu.SemiProductPlanEntity( );

            ToolBarContain.ToolbarsC(barTool, new DevExpress.XtraBars.BarItem [] { toolCanecl, toolSave, toolPrint, toolCancellation, toolExamin, toolDelete, toolEdit, toolAdd });
            GrivColumnStyle.setColumnStyle(treeList1);
            FieldInfo fi = typeof(XPaint).GetField("graphics", BindingFlags.Static | BindingFlags.NonPublic);

            fi.SetValue(null, new DrawXPaint( ));
        }
コード例 #2
0
ファイル: FormPurProductView.cs プロジェクト: icprog/MiKe
        public FormPurProductView( )
        {
            InitializeComponent( );

            _bll = new LineProductMesBll.Bll.SemiProductPlanBll( );

            ToolBarContain.ToolbarsC(barTool, new DevExpress.XtraBars.BarItem [] { toolCanecl, toolSave, toolPrint, toolCancellation, toolExamin, toolDelete, toolEdit });
            FieldInfo fi = typeof(XPaint).GetField("graphics", BindingFlags.Static | BindingFlags.NonPublic);

            fi.SetValue(null, new DrawXPaint( ));
            GridViewMoHuSelect.SetFilter(new DevExpress.XtraGrid.Views.Grid.GridView [] { gridView1, View1 });

            toolAdd.Caption = "采购计划";

            txtPRE.Properties.DataSource    = _bll.getProTableP( );
            txtPRE.Properties.DisplayMember = "DEA002";
            txtPRE.Properties.ValueMember   = "QAB001";

            dt           = LineProductMesBll.UserInfoMation.sysTime;
            dtStart.Text = dt.ToString("yyyy-MM-dd");
            dtEnd.Text   = dt.AddMonths(3).ToString("yyyy-MM-dd");
        }