动态 Table 功能优化

yun-zuoyi
wei.peng 7 years ago
parent adbcbb16a0
commit 3d89bae88f

@ -1,5 +1,7 @@
package cn.estsh.i3plus.pojo.model.dynamic.table;
import java.util.Map;
/**
* @Description :
* @Reference :
@ -81,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;
}
}

@ -23,6 +23,8 @@ public class ImppDynTable {
// 表单标题
private String tableTitle;
// 表单总记录数
private Long tableSize;
public ImppDynTable() {
}
@ -30,4 +32,12 @@ public class ImppDynTable {
public ImppDynTable(String tableTitle) {
this.tableTitle = tableTitle;
}
public Long getTableSize() {
return new Long(table.size());
}
private void setTableSize(Long tableSize) {
this.tableSize = tableSize;
}
}

Loading…
Cancel
Save