Beispiel #1
0
        public WarehouseReceiptEdit(string text, MulaolaoLibrary.WarehouseReceiptWAREntity _war)
        {
            InitializeComponent( );

            this.Text = text;

            if (this.Text.Equals("编辑"))
            {
                this._war = _war;
            }


            comboBox1.DataSource                  = _bll.GetDataTableOnly("WAR001", "R_PQWAR");
            comboBox1.DisplayMember               = "WAR001";
            comboBox2.DataSource                  = _bll.GetDataTableOnly("WAR004", "R_PQWAR");
            comboBox2.DisplayMember               = "WAR004";
            comboBox3.DataSource                  = _bll.GetDataTableOnly("WAR005", "R_PQWAR");
            comboBox3.DisplayMember               = "WAR005";
            comboBox4.DataSource                  = _bll.GetDataTableOnly("WAR007", "R_PQWAR");
            comboBox4.DisplayMember               = "WAR007";
            comboBox5.DataSource                  = _bll.GetDataTableOnly("WAR010", "R_PQWAR");
            comboBox5.DisplayMember               = "WAR010";
            lookUpEdit12.Properties.DataSource    = _bll.GetDataTablePerson( );
            lookUpEdit12.Properties.DisplayMember = "DBA002";
            lookUpEdit12.Properties.ValueMember   = "DBA001";
            lookUpEdit2.Properties.DataSource     = _bll.GetDataTablePerson( );
            lookUpEdit2.Properties.DisplayMember  = "DBA002";
            lookUpEdit2.Properties.ValueMember    = "DBA001";
        }
Beispiel #2
0
        public WarehouseReceiptAdd(string text, MulaolaoLibrary.WarehouseReceiptWASEntity _was)
        {
            InitializeComponent( );

            this.Text = text;
            if (this.Text.Equals("编辑"))
            {
                this._was = _was;
            }

            da = _bll.GetDataTableOnly("idx,WAR001,WAR003,WAR004,WAR005,WAR007,WAR009,WAR010,WAR011", "R_PQWAR");
            lookUpEdit14.Properties.DataSource    = da;
            lookUpEdit14.Properties.DisplayMember = "WAR001";
            lookUpEdit14.Properties.ValueMember   = "idx";
            //lookUpEdit3 . Properties . DataSource = _bll . GetDataTableOnly ( "WAR004" ,"R_PQWAR" );
            //lookUpEdit3 . Properties . DisplayMember = "WAR004";
            //lookUpEdit4 . Properties . DataSource = _bll . GetDataTableOnly ( "WAR005" ,"R_PQWAR" );
            //lookUpEdit4 . Properties . DisplayMember = "WAR005";
            lookUpEdit2.Properties.DataSource    = _bll.GetDataTablePerson( );
            lookUpEdit2.Properties.DisplayMember = "DBA002";
            lookUpEdit2.Properties.ValueMember   = "DBA001";
        }
Beispiel #3
0
        public FormWarehouseReceipt( )
        {
            InitializeComponent( );

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

            button3.Enabled = button4.Enabled = button5.Enabled = button6.Enabled = /*button7 . Enabled = button8 . Enabled =*/ false;

            _war     = new MulaolaoLibrary.WarehouseReceiptWAREntity( );
            _was     = new MulaolaoLibrary.WarehouseReceiptWASEntity( );
            _bll     = new MulaolaoBll.Bll.WarehouseReceiptBll( );
            tableOne = new DataTable( );
            tableTwo = new DataTable( );

            comboBox1.DataSource                 = _bll.GetDataTableOnly("WAR001", "R_PQWAR");
            comboBox1.DisplayMember              = "WAR001";
            comboBox2.DataSource                 = _bll.GetDataTableOnly("WAR004", "R_PQWAR");
            comboBox2.DisplayMember              = "WAR004";
            comboBox3.DataSource                 = _bll.GetDataTableOnly("WAR005", "R_PQWAR");
            comboBox3.DisplayMember              = "WAR005";
            comboBox4.DataSource                 = _bll.GetDataTableOnly("WAR010", "R_PQWAR");
            comboBox4.DisplayMember              = "WAR010";
            comboBox5.DataSource                 = _bll.GetDataTableOnly("WAR007", "R_PQWAR");
            comboBox5.DisplayMember              = "WAR007";
            lookUpEdit7.Properties.DataSource    = _bll.GetDataTablePerson( );
            lookUpEdit7.Properties.DisplayMember = "DBA002";
            lookUpEdit3.Properties.DataSource    = _bll.GetDataTablePerson( );
            lookUpEdit3.Properties.DisplayMember = "DBA002";

            tableQuery = _bll.GetDataTableOnly("idx,WAR001,WAR003,WAR004,WAR005,WAR007,WAR009,WAR010,WAR011", "R_PQWAR");
            //lookUpEdit14 . Properties . DataSource = tableQuery;
            //lookUpEdit14 . Properties . DisplayMember = "WAR001";
            //lookUpEdit14 . Properties . ValueMember = "idx";
            //lookUpEdit8 . Properties . DataSource = _bll . GetDataTablePerson ( );
            //lookUpEdit8 . Properties . DisplayMember = "DBA002";
        }