<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="callplanwebset.aspx.cs"
    Inherits="HySoft.BaseCallCenter.Web.calloutmanage.callplanwebset" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>编辑外呼页面</title>
    <link href="/scripts/ui/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
    <script src="/scripts/jquery/jquery-1.8.3.min.js" type="text/javascript"></script>
    <script src="/scripts/ui/json2.js" type="text/javascript"></script>
    <script src="/scripts/ui/js/core/base.js" type="text/javascript"></script>
    <script src="/scripts/ui/js/ligerui.min.js" type="text/javascript"></script>
    <script src="/scripts/ui/js/plugins/ligerTextBox.js" type="text/javascript"></script>
    <script src="/scripts/ui/js/plugins/ligerSpinner.js" type="text/javascript"></script>
    <script src="/scripts/function.js" type="text/javascript"></script>
    <script src="/scripts/utils.js" type="text/javascript"></script>
    <script src="/scripts/ui/js/plugins/ligerDateEditor.js" type="text/javascript"></script>
    <link href="/scripts/ui/skins/Tab/css/grid.css" rel="stylesheet" type="text/css" />
    <link href="/images/style.css" rel="stylesheet" type="text/css" />
    <link href="/scripts/ui/skins/Tab/css/grid.css" rel="stylesheet" type="text/css" />
    <link href="/scripts/ui/skins/ligerui-icons.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .l-toolbar
        {
            background: none;
            height: 23px;
            border: 0px solid #9CBAE7;
            border-top: 0px solid #EFF7F7;
        }
        .tools_box
        {
            border: 1px solid #D6D6D6;
            border-bottom: 0px;
        }
    </style>
    <script type="text/javascript">
        $(function () {
            var a = $("#navtab1").ligerTab({
                showSwitch: false,
                contextmenu: false,
                onAfterSelectTabItem: function (targettabid) {
                }
            });
            LoadItem();
            $("#pageloading_bg,#pageloading").hide();
        });
        var itemlist;
        function LoadItem() {
            itemlist = $("#divItemList").ligerGrid({
                height: 300,
                checkbox: true,
                columns: [
                { display: '显示顺序', name: '_f_columnnumber', width: 60 },
                { display: '属性名称', name: '_f_name', width: 180 },
                { display: '数据字段', name: '_f_dbfieldlname', width: 150 },
                { display: '数据类型', name: '_f_dbtypename', width: 80, render: function (rowdata, rowindex) {
                    if (rowdata._f_dbtypename == 'nvarchar') { return '文本'; }
                    else if (rowdata._f_dbtypename == 'int') { return '整数'; }
                    else if (rowdata._f_dbtypename == 'datetime') { return '日期'; }
                    else { return rowdata._f_dbtypename; }
                }
                },
                { display: '长度', name: '_f_length', width: 80, render: function (rowdata, rowindex) {
                    if (rowdata._f_length == 0) { return ''; }
                    else if (rowdata._f_length == -1) { return '超长文本'; }
                    else { return rowdata._f_length; }
                }
                }
                ], url: 'ajax/callplanwebset.ashx?action=getitemlist', pageSize: 50, pageSizeOptions: [10, 20, 50], rownumbers: true,
                onSelectRow: function (data, rowindex, rowobj) {
                },
                onDblClickRow: function (data, rowindex, rowobj) {
                }
            });
            $("#pageloading").hide();
        }
    </script>
</head>
<body style="overflow: hidden;">
    <form id="form1" runat="server">
    <asp:HiddenField ID="txtTaskId" runat="server" Value="0" />
    <asp:HiddenField ID="txtUserId" runat="server" Value="0" />
    <asp:HiddenField ID="txtId" runat="server" Value="0" />
    <div id="pageloading">
        数据加载中，请稍等...
    </div>
    <div id="navtab1" style="width: 100%; height: 320px; border: 1px solid #D3D3d3;">
        <div title="自定义页面设置" tabid="tab1">
            <div id="divItemList">
            </div>
        </div>
    </div>
    <br />
    <div style="width: 100%; text-align: center;">
        <asp:Button ID="btnSubmit" runat="server" Text="保&nbsp;&nbsp;存" CssClass="btnSubmit"
            OnClientClick="return validate();" OnClick="btnSubmit_Click" /></div>
    <br />
    </form>
</body>
</html>
