| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168 |
- <%@ page language="java" contentType="text/html;charset=GBK"
- pageEncoding="GBK"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html;charset=GBK">
- <title>打印页面列表</title>
- <link
- href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css"
- rel="stylesheet" type="text/css" />
- <script
- src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js"
- type="text/javascript"></script>
- <script
- src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js"
- type="text/javascript"></script>
- <script
- src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerGrid.js"
- type="text/javascript"></script>
- <link href="${pageContext.request.contextPath}/main.css"
- rel="stylesheet" type="text/css" />
- <script type="text/javascript" src="/shares/js/constant.js"></script>
- <script type="text/javascript" src="/shares/js/common.js"></script>
- <script
- src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/ligerui.all.js"
- type="text/javascript"></script>
- <script type="text/javascript">
- var grid = null;
- function loadPaperSettingList(params) {
- // var checkbox = false;
- // if ("${checkbox}" == 'false' || "${checkbox}" == '') {
- // checkbox = false;
- // } else {
- // checkbox = true;
- // }
- var columns = [
- // { display: '序号', name: 'sordernum', width: 100 },
- {
- display : '打印类型',
- name : 'p_print_type',
- width : 120,
- render : function(row) {
- if (row.p_print_type == "1") {
- return "条形码打印";
- } else {
- return "二维码打印";
- }
- }
- }, {
- display : '纸张宽度',
- name : 'p_paper_width',
- width : 120
- }, {
- display : '纸张高度',
- name : 'p_pager_height',
- width : 100
- }, {
- display : '打印开始X坐标',
- name : 'p_image_x',
- width : 100
- }, {
- display : '打印开始Y坐标',
- name : 'p_image_y',
- width : 100
- }, {
- display : '成像区域宽度',
- name : 'p_image_able_area_width',
- width : 100
- }, {
- display : '成像区域高度',
- name : 'p_image_able_area_height',
- width : 100
- }, {
- display : '条码图片宽度',
- name : 'p_code_image_width',
- width : 100
- }, {
- display : '条码图片高度',
- name : 'p_code_image_height',
- width : 100
- } ];
- // if ("${requestScope.lookup }" == "") {
- columns
- .push({
- display : '操作',
- isAllowHide : false,
- render : function(row) {
- var html = "";
- html += '<a href=\"#\" onclick=\"window.parent.f_addTab(\'editPaperSetting\', \'修改设置信息\', \'${pageContext.request.contextPath }/paperSettingAction.do?task=toEdit&p_id='
- + row.p_id
- + '&tabid='
- + getCurrentTabId()
- + '\');\">编辑</a> ';
- html += '<a href=\"#\" onclick=\"window.parent.f_addTab(\'viewPaperSetting\', \'查看设置信息\', \'${pageContext.request.contextPath }/paperSettingAction.do?task=toView&p_id='
- + row.p_id
- + '&tabid='
- + getCurrentTabId()
- + '\');\">查看</a> ';
- return html;
- }
- });
- // }
- grid = $("#maingrid4").ligerGrid(
- {
- columns : columns,
- pageSize : 20,
- url : 'paperSettingAction.do?task=getList&time='
- + new Date().getTime() + params,
- pageParmName : 'p', //页索引参数名,(提交给服务器)
- pagesizeParmName : 'pSize', //页记录数参数名,(提交给服务器)
- width : '99.9%',
- height : '99%',
- checkbox : false
- });
- $("#pageloading").hide();
- }
- $(function() {
- loadPaperSettingList();
- });
- function searchByKword() {
- var depot_num = document.getElementById("depot_num");//仓库编号
- var depot_name = document.getElementById("depot_name");//仓库编号
- var s = "";
- if (depot_num.value != "" && typeof (depot_num.value) != "undefined") {
- s += "&depot_num=" + encodeURI(encodeURI(depot_num.value));
- }
- if (depot_name.value != "" && typeof (depot_name.value) != "undefined") {
- s += "&depot_name=" + encodeURI(encodeURI(depot_name.value));
- }
- $(function() {
- loadPaperSettingList(s);
- });
- }
- function f_select() {
- var rows = grid.getCheckedRows();
- return rows;
- }
- </script>
- </head>
- <body>
- <%@ include file="/include/message.jsp"%>
- <div class="container">
- <!-- <div class="default_search" style="margin: 0;"> -->
- <!-- <ul class="list_search"> -->
- <!-- <li class="title">仓库编号:</li> -->
- <!-- <li class="text"><input type="text" name="depot_num" -->
- <!-- id="depot_num"></li> -->
- <!-- </ul> -->
- <!-- <ul class="list_search"> -->
- <!-- <li class="title">仓库名称:</li> -->
- <!-- <li class="text"><input type="text" name="depot_name" -->
- <!-- id="depot_name"></li> -->
- <!-- </ul> -->
- <!-- <ul> -->
- <!-- <li class="search-button"><input type="button" class='l-button' -->
- <!-- name="search" onclick="searchByKword()" value="查询" /></li> -->
- <!-- </ul> -->
- <!-- </div> -->
- <div style="overflow: hidden; clear: both;">
- <div id="maingrid4" style="margin: 0; padding: 0"></div>
- </div>
- </div>
- </body>
- </html>
|