{"id":366,"date":"2021-11-23T10:12:24","date_gmt":"2021-11-23T02:12:24","guid":{"rendered":"https:\/\/hisui.cn\/?p=366"},"modified":"2022-08-02T15:14:00","modified_gmt":"2022-08-02T07:14:00","slug":"%e9%80%9a%e8%bf%87%e7%99%bb%e5%bd%95%e7%94%9f%e6%88%90portal%e5%bf%ab%e6%8d%b7%e6%96%b9%e5%bc%8f","status":"publish","type":"post","link":"http:\/\/hisui.cn\/?p=366","title":{"rendered":"\u901a\u8fc7\u767b\u5f55\u751f\u6210Portal\u5feb\u6377\u65b9\u5f0f"},"content":{"rendered":"<hr \/>\n<h2>\u901a\u8fc7\u767b\u5f55\u751f\u6210Portal\u5feb\u6377\u65b9\u5f0f<\/h2>\n<p>iMedical\u7cfb\u7edf\u5df2\u5b8c\u6210\u4e0a\u7ebf\u540e\uff0c\u9700\u8981\u4e0a\u7ebfPortal\u7cfb\u7edf\uff0c\u6240\u4ee5\u8981\u4e3a\u6bcf\u4e2a\u7528\u6237\u751f\u6210\u684c\u9762\u5feb\u6377\u65b9\u5f0f\u3002<\/p>\n<h3>1\u3001\u7f16\u8f91\u597dmakelnk.vbs\u6587\u4ef6<\/h3>\n<pre><code class=\"language-vb line-numbers\">Function MakeLnkFun()\n    '--------------\u53ea\u589e\u52a0portal\u5feb\u6377\u65b9\u5f0f\n    PortalLnkName = \"\u4e1c\u534e\u95e8\u6237\u7cfb\u7edf\"\n    PortalInkWeb = \"http:\/\/x.x.x.x:8081\/web\/dhcc\/index\" ' Portal\u8bbf\u95ee\u8def\u5f84\n    '------------------------\n    UserConfigDir = \"\"   '\n    '\u4ee5\u4e0b\u4ee3\u7801\u4e0d\u4fee\u6539\n    Set fso = createobject(\"Scripting.FileSystemObject\")\n    curPath = fso.GetFile(Wscript.ScriptFullName).ParentFolder.Path\n    if fso.fileexists(curPath &amp; \"\\makelnk.txt\") then    '\u5df2\u505a\u8fc7\u521b\u5efa\u4e0d\u518d\u521b\u5efa\n        MakeLnkFun = 0\n        Exit Function\n    end if\n    Set WshShell=WScript.CreateObject(\"WScript.Shell\")\n    strDesktop = WshShell.SpecialFolders(\"Desktop\")\n    For Each item In fso.GetFolder(strDesktop).Files\n        If fso.GetExtensionName(item)=\"lnk\" Then\n            Set itemShellLink=WshShell.CreateShortcut(strDesktop &amp; \"\\\" &amp; item.Name)\n            if instr(itemShellLink.TargetPath,\"DHCWebBrowser49.exe\")&gt;0 then\n                curPathBrowser = itemShellLink.TargetPath\n            End if\n            itemShellLink = null\n        End If\n    Next\n    ' \u751f\u6210Portal\u5feb\u6377\u65b9\u5f0f\n    Set oShellLink=WshShell.CreateShortcut(strDesktop &amp; \"\\\" &amp; PortalLnkName &amp; \".lnk\")\n    oShellLink.Arguments=PortalInkWeb\n    oShellLink.TargetPath=curPathBrowser\n    oShellLink.WorkingDirectory=curPathBrowser\n    oShellLink.WindowStyle=1\n    oShellLink.Description=\"\u4e1c\u534e\u533b\u4e3aPortal\u7cfb\u7edf\"\n    oShellLink.Save\n    Set myFile = fso.CreateTextFile(curPath &amp; \"\\makelnk.txt\",,true)\n    myFile.Close\n    MakeLnkFun = 1\nEnd Function\nRtn = MakeLnkFun()\nif Rtn=1 Then\n    MsgBox \"\u4e1c\u534e\u95e8\u6237\u7cfb\u7edf\u5feb\u6377\u65b9\u5f0f\u5df2\u66f4\u65b0\u6210\u529f, \u8bf7\u70b9\u51fb\u684c\u9762\u5feb\u6377\u65b9\u5f0f\u4f7f\u7528\"\nend if\n<\/code><\/pre>\n<h3>2\u3001\u653e\u7f6e\u6587\u4ef6<\/h3>\n<p>\u628a\u7b2c\u4e00\u6b65\u5b8c\u6210\u7684vbs\u6587\u4ef6\u653e\u5230\u670d\u52a1\u5668\\addins\\plugin\\PortalLnk\\\u76ee\u5f55\u4e0b<\/p>\n<h3>3\u3001\u7ef4\u62a4\u5ba2\u6237\u7aef\u8bb0\u5f55<\/h3>\n<p>\u8fdb\u5165demo \u5934\u83dc\u5355 &#8211; \u5f00\u53d1\u5de5\u5177 &#8211; \u4e2d\u95f4\u4ef6\u7ba1\u7406\u754c\u9762\uff0c\u65b0\u589e\u52a0\u8bb0\u5f55<br \/>\n<img decoding=\"async\" src=\"https:\/\/hisui.cn\/wp-content\/uploads\/2021\/11\/portalLnk.png\" alt=\"PortalLnk\u7ef4\u62a4\" \/><br \/>\n\u63a7\u4ef6\u4ee3\u7801\uff1aPortalLnk<br \/>\nDLL\u5305\u7248\u672c\uff1a1.0.0.1<br \/>\n\u7a0b\u5e8f\u96c6\u540d\uff1aPortalLnk<br \/>\n\u8c03\u7528ID\u540d\uff1aPortalLnk<br \/>\n\u529f\u80fd\u8bf4\u660e\uff1a\u767b\u5f55HIS\u65f6\u589e\u52a0Portal\u5feb\u6377\u65b9\u5f0f<br \/>\n\u7c7b\u540d\uff1aPortalLnk<br \/>\nDLL\u6587\u4ef6\u8def\u5f84\uff1aPortalLnk\/makelnk.vbs   <code>\u6587\u4ef6\u540d\u4e0eaddins\/plugin\/\u76ee\u5f55\u4e0b\u4e00\u81f4<\/code><br \/>\n\u6fc0\u6d3b\uff1a\u5148\u4e0d\u6fc0\u6d3b <strong><code>\u7b49\u6587\u4ef6\u540c\u6b65ECP\u5b8c\u6210\u540e\u518d\u6fc0\u6d3b<\/code><\/strong><\/p>\n<h3>4\u3001\u4fee\u6539\u7c7b\u53ca\u767b\u5f55csp\u4e0e\u767b\u5f55js<\/h3>\n<p>\u66f4\u65b0websys.AddIns.cls,websys.AddInsTmpl.cls<br \/>\n\u4fee\u6539csp\\dhc.logon.csp, scripts\\dhc.logon.js<\/p>\n<pre><code class=\"language-HTML line-numbers\">&lt;!--CSP\u4e2d\u589e\u52a0\u5f15\u5165PortalLnk--&gt;\n&lt;ADDINS require=\"...,PortalLnk\"&gt;&lt;\/ADDINS&gt;\n<\/code><\/pre>\n<pre><code class=\"language-js line-numbers\">\/\/ dhc.logon.js\u589e\u52a0\u4ee5\u4e0b\nif(\"undefined\"!==typeof PortalLnk){\n    $.messager.progress({title: \"\u63d0\u793a\",msg: '\u6b63\u5728\u5347\u7ea7Portal\u5feb\u6377\u65b9\u5f0f',text: '\u4e0b\u8f7d\u4e2d...'});\n    PortalLnk.notReturn=1;\n    PortalLnk.cmd(\"makelnk.vbs\",function(){\n        $.messager.progress(\"close\");\n    });\n}\n<\/code><\/pre>\n<h3>5\u3001\u8fdb\u5165\u767b\u5f55\u754c\u9762\u6d4b\u8bd5\u6548\u679c<\/h3>\n<p>\u8fdb\u5165his\u767b\u5f55\u754c\u9762\u4f1a\u81ea\u52a8\u5224\u65ad\u662f\u5426\u751f\u6210\u8fc7\u5feb\u6377\u65b9\u5f0f\uff0c\u6ca1\u6709\u751f\u6210\u8fc7\u5219\u751f\u6210\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u901a\u8fc7\u767b\u5f55\u751f\u6210Portal\u5feb\u6377\u65b9\u5f0f<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[95,21],"class_list":["post-366","post","type-post","status-publish","format-standard","hentry","category-imedical_info","tag-portal","tag-21"],"_links":{"self":[{"href":"http:\/\/hisui.cn\/index.php?rest_route=\/wp\/v2\/posts\/366","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/hisui.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/hisui.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/hisui.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/hisui.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=366"}],"version-history":[{"count":0,"href":"http:\/\/hisui.cn\/index.php?rest_route=\/wp\/v2\/posts\/366\/revisions"}],"wp:attachment":[{"href":"http:\/\/hisui.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=366"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/hisui.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=366"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/hisui.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=366"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}