username@email.com
2023-11-02 558dae4a18d393ac38daa43a354e8bc9a22e4e26
zhengcaioa/zhengcaioa/Views/OrderBanci/Index.cshtml
@@ -1,10 +1,13 @@
@{
@using DTO;
@{
    ViewBag.Title = "OrderBanci";
    Layout = "~/Views/Shared/_Layout_Search.cshtml";
    List<PageEntity> ActionInfo2 = ViewData["ActionInfo2"] as List<PageEntity>;
}
@section headerStyle{
    <script type="text/javascript">
        dataCol = [
            { label: 'id', name: 'Id', labtype: 'txt', hidden: true },
@@ -19,13 +22,23 @@
            { label: '结束时间', name: 'ShijianendName', labtype: 'txt', hidden: false, width: 200 },
            { label: '地点', name: 'Didian', labtype: 'txt', hidden: false, width: 400 },
            { label: '人数', name: 'Renshu', labtype: 'txt', hidden: false, width: 200 },
            { label: '座位行数', name: 'Hang', labtype: 'txt', hidden: false, width: 200 },
            { label: '座位列数', name: 'Lie', labtype: 'txt', hidden: false, width: 200 },
            {
                label: '课程类型', name: 'Creater', labtype: 'txt', hidden: false, width: 100,
                label: '课程价格', name: 'Creater', labtype: 'txt', hidden: false, width: 100,
                formatter: function (cellvalue, options, rowObject) {
                    return "<a onclick=\"OpenWindow('" + rowObject.Banci.replace(/'/g, '') + "','98%','100%', '/OrderBanci/IndexDtl?OrderBanciId=" + rowObject.Id + "')\"  >培训时间</a>";
                    return "<a  class='Jiage'  style='display: none;' onclick=\"OpenWindow('" + rowObject.Banci.replace(/'/g, '') + "','98%','100%', '/OrderBanci/IndexDtl?OrderBanciId=" + rowObject.Id + "')\"  >课程价格</a>";
                }
            },
            {
                label: '留座', name: 'Liuzuo', labtype: 'txt', hidden: false, width: 100,
                formatter: function (cellvalue, options, rowObject) {
                    return "<a onclick=\"OpenWindow('" + rowObject.Banci.replace(/'/g, '') + "','98%','100%', '/OrderBanci/Liuzuo?id=" + rowObject.Id + "')\"  >留座</a>";
                   // return "<a  class='Jiage'  style='display: none;' onclick=\"OpenWindow('" + rowObject.Banci.replace(/'/g, '') + "','98%','100%', '/OrderBanci/IndexDtl?OrderBanciId=" + rowObject.Id + "')\"  >留座</a>";
                }
            },
        ];
        dataUrl = "/OrderBanci/GetList";
@@ -62,9 +75,23 @@
            } else {
                /**/
                toastr.error("删除成功");
        /**/
    }
}
                /**/
            }
        }
        var ActionInfo22 = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ActionInfo2))';
        var _afterLoadDataload = function (xhr) {
            var data = JSON.parse(ActionInfo22);
            for (var o in data) {
                //alert(o);
                //alert(data[o]);
                /* alert("PageShortcut:" + data[o].PageShortcut + " PageName:" + data[o].PageName);*/
                $("." + data[o].PageShortcut).show();
            }
        };
    </script>
}