This commit is contained in:
PastSaid
2024-03-28 11:30:14 +08:00
parent c31957eb64
commit 912bea60ac
64 changed files with 5868 additions and 158 deletions

View File

@@ -0,0 +1,35 @@
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 Kingdee.BOS.Core.List import *
from EastChanger.STK_StockCountGain import*
def BarItemClick(e):
if e.BarItemKey.Equals("InventoryProfit"):
sellist = this.ListView.SelectedRowsInfo
if sellist == None or sellist.Count == 0:
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 = STKStockCountGainService(this.Context)
# raise Exception(str(type(fidList)))
service.HandleSyncData(fidList, opResult, 0)
if opResult.OperateResult.Count > 0:
this.View.ShowOperateResult(opResult.OperateResult)

View File

@@ -14,12 +14,13 @@ 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 Kingdee.BOS.Core.List import *
from EastChanger.STK_StockCountLoss import*
def BarItemClick(e):
if e.BarItemKey.Equals("InventoryProfit"):
if e.BarItemKey.Equals("InventoryLoss"):
sellist = this.ListView.SelectedRowsInfo
if sellist != None and sellist.Any():
if sellist == None or sellist.Count == 0:
this.View.ShowErrMessage("<EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫͬ<EFBFBD><EFBFBD><EFBFBD>ĵ<EFBFBD><EFBFBD><EFBFBD>");
return
opResult = OperationResult()
@@ -28,6 +29,6 @@ def BarItemClick(e):
service = STKStockCountLossService(this.Context)
# raise Exception(str(type(fidList)))
# service.HandleSyncData(fidList, opResult, 0)
# if opResult.OperateResult.Count > 0:
# this.View.ShowOperateResult(opResult.OperateResult)
service.HandleSyncData(fidList, opResult, 0)
if opResult.OperateResult.Count > 0:
this.View.ShowOperateResult(opResult.OperateResult)