This commit is contained in:
PastSaid
2025-01-01 08:21:58 +08:00
parent 9725ab5376
commit 3d15fd4b7e
59 changed files with 3013 additions and 1324 deletions

View File

@@ -17,8 +17,19 @@ from System.Data import *
from System.Collections.Generic import *
from Kingdee.BOS.ServiceHelper import *
def OnParseFilterOptions(e):
raise Exception(e.FilterOptionsSQL)
# python已生成条码的数据不能重复生成!
def OnParseFilter(e):
# raise Exception(e.FilterPolicySQL)
fromId = e.SourceBusinessInfo.GetForm().Id;
e.FilterPolicySQL = e.FilterPolicySQL + """
AND NOT EXISTS (
SELECT 1 FROM T_PRD_MOASSEMBLE_LK uwbc
WHERE uwbc.FSID = t0.FID
AND uwbc.FSTableName = 'T_PLN_FORECAST1'
)
"""
e.PlugFilterDesc = "已生成组装单的数据不能重复生成!";
return;
# def OnParseFilter(e):
# raise Exception(e.FilterPolicySQL)