Merge branch 'dev' of http://47.101.211.7:10101/r/VWED into dev
| | |
| | | error( Translations::MP_FinancialProductionReport_ImportIndetifyIllegalTime() ); |
| | | } |
| | | period := cnv2.Convert( indexcolumn.Name() ); |
| | | // info( "开始时间:", this.SalesForecastInputSource().PlanningStartDate().Format( "Y-M2-D2" ), |
| | | // "结束时间:", this.SalesForecastInputSource().PlanningEndDate().Format( "Y-M2-D2" ), |
| | | // "列时间:", cnv2.Convert( indexColumn.name() ).Format( "Y-M2-D2" ) ); |
| | | |
| | | // 判断是否在计划周期内 |
| | | if ( period <= startofthisyear or period >= startofnextyear ) { |
| | | if ( period < startofthisyear or period > startofnextyear ) { |
| | | error( Translations::MP_FinancialProductionReport_ImportIndetifyOverPeriod() ); |
| | | } |
| | | indexcolumn := indexcolumn.NextColumn(); |
| | |
| | | unitcolumn := selectobject( this, FinancialProductionColumn, column, column.Index() = 1 ); |
| | | |
| | | units := selectuniquevalues( unitcolumn, FinancialProductionCell, cell, cell.Value() ); |
| | | if( units.Size() <> 2 or ( units.Find( FinancialProductionReport::GetDefaultCCUnit() ) >= 0 |
| | | and units.Find( FinancialProductionReport::GetDefaultDLUnit() ) >= 0 ) ){ |
| | | if( units.Size() > 2 or ( units.Find( FinancialProductionReport::GetDefaultCCUnit() ) < 0 |
| | | and units.Find( FinancialProductionReport::GetDefaultDLUnit() ) < 0 ) ){ |
| | | error( Translations::MP_FinancialProductionReport_ImportIndetifyFactoryNoExist() ); |
| | | } |
| | | |
| | |
| | | // "结束时间:", this.SalesForecastInputSource().PlanningEndDate().Format( "Y-M2-D2" ), |
| | | // "列时间:", cnv2.Convert( indexColumn.name() ).Format( "Y-M2-D2" ) ); |
| | | // 判断是否在计划周期内 |
| | | if ( period <= startofthisyear or period >= startofnextyear ) { |
| | | if ( period < startofthisyear or period > startofnextyear ) { |
| | | error( Translations::MP_FinancialProductionReport_ImportIndetifyOverPeriod() ); |
| | | } |
| | | indexcolumn := indexcolumn.NextColumn(); |
| | |
| | | unitcolumn := selectobject( this, FinancialSalesColumn, column, column.Index() = 1 ); |
| | | |
| | | units := selectuniquevalues( unitcolumn, FinancialSalesCell, cell, cell.Value() ); |
| | | if( units.Size() <> 2 or ( units.Find( FinancialProductionReport::GetDefaultCCUnit() ) >= 0 |
| | | and units.Find( FinancialProductionReport::GetDefaultDLUnit() ) >= 0 ) ){ |
| | | if( units.Size() > 2 or ( units.Find( FinancialSalesReport::GetDefaultCCUnit() ) < 0 |
| | | and units.Find( FinancialSalesReport::GetDefaultDLUnit() ) < 0 ) ){ |
| | | error( Translations::MP_FinancialProductionReport_ImportIndetifyFactoryNoExist() ); |
| | | } |
| | | |