| | |
| | | #parent: #root |
| | | StaticMethod CraeteCellValueForRow ( |
| | | EnginePipelineReport table, |
| | | EnginePipelineColumn productcolumn, |
| | | EnginePipelineColumn attricolumn, |
| | | String productname, |
| | | String attriname, |
| | | Number rownr, |
| | | Boolean isfirst |
| | | String name, |
| | | String product, |
| | | String demand, |
| | | Number rownr |
| | | ) as EnginePipelineRow |
| | | { |
| | | TextBody: |
| | | [* |
| | | // 甄兰鸽 Jul-11-2024 (created) |
| | | row := table.Row( relnew, Name := productname, RowNr := rownr ); |
| | | if( not isfirst ){ |
| | | productname := ''; |
| | | } |
| | | pcell := productcolumn.CellValue( relnew, Value := productname ); |
| | | acell := attricolumn.CellValue( relnew, Value := attriname ); |
| | | row.CellValue( relinsert, pcell ); |
| | | row.CellValue( relinsert, acell ); |
| | | traverse( table, Column, column, column.Index() > 1 ){ |
| | | row := table.Row( relnew, Name := name, RowNr := rownr, Product := product, Demand := demand ); |
| | | traverse( table, Column, column ){ |
| | | cell := column.CellValue( relnew, Value := '0' ); |
| | | row.CellValue( relinsert, cell ); |
| | | } |