报表程序之---jsp页面
来源:互联网 发布:mac文件夹加密怎么解除 编辑:程序博客网 时间:2024/06/11 11:26
idleCompareMonth.jsp
<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=utf-8" %><%@ include file="/common/taglibs.jsp"%> <div class="easyui-layout" data-options="fit:true" style="overflow:auto;"> <script>$('#idleCompareMonthOrgTree').tree({onClick: function(node){loadIdleCompareMonthData(node.id);}});function loadIdleCompareMonthData(nodeId){var url='<c:url value="/report/idleCompareMonth/showdata.html"/>';url+="?orgid="+nodeId;$.messager.progress({title:'请等待',msg:'正在加载数据...'});$.post(url,{},function(data){$.messager.progress('close');if(data.icmList.length==0){$.messager.alert('Warning','您所选公司没有数据......');}else{ $('#idleCompareMonth').datagrid('loadData',data.icmList);}});$('#idleCompareMonth').datagrid({striped: true,fitColumns: true});}function changeColor(index,row){var thePattern=/\**\*/;var thename=row.itemname;if(thename.match(thePattern)){return 'background-color:#d9d9c2;';}}function exportExcel(){var url='<c:url value="/report/idleCompareMonth/export.html"/>';url+="?orgid="+$('#idleCompareMonthOrgTree').tree('getSelected').id; window.open(url);}</script><!-- Menu --><div data-options="region:'west',title:'组织树',split:true,lines:true, url:'<c:url value='/common/orgTreeAsync.html?defaultExpandLv=2&orgMaxType=3'/>'"style="width:150px;height:100%;overflow:auto;" class="easyui-tree" id="idleCompareMonthOrgTree${dataReportId}"> </div><!-- center region --><div data-options="region:'center',title:'',iconCls:'icon-ok'" id="centerRegion" style="overflow:auto;"> <style type="text/css"><!--.style1 {color: #0000FF;font-weight: bold;}.style2 {color: #0000FF}--></style><script type="text/javascript"> function cellStyler(value,row,index){ if (index %11==0 && index!=0){ return 'border-top:2px solid #000000;'; } } </script> <table cellspacing="0" cellpadding="0" height="100%" width="100%"> <tr height="12px"> <th align="center" ><strong>XXXX 有 限 公 司</strong></th> </tr> <tr height="12px"> <th align="center"><strong>折旧/闲置/停工比较表</strong></th> </tr > <tr height="12px" style="border-top:5px solid #aaa;"> <th align="center"><strong>2013年月份别预算</strong></th> </tr> <tr height="12px"> <th align="left" ><strong>单位:人民币元</strong></th> </tr> <tr> <td> <table cellspacing="0" cellpadding="0" class="easyui-datagrid" title="折旧/闲置/停工月份表" id="idleCompareMonth" data-options="rownumbers: true, showFooter: false, toolbar: '#idleCompareMonth_report_excel_export', rowStyler:changeColor"> <thead> <tr> <th width="90" data-options="field:'title',styler:cellStyler">月份</th> <th width="80" data-options="field:'itemname',styler:cellStyler">项目</th> <th width="55" formatter=Formatter.money data-options="field:'month_money_1',styler:cellStyler">1月</th> <th width="55" formatter=Formatter.money data-options="field:'month_money_2',styler:cellStyler">2月</th> <th width="55" formatter=Formatter.money data-options="field:'month_money_3',styler:cellStyler">3月</th> <th width="55" formatter=Formatter.money data-options="field:'month_money_4',styler:cellStyler">4月</th> <th width="55" formatter=Formatter.money data-options="field:'month_money_5',styler:cellStyler">5月</th> <th width="55" formatter=Formatter.money data-options="field:'month_money_6',styler:cellStyler">6月</th> <th width="55" formatter=Formatter.money data-options="field:'month_money_7',styler:cellStyler">7月</th> <th width="55" formatter=Formatter.money data-options="field:'month_money_8',styler:cellStyler">8月</th> <th width="55" formatter=Formatter.money data-options="field:'month_money_9',styler:cellStyler">9月</th> <th width="55" formatter=Formatter.money data-options="field:'month_money_10',styler:cellStyler">10月</th> <th width="55" formatter=Formatter.money data-options="field:'month_money_11',styler:cellStyler">11月</th> <th width="55" formatter=Formatter.money data-options="field:'month_money_12',styler:cellStyler">12月</th> <th width="55" formatter=Formatter.money data-options="field:'total',styler:cellStyler">合计</th> </tr> </thead> </div> </div> <div id="idleCompareMonth_report_excel_export" style="padding:5px;height:auto"><a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" onclick="exportExcel()">导出excel</a> </div>
- 报表程序之---jsp页面
- jsp报表页面生成报表详解
- 报表(jsp页面)行列转换
- Jsp页面分页程序
- 使用JSP页面生成PDF报表
- 使用JSP页面生成PDF报表
- JSP验证之JSP页面
- SSH之jsp页面
- jsp页面导入程序集
- jsp页面加载applet程序
- javaWeb之jsp+servlet生成报表
- jsp页面中设置 自动下载成Excel报表
- Jsp页面调用Jasperreport报表模板生成pdf、excel、html
- 利用poi从jsp页面导出报表到excel
- 利用poi从jsp页面导出报表到excel
- 利用poi从jsp页面导出报表到excel
- 利用poi从jsp页面导出报表到excel
- 利用poi从jsp页面导出报表到excel
- ASP检测手机客户端并跳转到相应页面
- Comparable和 Comparator的区别
- Linux 防火墙 设置
- 解决Oracle数据库里的中文数据显示乱码的问题,修改数据库的字符集。
- 跨域文件:crossdomain.xml
- 报表程序之---jsp页面
- Swing JTree
- Extjs 循环遍历图片,动态得到图片的信息
- (一)Astar算法
- Android 客制化自己的开关机动画 开关机铃声
- glTexEnvi
- Perl 调试之使用感受
- 使用三层实现省市县三级联动(利用ajax实现无刷新效果)
- 264分析两大利器:264VISA和Elecard StreamEye Tools