<%@ Page Title="" Language="C#" MasterPageFile="~/BackStage/SiteMaster.Master" AutoEventWireup="true" CodeBehind="Frm_ImagesSearchList.aspx.cs" Inherits="AndroidSevice.Web.BBCX.Frm_ImagesSearchList" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
        function ShowDataHelp(_url, _title, _handler) {
            layer.open({
                type: 2,
                area: ['70%', '90%'],
                fix: false, //不固定
                maxmin: true,
                content: _url
            });
        }
        function ShowDataHelp1(_url, _title, _handler) {
            layer.open({
                type: 2,
                area: ['40%', '90%'],
                fix: false, //不固定
                maxmin: true,
                content: _url
            });
        }
        function sAlert(info) {
            var message = info;
            layer.alert(message, 8); //风格一，layer弹出层特效
        }

        function SelectAll() {
            var checkboxs = document.getElementsByName("Btypecheck");
            for (var i = 0; i < checkboxs.length; i++) {
                var e = checkboxs[i];
                e.checked = !e.checked;
            }
        }
        function sAlertok(info) {
            layer.alert(info, { closeBtn: 0
            }, function () {
                parent.location.reload(); //刷新父页面
            });
        }
        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="#" 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 class="buttons">
                            <button type="button"   onclick=ShowDataHelp1('Frm_ImageTypeManage.aspx?','','') value="sub" class="btn btn-mini"><i class="icon-plus-sign"></i>照片类型管理</button>
                            </div>
                        </div>
                        <div class="widget-content">
                            <table id="query" class="table table-bordered table-striped table-hover">
                                <tbody>
                                    <tr>
                                        <td><span>日期：</span><span>
                                        <input type="text" class="inputwidth" style=" width:90px" onFocus="WdatePicker({isShowClear:false,readOnly:true})" name="strdate" id="strdate" value="<%=_strDate %>"/></span>
                                        <span>
                                        <input type="text" class="inputwidth" style=" width:90px"  onFocus="WdatePicker({isShowClear:false,readOnly:true})"  name="endate" id="endate" value="<%=_endDate %>"/></span></td>
										<td>
                                        <span>客户名称：
                                                <input type="text" name="customerId" id="customerId" style=" width:170px" value="<%=_customerName %>" disabled="disabled"/>
                                                </span>
                                                <a title="" onclick=ShowDataHelp('Frm_CustomerData.aspx?','','') class="btn btn-mini" href="#"><i class="icon-plus"></i></a>
                                                <asp:Button ID="Button1" runat="server"  class="icon-minus"   onclick="Button1_Click" Visible="false" ></asp:Button>
                                                <button type="button" onclick="window.location.href='Frm_ImagesSearchList.aspx?del=del1'" class="btn btn-mini" ><i class="icon-minus"></i></button>                                
                                        </td>
                                        <td>
                                        <span>业务员：
                                                <input type="text" name="userId" id="userId" style=" width:90px"  value="<%=_userName %>" disabled="disabled"/>
                                                </span>
									            <a title="" onclick="ShowDataHelp('Frm_ZDRUserEdit.aspx?','','')" class="btn btn-mini" href="#"><i class="icon-plus"></i></a>
                                                <asp:Button ID="Button2" runat="server"  class="icon-minus"   onclick="Button2_Click"  Visible="false"></asp:Button>
                                                <button type="button" onclick="window.location.href='Frm_ImagesSearchList.aspx?del=del2'" class="btn btn-mini" ><i class="icon-minus"></i></button>
                                        </td>
                                        <td><button type="submit" name="sub" value="sub" class="btn" >查询</button>&nbsp;&nbsp;&nbsp;
                                      <%--  <button type="submit" name="export" value="export" class="btn" >导出Excel</button>--%>
                                      
                                            <asp:HiddenField ID="HiddenField1" runat="server" Visible="false" />
                                            <asp:HiddenField ID="HiddenField2" runat="server" Visible="false"/>
                                        </td>
									</tr>
                                </tbody>
                            </table>
                            <table id="wew" class="table table-bordered table-striped table-hover">
                                <thead>
                                    <tr>
                                        <th style=" width:20px">
                                            序号
                                        </th>
                                        <th>
                                            业务员
                                        </th>
                                        <th>
                                            客户
                                        </th>
                                        <th>
                                            日期
                                        </th>
                                        <th>
                                            照片类型
                                        </th>
                                        <th>
                                            地址
                                        </th>
                                        <th>
                                            机器号
                                        </th>
                                         <th>
                                            备注
                                        </th>
                                        <th>
                                            照片数
                                        </th>
                                        <th>
                                            图片详情
                                        </th>
                                        <th>
                                            显示地图
                                        </th>
                                        <th>
                                            操作
                                        </th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <%
                                        if (dtList != null && dtList.Rows.Count != 0)
                                        {
                                            for (int i = 0; i < dtList.Rows.Count; i++)
                                            {
                                    %>
                                    <tr>
                                         <td style=" width:20px"><%=i+1 %></td>
                                        <td>
                                            <%=dtList.Rows[i]["fullname"].ToString()%>
                                        </td>
                                        <td>
                                            <%=dtList.Rows[i]["cusname"].ToString()%>
                                        </td>
                                        <td>
                                            <%=dtList.Rows[i]["billdate"].ToString()%>
                                        </td>
                                        <td>
                                            <%=dtList.Rows[i]["Typename"].ToString()%>
                                        </td>
                                        <td>
                                            <%=dtList.Rows[i]["address"].ToString()%>
                                        </td>
                                        <td>
                                            <%=dtList.Rows[i]["DeviceID"].ToString()%>
                                        </td>
                                        <td>
                                            <%=dtList.Rows[i]["COMMENT"].ToString()%>
                                        </td>
                                        <td>
                                            <%=dtList.Rows[i]["num"].ToString()%>
                                        </td>
                                         <td>           
                                            <a onclick=ShowDataHelp1('Frm_ImageView.aspx?page=imagesearchlist&tname=<%=dtList.Rows[i]["Typename"].ToString() %>&orderid=<%=Server.UrlEncode(dtList.Rows[i]["BillId"].ToString()) %>','','') ><button type="button" class="btn" >显示</button></a>
                                        </td>
                                         <td>
                                            <a onclick=ShowDataHelp('Frm_ShowCustomerBDMap.aspx?type=imageMap&id=<%=Server.UrlEncode(dtList.Rows[i]["BillId"].ToString()) %>','','') ><button type="button" class="btn" >显示</button></a>
                                        </td>
                                         <td>
                                            <a ><button type="button" class="btn" onclick="javaScript:if(confirm('您确定要删除吗？')) window.location.href='Frm_ImagesSearchList.aspx?deldata=deldata&sub=sub&id=<%=Server.UrlEncode(dtList.Rows[i]["BillId"].ToString()) %>&strdate=<%=_strDate %>&endate=<%=_endDate %>&typeid=<%=dtList.Rows[i]["ImageTypeID"].ToString()%>'">删除</button></a>
                                        </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>
