2024-05-15 13:56:09 +08:00
|
|
|
|
#引入clr运行库
|
2024-04-10 10:39:04 +08:00
|
|
|
|
import clr
|
2024-05-15 13:56:09 +08:00
|
|
|
|
#添加对cloud插件开发的常用组件引用
|
2024-04-10 10:39:04 +08:00
|
|
|
|
clr.AddReference('System')
|
|
|
|
|
|
clr.AddReference('System.Data')
|
|
|
|
|
|
clr.AddReference("ExtensionMethods")
|
2024-05-15 13:56:09 +08:00
|
|
|
|
# 常用金蝶插件类库start
|
2024-04-10 10:39:04 +08:00
|
|
|
|
clr.AddReference('Kingdee.BOS')
|
|
|
|
|
|
clr.AddReference('Kingdee.BOS.App')
|
|
|
|
|
|
clr.AddReference('Kingdee.BOS.App.Core')
|
|
|
|
|
|
clr.AddReference('Kingdee.BOS.Business.DynamicForm')
|
|
|
|
|
|
clr.AddReference('Kingdee.BOS.Contracts')
|
|
|
|
|
|
clr.AddReference('Kingdee.BOS.Core')
|
|
|
|
|
|
clr.AddReference('Kingdee.BOS.DataEntity')
|
|
|
|
|
|
clr.AddReference('Kingdee.BOS.ServiceHelper')
|
2024-05-15 13:56:09 +08:00
|
|
|
|
# 常用金蝶插件类库end
|
2024-04-10 10:39:04 +08:00
|
|
|
|
|
2024-05-15 13:56:09 +08:00
|
|
|
|
#dairycloud基础库中的常用实体对象(分命名空间导入,不会递归导入)
|
2024-04-10 10:39:04 +08:00
|
|
|
|
from System import *
|
|
|
|
|
|
from System.Data import *
|
|
|
|
|
|
from System.Collections.Generic import List
|
|
|
|
|
|
from ExtensionMethods import BooleanExtension as boolObjEx
|
|
|
|
|
|
from ExtensionMethods import DateTimeExtension as dateObjEx
|
|
|
|
|
|
from ExtensionMethods import ObjectExtension as objEx
|
|
|
|
|
|
from ExtensionMethods import StringExtension as strObjEx
|
|
|
|
|
|
from Kingdee.BOS.Core import *
|
|
|
|
|
|
from Kingdee.BOS.Util import *
|
|
|
|
|
|
from Kingdee.BOS.Core.Bill import *
|
|
|
|
|
|
from Kingdee.BOS.Core.Bill.PlugIn import *
|
|
|
|
|
|
from Kingdee.BOS.Orm.DataEntity import *
|
|
|
|
|
|
from Kingdee.BOS.Core.DynamicForm.PlugIn import *
|
|
|
|
|
|
from Kingdee.BOS.Core.DynamicForm.PlugIn.Args import *
|
|
|
|
|
|
from Kingdee.BOS.Core.DynamicForm.PlugIn.ControlModel import *
|
|
|
|
|
|
from Kingdee.BOS.App.Data import *
|
|
|
|
|
|
from Kingdee.BOS.ServiceHelper import *
|
|
|
|
|
|
|
|
|
|
|
|
def OnPreparePropertys(e):
|
|
|
|
|
|
e.FieldKeys.Add("FWorkTimeType")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def EndOperationTransaction(e):
|
2024-05-15 13:56:09 +08:00
|
|
|
|
# 保存8提交9审核1反审核26
|
|
|
|
|
|
# if this.FormOperation.OperationId == 8:
|
|
|
|
|
|
# va = "1111";
|
|
|
|
|
|
# if this.FormOperation.OperationId == 8:
|
|
|
|
|
|
# raise Exception(JsonUtil.Serialize(this.FormOperation));
|
|
|
|
|
|
if this.FromOperation.Operation == 'New':
|
|
|
|
|
|
raise Exception(JsonUtil.Serialize(e));
|