|
@@ -0,0 +1,624 @@
|
|
|
|
+<%@ page contentType="text/html;charset=UTF-8" %>
|
|
|
|
+<script>
|
|
|
|
+$(document).ready(function() {
|
|
|
|
+ $('#basicTable').bootstrapTable({
|
|
|
|
+ //请求方法
|
|
|
|
+ method: 'post',
|
|
|
|
+ //类型json
|
|
|
|
+ dataType: "json",
|
|
|
|
+ contentType: "application/x-www-form-urlencoded",
|
|
|
|
+ //显示检索按钮
|
|
|
|
+ showSearch: true,
|
|
|
|
+ //显示刷新按钮
|
|
|
|
+ showRefresh: true,
|
|
|
|
+ //显示切换手机试图按钮
|
|
|
|
+ showToggle: true,
|
|
|
|
+ //显示 内容列下拉框
|
|
|
|
+ showColumns: true,
|
|
|
|
+ //显示到处按钮
|
|
|
|
+ showExport: true,
|
|
|
|
+ //显示切换分页按钮
|
|
|
|
+ showPaginationSwitch: true,
|
|
|
|
+ //显示详情按钮
|
|
|
|
+ detailView: true,
|
|
|
|
+ //显示详细内容函数
|
|
|
|
+ // detailFormatter: "detailFormatter",
|
|
|
|
+ //最低显示2行
|
|
|
|
+ minimumCountColumns: 2,
|
|
|
|
+ //是否显示行间隔色
|
|
|
|
+ striped: true,
|
|
|
|
+ //是否使用缓存,默认为true,所以一般情况下需要设置一下这个属性(*)
|
|
|
|
+ cache: false,
|
|
|
|
+ //是否显示分页(*)
|
|
|
|
+ pagination: true,
|
|
|
|
+ //排序方式
|
|
|
|
+ sortOrder: "asc",
|
|
|
|
+ //初始化加载第一页,默认第一页
|
|
|
|
+ pageNumber:1,
|
|
|
|
+ //每页的记录行数(*)
|
|
|
|
+ pageSize: 10,
|
|
|
|
+ //可供选择的每页的行数(*)
|
|
|
|
+ pageList: [10, 25, 50, 100],
|
|
|
|
+ //这个接口需要处理bootstrap table传递的固定参数,并返回特定格式的json数据
|
|
|
|
+ url: "${ctx}/filing/earlyStage/data",
|
|
|
|
+ //默认值为 'limit',传给服务端的参数为:limit, offset, search, sort, order Else
|
|
|
|
+ //queryParamsType:'',
|
|
|
|
+ ////查询参数,每次调用是会带上这个参数,可自定义
|
|
|
|
+ queryParams : function(params) {
|
|
|
|
+ var searchParam = $("#searchForm").serializeJSON();
|
|
|
|
+ searchParam.pageNo = params.limit === undefined? "1" :params.offset/params.limit+1;
|
|
|
|
+ searchParam.pageSize = params.limit === undefined? -1 : params.limit;
|
|
|
|
+ searchParam.orderBy = params.sort === undefined? "" : params.sort+ " "+ params.order;
|
|
|
|
+ return searchParam;
|
|
|
|
+ },
|
|
|
|
+ //分页方式:client客户端分页,server服务端分页(*)
|
|
|
|
+ sidePagination: "server",
|
|
|
|
+ contextMenuTrigger:"right",//pc端 按右键弹出菜单
|
|
|
|
+ contextMenuTriggerMobile:"press",//手机端 弹出菜单,click:单击, press:长按。
|
|
|
|
+ contextMenu: '#context-menu',
|
|
|
|
+ onContextMenuItem: function(row, $el){
|
|
|
|
+ if($el.data("item") == "edit"){
|
|
|
|
+ edit(row.id);
|
|
|
|
+ }else if($el.data("item") == "view"){
|
|
|
|
+ view(row.id);
|
|
|
|
+ } else if($el.data("item") == "delete"){
|
|
|
|
+ jp.confirm('确认要删除该核准阶段记录吗?', function(){
|
|
|
|
+ jp.loading();
|
|
|
|
+ jp.get("${ctx}/filing/earlyStage/delete?id="+row.id, function(data){
|
|
|
|
+ if(data.success){
|
|
|
|
+ $('#basicTable').bootstrapTable('refresh');
|
|
|
|
+ jp.success(data.msg);
|
|
|
|
+ }else{
|
|
|
|
+ jp.error(data.msg);
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ /* onPostBody:function(){
|
|
|
|
+ window.rowProps = undefined;
|
|
|
|
+ _table_rowspan("#basicTable" , 1);
|
|
|
|
+ _table_rowspan("#basicTable" , 2);
|
|
|
|
+ _table_rowspan("#basicTable" , 3);
|
|
|
|
+ _table_rowspan("#basicTable" , 4);
|
|
|
|
+ _table_rowspan("#basicTable" , 5);
|
|
|
|
+ return true;
|
|
|
|
+ },*/
|
|
|
|
+ onClickRow: function(row, $el){
|
|
|
|
+ },
|
|
|
|
+ onShowSearch: function () {
|
|
|
|
+ $("#search-collapse").slideToggle();
|
|
|
|
+ },
|
|
|
|
+ columns: [{
|
|
|
|
+ checkbox: true
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ ,{
|
|
|
|
+ field: 'projectCode',
|
|
|
|
+ title: '项目编码',
|
|
|
|
+ width: '100px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'projectCode'
|
|
|
|
+ ,formatter:function(value, row , index){
|
|
|
|
+ if(value == null || value ==""){
|
|
|
|
+ value = "-";
|
|
|
|
+ }
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fns:hasPermission('test:filing:approvalStage:edit')}">
|
|
|
|
+ return "<a href='javascript:edit(\""+row.id+"\")'>"+value+"</a>";
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:when test="${fns:hasPermission('test:filing:approvalStage:view')}">
|
|
|
|
+ return "<a href='javascript:view(\""+row.id+"\")'>"+value+"</a>";
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ return value;
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ ,{
|
|
|
|
+ field: 'monomerCode',
|
|
|
|
+ title: '单体编码',
|
|
|
|
+ sortable: true,
|
|
|
|
+ width: '100px',
|
|
|
|
+ sortName: 'monomerCode'
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ ,{
|
|
|
|
+ field: 'entryName',
|
|
|
|
+ title: '项目名称',
|
|
|
|
+ width: '100px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'entryName'
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ ,{
|
|
|
|
+ field: 'approvalNumber',
|
|
|
|
+ title: '核准文号',
|
|
|
|
+ width: '100px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'approvalNumber'
|
|
|
|
+ }
|
|
|
|
+ ,{
|
|
|
|
+ field: 'dateOfApproval',
|
|
|
|
+ title: '核准日期',
|
|
|
|
+ width: '100px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'dateOfApproval'
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ ,{
|
|
|
|
+ field: 'approvedAmount',
|
|
|
|
+ title: '核准金额',
|
|
|
|
+ width: '100px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'approvedAmount'
|
|
|
|
+ },{
|
|
|
|
+ field: 'replyNo',
|
|
|
|
+ title: '可研批复<br/>文号',
|
|
|
|
+ width: '100px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'replyNo'
|
|
|
|
+ }
|
|
|
|
+ ,{
|
|
|
|
+ field: 'approvalDate',
|
|
|
|
+ title: '可研批复<br/>日期',
|
|
|
|
+ width: '100px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'approvalDate'
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ ,{
|
|
|
|
+ field: 'staticInvestment',
|
|
|
|
+ title: '可研静态<br/>投资金额',
|
|
|
|
+ width: '100px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'staticInvestment'
|
|
|
|
+ },{
|
|
|
|
+ field: 'dynamicInvestment',
|
|
|
|
+ title: '可研动态<br/>投资金额',
|
|
|
|
+ width: '100px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'dynamicInvestment'
|
|
|
|
+ },{
|
|
|
|
+ field: 'constructionScaleVA',
|
|
|
|
+ title: '建设规模<br/>(变电容量)<br/>万伏安',
|
|
|
|
+ width: '150px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'constructionScaleVA'
|
|
|
|
+ }
|
|
|
|
+ ,{
|
|
|
|
+ field: 'constructionScaleKM',
|
|
|
|
+ title: '建设规模<br/>(线路长度)<br/>千米',
|
|
|
|
+ width: '150px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'constructionScaleKM'
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ ,{
|
|
|
|
+ field: 'numberOf',
|
|
|
|
+ title: '铁塔数量<br/>/钢管杆数量',
|
|
|
|
+ width: '150px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'numberOf'
|
|
|
|
+ },{
|
|
|
|
+ field: 'conductorType',
|
|
|
|
+ title: '导线型号<br/>及双回否型号',
|
|
|
|
+ width: '150px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'conductorType'
|
|
|
|
+ },{
|
|
|
|
+ field: 'conductorLength',
|
|
|
|
+ title: '导线型号<br/>及双回否长度',
|
|
|
|
+ width: '150px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'conductorLength'
|
|
|
|
+ },{
|
|
|
|
+ field: 'theSource',
|
|
|
|
+ title: '变压器来源<br/>新购/利旧,<br/>主变来源的<br/>变电站',
|
|
|
|
+ width: '150px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'theSource'
|
|
|
|
+ },{
|
|
|
|
+ field: 'modularConstructionScheme',
|
|
|
|
+ title: '模块化<br/>建设方案',
|
|
|
|
+ width: '150px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'modularConstructionScheme'
|
|
|
|
+ },{
|
|
|
|
+ field: 'descriptionOf',
|
|
|
|
+ title: '工程难点<br/>描述',
|
|
|
|
+ width: '150px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'descriptionOf'
|
|
|
|
+ },{
|
|
|
|
+ field: 'milestoneStartDate',
|
|
|
|
+ title: '里程碑<br/>开工日期',
|
|
|
|
+ width: '150px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'milestoneStartDate'
|
|
|
|
+ },{
|
|
|
|
+ field: 'milestoneCommissioningDate',
|
|
|
|
+ title: '里程碑<br/>投产日期',
|
|
|
|
+ width: '150px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'milestoneCommissioningDate'
|
|
|
|
+ },{
|
|
|
|
+ field: 'startDate',
|
|
|
|
+ title: '内控开工<br/>日期',
|
|
|
|
+ width: '150px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'startDate'
|
|
|
|
+ },{
|
|
|
|
+ field: 'internalControl',
|
|
|
|
+ title: '内控投产<br/>日期',
|
|
|
|
+ width: '150px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'internalControl'
|
|
|
|
+ },{
|
|
|
|
+ field: 'earliestArrival',
|
|
|
|
+ title: '主设备<br/>最早到货<br/>时间',
|
|
|
|
+ width: '150px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'earliestArrival'
|
|
|
|
+ },{
|
|
|
|
+ field: 'arrivalPlan',
|
|
|
|
+ title: '线路塔材<br/>到货计划',
|
|
|
|
+ width: '150px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'arrivalPlan'
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ onExpandRow: function (index, row, $detail) {
|
|
|
|
+ initSubTable(index, row, $detail);
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ //初始化子表格(无线循环)
|
|
|
|
+ initSubTable = function (index, row, $detail) {
|
|
|
|
+ var parentid = row.projectCode;
|
|
|
|
+ var cur_table = $detail.html('<table></table>').find('table');
|
|
|
|
+ $(cur_table).bootstrapTable({
|
|
|
|
+ url: '${ctx}/filing/earlyStage/detail',
|
|
|
|
+ method: 'post',
|
|
|
|
+ //类型json
|
|
|
|
+ dataType: "json",
|
|
|
|
+ contentType: "application/x-www-form-urlencoded",
|
|
|
|
+ queryParams : function(params) {
|
|
|
|
+ var searchParam = $("#searchForm").serializeJSON();
|
|
|
|
+ searchParam.pageNo = params.limit === undefined? "1" :params.offset/params.limit+1;
|
|
|
|
+ searchParam.pageSize = params.limit === undefined? -1 : params.limit;
|
|
|
|
+ searchParam.orderBy = params.sort === undefined? "" : params.sort+ " "+ params.order;
|
|
|
|
+ searchParam.projectCode = parentid;
|
|
|
|
+ return searchParam;
|
|
|
|
+ },
|
|
|
|
+ striped: true, //是否显示行间隔色
|
|
|
|
+ pagination: false,//显示分页
|
|
|
|
+ sidePagination: "server",
|
|
|
|
+ pageNumber:1,
|
|
|
|
+ pageSize: 10,
|
|
|
|
+ pageList: [10, 25],
|
|
|
|
+ columns: [{
|
|
|
|
+ field: 'projectCode',
|
|
|
|
+ title: '项目编码',
|
|
|
|
+ width: '100px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'projectCode'
|
|
|
|
+ ,formatter:function(value, row , index){
|
|
|
|
+ if(value == null || value ==""){
|
|
|
|
+ value = "-";
|
|
|
|
+ }
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fns:hasPermission('test:filing:approvalStage:edit')}">
|
|
|
|
+ return "<a href='javascript:editChild(\""+row.id+"\")'>"+value+"</a>";
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ return value;
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ ,{
|
|
|
|
+ field: 'monomerCode',
|
|
|
|
+ title: '单体编码',
|
|
|
|
+ sortable: true,
|
|
|
|
+ width: '100px',
|
|
|
|
+ sortName: 'monomerCode'
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ ,{
|
|
|
|
+ field: 'entryName',
|
|
|
|
+ title: '项目名称',
|
|
|
|
+ width: '100px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'entryName'
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ ,{
|
|
|
|
+ field: 'approvalNumber',
|
|
|
|
+ title: '核准文号',
|
|
|
|
+ width: '100px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'approvalNumber'
|
|
|
|
+ }
|
|
|
|
+ ,{
|
|
|
|
+ field: 'dateOfApproval',
|
|
|
|
+ title: '核准日期',
|
|
|
|
+ width: '100px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'dateOfApproval'
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ ,{
|
|
|
|
+ field: 'approvedAmount',
|
|
|
|
+ title: '核准金额',
|
|
|
|
+ width: '100px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'approvedAmount'
|
|
|
|
+ },{
|
|
|
|
+ field: 'replyNo',
|
|
|
|
+ title: '可研批复文号',
|
|
|
|
+ width: '100px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'replyNo'
|
|
|
|
+ }
|
|
|
|
+ ,{
|
|
|
|
+ field: 'approvalDate',
|
|
|
|
+ title: '可研批复日期',
|
|
|
|
+ width: '100px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'approvalDate'
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ ,{
|
|
|
|
+ field: 'staticInvestment',
|
|
|
|
+ title: '可研静态态投资金额',
|
|
|
|
+ width: '100px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'staticInvestment'
|
|
|
|
+ },{
|
|
|
|
+ field: 'dynamicInvestment',
|
|
|
|
+ title: '可研动态投资金额',
|
|
|
|
+ width: '100px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'dynamicInvestment'
|
|
|
|
+ },{
|
|
|
|
+ field: 'constructionScaleVA',
|
|
|
|
+ title: '建设规模<br/>(变电容量)<br/>万伏安',
|
|
|
|
+ width: '150px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'constructionScaleVA'
|
|
|
|
+ }
|
|
|
|
+ ,{
|
|
|
|
+ field: 'constructionScaleKM',
|
|
|
|
+ title: '建设规模<br/>(线路长度)<br/>千米',
|
|
|
|
+ width: '150px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'constructionScaleKM'
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ ,{
|
|
|
|
+ field: 'numberOf',
|
|
|
|
+ title: '铁塔数量<br/>/钢管杆数量',
|
|
|
|
+ width: '150px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'numberOf'
|
|
|
|
+ },{
|
|
|
|
+ field: 'conductorType',
|
|
|
|
+ title: '导线型号<br/>及双回否型号',
|
|
|
|
+ width: '150px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'conductorType'
|
|
|
|
+ },{
|
|
|
|
+ field: 'conductorLength',
|
|
|
|
+ title: '导线型号<br/>及双回否长度',
|
|
|
|
+ width: '150px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'conductorLength'
|
|
|
|
+ },{
|
|
|
|
+ field: 'theSource',
|
|
|
|
+ title: '变压器来源<br/>新购/利旧,<br/>主变来源的<br/>变电站',
|
|
|
|
+ width: '150px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'theSource'
|
|
|
|
+ },{
|
|
|
|
+ field: 'modularConstructionScheme',
|
|
|
|
+ title: '模块化<br/>建设方案',
|
|
|
|
+ width: '150px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'modularConstructionScheme'
|
|
|
|
+ },{
|
|
|
|
+ field: 'descriptionOf',
|
|
|
|
+ title: '工程难点<br/>描述',
|
|
|
|
+ width: '150px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'descriptionOf'
|
|
|
|
+ },{
|
|
|
|
+ field: 'milestoneStartDate',
|
|
|
|
+ title: '里程碑<br/>开工日期',
|
|
|
|
+ width: '150px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'milestoneStartDate'
|
|
|
|
+ },{
|
|
|
|
+ field: 'milestoneCommissioningDate',
|
|
|
|
+ title: '里程碑<br/>投产日期',
|
|
|
|
+ width: '150px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'milestoneCommissioningDate'
|
|
|
|
+ },{
|
|
|
|
+ field: 'startDate',
|
|
|
|
+ title: '内控开工<br/>日期',
|
|
|
|
+ width: '150px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'startDate'
|
|
|
|
+ },{
|
|
|
|
+ field: 'internalControl',
|
|
|
|
+ title: '内控投产<br/>日期',
|
|
|
|
+ width: '150px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'internalControl'
|
|
|
|
+ },{
|
|
|
|
+ field: 'earliestArrival',
|
|
|
|
+ title: '主设备<br/>最早到货<br/>时间',
|
|
|
|
+ width: '150px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'earliestArrival'
|
|
|
|
+ },{
|
|
|
|
+ field: 'arrivalPlan',
|
|
|
|
+ title: '线路塔材<br/>到货计划',
|
|
|
|
+ width: '150px',
|
|
|
|
+ sortable: true,
|
|
|
|
+ sortName: 'arrivalPlan'
|
|
|
|
+ }]
|
|
|
|
+ });
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){//如果是移动端
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ $('#basicTable').bootstrapTable("toggleView");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ $('#basicTable').on('check.bs.table uncheck.bs.table load-success.bs.table ' +
|
|
|
|
+ 'check-all.bs.table uncheck-all.bs.table', function () {
|
|
|
|
+ $('#remove').prop('disabled', ! $('#basicTable').bootstrapTable('getSelections').length);
|
|
|
|
+ $('#view,#edit').prop('disabled', $('#basicTable').bootstrapTable('getSelections').length!=1);
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ $("#btnImport").click(function(){
|
|
|
|
+ jp.open({
|
|
|
|
+ type: 2,
|
|
|
|
+ area: [500, 200],
|
|
|
|
+ auto: true,
|
|
|
|
+ title:"导入数据",
|
|
|
|
+ content: "${ctx}/tag/importExcel" ,
|
|
|
|
+ btn: ['下载模板','确定', '关闭'],
|
|
|
|
+ btn1: function(index, layero){
|
|
|
|
+ jp.downloadFile('${ctx}/filing/earlyStage/import/template');
|
|
|
|
+ },
|
|
|
|
+ btn2: function(index, layero){
|
|
|
|
+ var iframeWin = layero.find('iframe')[0]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
|
|
|
|
+ iframeWin.contentWindow.importExcel('${ctx}/filing/earlyStage/import', function (data) {
|
|
|
|
+ if(data.success){
|
|
|
|
+ jp.success(data.msg);
|
|
|
|
+ refresh();
|
|
|
|
+ }else{
|
|
|
|
+ jp.error(data.msg);
|
|
|
|
+ }
|
|
|
|
+ jp.close(index);
|
|
|
|
+ });//调用保存事件
|
|
|
|
+ return false;
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ btn3: function(index){
|
|
|
|
+ jp.close(index);
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ $("#export").click(function(){//导出Excel文件
|
|
|
|
+ jp.downloadFile('${ctx}/filing/earlyStage/export');
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ $("#exportFiles").bind("click", function () {
|
|
|
|
+ $("#searchForm").attr("action","${ctx}/filing/filingImages/exportEarlyStage?ids="+ getIdSelections());
|
|
|
|
+ $("#searchForm").submit();
|
|
|
|
+ return true;
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ /*$("#exportFiles").click(function(){//导出Excel文件
|
|
|
|
+ jp.downloadFile('${ctx}/filing/earlyStage/exportFiles?ids=' + getIdSelections());
|
|
|
|
+ });*/
|
|
|
|
+
|
|
|
|
+ $("#search").click("click", function() {// 绑定查询按扭
|
|
|
|
+ $('#basicTable').bootstrapTable('refresh');
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ $("#open").click(function () {
|
|
|
|
+ $("#basicTable").bootstrapTable('expandAllRows');
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ $("#close").click(function (row) {
|
|
|
|
+ $('#basicTable').bootstrapTable('refresh');
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ $("#reset").click("click", function() {// 绑定查询按扭
|
|
|
|
+ $("#searchForm input").val("");
|
|
|
|
+ $("#searchForm select").val("");
|
|
|
|
+ $("#searchForm .select-item").html("");
|
|
|
|
+ $('#basicTable').bootstrapTable('refresh');
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ $('#beginInDate').datetimepicker({
|
|
|
|
+ format: "YYYY-MM-DD HH:mm:ss"
|
|
|
|
+ });
|
|
|
|
+ $('#endInDate').datetimepicker({
|
|
|
|
+ format: "YYYY-MM-DD HH:mm:ss"
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ function getIdSelections() {
|
|
|
|
+ return $.map($("#basicTable").bootstrapTable('getSelections'), function (row) {
|
|
|
|
+ return row.id
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function deleteAll(){
|
|
|
|
+
|
|
|
|
+ jp.confirm('确认要删除该核准阶段记录吗?', function(){
|
|
|
|
+ jp.loading();
|
|
|
|
+ jp.get("${ctx}/filing/earlyStage/deleteAll?ids=" + getIdSelections(), function(data){
|
|
|
|
+ if(data.success){
|
|
|
|
+ $('#basicTable').bootstrapTable('refresh');
|
|
|
|
+ jp.success(data.msg);
|
|
|
|
+ }else{
|
|
|
|
+ jp.error(data.msg);
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ //刷新列表
|
|
|
|
+ function refresh() {
|
|
|
|
+ $('#basicTable').bootstrapTable('refresh');
|
|
|
|
+ }
|
|
|
|
+ function add(){
|
|
|
|
+ jp.openSaveDialog('新增核准阶段', "${ctx}/filing/earlyStage/form",'1000px', '800px');
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function edit(id){//没有权限时,不显示确定按钮
|
|
|
|
+ if(id == undefined){
|
|
|
|
+ id = getIdSelections();
|
|
|
|
+ }
|
|
|
|
+ jp.openSaveDialog('编辑核准阶段', "${ctx}/filing/earlyStage/form?id=" + id, '800px', '500px');
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function editChild(id){//没有权限时,不显示确定按钮
|
|
|
|
+ if(id == undefined){
|
|
|
|
+ id = getIdSelections();
|
|
|
|
+ }
|
|
|
|
+ jp.openSaveDialog('编辑核准阶段', "${ctx}/filing/earlyStage/childForm?id=" + id, '800px', '500px');
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function view(id){//没有权限时,不显示确定按钮
|
|
|
|
+ if(id == undefined){
|
|
|
|
+ id = getIdSelections();
|
|
|
|
+ }
|
|
|
|
+ jp.openViewDialog('查看核准阶段', "${ctx}/filing/earlyStage/form?id=" + id, '800px', '500px');
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ function addRow(list, idx, tpl, row){
|
|
|
|
+ $(list).append(Mustache.render(tpl, {
|
|
|
|
+ idx: idx, delBtn: true, row: row
|
|
|
|
+ }));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+</script>
|
|
|
|
+
|
|
|
|
+
|