JeeCG - <t:choose/> 标签用法 输入框控件 查询输入
生活随笔
收集整理的這篇文章主要介紹了
JeeCG - <t:choose/> 标签用法 输入框控件 查询输入
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
頁面?
?
<td class="value"><!-- <input id="mateCode" name="mateCode" type="text" maxlength="32" style="width: 150px" class="inputxt" datatype="*" ignore="checked" /><span class="Validform_checktip"></span><label class="Validform_label" style="display: none;">物料編碼</label> --><input id="mateCode" name="mateCode" type="hidden" value="${id}"/><input name="mateName" id="mateName" class="inputxt" value="${mateName }" readonly="readonly" datatype="*" /><t:choose hiddenName="mateCode" hiddenid="id" textname="mateName" url="jysBomBodyController.do?mateList" name="mateList" icon="icon-search" title="物料列表" isclear="true" isInit="true"></t:choose><span class="Validform_checktip">物料編碼</span></td>涉及的后臺方法
//====================ADD or UPDATE 頁 選擇框查詢 t:choose 標簽用法 S=====================================/*** BOM選擇 物料 跳轉頁面* @return*/@RequestMapping(params = "mateList")public ModelAndView roles(HttpServletRequest request) {//編輯BOM,選擇物料,彈出的物料列表頁面,默認沒選中ModelAndView mv = new ModelAndView("com/jeecg/jysbombody/mateList");String ids = oConvertUtils.getString(request.getParameter("ids"));mv.addObject("ids", ids);return mv;}/*** 物料顯示列表* @param request* @param response* @param dataGrid*/@RequestMapping(params = "datagridMate")public void datagridRole(TSRole tsRole, HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid) {List<Map<String, Object>> data = new ArrayList<Map<String, Object>>();Object object = cacheService.get(CacheServiceI.NC_MATE_CACHE, ResourceUtil.NC_MATE_CACHE_KEY);if(object!=null){data = (List<Map<String, Object>>) object;}List<Map<String, Object>> showList = null;//要顯示的數據int showLen = dataGrid.getRows();//動態得到前端需要顯示多少條int totlePage = data.size()%showLen == 0 ? data.size()/showLen : data.size()/showLen + 1;if(dataGrid.getPage() == 1 ) {if(showLen > data.size()) {showLen = data.size();}showList = data.subList(0, showLen);}else {if(dataGrid.getPage() == totlePage) {showList = data.subList(((dataGrid.getPage()-1)*showLen),data.size());}else {showList = data.subList(((dataGrid.getPage()-1)*showLen),((dataGrid.getPage()-1)*showLen)+showLen);}}dataGrid.setResults(showList);dataGrid.setTotal(data.size());//總條數TagUtil.datagrid(response, dataGrid);}//====================ADD or UPDATE 頁 選擇框查詢 t:choose 標簽用法 E=====================================?選擇頁面查詢
?
總結
以上是生活随笔為你收集整理的JeeCG - <t:choose/> 标签用法 输入框控件 查询输入的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【机器学习】一文解决样本不均衡(全)
- 下一篇: 【效率】来了!Github 终于上线收藏