Exemple #1
0
 /// <summary>
 /// Determines whether [has function right] [the specified feature reference identifier].
 /// </summary>
 /// <param name="featureReferenceId">The feature reference identifier.</param>
 /// <param name="access">The access.</param>
 /// <returns></returns>
 public bool HasFunctionRight(string featureReferenceId, FunctionAccess access)
 {
     return(GblIQCare.HasFunctionRight(featureReferenceId, access, this.UserRights));
     //DataView theDV = new DataView(this.UserRights);
     //theDV.RowFilter = "ReferenceId = '" + featureReferenceId.ToString() + "' and FunctionId = " + access.ToString();
     //if (theDV.Count > 0)
     //{
     //    return true;
     //}
     //else
     //{
     //    return false;
     //}
 }
Exemple #2
0
        /// <summary>
        /// Determines whether [has function right] [the specified feature reference identifier].
        /// </summary>
        /// <param name="featureReferenceId">The feature reference identifier.</param>
        /// <param name="access">The access.</param>
        /// <returns></returns>
        public static bool HasFunctionRight(string featureReferenceId, FunctionAccess access, DataTable UserRights)
        {
            DataView theDV = new DataView(UserRights);

            theDV.RowFilter = "ReferenceId = '" + featureReferenceId.ToString() + "' and FunctionId = " + access.ToString();
            if (theDV.Count > 0)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
 public FunctionAccesStatement(Ownership <COOPFunction> ownership, FunctionAccess functionAccess) : base(ownership)
 {
     this.functionAccess = functionAccess;
 }