コード例 #1
0
        public FormSafetyManegerAndControl( )
        {
            InitializeComponent( );

            _dc          = new MulaolaoLibrary.SafetyManegerAndControlDCEntity( );
            _dd          = new MulaolaoLibrary.SafetyManegerAndControlDDEntity( );
            _de          = new MulaolaoLibrary.SafetyManegerAndControlDEEntity( );
            _bll         = new MulaolaoBll.Bll.SafetyManegerAndControlBll( );
            tableView    = new DataTable( );
            tableViewOne = new DataTable( );

            GridViewMoHuSelect.SetFilter(secView);
            GridViewMoHuSelect.SetFilter(gridView1);
            GrivColumnStyle.setColumnStyle(new DevExpress.XtraGrid.Views.Grid.GridView [] { gridView1 });
            MulaolaoBll.UserInfoMation.tableName = this.Name;

            Power(this);
            UnEnable( );

            secDC002.Properties.DataSource    = _bll.getProInfo( );
            secDC002.Properties.DisplayMember = "PQF04";
            secDC002.Properties.ValueMember   = "PQF01";

            //tableViewOne = _bll . getTableOfCoefficient ( );
            //gridControl2 . DataSource = tableViewOne;

            resCheckCom.DataSource    = _bll.itemNum( );
            resCheckCom.DisplayMember = "DE002";
        }
コード例 #2
0
        private void yanpinchangqiancehuaAll_Load(object sender, EventArgs e)
        {
            GridViewMoHuSelect.SetFilter(gridView1);
            assignMent( );

            userControl11.OnPageChanged += new EventHandler(userControl11_OnPageChanged);
        }
コード例 #3
0
        public FormFeedTest( )
        {
            InitializeComponent( );

            _cn       = new MulaolaoLibrary.FeedTestCNEntity( );
            _co       = new MulaolaoLibrary.FeedTestCOEntity( );
            _bll      = new MulaolaoBll.Bll.FeedTestBll( );
            tableView = new DataTable( );

            GridViewMoHuSelect.SetFilter(secView);
            GridViewMoHuSelect.SetFilter(gridView1);
            GrivColumnStyle.setColumnStyle(new DevExpress.XtraGrid.Views.Grid.GridView [] { gridView1 });
            MulaolaoBll.UserInfoMation.tableName = this.Name;

            Power(this);
            UnEnable( );

            lupSup.Properties.DataSource    = _bll.getSupplier( );
            lupSup.Properties.DisplayMember = "DGA003";
            lupSup.Properties.ValueMember   = "DGA001";

            secPro.Properties.DataSource    = _bll.getProductInfo( );
            secPro.Properties.DisplayMember = "PQF04";
            secPro.Properties.ValueMember   = "PQF01";
        }
コード例 #4
0
ファイル: ShenChanJinDuJiHuaAll.cs プロジェクト: icprog/MLL
        private void ShenChanJinDuJiHuaAll_Load(object sender, EventArgs e)
        {
            GridViewMoHuSelect.SetFilter(gridView1);
            assginMent( );

            userControl11.OnPageChanged += new EventHandler(userControl11_OnPageChanged);
        }
コード例 #5
0
        private void OtherExpenseStatementAll_Load(object sender, EventArgs e)
        {
            GridViewMoHuSelect.SetFilter(gridView1);
            assignMent( );

            userControl11.OnPageChanged += new EventHandler(userControl11_OnPageChanged);
        }
コード例 #6
0
ファイル: DetailedDeductionAll.cs プロジェクト: icprog/MLL
        private void DetailedDeductionAll_Load(object sender, EventArgs e)
        {
            GridViewMoHuSelect.SetFilter(gridView1);
            assignMent( );

            userControl11.OnPageChanged += new EventHandler(userControl11_OnPageChanged);
        }
コード例 #7
0
ファイル: WaiXiancontractAll.cs プロジェクト: icprog/MLL
        private void WaiXiancontractAll_Load(object sender, EventArgs e)
        {
            GridViewMoHuSelect.SetFilter(new DevExpress.XtraGrid.Views.Grid.GridView [] { gridView1, gridView2, gridView3, gridView4, gridView5, gridView6, gridView7, gridView8, gridview9 });
            assignMent( );

            userControl11.OnPageChanged += new EventHandler(userControl11_OnPageChanged);
        }
コード例 #8
0
ファイル: TestResultRecordOneAll.cs プロジェクト: icprog/MLL
        private void TestResultRecordOneAll_Load(object sender, EventArgs e)
        {
            GridViewMoHuSelect.SetFilter(gridView1);
            assignMent( );

            userControl11.OnPageChanged += new EventHandler(userControl11_OnPageChanged);
        }
