public WarehouseReceiptLibr(string userNum) { InitializeComponent( ); _bll = new MulaolaoBll.Bll.WarehouseReceiptBll( ); tableView = new DataTable( ); DataTable dt = _bll.GetDataTableUser( ); if (dt != null && dt.Rows.Count > 0) { for (int i = 0; i < dt.Rows.Count; i++) { cmbUser.Items.Add(dt.Rows [i] ["WAS013"].ToString( )); } } this.userNum = userNum; }
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"; }