예제 #1
0
 /// <summary>
 /// Determines whether [has module right] [the specified module identifier].
 /// </summary>
 /// <param name="moduleId">The module identifier.</param>
 /// <param name="clinical">if set to <c>true</c> [clinical].</param>
 /// <returns></returns>
 public bool HasModuleRight(int moduleId, bool clinical)
 {
     return(GblIQCare.HasModuleRight(moduleId, clinical, this.UserRights));
     //DataView theDV = new DataView(this.UserRights);
     //if (clinical)
     //{
     //    theDV.RowFilter = string.Format("ModuleId = {0}", moduleId);
     //}
     //else
     //{
     //    theDV.RowFilter = string.Format("ModuleId = {0} And FeatureTypeName='{1}'", moduleId, "MODULE_ACTION");
     //}
     //if (theDV.Count > 0)
     //{
     //    return true;
     //}
     //else
     //{
     //    return false;
     //}
 }