f_run_download.srf 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. $PBExportHeader$f_run_download.srf
  2. global type f_run_download from function_object
  3. end type
  4. forward prototypes
  5. global subroutine f_update ()
  6. global subroutine f_run_download ()
  7. end prototypes
  8. global subroutine f_update ();String ls_run
  9. ls_run = 'longjoe&'+sys_system_id+'&'+sys_cur_version+'&'+String(sys_if_register)+'&'
  10. ls_run = ls_run + sqlca.Database + '&' + sqlca.UserID + '&' + f_psw_bczh(sqlca.DBPass,0,sys_power_key) + '&'
  11. ls_run = ls_run + sqlca.LogID + '&' + sqlca.LogPass + '&' + sqlca.ServerName + '&'
  12. IF Run(sys_cur_path + 'load.exe' + ' -' +ls_run) = -1 THEN
  13. MessageBox('错误','运行程序失败!',stopsign!,ok!)
  14. RETURN
  15. END IF
  16. end subroutine
  17. global subroutine f_run_download ();String ls_run
  18. ls_run = 'longjoe&'+sys_system_id+'&'+sys_cur_version+'&'+String(sys_if_register)+'&'
  19. ls_run = ls_run + sqlca.Database + '&' + sqlca.UserID + '&' + f_psw_bczh(sqlca.DBPass,0,sys_power_key) + '&'
  20. ls_run = ls_run + sqlca.LogID + '&' + sqlca.LogPass + '&' + sqlca.ServerName + '&'
  21. ls_run = ls_run + ' http://www.longjoe.com/update/up_down.zip&' + sys_message_title + '&'
  22. ls_run=''
  23. ls_run=sqlca.DBMS + '*'
  24. ls_run=ls_run+ sqlca.LogPass + '*'
  25. ls_run=ls_run+ sqlca.ServerName + '*'
  26. ls_run=ls_run+ sqlca.LogID + '*'
  27. ls_run=ls_run+ sqlca.DBParm + '*'
  28. run(sys_cur_path +'eclever25_load.exe' + ' -' +ls_run)
  29. //IF Run(sys_cur_path + 'longjoe_update.exe' + ' -' +ls_run) = -1 THEN
  30. // MessageBox('错误','运行程序失败!',stopsign!,ok!)
  31. // RETURN
  32. //END IF
  33. end subroutine