<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OfflineRLDetailSearch.aspx.cs" Inherits="M_Main.ChargesNew.OfflineRLDetailSearch" %>


<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <script type="text/javascript" src="../Jscript-Ui/jquery-easyui-1.4.1/jquery.min.js"></script>
    <script src="../jscript/jquery.tool.js" type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href="../Jscript-Ui/jquery-easyui-1.4.1/themes/default/easyui.css" />
    <link rel="stylesheet" type="text/css" href="../Jscript-Ui/jquery-easyui-1.4.1/themes/icon.css" />
    <script type="text/javascript" src="../Jscript-Ui/jquery-easyui-1.4.1/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="../Jscript-Ui/jquery-easyui-1.4.4/locale/easyui-lang-zh_CN.js"></script>
    <link rel="stylesheet" type="text/css" href="../Jscript-Ui/jquery-easyui-1.4.1/demo/demo.css" />
    <link href="../css/framedialog_twocol.css" type="text/css" rel="stylesheet" />
    <script src="../jscript/Dialog.js" type="text/javascript"></script>
    <link href="../css/framesearch.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <form id="FrmForm" runat="server">

        <div style="width: 100%;" id="TableContainer">
        </div>

        <input type="hidden" id="CommID" name="CommID" runat="server" />
        <input type="hidden" id="ReceID" name="ReceID" runat="server" />

        <script language="javascript" src="../jscript/CloseAjaxCache.js" type="text/javascript"></script>
        <script language="javascript" type="text/javascript">

            function getUrlParam(name) {
                var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
                var r = window.location.search.substr(1).match(reg); //匹配目标参数
                if (r != null) return unescape(r[2]); return null; //返回参数值
            }

            function InitTableHeight() {
                var h = $(window).height();
                $("#TableContainer").css("height", h);

            }
            InitTableHeight();

            var column = [[
                { field: 'CommName', title: '项目名称', width: 180, align: 'left', sortable: true },
                { field: 'mchNo', title: '商户号', width: 120, align: 'left', sortable: true },
                { field: 'payOrderId', title: '支付订单号', width: 190, align: 'left', sortable: true },
                { field: 'mchOrderNo', title: '商户订单号', width: 190, align: 'left', sortable: true },
                { field: 'wayCode', title: '支付方式', width: 80, align: 'left', sortable: true },
                { field: 'amount', title: '支付金额', width: 80, align: 'left', sortable: true },
                { field: 'successTime', title: '支付时间', width: 150, align: 'left', sortable: true },
                { field: 'subject', title: '商品标题', width: 150, align: 'left', sortable: true },
                { field: 'body', title: '商品描述', width: 180, align: 'left', sortable: true },
                { field: 'channelUser', title: '用户标识', width: 100, align: 'left', sortable: true },
                { field: 'createdAt', title: '创建时间', width: 150, align: 'left', sortable: true },
                { field: '已认领金额', title: '已认领金额', width: 100, align: 'left', sortable: true }
            ]];
            
            function LoadList(_Data, rows) {
                $("#TableContainer").datagrid({
                    url: '/HM/M_Main/HC/DataGetControl.aspx?Method=DataGet&Class=Allinpay&Command=PayNoticeLSSearchNew&' + $("#FrmForm").serialize(),
                    method: "get",
                    title: '',
                    nowrap: false,
                    pageSize: top.ListPageSize,
                    pageList: top.ListPageList,
                    loadMsg: '数据加载中,请稍候...',
                    nowrap: false,
                    columns: column,
                    fitColumns: true,
                    remoteSort: false,
                    singleSelect: true,
                    pagination: true,
                    width: "100%",
                    //toolbar: toolbar,
                    rownumbers: true,
                    sortOrder: "asc",
                    border: false,
                    singleSelect: true,
                    selectOnCheck: false,
                    checkOnSelect: false,
                    onDblClickRow: function (rowIndex, rowData) {
                        
                    },
                    onLoadSuccess: function (data) {

                    }

                });

            }
            LoadList();

        </script>
    </form>
</body>
</html>
