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