Edit D:\rfid\apache-tomcat-8.5.32\webapps\libsystem\page\global\batchno.jsp
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; String type = "1"; String toolid = "1105"; if(request.getParameter("type") != null){ type = request.getParameter("type") ; } if(type.equals("0")){ toolid = "1105"; }else if(type.equals("1")){ toolid = "1207"; }else if(type.equals("2")){ toolid = "5105"; }else if(type.equals("4")){ toolid = "5204"; }else if(type.equals("3")){ toolid = "5305"; } %> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>??????</title> <%@ include file="../global/linkcss.jsp" %> </head> <body > <!-- ????? ???????????????? --> <div class="tool-div-para"> <div class="easyui-panel" id="ddddddd" data-options="fit:true" style="padding: 5px;"> <a href="javascript:void(0)" class="easyui-linkbutton" data-options="plain:true,iconCls:'e-icon fa fa-search'" onclick="searchRecord()">???</a> <!-- <a href="javascript:void(0)" class="easyui-linkbutton" data-options="plain:true,iconCls:'e-icon fa fa-plus'" onclick="insertRecord()">???</a> <a href="javascript:void(0)" class="easyui-linkbutton" data-options="plain:true,iconCls:'e-icon fa fa-edit '" onclick="updateRecord()">???</a> <a href="javascript:void(0)" class="easyui-linkbutton" data-options="plain:true,iconCls:'e-icon fa fa-trash'" onclick="deleteRecord()" >???</a> --> <%if(MyJspUtils.checkAuthority(session,""+toolid+"t1")){%> <a href="javascript:void(0)" class="easyui-linkbutton qx-t1" data-options="plain:true,iconCls:'e-icon fa fa-plus'" onclick="insertRecord()">???</a> <%}%> <%if(MyJspUtils.checkAuthority(session,""+toolid+"t2")){%> <a href="javascript:void(0)" class="easyui-linkbutton qx-t2" data-options="plain:true,iconCls:'e-icon fa fa-edit '" onclick="updateRecord()">???</a> <%}%> <%if(MyJspUtils.checkAuthority(session,""+toolid+"t3")){%> <a href="javascript:void(0)" class="easyui-linkbutton qx-t3" data-options="plain:true,iconCls:'e-icon fa fa-trash'" onclick="deleteRecord()" >???????</a> <%}%> <a href="javascript:void(0)" class="easyui-linkbutton" data-options="plain:true,iconCls:'e-icon fa fa-close'" onclick="colseParentDlg()">????????</a> <a href="javascript:void(0)" class="easyui-linkbutton" data-options="plain:true,iconCls:'e-icon fa fa-close'" onclick="colseBatchNoDlg()">???</a> </div> </div> <div class="m-top-3" style="height: 40px;"> <div class="easyui-panel" data-options="" style="padding: 5px;width: 100%;"> <%=globalLibName%> <select id="search_libcode" no-limit="" item-type="search" class="easyui-combobox" required="true" editable="false" style="width:220px;height: 26px;" data-options=""> </select> ????? <input class="easyui-textbox" id="search_code" item-type="search" data-options="prompt:'???????????'" style="width:220px;height: 26px;"> <input id="search_type" item-type="search" item-type="record" hidden="hidden"> </div> </div> <!--??? ?????? ??????--> <div class="m-top datagrid-div" style="height: 350px;width:100%;"> <table id="datagrid-single" class="easyui-datagrid" data-options="singleSelect:true,fit:true,nowrap:false,pagination:true,striped:true,fitColumns:true"> <thead> <tr> <!-- <th data-options="field:'ck',checkbox:true" width="10"></th> --> <th data-options="field:'libcode',formatter:onShowLibName" width="150"><%=globalLibName%>???</th> <th data-options="field:'code'" width="200">???</th> <th data-options="field:'discount'" width="100">?????</th> <th data-options="field:'bookseller',formatter:onShowBooksellerName" width="200">????????</th> <th data-options="field:'status',formatter:onShowBacthnoStatus" width="100">????</th> <th data-options="field:'createdate',formatter:fmtStringToDate" width="100">??????</th> </tr> </thead> </table> </div> <!--???????????indow???--> <div id="win" class="easyui-dialog" title="??????" style="width:500px;height:310px;padding:10px;top: 20px;left:20px;" data-options=" modal:true,toolbar:'#dlg-toolbar',closed:true,resizable:false,collapsible:false,minimizable:false,maximizable:false,iconCls:'fa fa-gear'"> <!--???????????--> <%@ include file="../parameter/com_savebar.jsp"%> <div class="table-content"> <input id="type" item-type="record" hidden="hidden" keep-value="true"> <table class="table-box table-input"> <tr> <td style="width:30%;"><%=globalLibName%></td> <td style="width:70%;"><select id="libcode" item-type="record" class="easyui-combobox" required="true" style="width:100%;height: 28px;" editable="false" data-options=""> </select></td> </tr> <tr> <td>???</td> <td><input id="code" item-type="record" update-readonly="true" class="easyui-textbox" required="true" style="width:100%;height: 28px;"></td> </tr> <tr> <td>?????</td> <td><input id="discount" item-type="record" class="easyui-numberbox" precision="3" style="width:100%;height: 28px;"></td> </tr> <tr> <td>????????</td> <td> <select id="bookseller" item-type="record" class="easyui-combobox" style="width:100%;height: 24px;" editable="false" data-options=""> </select> </td> </tr> <tr> <td>????</td> <td> <select id="status" item-type="record" class="easyui-combobox" style="width:100%;height: 24px;" editable="false" data-options="panelHeight:'auto'"> <option value="0">?????</option> <option value="1">?????</option> </select> </td> </tr> <!-- <tr style="display: none;"> <td>???</td> <td><input id="type" item-type="record" class="easyui-textbox" required="true" style="width:100%;height: 28px;" data-options="prompt:'????????'"> </td> </tr> --> <tr> <td>???</td> <td><input id="note" item-type="record" class="easyui-textbox" style="width:100%;height: 28px;" data-options="prompt:'???????????'"></td> </tr> </table> </div> </div> <input id="controller_id" hidden="hidden" value="batchno"></input> <%@ include file="../global/easyui-dialog.jsp"%> </body> <%@ include file="../global/linkjs.jsp"%> <script type="text/javascript" src="${pageContext.request.contextPath}/page/global/grid/js/grid.js?version=<%=MyJspUtils.getVersion() %>"></script> <script type="text/javascript" src="${pageContext.request.contextPath}/page/parameter/js/parameter_public.js?version=<%=MyJspUtils.getVersion() %>"></script> <script type="text/javascript"> var _zType; var autoSelect = true; $(function () { var type = '<%=type%>'; _zType = type; $('#global-message-dlg').window('resize',{top: 40,left:40}); _myPage.prototype.onLoadAllLibDataNoLimit({"code":"showlibcode","key": "libcode"}); $('.easyui-panel').panel('resize'); _myPage.prototype.initDataOne( {"code":"search_libcode","key": "libcode","condition": "code","value": vLibcode}); onLoadGridData(type); $('#libcode').combobox({ onChange : function (newValue, oldValue){ if(!autoSelect){ getAutoBatchno(newValue); } },onClick: function (newValue, oldValue){ autoSelect = false; } }); }); _myPage.prototype.initDataOneSuccess = function(data,params){ setTextLibFun(); } function setTextLibFun(){ // ????????? //setValue("search_libcode", vLibcode); enterEvent("search_code",searchRecord); } function closeWin(data) { if(data){ /* setValue("search_libcode",getValue("libcode")); */ setDatagridParam(); } $('#win').window('close'); } function loadGridData(data) { if(data && operation == "insert.do"){ var row = data.rows[0]; datagrid_selector.datagrid('insertRow',{ index: 0, // ?????0???? row: row }); datagrid_selector.datagrid('selectRow',0); var getRows = datagrid_selector.datagrid("getRows"); if(getRows > 10){ datagrid_selector.datagrid('deleteRow',10); } }else{ if(datagrid_selector.length==0){ return; } var options = datagrid_selector.datagrid("options"); var list_url = 'list.do'; var vSelectIndex = 0; var row = datagrid_selector.datagrid('getSelected'); if(row){ vSelectIndex = datagrid_selector.datagrid('getRowIndex',row); } datagrid_param_limit.orderBy = "createdate desc"; datagrid_selector.datagrid({ url : controller_url + list_url, queryParams:datagrid_param_limit, onLoadSuccess: function(data) { datagrid_selector.datagrid('selectRow',vSelectIndex); loadGridDataSuccess(data); }, method:"post" }); } } function setDatagridParam() { var selector = $('[item-type="search"]'); datagrid_param_limit = {}; var value; var countIndex = 0; selector.each(function(index, element) { value = getValue(element.id); if(getValue(element.id)){ datagrid_param_limit['limit['+ countIndex +'].condition'] = element.id.replace('search_', ''); datagrid_param_limit['limit['+ countIndex +'].typeHandler'] = "0"; datagrid_param_limit['limit['+ countIndex +'].value'] = getValue(element.id); countIndex++; } }); var libcode = getValue("search_libcode"); if(!libcode){ datagrid_param_limit['limit['+ countIndex +'].condition'] = "libcode"; datagrid_param_limit['limit['+ countIndex +'].typeHandler'] = "3"; datagrid_param_limit['limit['+ countIndex +'].value'] = getLibLimitForNoLimitLib(); countIndex++; } datagrid_param_limit['limit['+ countIndex +'].condition'] = "status"; datagrid_param_limit['limit['+ countIndex +'].typeHandler'] = "0"; datagrid_param_limit['limit['+ countIndex +'].value'] = "0"; countIndex++; } function openWin(data) { cleanJsonData('record'); $('#win').window('open'); if(!data){ setValue("libcode",vLibcode); getAutoBatchno(vLibcode); } } function getAutoBatchno(libcode){ var url = base_path + 'lib/common/getAutoBatchno.do'; var record = {}; record.libcode = libcode; record.type = _zType; $.post(url, record, function(data) { if (data.status == "0") { var batchno = data.rows[0]; setValue("code",batchno); } }, 'json'); } function onLoadGridData(type){ setValue("search_libcode", ""); $("#type").val(type); $("#search_type").val(type); setValue("search_code",""); searchRecord(); } function onShowBacthnoStatus(value,row){ if("0" == value){ return "?????"; } if("1" == value){ return "?????"; } return value; } function colseParentDlg() { var getRow=$("#datagrid-single").datagrid('getSelected'); if (!getRow) { openMessageDlg('??????????'); return getRow; } var type = $("#type").val(); parent.colseIframeDlg("bibsetpara_batchno_dlg",type,getRow.code); } function colseBatchNoDlg(){ parent.colseIframeDlg("bibsetpara_batchno_dlg",null,null); } </script> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de