f_oa_workremind_setright.srf 726 B

123456789101112131415161718192021222324252627
  1. $PBExportHeader$f_oa_workremind_setright.srf
  2. global type f_oa_workremind_setright from function_object
  3. end type
  4. forward prototypes
  5. global subroutine f_oa_workremind_setright (s_wrm_right arg_rightarray[], ref datawindow dw)
  6. end prototypes
  7. global subroutine f_oa_workremind_setright (s_wrm_right arg_rightarray[], ref datawindow dw);long cnt
  8. string ls_cur_wrmid,arg_right=''
  9. for cnt=1 to UpperBound(arg_rightArray)
  10. if arg_rightArray[cnt].selected=1 then
  11. arg_right+=string(arg_rightArray[cnt].wrmid)
  12. end if
  13. next
  14. if dw.rowcount()<>0 then
  15. for cnt=1 to dw.rowcount()
  16. ls_cur_wrmid=string(dw.object.wrmid[cnt])
  17. if pos(arg_right,ls_cur_wrmid)<>0 then
  18. dw.object.selected[cnt]=1
  19. end if
  20. next
  21. end if
  22. end subroutine