| | |
| | | @{ |
| | | @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 }, |
| | | |
| | |
| | | { 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"; |
| | |
| | | } 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> |
| | | } |
| | | |