真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

requireJS+angularJS+java+ireport統(tǒng)計(jì)報(bào)表



    
        
            
                                                     查詢條件     
                                                                                                                                                                                               *所屬機(jī)構(gòu)                                                                                                            
                                                                                                                                                                              *起始日期                                                                                                                                                                                                                                                                                           *終止日期                                                                                                                                                                                                         查詢                                    導(dǎo)出                                                                                                                                   
集中催收報(bào)表
                                                                                                                                                                                                                                                                                                                                                                                                                                     ×                                                                                               選擇機(jī)構(gòu)                                                                                                                                                                                                                        取消                                                                                               確定                                                                                                                                  
'use strict';
// 擔(dān)保對照
var a = 0;
var page = 0;
var gro = "";
define([ 'app', 'appModule' ],function(app){
    // 彈出層自適應(yīng)居中
    $(function() {
        $(".modal-body").height($(window).height() - 360);
        // 當(dāng)文檔窗口發(fā)生改變時(shí) 觸發(fā)
        $(window).resize(function() {
            $(".modal-body").height($(window).height() - 360);
        });
        $(this).on('show.bs.modal', function() {
            $('body').addClass('modal-open');
        });
        $(this).on('hide.bs.modal', function() {
            $('body').removeClass('modal-open');
        });
    });
    
    app.register.controller('focuscollCtrl',['$rootScope','$scope','$cookies','coreUrl','lodinDataService','lodinDatadService','$http',function($rootScope,$scope, $cookies, coreUrl,lodinDataService, lodinDatadService,$http) {
        if (lodinDatadService.getObject('lodinDatad') == 0) {
            $scope.LoginList = lodinDataService.getObject('lodinData');
        }
        if (lodinDataService.getObject('lodinData') == 0) {
            $scope.LoginList = lodinDatadService.getObject('lodinDatad');
        }
        $rootScope.parentCru = lodinDataService.get('parentCru');
        $rootScope.childCru = lodinDataService.get('childCru');
        $rootScope.userId = $scope.LoginList.userId;
        $rootScope.branchId = $scope.LoginList.branchId;
        $scope.data = lodinDatadService.getObject('branchData');
            //新增機(jī)構(gòu)-彈出框顯示隱藏
            $scope.get_tree = function(){
                if($scope.data){
                    $scope.tree($scope.data.row);
                }
            };
         $scope.tree = function(data){
             $('#trees').on("changed.jstree", function(e, data) {
                if(data.selected.length) {
                    $scope.id = data.instance.get_node(data.selected[0]).id;
                    $scope.text = data.instance.get_node(data.selected[0]).text;
                } //輸出點(diǎn)擊的內(nèi)容
            }).jstree({
                'core': {
                    'data': data
                }
            }); //動(dòng)態(tài)生成tree菜單
         }; 
         $scope.getBranchName = function(){
             if($scope.text == undefined || $scope.text == ""){
                alert("溫馨提示!", '請選擇機(jī)構(gòu)!', function () {
                }, {type: 'warning',showConfirmButton:true});
                }else{
                    $scope.branchId_collection = $scope.id;
                    $scope.branchName_collection = $scope.text;
                }
         };
         //查詢--選擇機(jī)構(gòu)--取消
        $scope.getBranchName_dismiss = function(){
            $('#myModal_add4').modal('hide');
        };
        //獲取報(bào)表種類
        var CoreUrl = new coreUrl({
            "transCode" : "B000704",
            "bizTypeCode" : "LOAN_PRESS_TYPE"
        });
        CoreUrl.$save(function(objc){
            $scope.actualChannelList = objc.rows;
        });        
        //查詢    
        $scope.QueryMessagePress= function(){
            var href_Base = "jasperreport/reportFocusCollHtml?";
            $scope.startDate = document.getElementById('LAY_demorange_s').value;
            $scope.endDate = document.getElementById('LAY_demorange_e').value;
            if($scope.branchName_collection != undefined && $scope.startDate.length>0 && $scope.endDate.length>0){    
                href_Base += "groupId=";
                href_Base += $scope.branchId_collection;
                href_Base += "&groupName=";
                href_Base += $scope.branchName_collection;
                href_Base += "&startDate=";
                var sDate = $scope.startDate;
                sDate = sDate.replace(/-/, "年");
                sDate = sDate.replace(/-/, "月");
                sDate += "日"; 
                href_Base += sDate;
                href_Base += "&endDate=";
                var eDate = $scope.endDate;
                eDate = eDate.replace(/-/, "年");
                eDate = eDate.replace(/-/, "月");
                eDate += "日"; 
                href_Base += eDate;
                $scope.href_Base = href_Base;
                window.subFrame.location.href = $scope.href_Base;
            }else{
                alert("溫馨提示!", '請輸入查詢條件', function () {}, {type: 'warning',showConfirmButton:true});
            }
        };
        //導(dǎo)出
        $scope.QueryMessageXls= function(){
            var href_Base = "jasperreport/reportFocusCollXls?";
            $scope.startDate = document.getElementById('LAY_demorange_s').value;
            $scope.endDate = document.getElementById('LAY_demorange_e').value;
            if($scope.branchName_collection != undefined && $scope.startDate.length>0 && $scope.endDate.length>0){    
                href_Base += "groupId=";
                href_Base += $scope.branchId_collection;
                href_Base += "&groupName=";
                href_Base += $scope.branchName_collection;
                href_Base += "&startDate=";
                var sDate = $scope.startDate;
                sDate = sDate.replace(/-/, "年");
                sDate = sDate.replace(/-/, "月");
                sDate += "日"; 
                href_Base += sDate;
                href_Base += "&endDate=";
                var eDate = $scope.endDate;
                eDate = eDate.replace(/-/, "年");
                eDate = eDate.replace(/-/, "月");
                eDate += "日"; 
                href_Base += eDate;
                $scope.href_Base = href_Base;
                window.subFrame.location.href = $scope.href_Base;
            }else{
                alert("溫馨提示!", '請輸入導(dǎo)出條件', function () {}, {type: 'warning',showConfirmButton:true});
            }
        };
        //輸入框屏蔽特殊字符
        /*var pattern = new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]") ;
        $('input').bind('input propertychange', function() {
            $('input').val($('input').val().replace(pattern,""));
        });*/
        //------end--------
        //轉(zhuǎn)列日期--時(shí)間控件
        layui.use('laydate', function(){
            var laydate = layui.laydate;
            var start = {
                // min:
                // laydate.now()
                max : laydate.now(),
                istoday : false,
                choose : function(datas) {
                    $scope.startDate = datas;
                    end.min = datas; //開始日選好后,重置結(jié)束日的最小日期
                    end.start = datas //將結(jié)束日的初始值設(shè)定為開始日
                }
            };
            var end = {
                    //min: laydate.now()
                max : laydate.now(),
                istoday: false,
                choose: function(datas){
                    $scope.endDate = datas;
                    start.max = datas; //結(jié)束日選好后,重置開始日的最大日期
                }
              };
              document.getElementById('LAY_demorange_s').onclick = function(){
                  start.elem = this;
                  laydate(start);
              };
              document.getElementById('LAY_demorange_e').onclick = function(){
                  end.elem = this;
                  laydate(end);
              };
        });
        //轉(zhuǎn)列日期-時(shí)間控件end
    }]);
});

標(biāo)題名稱:requireJS+angularJS+java+ireport統(tǒng)計(jì)報(bào)表
本文路徑:http://weahome.cn/article/piecji.html

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部