This commit is contained in:
PastSaid
2024-03-11 09:04:46 +08:00
parent 5e2781182d
commit 6dd1816c96
47 changed files with 18825 additions and 624 deletions

View File

@@ -17,8 +17,21 @@ from Kingdee.BOS.Util import*
from Kingdee.BOS import*
def AfterCreateNewData(e):
if e.Field.Key == "FBomId" & e.NewValue != None:
raise Exception(str(e.NewValue))
details = this.View.BusinessInfo.GetEntity("FTreeEntity")
if details != None:
entrys = this.View.Model.GetEntityDataObject(details)
if entrys != None and entrys.Count > 0:
rowIndex = 0
count = entrys.Count
while count > rowIndex:
this.View.InvokeFieldUpdateService("FBomId",rowIndex)
rowIndex += 1
# for entry in entrys:
# rowIndex = this.View.Model.GetRowIndex(details, entry)
# this.View.InvokeFieldUpdateService("FBomId",rowIndex)
# bomObj = entry["BomId"]
# mjdzdzId = bomObj["FMJDZDZID"]
# this.View.Model.SetValue("FMJDZDZID",mjdzdzId)
def BarItemClick(e):
if e.BarItemKey == "tbUpdMJCPDZDZID":