Beispiel #1
0
 /// <summary>
 /// 获取结果集,Json 格式
 /// </summary>
 /// <param name="pParentID">传入ParentID</param>
 /// <param name="pTree">传入</param>
 /// <returns>Json格式的数据</returns>
 private string GetBrandByParentID(string pParentID, string pTree, HttpContext pContext)
 {
     ControlBrandEntity[] pBrand = new ControlBLL(new SessionManager().CurrentUserLoginInfo).
                                   GetBrandByClientID(pParentID);
     if (pTree == "success")
     {
         string     pParentNodeID     = "";
         bool       pIsMultiSelect    = false;
         bool       pIsSelectLeafOnly = false;
         TreeNode[] pModel            = null;
         InitParams(pContext, out pParentNodeID, out pIsMultiSelect, out pIsSelectLeafOnly, out pModel);
         TreeNodes nodes = new TreeNodes();
         if (pBrand != null && pBrand.Length > 0)
         {
             nodes = GetBrandTreeNodes(nodes, pBrand, "");
             return(nodes.ToTreeStoreJSON(pIsMultiSelect, pIsSelectLeafOnly, pModel));
         }
     }
     else
     {
         return(pBrand.ToJSON());
     }
     return("");
 }