kms_editdoc.srf 793 B

12345678910111213141516171819202122232425262728293031323334
  1. $PBExportHeader$kms_editdoc.srf
  2. global type kms_editdoc from function_object
  3. end type
  4. forward prototypes
  5. global subroutine kms_editdoc (string arg_doccode)
  6. end prototypes
  7. global subroutine kms_editdoc (string arg_doccode);string ls_token
  8. ls_token = kms_gettoken()
  9. IF ls_token = "" THEN RETURN
  10. uo_comhelper lo_helper
  11. lo_helper = Create uo_comhelper
  12. oleobject lo_p1client
  13. string arg_msg_tmp
  14. lo_p1client = lo_helper.uf_get_p1clientcom(Ref arg_msg_tmp)
  15. Destroy lo_helper
  16. s_kms_msg s_rslt
  17. IF NOT ISVALID(lo_p1client) THEN
  18. s_rslt.Msg = '未知异常>获取业务后台连接失败: ' + arg_msg_tmp
  19. MessageBox('Error', s_rslt.Msg)
  20. RETURN
  21. END IF
  22. lo_p1client.openurlbydefaultbrowser(sys_kms_root + "/knowledge/management/docedit?code=" + arg_doccode+"&token="+ls_token)
  23. end subroutine