87,996
社区成员




%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ViewPregnantReport.aspx.cs" Inherits="HNTS.ClinicAssessment.ViewPregnantReport" MasterPageFile="~/MasterPages/WindowPage.master" %>
<%@ Import Namespace="Wincome.Components.Utility" %>
<asp:Content ID="Content1" ContentPlaceHolderID="content" runat="server">
<script src="../JQuery/jquery.PrintArea.js" type="text/javascript"></script>
<script type="text/javascript" src="../js/admin.js"></script>
<script type="text/javascript" src="../js/XY.js"></script>
<script type="text/javascript" language="javascript">
var bmi = <%= bmi %>; //bmi
var wt = <%= wt %>; //体重
var pk = <%= pk %>; //孕周数
$(document).ready(function () {
ClientPregnantChangeBackImage(bmi);
//window.print();
});
var hkey_root, hkey_path, hkey_key;
hkey_root = "HKEY_CURRENT_USER";
hkey_path = "\\Software\\Microsoft\\Internet Explorer\\PageSetup\\";
function PrintReport() {
pagesetup_null();
$("#divPrint").hide();
$("#printContent").printArea();
pagesetup_default();
$("#divPrint").show();
}
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, "&d &T&b<%=Wincome.Components.Config.AppSetting.DefaultHospName %>&b页码/页数:&p/&P");
hkey_key = "margin_bottom";
RegWsh.RegWrite(hkey_root + hkey_path + hkey_key, "0.1800000");
hkey_key = "margin_left";
RegWsh.RegWrite(hkey_root + hkey_path + hkey_key, "0.200000");
hkey_key = "margin_right";
RegWsh.RegWrite(hkey_root + hkey_path + hkey_key, "0.200000");
hkey_key = "margin_top";
RegWsh.RegWrite(hkey_root + hkey_path + hkey_key, "0.200000");
} 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(&W)");
hkey_key = "footer";
RegWsh.RegWrite(hkey_root + hkey_path + hkey_key, "&u&b&d");
hkey_key = "margin_bottom";
RegWsh.RegWrite(hkey_root + hkey_path + hkey_key, "0.750000");
hkey_key = "margin_left";
RegWsh.RegWrite(hkey_root + hkey_path + hkey_key, "0.750000");
hkey_key = "margin_right";
RegWsh.RegWrite(hkey_root + hkey_path + hkey_key, "0.750000");
hkey_key = "margin_top";
RegWsh.RegWrite(hkey_root + hkey_path + hkey_key, "0.750000");
} catch (e) { }
}
</script>
<div id="divPrint">
<input type="button" id="btnSave" value="打印" onclick="PrintReport();"/>
</div>
<div id="printContent">
<div style="height: 30px; line-height: 30px; width: 835px; margin: 0 auto; font-weight: bold;float:left;">
<asp:Label ID="lblMsg" runat="server"></asp:Label>
</div>
<div style="width: 835px; height: 480px; margin: 0 auto;float:left;">
<div id="dian" style="width: 9px; height: 9px; position: absolute; top:<%=top %>; left:<%=left %>; background-color: #F95C93;">
<img style="width: 10px; height: 10px; " src="../images/dian.jpg"/>
</div>
<div>
<img id="resultDiv" style=" width: 835px;height: 510px;" src="../skins/azury/pregnant_img/<%=imgname %>" />
</div>
</div>
</div>
</asp:Content>