<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="<%=basePath %>resource/css/base.css" rel="stylesheet">
    <link href="<%=basePath %>resource/css/basic_info.css" rel="stylesheet">
    <link rel="stylesheet" href="<%=basePath %>resource/easyui/uimaker/easyui.css">
    <link rel="stylesheet" type="text/css" href="<%=basePath %>resource/easyui/uimaker/icon.css">
    <link rel="stylesheet" href="<%=basePath %>resource/css/form.css">
    <link href="<%=basePath %>resource/css/form.css" rel="stylesheet">
    <script type="text/javascript" src="<%=basePath %>resource/easyui/jquery.min.js"></script>
    <script type="text/javascript" src="<%=basePath %>resource/js/jquery.json.js"></script>
    <script type="text/javascript" src="<%=basePath %>resource/validate/jquery.validate.js"></script>
    <script type="text/javascript" src="<%=basePath %>resource/validate/validate-extends.js"></script>
    <!-- validate 验证中英文 -->
    <script type="text/javascript" src="<%=basePath %>resource/validate/jquery.validate-${pageContext.response.locale}.js"></script>
</head>
<body>
<div class="container">

    <div class="content">
        <form class="from-control" id="form">
			 <table class="kv-table">
                <tbody>
				 <tr>
                    <td>
                    	<input type="text" id="no" name="no" maxlength="12">
                    </td>
                </tr>
                <tr>
                	<td>
	                  <button type="button" onclick="cdea()" class="easyui-linkbutton l-btn l-btn-small l-btn-selected " data-options="selected:true">
	                      <span class="l-btn-left"><span class="l-btn-text"><spring:message code="opt.search"/></span></span>
	                  </button>
                  </td>
                </tr>
                  </tbody>
                </table>
        </form>
    </div>
    </div>
<script type="text/javascript" src="<%=basePath %>resource/layer-v3.0.3/layer/layer.js"></script>
<script src="<%=basePath %>resource/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="<%=basePath %>resource/js/tools.js"></script>
<script src="<%=basePath %>resource/js/LodopFuncs.js"></script>
<script src="<%=basePath %>resource/avalon/dist/avalon.js"></script>
 <script>
$("#no").keyup(function(){
    var leng = $("#no").val().length;
    if (leng == 3)
    {
        $("#no").val($("#no").val()+"-")
    }
})

function cdea(){
	var ids = $("#no").val()
	$.post("<%=basePath %>bill/viewcheck",{ids:ids},function (data) {
	        if (data.status == 200) {
	     		 window.location.href = "<%=basePath %>bill/viewlist?ids="+ids ;
	        } else {
	            layer.open({content: "<spring:message code="bill.information"/>"});
	        }
	})
}

</script>
</body>
</html>