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

OA系统

开发平台:

ASP/ASPX

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="employee_where_d.aspx.cs" Inherits="web_approvel_employee_where_1_d" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" >
  4. <head runat="server">
  5.     <title>无标题页</title>
  6. </head>
  7. <body>
  8. <center>
  9.     <form id="form1" runat="server">
  10.     <div>
  11.         <asp:GridView ID="GridView1" runat="server" AllowSorting="True" AutoGenerateColumns="False"
  12.             DataSourceID="SqlDataSource1" OnRowCreated="Setcolor" Width="186px">
  13.             <Columns>
  14.                 <asp:TemplateField HeaderText="刷卡時間" >
  15.                     
  16.                     <ItemTemplate>
  17.                         <asp:Label ID="Label1" runat="server"   ></asp:Label>
  18.                     </ItemTemplate>
  19.                 </asp:TemplateField>
  20.             </Columns>
  21.         </asp:GridView>
  22.     
  23.     </div>
  24.         <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
  25.             SelectCommand="select a.id,card_t,card_status from oa_card_time as a left join oa_employee as b on a.emp_card_no=b.work_card_no1 where    &#13;&#10; card_date=@card_date and b.id=@e_id">
  26.             <SelectParameters>
  27.                 <asp:QueryStringParameter Name="card_date" QueryStringField="card_date" />
  28.                 <asp:QueryStringParameter Name="e_id" QueryStringField="e_id" />
  29.             </SelectParameters>
  30.         </asp:SqlDataSource>
  31.     </form>
  32.     </center>
  33. </body>
  34. </html>