예제 #1
0
        private void GetPageForm()
        {
            //QueryUserPriceLibraryForm queryUserPriceLibary = new QueryUserPriceLibraryForm();
            //queryUserPriceLibary.TopLevel = false;
            //queryUserPriceLibary.Dock = DockStyle.Fill;
            //queryUserPriceLibary.Show();

            BatchEditSummaryForm queryInformationPrice = new BatchEditSummaryForm();

            queryInformationPrice.TopLevel = false;
            queryInformationPrice.Dock     = DockStyle.Fill;
            queryInformationPrice.Show();

            XtraTabPage[] pags = new XtraTabPage[2];
            pags[0] = pageOne;
            pags[1] = pageTwo;

            //pageOne.Controls.Add(queryUserPriceLibary);
            pageTwo.Controls.Add(queryInformationPrice);
            this.TabControl.TabPages.AddRange(pags);
            this.TabControl.SelectedTabPageIndex = 0;
        }
예제 #2
0
        /// <summary>
        /// 批量设置
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void barButtonItem2_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (m_DataTable == null || m_DataTable.Columns.Count <= 0)
            {
                return;
            }
            BatchEditSummaryForm form = new BatchEditSummaryForm();

            form.CurrentBusiness = this.CurrentBusiness;
            DataRow[] drs = this.m_DataTable.Select("LB not like '%台班%' and LB not like '%配合比%' and LB not like '%[%]%' and YTLB <> '甲供材料' and YTLB <> '暂定价材料'");
            if (drs.Length > 0)
            {
                form.DataSource = drs.CopyToDataTable();
                DialogResult r = form.ShowDialog();
                if (r == DialogResult.OK)
                {
                    //(this.CurrentBusiness as _Pr_Business).Load();
                    (this.CurrentBusiness as _Pr_Business).Calculate();
                    this.Init();
                }
            }
        }