From ff58551ba28f475ad78c9eebbf543aee15ace8bf Mon Sep 17 00:00:00 2001
From: lazhen <17772815105@139.com>
Date: 星期五, 13 九月 2024 11:48:40 +0800
Subject: [PATCH] 换型损失设置添加时间范围

---
 _Main/BL/Type_ChangeLossSettingExcel/StaticMethod_CheckImport.qbl |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/_Main/BL/Type_ChangeLossSettingExcel/StaticMethod_CheckImport.qbl b/_Main/BL/Type_ChangeLossSettingExcel/StaticMethod_CheckImport.qbl
index a7c0e18..de86c3f 100644
--- a/_Main/BL/Type_ChangeLossSettingExcel/StaticMethod_CheckImport.qbl
+++ b/_Main/BL/Type_ChangeLossSettingExcel/StaticMethod_CheckImport.qbl
@@ -10,7 +10,9 @@
     if( exists( macroplan, ChangeLossSettingExcel, excel, excel.Product1() = '' 
                 or excel.Product2() = '' 
                 or excel.Unit() = '' 
-                or excel.ChangeLossNumber() = '' ) ){
+                or excel.ChangeLossNumber() = ''
+                or not excel.StartDate().IsFinite()
+                or not excel.EndDate().IsFinite() ) ){
       error( Translations::MP_ChangeLossSettingExcel_Import_NullInputRequiredField() );
     }
     //瀵煎叆鐨勬暟閲忓皬浜�0
@@ -29,6 +31,10 @@
     if( exists( macroplan, ChangeLossSettingExcel, excel, excel.Product1() = excel.Product2() ) ){
       error( Translations::MP_ChangeLossSetting_SameProduct() );
     }
+    //瀵煎叆鐨勬椂闂村尯闂存牎楠�
+    if( exists( macroplan, ChangeLossSettingExcel, excel, excel.StartDate() > excel.EndDate() ) ){
+      error( Translations::MP_LibCal_Event_ValidDatePeriod() );
+    }
     //閲嶅瀵煎叆鏍¢獙
     //if( selectduplicates( owner, LaneExcel, excel, excel.StartFrom(), 
     //                      excel.EndTo(), 

--
Gitblit v1.9.3