From e55ab5c0b943ec4ec767d3335c99662fa59dd55a Mon Sep 17 00:00:00 2001
From: lazhen <17772815105@139.com>
Date: 星期五, 16 八月 2024 17:56:28 +0800
Subject: [PATCH] 新生成的工艺路线中,PSIP的SP不需要生成
---
_Main/BL/Type_MachiningPipelineSource0/StaticMethod_Initialize.qbl | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/_Main/BL/Type_MachiningPipelineSource0/StaticMethod_Initialize.qbl b/_Main/BL/Type_MachiningPipelineSource0/StaticMethod_Initialize.qbl
index 23633d0..1ce8cfa 100644
--- a/_Main/BL/Type_MachiningPipelineSource0/StaticMethod_Initialize.qbl
+++ b/_Main/BL/Type_MachiningPipelineSource0/StaticMethod_Initialize.qbl
@@ -115,8 +115,12 @@
weekcolumn := table.GetColumnByUnit( Translations::MP_GlobalParameters_Week(), tpcell.TransferPlanColumn().ColumnDate() );
quantity := [Real]tpcell.Value();//鍥涜垗浜斿叆
- row.SetCellTransferValue( daycolumn, ( originiscc and destiisdl ), quantity );
- row.SetCellTransferValue( weekcolumn, ( originiscc and destiisdl ), quantity );
+ if( not isnull( daycolumn ) ){
+ row.SetCellTransferValue( daycolumn, ( originiscc and destiisdl ), quantity );
+ }
+ if( not isnull( weekcolumn ) ){
+ row.SetCellTransferValue( weekcolumn, ( originiscc and destiisdl ), quantity );
+ }
}
}
}
--
Gitblit v1.9.3