{"id":5309,"date":"2019-09-02T10:52:12","date_gmt":"2019-09-02T02:52:12","guid":{"rendered":"http:\/\/www.hefeiyu.com\/?p=5309"},"modified":"2019-09-02T10:52:13","modified_gmt":"2019-09-02T02:52:13","slug":"t100%e8%8f%9c%e5%8d%95action%e6%8e%a7%e5%88%b6%e6%a0%8f%e4%bd%8d%e5%ad%97%e6%ae%b5%e7%bc%96%e8%be%91%ef%bc%8c%e7%82%b9%e5%87%bb%e8%8f%9c%e5%8d%95action%e6%89%8d%e8%83%bd%e7%bc%96%e8%be%91%e6%8c%87","status":"publish","type":"post","link":"https:\/\/www.hefeiyu.com\/?p=5309","title":{"rendered":"T100\u83dc\u5355ACTION\u63a7\u5236\u680f\u4f4d\u5b57\u6bb5\u7f16\u8f91\uff0c\u70b9\u51fb\u83dc\u5355ACTION\u624d\u80fd\u7f16\u8f91\u6307\u5b9a\u7684\u680f\u4f4d"},"content":{"rendered":"<p>\u8303\u4f8b\uff08axmt500\uff09\uff1a<\/p>\n<p>\u76ee\u7684\uff0c\u63a7\u5236\u65b0\u589e\u7684\u680f\u4f4d\uff08\u4ef7\u683c\u6e05\u53552\uff09\uff0c\u9700\u70b9\u51fb\u83dc\u5355\u680f\u201c\u4fee\u6539\u4ef7\u683c\u6e05\u53552\u201d\u624d\u80fd\u5bf9\u76f8\u5e94\u7684\u680f\u4f4d\u8fdb\u884c\u7f16\u8f91\u4fee\u6539\uff0c\u5e76\u8bb0\u5f55\u4fee\u6539\u4eba\u3001\u65e5\u671f\uff1b<\/p>\n<p>&nbsp;<\/p>\n<p>1\uff09\u5728\u89c4\u683c\u4e0a\u589e\u52a0\u65b0ACTION\u2014\u2014action_modify_xmdaua012\uff0c\u4fee\u6539\u4ef7\u683c\u6e05\u53552\uff1b\u5e76\u5728azzi903\u4e0a\u628aACTION\u6dfb\u52a0\u5230\u83dc\u5355\u680f\uff1b<\/p>\n<p>&nbsp;<\/p>\n<p>2\uff09\u5728\u5355\u5934\u680f\u4f4d\u5f00\u542f\u8bbe\u5b9a\u4e2d\u3010\u00a0axmt500_set_entry(p_cmd)\u3011\u5bf9\u201c\u4ef7\u683c\u6e05\u53552\u201d\u680f\u4f4d\u8fdb\u884c\u5173\u95ed\uff0c\u4e0d\u5141\u8bb8\u7f16\u8f91\uff1a<\/p>\n<div class=\"cnblogs_code\">\n<pre>CALL cl_set_comp_entry(\"xmdaua012\",FALSE) #170608 by ljr<\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p>3\uff09\u5728\u5355\u5934\u680f\u4f4d\u5173\u95ed\u8bbe\u5b9a\u4e2d\u3010\u00a0axmt500_set_no_entry(p_cmd)\u3011\u5bf9\u201c\u4ef7\u683c\u6e05\u53552\u201d\u680f\u4f4d\u8fdb\u884c\u5173\u95ed\uff0c \u4e0d\u5141\u8bb8\u7f16\u8f91\uff1a<\/p>\n<div class=\"cnblogs_code\">\n<pre> CALL cl_set_comp_entry(\"xmdaua012\",FALSE) #170608 by ljr<\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p>4\uff09\u5728ui_dialog\u4e2d\uff0cON\u00a0ACTION\u00a0action_modify_xmdaua012 \u4e0b\u7f16\u8f91\u7a0b\u5e8f\uff1a<\/p>\n<pre class=\"pure-highlightjs\"><code class=\"null\">#\u61c9\u7528 a43 \u6a23\u677f\u81ea\u52d5\u7522\u751f(Version:4)\r\n         ON ACTION action_modify_xmdaua012\r\n            LET g_action_choice=\"action_modify_xmdaua012\"\r\n            IF cl_auth_chk_act(\"action_modify_xmdaua012\") THEN\r\n               \r\n               #add-point:ON ACTION action_modify_xmdaua012 name=\"menu.action_modify_xmdaua012\"\r\n                #170608 by ljr s\r\n                \r\n                DIALOG ATTRIBUTES(UNBUFFERED,FIELD ORDER FORM)\r\n                    INPUT g_xmda_m.xmdaua012 FROM xmdaua012 ATTRIBUTES(WITHOUT DEFAULTS) \r\n                        \r\n                        ON ACTION controlp INFIELD xmdaua012\r\n                            INITIALIZE g_qryparam.* TO NULL\r\n                            LET g_qryparam.state = 'i' \r\n                            LET g_qryparam.reqry = FALSE\r\n                            CALL cq_xmdtdoocno()                           #\u547c\u53eb\u958b\u7a97\r\n                            #DISPLAY g_qryparam.return1 TO xmdaua012  #\u986f\u793a\u5230\u756b\u9762\u4e0a\r\n                            LET g_xmda_m.xmdaua012 = g_qryparam.return1\r\n                            DISPLAY BY NAME g_xmda_m.xmdaua012\r\n                            \r\n                            SELECT xmdtua001 INTO g_xmda_m.xmdaua012_desc FROM xmdt_t\r\n                                WHERE xmdtdocno=g_xmda_m.xmdaua012\r\n                            DISPLAY BY NAME g_xmda_m.xmdaua012_desc\r\n                        \r\n                        NEXT FIELD xmdaua012                     #\u8fd4\u56de\u539f\u6b04\u4f4d\r\n                        \r\n                    END INPUT\r\n                    \r\n                BEFORE DIALOG \r\n                    CALL cl_set_comp_entry(\"xmdaua012\",TRUE)\r\n                    #\u91cd\u65b0\u5c0e\u56de\u8cc7\u6599\u5230\u6b63\u78ba\u4f4d\u7f6e\u4e0a\r\n                    CALL DIALOG.setCurrentRow(\"s_detail1\",g_idx_group.getValue(\"'1','2',\"))      \r\n                    CALL DIALOG.setCurrentRow(\"s_detail2\",g_idx_group.getValue(\"'3',\"))\r\n                    CALL DIALOG.setCurrentRow(\"s_detail3\",g_idx_group.getValue(\"'4',\"))\r\n                    CALL DIALOG.setCurrentRow(\"s_detail4\",g_idx_group.getValue(\"'5',\"))\r\n                    CALL DIALOG.setCurrentRow(\"s_detail5\",g_idx_group.getValue(\"'6',\"))\r\n                    CALL DIALOG.setCurrentRow(\"s_detail6\",g_idx_group.getValue(\"\"))\r\n                    \r\n                    ON ACTION controlf\r\n                        CALL cl_set_focus_form(ui.Interface.getRootNode()) RETURNING g_fld_name,g_frm_name\r\n                        CALL cl_fldhelp(g_frm_name,g_fld_name,g_lang)\r\n                    \r\n                    ON ACTION controlr\r\n                        CALL cl_show_req_fields()\r\n                    \r\n                    ON ACTION controls\r\n                        IF g_header_hidden THEN\r\n                        CALL gfrm_curr.setElementHidden(\"vb_master\",0)\r\n                        CALL gfrm_curr.setElementImage(\"controls\",\"small\/arr-u.png\")\r\n                        LET g_header_hidden = 0     #visible\r\n                        ELSE\r\n                        CALL gfrm_curr.setElementHidden(\"vb_master\",1)\r\n                        CALL gfrm_curr.setElementImage(\"controls\",\"small\/arr-d.png\")\r\n                        LET g_header_hidden = 1     #hidden     \r\n                        END IF\r\n                    \r\n                    ON ACTION accept\r\n                        IF NOT cl_null(g_xmda_m.xmdaua012) THEN\r\n                            INITIALIZE g_chkparam.* TO NULL\r\n                            LET g_chkparam.arg1 = g_xmda_m.xmdaua012\r\n                            IF cl_chk_exist(\"cv_xmdtdocno\") THEN \r\n                                LET g_xmda_m.xmdaua013 = g_user\r\n                                LET g_xmda_m.xmdaua014 = cl_get_current()\r\n                                UPDATE xmda_t SET xmdaua012=g_xmda_m.xmdaua012,\r\n                                                    xmdaua013=g_xmda_m.xmdaua013,\r\n                                                    xmdaua014=g_xmda_m.xmdaua014\r\n                                    WHERE xmdaent=g_enterprise AND xmdasite=g_site AND xmdadocno=g_xmda_m.xmdadocno\r\n                                DISPLAY BY NAME g_xmda_m.xmdaua013,g_xmda_m.xmdaua014\r\n                                SELECT ooag011 INTO g_xmda_m.xmdaua013_desc FROM ooag_t WHERE ooag001=g_xmda_m.xmdaua013\r\n                                DISPLAY BY NAME g_xmda_m.xmdaua013_desc                                \r\n                            END IF \r\n                        END IF\r\n                        \r\n                        ACCEPT DIALOG\r\n                    \r\n                    ON ACTION cancel      #\u5728dialog button (\u653e\u68c4)\r\n                        #add-point:input\u6bb5cancel name=\"input.cancel\"\r\n                        \r\n                        #end add-point  \r\n                        LET INT_FLAG = TRUE \r\n                        LET g_detail_idx  = 1\r\n                        LET g_detail_idx2 = 1\r\n                        #\u5404\u500bpage\u6307\u6a19\r\n                        LET g_detail_idx_list[1] = 1 \r\n                        LET g_detail_idx_list[2] = 1\r\n                        LET g_detail_idx_list[3] = 1\r\n                        LET g_detail_idx_list[4] = 1\r\n                        LET g_detail_idx_list[5] = 1\r\n                        LET g_detail_idx_list[6] = 1\r\n                        \r\n                        CALL g_curr_diag.setCurrentRow(\"s_detail1\",1)    \r\n                        CALL g_curr_diag.setCurrentRow(\"s_detail2\",1)\r\n                        CALL g_curr_diag.setCurrentRow(\"s_detail3\",1)\r\n                        CALL g_curr_diag.setCurrentRow(\"s_detail4\",1)\r\n                        CALL g_curr_diag.setCurrentRow(\"s_detail5\",1)\r\n                        CALL g_curr_diag.setCurrentRow(\"s_detail6\",1)\r\n                        \r\n                        EXIT DIALOG\r\n                    \r\n                    ON ACTION close       #\u5728dialog \u53f3\u4e0a\u89d2 (X)\r\n                        #add-point:input\u6bb5close name=\"input.close\"\r\n                        \r\n                        #end add-point  \r\n                        LET INT_FLAG = TRUE \r\n                        EXIT DIALOG\r\n                    \r\n                    ON ACTION exit        #toolbar \u96e2\u958b\r\n                        #add-point:input\u6bb5exit name=\"input.exit\"\r\n                        \r\n                        #end add-point\r\n                        LET INT_FLAG = TRUE \r\n                        LET g_detail_idx  = 1\r\n                        LET g_detail_idx2 = 1\r\n                        #\u5404\u500bpage\u6307\u6a19\r\n                        LET g_detail_idx_list[1] = 1 \r\n                        LET g_detail_idx_list[2] = 1\r\n                        LET g_detail_idx_list[3] = 1\r\n                        LET g_detail_idx_list[4] = 1\r\n                        LET g_detail_idx_list[5] = 1\r\n                        LET g_detail_idx_list[6] = 1\r\n                        \r\n                        CALL g_curr_diag.setCurrentRow(\"s_detail1\",1)    \r\n                        CALL g_curr_diag.setCurrentRow(\"s_detail2\",1)\r\n                        CALL g_curr_diag.setCurrentRow(\"s_detail3\",1)\r\n                        CALL g_curr_diag.setCurrentRow(\"s_detail4\",1)\r\n                        CALL g_curr_diag.setCurrentRow(\"s_detail5\",1)\r\n                        CALL g_curr_diag.setCurrentRow(\"s_detail6\",1)\r\n                        \r\n                        EXIT DIALOG\r\n                    \r\n                    #\u4ea4\u8ac7\u6307\u4ee4\u5171\u7528ACTION\r\n                    &amp;include \"common_action.4gl\" \r\n                        CONTINUE DIALOG \r\n                END DIALOG\r\n                #170608 by ljr e\r\n               #END add-point\r\n               \r\n            END IF<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>\u8fd9DIALOG\u6bb5\u843d\u5185\u5bb9\u53ef\u53c2\u8003axmt500_input \u4e0b\u7684axmt500.input.other\u00a0\u6bb5\u843d\uff1b<\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.hefeiyu.com\/wp-content\/uploads\/2019\/09\/312546-20170609153055278-1970960602.png\" alt=\"\" \/><\/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=5309\">T100\u83dc\u5355ACTION\u63a7\u5236\u680f\u4f4d\u5b57\u6bb5\u7f16\u8f91\uff0c\u70b9\u51fb\u83dc\u5355ACTION\u624d\u80fd\u7f16\u8f91\u6307\u5b9a\u7684\u680f\u4f4d<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>\u8303\u4f8b\uff08axmt500\uff09\uff1a \u76ee\u7684\uff0c\u63a7\u5236\u65b0\u589e\u7684\u680f\u4f4d\uff08\u4ef7\u683c\u6e05\u53552\uff09\uff0c\u9700\u70b9\u51fb\u83dc\u5355\u680f\u201c\u4fee\u6539\u4ef7\u683c\u6e05\u53552\u201d\u624d\u80fd\u5bf9\u76f8\u5e94\u7684\u680f\u4f4d\u8fdb\u884c\u7f16\u8f91\u4fee\u6539\uff0c\u5e76\u8bb0\u5f55\u4fee\u6539\u4eba\u3001\u65e5\u671f\uff1b &nbsp; 1\uff09\u5728\u89c4\u683c\u4e0a\u589e\u52a0\u65b0ACTION\u2014\u2014action_modify_xmdaua012\uff0c\u4fee\u6539\u4ef7\u683c\u6e05 [&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":[333,296,813],"class_list":["post-5309","post","type-post","status-publish","format-standard","hentry","category-490","tag-action","tag-296","tag-813"],"_links":{"self":[{"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=\/wp\/v2\/posts\/5309","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=5309"}],"version-history":[{"count":1,"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=\/wp\/v2\/posts\/5309\/revisions"}],"predecessor-version":[{"id":5311,"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=\/wp\/v2\/posts\/5309\/revisions\/5311"}],"wp:attachment":[{"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5309"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5309"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}