<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Dingdan_DangqiDingdan.aspx.cs" Inherits="ASdht.Web.WebPage.Dingdan_DangqiDingdan" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Src="../UserControls/HeaderControl.ascx" TagName="HeaderControl" TagPrefix="uc2" %>
<%@ Register Src="../UserControls/FooterControl.ascx" TagName="FooterControl" TagPrefix="uc3" %>
<%@ Register Src="UserControls/ordermenu.ascx" TagName="ordermenu" TagPrefix="uc4" %>

<%@ Register src="UserControls/dingdansearch.ascx" tagname="dingdansearch" tagprefix="uc1" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="content-type" content="text/html" charset="UTF-8">
    <script type="text/javascript">
        function isNum() {
            if (event.keyCode < 48 || event.keyCode > 57) {
                event.keyCode = 0;
            }
        }

        function clearNoNum(obj) {
            obj.value = obj.value.replace(/[^\d.]/g, "");  //清除“数字”和“.”以外的字符 
            obj.value = obj.value.replace(/^\./g, "");  //验证第一个字符是数字而不是. 
            obj.value = obj.value.replace(/\.{2,}/g, "."); //只保留第一个. 清除多余的. 
            obj.value = obj.value.replace(".", "$#$").replace(/\./g, "").replace("$#$", ".");
        }

      
    </script>
</head>
<style type="text/css">
    .number
    {
        width: 38px;
    }
</style>
<body class="newbie">
    <form id="form1" runat="server">
    <div id="pagemasker">
    </div>
    <div id="dialog">
    </div>
    <div id="doc">
        <uc2:HeaderControl ID="HeaderControl1" runat="server" />
        <div id="bdw" class="bdw">
            <div id="bd" class="cf">
                <div id="coupons">
                    <div class="dashboard" id="dashboard">
                        <uc4:ordermenu ID="ordermenu1" runat="server" />
                    </div>
                    <div id="content" class="coupons-box clear mainwide">
                        <div class="box clear">
                            <div class="box-content">
                                <div class="head">
                                    <h2>
                                        <%=ordermenu1.Title %> 
                                    </h2>
                                   <uc1:dingdansearch ID="dingdansearch1" runat="server" />
                                </div>
                                <div class="sect">
                                   
                                  <asp:Repeater ID="datacontainer" runat="server" 
                                        onitemdatabound="datacontainer_ItemDataBound">
                                  <HeaderTemplate>
                                  <table id="orders-list" cellspacing="0" cellpadding="0" border="0" class="coupons-table">
                                  <tr><th width="40">ID</th><th class="xiangmu">项目</th><th width="70">用户</th><th  width="50">数量</th><th  width="50">总款</th><th width="60">支付方式</th><th width="50">余付</th><th width="60">在线支付</th><th  width="60">递送方式</th><th  width="100">操作</th></tr>
                                  </HeaderTemplate>
                                   
                                   <ItemTemplate>
                                   <tr class="alt"><td><%# Eval("order_id") %></td><td>
                                       <asp:Repeater ID="teamcontainer" runat="server">
                                       <ItemTemplate>
                                       <%# Eval("teamid") %>&nbsp;(<a target="_blank" href='/team.aspx?id=<%# Eval("teamid") %>' class="deal-title"><%# Eval("product") %><font style='color:red'><%# Maticsoft.BLL.Order.Getbulletin(Eval("result").ToString()) %></font><font style='color:red'>(总共:<%# Eval("num") %>件)</font></a>)
                                       </ItemTemplate>
                                       </asp:Repeater>
                                   </td><td><a class="ajaxlink" href='/ajax/manage.aspx?action=userview&amp;id=<%# Eval("user_id") %>'><%# Eval("email") %><br><%# Eval("username") %></a>&nbsp;»&nbsp;<a class="ajaxlink" href='/ajax/misc.aspx?action=sms&amp;v=<%# Eval("user_mobile") %>'>短信</a></td><td><%# Eval("Quantity")%></td><td><span class="money">¥</span><%# Eval("Origin")%></td><td><span class="money">&nbsp;</span><%# Utils.WebSiteHelper.GetPayText(Eval("state").ToString(),Eval("service").ToString()) %></td><td><span class="money">¥</span><%# Eval("credit") %></td><td><span class="money">¥</span><%# Eval("order_money") %></td><td><%# GetOrderExpress(Container.DataItem)%></td><td>
                                   <asp:Literal ID="link" runat="server"></asp:Literal></td></tr>
                                   </ItemTemplate>
                                   <AlternatingItemTemplate>
                                    <tr><td><%# Eval("order_id") %></td><td>
                                       <asp:Repeater ID="teamcontainer" runat="server">
                                       <ItemTemplate>
                                       <%# Eval("teamid") %>&nbsp;(<a target="_blank" href='/team.aspx?id=<%# Eval("teamid") %>' class="deal-title"><%# Eval("product") %><font style='color:red'><%# Maticsoft.BLL.Order.Getbulletin(Eval("result").ToString()) %></font><font style='color:red'>(总共:<%# Eval("num") %>件)</font></a>)
                                       </ItemTemplate>
                                       </asp:Repeater>
                                   </td><td><a class="ajaxlink" href='/ajax/manage.aspx?action=userview&amp;id=<%# Eval("user_id") %>'><%# Eval("email") %><br><%# Eval("username") %></a>&nbsp;»&nbsp;<a class="ajaxlink" href='/ajax/misc.aspx?action=sms&amp;v=<%# Eval("user_mobile") %>'>短信</a></td><td><%# Eval("Quantity")%></td><td><span class="money">¥</span><%# Eval("Origin")%></td><td><span class="money">&nbsp;</span><%# Utils.WebSiteHelper.GetPayText(Eval("state").ToString(),Eval("service").ToString()) %></td><td><span class="money">¥</span><%# Eval("credit") %></td><td><span class="money">¥</span><%# Eval("order_money") %></td><td><%# GetOrderExpress(Container.DataItem) %></td><td>
                                   <asp:Literal ID="link" runat="server"></asp:Literal></td></tr>
                                   </AlternatingItemTemplate>
                                   <FooterTemplate>
                                   <tr>
                                            <td colspan="10">
                                                <%= pagerhtml %>
                                            </td>
                                    </tr>
                                        
                                        
                                    </table>
                                   </FooterTemplate> 
                                    </asp:Repeater>

                                    

                                        
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!-- bd end -->
        </div>
        <!-- bdw end -->
        <uc3:FooterControl ID="FooterControl1" runat="server" />
    </div>
    </form>
</body>
<script type="text/javascript">

    jQuery(function () {
        $('input').keyup(function (event) {

            if (event.keyCode == "13") {
                document.getElementById("btnselect").click();   //服务器控件loginsubmit点击事件被触发
                return false;
            }

        });

    }); 
</script>
</html>
