You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.6 KiB
Plaintext
51 lines
1.6 KiB
Plaintext
<%@ Page Language="C#" AutoEventWireup="true" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head runat="server">
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<title></title>
|
|
|
|
<script type="text/javascript" src="/Areas/Dispatch/Content/Dispatch/Scripts/jquery-3.3.1.min.js"></script>
|
|
</head>
|
|
<body>
|
|
<button id="btnReOpen">重新上传</button>
|
|
<form id="upForm" action="/MvcShipping/Ocr/UpOcrFile" method="post" enctype="multipart/form-data" style="position: absolute; top: -100px; left: -100px;">
|
|
<input type="hidden" name="BSNO" id="BSNO" />
|
|
<input type="file" name="file" id="fileUp" />
|
|
</form>
|
|
|
|
<label id="lbMessage" style="display: none;">正在处理,请稍后……</label>
|
|
|
|
<script>
|
|
var errMsg = '<%=ViewData["errMsg"]==null?"null":ViewData["errMsg"].ToString()%>';
|
|
|
|
$(function () {
|
|
if (errMsg != "null") {
|
|
alert(errMsg);
|
|
}
|
|
|
|
$("#fileUp").click();
|
|
|
|
$("#fileUp").on('change', function () {
|
|
$("#lbMessage").show();
|
|
|
|
var eleHtml = $(window.parent.document).find("input[name='BSNO']:first");
|
|
if (eleHtml == undefined || eleHtml == null) {
|
|
alert("未能获取BSNO");
|
|
return;
|
|
}
|
|
|
|
$("#BSNO").val(eleHtml.val());
|
|
$("#upForm").submit();
|
|
})
|
|
|
|
$("#btnReOpen").click(function () {
|
|
location.reload();
|
|
});
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|