/// <summary> /// 初始化 /// </summary> public BaseDao(int SId, int PId, string cnKey) { ia = DBAccessLayer.DBFactory.GetDBAccess(DBAccessLayer.DBAccessType.SQL, cnKey); string strSql = string.Format("select * from Sys_TreeList Where SysID = {0} and PermissionID={1}", SId, PId); Sys.TreeListDao dao = new Sys.TreeListDao(); SysModel = dao.GetModel(SId, PId); }
//string strTbName /// <summary> /// 初始化 /// </summary> public BaseDao(string FormID, string cnKey) { this.cnKey = cnKey; ia = DBAccessLayer.DBFactory.GetDBAccess(DBAccessLayer.DBAccessType.SQL, cnKey); string strSql = string.Format("select * from Sys_TreeList Where FormID = '{0}'", FormID); Sys.TreeListDao dao = new Sys.TreeListDao(); SysModel = dao.GetModel(FormID); }