示例#1
0
        public FormStatorCoilQuery(string text)
        {
            InitializeComponent( );

            this.Text = text;
            this.sign = text;

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

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

            ProductionErpBll.Bll.SingRowTableBll _bll = new ProductionErpBll.Bll.SingRowTableBll( );
            DataTable tableView = new DataTable( );

            if (this.sign.Contains("定子"))
            {
                tableView      = _bll.getTableOnly("SRT007");
                SRT008.Visible = false;
                SRT009.Visible = false;
            }
            else if (this.sign.Contains("制动器"))
            {
                tableView      = _bll.getTableOnly("SRT008");
                SRT007.Visible = false;
                SRT009.Visible = false;
            }
            else if (this.sign.Contains("总装配"))
            {
                tableView      = _bll.getTableOnly("SRT009");
                SRT007.Visible = false;
                SRT008.Visible = false;
            }
            gridControl1.DataSource = tableView;
        }
示例#2
0
        public FormSingRowTable( )
        {
            InitializeComponent( );

            _bll  = new ProductionErpBll.Bll.SingRowTableBll( );
            model = new ProductionErpEntity.SingRowTableSRTEntity( );


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

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

            //barMenu . LinksPersistInfo . RemoveAt ( toolExport . Id );
            barMenu.LinksPersistInfo.RemoveAt(toolCancel.Id);
            barMenu.LinksPersistInfo.RemoveAt(toolSave.Id);
            barMenu.LinksPersistInfo.RemoveAt(toolEdit.Id);
            barMenu.LinksPersistInfo.RemoveAt(toolAdd.Id);

            getColumns( );
        }