¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute Quantity |
| | | { |
| | | #keys: '3[415136.0.1167140019][415136.0.1167140018][415136.0.1167140020]' |
| | | Description: 'æ°é' |
| | | ValueType: Real |
| | | } |
| | |
| | | |
| | | sumcell := selectobject( column, FinancialProductionCell, c, c.FinancialProductionRow() = sumrow ); |
| | | if( isnull( sumcell ) ){ |
| | | sumcell := column.FinancialProductionCell( relnew, Value := '0' ); |
| | | sumcell := column.FinancialProductionCell( relnew, Quantity := 0 ); |
| | | sumrow.FinancialProductionCell( relinsert, sumcell ); |
| | | } |
| | | |
| | | showcell := column.FinancialProductionCell( relnew, Value := cell.Value() ); |
| | | showcell := column.FinancialProductionCell( relnew, Quantity := cell.Quantity() ); |
| | | showrow.FinancialProductionCell( relinsert, showcell ); |
| | | value := [Real]cell.Value() + [Real]sumcell.Value(); |
| | | sumcell.Value( [String]value ); |
| | | } |
| | | } |
| | | } |
| | | |
| | | traverse( this, FinancialProductionRow, row ){ |
| | | traverse( row, FinancialProductionCell, cell ){ |
| | | cell.Value( [String]([Number]cell.Quantity()) ); |
| | | } |
| | | } |
| | | *] |
| | | } |
| | |
| | | TextBody: |
| | | [* |
| | | // çå
°é¸½ Jun-24-2024 (created) |
| | | cell := column.FinancialProductionCell( relnew, Value := '' ); |
| | | cell := column.FinancialProductionCell( relnew, Quantity := 0 ); |
| | | |
| | | this.FinancialProductionCell( relinsert, cell ); |
| | | if( unit <> FinancialProductionReport::GetDefaultAllUnit() ){ |
| | |
| | | #parent: #root |
| | | Method Initialize ( |
| | | FinancialProductionColumn column, |
| | | Number quantity |
| | | Real quantity |
| | | ) |
| | | { |
| | | TextBody: |
| | |
| | | // çå
°é¸½ Jun-24-2024 (created) |
| | | cell := selectobject( this, FinancialProductionCell, cell, cell.FinancialProductionColumn() = column ); |
| | | |
| | | value := [Number]cell.Value() + quantity; |
| | | cell.Value( [String]value ); |
| | | //value := [Number]cell.Value() + quantity; |
| | | //cell.Value( [String]value ); |
| | | cell.Quantity( cell.Quantity() + quantity ); |
| | | *] |
| | | } |
| | |
| | | allcell := selectobject( allrow, FinancialProductionCell, allcell, allcell.FinancialProductionColumn().Name() = column.Name() ); |
| | | // info( isnull( unitcell ), isnull( allcell ), cell.Value(), unitcell.Value(), allcell.Value() ); |
| | | if( not isnull( unitcell ) ){ |
| | | unitcell.Value( cell.Value() ); |
| | | // unitcell.Value( cell.Value() ); |
| | | unitcell.Quantity( [Real]cell.Value() ); |
| | | } |
| | | if( not isnull( allcell ) ){ |
| | | value := [Real]cell.Value() + [Real]allcell.Value(); |
| | | allcell.Value( [String]value ); |
| | | // value := [Real]cell.Value() + [Real]allcell.Value(); |
| | | // allcell.Value( [String]value ); |
| | | allcell.Quantity( allcell.Quantity() + [Real]allcell.Value() ); |
| | | } |
| | | } |
| | | } |
| | |
| | | table.GenerateColumn( owner ); |
| | | //åå½åçæ¬çproduct planningénew supplyåæ®µï¼å大è¿åé¿æ¥å·¥åç产线ï¼è¿è¡å æ» |
| | | //traverse( owner, StockingPoint_MP, stockingpoint ){ |
| | | traverse( owner, StockingPoint_MP, stockingpoint, stockingpoint.ID().EndsWith( 'åå
åº' ) ){ |
| | | traverse( owner, StockingPoint_MP, stockingpoint, stockingpoint.ID().EndsWith( 'åå
åº' ) or stockingpoint.ID() = '大è¿å¤ç§åº' ){ |
| | | iscc := stockingpoint.ID().StartsWith( 'CC' ) or stockingpoint.ID().StartsWith( 'é¿æ¥' ); |
| | | isdl := stockingpoint.ID().StartsWith( 'DL' ) or stockingpoint.ID().StartsWith( '大è¿' ); |
| | | // unit := stockingpoint.Unit(); |
| | |
| | | dayperiodname := dayperiodtime.Format( "M2/D2/Y" ); |
| | | periodtime := pispip.Start().StartOfMonth().Date(); |
| | | periodname := periodtime.Format( "M2/D2/Y" ); |
| | | quantity := [Number]pispip.NewSupplyQuantity();//åèäºå
¥ |
| | | // quantity := [Number]pispip.NewSupplyQuantity();//åèäºå
¥ |
| | | daycolumn := selectobject( table, FinancialProductionColumn, column, column.Name() = dayperiodname and column.Period() = dayperiodtime and column.IsDay() ); |
| | | column := selectobject( table, FinancialProductionColumn, column, column.Name() = periodname and column.Period() = periodtime and not column.IsDay() ); |
| | | factoryrow.Initialize( daycolumn, quantity ); |
| | | factoryrow.Initialize( column, quantity ); |
| | | allrow.Initialize( column, quantity ); |
| | | factoryrow.Initialize( daycolumn, pispip.NewSupplyQuantity() ); |
| | | factoryrow.Initialize( column, pispip.NewSupplyQuantity() ); |
| | | allrow.Initialize( column, pispip.NewSupplyQuantity() ); |
| | | } |
| | | } |
| | | } |