{"id":5316,"date":"2019-09-03T09:33:43","date_gmt":"2019-09-03T01:33:43","guid":{"rendered":"http:\/\/www.hefeiyu.com\/?p=5316"},"modified":"2019-09-03T09:34:54","modified_gmt":"2019-09-03T01:34:54","slug":"t100%e5%8d%95%e6%a1%a3-%e7%8a%b6%e6%80%81%e7%a0%81%e6%98%be%e7%a4%ba%e8%ae%be%e7%bd%ae%ef%bc%8c%e7%8a%b6%e6%80%81%e7%a0%81%e6%9b%b4%e6%94%b9%e9%93%be%e8%a1%a8%e6%9b%b4%e6%96%b0","status":"publish","type":"post","link":"https:\/\/www.hefeiyu.com\/?p=5316","title":{"rendered":"T100\u5355\u6863\u2014\u2014\u72b6\u6001\u7801\u663e\u793a\u8bbe\u7f6e\uff0c\u72b6\u6001\u7801\u66f4\u6539\u94fe\u8868\u66f4\u65b0"},"content":{"rendered":"<p>\u8303\u4f8b\uff08<strong>cxmt631<\/strong>\uff09\uff0c\u72b6\u6001\u7801\u663e\u793a\u8bbe\u7f6e\uff08\u67d0\u72b6\u6001\u4e0b\u4e0d\u663e\u793a\u67d0\u4e9b\u72b6\u6001\u7801\uff0c\u5373\u6709\u4e9b\u72b6\u6001\u662f\u4e0d\u53ef\u76f4\u63a5\u66f4\u6539\u7684\u4e3a\u53e6\u4e00\u79cd\u72b6\u6001\u7684\uff09\uff0c\u66f4\u6539\u5b8c\u72b6\u6001\u7801\u540e\u540c\u6b65\u66f4\u65b0\u6570\u636e\u8868\u7684\u6307\u5b9a\u5b57\u6bb5\uff1b<\/p>\n<p><strong>1\uff09<\/strong>\u5728cxmt631_statechange \u4e2d\u7684statechange.before_menu \u4e0b\uff0c\u7f6e\u5165\u7a0b\u5e8f\uff1a<\/p>\n<pre class=\"pure-highlightjs\"><code class=\"null\">#add-point:menu\u524d name=\"statechange.before_menu\"\r\n \r\nCASE g_xmabuc_m.xmabucstus\r\n     WHEN \"X\"\r\n           CALL cl_set_act_visible(\"report,factory,Load,pass,valid\",FALSE)\r\n     WHEN \"01\"\r\n           CALL cl_set_act_visible(\"Loading,pass\",FALSE)\r\n     WHEN \"02\"\r\n           CALL cl_set_act_visible(\"pass\",FALSE)\r\n     WHEN \"03\"\r\n          CALL cl_set_act_visible(\"report\",FALSE)\r\n     WHEN \"04\"\r\n        CALL cl_set_act_visible(\"factory,report\",FALSE)\r\nEND CASE\r\n#end add-point<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>\u4ee5\u4e0a\u7684report\u3001factory\u7b49\uff0c\u4e3a\u529f\u80fd\u7f16\u53f7\uff0c\u5177\u4f53\u89c1azzi850\uff1b<\/p>\n<p>01\u300102\u300103\u300104\u3001X\uff0c\u4e3a\u72b6\u6001\u7801\u7f16\u7801\uff1b<\/p>\n<p>&nbsp;<\/p>\n<p><strong>2\uff09<\/strong>\u6bcf\u4e00\u4e2a\u72b6\u6001\u66f4\u6539\u65f6\u90fd\u540c\u65f6\u66f4\u65b0\u6570\u636e\u8868\u7684\u76f8\u5173\u5b57\u6bb5\uff0c\u540c\u6837\u662f\u5728cxmt631_statechange \u4e0b\uff1a<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"pure-highlightjs\"><code class=\"null\">ON ACTION invalid\r\n         IF cl_auth_chk_act(\"invalid\") THEN\r\n            LET lc_state = \"X\"\r\n            #add-point:action\u63a7\u5236 name=\"statechange.invalid\"\r\n            update xmabuc_t set xmabuc004 = lc_state where xmabucdocno = g_xmabuc_m.xmabucdocno and xmabucent = g_enterprise\r\n            if not cl_null(g_xmabuc_m.xmabuc009) then\r\n                update xmen_t set xmenua003 = lc_state where xmenent = g_enterprise and xmendocno = g_xmabuc_m.xmabuc009\r\n            end if\r\n            #end add-point\r\n         END IF\r\n         EXIT MENU\r\n      ON ACTION report\r\n         IF cl_auth_chk_act(\"report\") THEN\r\n            LET lc_state = \"01\"\r\n            #add-point:action\u63a7\u5236 name=\"statechange.report\"\r\n            update xmabuc_t set xmabuc004 = lc_state where xmabucdocno = g_xmabuc_m.xmabucdocno and xmabucent = g_enterprise\r\n            if not cl_null(g_xmabuc_m.xmabuc009) then\r\n                update xmen_t set xmenua003 = lc_state where xmenent = g_enterprise and xmendocno = g_xmabuc_m.xmabuc009\r\n            end if\r\n            #end add-point\r\n         END IF\r\n         EXIT MENU\r\n \r\n      ON ACTION factory\r\n         IF cl_auth_chk_act(\"factory\") THEN\r\n            LET lc_state = \"02\"\r\n            #add-point:action\u63a7\u5236 name=\"statechange.factory\"\r\n            update xmabuc_t set xmabuc004 = lc_state where xmabucdocno = g_xmabuc_m.xmabucdocno and xmabucent = g_enterprise\r\n            if not cl_null(g_xmabuc_m.xmabuc009) then\r\n                update xmen_t set xmenua003 = lc_state where xmenent = g_enterprise and xmendocno = g_xmabuc_m.xmabuc009\r\n            end if\r\n            #end add-point\r\n         END IF\r\n         EXIT MENU\r\n \r\n      ON ACTION loading\r\n         IF cl_auth_chk_act(\"loading\") THEN\r\n            LET lc_state = \"03\"\r\n            #add-point:action\u63a7\u5236 name=\"statechange.loading\"\r\n            update xmabuc_t set xmabuc004 = lc_state where xmabucdocno = g_xmabuc_m.xmabucdocno and xmabucent = g_enterprise\r\n            if not cl_null(g_xmabuc_m.xmabuc009) then\r\n                update xmen_t set xmenua003 = lc_state where xmenent = g_enterprise and xmendocno = g_xmabuc_m.xmabuc009\r\n            end if\r\n            #end add-point\r\n         END IF\r\n         EXIT MENU\r\n \r\n      ON ACTION pass\r\n         IF cl_auth_chk_act(\"pass\") THEN\r\n            LET lc_state = \"04\"\r\n            #add-point:action\u63a7\u5236 name=\"statechange.pass\"\r\n            update xmabuc_t set xmabuc004 = lc_state where xmabucdocno = g_xmabuc_m.xmabucdocno and xmabucent = g_enterprise\r\n            if not cl_null(g_xmabuc_m.xmabuc009) then\r\n                update xmen_t set xmenua003 = lc_state where xmenent = g_enterprise and xmendocno = g_xmabuc_m.xmabuc009\r\n            end if\r\n            #end add-point\r\n         END IF\r\n         EXIT MENU<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>\u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff1a<a href=\"https:\/\/www.hefeiyu.com\">\u8d6b\u975e\u57df<\/a> &raquo; <a href=\"https:\/\/www.hefeiyu.com\/?p=5316\">T100\u5355\u6863\u2014\u2014\u72b6\u6001\u7801\u663e\u793a\u8bbe\u7f6e\uff0c\u72b6\u6001\u7801\u66f4\u6539\u94fe\u8868\u66f4\u65b0<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>\u8303\u4f8b\uff08cxmt631\uff09\uff0c\u72b6\u6001\u7801\u663e\u793a\u8bbe\u7f6e\uff08\u67d0\u72b6\u6001\u4e0b\u4e0d\u663e\u793a\u67d0\u4e9b\u72b6\u6001\u7801\uff0c\u5373\u6709\u4e9b\u72b6\u6001\u662f\u4e0d\u53ef\u76f4\u63a5\u66f4\u6539\u7684\u4e3a\u53e6\u4e00\u79cd\u72b6\u6001\u7684\uff09\uff0c\u66f4\u6539\u5b8c\u72b6\u6001\u7801\u540e\u540c\u6b65\u66f4\u65b0\u6570\u636e\u8868\u7684\u6307\u5b9a\u5b57\u6bb5\uff1b 1\uff09\u5728cxmt631_statechange \u4e2d\u7684statechange.before_menu  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[490],"tags":[819,818,817],"class_list":["post-5316","post","type-post","status-publish","format-standard","hentry","category-490","tag-menu","tag-statechange","tag-817"],"_links":{"self":[{"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=\/wp\/v2\/posts\/5316","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5316"}],"version-history":[{"count":3,"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=\/wp\/v2\/posts\/5316\/revisions"}],"predecessor-version":[{"id":5319,"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=\/wp\/v2\/posts\/5316\/revisions\/5319"}],"wp:attachment":[{"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5316"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5316"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5316"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}