f_power_ind.srf 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. $PBExportHeader$f_power_ind.srf
  2. global type f_power_ind from function_object
  3. end type
  4. forward prototypes
  5. global function boolean f_power_ind (long arg_powerno)
  6. end prototypes
  7. global function boolean f_power_ind (long arg_powerno);//====================================================================
  8. // Function: f_power_ind()
  9. //--------------------------------------------------------------------
  10. // Description: 判断是否有权限
  11. //--------------------------------------------------------------------
  12. // Arguments:
  13. // value long arg_powerno 权限ID
  14. //--------------------------------------------------------------------
  15. // Returns: boolean
  16. //--------------------------------------------------------------------
  17. // Author: 谢莫锋 Date: 2003.06.13
  18. //--------------------------------------------------------------------
  19. // Modify History:
  20. //
  21. //====================================================================
  22. Int i
  23. IF sys_power_issuper THEN RETURN TRUE
  24. i = Integer(Mid(sys_right,arg_powerno,1))
  25. IF i = 1 THEN RETURN TRUE
  26. RETURN FALSE
  27. end function