コード例 #9
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 + "编辑";
            }
        }
コード例 #10
0
        private void SafetyManegerAndControlAll_Load(object sender, EventArgs e)
        {
            GridViewMoHuSelect.SetFilter(gridView1);
            assignMent( );

            userControl11.OnPageChanged += new EventHandler(userControl11_OnPageChanged);
        }
コード例 #11
0
ファイル: FormProductPlan.cs プロジェクト: icprog/MiKe
        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;
            //}
        }
コード例 #12
0
ファイル: FormQuotationQuery.cs プロジェクト: icprog/MLL
        private void FormQuotationQuery_Load(object sender, EventArgs e)
        {
            GridViewMoHuSelect.SetFilter(gridView1);
            assignMent( );

            userControl11.OnPageChanged += new EventHandler(userControl11_OnPageChanged);
        }
コード例 #13
0
        public FormSanitationCheck( )
        {
            InitializeComponent( );

            header = new MulaolaoLibrary.SanitationCheckHeaderEntity( );
            body   = new MulaolaoLibrary.SanitationCheckBodyEntity( );
            _bll   = new MulaolaoBll.Bll.SanitationCheckBll( );

            GridViewMoHuSelect.SetFilter(new DevExpress.XtraGrid.Views.Grid.GridView [] { gridView1, View1, View2 });
            GrivColumnStyle.setColumnStyle(new DevExpress.XtraGrid.Views.Grid.GridView [] { gridView1, View1, View2 });

            toolStrip1.Items.Remove(toolReview);
            toolStrip1.Items.Remove(toolMaintain);
            toolStrip1.Items.Remove(toolLibrary);
            toolStrip1.Items.Remove(toolStorage);
            toolStrip1.Items.Remove(toolcopy);

            controlClear( );
            controlUnEnable( );

            Edit1.DataSource    = _bll.getTableWork( );
            Edit1.DisplayMember = "DAA002";
            Edit1.ValueMember   = "DAA002";

            Edit2.DataSource    = _bll.getTableGroup( );
            Edit2.DisplayMember = "DAA002";
            Edit2.ValueMember   = "DAA002";
        }
コード例 #14
0
        private void R_FrmManagePayroll_Load(object sender, EventArgs e)
        {
            GridViewMoHuSelect.SetFilter(gridView1);
            GridViewMoHuSelect.SetFilter(gridView2);
            GridViewMoHuSelect.SetFilter(gridView3);
            GridViewMoHuSelect.SetFilter(gridView4);
            Power(this);
            spList.Clear( );
            spList.AddRange(new SplitContainer[] { splitContainer1 });
            Ergodic.SpliClear(spList);
            Ergodic.SpliEnableFalse(spList);
            pageList.Clear( );
            pageList.AddRange(new TabPage[] { tabPageFor, tabPageFiv });
            Ergodic.TablePageEnableClear(pageList);
            Ergodic.TablePageEnableFalse(pageList);
            gridControl1.DataSource = gridControl2.DataSource = gridControl3.DataSource = null;
            label45.Visible         = label44.Visible = false;

            comboBox1.Items.Clear( );
            comboBox1.Items.AddRange(new string[] { "行政", "生产部" });

            DataTable de = _bll.GetDataTablePersonInCharge( );

            lookUpEdit2.Properties.DataSource    = de;
            lookUpEdit2.Properties.DisplayMember = "DBA002";
            lookUpEdit2.Properties.ValueMember   = "DBA001";

            lookUpEdit4.Properties.DataSource    = de.Copy( );
            lookUpEdit4.Properties.DisplayMember = "DBA002";
            lookUpEdit4.Properties.ValueMember   = "DBA001";

            comboBox2.DataSource    = _bll.GetDataTableCompany( );
            comboBox2.DisplayMember = "XZ003";
        }
コード例 #15
0
        private void QualityTestingALL_Load(object sender, EventArgs e)
        {
            GridViewMoHuSelect.SetFilter(gridView1);
            assignMent( );

            userControl11.OnPageChanged += new EventHandler(userControl11_OnPageChanged);
        }
