| | |
| | | row := c.FinancialProductionRow(); |
| | | //Factory |
| | | InventorySummarySource::CreateCellElement( xmlDOM, searchunitcolumn, row.Factory() ); |
| | | //Generation |
| | | InventorySummarySource::CreateCellElement( xmlDOM, generationcolumn, row.Product_MP().Generation() ); |
| | | //Power |
| | | InventorySummarySource::CreateCellElement( xmlDOM, powercolumn, row.Product_MP().Power() ); |
| | | //MLBMQBS |
| | | InventorySummarySource::CreateCellElement( xmlDOM, mlbmqbcolumn, row.Product_MP().MQBMLB() ); |
| | | if( not isnull( row.Product_MP() ) ){ |
| | | //Generation |
| | | InventorySummarySource::CreateCellElement( xmlDOM, generationcolumn, row.Product_MP().Generation() ); |
| | | //Power |
| | | InventorySummarySource::CreateCellElement( xmlDOM, powercolumn, row.Product_MP().Power() ); |
| | | //MLBMQBS |
| | | InventorySummarySource::CreateCellElement( xmlDOM, mlbmqbcolumn, row.Product_MP().MQBMLB() ); |
| | | }else{ |
| | | //Generation |
| | | InventorySummarySource::CreateCellElement( xmlDOM, generationcolumn, '' ); |
| | | //Power |
| | | InventorySummarySource::CreateCellElement( xmlDOM, powercolumn, '' ); |
| | | //MLBMQBS |
| | | InventorySummarySource::CreateCellElement( xmlDOM, mlbmqbcolumn, '' ); |
| | | } |
| | | //Product |
| | | InventorySummarySource::CreateCellElement( xmlDOM, productcolumnelement, row.Name() ); |
| | | //Unit |
| | |
| | | productids.Add( pisp.ProductID() ); |
| | | //当product planning的日期区间在需要的日期区间内 |
| | | traverse( pisp, ProductInStockingPointInPeriod, pispip, not pispip.Period_MP().IsHistorical() and pispip.Period_MP().StartDate() < startofnextyear and pispip.NewSupplyQuantity() <> 0 ){ |
| | | dayperiodtime := ( pispip.Start() + Duration::Days( 1 ) ).Date(); |
| | | dayperiodtime := pispip.Start().Date(); |
| | | dayperiodname := dayperiodtime.Format( "M2/D2/Y" ); |
| | | periodtime := dayperiodtime.StartOfMonth(); |
| | | periodname := periodtime.Format( "M2/D2/Y" ); |
| | |
| | | row := c.FinancialSalesRow(); |
| | | //Factory |
| | | InventorySummarySource::CreateCellElement( xmlDOM, searchunitcolumn, row.Factory() ); |
| | | //Generation |
| | | InventorySummarySource::CreateCellElement( xmlDOM, generationcolumn, row.Product_MP().Generation() ); |
| | | //Power |
| | | InventorySummarySource::CreateCellElement( xmlDOM, powercolumn, row.Product_MP().Power() ); |
| | | //MLBMQBS |
| | | InventorySummarySource::CreateCellElement( xmlDOM, mlbmqbcolumn, row.Product_MP().MQBMLB() ); |
| | | if( not isnull( row.Product_MP() ) ){ |
| | | //Generation |
| | | InventorySummarySource::CreateCellElement( xmlDOM, generationcolumn, row.Product_MP().Generation() ); |
| | | //Power |
| | | InventorySummarySource::CreateCellElement( xmlDOM, powercolumn, row.Product_MP().Power() ); |
| | | //MLBMQBS |
| | | InventorySummarySource::CreateCellElement( xmlDOM, mlbmqbcolumn, row.Product_MP().MQBMLB() ); |
| | | }else{ |
| | | //Generation |
| | | InventorySummarySource::CreateCellElement( xmlDOM, generationcolumn, '' ); |
| | | //Power |
| | | InventorySummarySource::CreateCellElement( xmlDOM, powercolumn, '' ); |
| | | //MLBMQBS |
| | | InventorySummarySource::CreateCellElement( xmlDOM, mlbmqbcolumn, '' ); |
| | | } |
| | | //Product |
| | | InventorySummarySource::CreateCellElement( xmlDOM, productcolumnelement, row.Name() ); |
| | | //Unit |
| | |
| | | traverse( pisp, ProductInStockingPointInPeriod, pispip, not pispip.Period_MP().IsHistorical() |
| | | and pispip.Period_MP().StartDate() < startofnextyear |
| | | and ( pispip.DependentDemandAndSalesDemandQuantity() <> 0 or pispip.NewSupplyQuantity() <> 0 ) ){ |
| | | dayperiodtime := ( pispip.Start() + Duration::Days( 1 ) ).Date(); |
| | | dayperiodtime := pispip.Start().Date(); |
| | | dayperiodname := dayperiodtime.Format( "M2/D2/Y" ); |
| | | periodtime := dayperiodtime.StartOfMonth(); |
| | | periodname := periodtime.Format( "M2/D2/Y" ); |