ChengDa_English/SGGL/FineUIPro.Web/HJGL/MaterialManage/WelderRecordPrint.aspx

266 lines
18 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WelderRecordPrint.aspx.cs"
Inherits="FineUIPro.Web.RLSB.WelderRecordPrint" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title><asp:Literal runat="server" Text="<%$ Resources:Lan,OneWeekReport_Print%>"/>领料单</title>
<link href="../../Styles/Style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" language="javascript">
function pagesetup_null() {
try {
var RegWsh = new ActiveXObject("WScript.Shell")
hkey_key = "header"
RegWsh.RegWrite(hkey_root + hkey_path + hkey_key, "")
hkey_key = "footer"
RegWsh.RegWrite(hkey_root + hkey_path + hkey_key, "")
} catch (e) { }
}
//设置网页打印的页眉页脚为默认值
function pagesetup_default() {
// try {
// var RegWsh = new ActiveXObject("WScript.Shell")
// hkey_key = "header"
// RegWsh.RegWrite(hkey_root + hkey_path + hkey_key, "&w&b页码&p/&P")
// hkey_key = "footer"
// RegWsh.RegWrite(hkey_root + hkey_path + hkey_key, "&u&b&d")
// } catch (e) { }
}
function printpr() //预览函数
{
pagesetup_null(); //预览之前去掉页眉,页脚
document.getElementById("div1").style.display = "none";
var a = window.open('about:blank', 'Print');
a.document.write('<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>' + document.getElementById('Table1').innerHTML);
//ar WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
a.document.all.WebBrowser1.ExecWB(7, 1);
a.close();
//document.body.insertAdjacentHTML('beforeEnd', WebBrowser); //在body标签内加入htmlWebBrowser activeX控件
//WebBrowser1.ExecWB(7, 1); //打印预览
//WebBrowser1.outerHTML = ""; //从代码中清除插入的html代码
pagesetup_default(); //预览结束后页眉页脚恢复默认值
document.getElementById("div1").style.display = "block";
}
function print() //打印函数
{
pagesetup_null(); //打印之前去掉页眉,页脚
document.getElementById("div1").style.display = "none";
var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>'+ document.getElementById('Table1').innerHTML);
document.body.insertAdjacentHTML('beforeEnd', WebBrowser); //在body标签内加入htmlWebBrowser activeX控件
WebBrowser1.ExecWB(6, 6); //打印
WebBrowser1.outerHTML = ""; //从代码中清除插入的html代码
window.print(); //调用之后,弹出窗口会自动点击打印按扭。
setTimeout(function () {
window.close();
}, 8000);
}
</script>
</head>
<body>
<form id="form1" runat="server">
<object id="vvvd" width="1" height="1" classid="CLSID:DF69ADAE-D8B4-494E-ACAA-E5D09142A1DD">
</object>
<table id="Table2" runat="server" width="100%" cellpadding="0" cellspacing="0" align="center"
style="border: 1px soild #000000">
<tr>
<td style="width: 100%;">
<div id="div1">
<table id="tabbtn" runat="server" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td align="left" valign="middle" style="width: 50%; font-size: 11pt; font-weight: bold">
<%--<asp:Image ImageUrl="~/Images/lv-1.gif" ImageAlign="AbsMiddle" ID="image15" runat="server" />
&nbsp;打印领料单--%>
</td>
<td align="right" valign="middle" style="width: 50%; height: 30px; border-width: 0px;"
runat="server" visible="false">
<img src="../Images/PageSetup.gif" runat="server" id="Img2" onclick="document.all.WebBrowser.ExecWB(8,1)"
alt="<%$ Resources:Lan,PageSetupButtonText%>" style="cursor: pointer" />
<img src="../Images/PrintSetup.gif" runat="server" id="btnPrint" onclick="document.all.WebBrowser.ExecWB(6,1)"
alt="<%$ Resources:Lan,PrintSetupButtonText%>" style="cursor: pointer" />
<img src="../Images/PrintPreview.gif" runat="server" id="Img1" onclick="printpr()"
alt="<%$ Resources:Lan,PrintPreviewButtonText%>" style="cursor: pointer" />
<img src="../Images/Print.gif" runat="server" id="Img3" onclick="print()" alt="<%$ Resources:Lan,OneWeekReport_Print%>"
style="cursor: pointer" />
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td style="width: 50%">
<table id="Table1" runat="server" width="100%" border="0" cellpadding="0" cellspacing="0"
bordercolor="#000000">
<tr>
<td colspan="2">
<table id="Table3" runat="server" width="100%" border="0" cellpadding="0" cellspacing="0"
bordercolor="#000000">
<tr>
<td align="center">
<asp:Label runat="server" Text="<%$ Resources:Lan,MaterialRequisitionLabel%>" Font-Bold="true" Font-Size="16pt"></asp:Label>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2">
<table id="Table4" runat="server" width="100%" border="0" cellpadding="0" cellspacing="0"
bordercolor="#000000">
<tr>
<td colspan="5" align="left">
<asp:Label ID="Label15" runat="server" Text="<%$ Resources:Lan,UnitLabel_3%>"></asp:Label>
<asp:Label ID="txtUnitName" runat="server"></asp:Label>
</td>
<td colspan="3">
</td>
<td colspan="2" align="right" valign="bottom">
<asp:Label ID="txtElectrodeRecoveryCode" runat="server"></asp:Label>
</td>
</tr>
<tr style="height: 30px">
<td align="center" style="border: 1px solid #000000; border-bottom: none; border-right: none;">
<asp:Label ID="Label4" runat="server" Text="<%$ Resources:Lan,UnitWorkAreaQuality_Installation%>"></asp:Label>
</td>
<td colspan="2" align="center" style="border: 1px solid #000000; border-bottom: none;
border-right: none;">
<asp:Label ID="txtInstallation" runat="server"></asp:Label>
</td>
<td align="center" style="border: 1px solid #000000; border-bottom: none; border-right: none;">
<asp:Label ID="Label17" runat="server" Text="<%$ Resources:Lan,UnitCodeProfessionLabel%>"></asp:Label>
</td>
<td colspan="2" align="center" style="border: 1px solid #000000; border-bottom: none;
border-right: none;">
<asp:Label ID="txtCnProfession" runat="server"></asp:Label>
</td>
<td align="center" colspan="4" style="border: 1px solid #000000; border-bottom: none;">
<asp:Label ID="Label18" runat="server" Text="<%$ Resources:Lan,WelderPhotoLabel%>"></asp:Label>
</td>
</tr>
<tr>
<td colspan="3" align="center" style="border: 1px solid #000000; border-bottom: none;
border-right: none;">
<asp:Label ID="Label6" runat="server" Text="<%$ Resources:Lan,EquipmentLabel%>"></asp:Label>
</td>
<td colspan="3" align="center" style="border: 1px solid #000000; border-bottom: none;
border-right: none;">
<asp:Label ID="txtEquipment" runat="server"></asp:Label>
</td>
<td align="center" colspan="4" rowspan="5" style="border: 1px solid #000000;">
<img alt="" runat="server" id="imgPhoto" width="130" height="150" />
</td>
</tr>
<tr>
<td align="center" style="border: 1px solid #000000; border-bottom: none; border-right: none;">
<asp:Label ID="Label2" runat="server" Text="<%$ Resources:Lan,SteelTypeLabel_2%>"></asp:Label>
</td>
<td align="center" style="border: 1px solid #000000; border-bottom: none; border-right: none;">
<asp:Label ID="txtSteelType" runat="server"></asp:Label>
</td>
<td align="center" style="border: 1px solid #000000; border-bottom: none; border-right: none;">
<asp:Label ID="Label1" runat="server" Text="<%$ Resources:Lan,SteelFormatLabel_2%>"></asp:Label>
</td>
<td align="center" style="border: 1px solid #000000; border-bottom: none; border-right: none;">
<asp:Label ID="Label19" runat="server"></asp:Label>
</td>
<td align="center" style="border: 1px solid #000000; border-bottom: none; border-right: none;">
<asp:Label ID="Label20" runat="server" Text="<%$ Resources:Lan,JointComprehensive_WeldingMethod%>"></asp:Label>
</td>
<td align="center" style="border: 1px solid #000000; border-bottom: none; border-right: none;">
<asp:Label ID="txtWeldMethod" runat="server"></asp:Label>
</td>
</tr>
<tr>
<td align="center" style="border: 1px solid #000000; border-bottom: none; border-right: none;">
<asp:Label ID="Label14" runat="server" Text="<%$ Resources:Lan,ConsumablesBrandLabel%>"></asp:Label>
</td>
<td align="center" style="border: 1px solid #000000; border-bottom: none; border-right: none;">
<asp:Label ID="txtWME_ID" runat="server"></asp:Label>
</td>
<td align="center" style="border: 1px solid #000000; border-bottom: none; border-right: none;">
<asp:Label ID="Label22" runat="server" Text="<%$ Resources:Lan,OneWeekReport_WelderName%>"></asp:Label>
</td>
<td align="center" style="border: 1px solid #000000; border-bottom: none; border-right: none;">
<asp:Label ID="txtName" runat="server"></asp:Label>
</td>
<td align="center" style="border: 1px solid #000000; border-bottom: none; border-right: none;">
<asp:Label ID="Label24" runat="server" Text="<%$ Resources:Lan,WelderCodeEditLabel%>"></asp:Label>
</td>
<td align="center" style="border: 1px solid #000000; border-bottom: none; border-right: none;">
<asp:Label ID="txtCode" runat="server"></asp:Label>
</td>
</tr>
<tr>
<td align="center" style="border: 1px solid #000000; border-bottom: none; border-right: none;">
<asp:Label ID="Label3" runat="server" Text="<%$ Resources:Lan,ConsumablesFormatLabel%>"></asp:Label>
</td>
<td align="center" style="border: 1px solid #000000; border-bottom: none; border-right: none;">
<asp:Label ID="txtSteelFormat" runat="server"></asp:Label>
</td>
<td align="center" style="border: 1px solid #000000; border-bottom: none; border-right: none;">
<asp:Label ID="Label21" runat="server" Text="<%$ Resources:Lan,QuantityLabel_3%>"></asp:Label>
</td>
<td colspan="3" align="center" style="border: 1px solid #000000; border-bottom: none;
border-right: none;">
<asp:Label ID="txtRecipientsCount" runat="server"></asp:Label>
</td>
</tr>
<tr>
<td align="center" style="border: 1px solid #000000; border-right: none;">
<asp:Label ID="Label5" runat="server" Text="<%$ Resources:Lan,ApprovalManLabel%>"></asp:Label>
</td>
<td align="center" style="border: 1px solid #000000; border-right: none;">
<asp:Label ID="txtAuditMan" runat="server"></asp:Label>
</td>
<td align="center" style="border: 1px solid #000000; border-right: none;">
<asp:Label ID="Label23" runat="server" Text="<%$ Resources:Lan,UsageDateLabel%>"></asp:Label>
</td>
<td colspan="3" align="center" style="border: 1px solid #000000; border-right: none;">
<asp:Label ID="txtDate" runat="server"></asp:Label>
</td>
</tr>
<tr>
<td style="width: 14%;">
<%--<asp:ImageButton ID="imgBtnReLoad" runat="server" Width="0px" OnClick="imgBtnReLoad_Click" />
<asp:ScriptManager ID="ScriptManager2" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:Timer ID="Timer1" runat="server" OnTick="Timer1_Tick">
</asp:Timer>
</ContentTemplate>
</asp:UpdatePanel>--%>
</td>
<td style="width: 22%;">
</td>
<td style="width: 14%;">
</td>
<td style="width: 14%;">
</td>
<td style="width: 14%;">
</td>
<td style="width: 14%;">
</td>
<td style="width: 2%;">
</td>
<td style="width: 2%;">
</td>
<td style="width: 2%;">
</td>
<td style="width: 2%;">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<object id="WebBrowser" width="0" height="0" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2">
</object>
</form>
</body>
</html>