<%@ Page Language="C#" AutoEventWireup="true" CodeFile="myfinger.aspx.cs" Inherits="myfinger" EnableEventValidation="false" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<style type="text/css">
body {
font-family: Arial;
font-size: 10pt;
}
td {
cursor: pointer;
}
.hover_row {
background-color: #FFFFBF;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div style="margin: 0px auto; width: 99%; direction: rtl">
<!-- title -->
<div style="text-align: center; font-size: 22px; margin: 0px auto; width: 99%; align-content: center; font-weight: 700; color: #660066;">استعلام عن دخول وخروج للجهاز القديم والجديد</div>
<!-- main query -->
<div>
<table style="margin: 10px auto">
<tr>
<td>
<asp:Label ID="Label1" Style="font-weight: bolder" runat="server" Text="رقم"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtempid0" runat="server" Width="120px" autocomplete="off"></asp:TextBox>
</td>
<td class="auto-style1">
<asp:Button ID="Button1" runat="server" Text="ارسال" Width="87px" OnClick="Button1_Click" /></td>
</tr>
<tr>
<td>
<asp:Label ID="Label2" Style="width:22px;font-weight: bolder" runat="server" Text="من تاريخ"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtfromdate0" runat="server" Width="114px" AutoPostBack="True" OnTextChanged="txtfromdate0_TextChanged">1439-03-15</asp:TextBox></td>
<td Style="text-align:left;width:22px;">
<asp:Label ID="Label3" Style="font-weight: bolder" runat="server" Text="الى تاريخ"></asp:Label>
</td>
<td>
<asp:TextBox ID="txttodate0" runat="server" Width="114px" AutoPostBack="True" OnTextChanged="txttodate0_TextChanged"></asp:TextBox></td>
</tr>
<tr>
<td>من</td>
<td colspan="2">
<asp:Label ID="lblsdateGreg" runat="server"></asp:Label>
</td>
<td>
<asp:Label ID="lbledateGreg" runat="server"></asp:Label>
</td>
</tr>
</table>
<div style="text-align:center;margin: 5px auto;;width: 400px; border: 1px solid blue"> <asp:Literal ID="lblmsg" runat="server"></asp:Literal></div>
<!-- Gridview query -->
<div style="margin: 0px auto;;width: 1024px; border: 1px solid blue">
<asp:GridView AllowPaging="True" PageSize="80" ID="mygv" runat="server" BackColor="White" BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px" CellPadding="4" AutoGenerateColumns="False" Width="1024px" OnPageIndexChanging="mygv_PageIndexChanging" OnRowDataBound="OnRowDataBound" OnSelectedIndexChanged="OnSelectedIndexChanged">
<RowStyle BackColor="White" ForeColor="#330099" />
<Columns>
<asp:BoundField DataField="EmployeeID" HeaderText="رقم الموظف">
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="10px" />
</asp:BoundField>
<asp:BoundField DataField="employeeName" HeaderText="اسم الموظف">
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="110px" />
</asp:BoundField>
<asp:BoundField DataField="name" HeaderText="اسم القسم">
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="109px" />
</asp:BoundField>
<%-- <asp:BoundField DataField="myday" HeaderText="اليوم">
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="15px" />
</asp:BoundField>--%>
<asp:TemplateField HeaderText="اليوم">
<ItemTemplate>
<asp:Label ID="Label4" runat="server" Text=`<%# ConvertArDay(Eval("myday").ToString()) %>`></asp:Label>
</ItemTemplate>
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="15px" />
</asp:TemplateField>
<asp:BoundField DataField="Gregorian" HeaderText="تاريخ الميلادي">
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="45px" />
</asp:BoundField>
<asp:BoundField DataField="Hijri" HeaderText="التاريخ الهجري">
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="45px" />
</asp:BoundField>
<asp:BoundField DataField="myin" HeaderText="دخول">
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="15px" />
</asp:BoundField>
<asp:BoundField DataField="myOut" HeaderText="خروج">
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="15px" />
</asp:BoundField>
<asp:BoundField DataField="shortage" HeaderText="التاخير">
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="15px" />
</asp:BoundField>
<asp:BoundField DataField="isAbsent" HeaderText="الغياب">
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="15px" />
</asp:BoundField>
<%-- <asp:TemplateField HeaderText="Picture">
<ItemTemplate>
<asp:Image ID="imgPicture" runat="server" ImageUrl=`<%# Eval("Image", "~/Images/{0}") %>` />
</ItemTemplate>
</asp:TemplateField>--%>
<%-- <asp:TemplateField HeaderText="الجهاز">
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text=`<%# Convertdev(Eval("device").ToString()) %>`></asp:Label>
</ItemTemplate>
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="15px" />
</asp:TemplateField>--%>
</Columns>
<FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
<PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
<HeaderStyle BackColor="#125" Font-Bold="True" ForeColor="#FFFFCC" />
<SortedAscendingCellStyle BackColor="#FEFCEB" />
<SortedAscendingHeaderStyle BackColor="#AF0101" />
<SortedDescendingCellStyle BackColor="#F6F0C0" />
<SortedDescendingHeaderStyle BackColor="#7E0000" />
</asp:GridView>
</div>
</div>
</div>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript">
$(function () {
$("[id*=mygv] td").hover(function () {
$("td", $(this).closest("tr")).addClass("hover_row");
}, function () {
$("td", $(this).closest("tr")).removeClass("hover_row");
});
});
</script>
</form>
</body>
</html>