public void add(){
UepContract entity = new UepContract();
Long id=SequenceUtil.genEntitySequenceNo(UepContract.class);
//有实体获取方式
SequenceUtil.genSequenceNo("UEP_CONREAT_NO");
//无实体
entity.setId(new BigDecimal(id));
entity.setRemarks("新增加合同");
dataWrap.setData(entity);
//表单(ajaxform):dataWrap.setData();
responseData.setAjaxDataWrap("dataWrap", dataWrap);
}
action:
responseData.setParameter("Id12",SequenceUtil.genEntitySequenceNo(UepContract.class));
js:
var Id12 = response.getParameter("Id12");
//从DataCenter中获取参数
ajaxform.setValue("id",Id12);