<%@ Page Title="签到统计" Language="C#" MasterPageFile="~/BackStage/SiteMaster.Master" AutoEventWireup="true" CodeBehind="Frm_AttendanceList.aspx.cs" Inherits="AndroidSevice.Web.BBCX.Frm_AttendanceList" %>
<%@ Register assembly="AspNetPager" namespace="Wuqi.Webdiyer" tagprefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
 function sAlert(info) {
        var message = info;
        layer.alert(message, 8); //风格一，layer弹出层特效
    }
 function ShowDataHelp(_url, _title, _handler) {
        layer.open({
            type: 2,
            area: ['90%', '95%'],
            fix: false, //不固定
            maxmin: true,
            content: _url
        });
    }
    function sAlertOut(info) {
        layer.alert(info, { closeBtn: 0
        }, function () {
            window.location.href = '../../default.aspx'; //刷新父页面
        });
    }
 </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="content-header">
				<div class="btn-group">
				</div>
			</div>
	  <div id="breadcrumb">
				<a href="#" title="Go to Home" class="tip-bottom"><i class="icon-home"></i>物联通管理</a>
                <a href="#" title="Go to Home" class="tip-bottom"><i class="icon-home"></i>数据查询</a>
				<a href="#" class="current">签到统计</a>
	  </div>
	<div class="container-fluid">
				<div class="row-fluid">
					<div class="span12">
						<div class="widget-box">
							<div class="widget-title">
								<span class="icon">
									<i class="icon-th-list"></i>
								</span>
								<h5>签到统计</h5>
							</div>
							<div class="widget-content">
                             <table id="Table1" class="table table-bordered table-striped table-hover">
                                    <tbody>
                                    <tr>
                                            <td></td>
                                            <td>业务员：<span>
                                            <select class="selectstyle inputwidth" name="employee" id="employee">
                                             <option  value=""></option>
                                            <% if (Bindlist != null && Bindlist.Rows.Count!=0)
                                               {
                                                   for (int i = 0; i < Bindlist.Rows.Count;i++)
                                                   {%>
                                                 <option <%=Bindlist.Rows[i]["LoginId"].ToString()==_employee?"selected":"" %> value="<%=Bindlist.Rows[i]["LoginId"].ToString() %>"><%=Bindlist.Rows[i]["LoginName"].ToString() %></option>
                                            <%
                                                }
                                                } %>
                                            </select></span>
                                            </td>
                                            <td><span>签到日期：</span><span>
                                            <input type="text" class="inputwidth" onFocus="WdatePicker({isShowClear:false,readOnly:true})" name="strdate" id="strdate" value="<%=_strdate %>"/></span>
                                            <span>
                                            <input type="text" class="inputwidth" onFocus="WdatePicker({isShowClear:false,readOnly:true})"  name="endate" id="endate" value="<%=_enddate %>"/></span></td>
                                            <td><button type="submit" name="sub" value="sub" class="btn" ><i class="icon-search"></i>查询</button>&nbsp;&nbsp;&nbsp;
                                        <button type="submit" name="export" value="export" class="btn" >导出Excel</button></td>
									</tr>
                                    </tbody>
							</table>
                            <table id="wew" class="table table-bordered table-striped table-hover">
                                    <thead>
										<tr>
                                            <th style=" width:30px">序号</th>
											<th>业务员</th>
											<th>日期</th>
											<th>签到次数</th>
                                            <th>地图展示</th>
										</tr>
									</thead>
                                    <tbody>
                                   <% if (dtlists != null && dtlists.Rows.Count != 0)
                                      {
                                          for (int i = 0; i < dtlists.Rows.Count; i++)
                                          {
                                         %>
                                    <tr>
                                        <td style=" width:30px"><%=i+1 %></td>
                                        <td><%=dtlists.Rows[i]["EmployeeName"].ToString()%></td>
                                        <td><%=dtlists.Rows[i]["Time"].ToString()%></td>
                                        <td><%=dtlists.Rows[i]["obligate"].ToString()%></td>
                                        <td><button  type="button"  class="btn" onclick="ShowDataHelp('Frm_BaiDu_AttList.aspx?employeeid=<%=dtlists.Rows[i]["EmployeeId"].ToString() %>&starttime=<%=dtlists.Rows[i]["Time"].ToString()%>&endtime=<%=dtlists.Rows[i]["Time"].ToString() %>','','')">显示</button></td>
									</tr>
                                    <%  }
                                      } %>
                                    </tbody>
							</table>
                            <div class="pager">
                            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" FirstPageText="首页" LastPageText="尾页" PrevPageText="上一页" NextPageText="下一页" 
                            onpagechanging="AspNetPager1_PageChanging"
                            PageSize="20" AlwaysShow="True" />
                            </div>
							</div>
						</div>
					</div>
				</div>
			</div>
</asp:Content>
