a
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user