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

<!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.3.2.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>
    <link href="../scripts/ui/skins/Tab/css/tab.css" rel="stylesheet" type="text/css" />
    <link href="../scripts/ui/skins/Tab/css/grid.css" rel="stylesheet" type="text/css" />
    <script src="../scripts/ui/js/plugins/ligerGrid.js" type="text/javascript"></script>
    <script src="../scripts/ui/js/plugins/ligerLayout.js" type="text/javascript"></script>
    <link href="../scripts/ui/skins/ligerui-icons.css" rel="stylesheet" type="text/css" />
    <link href="../images/style.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        var gridlist;

        $(function () {
            $("#layoutform").ligerLayout({
                leftWidth: 380,
                allowCenterBottomResize: false
            });

            LoadList();
        });

        function LoadList() {
            gridlist = $("#divDataList").ligerGrid({
                height: '95%',
                columns: [
                { display: 'ID', name: '_f_formid', align: 'left', width: 1, hide: true },
                { display: 'entityid', name: '_f_entityid', align: 'left', width: 1, hide: true },
                { display: '表单名称', name: '_f_formname', width: 110 },
                { display: '实体表名', name: '_f_dbtablename', width: 100 },
                { display: '显示列数', name: '_f_columncount', width: 60 },
                { display: '是否启用', name: '_f_deleteflag', width: 60, render: function (rowdata, rowindex) {
                    if (rowdata._f_deleteflag == 0) { return '<font color=blue>启用</font>'; }
                    else { return '<font color=red>停用</font>'; }
                }
                }
                ], url: '../formmanage/ajax/formlist.ashx?action=getformlist', pageSize: 10, rownumbers: true,
                onSelectRow: function (data, rowindex, rowobj) {
                    ShowPage(data._f_formid, data._f_entityid, data._f_columncount);
                },
                onDblClickRow: function (data, rowindex, rowobj) {
                }
            });
            gridlist.changePage('first');
            $("#pageloading").hide();
        }

        function ShowPage(fid, eid, count) {
            document.getElementById("ifShowPage").src = "formset.aspx?fid=" + fid + "&eid=" + eid + "&count=" + count;
        }
    </script>
</head>
<body style=" overflow:hidden;">
    <form id="form1" runat="server">
    <div id="layoutform" style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px;
        padding-top: 0px; width:100%; height:100%;">
        <div position="left" title="表单列表" style="overflow: hidden; height: 100%;">
            <div id="divDataList">
            </div>
        </div>
        <div position="center" title="自定义信息">
            <iframe id="ifShowPage" frameborder="0" scrolling="auto" width="100%" height="100%"
                src=""></iframe>
        </div>
    </div>
    </form>
</body>
</html>
