<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Credit_User.aspx.cs" Inherits="RM.Web.Training.Credit.Credit_User" %>

<%@ Register Src="~/UserControl/PageControl.ascx" TagName="PageControl" TagPrefix="uc1" %>
<%@ Register Src="~/UserControl/LoadButton.ascx" TagName="LoadButton" TagPrefix="uc2" %>
<!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> <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("User Credit_User_Title")%></title>
    <link href="/Themes/Styles/Site.css" rel="stylesheet" type="text/css" />
    <script src="/Themes/Scripts/jquery-1.8.2.min.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/FunctionJS.js" type="text/javascript"></script>
        <script src="/Themes/Scripts/DatePicker/WdatePicker.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="btnbartitle">
        <div>
           <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Credit_User_yhjfqkzxf")%>：<strong style=" color:Red;"><%=xuefen %></strong> 
        </div>
    </div>
    <div class="btnbarcontetn">
        <div style="float: left;">
          <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Credit_User_Date")%> ：<input id="start" type="text" onClick="WdatePicker()" value="<%=start %>" />&nbsp;&nbsp;
            --&nbsp;&nbsp;<input id="end" type="text" onClick="WdatePicker()" value="<%=end %>" />
          <input  type="button" value="<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("GetButton")%>" onclick="chaxun()"/>
          <input  style="display:none" id="userid" type="text" value="<%=uid %>" />
       
        </div>
        <div style="text-align: right">
            <uc2:LoadButton ID="LoadButton1" runat="server" />
        </div>
    </div>
    <script src="/Themes/Scripts/LodopFuncs.js" type="text/javascript"></script>
    <object  id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0> 
           <embed id="LODOP_EM" type="application/x-print-lodop" width=0 height=0></embed>
    </object>
   <div class="div-body"  id="div-body">
        <%=TableHtml %>
    </div>
    <uc1:PageControl ID="PageControl1" runat="server" />
    </form>
<script type="text/javascript">
    $(function () {
        //把分页定位到屏幕下面
        divresize(90);
    })
    //打印
    var LODOP; //声明为全局变量 
    function printer() {
        CreateOneFormPage();
        LODOP.PREVIEW();
    }
    function CreateOneFormPage() {
        LODOP = getLodop(document.getElementById('LODOP_OB'), document.getElementById('LODOP_EM'));
        LODOP.SET_PRINT_STYLE("FontSize", 18);
        LODOP.SET_PRINT_STYLE("Bold", 1);
        LODOP.ADD_PRINT_TEXT(50, 231, 360, 59, "<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Certificate_Print")%>");
        var strStyleCSS = "<link href='/Themes/Styles/Site.css' type='text/css' rel='stylesheet'>";
        var strBodyStyle = "<style>table{width:100%;border: 1 solid #000000;border-collapse:collapse }td {border: 1 solid #000000;border-collapse:collapse }</style>";
        LODOP.ADD_PRINT_HTM(0, 0, '100%', '100%', strStyleCSS + strBodyStyle + document.getElementById("div-body").innerHTML);
    };
    function chaxun() {
        var key = $("#userid").val();
        var start = $("#start").val();
        var end = $("#end").val();
        location.href = "/Training/Credit/Credit_User.aspx?key=" + key + "&&start=" + start + "&&end=" + end;
    }
         //编辑
        function edit() {
            var key = CheckboxValue();
            
            if (IsEditdata(key)) {
                location.href = "/Training/Credit/Credit_Form.aspx?key=<%=userkey %>&Credit_ID="+key;

               // top.openDialog(url, 'Credit_User', '<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("User_information")%> - <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Credit_Form_xuefen")%>', 800, 350, 50, 50);
            }
        }
    </script>
</body>
</html>
