成人国产在线小视频_日韩寡妇人妻调教在线播放_色成人www永久在线观看_2018国产精品久久_亚洲欧美高清在线30p_亚洲少妇综合一区_黄色在线播放国产_亚洲另类技巧小说校园_国产主播xx日韩_a级毛片在线免费

資訊專(zhuān)欄INFORMATION COLUMN

easyui datagrid以及oracle中的多行合并一行

jollywing / 1651人閱讀

摘要:頁(yè)面顯示前端代碼大箱碼關(guān)聯(lián)信息列表大箱碼關(guān)聯(lián)的箱碼不同箱碼用分號(hào)分開(kāi),相同箱碼用逗號(hào)分開(kāi)關(guān)聯(lián)數(shù)量頁(yè)面切換動(dòng)作設(shè)置默認(rèn)的頁(yè)號(hào)設(shè)置默認(rèn)的每頁(yè)記錄數(shù)注意格式是,不是請(qǐng)求成功,將返回的數(shù)據(jù)一頁(yè)的記錄數(shù)綁定到控件總記錄個(gè)數(shù)獲取條數(shù)由于顯

頁(yè)面顯示:

前端代碼:
大箱碼 關(guān)聯(lián)的箱碼(不同箱碼用分號(hào)分開(kāi),相同箱碼用逗號(hào)分開(kāi)) 關(guān)聯(lián)數(shù)量
js:
 function getDataByPageRows(pageNum, rowsLimit){  
        $("#pp").show();
               pageNum = pageNum || 1;     // 設(shè)置默認(rèn)的頁(yè)號(hào)  
               rowsLimit = rowsLimit || 2;// 設(shè)置默認(rèn)的每頁(yè)記錄數(shù)  
               $.ajax({  
                   type: "POST",  
                   dataType: "json",       // 注意格式是html,不是json  
                   url:"<%=basePath%>outdata/querydetaillist",
                   data: {  
                       startdate: $("#startdate").datetimebox("getValue"),
                       enddate: $("#enddate").datetimebox("getValue"),
                       storecode: $("#storecode").val(),
                       page: pageNum,
                       rows: rowsLimit
                   },  
                   success: function(data){   // 請(qǐng)求成功,將返回的數(shù)據(jù)(一頁(yè)的記錄數(shù))綁定到 datagrid控件  
                       var count = data.total;   // 總記錄個(gè)數(shù)  
                       var datarow = data.rows;  //獲取條數(shù);
                       $("#dgs").datagrid("loadData",datarow);  
                       $("#pp").pagination({  
                           total: count,           // 由于顯示 ”共XXX條記錄” 等信息用  
                           pageNumber: pageNum    //   
                       });  
                   }  
               });//ajax         
           }
controller:
@RequestMapping(value="/querydetaillist")
    @ResponseBody
    public String querydetaillist(Model model,HttpServletResponse response,HttpServletRequest request,
            @RequestParam(value = "page", required = false, defaultValue = "") String page,
            @RequestParam(value = "storecode", required = false, defaultValue = "") String storecode,
            @RequestParam(value = "startdate", required = false, defaultValue = "") String startdate,
            @RequestParam(value = "enddate", required = false, defaultValue = "") String enddate,
            @RequestParam(value = "rows", required = false, defaultValue = "") String rows){
        
        
        int endindex=Integer.valueOf(page)*Integer.valueOf(rows);
        int startindex=(Integer.valueOf(page)-1)*Integer.valueOf(rows);
        Map params = new HashMap();
        if(!storecode.equals("")){
            storecode = storecode.replaceFirst("^0*", ""); 
        }
        if(!startdate.equals("")){
            startdate = startdate.replaceAll(" ", "");
        }
        if(!enddate.equals("")){
            enddate = enddate.replaceAll(" ", "");
        }
        params.put("endIndex", endindex);
        params.put("storecode", storecode);
        params.put("startIndex", startindex);
        params.put("startdate", startdate);
        params.put("enddate", enddate);
        

        List datalist=outdataDao.querydetaillist(params);
        String total=outdataDao.querydetaillistcount(params);
        JSONObject obj=new JSONObject();
        obj.put("total", total);
        obj.put("rows", datalist);
        return obj.toJSONString();
    }
xml:

    
    
