private void FormSearch_Load(object sender, EventArgs e) { InitComponent(); WMSEntities wmsEntities = new WMSEntities(); pagerWidget = new PagerWidget <SupplyView>(this.reoGridControlMain, ReceiptMetaData.componentKeyName, projectID, warehouseID); this.panel1.Controls.Add(pagerWidget); this.pagerWidget.AddStaticCondition("IsHistory", "0"); this.pagerWidget.AddStaticCondition("SupplierID", this.supplierID.ToString()); pagerWidget.Show(); //this.textBoxSearchContition.Text = (from s in wmsEntities.Component where s.s select s.).FirstOrDefault(); //this.Search(); this.pagerWidget.Search(); }
private void InitComponents() { string[] visibleColumnNames = (from kn in BaseProjectMetaData.KeyNames where kn.Visible == true select kn.Name).ToArray(); //初始化 this.toolStripComboBoxSelect.Items.Add("无"); this.toolStripComboBoxSelect.Items.AddRange(visibleColumnNames); this.toolStripComboBoxSelect.SelectedIndex = 0; this.pagerWidget = new PagerWidget <ProjectView>(this.reoGridControlProject, BaseProjectMetaData.KeyNames); this.panelPager.Controls.Add(pagerWidget); pagerWidget.Show(); }
private void FormReceiptShelves_Load(object sender, EventArgs e) { InitComponents(); if (key != null) { string name = (from n in ReceiptMetaData.putawayTicketKeyName where n.Key == key select n.Name).FirstOrDefault(); //this.toolStripComboBoxSelect.SelectedItem = name; //this.toolStripComboBoxSelect.SelectedIndex = this.toolStripComboBoxSelect.Items.IndexOf(name); //this.toolStripTextBoxSelect.Text = value; } pagerWidget = new PagerWidget <PutawayTicketView>(this.reoGridControlUser, ReceiptMetaData.putawayTicketKeyName, projectID, warehouseID); searchWidget = new SearchWidget <PutawayTicketView>(ReceiptMetaData.putawayTicketKeyName, pagerWidget); this.panel1.Controls.Add(pagerWidget); this.panel2.Controls.Add(searchWidget); if (this.key != null && this.value != null) { searchWidget.SetSearchCondition(key, value); } Search(); pagerWidget.Show(); }