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

<!DOCTYPE html>
<html>
<head>
    <title></title>
    <script type="text/javascript" src="../Jscript-Ui/jquery-easyui-1.4.4/jquery.min.js"></script>
    <script src="../jscript/jquery.tool.js" type="text/javascript"></script>
    <link href="../css/style.css" type="text/css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="../Jscript-Ui/jquery-easyui-1.4.4/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="../Jscript-Ui/jquery-easyui-1.4.4/themes/icon.css">
    <script type="text/javascript" src="../Jscript-Ui/jquery-easyui-1.4.4/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.4/demo/demo.css">
    <script type="text/javascript" src="../Jscript-Ui/JQForm/JQForm.js"></script>
    <link href="../css/framesearch.css" type="text/css" rel="stylesheet" />
</head>
<body style="padding: 0px; margin: 0px;">
    <form id="frmForm" runat="server">       
        <input id="IncidentID" size="1" type="hidden" name="IncidentID" runat="server">      
        <div id="TableContainer">
        </div>    
        <script type="text/javascript">
            function InitTableHeight() {
                var h = $(window).height();
                $("#TableContainer").css("height", h + "px");
            }
            InitTableHeight();

            var column = [[         
                { field: 'ReplyMan', title: '回访人', width: 150, align: 'left', sortable: true },                           
                { field: 'ReplyDate', title: '回访日期', width: 200, align: 'left', sortable: true },
                {
                    field: 'ReplyResult', title: '回访结果', width: 150, align: 'left', sortable: true, formatter: function (value, row, index) {
                        var result = "";
                        if (value != null && value != null) {
                            switch (value) {
                                case "0":
                                case 0:
                                    result = "不成功回访";
                                    break;
                                case "1":
                                case 1:
                                    result = "成功回访";
                                    break;
                                default:
                                    break;
                            }
                        }
                        return result;
                    }
                },
                { field: 'ReplyWay', title: '跟进方案', width: 150, align: 'left', sortable: true },
                { field: 'ServiceQuality', title: '服务质量评价', width: 200, align: 'left', sortable: true },
                { field: 'ReplyContent', title: '回访内容', width: 400, align: 'left', sortable: true }
            ]];

            function LoadList() {              
                $("#TableContainer").datagrid({
                    url: '/HM/M_Main/HC/DataGetControl.aspx?Method=DataGet&Class=IncidentAcceptNew_Search&Command=SelectReplyList&IncidentID=' + $('#IncidentID').val(),
                    method: "get",
                    loadMsg: '数据加载中,请稍候...',
                    nowrap: false,
                    pageSize: top.ListPageSize,
                    pageList: top.ListPageList,
                    columns: column,
                    fitColumns: true,
                    singleSelect: true,
                    pagination: true,
                    border: false,
                    remoteSort: false,
                    width: "100%",                 
                    sortOrder: "asc",
                    onLoadSuccess: function (data) {
                    }
                });
            }
            LoadList();
        </script>
    </form>
</body>
</html>
