private void InitComponents() { this.textBoxComponenName.Text = ""; this.pagerWidget = new PagerWidget <ComponentView>(this.reoGridControlMain, ComponenViewMetaData.KeyNames, this.projectID, this.warehouseID); this.panelPagerWidget.Controls.Add(this.pagerWidget); this.pagerWidget.Show(); }
private void InitializeComponent1() { try { this.wmsEntities.Database.Connection.Open(); //string[] visibleColumnNames = (from kn in SupplierStorageInfoMetaData.KeyNames // where kn.Visible == true // select kn.Name).ToArray(); ////初始化查询框 //this.toolStripComboBoxSelect.Items.Add("无"); //this.toolStripComboBoxSelect.Items.AddRange(visibleColumnNames); //this.toolStripComboBoxSelect.SelectedIndex = 0; } catch { MessageBox.Show("加载失败,请检查网络连接", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } //初始化分页控件 this.pagerWidget = new PagerWidget <SupplierStorageInfoView>(this.reoGridControlUser, SupplierStorageInfoMetaData.KeyNames, this.projectID, this.warehouseID); this.panelPager.Controls.Add(pagerWidget); pagerWidget.Show(); this.searchWidget = new SearchWidget <SupplierStorageInfoView>(SupplierStorageInfoMetaData.KeyNames, this.pagerWidget); this.panelSearchWidget.Controls.Add(searchWidget); }
private void InitComponents() { string[] visibleColumnNames = (from kn in ComponenViewMetaData.componenkeyNames where kn.Visible == true select kn.Name).ToArray(); //初始化 this.toolStripComboBoxSelect.Items.Add("无"); this.toolStripComboBoxSelect.Items.AddRange(visibleColumnNames); this.toolStripComboBoxSelect.SelectedIndex = 0; //初始化表格 //var worksheet = this.reoGridControlComponen.Worksheets[0]; //worksheet.SelectionMode = WorksheetSelectionMode.Row; //for (int i = 0; i < ComponenMetaData.componenkeyNames.Length; i++) //{ // worksheet.ColumnHeaders[i].Text = ComponenMetaData.componenkeyNames[i].Name; // worksheet.ColumnHeaders[i].IsVisible = ComponenMetaData.componenkeyNames[i].Visible; //} //worksheet.Columns = ComponenMetaData.componenkeyNames.Length;//限制表的长度 //初始化分页控件 this.pagerWidget = new PagerWidget <ComponentView>(this.reoGridControlComponen, ComponenViewMetaData.componenkeyNames, this.projectID, this.warehouseID); this.panelPager.Controls.Add(pagerWidget); pagerWidget.Show(); }
public SearchWidget(KeyName[] keyNames, PagerWidget <T> pagerWidget) { InitializeComponent(); this.pagerWidget = pagerWidget; this.keyNames = keyNames; string[] visibleColumnNames = (from kn in keyNames where kn.Visible == true select kn.Name).ToArray(); //初始化搜索条件框 comboBoxSearchCondition.Items.Add("无"); comboBoxSearchCondition.Items.AddRange(visibleColumnNames); comboBoxSearchCondition.SelectedIndex = 0; comboBoxSearchCondition.SelectedIndexChanged += (sender, e) => { if (comboBoxSearchCondition.SelectedIndex == 0) { textBoxSearchCondition.Text = ""; textBoxSearchCondition.Enabled = false; } else { textBoxSearchCondition.Enabled = true; } }; //初始化排序条件框 comboBoxOrderByCondition.Items.Add("无"); comboBoxOrderByCondition.Items.AddRange(visibleColumnNames); comboBoxOrderByCondition.SelectedIndex = 0; comboBoxOrderByOrder.SelectedIndex = 0; this.Dock = DockStyle.Fill; }
private void InitComponents() { this.comboBoxSearchCondition.SelectedIndex = 0; this.pagerWidget = new PagerWidget <StockInfoView>(this.reoGridControlMain, StockInfoViewMetaData.KeyNames, this.projectID, this.warehouseID); this.panelPagerWidget.Controls.Add(this.pagerWidget); this.pagerWidget.Show(); }
private void InitComponents() { string[] visibleColumnNames = (from kn in JobTicketViewMetaData.KeyNames where kn.Visible == true select kn.Name).ToArray(); this.pagerWidget = new PagerWidget <JobTicketView>(this.reoGridControlMain, JobTicketViewMetaData.KeyNames, this.projectID, this.warehouseID); this.panelPagerWidget.Controls.Add(this.pagerWidget); this.pagerWidget.Show(); this.searchWidget = new SearchWidget <JobTicketView>(JobTicketViewMetaData.KeyNames, pagerWidget); this.panelSearchWidget.Controls.Add(searchWidget); }
private void InitComponents() { if (SelectMode == Mode.NORMAL) { this.pagerWidget = new PagerWidget <SupplyView>(this.reoGridControlMain, SupplyViewMetaData.KeyNames, this.projectID, this.warehouseID); } else { this.pagerWidget = new PagerWidget <SupplyView>(this.reoGridControlMain, SupplyViewMetaData.KeyNames, this.projectID, this.warehouseID, PagerWidget <SupplyView> .Mode.MULTISELECT); } this.panelPagerWidget.Controls.Add(this.pagerWidget); this.pagerWidget.Show(); this.comboBoxSearchCondition.SelectedIndex = 0; }
private void InitComponents() { //设置人员选择默认岗位为发货员 FormSelectPerson.DefaultPosition = FormBase.Position.SHIPMENT; string[] visibleColumnNames = (from kn in ShipmentTicketViewMetaData.KeyNames where kn.Visible == true select kn.Name).ToArray(); this.pagerWidget = new PagerWidget <ShipmentTicketView>(this.reoGridControlMain, ShipmentTicketViewMetaData.KeyNames, this.projectID, this.warehouseID); this.panelPagerWidget.Controls.Add(pagerWidget); this.pagerWidget.Show(); this.searchWidget = new SearchWidget <ShipmentTicketView>(ShipmentTicketViewMetaData.KeyNames, this.pagerWidget); this.panelSearchWidget.Controls.Add(searchWidget); }
public FormPutOutStorageTicket(int userID, int projectID, int warehouseID) { InitializeComponent(); InitComponents(); this.userID = userID; this.projectID = projectID; this.warehouseID = warehouseID; this.pagerWidget = new PagerWidget <PutOutStorageTicketView>(this.reoGridControlMain, PutOutStorageTicketViewMetaData.KeyNames, this.projectID, this.warehouseID); this.panelPagerWidget.Controls.Add(this.pagerWidget); this.pagerWidget.Show(); this.searchWidget = new SearchWidget <PutOutStorageTicketView>(PutOutStorageTicketViewMetaData.KeyNames, this.pagerWidget); this.panelSearchWidget.Controls.Add(this.searchWidget); }
private void InitComponents() { string[] visibleColumnNames = (from kn in BasePersonMetaData.PositionKeyNames where kn.Visible == true select kn.Name).ToArray(); //初始化 this.toolStripComboBoxSelectPosition.Items.Add("无"); this.toolStripComboBoxSelectPosition.Items.AddRange(visibleColumnNames); this.toolStripComboBoxSelectPosition.SelectedIndex = selectPosition; this.textBoxPersonName.Text = ""; this.pagerWidget = new PagerWidget <PersonView>(this.reoGridControlMain, FormBase.BasePersonMetaData.KeyNames, this.projectID, this.warehouseID); this.panelPagerWidget.Controls.Add(this.pagerWidget); this.pagerWidget.Show(); }
private void InitComponents() { string[] visibleColumnNames = (from kn in ComponenViewMetaData.componenkeyNames 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 <ComponentView>(this.reoGridControlComponen, ComponenViewMetaData.componenkeyNames); this.panelPager.Controls.Add(pagerWidget); pagerWidget.Show(); this.searchWidget = new SearchWidget <ComponentView>(ComponenViewMetaData.KeyNames, this.pagerWidget); this.panelSearchWidget.Controls.Add(searchWidget); }
private void InitComponents() { this.wmsEntities.Database.Connection.Open(); string[] visibleColumnNames = (from kn in StockInfoCheckTicketViewMetaData.KeyNames where kn.Visible == true select kn.Name).ToArray(); //初始化查询框 //this.comboBoxSearchCondition.Items.Add("无"); //this.comboBoxSearchCondition.Items.AddRange(visibleColumnNames); //this.comboBoxSearchCondition.SelectedIndex = 0; //初始化分页控件 this.pagerWidget = new PagerWidget <StockInfoCheckTicketView>(this.reoGridControlMain, StockInfoCheckTicketViewMetaData.KeyNames, this.projectID, this.warehouseID); this.paperpanel.Controls.Add(pagerWidget); pagerWidget.Show(); this.searchWidget = new SearchWidget <StockInfoCheckTicketView>(StockInfoCheckTicketViewMetaData.KeyNames, this.pagerWidget); this.panelSearchWidget.Controls.Add(searchWidget); }
private void FormSubmissionManage_Load(object sender, EventArgs e) { InitComponents(); if (key != null) { string name = (from n in ReceiptMetaData.submissionTicketKeyName where n.Key == key select n.Name).FirstOrDefault(); //this.comboBoxSelect.SelectedItem = name; //this.comboBoxSelect.SelectedIndex = this.comboBoxSelect.Items.IndexOf(name); } pagerWidget = new PagerWidget <SubmissionTicketView>(this.reoGridControl1, ReceiptMetaData.submissionTicketKeyName, projectID, warehouseID); searchWidget = new SearchWidget <SubmissionTicketView>(ReceiptMetaData.submissionTicketKeyName, pagerWidget); if (key != null && value != null) { //pagerWidget.AddCondition(key, value); searchWidget.SetSearchCondition(key, value); } this.panel2.Controls.Add(searchWidget); //this.textBoxSelect.Text = value; this.panel1.Controls.Add(this.pagerWidget); pagerWidget.Show(); this.Search(); //Search(key, value); }
private void InitComponents() { this.reoGridControlWarehouse.SetSettings(WorkbookSettings.View_ShowHorScroll, false); this.reoGridControlWarehouse.SetSettings(WorkbookSettings.View_ShowSheetTabControl, false); this.reoGridControlProject.SetSettings(WorkbookSettings.View_ShowHorScroll, false); this.reoGridControlProject.SetSettings(WorkbookSettings.View_ShowSheetTabControl, false); this.reoGridControlPackageUnit.SetSettings(WorkbookSettings.View_ShowHorScroll, false); this.reoGridControlPackageUnit.SetSettings(WorkbookSettings.View_ShowSheetTabControl, false); string[] visibleColumnNames = (from kn in FormBase.BaseWarehouseMetaData.KeyNames where kn.Visible == true select kn.Name).ToArray(); this.warehousepagerWidget = new PagerWidget <WarehouseView>(this.reoGridControlWarehouse, FormBase.BaseWarehouseMetaData.KeyNames); this.warehousepagerWidget.SetPageSize(-1); //this.panelPager1.Controls.Add(warehousepagerWidget); //warehousepagerWidget.Show(); string[] visibleColumnNames1 = (from kn in FormBase.BaseProjectMetaData.KeyNames where kn.Visible == true select kn.Name).ToArray(); this.projectpagerWidget = new PagerWidget <ProjectView>(this.reoGridControlProject, FormBase.BaseProjectMetaData.KeyNames); this.projectpagerWidget.SetPageSize(-1); //this.panelPager2.Controls.Add(projectpagerWidget); //projectpagerWidget.Show(); string[] visibleColumnNames2 = (from kn in FormBase.BasePackageUnitMetaData.KeyNames where kn.Visible == true select kn.Name).ToArray(); this.PackageUnitpagerWidget = new PagerWidget <PackageUnitView>(this.reoGridControlPackageUnit, FormBase.BasePackageUnitMetaData.KeyNames); this.PackageUnitpagerWidget.SetPageSize(-1); //this.panelPager3.Controls.Add(PackageUnitpagerWidget); //PackageUnitpagerWidget.Show(); }