Пример #1
0
        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);
        }
Пример #2
0
        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);
        }
Пример #3
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);
        }
Пример #5
0
        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);
        }
Пример #6
0
        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);
        }
Пример #7
0
        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);
        }