@model string
<div class="current-location">
    <ul>
        <li class="left"><i class="glyphicon glyphicon-home"></i><a href="javascript:void(0)" onclick="location.href=location.href">兑换记录</a></li>
        <li class="right"><a href="javascript:void(0)" onclick="LoadData()" title="刷新"><span class="glyphicon glyphicon-refresh"></span></a></li>
    </ul>
</div>
<div class="main">
    <div class="control-group clearfix">
        <div class="btn-group left">
            <button type="button" class="btn btn-default btn-sm ui-selectInvert">反选</button>
            <div class="btn-group btn-group-sm">
                <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                    菜单<span class="caret"></span>
                </button>
                <ul class="dropdown-menu" role="menu">
                    <li><a href="javascript:void(0)" class="ui-deleteMultiple" data-custom-params="url:'@Url.Action("Delete")'">删除</a></li>
                </ul>
            </div>
        </div>
        <div class="right form-inline form-group-sm">
            <select id="sended" class="form-control ui-queryString option_jj">
                <option value="">所有状态</option>
                <option value="nosend">未发货</option>
                <option value="sended">已发货</option>
            </select>
            <select id="order" class="form-control ui-queryString option_jj">
                <option value="thedate desc">按提交时间↓</option>
                <option value="thedate asc">按提交时间↑</option>
            </select>
            <input type="text" id="startdate" maxlength="19" style="width:105px" placeholder="开始日期" onclick="laydate({istime:true,format:'YYYY-MM-DD'})" class="laydate-icon form-control ui-queryString">
            <input type="text" id="Enddate" maxlength="19" style="width:105px" placeholder="结束日期" onclick="laydate({istime:true,format:'YYYY-MM-DD'})" class="laydate-icon form-control ui-queryString">
            <select id="sended" class="form-control ui-queryString option_jj ui-setName">
                <option value="username">按会员名</option>
                <option value="title">按产品名</option>
            </select>
            <input type="text" class="form-control ui-queryString ui-keyword" placeholder="请输入关键词" style="width:110px;" />
            <button type="button" class="btn btn-default btn-sm ui-queryString-search">确定</button>
            <span class="help-block"></span>
        </div>
    </div>
    <table border=0 cellpadding=0 cellspacing=0 width=100% class="table table-bordered" id="tb_list">
        <thead><tr>
            <td align="center" width="30px">选择</td>
            <td align="center" width=22%>商品名称</td>
            <td align="center" width=10%>会员名</td>
            <td align="center" width=10%>花费积分</td>
            <td align="center" width=15%>兑换日期</td>
            <td align="center" width=10%>发货状态</td>
            <td align="center" width=10%>操作人</td>
            <td align="center" width=20%>操作</td>
        </tr>
        <tr class="item" id="item_{id}">
            <td align="center"><input type="checkbox" id="id" name="id" value="{id}" /></td>
            <td align=left>{title}</td>
            <td align="center">{username}</td>
            <td align="center">{paypoint}</td>
            <td align="center">{thedate}</td>
            <td align="center">{sendstate}</td>
            <td align="center">{operator}</td>
            <td align="center">
                <div class="btn-group btn-group-sm">
                    <a href="javascript:void(0)" class="btn btn-default btn-sm ui-dialog" data-custom-params="title:'查看详细兑换信息',url:'@Url.Action("ExchangeInfo")?username={username}',width:'850px',height:'480px'">查看</a>
                    <a href="javascript:void(0)" class="btn btn-default btn-sm ui-deleteSingle" data-custom-params="url:'@Url.Action("Delete")',id:'{id}'">删除</a>
                </div>
            </td>
        </tr>
    </table>
</div>
<script type="text/javascript">
    function LoadData()
    {
        var url = "@Url.Action("PageListData")"
        $("#tb_list").ListBind(url, {callBack: "LoadedInit" });
    }
    LoadData();
</script>