<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPage_AJAX.master"
AutoEventWireup="true" CodeFile="DispatchArchive.aspx.cs" Inherits="Dispatching_DispatchArchive" %>
<%@ Import Namespace="CommonUtilities" %>
<%@ Register Assembly="CommonUtilities" Namespace="CommonUtilities.BS.Controls" TagPrefix="ex" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<style type="text/css"> @media Print { .Noprn { DISPLAY: none }} </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="body" runat="Server">
<script type="text/javascript">
function PageSetup_Null() {
// try {
var HKEY_Root, HKEY_Path, HKEY_Key;
HKEY_Root = "HKEY_CURRENT_USER";
HKEY_Path = "\\Software\\Microsoft\\Internet Explorer\\PageSetup\\";
var Wsh = new ActiveXObject("WScript.Shell");
HKEY_Key = "header";
Wsh.RegWrite(HKEY_Root + HKEY_Path + HKEY_Key, "");
HKEY_Key = "footer";
Wsh.RegWrite(HKEY_Root + HKEY_Path + HKEY_Key, "");
HKEY_Key = "margin_bottom"
Wsh.RegWrite(HKEY_Root + HKEY_Path + HKEY_Key, "0.39370");
HKEY_Key = "margin_left"
Wsh.RegWrite(HKEY_Root + HKEY_Path + HKEY_Key, "0.59055");
HKEY_Key = "margin_right"
Wsh.RegWrite(HKEY_Root + HKEY_Path + HKEY_Key, "0.59055");
HKEY_Key = "margin_top"
Wsh.RegWrite(HKEY_Root + HKEY_Path + HKEY_Key, "0.86614");
// alert("您已成功完成打印边距设置!")
// }
// catch (e) { alert("页面设置失败,请手动设置!") }
}
</script>
<object id="WebBrowser" height="0" width="0" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2">
</object>
<div style=" padding:5px;">
<ex:PanelControl ID="PanelControl1" runat="server" Caption="派工存档">
<!--这里的注释是不能够删除的-->
<!--startprint-->
<div id="page1">
<center>
<table cellpadding="0" cellspacing="0" class="table_001" style="border-collapse:collapse; border:1px solid #d6f4ce; width:400px; font-size:16px; text-align:left;">
<tr>
<td style="width: 120px; font-size:18px; text-align:right; border:1px solid #d6f4ce" class="td_001">
流 水 号:
</td>
<td style=" text-align:left;border:1px solid #d6f4ce; font-size:18px;" class="td_002">
<asp:Label ID="lbIsomuxAdd" runat="server"></asp:Label>
<asp:HiddenField ID="hiddBuessNO" runat="server" />
<asp:HiddenField ID="hiddFlowExeNo" runat="server" />
<asp:HiddenField ID="hiddSetpNo" runat="server" />
</td>
</tr>
<tr>
<td style="width: 120px; border:1px solid #d6f4ce; text-align:right; font-size:18px;" class="td_001">
客户编号:
</td>
<td style="text-align:left; border:1px solid #d6f4ce; font-size:18px;" class="td_002">
<asp:Label ID="lbUserCode" runat="server"></asp:Label>
<asp:HiddenField ID="hiddUserID" runat="server" />
</td>
</tr>
<tr>
<td style="width: 120px; border:1px solid #d6f4ce; text-align:right; font-size:18px;" class="td_001">
客户姓名:
</td>
<td style="text-align:left; border:1px solid #d6f4ce; font-size:18px;" class="td_002">
<asp:Label ID="lbUserName" runat="server"></asp:Label>
</td>
</tr>
<tr>
<td style="width: 120px; border:1px solid #d6f4ce; text-align:right; font-size:18px;" class="td_001">
业务类型:
<asp:HiddenField ID="hiddOperationType" runat="server" />
</td>
<td style=" text-align:left; border:1px solid #d6f4ce; font-size:18px;" class="td_002">
<asp:Label ID="lbBusinessTypesAdd" runat="server"></asp:Label>
</td>
</tr>
<tr>
<td style="width: 120px; border:1px solid #d6f4ce; text-align:right; font-size:18px;" class="td_001">
地 址:
</td>
<td style="text-align:left; border:1px solid #d6f4ce; font-size:18px;" class="td_002">
<asp:Label ID="txtAddress" runat="server"></asp:Label>
</td>
</tr>
<tr>
<td style="width: 120px; border:1px solid #d6f4ce; text-align:right; font-size:18px;" class="td_001">
派遣员工:
<asp:HiddenField ID="hiddEmployees" Value="" runat="server" />
</td>
<td style="text-align:left; border:1px solid #d6f4ce; font-size:18px;" class="td_002" id="tdEmployees" runat="server">
</td>
</tr>
<tr id="trDeviceOne" runat="server">
<td style="width: 120px; border:1px solid #d6f4ce; text-align:right; font-size:18px;" class="td_001">
使用耗材:
<asp:HiddenField ID="hiddDevice" runat="server" />
</td>
<td class="td_002" style="text-align:left; border:1px solid #d6f4ce; font-size:18px;">
<asp:Label ID="lblDeviceInfo" runat="server" Text=""></asp:Label>
</td>
</tr>
<tr id="trConsumablesMoney" runat="server">
<td style="width: 120px; text-align:right; border:1px solid #d6f4ce; font-size:18px;" class="td_001">
耗 材 费:
</td>
<td style="text-align:left; border:1px solid #d6f4ce; font-size:18px;" class="td_002">
¥<asp:Label ID="lblConsumablesMoney" runat="server" Text=""></asp:Label>
</td>
</tr>
<tr id="trServiceMoney" runat="server">
<td style="width: 120px; text-align:right; border:1px solid #d6f4ce; font-size:18px;" class="td_001">
服 务 费:
</td>
<td style="text-align:left; border:1px solid #d6f4ce; font-size:18px;" class="td_002">
¥<asp:Label ID="lblServiceMoney" runat="server" Text=""></asp:Label>
</td>
</tr>
<tr>
<td style="width: 120px; border:1px solid #d6f4ce; text-align:right; font-size:18px;" class="td_001">
意见说明:
</td>
<td style="text-align:left; border:1px solid #d6f4ce; font-size:18px;" class="td_002">
<asp:Label ID="lblPieIdea" runat="server" Text=""></asp:Label>
</td>
</tr>
</table>
</center>
</div>
<!--endprint-->
<!--这里的注释是不能够删除的-->
<table>
<tr>
<td valign="top">
<input type="button" value="打印预览..." onClick="doPrint('打印预览...')">
<input type="button" value="打印..." onClick="doPrint('打印...')">
<input type="button" value="打印" onClick="doPrint('打印')">
</td>
</tr>
</table>
<div align="center">
<input type="button" name="print" value="预览并打印" οnclick="preview()" /></div>
<script type="text/javascript">
function preview() {
bdhtml = window.document.body.innerHTML;
sprnstr = "<!--startprint-->";
eprnstr = "<!--endprint-->";
prnhtml = bdhtml.substr(bdhtml.indexOf(sprnstr) + 17);
prnhtml = prnhtml.substring(0, prnhtml.indexOf(eprnstr));
window.document.body.innerHTML = prnhtml;
// PageSetup_Null();
try {
PageSetup_Null();
}
catch (e) {
var errorMsg = e.message + "\r" + "请设置:IE选项->安全->Internet->" + "ActiveX控件和插件" + "\r" + "对未标记为可安全执行脚本的ActiveX的控件初始化并执行脚本->允许/提示";
alert(errorMsg);
return;
}
window.print();
}
</script>
<%-- <p class="Noprn">不打印</p><table id="datagrid">
<tr><td>打印</td></tr>
</table>--%>
<input class="Noprn" type="button" οnclick="window.print()" value="print" />
</ex:PanelControl>
</div>
</asp:Content>
AutoEventWireup="true" CodeFile="DispatchArchive.aspx.cs" Inherits="Dispatching_DispatchArchive" %>
<%@ Import Namespace="CommonUtilities" %>
<%@ Register Assembly="CommonUtilities" Namespace="CommonUtilities.BS.Controls" TagPrefix="ex" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<style type="text/css"> @media Print { .Noprn { DISPLAY: none }} </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="body" runat="Server">
<script type="text/javascript">
function PageSetup_Null() {
// try {
var HKEY_Root, HKEY_Path, HKEY_Key;
HKEY_Root = "HKEY_CURRENT_USER";
HKEY_Path = "\\Software\\Microsoft\\Internet Explorer\\PageSetup\\";
var Wsh = new ActiveXObject("WScript.Shell");
HKEY_Key = "header";
Wsh.RegWrite(HKEY_Root + HKEY_Path + HKEY_Key, "");
HKEY_Key = "footer";
Wsh.RegWrite(HKEY_Root + HKEY_Path + HKEY_Key, "");
HKEY_Key = "margin_bottom"
Wsh.RegWrite(HKEY_Root + HKEY_Path + HKEY_Key, "0.39370");
HKEY_Key = "margin_left"
Wsh.RegWrite(HKEY_Root + HKEY_Path + HKEY_Key, "0.59055");
HKEY_Key = "margin_right"
Wsh.RegWrite(HKEY_Root + HKEY_Path + HKEY_Key, "0.59055");
HKEY_Key = "margin_top"
Wsh.RegWrite(HKEY_Root + HKEY_Path + HKEY_Key, "0.86614");
// alert("您已成功完成打印边距设置!")
// }
// catch (e) { alert("页面设置失败,请手动设置!") }
}
</script>
<object id="WebBrowser" height="0" width="0" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2">
</object>
<div style=" padding:5px;">
<ex:PanelControl ID="PanelControl1" runat="server" Caption="派工存档">
<!--这里的注释是不能够删除的-->
<!--startprint-->
<div id="page1">
<center>
<table cellpadding="0" cellspacing="0" class="table_001" style="border-collapse:collapse; border:1px solid #d6f4ce; width:400px; font-size:16px; text-align:left;">
<tr>
<td style="width: 120px; font-size:18px; text-align:right; border:1px solid #d6f4ce" class="td_001">
流 水 号:
</td>
<td style=" text-align:left;border:1px solid #d6f4ce; font-size:18px;" class="td_002">
<asp:Label ID="lbIsomuxAdd" runat="server"></asp:Label>
<asp:HiddenField ID="hiddBuessNO" runat="server" />
<asp:HiddenField ID="hiddFlowExeNo" runat="server" />
<asp:HiddenField ID="hiddSetpNo" runat="server" />
</td>
</tr>
<tr>
<td style="width: 120px; border:1px solid #d6f4ce; text-align:right; font-size:18px;" class="td_001">
客户编号:
</td>
<td style="text-align:left; border:1px solid #d6f4ce; font-size:18px;" class="td_002">
<asp:Label ID="lbUserCode" runat="server"></asp:Label>
<asp:HiddenField ID="hiddUserID" runat="server" />
</td>
</tr>
<tr>
<td style="width: 120px; border:1px solid #d6f4ce; text-align:right; font-size:18px;" class="td_001">
客户姓名:
</td>
<td style="text-align:left; border:1px solid #d6f4ce; font-size:18px;" class="td_002">
<asp:Label ID="lbUserName" runat="server"></asp:Label>
</td>
</tr>
<tr>
<td style="width: 120px; border:1px solid #d6f4ce; text-align:right; font-size:18px;" class="td_001">
业务类型:
<asp:HiddenField ID="hiddOperationType" runat="server" />
</td>
<td style=" text-align:left; border:1px solid #d6f4ce; font-size:18px;" class="td_002">
<asp:Label ID="lbBusinessTypesAdd" runat="server"></asp:Label>
</td>
</tr>
<tr>
<td style="width: 120px; border:1px solid #d6f4ce; text-align:right; font-size:18px;" class="td_001">
地 址:
</td>
<td style="text-align:left; border:1px solid #d6f4ce; font-size:18px;" class="td_002">
<asp:Label ID="txtAddress" runat="server"></asp:Label>
</td>
</tr>
<tr>
<td style="width: 120px; border:1px solid #d6f4ce; text-align:right; font-size:18px;" class="td_001">
派遣员工:
<asp:HiddenField ID="hiddEmployees" Value="" runat="server" />
</td>
<td style="text-align:left; border:1px solid #d6f4ce; font-size:18px;" class="td_002" id="tdEmployees" runat="server">
</td>
</tr>
<tr id="trDeviceOne" runat="server">
<td style="width: 120px; border:1px solid #d6f4ce; text-align:right; font-size:18px;" class="td_001">
使用耗材:
<asp:HiddenField ID="hiddDevice" runat="server" />
</td>
<td class="td_002" style="text-align:left; border:1px solid #d6f4ce; font-size:18px;">
<asp:Label ID="lblDeviceInfo" runat="server" Text=""></asp:Label>
</td>
</tr>
<tr id="trConsumablesMoney" runat="server">
<td style="width: 120px; text-align:right; border:1px solid #d6f4ce; font-size:18px;" class="td_001">
耗 材 费:
</td>
<td style="text-align:left; border:1px solid #d6f4ce; font-size:18px;" class="td_002">
¥<asp:Label ID="lblConsumablesMoney" runat="server" Text=""></asp:Label>
</td>
</tr>
<tr id="trServiceMoney" runat="server">
<td style="width: 120px; text-align:right; border:1px solid #d6f4ce; font-size:18px;" class="td_001">
服 务 费:
</td>
<td style="text-align:left; border:1px solid #d6f4ce; font-size:18px;" class="td_002">
¥<asp:Label ID="lblServiceMoney" runat="server" Text=""></asp:Label>
</td>
</tr>
<tr>
<td style="width: 120px; border:1px solid #d6f4ce; text-align:right; font-size:18px;" class="td_001">
意见说明:
</td>
<td style="text-align:left; border:1px solid #d6f4ce; font-size:18px;" class="td_002">
<asp:Label ID="lblPieIdea" runat="server" Text=""></asp:Label>
</td>
</tr>
</table>
</center>
</div>
<!--endprint-->
<!--这里的注释是不能够删除的-->
<table>
<tr>
<td valign="top">
<input type="button" value="打印预览..." onClick="doPrint('打印预览...')">
<input type="button" value="打印..." onClick="doPrint('打印...')">
<input type="button" value="打印" onClick="doPrint('打印')">
</td>
</tr>
</table>
<div align="center">
<input type="button" name="print" value="预览并打印" οnclick="preview()" /></div>
<script type="text/javascript">
function preview() {
bdhtml = window.document.body.innerHTML;
sprnstr = "<!--startprint-->";
eprnstr = "<!--endprint-->";
prnhtml = bdhtml.substr(bdhtml.indexOf(sprnstr) + 17);
prnhtml = prnhtml.substring(0, prnhtml.indexOf(eprnstr));
window.document.body.innerHTML = prnhtml;
// PageSetup_Null();
try {
PageSetup_Null();
}
catch (e) {
var errorMsg = e.message + "\r" + "请设置:IE选项->安全->Internet->" + "ActiveX控件和插件" + "\r" + "对未标记为可安全执行脚本的ActiveX的控件初始化并执行脚本->允许/提示";
alert(errorMsg);
return;
}
window.print();
}
</script>
<%-- <p class="Noprn">不打印</p><table id="datagrid">
<tr><td>打印</td></tr>
</table>--%>
<input class="Noprn" type="button" οnclick="window.print()" value="print" />
</ex:PanelControl>
</div>
</asp:Content>