參考文檔:

easyui 中文網(wǎng):http://www.jeasyui.net/plugin...
oracle多行合并成一行: listagg within group:http://blog.csdn.net/baojiang...

文章版權(quán)歸作者所有,未經(jīng)允許請(qǐng)勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。

轉(zhuǎn)載請(qǐng)注明本文地址:http://systransis.cn/yun/68540.html

相關(guān)文章

  • EasyUI datagrid數(shù)據(jù)表格單元格內(nèi)允許換行 解決單元格內(nèi)純數(shù)字或英文文本不能換行問(wèn)題

    摘要:官方的數(shù)據(jù)表格屬性中提供了屬性其作用是設(shè)置為,則把數(shù)據(jù)顯示在一行里。設(shè)置為可提高加載性能。 官方的數(shù)據(jù)表格屬性中提供了nowrap屬性其作用是:設(shè)置為 true,則把數(shù)據(jù)顯示在一行里。設(shè)置為 true 可提高加載性能。 默認(rèn)為true在設(shè)置數(shù)據(jù)表格屬性時(shí)將nowrap屬性設(shè)置為false時(shí),并且設(shè)置表格的寬度,當(dāng)單元格內(nèi)數(shù)據(jù)內(nèi)容超過(guò)寬度時(shí)就會(huì)自動(dòng)換行 { field : khm...

    junfeng777 評(píng)論0 收藏0
  • EasyUI datagrid問(wèn)題整理

    摘要:什么是是一種基于和的用戶(hù)界面插件集合。為創(chuàng)建現(xiàn)代化,互動(dòng),應(yīng)用程序,提供必要的功能。是個(gè)完美支持網(wǎng)頁(yè)的完整框架。很簡(jiǎn)單但功能強(qiáng)大的。返回則取消該動(dòng)作。該函數(shù)有下列參數(shù)要傳遞到遠(yuǎn)程服務(wù)器的參數(shù)對(duì)象。當(dāng)檢索數(shù)據(jù)成功時(shí)調(diào)用的回調(diào)函數(shù)。 什么是easyUI easyui是一種基于jQuery、Angular.、Vue和React的用戶(hù)界面插件集合。easyui為創(chuàng)建現(xiàn)代化,互動(dòng),JavaScr...

    megatron 評(píng)論0 收藏0
  • EasyUI datagrid問(wèn)題整理

    摘要:什么是是一種基于和的用戶(hù)界面插件集合。為創(chuàng)建現(xiàn)代化,互動(dòng),應(yīng)用程序,提供必要的功能。是個(gè)完美支持網(wǎng)頁(yè)的完整框架。很簡(jiǎn)單但功能強(qiáng)大的。返回則取消該動(dòng)作。該函數(shù)有下列參數(shù)要傳遞到遠(yuǎn)程服務(wù)器的參數(shù)對(duì)象。當(dāng)檢索數(shù)據(jù)成功時(shí)調(diào)用的回調(diào)函數(shù)。 什么是easyUI easyui是一種基于jQuery、Angular.、Vue和React的用戶(hù)界面插件集合。easyui為創(chuàng)建現(xiàn)代化,互動(dòng),JavaScr...

    yexiaobai 評(píng)論0 收藏0
  • EasyUI datagrid問(wèn)題整理

    摘要:什么是是一種基于和的用戶(hù)界面插件集合。為創(chuàng)建現(xiàn)代化,互動(dòng),應(yīng)用程序,提供必要的功能。是個(gè)完美支持網(wǎng)頁(yè)的完整框架。很簡(jiǎn)單但功能強(qiáng)大的。返回則取消該動(dòng)作。該函數(shù)有下列參數(shù)要傳遞到遠(yuǎn)程服務(wù)器的參數(shù)對(duì)象。當(dāng)檢索數(shù)據(jù)成功時(shí)調(diào)用的回調(diào)函數(shù)。 什么是easyUI easyui是一種基于jQuery、Angular.、Vue和React的用戶(hù)界面插件集合。easyui為創(chuàng)建現(xiàn)代化,互動(dòng),JavaScr...

    Kross 評(píng)論0 收藏0

發(fā)表評(píng)論

0條評(píng)論

最新活動(dòng)
閱讀需要支付1元查看
<