温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:Extjs简单版酒店管理系统
当前文件:
ExtjsHotelManage/BLL/NavBLL.cs[1K,2009-6-12 11:42:12],打开代码结构图
ExtjsHotelManage/BLL/NavBLL.cs[1K,2009-6-12 11:42:12],打开代码结构图1using System; 2
using System.Collections.Generic; 3
using System.Text; 4
using Model; 5
using DAL; 6
using System.Data; 7
8
namespace BLL 9
{ 10
public class NavBLL 11
{ 12
private DataSet ds; 13
NavDAO dao = new NavDAO(); 14
15
//查询权限树信息 16
public string GetDtreeInfos(int parentID) 17
{ 18
string DTreeJSON=""; 19
DTreeJSONHelper json = new DTreeJSONHelper(); 20
try 21
{ 22
ds=dao.getDTreeInfo(parentID); 23
json.success = true; 24
foreach(DataRow dr in ds.Tables[0].Rows) 25
{ 26
json.AddItem("id", dr["id"].ToString()); 27
json.AddItem("parentid", dr["parentid"].ToString()); 28
json.AddItem("text", dr["title"].ToString()); 29
json.AddItem("leaf", dr["leaf"].ToString()); 30
json.AddItem("iconCls",dr["iconCls"].ToString()); 31
json.AddItem("number", dr["number"].ToString()); 32
json.AddItem("url", dr["url"].ToString()); 33
json.ItemOk(); 34
} 35
DTreeJSON = json.ToString(); 36
} 37
catch (Exception) 38
{ 39
40
throw; 41
} 42
return DTreeJSON; 43
} 44
} 45
} 46






}
}