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
| --[[
| 编码: WMS-22-03
| 名称: 发货单-定版前
| 作者:HAN
| 日期:2025-1-29
|
| 级别:固定 (说明本段代码在项目中不太会变化)
|
| 函数: BeforeStateChange
|
| 功能:
| 1)设置 N_B_STATE = 1
| 更改记录:
|
| --]]
| json = require ("json")
| mobox = require ("OILua_JavelinExt")
| m3 = require("oi_base_mobox")
|
| function BeforeStateChange ( strLuaDEID )
| local nRet, strRetInfo
| local attr_value = {}
|
| attr_value[1] = lua.KeyValueObj( "N_B_STATE", 1 )
| nRet, strRetInfo = mobox.setCurEditDataObjAttr( strLuaDEID, lua.table2str(attr_value) )
| if ( nRet ~= 0 ) then lua.Error( strLuaDEID, debug.getinfo(1), "设置【发货单】信息失败! "..strRetInfo ) end
| end
|
|