Ejemplo n.º 1
0
        /// <summary>
        /// 获取批量属性值信息
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        public JsonResult GetAVByIds(string ids, long aid)
        {
            string[]     idstr = ids.Split(',');
            AttrValueBll bll   = new AttrValueBll();

            return(Json(bll.GetList(w => idstr.Contains(w.ID.ToString()) && w.AttributesID == aid), JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// <auth>徐柳</auth>
        /// 根据属性名获取属性值列表
        /// </summary>
        /// <param name="aid">属性名id</param>
        /// <returns></returns>
        public JsonResult GetAVListByP(int aid)
        {
            AttrValueBll bll = new AttrValueBll();
            var          tt  = bll.GetList(w => w.AttributesID == aid && w.Status == 0);

            return(Json(tt, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 3
0
 /// <summary>
 /// 获取批量属性值信息
 /// </summary>
 /// <param name="ids"></param>
 /// <returns></returns>
 public JsonResult GetAVByIds(string ids, long aid)
 {
     string[] idstr = ids.Split(',');
     AttrValueBll bll = new AttrValueBll();
     return Json(bll.GetList(w => idstr.Contains(w.ID.ToString()) && w.AttributesID == aid), JsonRequestBehavior.AllowGet);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// <auth>徐柳</auth>
 /// 根据属性名获取属性值列表
 /// </summary>
 /// <param name="aid">属性名id</param>
 /// <returns></returns>
 public JsonResult GetAVListByP(int aid)
 {
     AttrValueBll bll = new AttrValueBll();
     var tt = bll.GetList(w => w.AttributesID == aid && w.Status == 0);
     return Json(tt, JsonRequestBehavior.AllowGet);
 }