<%@ Page Title="" Language="C#" MasterPageFile="~/BackStage/HelperMaster.Master" AutoEventWireup="true" CodeBehind="Frm_BtypeCardStat.aspx.cs" Inherits="AndroidSevice.Web.BBCX.Frm_BtypeCardStat" MaintainScrollPositionOnPostback="true"  %>
<%@ 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: ['800px', '600px'],
                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 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="submit" name="export" value="export" class="btn" >导出Excel</button>
                                </div>
                            </div>    
							<div class="widget-content">
                             
                             <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>
                                            <th>电话</th>
                                            <%
                                                if (dtTitle != null && dtTitle.Rows.Count != 0)
                                                {
                                                    for (int i = 0; i < dtTitle.Rows.Count; i++)
                                                    {
                                                %>
											        <th><%=dtTitle.Rows[i]["ptypename"].ToString()%></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]["客户编号"].ToString()%></td>
                                            <td><%=dtList.Rows[i]["客户名称"].ToString()%></td>
                                            <td><%=dtList.Rows[i]["地址"].ToString()%></td>
                                            <td><%=dtList.Rows[i]["联系人"].ToString()%></td>
                                             <td><%=dtList.Rows[i]["电话"].ToString()%></td>
                                              <%
                                                  
                                                    for (int j = 0; j < dtList.Columns.Count-5; j++)
                                                    {
                                                %>
											        <td><%=dtList.Rows[i][j + 5].ToString() == "" ? "0" : dtList.Rows[i][j + 5].ToString()%></td>
                                             <%
                                                    }
                                                
                                             %>
										</tr>
                                     <%
                                            }
                                        }
                                         %>
                                    </tbody>
							</table>
							</div>
                             <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>
</asp:Content>
