Jianw
2025-05-13 3b39fe3810c3ee2ec9ec97236c1769c5c85e062c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--[[
    编码: WMS-15-05
    名称: 收货单-主从面板-选ASN前
    作者:HAN  
    日期:2025-1-29
 
    级别:固定 (说明本段代码在项目中不太会变化)
    
    函数: BeforeSelectASN
 
    功能:
        1) 手工新增收货单会弹出一个主从面板,输入收货单信息和明细
        2)在这个面板中可以选择一个还没关闭的 ASN 作为收货单明细的来源
    更改记录:
 
--]]
 
json  = require ("json")
mobox = require ("OILua_JavelinExt")
m3 = require("oi_base_mobox")
 
function BeforeSelectASN ( strLuaDEID )
    local nRet, strRetInfo
 
    local strCondition = "N_B_STATE = 1"      -- 表示 ASN_Order 处于执行中
    local strOrder = "S_NO"                   -- 排序字段
    
    local action = '[{"action_type":"open_data_query_dlg","value":{"multi_choice":false,"cls_name":"ASN_Order","grid_style":"选择面板用","order":"'..strOrder..'","condition":"'..strCondition..'"}}]'
    nRet, strRetInfo = mobox.setAction( strLuaDEID, action )
    if (nRet ~= 0) then lua.Error( strLuaDEID, debug.getinfo(1), strRetInfo ) end
end