a
This commit is contained in:
26
08.昶东/EastChanger.Python/EastChanger.Python.py
Normal file
26
08.昶东/EastChanger.Python/EastChanger.Python.py
Normal 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)
|
||||
35
08.昶东/EastChanger.Python/EastChanger.Python.pyproj
Normal file
35
08.昶东/EastChanger.Python/EastChanger.Python.pyproj
Normal 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>
|
||||
Reference in New Issue
Block a user