1
This commit is contained in:
59
13.得米新材/Demi.Python/DB_StaffData/OperationEventPlugInEx.py
Normal file
59
13.得米新材/Demi.Python/DB_StaffData/OperationEventPlugInEx.py
Normal file
@@ -0,0 +1,59 @@
|
||||
#引入clr运行库
|
||||
import clr
|
||||
#添加对cloud插件开发的常用组件引用
|
||||
clr.AddReference('System')
|
||||
clr.AddReference('System.Data')
|
||||
clr.AddReference('Kingdee.BOS')
|
||||
clr.AddReference('Kingdee.BOS.Core')
|
||||
clr.AddReference('Kingdee.BOS.App')
|
||||
clr.AddReference('Kingdee.BOS.Contracts')
|
||||
clr.AddReference('Kingdee.BOS.DataEntity')
|
||||
clr.AddReference('Kingdee.BOS.ServiceHelper')
|
||||
clr.AddReference('E_ZKEccSDK')
|
||||
|
||||
#dairycloud基础库中的常用实体对象(分命名空间导入,不会递归导入)
|
||||
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 System import *
|
||||
from System.Data import *
|
||||
from System.Collections.Generic import *
|
||||
from Kingdee.BOS.App.Data import *
|
||||
from Kingdee.BOS.ServiceHelper import *
|
||||
|
||||
|
||||
def EndOperationTransaction(e):
|
||||
# 保存8提交9审核1反审核26删除3
|
||||
if this.FormOperation.OperationId == 1:
|
||||
Audit2DoUpdAttendanceData(e)
|
||||
|
||||
# 审核后更新考勤信息
|
||||
def Audit2DoUpdAttendanceData(e):
|
||||
ACCESS_KEY = "3391hexqe5h0wv4z4veju_dvn7gntnr5oiv_dxjabqtt"
|
||||
# 人员对接 employee
|
||||
更新人员 = "http://127.0.0.1:8088/api/v2/employee/update/?key=" + ACCESS_KEY
|
||||
获取人员信息 = "http://127.0.0.1:8088/api/v2/employee/get/?key=" + ACCESS_KEY
|
||||
人员离职 = "http://127.0.0.1:81/api/v2/employee/leave/?key=" + ACCESS_KEY
|
||||
离职恢复 = "http://127.0.0.1:81/api/v2/employee/restore/?key=" + ACCESS_KEY
|
||||
# http://14.21.32.187:8088/api/v2/transaction/get/?key=3391hexqe5h0wv4z4veju_dvn7gntnr5oiv_dxjabqtt
|
||||
|
||||
# 外部接口 http://14.21.32.187:8088/accounts/login/?next=/iclock/imanager
|
||||
url = "http://127.0.0.1:8088/api/v2"
|
||||
return
|
||||
|
||||
def GetE_ZKEccSDKAPIInfo():
|
||||
vSql = "/*dialect*/ SELECT * FROM V_E_ZKEccSDK_API_INFO "
|
||||
dataTable = DBUtils.ExecuteDynamicObject(this.Context, vSql)
|
||||
dataRow = dataTable[0]
|
||||
apiInfo = ApiInfoDomian()
|
||||
|
||||
apiInfo.appKey = dataRow["appKey"]
|
||||
apiInfo.apiVersion = dataRow["apiVersion"]
|
||||
apiInfo.serverUrl = dataRow["serverUrl"]
|
||||
|
||||
return apiInfo
|
||||
39
13.得米新材/Demi.Python/Demi.Python.pyproj
Normal file
39
13.得米新材/Demi.Python/Demi.Python.pyproj
Normal file
@@ -0,0 +1,39 @@
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>0ae677a7-f840-4539-aec9-65fbbc56802e</ProjectGuid>
|
||||
<ProjectHome>.</ProjectHome>
|
||||
<StartupFile>
|
||||
</StartupFile>
|
||||
<SearchPath>
|
||||
</SearchPath>
|
||||
<WorkingDirectory>.</WorkingDirectory>
|
||||
<OutputPath>.</OutputPath>
|
||||
<Name>Demi.Python</Name>
|
||||
<RootNamespace>Demi.Python</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="DB_StaffData\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="DB_StaffData\OperationEventPlugInEx.py" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Python Tools\Microsoft.PythonTools.targets" />
|
||||
<!-- Uncomment the CoreCompile target to enable the Build command in
|
||||
Visual Studio and specify your pre- and post-build commands in
|
||||
the BeforeBuild and AfterBuild targets below. -->
|
||||
<!--<Target Name="CoreCompile" />-->
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
</Project>
|
||||
Reference in New Issue
Block a user