f_refresh_mainwin_title.srf 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. $PBExportHeader$f_refresh_mainwin_title.srf
  2. global type f_refresh_mainwin_title from function_object
  3. end type
  4. forward prototypes
  5. global function integer f_refresh_mainwin_title (ref window arg_main_window)
  6. end prototypes
  7. global function integer f_refresh_mainwin_title (ref window arg_main_window);//f_refresh_mainwin_title
  8. IF IsValid(arg_main_window) THEN
  9. arg_main_window.Title = Trim(sys_message_title)+' - '+Trim(publ_operator)
  10. IF sys_if_register = 0 THEN
  11. arg_main_window.Title = arg_main_window.Title + ' (未注册)'
  12. ELSE
  13. arg_main_window.Title = sys_message_username+' - '+Trim(publ_operator)
  14. IF sys_accsetbegin THEN
  15. arg_main_window.Title = arg_main_window.Title + '会计期间 【'+string(sys_curyearmon)+'】'
  16. end if
  17. // IF sys_accsetbegin THEN
  18. // arg_main_window.Title = sys_message_username + ' xxxx系统 【'+Trim(publ_operator)+'】会计期间 【'+string(sys_curyearmon)+'】'
  19. // ELSE
  20. // arg_main_window.Title = sys_message_username + ' xxxx系统 【'+Trim(publ_operator)+'】会计期间【未启用】'
  21. // END IF
  22. END IF
  23. END IF
  24. RETURN 0
  25. end function