Exemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="p_strDeptID"></param>
        /// <param name="p_enmSF"></param>
        /// <param name="p_enmOperation"></param>
        /// <returns>如果有操作权限返回true,否则返回false</returns>
        public static bool s_blnCheckCurrentPrivilege(string p_strDeptID, enmPrivilegeSF p_enmSF, enmPrivilegeOperation p_enmOperation)
        {
//			clsPrivilegeInfo [] objPIArr = clsLoginContext.s_ObjLoginContext.m_ObjPIArr;
//
//			if(objPIArr == null)
//				return false;
//
//			for(int i=0;i<objPIArr.Length;i++)
//			{
//				if(objPIArr[i] == null)
//					continue;
//
//				//DeptID需改为每张单当前病人的所在部门
//				if(objPIArr[i].m_objGetOISF(p_strDeptID,(int)p_enmSF,(int)p_enmOperation) != null)
//					return true;
//			}

            return(true);
        }
Exemplo n.º 2
0
 /// <summary>
 /// 检查当前用户的操作权限
 /// </summary>
 /// <param name="p_enmSF"></param>
 /// <param name="p_enmOperation"></param>
 /// <returns>如果有操作权限返回true,否则返回false</returns>
 public static bool s_blnCheckCurrentPrivilege(enmPrivilegeSF p_enmSF, enmPrivilegeOperation p_enmOperation)
 {
     return(true);           //s_blnCheckCurrentPrivilege(clsSystemContext.s_ObjCurrentContext.m_ObjDepartment.m_StrDeptID,p_enmSF,p_enmOperation);
 }