<%@ Page Title="" Language="C#" MasterPageFile="~/BackStage/SiteMaster.Master" AutoEventWireup="true" CodeBehind="Frm_CustomerBtypelode.aspx.cs" Inherits="AndroidSevice.Web.XDGL.Frm_CustomerBtypelode" %>
<%@ 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) {
            if (_title == "1") {
                layer.open({
                    type: 2,
                    area: ['50%', '70%'],
                    fix: false, //不固定
                    maxmin: true,
                    content: _url
                });
             }
            else {
                layer.open({
                    type: 2,
                    area: ['80%', '80%'],
                    fix: false, //不固定
                    maxmin: true,
                    content: _url
                });
            }
      }
      function sAlert(info) {
          var message = info;
          layer.alert(message, 8); //风格一，layer弹出层特效
      }
      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>
							<div class="widget-content">
                             <!---->
                             <div class="container-fluid">
                    <div class="row-fluid">
					<div class="span3" style="width:20%">
						<div class="widget-box">
							<div class="widget-title">
								<span class="icon">
									<i class="icon-eye-open"></i>
								</span>
								<h5>业务员信息</h5>
							</div>
							<div class="widget-content nopadding">
								<table class="table table-bordered table-striped table-hover">
									<thead>
										<tr>
											<th style=" width:25px">序号</th>
											<th>业务员</th>
										</tr>
									</thead>
									<tbody>
                                    <%if (dtuserlist != null && dtuserlist.Rows.Count != 0)
                                      {
                                          for (int i = 0; i < dtuserlist.Rows.Count; i++)
                                          {
                                          %>
										<tr>
                                             <td style="width:25px"><%=i+1 %></td>
											<td><a href="Frm_CustomerBtypelode.aspx?etypeid=<%=dtuserlist.Rows[i]["etypeid"].ToString() %>&etypename=<%=dtuserlist.Rows[i]["fullname"].ToString() %>"><%=dtuserlist.Rows[i]["fullname"].ToString()%></a></td>
										</tr>
                                        <%
                                          }
                                      }
                                             %>
									</tbody>
								</table>
							</div>
						</div>
                            <webdiyer:aspnetpager ID="AspNetPagerUser" runat="server" FirstPageText="首页" 
                            LastPageText="尾页" PrevPageText="上一页" NextPageText="下一页" 
                            onpagechanging="AspNetPagerUser_PageChanging"
                            PageSize="20" NumericButtonCount="3" AlwaysShow="True" />
					</div>
					<div class="span3"  style="width:25%">
						<div class="widget-box">
							<div class="widget-title">
								<span class="icon">
									<i class="icon-arrow-right"></i>
								</span>
								<h5>线路信息&nbsp;&nbsp;(<%=_etypename %>)</h5>
                                <div class="buttons">
									<button type="button" onclick=ShowDataHelp('Frm_BtypeLodeEdit.aspx?sub=Curlodeadd&empory1=<%=_etypeid%>','1','') class="btn btn-mini" ><i class="icon-plus-sign"></i>增加线路</button>
                                    <asp:HiddenField ID="HiddenField1" runat="server" />
                                    <asp:HiddenField ID="HiddenField2" runat="server" />
                                    <asp:HiddenField ID="HiddenField3" runat="server" />
                                </div>
							</div>
							<div class="widget-content nopadding">
								<table class="table table-bordered table-striped table-hover">
									<thead>
										<tr>
											<th style=" width:25px">序号</th>
											<th>线路名称</th>
										</tr>
									</thead>
									<tbody>
                                    <%if (dtlodelist != null && dtlodelist.Rows.Count != 0)
                                      {
                                          for (int i = 0; i < dtlodelist.Rows.Count; i++)
                                          { %>
										<tr>
                                              <td style="width:25px"><%=i+1 %></td>
											<td><a href="Frm_CustomerBtypelode.aspx?lodeid=<%=dtlodelist.Rows[i]["num"].ToString() %>&etypeid=<%=_etypeid%>&etypename=<%=_etypename%>&lodename=<%=dtlodelist.Rows[i]["fullname"].ToString()%>"><%=dtlodelist.Rows[i]["fullname"].ToString() %></a></td>
										</tr>
                                    <% }
                                      }%>
									</tbody>
								</table>
							</div>
						</div>
                            <webdiyer:aspnetpager ID="AspNetPagerLode" runat="server" FirstPageText="首页" 
                                    LastPageText="尾页" PrevPageText="上一页" NextPageText="下一页" 
                            onpagechanging="AspNetPagerLode_PageChanging"
                            PageSize="20" NumericButtonCount="10" AlwaysShow="True" />
					</div>
                    <div class="span4"  style="width:48%">
						<div class="widget-box">
							<div class="widget-title">
								<span class="icon">
									<i class="icon-arrow-right"></i>
								</span>
								<h5>客户线路&nbsp;&nbsp;(<%=_lodename %>)</h5>
                                <div class="buttons">
									<a title="增加客户线路" onclick=ShowDataHelp('Frm_CustomerBtypelodeEdit.aspx?lodeid=<%=_lodeid%>&empory=<%=_etypeid%>','2','') class="btn btn-mini" href="#"><i class="icon-plus-sign"></i>增加客户线路</a>
								</div>
							</div>
							<div class="widget-content nopadding">
								<table class="table table-bordered table-striped table-hover">
									<thead>
										<tr>
											<th style=" width:25px">序号</th>
                                            <th>客户名称</th>
											<th>地址</th>
                                            <th>删除</th>
										</tr>
									</thead>
									<tbody>
                                     <%if (dtuserlodelist != null && dtuserlodelist.Rows.Count != 0)
                                       {
                                           for (int i = 0; i < dtuserlodelist.Rows.Count; i++)
                                           { %>
										<tr>
                                             <%--<td style="width:25px"><%=i+1 %></td>--%>
                                              <td style="width:25px"><%=dtuserlodelist.Rows[i]["sort"].ToString()%></td>
											<td><a href="#"><%=dtuserlodelist.Rows[i]["FullName"].ToString()%></a></td>
											<td><a href="#"><%=dtuserlodelist.Rows[i]["Address"].ToString()%></a></td>
                                            <td><button type="button" onclick="javaScript:if(confirm('您确定要删除吗？')) window.location.href='Frm_CustomerBtypelode.aspx?subdel=del&num=<%=dtuserlodelist.Rows[i]["num"].ToString() %>&etypeid=<%=_etypeid%>&etypename=<%=_etypename%>&lodeid=<%=_lodeid %>&lodename=<%=_lodename%>'" class="btn">删除</button></td>
										</tr>
                                        <%  }
                                       }%>
									</tbody>
								</table>
							</div>
						</div>
                            <webdiyer:aspnetpager ID="AspNetPagerLodeuser" runat="server" FirstPageText="首页" 
                            LastPageText="尾页" PrevPageText="上一页" NextPageText="下一页" 
                            onpagechanging="AspNetPagerLodeUser_PageChanging"
                            PageSize="20" NumericButtonCount="10" AlwaysShow="True" />
                            </div>
                    
					</div>
				</div>
            </div>
						</div>
						</div>
					</div>
				</div>
</asp:Content>
