<%@ Page Title="商机客户" Language="C#" MasterPageFile="~/BackStage/SiteMaster.Master" AutoEventWireup="true" CodeBehind="Frm_MyCustomerNet.aspx.cs" Inherits="AndroidSevice.Web.BBCX.Frm_XunDian_MyCustomerNet" %>
<%@ 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: ['700px', '500px'],
            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>
    <style type="text/css">
        .style1
        {
            height: 27px;
        }
    </style>
</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=ShowDataHelp('Frm_ListCustomerNet.aspx','','') 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>行业：
                                            <select class="selectstyle inputwidth" name="Network" id="Network">
                                            <option value=""></option>
                                            <%
                                                if (dttype != null && dttype.Rows.Count != 0)
                                                {
                                                    for (int i = 0; i < dttype.Rows.Count; i++)
                                                    {
                                                 %>
                                            <option <%=dttype.Rows[i]["nub"].ToString()==Network?"selected":"" %> value="<%=dttype.Rows[i]["nub"].ToString() %>"><%=dttype.Rows[i]["TypeName"].ToString()%></option>
                                            <%  }
                                                }%>
                                            </select>
                                            </span>
                                            </td>
                                            <td>客户：<input type="text" name="cusname" id="cusname" value="<%=cusname %>"/></td>
                                            <td>业务员：
                                            <select class="selectstyle" name="emporyid" id="emporyid">
                                            <option value=""></option>
                                             <%
                                                if (dtempory != null && dtempory.Rows.Count != 0)
                                                {
                                                    for (int i = 0; i < dtempory.Rows.Count; i++)
                                                    {
                                                 %>
                                            <option <%=dtempory.Rows[i]["TypeID_"].ToString()==emporyid?"selected":"" %> value="<%=dtempory.Rows[i]["TypeID_"].ToString() %>"><%=dtempory.Rows[i]["FullName"].ToString()%></option>
                                            <%  }
                                                }%>
                                            </select></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></td>
									</tr>
                                    </tbody>
							 </table>
                             <table id="wew" class="table table-bordered table-striped table-hover">
                                    <thead>
										<tr>
                                            <th class="style1" style=" width:30px">序号</th>
											<th class="style1">行业</th>
											<th class="style1">业务员</th>
											<th class="style1">客户</th>
                                            <th class="style1">联系人</th>
                                            <th class="style1">电话</th>
                                            <th class="style1">地址</th>
                                            <th class="style1">沟通内容</th>
                                            <th class="style1">地图展示</th>
										</tr>
									</thead>
                                    <tbody>
                                    <%
                                        if(dtlist!=null&&dtlist.Rows.Count!=0)
                                        {
                                            for (int i = 0; i < dtlist.Rows.Count;i++)
                                            {
                                        %>
                                    <tr>
                                            <td style=" width:30px"><%=i+1%></td>
											<td><%=dtlist.Rows[i]["typename"].ToString()%></td>
                                            <td><%=dtlist.Rows[i]["LoginName"].ToString()%></td>
                                            <td><%=dtlist.Rows[i]["CustomName"].ToString()%></td>
                                            <td><%=dtlist.Rows[i]["Person"].ToString()%></td>
                                            <td><%=dtlist.Rows[i]["tel"].ToString()%></td>
                                            <td><%=dtlist.Rows[i]["address"].ToString()%></td>
                                            <td><button type="button" onclick=ShowDataHelp('Frm_MyCustomerNetDeta.aspx?loginid=<%=dtlist.Rows[i]["loginid"].ToString() %>&typeid=<%=dtlist.Rows[i]["nub"].ToString()%>&cusname=<%=dtlist.Rows[i]["CustomName"].ToString() %>','','') class="btn btn" ><i class="icon-plus-sign"></i>查看</button></td>
                                            <td><button type="button" onclick=ShowDataHelp('Frm_BaiDu_AttDetaList.aspx?id=<%=dtlist.Rows[i]["longitude"].ToString() %>&Time=<%=dtlist.Rows[i]["latitude"].ToString() %>&flag=<%=dtlist.Rows[i]["CustomName"].ToString()%>','','') class="btn btn" ><i class="icon-plus-sign"></i>查看</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>
