<%@ Page Title="" Language="C#" AutoEventWireup="true" CodeBehind="PrintStudent.aspx.cs" Inherits="Project25175.PrintStudent" %>

<!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">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta charset="utf-8" />
	<title><%=LocalSiteName%></title>
    <meta name="keywords" content="-25175.com后台管理系统" />
	<meta name="description" content="25175下载" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="shortcut icon" href="../Images/favicon.ico" >

    <script language="javascript" src="../PrintFiles/LodopFuncs.js"></script>
    <object id="LODOP" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0> 
	    <embed id="LODOP_EM" type="application/x-print-lodop" width=0 height=0 pluginspage="../PrintFiles/install_lodop.exe"></embed>
    </object>

    <style type="text/css" media="print">
    .noprint{ display : none }
    </style>
    <style type="text/css" media="screen,print">
        body { margin:0; font-family:微软雅黑,Arial, Helvetica, sans-serif; font-size: 10pt;}
        #print_confirm { width:100%;  height:50px;  border-top:1px solid #999999; padding-top:4px; background-color:#438EB9; position:absolute; }
        #btn_print { width:400px; height:50px;  margin-left:auto; margin-right:auto;}
        .title{font-size: 11pt;font-weight:500;font-family:微软雅黑,Arial, Helvetica, sans-serif;}
        .table_frame{border:1px solid #000000;border-collapse:collapse}
        .table_frame td{border-left:1px solid #000000;border-bottom:1px solid #000000; border-right:1px solid #000000; padding-top:5px;padding-bottom:5px;}
        .pagebreak {page-break-after: always;}
    </style>

    <link href="../assets/css/bootstrap.min.css" rel="stylesheet" />
	<link rel="stylesheet" href="../assets/css/font-awesome.min.css" />
	<link rel="stylesheet" href="../assets/css/ace.min.css" />
	<link rel="stylesheet" href="../assets/css/ace-skins.min.css" />
	<script type="text/javascript" src="../assets/js/ace-extra.min.js"></script>    
    <script type="text/javascript" src="../assets/js/jquery-2.0.3.min.js"></script>
</head>

    

<body>

        <div class="navbar navbar-default" id="navbar">
			<script type="text/javascript">
			    try { ace.settings.check('navbar', 'fixed') } catch (e) { }
			</script>

			<div class="navbar-container" id="navbar-container">
				<div class="navbar-header pull-left">
					<a href="#" class="navbar-brand">
						<small>
							<i class="icon-leaf"></i>
							<%=LocalSiteName %>
						</small>
					</a><!-- /.brand -->
				</div><!-- /.navbar-header -->

				<div class="navbar-header pull-right" role="navigation">
					<ul class="nav ace-nav">
						<li class="light-blue">                   
						</li>
					</ul><!-- /.ace-nav -->
				</div><!-- /.navbar-header -->
			</div><!-- /.container -->
		</div>


        
        <div class="main-container" id="main-container">
			<script type="text/javascript">
			    try { ace.settings.check('main-container', 'fixed') } catch (e) { }
			</script>
			<div class="main-container-inner">
                <div>
                    <div class="breadcrumbs" id="breadcrumbs">	
                        <ul class="breadcrumb">
                            <li>
			                <i class="<%=PageIcon %>"></i>
                            学籍打印
                            </li>
                        </ul>
	                </div>

    <div class="page-content">
        


        <div id="print2" style="width:900px; margin:0px auto" >
          <asp:Repeater ID="rptStuInfo" runat="server" OnItemDataBound="rptStuInfo_ItemDataBound" >
            <ItemTemplate>

            <div role='basic' class='pagebreak'  >
                <table border="0" width="100%" >
                    <tr>
                        <td align="center"  style="padding-bottom:20px">   
                        <span style="font-size: 18pt; color: black; font-family: 宋体;">
                            <strong>25175学生学籍表</strong>
                        </span>
                        </td>
                    </tr>
                </table>
            
             <table width="100%" align="center"  >
                <tr>
                    <td class="title" width="15%" height="30px">身份证号码：</td>
                    <td height="30px" width="18%"><%#Eval("stu_IdNumber") %></td>
                    <td class="title" width="15%" height="30px">学员编号：</td>
                    <td height="30px" width="18%"><%#Eval("stu_Number") %></td>
                    <td class="title" width="17%" height="30px">入学照片</td>
                    <td class="title" width="17%" height="30px">毕业照片</td>
                </tr>
            </table>
            <table class="table_frame" width="100%"  align="center">
                <tr>
                    <td class="title" width="18%" height="30px" >入学年份：</td>
                    <td height="30px" width="15%" ><%#Eval("g_name")%></td>  
                    <td class="title" width="12%" height="30px">所在班级：</td>
                    <td height="30px" width="19%"><%#Eval("cs_name") %></td>
                    <td rowspan="5" width="18%" valign="top" >           
                        <asp:Literal ID="a_phote" runat="server"></asp:Literal>
                    </td>
                    <td rowspan="5" width="18%" valign="top" >
                        <asp:Literal ID="g_phote" runat="server"></asp:Literal>        
                    </td>
                </tr>
                <tr>
                    <td class="title" height="30px">姓名:</td>
                    <td width="15%" height="30px"><%#Eval("stu_name") %></td>
                    <td class="title" height="30px">性别：</td>
                    <td width="15%" height="30px"><%#Eval("stu_sex")%></td>
                </tr>
                <tr>
                    <td class="title" height="30px" >民族：</td>
                    <td width="15%" height="30px"><%#Eval("stu_nation")%></td>
                    <td class="title" height="30px">烈士军属：</td>
                    <td width="15%" height="30px"><%#Eval("stu_mas_familie") %></td>
                </tr>
                <tr>
                    <td class="title" height="30px" >出生年月：</td>
                    <td width="15%" height="30px"><%#Eval("stu_birth")%></td>
                    <td class="title" height="30px">入学日期：</td>
                    <td width="15%" height="30px"><%#Eval("stu_a_date")%></td>
                </tr>
                <tr>

                    <td class="title" height="30px">入团日期：</td>
                    <td width="15%" height="30px"><%#Eval("stu_a_group")%></td>
                    <td class="title" height="30px">入党日期：</td>
                    <td width="15%" height="30px"><%#Eval("stu_a_party")%></td>
                </tr>
                <tr>
                    <td class="title"  height="50px">籍贯：</td>
                    <td colspan="5"><%#Eval("stu_native") %></td>
                </tr>
                <tr>
                    <td class="title"  height="50px">家庭详细地址：</td>
                    <td colspan="5" ><%#Eval("stu_address") %></td>
                </tr>
                <tr>
                    <td class="title" height="50px">原校毕业日期：</td>
                    <td width="15%"><%#Eval("stu_g_date") %></td>
                    <td class="title">毕业学校：</td>
                    <td colspan="3"><%#Eval("stu_graduation") %></td>
                </tr>
                <tr>
                    <td class="title" height="60px">主要社会关系：</td>
                    <td colspan="5"><%#Eval("stu_s_relation") %></td>
                </tr>
                <tr>
                    <td class="title" height="50px">毕业证号码：</td>
                    <td colspan="5"><%#Eval("stu_g_number")%></td>
                </tr>
                <tr>
                    <td class="title"  height="80px">就业派遣情况：</td>
                    <td colspan="5"><%#Eval("stu_distribution") %></td>
                </tr>
                <tr>
                    <td class="title"  height="80px" >备注：</td>
                    <td colspan="5"><%#Eval("stu_note")%></td>
                </tr>
            </table>  
            
            <table class="table_frame" width="100%" align="center" style="border-top:none">
                <tr><td colspan="4" class="title" height="40px" >家庭主要成员：</td></tr>                
                <tr>
                     <td class="title" width="15%" align="center">&nbsp;姓&nbsp;名</td>
                    <td class="title" width="15%" align="center">&nbsp;称谓</td>
                    <td class="title" width="15%" align="center">&nbsp;政治面貌</td>
                    <td class="title" width="55%" align="center">&nbsp;工作单位及担任工作</td>
                </tr>                
                <asp:Repeater ID="rptFamily" runat="server">
                <ItemTemplate>
                <tr>
                    <td height="50px" >&nbsp;<%#Eval("fy_name")%></td>
                    <td>&nbsp;<%#Eval("fy_appellation")%></td>
                    <td>&nbsp;<%#Eval("fy_pol_aff")%></td>
                    <td>&nbsp;<%#Eval("fy_work_unit")%></td>
                </tr>
                </ItemTemplate>
                </asp:Repeater>    
            </table>
            
        </div>
        <div role='award' class='pagebreak'>

        <table border="0" width="100%" >
        <tr>
            <td align="center"  >   
            <span style="font-size: 18pt; color: black; font-family: 宋体;">
                <strong>安徽省顺通网络学生获奖记录表</strong>
            </span>
            </td>
        </tr>
        </table>

        <!-- 获奖信息 -->
         <table   width="100%" align="center">
             <tr>
                 <td class="title" >获奖记录</td>
                 <td align="right">
                     入学年份：<%#Eval("g_name")%>| 
                     班级：<%#Eval("cs_name") %>| 
                     姓名 ：<%#Eval("stu_name") %>|
                     学生编号： <%#Eval("stu_Number") %>
                 </td>
             </tr>
          </table>
         <table  class="table_frame" width="100%" align="center">
             <tr>
                 <td class="title" width="10%">&nbsp;级别</td>
                 <td class="title" width="10%">&nbsp;发证单位</td>
                 <td class="title" width="60%">&nbsp;获奖信息</td>
                 <td class="title" width="10%">&nbsp;录入人</td>
                 <td class="title" width="10%">&nbsp;获奖日期</td>
             </tr>
            <asp:Repeater ID="rptAward" runat="server">
            <ItemTemplate>
             <tr height="90px">
                <td>&nbsp;<%#Eval("sr_grade")%></td>
                <td >&nbsp;<%#Eval("sr_c_unit")%></td>

                <td >&nbsp;<%#Eval("sr_info")%></td>
                <td >&nbsp;<%#Eval("ur_name")%></td>
                <td >&nbsp;<%#Eval("sr_date")%></td>
             </tr>
             </ItemTemplate>
             </asp:Repeater>
         </table>
        </div>

        <div role='sanction' class='pagebreak'>
        <table border="0" width="100%" >
        <tr>
            <td align="center"  >   
            <span style="font-size: 18pt; color: black; font-family: 宋体;">
                <strong>安徽省顺通网络学生惩处记录表</strong>
            </span>
            </td>
        </tr>
        </table>
         <!-- 获奖信息 -->
         <table   width="100%" align="center">
             <tr>
                 <td class="title" >惩处记录</td>
                 <td align="right">
                     入学年份：<%#Eval("g_name")%>| 
                     班级：<%#Eval("cs_name") %>| 
                     姓名 ：<%#Eval("stu_name") %>|
                     学生编号： <%#Eval("stu_Number") %>
                 </td>
             </tr>
          </table>
 
          <table  class="table_frame" width="100%" align="center">

             <tr><td class="title" width="10%">&nbsp;级别</td>
                 <td class="title" width="10%">&nbsp;是否撤销</td>
                 <td class="title" width="60%">&nbsp;处分原因</td>
                 <td class="title" width="10%">&nbsp;录入人</td>
                 <td class="title" width="10%">&nbsp;撤销日期</td>
             </tr>
            <asp:Repeater ID="rptSanction" runat="server">
            <ItemTemplate>
             <tr height="90px">
                <td >&nbsp;<%#Eval("sn_grade")%></td>
                <td >&nbsp;<%#Eval("sn_revoked")%></td>
                <td >&nbsp;<%#Eval("sn_reason")%></td>
                <td >&nbsp;<%#Eval("ur_name")%></td>
                <td >&nbsp;<%#Eval("sn_revoked_date")%></td>
             </tr>
             </ItemTemplate>
             </asp:Repeater>
     
         </table>
        </div>
        <div role='comment' class='pagebreak'>
                 <table border="0" width="100%" >
                    <tr>
                        <td align="center"  >   
                        <span style="font-size: 18pt; color: black; font-family: 宋体;">
                            <strong>安徽省顺通网络学生政治思想品德评定表</strong>
                        </span>
                        </td>
                    </tr>
                </table>
                <table  width="100%" align="center">
                    <tr><td  class="title" >学期评语</td>
                          <td align="right">
                     入学年份：<%#Eval("g_name")%>| 
                     班级：<%#Eval("cs_name") %>| 
                     姓名 ：<%#Eval("stu_name") %>|
                     学生编号： <%#Eval("stu_Number") %>
                 </td>
                    </tr>
                </table>
                <table  class="table_frame" width="100%" align="center">
                    <tr>
                        <td class="title" width="10%">&nbsp;学年</td>
                        <td class="title" width="10%">&nbsp;学期</td>
                        <td class="title" width="60%">&nbsp;评语</td>
                        <td class="title" width="10%">&nbsp;班主任</td>
                        <td class="title" width="10%">&nbsp;评语日期</td>
                    </tr>
                    <asp:Repeater ID="rptComment" runat="server">
                    <ItemTemplate>
                    <tr>
                        <td <%=rptCommentHeight %> >&nbsp;<%#Eval("ct_syear") %></td>
                        <td>&nbsp;<%#Eval("ct_sterm") %></td>
                        <td>&nbsp;<%#Eval("ct_comment") %></td>
                        <td>&nbsp;<%#Eval("ur_name")%></td>
                        <td>&nbsp;<%#Eval("ct_date")%></td>
                    </tr>
                    </ItemTemplate>
                    </asp:Repeater>
                </table>
            </div>
        <div role='score' class='pagebreak'>
        
        <asp:Panel ID="jsPanel" runat="server" Visible=false name="ScoreForPage">        
            <table  class="table_frame" width="100%" align="center" style="border-style: none none none none; " >
                <thead>
                <tr>
                    <td align="center" style="padding-bottom:20px;border-style: none none none none" colspan="11">   
                    <span style="font-size: 18pt; color: black; font-family: 宋体;">
                        <strong>安徽省顺通网络学生学习成绩表</strong>
                    </span>
                    </td>
                </tr>
                <tr>
                    <td class="title" style="border-style: none none solid none">学期成绩</td>
                    <td align="right" colspan="10" style="border-style: none none solid none">
                     入学年份：<%#Eval("g_name")%>| 
                     班级：<%#Eval("cs_name") %>| 
                     姓名：<%#Eval("stu_name") %>|
                     学生编号： <%#Eval("stu_Number") %>
                    </td>
                </tr>                
                <tr>
                    <td class="title"></td>
                    <td class="title" align="center" colspan="2">
                        第一学年</td>
                    <td class="title" align="center" colspan="2">
                        第二学年</td>
                    <td class="title" align="center" colspan="2">
                        第三学年</td>
                    <td class="title" align="center" colspan="2">
                        第四学年</td>
                    <td class="title" align="center" colspan="2">
                        第五学年</td>
                </tr>
                <tr>
                    <td class="title" align="center" width="10%" >科目</td>
                    <td class="title" align="center" width="9%">
                        第一学期</td>
                    <td class="title" align="center" width="9%">
                        第二学期</td>
                    <td class="title" align="center" width="9%">
                        第一学期</td>
                    <td class="title" align="center" width="9%">
                        第二学期</td>
                    <td class="title" align="center" width="9%">
                        第一学期</td>
                    <td class="title" align="center" width="9%" >
                        第二学期</td>
                    <td class="title" align="center" width="9%">
                        第一学期</td>
                    <td class="title" align="center" width="9%">
                        第二学期</td>
                    <td class="title" align="center" width="9%">
                        第一学期</td>
                    <td class="title" align="center" width="9%">
                        第二学期</td>
                </tr>
                </thead>

                <tbody>
                <asp:Repeater ID="rptScore" runat="server">
                <ItemTemplate>
                <tr>
                    <td height="30px" noWrap>&nbsp;<%#Eval("st_name") %></td>
                    <td>&nbsp;<%#Eval("L_G1T1") %></td>
                    <td>&nbsp;<%#Eval("L_G1T2")%></td>
                    <td>&nbsp;<%#Eval("L_G2T1")%></td>
                    <td>&nbsp;<%#Eval("L_G2T2")%></td>
                    <td>&nbsp;<%#Eval("L_G3T1")%></td>
                    <td>&nbsp;<%#Eval("L_G3T2")%></td>
                    <td>&nbsp;<%#Eval("L_G4T1")%></td>
                    <td>&nbsp;<%#Eval("L_G4T2")%></td>
                    <td>&nbsp;<%#Eval("L_G5T1")%></td>
                    <td>&nbsp;<%#Eval("L_G5T2")%></td>
                </tr>
                </ItemTemplate>
                </asp:Repeater>
                </tbody>
            </table>
        
        </asp:Panel>

        <asp:Panel ID="tssPanel" runat="server" Visible=false name="ScoreForPage">
            <table class="table_frame" width="100%" align="center" style="border-style: none none none none; ">
                <thead>
                <tr >
                    <td align="center" style="padding-bottom:20px;border-style: none none none none" colspan="7">   
                    <span style="font-size: 18pt; color: black; font-family: 宋体;">
                        <strong>安徽省顺通网络学生学习成绩表</strong>
                    </span>
                    </td>
                </tr>
                <tr>
                    <td class="title" style="border-style: none none solid none">学期成绩</td>
                    <td align="right" colspan="6" style="border-style: none none solid none" >
                     入学年份：<%#Eval("g_name")%>| 
                     班级：<%#Eval("cs_name") %>| 
                     姓名：<%#Eval("stu_name") %>|
                     学生编号： <%#Eval("stu_Number") %>
                    </td>
                </tr>            
                <tr>
                    <td class="title"></td>
                    <td class="title" align="center" colspan="2">
                        第一学年</td>
                    <td class="title" align="center" colspan="2">
                        第二学年</td>
                    <td class="title" align="center" colspan="2">
                        第三学年</td>
                </tr>
                <tr>
                    <td class="title" align="center" width="10%" >科目</td>
                    <td class="title" align="center" width="15%">
                        第一学期</td>
                    <td class="title" align="center" width="15%">
                        第二学期</td>
                    <td class="title" align="center" width="15%">
                        第一学期</td>
                    <td class="title" align="center" width="15%">
                        第二学期</td>
                    <td class="title" align="center" width="15%">
                        第一学期</td>
                    <td class="title" align="center" width="15%" >
                        第二学期</td>
                </tr>
                </thead>
                
                <tbody>
                <asp:Repeater ID="rptTssScore" runat="server">
                <ItemTemplate>
                <tr>
                    <td height="30px" noWrap>&nbsp;<%#Eval("st_name") %></td>
                    <td>&nbsp;<%#Eval("M_G1T1") %></td>
                    <td>&nbsp;<%#Eval("M_G1T2")%></td>
                    <td>&nbsp;<%#Eval("M_G2T1")%></td>
                    <td>&nbsp;<%#Eval("M_G2T2")%></td>
                    <td>&nbsp;<%#Eval("M_G3T1")%></td>
                    <td>&nbsp;<%#Eval("M_G3T2")%></td>
                </tr>
                </ItemTemplate>
                </asp:Repeater>
                </tbody>
                
            </table>
        
        </asp:Panel>
        </div>

        </ItemTemplate>
        </asp:Repeater>
        </div>
         
        </div>
				<div class="ace-settings-container" id="ace-settings-container">
					<div class="btn btn-app btn-xs btn-warning ace-settings-btn" id="ace-settings-btn">
						<i class="icon-cog bigger-150"></i>
					</div>

					<div class="ace-settings-box" id="ace-settings-box">
						<div>
							<div class="pull-left">
								<select id="skin-colorpicker" class="hide">
									<option data-skin="default" value="#438EB9">#438EB9</option>
									<option data-skin="skin-1" value="#222A2D">#222A2D</option>
									<option data-skin="skin-2" value="#C6487E">#C6487E</option>
									<option data-skin="skin-3" value="#D0D0D0">#D0D0D0</option>
								</select>
							</div>
							<span> 当前页皮肤 </span>
						</div>
						<div>
							<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-rtl" />
							<label class="lbl" for="ace-settings-rtl"> 菜单移到右边 </label>
						</div>

						<div>
							<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-add-container" />
							<label class="lbl" for="ace-settings-add-container"> 窄页面模式 </label>
						</div>
					</div>
				</div><!-- /#ace-settings-container -->
                
			</div><!-- /.main-container-inner -->

            <a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
				<i class="icon-double-angle-up icon-only bigger-110"></i>
			</a>
			
		</div></div>

        <div class="noprint" style="height:100px">
         </div>
        <div id="print_confirm" class="noprint">
                <div id="btn_print" style="width:100%" align="center">
                    <button class="btn btn-success btn-xs" id="PageForPrint">
						直接打印
						<i class="icon-print align-top bigger-150 icon-on-right"></i>
					</button> 
                    <button class="btn btn-purple btn-xs" id="PageForPreview">
						打印预览
						<i class="icon-search align-top bigger-150 icon-on-right"></i>
					</button> 
                    <button class="btn btn-danger btn-xs" id="CloseWebPage">
						关闭
						<i class="icon-archive align-top bigger-150 icon-on-right"></i>
					</button>                
                    <font style="color:#fff"><mark>打印选项</mark>：</font>
                    <input id="basic" type="checkbox" checked="CHECKED" />
                    <label for="basic" style="color:#fff">基本</label>             
                    <input id="award" type="checkbox" checked="CHECKED" />
                    <label for="award" style="color:#fff">奖励</label>            
                    <input id="sanction" type="checkbox" checked="CHECKED" />
                    <label for="sanction" style="color:#fff">惩处</label>
                    <input id="comment" type="checkbox" checked="CHECKED" />
                    <label for="comment" style="color:#fff">评价</label>            
                    <input id="score" type="checkbox" checked="CHECKED" />
                    <label for="score" style="color:#fff">成绩</label>
                    <br />
                    <span>第一次打印需要点击安装打印控件(点击页面顶部安装提示栏),该控件不支持新版谷歌浏览器(Chrome)</span> 
                </div>
        </div>
     <script type="text/javascript" src="../assets/js/jquery-2.0.3.min.js"></script>

	<script type="text/javascript">
	    window.jQuery || document.write("<script src='../assets/js/jquery-2.0.3.min.js'>" + "<" + "/script>");
	</script>
    <script type="text/javascript">
	    if ("ontouchend" in document) document.write("<script src='../assets/js/jquery.mobile.custom.min.js'>" + "<" + "/script>");
	</script>
	<script type="text/javascript" src="../assets/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="../assets/js/typeahead-bs2.min.js"></script>
	<script type="text/javascript" src="../assets/js/ace-elements.min.js"></script>
	<script type="text/javascript" src="../assets/js/ace.min.js"></script>

    <script type="text/javascript">
        jQuery(function ($) {
            $("#print_confirm").css("top", $(window).height() + $(window).scrollTop() - 50);
            $(window).scroll(function () {
                $("#print_confirm").css("top", $(window).height() + $(window).scrollTop() - 50);
            }).resize(function () {
                $("#print_confirm").css("top", $(window).height() + $(window).scrollTop() - 50);
            });

            $("#PageForPrint").click(function () {
                PageActive("Print");
            });

            $("#PageForPreview").click(function () {
                PageActive("Preview");
            });

            function PageActive(ClickType) {
                var panel = $("#print2").children("div:visible").last();
                panel.removeClass("pagebreak");

                LODOP = getLodop();
                LODOP.PRINT_INIT("25175_Lodop_PrintStudent");

                var styleStr = "<style> img { padding:2px; border:0;}#print_confirm { width:100%;  height:50px;  border-top:1px solid #999999; padding-top:4px;   background-color:#5473ae; position:absolute; }#btn_print { width:400px; height:50px;  margin-left:auto; margin-right:auto;}.title{font-size: 11pt;font-family:宋体,Arial, Helvetica, sans-serif;}.table_frame{border:1px solid #696969;border-collapse:collapse}.table_frame td{ font-size:10pt;border-left:1px solid #696969;border-bottom:1px solid #696969;border-right:1px solid #696969; padding-top:5px;padding-bottom:5px;}.pagebreak {page-break-after: always;marks: none};</style>";

                //如果有成绩,则强制隐藏成绩区块,将其他内容列印,再将隐藏的成绩区块显示,以分页的方式列印.分页列印成绩时,检查前面是否有列印内容,有则新增页.
                //如果没有成绩,则只列印其他内容区块
                if ($("#print2").children("div[role='score']").is(":visible")) {
                    $("#print2").children("div[role='score']").hide();
                    LODOP.ADD_PRINT_HTM(20, "2%", "96%", "98%", styleStr + $("#print2").html());
                    $("#print2").children("div[role='score']").show();
                    var printQty = document.getElementsByName("ScoreForPage");
                    for (var i = 0; i < printQty.length; i++) {
                        if (i > 0 || $("#print2").children("div[role='basic']").is(":visible") || $("#print2").children("div[role='award']").is(":visible") || $("#print2").children("div[role='comment']").is(":visible") || $("#print2").children("div[role='sanction']").is(":visible")) {
                            LODOP.NewPageA();
                        }
                        LODOP.ADD_PRINT_TABLE(20, "2%", "96%", "98%", styleStr + printQty[i].innerHTML);
                    }
                }
                else {
                    LODOP.ADD_PRINT_HTM(20, "2%", "96%", "98%", styleStr + $("#print2").html());
                }
                LODOP.SET_PRINT_STYLEA(0, "TableHeightScope", 1);

                //是直接列印还是预览
                if (ClickType == "Print") {
                    LODOP.PRINT();
                } else {
                    LODOP.PREVIEW();
                }

                panel.addClass("pagebreak");
            };

            $("#basic").change(function () {
                if (this.checked)
                    $("#print2").children("div[role='basic']").show();
                else
                    $("#print2").children("div[role='basic']").hide();
            });

            $("#award").change(function () {
                if (this.checked)
                    $("#print2").children("div[role='award']").show();
                else
                    $("#print2").children("div[role='award']").hide();
            });

            $("#comment").change(function () {
                if (this.checked)
                    $("#print2").children("div[role='comment']").show();
                else
                    $("#print2").children("div[role='comment']").hide();
            });

            $("#score").change(function () {
                if (this.checked)
                    $("#print2").children("div[role='score']").show();
                else
                    $("#print2").children("div[role='score']").hide();
            });

            $("#sanction").change(function () {
                if (this.checked)
                    $("#print2").children("div[role='sanction']").show();
                else
                    $("#print2").children("div[role='sanction']").hide();

            });


            $("#CloseWebPage").click(function () {
                if (navigator.userAgent.indexOf("MSIE") > 0) {
                    if (navigator.userAgent.indexOf("MSIE 6.0") > 0) {
                        window.opener = null;
                        window.close();
                    } else {
                        window.open('', '_top');
                        window.top.close();
                    }
                }
                else if (navigator.userAgent.indexOf("Firefox") > 0) {
                    window.location.href = 'about:blank ';
                } else {
                    window.opener = null;
                    window.open('', '_self', '');
                    window.close();
                }
            });
        });

    </script>
    
</body>
</html>

