uo_email_power_ew.sru 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. $PBExportHeader$uo_email_power_ew.sru
  2. forward
  3. global type uo_email_power_ew from uo_email_power
  4. end type
  5. end forward
  6. global type uo_email_power_ew from uo_email_power
  7. end type
  8. global uo_email_power_ew uo_email_power_ew
  9. forward prototypes
  10. public function boolean can_see_mailset (ref string arg_msg)
  11. public function boolean can_delete (ref string arg_msg)
  12. public function boolean can_edit (ref string arg_msg)
  13. public function boolean can_see_other (ref string arg_msg)
  14. public function boolean can_deleteemail (ref string arg_msg)
  15. public function boolean can_deleteemail_forever (ref string arg_msg)
  16. end prototypes
  17. public function boolean can_see_mailset (ref string arg_msg);IF f_power_ind(1412) THEN
  18. RETURN True
  19. ELSE
  20. arg_msg = '你没有使用权限'
  21. RETURN False
  22. END IF
  23. end function
  24. public function boolean can_delete (ref string arg_msg);IF f_power_ind(1444) THEN
  25. RETURN True
  26. ELSE
  27. arg_msg = '你没有使用权限'
  28. RETURN False
  29. END IF
  30. end function
  31. public function boolean can_edit (ref string arg_msg);IF f_power_ind(1412) THEN
  32. RETURN True
  33. ELSE
  34. arg_msg = '你没有使用权限'
  35. RETURN False
  36. END IF
  37. end function
  38. public function boolean can_see_other (ref string arg_msg);IF f_power_ind(1411) THEN
  39. RETURN True
  40. ELSE
  41. arg_msg = '你没有使用权限'
  42. RETURN False
  43. END IF
  44. end function
  45. public function boolean can_deleteemail (ref string arg_msg);IF f_power_ind(1663) THEN
  46. RETURN True
  47. ELSE
  48. arg_msg = '你没有使用权限'
  49. RETURN False
  50. END IF
  51. end function
  52. public function boolean can_deleteemail_forever (ref string arg_msg);IF f_power_ind(1664) THEN
  53. RETURN True
  54. ELSE
  55. arg_msg = '你没有使用权限'
  56. RETURN False
  57. END IF
  58. end function
  59. on uo_email_power_ew.create
  60. call super::create
  61. end on
  62. on uo_email_power_ew.destroy
  63. call super::destroy
  64. end on