天津投入产出系统后端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

39 lines
1.2 KiB

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/PrintMaster.Master" Inherits="System.Web.Mvc.ViewPage<QMAPP.Common.Web.Models.PrintInfoModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<form id="form1" name="form1" action="">
<%=Model.PrintContent %>
</form>
<script language="javascript">
var LODOP; //声明为全局变量
//自动打印
function AutoPrint() {
CreatePage();
LODOP.PRINT();
};
//打印预览
function PrintPreview() {
CreatePage();
LODOP.PREVIEW();
}
//创建打印内容
function CreatePage() {
<%=Model.PrintOutput %>
};
$(function () {
try {
//打印
<%=Model.PrintAction.ToString() %>();
//打印成功回调
<%=Model.CallBackFunction ==null?"": Model.CallBackFunction.ToString()%>
} catch (e) {
//打印失败回调
<%=Model.FailCallBackFunction ==null?"": Model.FailCallBackFunction.ToString()%>
}
});
</script>
</asp:Content>