|
|
|
@ -1,5 +1,7 @@
|
|
|
|
|
package cn.estsh.i3plus.pojo.model.dynamic.table;
|
|
|
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @Description :
|
|
|
|
|
* @Reference :
|
|
|
|
@ -54,23 +56,25 @@ public class DynTablePackTool {
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public static DynTableCell getTableCell(Integer seq,String name,Object value) {
|
|
|
|
|
return getTableCell(seq, name, null, value,null);
|
|
|
|
|
return getTableCell(seq,seq.toString(), name, null, value,null);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static DynTableCell getTableCell(Integer seq,String name,Object value,Integer valueType) {
|
|
|
|
|
return getTableCell(seq, name, null, value,valueType);
|
|
|
|
|
return getTableCell(seq,seq.toString(), name, null, value,valueType);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 创建一个单元格
|
|
|
|
|
* @param seq 单元格排序
|
|
|
|
|
* @param key 单元格Key
|
|
|
|
|
* @param name 单元格名称
|
|
|
|
|
* @param nameEn 单元格名称En
|
|
|
|
|
* @param value 单元格数据
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public static DynTableCell getTableCell(Integer seq,String name,String nameEn,Object value,Integer valueType){
|
|
|
|
|
public static DynTableCell getTableCell(Integer seq,String key,String name,String nameEn,Object value,Integer valueType){
|
|
|
|
|
DynTableCell cell = new DynTableCell();
|
|
|
|
|
cell.setCellKey(key);
|
|
|
|
|
cell.setCellSeq(seq);
|
|
|
|
|
cell.setCellName(name);
|
|
|
|
|
cell.setCellNameEn(nameEn);
|
|
|
|
@ -79,4 +83,21 @@ public class DynTablePackTool {
|
|
|
|
|
return cell;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取Table 中的单元格数据
|
|
|
|
|
* @param table 要获取的Table
|
|
|
|
|
* @param rowKey 要获取的行 Key
|
|
|
|
|
* @param cellKey 要获取的列 Key
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public static DynTableCell getCell(ImppDynTable table,String rowKey,String cellKey){
|
|
|
|
|
if(table != null && rowKey != null && cellKey != null){
|
|
|
|
|
DynTableRow row = table.getTable().get(rowKey);
|
|
|
|
|
if(row != null){
|
|
|
|
|
return row.getCellMap().get(cellKey);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|