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.

118 lines
3.8 KiB
Plaintext

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DD_DoneOrderListNew.aspx.cs" Inherits="TradeManage.DingDan.DD_DoneOrderListNew" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>订单打印</title>
<link rel="stylesheet" type="text/css" href="../themes/default/easyui.css" />
<link rel="stylesheet" type="text/css" href="../themes/icon.css" />
<link rel="stylesheet" type="text/css" href="../themes/New.css" />
<link rel="stylesheet" type="text/css" href="../themes/DataGrid.css" />
<script src="../Scripts/MicrosoftAjax.js" type="text/javascript"></script>
<script src="../Scripts/jquery.min.js" type="text/javascript"></script>
<script src="../Scripts/jquery.easyui.min.js" type="text/javascript"></script>
<script src="../Scripts/DataGrid.js" type="text/javascript"></script>
<script src="../Scripts/DataPager.js" type="text/javascript"></script>
<script src="../Scripts/jquery.bgiframe.min.js" type="text/javascript"></script>
<script src="../Scripts/Global.js" type="text/javascript"></script>
<script src="../Scripts/jquery.url.js" type="text/javascript"></script>
<script src="../Scripts/WindowLoad.js" type="text/javascript"></script>
<script src="../Scripts/DatePicker/WdatePicker.js" type="text/javascript"></script>
<script>
var url = "";
$(document).ready(function () {
url = $.url.param("url");
ajaxInit(null);
// $("#if1").attr("src", "../ServerCookies/11.pdf");
if (url.indexOf("http") >= 0)
{
$("#if1").attr("src", url);
}
else if (url.indexOf("ServerCookies") >= 0)
$("#if1").attr("src", "../" + url);
else
$("#if1").attr("src", "../ServerCookies/" + url);
});
function ExportData() {
// // $("#if1").contentWindow.print();
// alert(document.getElementById('if1'));
// alert(document.getElementById('if1').contentWindow);
// document.getElementById('if1').contentWindow.print();
// return;
var dd = new Date();
var fname = "(" + dd.getFullYear() + "." + (dd.getMonth() + 1) + "." + dd.getDate() + ").pdf";
var params = { FilePath: "ServerCookies/" + url, FileName: fname };
if (url.indexOf("http") >= 0) {
params = { FilePath: "../" + url, FileName: fname };
}
else if (url.indexOf("ServerCookies") >= 0)
params = { FilePath: url, FileName: fname };
window.location = "../GlobalAshx/DownFile.ashx?" + jQuery.param(params);
}
</script>
</head>
<body class="headbody">
<div class="title_ico">
订单打印
</div>
<table id="tb1" class="tableAll" style="width:100%;" >
<tr>
<td >
<font color="red">注支持直接打开pdf的游览器直接把鼠标移到下面pdf上面点打印图标打印<br />不支持的浏览器可以点下载pdf按钮下载下来打印
</font></td>
</tr>
<tr>
<td> <input id="btn_Print" class="btnClass btnClassSave" type="button" value="下载pdf面单" onclick="ExportData()"/>
</td>
</tr>
<tr>
<td valign="top">
<DIV>
<iframe id="if1" src="" width="900px" height="700px"></iframe>
</DIV>
</td>
</tr>
</table>
</body>
</html>