public Keyword_UC1(SRRC_BiaoJiKeywordEntity ent) : this() { this.UC_Text.Text = ent.Name; this.Tag = ent; this.CheckStatusChange(false); this.isFilter = true; }
public Keyword_UC2(SRRC_BiaoJiKeywordEntity category, IEnumerable <SRRC_BiaoJiKeywordEntity> list, bool isFilter = false) : this() { this.list = list; this.Category = category; if (isFilter) { //keyword 筛选 this.CategoryName.Text = category.Name; this.Name = category.Id.ToString(); foreach (var item in list) { item.CategoryName = category.Name; var v = new Keyword_UC4(item); v.Name = item.Id.ToString(); //v.Tag = item; this.flp_keyword.Controls.Add(v); } //多选 var add = new Keyword_UC7(); add.ParentKeyword_UC2 = this; this.flp_keyword.Controls.Add(add); } else { //keyword 设置 this.CategoryName.Text = category.Name; foreach (var item in list) { var v = new Keyword_UC1(item.Name); v.Name = item.Id.ToString(); v.Tag = item; this.flp_keyword.Controls.Add(v); } } }
private void btn_CategoryAdd_Click(object sender, EventArgs e) { string str = Interaction.InputBox("请输入新关键字类名", "关键字管理"); var entity = new SRRC_BiaoJiKeywordEntity { BiaoJiId = this.BiaoQianId, Name = str, Pid = 0, //OrderBy = this.listBox_Category.Items.Count }; entity.OrderBy = DataBase.Instance.tSRRC_BiaoJiKeyword.AddWithoutOrderBy(entity); RefreshCategory(); }
private void btn_KeywordAdd_Click(object sender, EventArgs e) { if (this.listBox_Category.SelectedItem == null) { return; } string str = Interaction.InputBox("请输入新关键字", "关键字管理"); var entity = new SRRC_BiaoJiKeywordEntity { BiaoJiId = this.BiaoQianId, Name = str, Pid = (this.listBox_Category.SelectedItem as SRRC_BiaoJiKeywordEntity).Id, //OrderBy = this.listBox_Keyword.Items.Count }; entity.OrderBy = DataBase.Instance.tSRRC_BiaoJiKeyword.AddWithoutOrderBy(entity); RefreshKeyword(); }
public Keyword_UC2(SRRC_BiaoJiKeywordEntity category,IEnumerable<SRRC_BiaoJiKeywordEntity> list,bool isFilter = false) : this() { this.list = list; this.Category = category; if(isFilter) { //keyword 筛选 this.CategoryName.Text = category.Name; this.Name = category.Id.ToString(); foreach (var item in list) { item.CategoryName = category.Name; var v = new Keyword_UC4(item); v.Name = item.Id.ToString(); //v.Tag = item; this.flp_keyword.Controls.Add(v); } //多选 var add = new Keyword_UC7(); add.ParentKeyword_UC2 = this; this.flp_keyword.Controls.Add(add); } else { //keyword 设置 this.CategoryName.Text = category.Name; foreach (var item in list) { var v = new Keyword_UC1(item.Name); v.Name = item.Id.ToString(); v.Tag = item; this.flp_keyword.Controls.Add(v); } } }
public Keyword_UC4(SRRC_BiaoJiKeywordEntity entity) : this() { this.UC_Text.Text = entity.Name; this.Tag = entity; }