예제 #1
0
        /// <summary>
        /// 查询所有的产品子类集合
        /// </summary>
        /// <returns></returns>
        public ActionResult GetChildList()
        {
            string CompanyID = WebUtil.GetFormValue <string>("CompanyID");
            string SnNum     = WebUtil.GetFormValue <string>("SnNum");
            ProductCategoryProvider      provider = new ProductCategoryProvider(CompanyID);
            List <ProductCategoryEntity> list     = provider.GetChildList(SnNum);

            DataResult <List <ProductCategoryEntity> > dataResult = new DataResult <List <ProductCategoryEntity> >();

            dataResult.Code    = (int)EResponseCode.Success;
            dataResult.Message = "响应成功";
            dataResult.Result  = list;

            return(Content(JsonHelper.SerializeObject(dataResult)));
        }