Beispiel #1
0
        /// <summary>
        /// 定额库发生选择变化根据内容筛选工程类别
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void cmboxFixedLibrary_SelectedIndexChanged(object sender, EventArgs e)
        {
            LibCombox lib = sender as LibCombox;

            if (lib.SelectedItem != null)
            {
                this.cmboxProType.DataSource.DataSource = APP.Application.Global.DataTamp.TempDataSet.Tables["Professional"];
                string str = _LibAction.GetValue(lib.SelectedItem.ToString(), "定额库");
                this.cmboxProType.DoFilter(str);
            }
        }
Beispiel #2
0
        private void cmboxProType_SelectedIndexChanged(object sender, EventArgs e)
        {
            LibCombox lib = sender as LibCombox;

            if (lib.SelectedItem != null)
            {
                this.cmboxPrfType.Properties.Items.Clear();
                if (lib.SelectedItem.ToString() == "【安装专业】")
                {
                    this.cmboxPrfType.DataSource.DataSource = APP.Application.Global.DataTamp.TempDataSet.Tables["Professional"];
                    this.cmboxPrfType.DoFilter("安装专业");
                }
                else
                {
                    this.cmboxPrfType.Text = lib.SelectedItem.ToString();
                }
            }
        }
Beispiel #3
0
        //清单库 定额库根据清单的选择自动选择一项
        private void cmboxListGallery_SelectedIndexChanged(object sender, EventArgs e)
        {
            LibCombox lib = sender as LibCombox;

            if (lib.SelectedItem != null)
            {
                string r = ((lib.SelectedItem as CList).value as DataRowView)["Relation"].ToString();
                this.cmboxFixedLibrary.SelectedIndex = Convert.ToInt32(r);
                //不是建筑清单库 图集为空
                if (lib.SelectedIndex != 0)
                {
                    this.cmboxAtlasGallery.Text = string.Empty;
                }
                else
                {
                    this.cmboxAtlasGallery.SelectedIndex = 0;
                }
            }
        }