kaoqin.aspx
上传用户:xrffrp
上传日期:2022-03-25
资源大小:22155k
文件大小:4k
源码类别:

OA系统

开发平台:

ASP/ASPX

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="kaoqin.aspx.cs" Inherits="web_123_kaoqin" %>
  2. <%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
  3.     Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  5. <html xmlns="http://www.w3.org/1999/xhtml" >
  6. <head runat="server">
  7.     <title>无标题页</title>
  8.       <script type="text/javascript" language="javascript">
  9.     function selectDepartment()
  10.     {
  11.         var url = "../personnel/department/department_select_tree.aspx";
  12.         var features = "width=400,height=500,top=200,left=250,location=no,toolbar=no,status=no,resizable=yes,scrollbars=yes";
  13.         var selectDepartment = open(url, 'selectDepartment', features);
  14.         selectDepartment.focus();
  15.     }
  16.     function setDepartment(deptId, deptName)
  17.     {
  18.         document.all.Txtdept.value=deptName;
  19.         document.all.DepartmentId.value=deptId;
  20.     }
  21.     function changeEmpNo()
  22.     {
  23.         document.all.TxtLoginName.value = document.all.TxtNo.value;
  24.         document.all.TxtPassword.value = document.all.TxtNo.value;
  25.     }
  26.     </script>
  27. </head>
  28. <body>
  29.     <form id="form1" runat="server">
  30.     <div>
  31.         <asp:Label ID="Label3" runat="server" BackColor="#00C0C0" BorderColor="White" BorderStyle="None"
  32.             Font-Names="Impact" Font-Size="Large" Font-Strikeout="False" Font-Underline="True"
  33.             Text="    考 勤 黑 名 單" Width="410px"></asp:Label><br />
  34.         <asp:Label ID="Label1" runat="server" Text="日期" Width="58px"></asp:Label>
  35.         <asp:TextBox ID="TxtDate" runat="server"></asp:TextBox>&nbsp;
  36.          <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/images/calbtn.gif" OnClick="ImageButton1_Click"
  37.                     Style="position: relative" BackColor="Cyan" />
  38.         <asp:Calendar ID="Calendar1" runat="server" BackColor="White" BorderColor="White"
  39.             BorderWidth="1px" Font-Names="Verdana" Font-Size="9pt" ForeColor="Black" Height="127px"
  40.             NextPrevFormat="FullMonth" Width="269px" Visible="false" OnSelectionChanged="Calendar1_SelectionChanged">
  41.             <SelectedDayStyle BackColor="#333399" ForeColor="White" />
  42.             <TodayDayStyle BackColor="#CCCCCC" />
  43.             <OtherMonthDayStyle ForeColor="#999999" />
  44.             <NextPrevStyle Font-Bold="True" Font-Size="8pt" ForeColor="#333333" VerticalAlign="Bottom" />
  45.             <DayHeaderStyle Font-Bold="True" Font-Size="8pt" />
  46.             <TitleStyle BackColor="White" BorderColor="Black" BorderWidth="4px" Font-Bold="True"
  47.                 Font-Size="12pt" ForeColor="#333399" />
  48.         </asp:Calendar>
  49.         <br />
  50.         <asp:Label ID="Label2" runat="server" Text="部門" Width="56px"></asp:Label>
  51.         <asp:TextBox ID="Txtdept" runat="server"></asp:TextBox>
  52.         <asp:Button ID="Button2" runat="server" Text="選擇部門"  OnClientClick="selectDepartment()" BackColor="LightGray" /><br />
  53.         <asp:Button ID="Button1" runat="server" Text="查     询" OnClick="Button1_Click" BackColor="White" BorderStyle="Ridge" Width="164px" />
  54.         <asp:HiddenField ID="DepartmentId" runat="server" />
  55.         &nbsp; 
  56.         <rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" Font-Size="8pt"
  57.             Height="433px" Width="921px" Visible="false" BackColor="#00C0C0" >
  58.             <LocalReport ReportPath="web123Report1.rdlc">
  59.                 <DataSources>
  60.                      <rsweb:ReportDataSource DataSourceId="ObjectDataSource1" Name="kaoqin" />
  61.                 </DataSources>
  62.             </LocalReport>
  63.         </rsweb:ReportViewer>
  64.     
  65.     </div>
  66.     </form>
  67. </body>
  68. </html>