前端的标签
<input class="inputxt" id="fshimian" name="fshimian" ignore="ignore" datatype="*" value="${shizhePage.fshimian}" />
<t:choose hiddenName="fshimian" hiddenid="fname" url="shizheController.do?fshimian"
name="shimianList" icon="icon-search" title="选择石棉垫" textname="fshimian" isclear="true" isInit="true"></t:choose>
后台的方法
@RequestMapping(params = "fshimian")
public ModelAndView fshimian(HttpServletRequest request) {
//--author:zhoujf-----start----date:20150531--------for: 编辑用户,选择角色,弹出的角色列表页面,默认没选中
ModelAndView mv = new ModelAndView("com/buss/shizhe/shimianList");
String ids = oConvertUtils.getString(request.getParameter("ids"));
mv.addObject("ids", ids);
return mv;
}
返回的list页面
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
<div region="center" style="padding:0px;border:0px">
<t:datagrid name="shimianList" title="石棉垫维护" actionUrl="shimianController.do?datagrid" idField="id" fit="true">
<t:dgCol title="编号" field="id" hidden="true"></t:dgCol>
<t:dgCol title="编码" field="fcode" width="120"></t:dgCol>
<t:dgCol title="名称" field="fname" width="120"></t:dgCol>
<t:dgCol title="操作" field="opt" width="100"></t:dgCol>
<t:dgDelOpt title="删除" url="shimianController.do?del&id={id}" urlclass="ace_button" urlfont="fa-trash-o"/>
<t:dgToolBar title="录入" icon="icon-add" url="shimianController.do?addorupdate" funname="add"></t:dgToolBar>
<t:dgToolBar title="编辑" icon="icon-edit" url="shimianController.do?addorupdate" funname="update"></t:dgToolBar>
<t:dgToolBar title="查看" icon="icon-search" url="shimianController.do?addorupdate" funname="detail"></t:dgToolBar>
</t:datagrid>
</div>
</div>