| | |
| | | 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 |
| | |
| | | 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(), |