Beispiel #1
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( );
        }
Beispiel #2
0
        public FormBatOpera(string text, DataTable table)
        {
            InitializeComponent( );

            _bll = new LineProductMesBll.Bll.ProductPlanPreviewBll( );

            this.Text = text;

            if (text.Equals("增加排产天数"))
            {
                P3.Visible = P4.Visible = P6.Visible = false;
            }
            if (text.Equals("批量清空"))
            {
                P5.Visible = P6.Visible = false;
            }
            if (text.Equals("批量分摊"))
            {
                P5.Visible = false;
            }

            this.table = table;
            gridControl1.DataSource = this.table;
        }