コード例 #16
0
        public FormProductSpecification( )
        {
            InitializeComponent( );

            _df = new MulaolaoLibrary.ProductSpecificationDFEntity( );
            _dg = new MulaolaoLibrary.ProductSpecificationDGEntity( );
            _dh = new MulaolaoLibrary.ProductSpecificationDHEntity( );

            _bll         = new MulaolaoBll.Bll.ProductSpecificationBll( );
            tableView    = new DataTable( );
            tableViewOne = new DataTable( );
            printOne     = new DataTable( );
            printTwo     = new DataTable( );
            GridViewMoHuSelect.SetFilter(secView);
            GridViewMoHuSelect.SetFilter(gridView1);
            GrivColumnStyle.setColumnStyle(new DevExpress.XtraGrid.Views.Grid.GridView [] { gridView1 });
            MulaolaoBll.UserInfoMation.tableName = this.Name;

            Power(this);
            UnEnable( );


            secDF002.Properties.DataSource    = _bll.getProInfo( );
            secDF002.Properties.DisplayMember = "PQF04";
            secDF002.Properties.ValueMember   = "PQF01";

            //tableViewOne = _bll . getTableOfCoefficient ( );
            //gridControl2 . DataSource = tableViewOne;

            resCheckCom.DataSource    = _bll.getTableCheck( );
            resCheckCom.DisplayMember = "DH002";
        }
コード例 #17
0
 public R_Frmchejianzhurenkaohe( )
 {
     InitializeComponent( );
     GridViewMoHuSelect.SetFilter(gridView1);
     GrivColumnStyle.setColumnStyle(new DevExpress.XtraGrid.Views.Grid.GridView [] { this.gridView1, this.bandedGridView1 });
     MulaolaoBll.UserInfoMation.tableName = this.Name;
 }
コード例 #18
0
        public FormPeragg( )
        {
            InitializeComponent( );

            _model = new MulaolaoLibrary.PeraggEntity( );
            _bll   = new MulaolaoBll.Bll.PeraggBll( );

            GridViewMoHuSelect.SetFilter(gridView1);
            Power(this);
            controlUnEnable( );

            lupPerson.Properties.DataSource    = _bll.getUser( );
            lupPerson.Properties.DisplayMember = "XZ004";

            GridViewMoHuSelect.SetFilter(gridView1);
            GrivColumnStyle.setColumnStyle(new DevExpress.XtraGrid.Views.Grid.GridView [] { gridView1 });
            MulaolaoBll.UserInfoMation.tableName = this.Name;

            //lupPerson . EditValue = "黄贵洪";

            //toolStrip1 . Items . Remove ( toolReview );
            //toolStrip1 . Items . Remove ( toolExport );
            //toolStrip1 . Items . Remove ( toolPrint );
            //toolStrip1 . Items . Remove ( toolStorage );
            //toolStrip1 . Items . Remove ( toolLibrary );
            //toolStrip1 . Items . Remove ( toolCancel );
            //toolStrip1 . Items . Remove ( toolcopy );
            //toolStrip1 . Items . Remove ( toolMaintain );
        }
コード例 #19
0
ファイル: R_FrmreviewPeople.cs プロジェクト: icprog/MLL
 public R_FrmreviewPeople(Form1 fm)
 {
     this.MdiParent = fm;
     InitializeComponent( );
     GridViewMoHuSelect.SetFilter(gridView1);
     GrivColumnStyle.setColumnStyle(new DevExpress.XtraGrid.Views.Grid.GridView [] { gridView1 });
 }
コード例 #20
0
        public FormTestResultRecord( )
        {
            InitializeComponent( );

            _cr          = new MulaolaoLibrary.TestResultRecordCREntity( );
            _cs          = new MulaolaoLibrary.TestResultRecordCSEntity( );
            _ct          = new MulaolaoLibrary.TestResultRecordCTEntity( );
            _bll         = new MulaolaoBll.Bll.TestResultRecordBll( );
            tableView    = new DataTable( );
            tableViewOne = new DataTable( );

            GridViewMoHuSelect.SetFilter(secView);
            GridViewMoHuSelect.SetFilter(gridView1);
            GridViewMoHuSelect.SetFilter(gridView2);
            GrivColumnStyle.setColumnStyle(new DevExpress.XtraGrid.Views.Grid.GridView [] { gridView1, gridView2 });
            MulaolaoBll.UserInfoMation.tableName = this.Name;

            Power(this);
            UnEnable( );

            secPro.Properties.DataSource    = _bll.getProInfo( );
            secPro.Properties.DisplayMember = "PQF04";
            secPro.Properties.ValueMember   = "PQF01";

            reCheckBox.DataSource    = _bll.getTableOfNum( );
            reCheckBox.DisplayMember = "CT";

            tableViewOne            = _bll.getTableViewOne( );
            gridControl2.DataSource = tableViewOne;
        }
