Beispiel #1
0
        //获取权限
        public static DataTable getActionFromMaster(int masterid)
        {
            Query q = ActionMaster.Query();

            q.AddWhere(ActionMaster.Columns.MasterId, masterid);
            return(q.ExecuteDataSet().Tables[0]);
        }
Beispiel #2
0
        //权限是否存在
        public static bool isActionMaster(int masterid)
        {
            Query q = ActionMaster.Query();

            q.AddWhere(ActionMaster.Columns.MasterId, masterid);
            DataTable dt = q.ExecuteDataSet().Tables[0];

            if (dt.Rows.Count > 0)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }