成人无码视频,亚洲精品久久久久av无码,午夜精品久久久久久毛片,亚洲 中文字幕 日韩 无码

資訊專欄INFORMATION COLUMN

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

jollywing / 1709人閱讀

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

頁面顯示:

前端代碼:
大箱碼 關(guān)聯(lián)的箱碼(不同箱碼用分號分開,相同箱碼用逗號分開) 關(guān)聯(lián)數(shù)量
js:
 function getDataByPageRows(pageNum, rowsLimit){  
        $("#pp").show();
               pageNum = pageNum || 1;     // 設(shè)置默認(rèn)的頁號  
               rowsLimit = rowsLimit || 2;// 設(shè)置默認(rèn)的每頁記錄數(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){   // 請求成功,將返回的數(shù)據(jù)(一頁的記錄數(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)允許請勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。

轉(zhuǎn)載請注明本文地址:http://m.hztianpu.com/yun/68540.html

相關(guān)文章

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

    摘要:官方的數(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)容超過寬度時(shí)就會自動(dòng)換行 { field : khm...

    junfeng777 評論0 收藏0
  • EasyUI datagrid問題整理

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

    megatron 評論0 收藏0
  • EasyUI datagrid問題整理

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

    yexiaobai 評論0 收藏0
  • EasyUI datagrid問題整理

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

    Kross 評論0 收藏0

發(fā)表評論

0條評論

jollywing

|高級講師

TA的文章

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