{"id":455,"date":"2022-03-11T10:05:58","date_gmt":"2022-03-11T02:05:58","guid":{"rendered":"https:\/\/hisui.cn\/?p=455"},"modified":"2022-11-30T11:09:23","modified_gmt":"2022-11-30T03:09:23","slug":"imedical%e9%94%81%e8%a1%a8%e8%ae%b0%e5%bd%95%e5%8a%9f%e8%83%bd","status":"publish","type":"post","link":"http:\/\/hisui.cn\/?p=455","title":{"rendered":"iMedical\u9501\u8868\u8bb0\u5f55\u529f\u80fd"},"content":{"rendered":"<h2>iMedical\u9501\u8868\u8bb0\u5f55\u529f\u80fd<\/h2>\n<p>\u4e1a\u52a1\u7cfb\u7edf\u7ecf\u5e38\u9501\u5b9a\u4e1a\u52a1\u6570\u636e\u9700\u6c42\uff0c\u5f53\u6211\u64cd\u4f5c\u67d0\u4e00\u4e1a\u52a1\u6570\u636e\u65f6\uff0c\u5e0c\u671b\u5f53\u524d\u6570\u636e\u4e0d\u4f1a\u4ed6\u4eba\u4fee\u6539\u3002<br \/>\n\u5982\u5728\u75c5\u4eba\u7ed3\u7b97\u65f6\uff0c\u4e0d\u5e0c\u671b\u540c\u65f6\u533b\u751f\u8fd8\u4e3a\u60a3\u8005\u5199\u533b\u5631\uff0c\u6216\u533b\u751f\u4e3a\u60a3\u8005\u4e0b\u533b\u5631\u65f6\uff0c\u4e0d\u5141\u8bb8\u5176\u5b83\u533b\u751f\u4e3a\u540c\u4e00\u60a3\u8005\u4e0b\u533b\u5631\u3002\u4e3a\u89e3\u51b3\u6b64\u95ee\u9898\uff0c\u63d0\u4f9b\u4e00\u9501\u8bb0\u5f55\u63a5\u53e3\uff0c\u63a5\u53e3\u8bf4\u660e\u5982\u4e0b\uff1a<\/p>\n<h4>1. \u52a0\u9501\u65b9\u6cd5<\/h4>\n<pre><code class=\"language-csharp line-numbers\">d ##class(websys.Lock).Lock(lockOid,sessionid, userid, .returnmsg, loginlocation, timeout)\n<\/code><\/pre>\n<table>\n<thead>\n<tr>\n<th>\u5165\u53c2<\/th>\n<th>\u8bf4\u660e<\/th>\n<th>\u5907\u6ce8<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>lockOid<\/td>\n<td>\u8981\u9501\u7684\u8bb0\u5f55,\u7ed3\u6784\u4e3a\uff1a$Lb(\u8bb0\u5f55id,&#8221;\u8868\u540d&#8221;)<\/td>\n<td>\u8bb0\u5f55\u88ab\u9501\u540e\uff0c\u518d\u9501\u540c\u4e00lockOid\u4f1a\u5931\u8d25<\/td>\n<\/tr>\n<tr>\n<td>sessionid<\/td>\n<td>\u4f1a\u8bddid<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>userid<\/td>\n<td>\u5f53\u524d\u7528\u6237id<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>returnmsg<\/td>\n<td>\u9501\u5931\u8d25\u65f6\u4f1a\u7acb\u5373\u5199\u4fe1\u606f\u5230returnmsg\u4e2d<\/td>\n<td>\u6210\u529f\u65f6\u503c\u4e3a\u7a7a\u5b57\u7b26\u4e32<\/td>\n<\/tr>\n<tr>\n<td>loginlocation<\/td>\n<td>\u767b\u5f55\u79d1\u5ba4id<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>timeout<\/td>\n<td>\u9501\u4f4f\u6700\u957f\u65f6\u95f4(\u5355\u4f4d\u79d2)\u3002\u53ef\u4ee5\u4e3a\u7a7a\uff0c\u4e3a\u7a7a\u8868\u793a\u4e00\u76f4\u9501\u4f4f\u76f4\u5230\u5207\u6362\u83dc\u5355\u6216\u9000\u51fa\u7cfb\u7edf\u3002timeout\u6709\u503c\u65f6\u4e0d\u4f1a\u81ea\u52a8\u6e05\u6b64\u9501\uff0c\u53ea\u662f\u8d85\u65f6\u540e\uff0c\u522b\u4eba\u518d\u9501\u4f1a\u5ffd\u7565\u6b64\u9501\u4e14\u6e05\u9664\u6b64\u9501<\/td>\n<td><code>iMedical8.4<\/code>\u65b0\u52a0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u793a\u4f8b\uff1a<\/p>\n<pre><code class=\"language-csharp line-numbers\">\/\/\/ \u533b\u751f1\u5728102\u79d1\u5ba4Ab21J89T\u4f1a\u8bdd\u4e0b\u9501\u4f4f\u533b\u563152250\u8bb0\u5f55\nd ##class(websys.Lock).Lock($Lb(52250,\"User.OEOrder\"),\"Ab21J89T\",1,.msg,102)\nw msg \/\/ \u4e3a\u7a7a\u5b57\u7b26\uff0c\u8868\u793a\u6210\u529f\u9501\u4f4f\uff0c\u53ef\u4ee5\u505a\u4e1a\u52a1\u64cd\u4f5c\n<\/code><\/pre>\n<pre><code class=\"language-csharp line-numbers\">\/\/\/ \u533b\u751f2\u5728102\u79d1\u5ba4Ab21J89Q\u4f1a\u8bdd\u4e0b\u8bf7\u6c42\u9501\u4f4f\u533b\u563152250\u8bb0\u5f55\nd ##class(websys.Lock).Lock($Lb(52250,\"User.OEOrder\"),\"Ab21J89Q\",2,.msg,102)\nw msg  \/\/ \u5f97\u5230\u5931\u8d25\u63d0\u793a\uff1a\u8bb0\u5f55\u88ab\u9501\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458\u3002(\u533b\u751f1 | \u5185\u4e09\u79d1 | 1.1.1.1 | ComputerName1234 | 2022-03-11 10:00:19)\n    \/\/ \u8868\u793a\u6709\u4eba\u9501\u4f4f\u4e86\uff0c\u4e0d\u80fd\u4f7f\u7528, \u63d0\u793a\u76f8\u5e94\u9501\u4fe1\u606f\u7ed9\u533b\u751f2\n<\/code><\/pre>\n<h4>2.\u89e3\u9501\u65b9\u6cd5<\/h4>\n<p>\u5f53\u754c\u9762\u5173\u95ed\uff0c\u6216\u5207\u6362\u5230\u5176\u5b83\u754c\u9762\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528LockClear\u65b9\u6cd5\u89e3\u9501<\/p>\n<pre><code class=\"language-csharp line-numbers\">d ##class(websys.Lock).LockClear(lockOid, sessionid)\n<\/code><\/pre>\n<table>\n<thead>\n<tr>\n<th>\u5165\u53c2<\/th>\n<th>\u8bf4\u660e<\/th>\n<th>\u5907\u6ce8<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>lockOid<\/td>\n<td>\u8981\u9501\u7684\u8bb0\u5f55,\u7ed3\u6784\u4e3a\uff1a$Lb(\u8bb0\u5f55id,&#8221;\u8868\u540d&#8221;)<\/td>\n<td>\u8bb0\u5f55\u88ab\u9501\u540e\uff0c\u518d\u9501\u540c\u4e00lockOid\u4f1a\u5931\u8d25<\/td>\n<\/tr>\n<tr>\n<td>sessionid<\/td>\n<td>\u4f1a\u8bddid<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8054\u7cfb\u57fa\u7840\u5e73\u53f0\u7ec4\u66f4\u65b0\u7c7b\uff1awebsys.Lock<br \/>\n\u6269\u5c55\u4e86\u4e00\u4e2a\u89e3\u9501\u7684\u65b9\u6cd5\uff0c\u65b9\u4fbf\u524d\u7aef\u53d1\u8d77\u89e3\u9501\u3002<\/p>\n<pre><code class=\"language-csharp line-numbers\">d ##class(websys.Lock).LockClear2(classId1, className1, sessionid)\n<\/code><\/pre>\n<table>\n<thead>\n<tr>\n<th>\u5165\u53c2<\/th>\n<th>\u8bf4\u660e<\/th>\n<th>\u5907\u6ce8<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>classId1<\/td>\n<td>\u8981\u9501\u7684\u8bb0\u5f55\uff0c\u8868\u7684id<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>className1<\/td>\n<td>\u8981\u9501\u7684\u8bb0\u5f55,\u8868\u7684\u7c7b\u540d<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>sessionid<\/td>\n<td>\u4f1a\u8bddid<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>3. \u6e05\u9664\u5f53\u524d\u4f1a\u8bdd\u6240\u6709\u9501<\/h4>\n<pre><code class=\"language-csharp line-numbers\">d ##class(websys.Lock).LockClearSession(sessionid)\n<\/code><\/pre>\n<h4>4. \u6e05\u9664\u5f53\u524d\u8ba1\u7b97\u673a\u6240\u6709\u9501<\/h4>\n<pre><code class=\"language-csharp line-numbers\">d ##class(websys.Lock).LockClearComputer(comp)\n<\/code><\/pre>\n<h2>\u76f8\u5173\u53c2\u8003<\/h2>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/hisui.cn\/?p=871\">iMedical\u9501\u8868-HISUI\u9875\u9762<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e1a\u52a1\u7cfb\u7edf\u7ecf\u5e38\u9501\u5b9a\u4e1a\u52a1\u6570\u636e\u9700\u6c42\uff0c\u5f53\u6211\u64cd\u4f5c\u67d0\u4e00\u4e1a\u52a1\u6570\u636e\u65f6\uff0c\u5e0c\u671b\u5f53\u524d\u6570\u636e\u4e0d\u4f1a\u4ed6\u4eba\u4fee\u6539\u3002<br \/>\n\u5982\u5728\u75c5\u4eba\u7ed3\u7b97\u65f6\uff0c\u4e0d\u5e0c\u671b\u540c\u65f6\u533b\u751f\u8fd8\u4e3a\u60a3\u8005\u5199\u533b\u5631\uff0c\u6216\u533b\u751f\u4e3a\u60a3\u8005\u4e0b\u533b\u5631\u65f6\uff0c\u4e0d\u5141\u8bb8\u5176\u5b83\u533b\u751f\u4e3a\u540c\u4e00\u60a3\u8005\u4e0b\u533b\u5631\u3002\u4e3a\u89e3\u51b3\u6b64\u95ee\u9898\uff0c\u63d0\u4f9b\u4e00\u9501\u8bb0\u5f55\u63a5\u53e3\uff0c\u63a5<\/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":[115,117,116],"class_list":["post-455","post","type-post","status-publish","format-standard","hentry","category-imedical_info","tag-websys-lock","tag-117","tag-116"],"_links":{"self":[{"href":"http:\/\/hisui.cn\/index.php?rest_route=\/wp\/v2\/posts\/455","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=455"}],"version-history":[{"count":0,"href":"http:\/\/hisui.cn\/index.php?rest_route=\/wp\/v2\/posts\/455\/revisions"}],"wp:attachment":[{"href":"http:\/\/hisui.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=455"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/hisui.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=455"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/hisui.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=455"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}