增行
BillCardPanel billCardPanel = this.getCardPanel();
<获取当前页面页签名称>
String tabelename = this.getCardPanel().getBodyPanel().getTableName();
<获取当前页面页签编码>
String tabeleCode = this.getCardPanel().getBodyPanel().getTableCode();
<获取所在页面的所有表体行行数>
int i= this.getCardPanel().getRowCount()
<获取指定页签指定表体行数据>
Map<String, Object> map = new HashMap<String, Object>();
map=this.getBodyPanel(“tablecode”).getTableModel().getBodyRowValueByMetaData(1);
<获取指定页签所有表体行数据>
Map<String, Object>[] maps =this.getBodyPanel(“tablecode”).getTableModel().getBodyValueByMetaData();
<增加表体行数>
this.getCardPanel().addLine();
<给指定表体行字段set值>
this.getCardPanel().setBodyValueAt(pk_fundsource, i, “def16”);
<字段设置成是否可编辑>
this.getCardPanel().getBodyItem(“code”).setEdit(false);
this.getCardPanel().getBodyItem(“code”).setEdit(true);
<字段设置成是否必填>
billCardPanel.getBodyItem(“code”).setNull(false);
billCardPanel.getBodyItem(“code”).setNull(true);
<字段参照set主键在前端显示名称>
this.getCardPanel().getBillModel().loadLoadRelationItemValue();
减行
this.getCardPanel().delLine();