Exemple #1
0
 /// <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);
 }
Exemple #2
0
 //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);
 }