コード例 #21
0
ファイル: FrmGongZiCe.cs プロジェクト: icprog/MLL
        private void FrmGongZiCe_Load(object sender, EventArgs e)
        {
            Power(this);

            spList.Clear( );
            spList.Add(splitContainer1);
            Ergodic.SpliClear(spList);
            gridControl1.DataSource = null;
            Ergodic.SpliEnableFalse(spList);
            textBox1.Enabled = false;
            label45.Visible  = false;

            lookUpEdit1.Properties.ShowHeader = false;
            lookUpEdit2.Properties.ShowHeader = false;
            lookUpEdit3.Properties.ShowHeader = false;

            lookUpEdit2.Properties.DataSource    = bll.GetDataTableLeader( );
            lookUpEdit2.Properties.DisplayMember = "DBA002";

            lookUpEdit4.Properties.DataSource    = bll.GetDataTableSta( );
            lookUpEdit4.Properties.DisplayMember = "DBA002";

            lookUpEdit1.Properties.DataSource    = bll.GetDataTableWorkShop( );
            lookUpEdit1.Properties.DisplayMember = "DBA002";

            GridViewMoHuSelect.SetFilter(gridView1);
        }
コード例 #22
0
        private void Form1_Load(object sender, EventArgs e)
        {
            GridViewMoHuSelect.SetFilter(gridView1);


            personInfor = _bll.GetDataTablePeople( );
            lookUpEdit1.Properties.DataSource    = personInfor;
            lookUpEdit1.Properties.DisplayMember = "DBA001";
            lookUpEdit1.Properties.ValueMember   = "DBA002";

            lookUpEdit4.Properties.DataSource    = personInfor.Copy( );
            lookUpEdit4.Properties.DisplayMember = "DBA001";
            lookUpEdit4.Properties.ValueMember   = "DBA002";

            lookUpEdit5.Properties.DataSource    = personInfor.Copy( );
            lookUpEdit5.Properties.DisplayMember = "DBA001";
            lookUpEdit5.Properties.ValueMember   = "DBA002";

            toolQuery.Enabled = toolAdd.Enabled = true;
            toolEdit.Enabled  = toolClear.Enabled = toolSave.Enabled = toolCancel.Enabled = false;
            StateOfControl.SpliEnableFalse(splitContainer1);

            button2.Enabled     = button1.Enabled = button4.Enabled = true;
            lookUpEdit1.Enabled = lookUpEdit3.Enabled = true;

            gd = _bll.GetDataTableWorkOrderOne( );
            lookUpEdit3.Properties.DataSource    = gd;
            lookUpEdit3.Properties.DisplayMember = "RAC001";

            //toolEdit.Visible = false;

            dateTimePicker1.Value = getDate( );
        }
コード例 #23
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( );
        }
コード例 #24
0
ファイル: FormArt.cs プロジェクト: icprog/MiKe
        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( );
        }
コード例 #25
0
        private void SailsPaymentTaxRefundAndElectricityBillAll_Load(object sender, EventArgs e)
        {
            GridViewMoHuSelect.SetFilter(gridView1);
            assignMent( );

            userControl11.OnPageChanged += new EventHandler(userControl11_OnPageChanged);
        }
コード例 #26
0
        public R_Frm266( )
        {
            InitializeComponent( );

            GridViewMoHuSelect.SetFilter(gridView1);
            GrivColumnStyle.setColumnStyle(new DevExpress.XtraGrid.Views.Grid.GridView [] { gridView1 });
        }
コード例 #27
0
        private void TeamLeaderRoutineCheckAll_Load(object sender, EventArgs e)
        {
            GridViewMoHuSelect.SetFilter(gridView1);
            assignMent( );

            userControl11.OnPageChanged += new EventHandler(userControl11_OnPageChanged);
        }
コード例 #28
0
ファイル: StandardAuditTwoAll.cs プロジェクト: icprog/MLL
        private void StandardAuditTwoAll_Load(object sender, EventArgs e)
        {
            GridViewMoHuSelect.SetFilter(gridView1);
            assignMent( );

            userControl11.OnPageChanged += new EventHandler(userControl11_OnPageChanged);
        }
コード例 #29
0
        private void CheMuJiancontractQueryAll_Load(object sender, EventArgs e)
        {
            GridViewMoHuSelect.SetFilter(gridView1);
            assignMent( );

            userControl11.OnPageChanged += new EventHandler(userControl11_OnPageChanged);
        }
コード例 #30
0
        public R_FrmJiaoMiDuJunHenTable( )
        {
            InitializeComponent( );

            GridViewMoHuSelect.SetFilter(gridView1);
            GrivColumnStyle.setColumnStyle(new DevExpress.XtraGrid.Views.Grid.GridView [] { gridView1 });
            MulaolaoBll.UserInfoMation.tableName = this.Name;
        }