1
This commit is contained in:
@@ -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)
|
||||
@@ -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)
|
||||
Reference in New Issue
Block a user