Example #1
0
        public FormArt( )
        {
            InitializeComponent( );

            model    = new LineProductMesEntityu.ArtEntity( );
            body     = new LineProductMesEntityu.ArsEntity( );
            _bll     = new LineProductMesBll.Bll.ArtBll( );
            _bodyOne = new LineProductMesEntityu.AruEntity( );

            //获取UI线程同步上下文
            m_SyncContext = SynchronizationContext.Current;

            GridViewMoHuSelect.SetFilter(new DevExpress.XtraGrid.Views.Grid.GridView [] { gridView1, gridView2, gridView3, View1, View4, View2, View3, gridView4 });
            GrivColumnStyle.setColumnStyle(new DevExpress.XtraGrid.Views.Grid.GridView [] { gridView1, gridView2, gridView3, View1, View4, View2, View3, gridView4 });
            FieldInfo fi = typeof(XPaint).GetField("graphics", BindingFlags.Static | BindingFlags.NonPublic);

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

            ToolBarContain.ToolbarsC(barTool, new DevExpress.XtraBars.BarButtonItem [] { toolCancellation, toolExamin });

            Query( );
            controlUnEnable( );
            controlClear( );
            InitData( );
        }
Example #2
0
        public FormProductPlanPreview( )
        {
            InitializeComponent( );

            _bll  = new LineProductMesBll.Bll.ProductPlanPreviewBll( );
            model = new LineProductMesEntityu.ProductPlanPreviewEntity( );

            GridViewMoHuSelect.SetFilter(new DevExpress.XtraGrid.Views.Grid.GridView [] { gridView1, View1 });
            GrivColumnStyle.setColumnStyle(new DevExpress.XtraGrid.Views.Grid.GridView [] { gridView1, View1 });
            FieldInfo fi = typeof(XPaint).GetField("graphics", BindingFlags.Static | BindingFlags.NonPublic);

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

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

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

            txtPRE.Properties.DataSource    = _bll.getProPlanInfo( );
            txtPRE.Properties.DisplayMember = "DEA002";
            txtPRE.Properties.ValueMember   = "PRE004";

            toolCancellation.Caption = "产线排产";

            table = new DataTable( );
            table.Columns.Add("P1", typeof(System.String));
            table.Columns.Add("P2", typeof(System.String));
            table.Columns.Add("P3", typeof(System.DateTime));
            table.Columns.Add("P4", typeof(System.DateTime));
            table.Columns.Add("P5", typeof(System.Int32));
            table.Columns.Add("P6", typeof(System.Int32));

            controlUnEnable( );
        }
Example #3
0
        public FormProductPlan(/*DataRow rowedit*/)
        {
            InitializeComponent( );

            _header = new LineProductMesEntityu.ProductPlanHeaderEntity( );
            _body   = new LineProductMesEntityu.ProductPlanBodyEntity( );
            _bll    = new LineProductMesBll.Bll.ProductPlanBll( );

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

            GridViewMoHuSelect.SetFilter(new DevExpress.XtraGrid.Views.Grid.GridView [] { 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( ));

            //toolExamin . Caption = "弃用";
            //toolCancellation . Caption = "复制";
            controlUnEnable( );
            controlClear( );

            dtTime = LineProductMesBll.UserInfoMation.sysTime;

            toolCancellation.Caption      = "生成ERP计划";
            layoutControlItem4.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
            layoutControlItem3.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;

            //if ( rowedit != null )
            //{
            //    this . rows = rowedit;
            //}
        }
Example #4
0
        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( ));
        }
Example #5
0
        public FormProControl( )
        {
            InitializeComponent( );

            _bll = new LineProductMesBll.Bll.ProControlBll( );
            GridViewMoHuSelect.SetFilter(gridView1);
            GrivColumnStyle.setColumnStyle(new DevExpress.XtraGrid.Views.Grid.GridView [] { this.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, toolExport, toolPrint, toolCancellation, toolExamin });

            Query( );
        }
Example #6
0
        public FormBoarSet( )
        {
            InitializeComponent( );

            _bll      = new LineProductMesBll.Bll.BoarSetBll( );
            tableView = new DataTable( );

            GrivColumnStyle.setColumnStyle(new DevExpress.XtraGrid.Views.Grid.GridView [] { gridView1 });
            FieldInfo fi = typeof(XPaint).GetField("graphics", BindingFlags.Static | BindingFlags.NonPublic);

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

            ToolBarContain.ToolbarsC(barTool, new DevExpress.XtraBars.BarItem [] { toolCanecl, toolExport, toolPrint, toolCancellation, toolExamin, toolDelete, toolEdit, toolAdd, toolQuery });
            InitData( );
        }
Example #7
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( );
        }
Example #8
0
        public FormLineForAssPlan(Dictionary <string, string> strDic)
        {
            InitializeComponent( );

            _bll  = new LineProductMesBll.Bll.LineForAssPlanBll( );
            model = new LineProductMesEntityu.LineForAssPlanEntity( );

            GridViewMoHuSelect.SetFilter(new DevExpress.XtraGrid.Views.Grid.GridView [] { 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( ));

            ToolBarContain.ToolbarsC(barTool, new DevExpress.XtraBars.BarItem [] { toolExport, toolPrint, toolCancellation, toolExamin, toolDelete, toolEdit, toolAdd });

            this.strDic = strDic;
        }
Example #9
0
        public FormWages( )
        {
            InitializeComponent( );

            _bll  = new LineProductMesBll.Bll.WagesBll( );
            model = new LineProductMesEntityu.WagesHeaderEntity( );

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

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

            wait.Hide( );
            layoutControlItem4.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
        }
Example #10
0
        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");
        }
Example #11
0
        public FormPower( )
        {
            InitializeComponent( );

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

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

            _bll   = new LineProductMesBll.Bll.PowerBll( );
            _model = new LineProductMesEntityu.PowerEntity( );

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

            lookUpEdit1.Properties.DataSource    = _bll.GetPerson( );
            lookUpEdit1.Properties.DisplayMember = "EMP002";
            lookUpEdit1.Properties.ValueMember   = "EMP001";
            tablePro = _bll.GetProgram( );
            lookUpEdit2.Properties.DataSource    = tablePro;
            lookUpEdit2.Properties.DisplayMember = "FOR004";
            lookUpEdit2.Properties.ValueMember   = "FOR003";

            gridView1.OptionsBehavior.Editable = false;
        }