This commit is contained in:
PastSaid
2024-03-11 14:47:23 +08:00
parent 6dd1816c96
commit 08d8878eef
202 changed files with 274 additions and 246 deletions

View File

@@ -0,0 +1,26 @@
import clr
clr.AddReference("System")
clr.AddReference("Kingdee.BOS")
clr.AddReference("Kingdee.BOS.Core")
clr.AddReference("EastChanger")
from System import *
from System.Collections.Generic import List
from System.ComponentModel import *
from Kingdee.BOS import*
from Kingdee.BOS.Util import*
from Kingdee.BOS.Core.DynamicForm import*
from Kingdee.BOS.Core.DynamicForm.PlugIn.Args import*
from Kingdee.BOS.Core.List.PlugIn import*
from EastChanger.STK_Inventory import*
def BarItemClick(e):
if e.BarItemKey.Equals("ImmediateInventory"):
opResult = OperationResult()
sellist = this.ListView.SelectedRowsInfo
fidList = List[str](set(map(lambda x:x.PrimaryKeyValue ,sellist)))
service = STKInventoryService(this.Context)
# raise Exception(str(type(fidList)))
service.HandleSyncData(fidList, opResult)
if opResult.OperateResult.Count > 0:
this.View.ShowOperateResult(opResult.OperateResult)

View File

@@ -0,0 +1,35 @@
<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>fd2c3c66-8c36-4d3b-b80f-26aaff839ccb</ProjectGuid>
<ProjectHome>.</ProjectHome>
<StartupFile>EastChanger.Python.py</StartupFile>
<SearchPath>
</SearchPath>
<WorkingDirectory>.</WorkingDirectory>
<OutputPath>.</OutputPath>
<Name>EastChanger.Python</Name>
<RootNamespace>EastChanger.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>
<Compile Include="EastChanger.Python.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>