f_getoptionvalue.srf 690 B

1234567891011121314151617181920212223242526
  1. $PBExportHeader$f_getoptionvalue.srf
  2. global type f_getoptionvalue from function_object
  3. end type
  4. forward prototypes
  5. global function string f_getoptionvalue (string arg_optionid, integer arg_optiontype)
  6. end prototypes
  7. global function string f_getoptionvalue (string arg_optionid, integer arg_optiontype);//arg_optiontype 0:读数据库 1:读ini
  8. string rslt_str
  9. if arg_optiontype=0 then
  10. select optionvalue into :rslt_str from sys_option where sys_option.optionid=:arg_optionid;
  11. if sqlca.sqlcode<>0 then
  12. rslt_str='err'
  13. end if
  14. else
  15. rslt_str=f_ProfileString (sys_empid,'sys_option', arg_optionid,'')
  16. if rslt_str='' then
  17. rslt_str='err'
  18. end if
  19. end if
  20. return rslt_str
  21. end function