在单据列表加按钮,选中单据后在后台进行数据处理,处理结束后跳转入编辑界面,但是保存按钮看不到了。
一,列表跳转js如下
function doBtnTuihuo(title,url,id){
var rows = $("#eflChukuEntryList").datagrid('getSelections');
var chukuEntryIds = "";
if (rows.length > 0) {
for ( var i = 0; i < rows.length; i++) {
chukuEntryIds=chukuEntryIds+","+rows.id;
}
}
url = url+"&ids="+chukuEntryIds;
createdetailwindow("退货入库单",url,1370,580);
}
二,后台返回ModelAndView
@RequestMapping(params = "doBtnTuihuo")
public ModelAndView doBtnTuihuo(EflChukuEntity eflChuku, HttpServletRequest request) {
String entryIds = request.getParameter("ids");
entryIds =entryIds.substring(1,entryIds.length());
String rukuId = eflRukuService.addRukuByChukuEntry(entryIds);
EflRukuEntity eflruku = eflRukuService.getEntity(EflRukuEntity.class, rukuId);
request.setAttribute("eflRukuPage", eflruku);
return new ModelAndView("com/jeecg/ruku/eflRuku-update");
}
|