YZ_BSF/HJGL/FineUIPro.Web/common/WelderManage/WelderPrint.aspx

460 lines
31 KiB
Plaintext
Raw Normal View History

2024-05-13 08:48:51 +08:00
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WelderPrint.aspx.cs" Inherits="FineUIPro.Web.common.WelderManage.WelderPrint"
EnableViewState="true" %>
<!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 id="Head1" runat="server">
<title>焊工技能考核证书打印</title>
<style type="text/css">
.userphoto .f-field-label
{
margin-top: 0;
}
.userphoto img
{
width: 150px;
height: 180px;
}
.uploadbutton .f-btn
{
width: 100%;
}
.style2
{
height: 17px;
}
.style3
{
height: 28px;
}
.style4
{
height: 32px;
}
</style>
<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('Table5').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.body.insertAdjacentHTML('beforeEnd', WebBrowser); //在body标签内加入htmlWebBrowser activeX控件
WebBrowser1.ExecWB(6, 6); //打印
WebBrowser1.outerHTML = ""; //从代码中清除插入的html代码
pagesetup_default(); //打印结束后页眉页脚恢复默认值
document.getElementById("div1").style.display = "block";
}
</script>
</head>
<body>
<form id="form1" runat="server">
<table id="Table1" runat="server" width="550px" cellpadding="0" cellspacing="0" align="center"
border="0">
<tr>
<td style="width: 100%; background: url('../../Images/bg-1.gif')">
<div id="div1">
<table id="tabbtn" runat="server" width="100%" style="background: url('../../Images/bg-1.gif')"
cellpadding="0" cellspacing="0">
<tr>
<td align="right" valign="middle" style="width: 100%; height: 30px; border-width: 0px;">
<img src="../../Images/PageSetup.gif" runat="server" id="Img2" onclick="document.all.WebBrowser.ExecWB(8,1)"
alt="<%$ Resources:Lan,PageSetup %>" style="cursor: pointer" />
<img src="../../Images/PrintSetup.gif" runat="server" id="btnPrint" onclick="document.all.WebBrowser.ExecWB(6,1)"
alt="<%$ Resources:Lan,PrintSetup %>" style="cursor: pointer" />
<img src="../../Images/PrintPreview.gif" runat="server" id="Img1" onclick="printpr()"
alt="<%$ Resources:Lan,PrintPreview %>" style="cursor: pointer" />
<img src="../../Images/Print.gif" runat="server" id="Img3" onclick="print()" alt="<%$ Resources:Lan,Print %>"
style="cursor: pointer" />
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td>
<table id="Table5" runat="server" width="100%" border="0" cellpadding="0" cellspacing="0"
bordercolor="#000000">
<tr>
<td>
<table id="Table2" runat="server" width="100%" border="0" cellpadding="0" cellspacing="0"
bordercolor="#000000">
<tr style="font-size: 13pt; height:60px" >
<td style="border: 1px solid #000000; border-right-style: none;
font-weight: bold; color: #0000FF; width:60px; height:60px" align="center">
<asp:Image ID="imgQRcode" runat="server" Width="60px" Height="60px" />
</td>
<td align="center" colspan="4" style="border: 1px solid #000000;
font-weight: bold; color: #0000FF; height: 60px;">
扬子石化-巴斯夫有限责任公司<br />BASF-YBC Company Limited
</td>
<td rowspan="4" style=" border: 1px solid #000000; border-left: none; border-bottom: none; "
width="150px">
<asp:Image ID="Image1" CssClass="userphoto"
runat="server" Width="150px" />
</td>
</tr>
<tr style="font-size: 13pt; height: 45px;">
<td align="center" colspan="5" style="border-left: 1px solid #000000; border-right: 1px solid #000000;
font-size: 12pt; border-top-style: none; border-top-color: inherit; border-top-width: medium;
border-bottom-style: none; border-bottom-color: inherit; border-bottom-width: medium;">
焊工技能考核证书<br />WELDER SKILL TEST CERTIFICATE
</td>
</tr>
<tr style="height: 35px; font-size: 10pt">
<td colspan="2" style="border: 1px solid #000000; border-right: none;" align="left" width="40%" class="style4">
焊工姓名 Welder Name
</td>
<td id="Td1" runat="server" colspan="3" style="border: 1px solid #000000; border-left: none;
text-align: left" class="style4">
<asp:Label ID="lblWelderName" runat="server"></asp:Label>
</td>
</tr>
<tr style="height: 35px; font-size: 10pt">
<td colspan="2" style="border: 1px solid #000000; border-top: none; border-bottom: none;" align="left" class="style4">
焊工钢印号 Welder Stamp NO.
</td>
<td colspan="3" style="border: 1px solid #000000; border-top: none; border-bottom: none; border-left: none;
text-align: center" class="style4">
<asp:Label ID="lblWelderStampNO" runat="server"></asp:Label>
</td>
</tr>
<tr style="height: 35px; font-size: 10pt">
<td colspan="3" style="border: 1px solid #000000; border-bottom: none;"
align="left">
承包商 Contractor
</td>
<td colspan="3" style="border: 1px solid #000000; border-bottom: none;
border-left: none; text-align: center">
<asp:Label ID="lblContractor" runat="server"></asp:Label>
</td>
</tr>
<tr style="font-size: 10pt">
<td style="border: 1px solid #000000; border-bottom: none; height: 30px;" align="left"
colspan="3">
见证人姓名和签字:
</td>
<td align="center" colspan="3" style="border: 1px solid #000000; border-left: none; height: 30px;
text-align: center">
截止日期 Expired Date
</td>
</tr>
<tr style="font-size: 10pt">
<td style="border: 1px solid #000000; border-top: none; height: 25px;" align="left"
colspan="3">
Name &amp; Signature:
</td>
<td align="center" style="border: 1px solid #000000; border-top: none; border-left: none; height: 25px;" colspan="3">
<asp:Label ID="txtLimitDate" runat="server"></asp:Label>
</td>
</tr>
<tr style="height: 35px; font-size: 10pt">
<td colspan="3" style="border-left: 1px solid #000000; border-style: none solid solid solid;
border-width: 1px; border-color: #000000; text-align: center;" >
<asp:Label ID="lblSignatureName" runat="server"></asp:Label>
</td>
<td style="border: 1px solid #000000; border-top: none; border-left: none;" align="center" >
签证日期Visa Date:
</td>
<td colspan="3" style="border: 1px solid #000000; border-top: none; border-left: none;" align="center">
<asp:Label ID="lblDate" runat="server"></asp:Label>
</td>
</tr>
</table>
</td>
</tr>
<tr style="height: 30px">
<td>
<asp:Label ID="Label1" runat="server" Height="30px"></asp:Label>
</td>
</tr>
<tr>
<td>
<table id="Table3" runat="server" width="100%" border="0" cellpadding="0" cellspacing="0"
bordercolor="#000000">
<tr style="font-size: 10pt">
<td align="center" style="border: 1px solid #000000; border-bottom: none; border-right: none;"
colspan="2" height="25px">
Deacription Welder Qualification
</td>
<td align="center" style="border: 1px solid #000000; border-bottom: none;" colspan="6">
Details of Qualification Range
</td>
</tr>
<tr id="Tr1" runat="server" style="font-size: 10pt">
<td id="Td4" runat="server" align="center" colspan="2" style="border: 1px solid #000000;
border-bottom: none; border-right: none; border-top: none;" height="25px">
焊工资质说明
</td>
<td id="Td5" runat="server" align="center" colspan="6" style="border: 1px solid #000000;
border-bottom: none; border-top: none;">
允许施焊范围说明
</td>
</tr>
<tr id="Tr2" runat="server" style="font-size: 10pt">
<td id="Td6" runat="server" align="center" style="border: 1px solid #000000; border-bottom: none;"
height="18px">
Test Date
</td>
<td id="Td7" runat="server" style="border: 1px solid #000000; border-left: none;
border-bottom: none; border-right: none;" align="center">
Qualification Item
</td>
<td id="Td8" runat="server" align="center" style="border: 1px solid #000000; border-bottom: none;">
Process
</td>
<td id="Td9" runat="server" style="border: 1px solid #000000; border-left: none;
border-bottom: none; border-right: none;" align="center">
Base Mtl
</td>
<td id="Td10" runat="server" align="center" style="border: 1px solid #000000; border-bottom: none;">
Thk Range
</td>
<td id="Td11" runat="server" style="border: 1px solid #000000; border-left: none;
border-bottom: none; border-right: none;" align="center">
Dia.Range
</td>
<td id="Td12" runat="server" align="center" style="border: 1px solid #000000; border-bottom: none;">
Position
</td>
<td id="Td13" runat="server" style="border: 1px solid #000000; border-left: none;
border-bottom: none;" align="center">
Remark
</td>
</tr>
<tr id="Tr3" runat="server" style="font-size: 10pt">
<td id="Td14" runat="server" align="center" style="border: 1px solid #000000; border-bottom: none;
width: 15%" height="18px">
考核日期
</td>
<td id="Td15" runat="server" style="border: 1px solid #000000; border-left: none;
border-bottom: none; border-right: none; border-top: none;" align="center">
合格项目
</td>
<td id="Td16" runat="server" align="center" style="border: 1px solid #000000; border-bottom: none;
border-top: none;" width="12%">
焊接工艺
</td>
<td id="Td17" runat="server" style="border: 1px solid #000000; border-left: none;
border-bottom: none; border-right: none; border-top: none;" align="center" width="9%">
母材
</td>
<td id="Td18" runat="server" align="center" style="border: 1px solid #000000; border-bottom: none;
border-top: none;" width="12%">
厚度(mm)
</td>
<td id="Td19" runat="server" style="border: 1px solid #000000; border-left: none;
border-bottom: none; border-right: none; border-top: none;" align="center" width="12%">
外径(mm)
</td>
<td id="Td20" runat="server" align="center" style="border: 1px solid #000000; border-bottom: none;
border-top: none;" width="9%">
位置
</td>
<td id="Td21" runat="server" style="border: 1px solid #000000; border-left: none;
border-bottom: none; border-top: none;" align="center" width="9%">
备注
</td>
</tr>
<tr id="Tr4" runat="server" style="text-align: center; font-size: 10pt">
<td id="Td22" runat="server" align="center" style="border: 1px solid #000000; border-bottom: none;"
height="41px">
<asp:Label ID="lblDate1" runat="server"></asp:Label>
</td>
<td id="Td23" runat="server" style="border: 1px solid #000000; border-left: none;
border-bottom: none; border-right: none;">
<asp:Label ID="lblQualificationItem1" runat="server"></asp:Label>
</td>
<td id="Td24" runat="server" align="center" style="border: 1px solid #000000; border-bottom: none;">
<asp:Label ID="lblProcess1" runat="server"></asp:Label>
</td>
<td id="Td25" runat="server" style="border: 1px solid #000000; border-left: none;
border-bottom: none; border-right: none;">
<asp:Label ID="lblBaseMaterial1" runat="server"></asp:Label>
</td>
<td id="Td26" runat="server" align="center" style="border: 1px solid #000000; border-bottom: none;">
<asp:Label ID="lblThkRange1" runat="server"></asp:Label>
</td>
<td id="Td27" runat="server" style="border: 1px solid #000000; border-left: none;
border-bottom: none; border-right: none;">
<asp:Label ID="lblDiaRange1" runat="server"></asp:Label>
</td>
<td id="Td28" runat="server" align="center" style="border: 1px solid #000000; border-bottom: none;">
<asp:Label ID="lblPosition1" runat="server"></asp:Label>
</td>
<td id="Td29" runat="server" style="border: 1px solid #000000; border-left: none;
border-bottom: none;">
<asp:Label ID="lblRemark1" runat="server"></asp:Label>
</td>
</tr>
<tr id="Tr5" runat="server" style="font-size: 10pt; text-align: center;">
<td id="Td30" runat="server" align="center" style="border: 1px solid #000000; border-bottom: none;"
height="41px">
<asp:Label ID="lblDate2" runat="server"></asp:Label>
</td>
<td id="Td31" runat="server" style="border: 1px solid #000000; border-left: none;
border-bottom: none; border-right: none;">
<asp:Label ID="lblQualificationItem2" runat="server"></asp:Label>
</td>
<td id="Td32" runat="server" align="center" style="border: 1px solid #000000; border-bottom: none;">
<asp:Label ID="lblProcess2" runat="server"></asp:Label>
</td>
<td id="Td33" runat="server" style="border: 1px solid #000000; border-left: none;
border-bottom: none; border-right: none;">
<asp:Label ID="lblBaseMaterial2" runat="server"></asp:Label>
</td>
<td id="Td34" runat="server" align="center" style="border: 1px solid #000000; border-bottom: none;">
<asp:Label ID="lblThkRange2" runat="server"></asp:Label>
</td>
<td id="Td35" runat="server" style="border: 1px solid #000000; border-left: none;
border-bottom: none; border-right: none;">
<asp:Label ID="lblDiaRange2" runat="server"></asp:Label>
</td>
<td id="Td36" runat="server" align="center" style="border: 1px solid #000000; border-bottom: none;">
<asp:Label ID="lblPosition2" runat="server"></asp:Label>
</td>
<td id="Td37" runat="server" style="border: 1px solid #000000; border-left: none;
border-bottom: none;">
<asp:Label ID="lblRemark2" runat="server"></asp:Label>
</td>
</tr>
<tr id="Tr6" runat="server" style="font-size: 10pt; text-align: center;">
<td id="Td38" runat="server" align="center" style="border: 1px solid #000000; border-bottom: none;"
height="41px">
<asp:Label ID="lblDate3" runat="server"></asp:Label>
</td>
<td id="Td39" runat="server" style="border: 1px solid #000000; border-left: none;
border-bottom: none; border-right: none;">
<asp:Label ID="lblQualificationItem3" runat="server"></asp:Label>
</td>
<td id="Td40" runat="server" align="center" style="border: 1px solid #000000; border-bottom: none;">
<asp:Label ID="lblProcess3" runat="server"></asp:Label>
</td>
<td id="Td41" runat="server" style="border: 1px solid #000000; border-left: none;
border-bottom: none; border-right: none;">
<asp:Label ID="lblBaseMaterial3" runat="server"></asp:Label>
</td>
<td id="Td42" runat="server" align="center" style="border: 1px solid #000000; border-bottom: none;">
<asp:Label ID="lblThkRange3" runat="server"></asp:Label>
</td>
<td id="Td43" runat="server" style="border: 1px solid #000000; border-left: none;
border-bottom: none; border-right: none;">
<asp:Label ID="lblDiaRange3" runat="server"></asp:Label>
</td>
<td id="Td44" runat="server" align="center" style="border: 1px solid #000000; border-bottom: none;">
<asp:Label ID="lblPosition3" runat="server"></asp:Label>
</td>
<td id="Td45" runat="server" style="border: 1px solid #000000; border-left: none;
border-bottom: none;">
<asp:Label ID="lblRemark3" runat="server"></asp:Label>
</td>
</tr>
<tr id="Tr7" runat="server" style="font-size: 10pt; text-align: center;">
<td id="Td46" runat="server" align="center" style="border: 1px solid #000000; border-bottom: none;"
height="41px">
<asp:Label ID="lblDate4" runat="server"></asp:Label>
</td>
<td id="Td47" runat="server" style="border: 1px solid #000000; border-left: none;
border-bottom: none; border-right: none;">
<asp:Label ID="lblQualificationItem4" runat="server"></asp:Label>
</td>
<td runat="server" align="center" style="border: 1px solid #000000; border-bottom: none;">
<asp:Label ID="lblProcess4" runat="server"></asp:Label>
</td>
<td runat="server" style="border: 1px solid #000000; border-left: none; border-bottom: none;
border-right: none;">
<asp:Label ID="lblBaseMaterial4" runat="server"></asp:Label>
</td>
<td runat="server" align="center" style="border: 1px solid #000000; border-bottom: none;">
<asp:Label ID="lblThkRange4" runat="server"></asp:Label>
</td>
<td runat="server" style="border: 1px solid #000000; border-left: none; border-bottom: none;
border-right: none;">
<asp:Label ID="lblDiaRange4" runat="server"></asp:Label>
</td>
<td runat="server" align="center" style="border: 1px solid #000000; border-bottom: none;">
<asp:Label ID="lblPosition4" runat="server"></asp:Label>
</td>
<td runat="server" style="border: 1px solid #000000; border-left: none; border-bottom: none;">
<asp:Label ID="lblRemark4" runat="server"></asp:Label>
</td>
</tr>
<tr runat="server" style="font-size: 10pt; text-align: center;">
<td runat="server" align="center" style="border: 1px solid #000000;" height="41px">
<asp:Label ID="lblDate5" runat="server"></asp:Label>
</td>
<td runat="server" style="border: 1px solid #000000; border-left: none; border-right: none;">
<asp:Label ID="lblQualificationItem5" runat="server"></asp:Label>
</td>
<td runat="server" align="center" style="border: 1px solid #000000;">
<asp:Label ID="lblProcess5" runat="server"></asp:Label>
</td>
<td runat="server" style="border: 1px solid #000000; border-left: none; border-right: none;">
<asp:Label ID="lblBaseMaterial5" runat="server"></asp:Label>
</td>
<td runat="server" align="center" style="border: 1px solid #000000;">
<asp:Label ID="lblThkRange5" runat="server"></asp:Label>
</td>
<td runat="server" style="border: 1px solid #000000; border-left: none; border-right: none;">
<asp:Label ID="lblDiaRange5" runat="server"></asp:Label>
</td>
<td runat="server" align="center" style="border: 1px solid #000000;">
<asp:Label ID="lblPosition5" runat="server"></asp:Label>
</td>
<td runat="server" style="border: 1px solid #000000; border-left: none;">
<asp:Label ID="lblRemark5" runat="server"></asp:Label>
</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>