This commit is contained in:
PastSaid
2024-03-18 11:42:45 +08:00
parent 08d8878eef
commit c31957eb64
56 changed files with 1485 additions and 123 deletions

View File

@@ -21,6 +21,6 @@ def BarItemClick(e):
fidList = List[str](set(map(lambda x:x.PrimaryKeyValue ,sellist)))
service = STKInventoryService(this.Context)
# raise Exception(str(type(fidList)))
service.HandleSyncData(fidList, opResult)
service.HandleSyncData(fidList, opResult,"")
if opResult.OperateResult.Count > 0:
this.View.ShowOperateResult(opResult.OperateResult)

View File

@@ -22,6 +22,22 @@
</PropertyGroup>
<ItemGroup>
<Compile Include="EastChanger.Python.py" />
<Compile Include="STK_Inventory\ListEventPlugInEx.py" />
<Compile Include="STK_Miscellaneous\ListEventPlugInEx.py" />
<Compile Include="STK_Miscellaneous\OperationEventPlugInEx.py" />
<Compile Include="STK_MisDelivery\ListEventPlugInEx.py" />
<Compile Include="STK_MisDelivery\OperationEventPlugInEx.py" />
<Compile Include="STK_StockCountGain\ListEventPlugInEx.py" />
<Compile Include="STK_StockCountGain\OperationEventPlugInEx.py" />
<Compile Include="STK_StockCountLoss\ListEventPlugInEx.py" />
<Compile Include="STK_StockCountLoss\OperationEventPlugInEx.py" />
</ItemGroup>
<ItemGroup>
<Folder Include="STK_StockCountLoss\" />
<Folder Include="STK_StockCountGain\" />
<Folder Include="STK_MisDelivery\" />
<Folder Include="STK_Miscellaneous\" />
<Folder Include="STK_Inventory\" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Python Tools\Microsoft.PythonTools.targets" />
<!-- Uncomment the CoreCompile target to enable the Build command in

View File

@@ -0,0 +1,30 @@
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
if sellist !=None and sellist.Count > 0:
this.View.ShowErrMessage("<EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫͬ<EFBFBD><EFBFBD><EFBFBD>ĵ<EFBFBD><EFBFBD><EFBFBD>");
return
fidList = List[str](set(map(lambda x:x.PrimaryKeyValue ,sellist)))
service = STKInventoryService(this.Context)
# raise Exception(str(type(fidList)))
service.HandleSyncData(fidList, opResult,0)
if opResult.OperateResult.Count > 0:
this.View.ShowOperateResult(opResult.OperateResult)

View File

@@ -0,0 +1,6 @@
class my_class(object):
pass

View File

@@ -0,0 +1,6 @@
class my_class(object):
pass

View File

@@ -0,0 +1,6 @@
class my_class(object):
pass

View File

@@ -0,0 +1,33 @@
import clr
clr.AddReference("System")
clr.AddReference("System.Core")
clr.AddReference("Kingdee.BOS")
clr.AddReference("Kingdee.BOS.Core")
clr.AddReference("EastChanger")
from System import *
from System.Linq 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_StockCountLoss import*
def BarItemClick(e):
if e.BarItemKey.Equals("InventoryProfit"):
sellist = this.ListView.SelectedRowsInfo
if sellist != None and sellist.Any():
this.View.ShowErrMessage("<EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫͬ<EFBFBD><EFBFBD><EFBFBD>ĵ<EFBFBD><EFBFBD><EFBFBD>");
return
opResult = OperationResult()
fidList = List[str](set(map(lambda x:x.PrimaryKeyValue ,sellist)))
service = STKStockCountLossService(this.Context)
# raise Exception(str(type(fidList)))
# service.HandleSyncData(fidList, opResult, 0)
# if opResult.OperateResult.Count > 0:
# this.View.ShowOperateResult(opResult.OperateResult)

View File

@@ -0,0 +1,29 @@
import clr
clr.AddReference("System")
clr.AddReference("System.Core")
clr.AddReference("Kingdee.BOS")
clr.AddReference("Kingdee.BOS.Core")
clr.AddReference("EastChanger")
from System import *
from System.Linq import *
from System.Collections.Generic import List
from System.ComponentModel import *
from Kingdee.BOS import*
from Kingdee.BOS.Core.DynamicForm import*
from Kingdee.BOS.Core.DynamicForm.PlugIn.Args import*
from EastChanger.STK_StockCountLoss import*
def OnPreparePropertys(e):
e.FieldKeys.Add("FSTATUS")
def OnAddValidators(e):
if this.FormOperation.OperationId == 3:
base.OnAddValidators(e);
validator = CustomsSyncVaildators(5);
# <20>Ƿ<EFBFBD><C7B7><EFBFBD>ҪУ<D2AA>飬true<75><65><EFBFBD><EFBFBD>Ҫ
validator.AlwaysValidate = true;
# У<><EFBFBD><E9B5A5>ͷ
validator.EntityKey = "FBillHead";
# <20><><EFBFBD><EFBFBD>У<EFBFBD><D0A3><EFBFBD><EFBFBD>
e.Validators.Add(validator);