Merge branch 'dev' of http://47.101.211.7:10101/r/VWED into dev-zlg
| | |
| | | priority := 2 ; |
| | | }else if( element.LikeUserLocale( "<name>Unit</name>" )){ |
| | | priority := 3 ; |
| | | }else if( element.LikeUserLocale( "<name> </name>" )){ |
| | | }else if( element.LikeUserLocale( "<name>@EMPTY@</name>" )){ |
| | | priority := 4 ; |
| | | }else if( element.LikeUserLocale( "<name>Attribute</name>" )){ |
| | | priority := 5 ; |
| | |
| | | datas := selectsortedset( this,ExportXMLData,data,data.Priority() ); |
| | | |
| | | traverse( datas,Elements,data ){ |
| | | xmlTemplate := xmlTemplate + data.XML(); |
| | | xmlTemplate := xmlTemplate + data.XML().ReplaceAll( "@EMPTY@"," "); |
| | | } |
| | | |
| | | xmlTemplate := xmlTemplate + "</table>"; |
| | |
| | | columnXML := columnXML + "</column>"; |
| | | } |
| | | if( type = "attribute" ){ |
| | | columnXML1 := "<column><name> </name><type>String</type>"; |
| | | columnXML1 := "<column><name>@EMPTY@</name><type>String</type>"; |
| | | traverse ( cells, Elements, cell ) { |
| | | cellXML := '<cell value="' + cell.LocalRow().Name() + '"/>' |
| | | columnXML1 := columnXML1 + cellXML; |
| | |
| | | canPackagingQuantity := ifexpr( ceil( needPackagingQuantity / ppls.LotSize() ) < floor( ppnc.MaximumDailyPackagingQuantity() / ppls.LotSize() ), |
| | | ceil( needPackagingQuantity / ppls.LotSize() ), |
| | | floor( ppnc.MaximumDailyPackagingQuantity() / ppls.LotSize() ) ) * ppls.LotSize(); |
| | | // 改类下其他产品包装总和 |
| | | categoryPackageQuantity := sum( indexPPCell, PackagingPlanColumn.PackagingPlanCell, tempPPCell, |
| | | tempPPCell <> indexPPCell and |
| | | tempPPCell.PackagingPlanRow().Factory() = indexPPCell.PackagingPlanRow().Factory() and |
| | | tempPPCell.PackagingPlanRow().Category() = indexPPCell.PackagingPlanRow().Category(), |
| | | tempPPCell.Package() ); |
| | | canPackagingQuantity := minvalue( [Number] ( ppnc.MaximumDailyPackagingQuantity() - categoryPackageQuantity ), canPackagingQuantity ); |
| | | // info( "开始包装的日期:", indexPPCell.StartDate().Format( "Y-M2-D2" ), " 能包装的数量:", canPackagingQuantity ); |
| | | |
| | | indexPPCell.Package( canPackagingQuantity ); |