{"id":1600,"date":"2023-08-21T11:23:02","date_gmt":"2023-08-21T03:23:02","guid":{"rendered":"http:\/\/www.plm.cn\/?p=1600"},"modified":"2023-10-11T09:42:28","modified_gmt":"2023-10-11T01:42:28","slug":"mobox%e4%ba%8c%e5%bc%80%e7%9a%84%e5%bc%b9%e7%aa%97%e9%80%89%e6%8b%a9%e6%95%b0%e6%8d%ae%e5%ae%9e%e7%8e%b0%e6%8a%80%e5%b7%a7","status":"publish","type":"post","link":"http:\/\/www.plm.cn\/1600\/","title":{"rendered":"Mobox\u4e8c\u5f00\u7684\u5f39\u7a97\u9009\u62e9\u6570\u636e\u5b9e\u73b0\u6280\u5de7"},"content":{"rendered":"

Mobox\u4e8c\u5f00\u7684\u5f39\u7a97\u9009\u62e9\u6570\u636e\u5b9e\u73b0\u6280\u5de7<\/h1>\n

 <\/p>\n

\u9700\u6c42\u63cf\u8ff0<\/h2>\n

\"\"<\/p>\n

 <\/p>\n

\uff08\u4e0a\u56fe\u4e3a\u591a\u9009\u7a97\u53e3\uff09<\/p>\n

\u5b9e\u73b0\u65b9\u5f0f<\/h2>\n

\u9700\u8981\u5f00\u53d12\u4e2alua\u811a\u672c<\/p>\n

\"\"<\/p>\n

 <\/p>\n

Lua\u811a\u672c\u3010\u8bd5\u9a8c\u7c7b\u578b\u9009\u62e9\u524d<\/span>\u3011<\/h3>\n
\n
\n
–[[<\/div>\n
\u00a0 \u00a0 \u8fd9\u4e2a\u811a\u672c\u9002\u5408 \u5355\u4e2a\u9009\u62e9\u7684\u83b7\u53d6\u8fc7\u7a0b<\/div>\n
–]]<\/div>\n
\n

json = require (“json”)<\/p>\n

mobox = require (“OILua_JavelinExt”)<\/p>\n

function BeforeSelectGP ( strLuaDEID )<\/h5>\n

local nRet, strRetInfo ,strCondition<\/p>\n

strCondition = “”<\/p>\n

local action = ‘[{“action_type”:”open_data_query_dlg”,”value”:{“mulit_select”:0,”cls_name”:”\u4f9b\u5e94\u5546”,”order”:””,”grid_style”:”default”,”condition”:”‘..strCondition..'”}}]’<\/span><\/p>\n

mobox.setAction( strLuaDEID, action )<\/p>\n

\nend<\/h5>\n<\/div>\n<\/blockquote>\n<\/div>\n
\n

 <\/p>\n

    \n
  • \u5f39\u51fa\u7a97\u53e3\u5b9a\u4e49\uff1a\u00a0 \u00a0(\u6ce8\u610f\u7c98\u8d34\u4e0b\u9762\u5185\u5bb9\u7684\u65f6\u5019\u00a0 \u201d\u00a0 \u53ef\u80fd\u662f\u4e2d\u6587\u7684\uff0c\u9700\u8981\u6539\u6210\u82f1\u6587\uff09<\/strong><\/li>\n
  • \u5355\u9009<\/span> “mulit_select”:0\u00a0\u00a0\u00a0 \u591a\u9009<\/span>\u00a0 “mulit_select”:1<\/li>\n
  • \u5173\u8054\u8868\u540d<\/span> “cls_name”:”\u90e8\u5206\u6027\u80fd\u8bd5\u9a8c”\u00a0\u00a0 \uff08\u90e8\u5206\u6027\u80fd\u8bd5\u9a8c \u8fd9\u4e2a\u662f\u8868\u540d\uff09<\/li>\n
  • \u6392\u5e8f<\/span> “order”:””\u00a0\u00a0\u00a0\u00a0\u00a0 \uff08\u53ef\u4ee5\u8bbe\u7f6e\u6392\u5e8f\u5b57\u6bb5\u540d\uff09<\/li>\n
  • \u7a97\u53e3grid<\/span> “grid_style”:”procure”\u00a0 \uff08\u4e0d\u8bbe\u7f6e\u5c31\u662f\u9ed8\u8ba4grid\uff09<\/li>\n
  • \u67e5\u8be2\u6761\u4ef6<\/span> “condition”:”‘..strCondition..\u2019\u201d\u00a0 \uff08 strCondition \u662f\u53d8\u91cf\uff0c\u62fc\u63a5\u7684\u67e5\u8be2\u6761\u4ef6\uff09<\/li>\n<\/ul>\n

     <\/p>\n

    \u6211\u4eec\u5728\u5f39\u51fa\u7a97\u53e3\u524d\uff0c\u53ef\u4ee5\u5c06\u6211\u4eec\u9700\u8981\u7684\u901a\u8fc7\u4e0a\u8ff0\u53c2\u6570\u8bbe\u7f6e\u597d\u540e \u518d\u5f39\u51fa<\/p>\n

    Lua\u811a\u672c\u3010\u8bd5\u9a8c\u7c7b\u578b\u9009\u62e9\u540e<\/span>\u3011\u00a0 \u5355\u9009\u548c\u591a\u9009\u4f8b\u5b50<\/span><\/h3>\n<\/div>\n
    \n

    –[[<\/p>\n

    \u8fd9\u4e2a\u811a\u672c\u9002\u5408 \u5355\u4e2a\u9009\u62e9 <\/span>\u7684\u83b7\u53d6\u8fc7\u7a0b<\/p>\n

    –]]<\/p>\n

     <\/p>\n

    json\u00a0 = require (“json”)<\/p>\n

    mobox = require (“OILua_JavelinExt”)<\/p>\n

    function AfterSelectSYTPYE ( strLuaDEID )<\/p>\n

    local\u00a0\u00a0 nRet,\u00a0 strTpyeDESC , strOldDesc<\/p>\n

     <\/p>\n

    — \u83b7\u53d6\u5f53\u524d\u9009\u62e9\u6570\u636e<\/p>\n

    nRet, strRetInfo = mobox.getInputParameter( strLuaDEID )<\/p>\n

    if ( nRet ~= 0 or\u00a0 strRetInfo == ”) then<\/p>\n

    mobox.error( strLuaDEID, “\u65e0\u6cd5\u83b7\u53d6\u5bfc\u5165\u6570\u636e!”)<\/p>\n

    return<\/p>\n

    end<\/p>\n

     <\/p>\n

    local retJson = json.decode( strRetInfo )<\/p>\n

    local input_parameter = retJson[“parameter”]<\/p>\n

    local n, nCount<\/p>\n

     <\/p>\n

    strTpyeDESC = input_parameter[“S_TST_TPYEDESC”]<\/p>\n

     <\/p>\n

    if ( strTpyeDESC == ”\u00a0 ) then<\/p>\n

    mobox.error( strLuaDEID, “\u8bd5\u9a8c\u7c7b\u578b\u4fe1\u606f\u4e0d\u5bf9!”)<\/p>\n

    return<\/p>\n

    end<\/p>\n

     <\/p>\n

    — \u8bbe\u7f6e\u8bd5\u9a8c\u7c7b\u578b\u4fe1\u606f<\/p>\n

    local setAttr = ‘[{“attr”:”S_TST_TPYEDESC”,”value”:”‘..strTpyeDESC..'”}]’<\/p>\n

    mobox.setCurEditDataObjAttr( strLuaDEID,setAttr )<\/p><\/blockquote>\n<\/div>\n

    \u4e0b\u9762\u662f\u591a\u9009\u7684\u4f8b\u5b50<\/p>\n

    \n

    –[[<\/p>\n

    \u8fd9\u4e2a\u811a\u672c\u9002\u5408 \u591a\u4e2a\u9009\u62e9 <\/span>\u7684\u83b7\u53d6\u8fc7\u7a0b<\/p>\n

    –]]<\/p>\n

     <\/p>\n

    json\u00a0 = require (“json”)<\/p>\n

    mobox = require (“OILua_JavelinExt”)<\/p>\n

    function AfterSelectSYTPYE ( strLuaDEID )<\/p>\n

    local\u00a0\u00a0 nRet,\u00a0 strTpyeDESC<\/p>\n

    — \u83b7\u53d6\u5f53\u524d\u9009\u62e9\u6570\u636e<\/p>\n

    nRet, strRetInfo = mobox.getInputParameter( strLuaDEID )<\/p>\n

    if ( nRet ~= 0 or\u00a0 strRetInfo == ”) then<\/p>\n

    mobox.error( strLuaDEID, “\u65e0\u6cd5\u83b7\u53d6\u5bfc\u5165\u6570\u636e!”)<\/p>\n

    return<\/p>\n

    end<\/p>\n

    local retJson = json.decode( strRetInfo )<\/p>\n

    local input_parameter = retJson[“parameter”]\u00a0\u00a0\u00a0\u00a0\u00a0 —\u00a0 \u6216\u8005 retJson.parameter<\/p>\n

    local n, nCount<\/p>\n

    nCount = #input_parameter<\/p>\n

    strTpyeDESC =”<\/p>\n

    for n = 1 , nCount do\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 — \u9700\u8981for\u5faa\u73af<\/span><\/p>\n

    \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if (strTpyeDESC ==”) then<\/span><\/p>\n

    \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 strTpyeDESC = input_parameter[n].S_TST_TPYEDESC<\/span><\/p>\n

    \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 else<\/span><\/p>\n

    \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 strTpyeDESC = strTpyeDESC .. ‘\u3001’..input_parameter[n].S_TST_TPYEDESC<\/span><\/p>\n

    \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 end<\/span><\/p>\n

    \u00a0\u00a0 \u00a0end<\/span><\/p>\n

    — \u8bbe\u7f6e\u8bd5\u9a8c\u7c7b\u578b\u4fe1\u606f<\/p>\n

    local setAttr = ‘[{“attr”:”S_TST_TPYEDESC”,”value”:”‘..strTpyeDESC..'”}]’<\/p>\n

    mobox.setCurEditDataObjAttr( strLuaDEID,setAttr )<\/p><\/blockquote>\n<\/div>\n

     <\/p>\n

    \u4e4b\u540e\u5c06\u8fd9\u4e2a\u811a\u672c\u7ba1\u7406\u7684\u7a97\u53e3\u7684\u5b9a\u4e49\u91cc\u9762<\/h2>\n

    \"\"<\/p>\n

    \"\"<\/p>\n

     <\/p>\n","protected":false},"excerpt":{"rendered":"

    Mobox\u4e8c\u5f00\u7684\u5f39\u7a97\u9009\u62e9\u6570\u636e\u5b9e\u73b0\u6280\u5de7   \u9700\u6c42\u63cf\u8ff0   \uff08\u4e0a\u56fe\u4e3a\u591a\u9009\u7a97\u53e3\uff09 \u5b9e\u73b0\u65b9\u5f0f \u9700\u8981 […]<\/p>\n","protected":false},"author":1,"featured_media":1498,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,5,9,12],"tags":[31,14],"class_list":["post-1600","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-eckf","category-plmcenter","category-pcdoc","category-ssdoc","tag-didaima","tag-jiaoben"],"_links":{"self":[{"href":"http:\/\/www.plm.cn\/wp-json\/wp\/v2\/posts\/1600","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.plm.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.plm.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.plm.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.plm.cn\/wp-json\/wp\/v2\/comments?post=1600"}],"version-history":[{"count":5,"href":"http:\/\/www.plm.cn\/wp-json\/wp\/v2\/posts\/1600\/revisions"}],"predecessor-version":[{"id":1667,"href":"http:\/\/www.plm.cn\/wp-json\/wp\/v2\/posts\/1600\/revisions\/1667"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.plm.cn\/wp-json\/wp\/v2\/media\/1498"}],"wp:attachment":[{"href":"http:\/\/www.plm.cn\/wp-json\/wp\/v2\/media?parent=1600"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.plm.cn\/wp-json\/wp\/v2\/categories?post=1600"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.plm.cn\/wp-json\/wp\/v2\/tags?post=1600"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}