示例#1
0
        //删除商品属性
        protected void btn_Del_Click(object sender, EventArgs e)
        {
            var    wordId = ((Button)sender).CommandName;
            string errorMessage;
            var    result = _goodsAttributeGroupSao.DeleteAttrWords(int.Parse(wordId), out errorMessage);

            if (result)
            {
                RG_AttrWords.Rebind();
            }
        }
示例#2
0
        // 树形节点点击时
        protected void Rtv_AttrGroup_NodeClick(object sender, RadTreeNodeEventArgs e)
        {
            Hid_GroupId.Value = "0";
            if (!string.IsNullOrEmpty(e.Node.Value))
            {
                Hid_GroupId.Value = e.Node.Value;
                RG_AttrWords.Rebind();

                #region 用于前台传参
                var attrGroupInfo = AttrGroupList.FirstOrDefault(w => w.GroupId == int.Parse(Hid_GroupId.Value));
                if (attrGroupInfo != null)
                {
                    Hid_MatchType.Value = string.Format("{0}", attrGroupInfo.MatchType);
                    Hid_IsMChoice.Value = attrGroupInfo.IsMChoice ? "1" : "0";
                }
                #endregion
            }
        }
示例#3
0
 //查询
 protected void btn_Search_Click(object sender, EventArgs e)
 {
     GridDataBind();
     RG_AttrWords.CurrentPageIndex = 0;
     RG_AttrWords.DataBind();
 }