<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="khupload.aspx.cs" Inherits="Web.kh.show.khupload" %>

<!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>OA标题页</title>
    <link href="../../css/css.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="fom" runat="server">
        <div id ="main-c-03-right" >
            <table cellpadding="0"; cellspacing ="0"; style =" width :100%;background-image: url('../../css/images/right_top.png'); background-repeat :repeat-x" >
                <tr>
                    <td style ="width :720px; height :34px;  background-image: url('../../css/images/atghtj.png');	background-repeat: no-repeat;
                	background-position: left top;"><div id="main-c-03-right02-top">
                	   <!--这里添加页面标题 -->
                      	    批量导入数据
                      	
                	</div></td>

                </tr>
            </table>
            <div id="main-c-03-right02-main">
            
 



<!--栏目开始 -->
            <!--这里添加内容 -->
<table style ="width :100%">
                <tr>
                    <td >
                        选择考核周期：<asp:DropDownList ID="ddlDate" runat="server">
                        </asp:DropDownList>
                       &nbsp;部门：<asp:DropDownList 
                               ID="ddlDepartment" runat="server" AutoPostBack="True" 
                               onselectedindexchanged="ddlDepartment_SelectedIndexChanged"> </asp:DropDownList>
                      <asp:FileUpload ID="FileUpload1" runat="server" />
        &nbsp;<asp:Button ID="btLoad1" runat="server" onclick="btLoad1_Click" Text="导入预览" />（只显示前10行数据明细）

            <asp:Label ID="lbRowsNum1" runat="server" ForeColor="Red"></asp:Label>
                    </td>
                    <td style ="text-align :right ; padding-right :10px ">
                              点击后面图标下载EXCEL样表
                        
                         <asp:ImageButton ID="ImageButton1" runat="server" 
                                  ImageUrl="~/css/images/excel.jpg" onclick="ImageButton1_Click" />  </td>
                </tr>
            </table>
           <div style =" height :30px; font-weight :bold">导入数据预览（如果数据多于10行，预览中只显示前10行）  <asp:Label ID="Label1" runat="server" ForeColor="Red"></asp:Label></div> 
                  
      <div style ="margin-top :10px; margin-bottom :10px"  >
        <asp:GridView ID="GridView1" runat="server" BorderWidth="1px" Width="100%" 
              CssClass="gv" cellspacing="1">
            <RowStyle BorderWidth="1px" CssClass="gvrow" />
            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
        </asp:GridView></div>
        <table style ="width :100%" >
        <tr>
        <td style ="text-align :left ">
            &nbsp;</td>
        <td style ="text-align :right ">
            <asp:Button ID="btExcel" runat="server" CausesValidation="False" 
                onclick="btExcel_Click" Text="导出到EXCEL" Visible="False" />
            </td>
        </tr>
        </table>
        <div style =" height :30px; font-weight :bold">系统设定项目和EXCEL表项目对照</div>
        <table border="1" class ="table " cellpadding ="0" cellspacing ="0" style ="width :100%;border-collapse:collapse;"  >
                    <tr>
                        <td class ="tabletd_right " style ="width:110px">
                            系统设定项目</td>
                                                <td class ="tabletd_left ">
                                                    <asp:Label ID="lbsql" runat="server"></asp:Label>
                                                &nbsp;</td>
                                            </tr>
                                            <tr>
                                                <td class ="tabletd_right ">
                                                    EXCEL表中项目</td>
                                                <td class ="tabletd_left ">
                                                    <asp:Label ID="lbexcel" runat="server"></asp:Label>
                                                &nbsp;</td>
                                            </tr>
                                            </table>

                                            <asp:Button ID="btLoadt" runat="server" Text="确认导入" Visible ="false" 
                                                    onclick="btLoadt_Click" />

                </div>
            </div>
        </form>
    </body>
</html>

