This commit is contained in:
liangjunyu
2025-07-24 09:17:12 +08:00
parent 2306c8b7cf
commit a047eee1a4
46 changed files with 2015 additions and 127 deletions

View File

@@ -28,9 +28,13 @@
</ItemGroup>
<ItemGroup>
<Compile Include="PlanService\ListEventPlugInEx.py" />
<Compile Include="POSH_CB_PROCOSTRESULTREC\产品成本汇总表_不分解.py" />
<Compile Include="POSH_CB_PROCOSTRESULTREC\产品成本汇总表_只分解第一层.py" />
<Compile Include="POSH_CB_PROCOSTRESULTREC\产品成本还原构造程序.py" />
<Compile Include="POSH_CB_PROCOSTRESULTREC\产品成本还原查询报表_20240819.py" />
<Compile Include="POSH_CB_PROCOSTRESULTREC\产品成本还原查询报表构造.py" />
<Compile Include="POSH_CB_PROCOSTRESULTREC\产品成本还原过滤.py" />
<Compile Include="POSH_CB_PROCOSTRESULTREC\产品还原过滤2.py" />
<Compile Include="PRD_MO\OperationEventPlugInEx.py" />
</ItemGroup>
<ItemGroup>

View File

@@ -23,14 +23,15 @@ from Kingdee.BOS.Orm.DataEntity import*
def AfterDoOperation(e):
if e.Operation.Operation == "DoUpdateSubFORECAST":
selectedRows = this.ListView.SelectedRowsInfo;
if selectedRows == None or selectedRows.Count == 0:
this.View.ShowMessage("当前没有行被选中!");
return;
# if selectedRows == None or selectedRows.Count == 0:
# this.View.ShowMessage("当前没有行被选中!");
# return;
billNos = List[str]();
for row in selectedRows:
billNos.Add(row.BillNo);
# billNos = List[str]();
# for row in selectedRows:
# billNos.Add(row.BillNo);
sql = "/*dialect*/ exec P_UpdateSubFORECAST '{0}'".format(",".join(billNos));
# sql = "/*dialect*/ exec P_UpdateSubFORECAST '{0}'".format(",".join(billNos));
sql = "/*dialect*/ exec P_UpdateSubFORECAST '' ";
dr = DBServiceHelper.ExecuteDynamicObject(this.Context, sql);