f_oa_workremind_saveright.srf 780 B

123456789101112131415161718192021222324
  1. $PBExportHeader$f_oa_workremind_saveright.srf
  2. global type f_oa_workremind_saveright from function_object
  3. end type
  4. forward prototypes
  5. global subroutine f_oa_workremind_saveright (string arg_right[], ref s_wrm_right arg_wrmlist[])
  6. end prototypes
  7. global subroutine f_oa_workremind_saveright (string arg_right[], ref s_wrm_right arg_wrmlist[]);//arg_right[]有2个元素,第一个表示用户订阅的提醒,第二个表示当前页面的提醒
  8. //arg_wrmlist[]存储的是当前用户的所有订阅
  9. long cnt
  10. for cnt=1 to UpperBound(arg_wrmlist)
  11. if pos(arg_right[2],string(arg_wrmlist[cnt].wrmid))<>0 then
  12. if pos(arg_right[1],string(arg_wrmlist[cnt].wrmid))<>0 then
  13. arg_wrmlist[cnt].selected=1
  14. else
  15. arg_wrmlist[cnt].selected=0
  16. end if
  17. end if
  18. next
  19. end subroutine