New file |
| | |
| | | @{ |
| | | ViewBag.Title = "OrderBanciOrder"; |
| | | Layout = "~/Views/Shared/_Layout_Search.cshtml"; |
| | | } |
| | | @section headerStyle{ |
| | | <script type="text/javascript"> |
| | | var kechengleixing = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.kechengleixing))'; |
| | | gridConfig = { multiselect: true, selectcol: "Id" }; |
| | | loseherght = 40; |
| | | dataCol = [ |
| | | { label: 'id', name: 'Id', labtype: 'txt', hidden: true }, |
| | | |
| | | { |
| | | label: '报名时间', name: 'BaomingtimeName', labtype: 'txt', hidden: false, width: 100 |
| | | //, |
| | | //formatter: function (cellvalue, options, rowObject) { |
| | | // return "<a onclick=\"OpenWindow('" + cellvalue.replace(/'/g, '') + "','98%','100%', '/OrderBanciOrder/Edit?id=" + rowObject.Id + "')\" >" + cellvalue + "</a>"; |
| | | //} |
| | | }, |
| | | { label: '培训班次', name: 'Peixunbanci', labtype: 'txt', hidden: false, width: 100 }, |
| | | { label: '课程类型', name: 'Kechengleixing', labtype: 'txt', hidden: false, width: 100 }, |
| | | { label: '姓名', name: 'Xingming', labtype: 'txt', hidden: false, width: 100 }, |
| | | { label: '联系电话', name: 'Lianxidianhua', labtype: 'txt', hidden: false, width: 100 }, |
| | | { label: '身份证', name: 'Shenfenzheng', labtype: 'txt', hidden: false, width: 100 }, |
| | | { label: '学费', name: 'Xuefei', labtype: 'txt', hidden: false, width: 100 }, |
| | | { label: '报名人数', name: 'Baomingrenshu', labtype: 'txt', hidden: false, width: 100 }, |
| | | { label: '金额', name: 'Jine', labtype: 'txt', hidden: false, width: 100 }, |
| | | |
| | | |
| | | ]; |
| | | dataUrl = "/OrderBanciOrder/GetList"; |
| | | searchCol = [ |
| | | { label: '报名时间', name: 'Baomingtime', labtype: 'datearea', hidden: false }, |
| | | { label: '培训班次', name: 'Peixunbanci', labtype: 'txt', hidden: false }, |
| | | { label: '课程类型', name: 'Kechengleixing', labtype: 'combox', hidden: false, data: JSON.parse(kechengleixing)/*, cwidth: '5%', cccwidth: '8%' */ }, |
| | | { label: '姓名', name: 'Xingming', labtype: 'txt', hidden: false }, |
| | | { label: '联系电话', name: 'Lianxidianhua', labtype: 'txt', hidden: false }, |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | ]; |
| | | //var _pageAdd = function () { |
| | | // OpenWindow("新增班次", "98%", "90%", "/OrderBanciOrder/Edit/"); |
| | | //} |
| | | |
| | | |
| | | |
| | | |
| | | var _afterSave = function (result) { |
| | | if (result) { |
| | | toastr.success("保存成功"); |
| | | } else { |
| | | toastr.error("保存失败"); |
| | | } |
| | | } |
| | | |
| | | var _afterDel = function (result) { |
| | | if (result) { |
| | | toastr.success("删除成功"); |
| | | } else { |
| | | /**/ |
| | | toastr.error("删除成功"); |
| | | /**/ |
| | | } |
| | | } |
| | | |
| | | var _pageDuanxin = function () { |
| | | var duanxin = GetGridSelect(); |
| | | var baifangid = ""; |
| | | if (duanxin != '') { |
| | | for (var i = 0; i < duanxin.length; i++) { |
| | | baifangid += duanxin[i] + ',' |
| | | } |
| | | baifangid = baifangid.substring(0, baifangid.length - 1); |
| | | } else { |
| | | toastr.error("请选择订单"); |
| | | return; |
| | | } |
| | | |
| | | OpenWindow("群发短信", "50%", "50%", "/OrderBanciOrder/Duanxin?id=" + baifangid); |
| | | |
| | | } |
| | | |
| | | |
| | | var _pagePrint = function () { |
| | | |
| | | var Baomingtime = $("#PBSBaomingtime").val(); |
| | | var Peixunbanci = $("#PBSPeixunbanci").val(); |
| | | var Kechengleixing = $("#PBSKechengleixing").val(); |
| | | var Xingming = $("#PBSXingming").val(); |
| | | var Lianxidianhua = $("#PBSLianxidianhua").val(); |
| | | |
| | | |
| | | |
| | | var Createtimestart = $("#PBSCreatetimestart").val(); |
| | | |
| | | var Createtimeend = $("#PBSCreatetimeend").val(); |
| | | var Createtime = ''; |
| | | if (Createtimestart != '' && Createtimeend != '') { |
| | | Createtime = Createtimestart + '|' + Createtimeend; |
| | | } |
| | | |
| | | |
| | | var url = "/OrderBanciOrder/print?Baomingtime=" + Baomingtime + "&Peixunbanci=" + Peixunbanci + "&Kechengleixing=" + Kechengleixing + "&Xingming=" + Xingming + "&Lianxidianhua=" + Lianxidianhua; |
| | | var me = window.open(url, "打印"); //打开新窗口 |
| | | |
| | | |
| | | } |
| | | |
| | | </script> |
| | | } |
| | | |
| | | @section footerScripts{ |
| | | <script type="text/javascript"> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | </script> |
| | | } |