From 0be1643deedccfac26faa4316b7cc03028dc534d Mon Sep 17 00:00:00 2001 From: liangkun Date: Mon, 15 May 2023 17:18:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E4=B9=A0=E7=AE=A1=E7=90=86=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B=E5=8A=9F=E8=83=BD=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/InternShipLogController.cs | 6 ++ .../InternShipSummaryController.cs | 17 ++++-- .../InternshipPlanPostController.cs | 6 ++ .../PracticeAppraisalController.cs | 6 ++ .../Controllers/PracticeAssessController.cs | 6 ++ .../Controllers/PracticeMaterialController.cs | 6 ++ .../PracticeUnitVisitController.cs | 6 ++ .../Views/InternShipLog/FormView.cshtml | 39 +++++++++++++ .../Views/InternShipLog/FormView.js | 52 +++++++++++++++++ .../Views/InternShipLog/Index.cshtml | 3 +- .../Views/InternShipLog/Index.js | 13 +++++ .../Views/InternShipSummary/FormView.cshtml | 35 ++++++++++++ .../Views/InternShipSummary/FormView.js | 52 +++++++++++++++++ .../Views/InternShipSummary/Index.cshtml | 3 +- .../Views/InternShipSummary/Index.js | 14 +++++ .../Views/InternshipPlanPost/FormView.cshtml | 55 ++++++++++++++++++ .../Views/InternshipPlanPost/FormView.js | 56 +++++++++++++++++++ .../Views/InternshipPlanPost/Index.cshtml | 3 +- .../Views/InternshipPlanPost/Index.js | 14 +++++ .../Views/PracticeAppraisal/FormView.cshtml | 27 +++++++++ .../Views/PracticeAppraisal/FormView.js | 54 ++++++++++++++++++ .../Views/PracticeAppraisal/Index.cshtml | 3 +- .../Views/PracticeAppraisal/Index.js | 13 +++++ .../Views/PracticeAssess/FormView.cshtml | 36 ++++++++++++ .../Views/PracticeAssess/FormView.js | 54 ++++++++++++++++++ .../Views/PracticeAssess/Index.cshtml | 3 +- .../Views/PracticeAssess/Index.js | 54 +++++++++++------- .../Views/PracticeMaterial/FormView.cshtml | 31 ++++++++++ .../Views/PracticeMaterial/FormView.js | 52 +++++++++++++++++ .../Views/PracticeMaterial/Index.cshtml | 3 +- .../Views/PracticeMaterial/Index.js | 16 ++++++ .../Views/PracticeUnitVisit/FormView.cshtml | 31 ++++++++++ .../Views/PracticeUnitVisit/FormView.js | 52 +++++++++++++++++ .../Views/PracticeUnitVisit/Index.cshtml | 3 +- .../Views/PracticeUnitVisit/Index.js | 14 +++++ .../Learun.Application.Web.csproj | 14 +++++ 36 files changed, 820 insertions(+), 32 deletions(-) create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipLog/FormView.cshtml create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipLog/FormView.js create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipSummary/FormView.cshtml create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipSummary/FormView.js create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternshipPlanPost/FormView.cshtml create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternshipPlanPost/FormView.js create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAppraisal/FormView.cshtml create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAppraisal/FormView.js create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAssess/FormView.cshtml create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAssess/FormView.js create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeMaterial/FormView.cshtml create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeMaterial/FormView.js create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeUnitVisit/FormView.cshtml create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeUnitVisit/FormView.js diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/InternShipLogController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/InternShipLogController.cs index eb4e1a8af..00aef4762 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/InternShipLogController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/InternShipLogController.cs @@ -39,6 +39,12 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers return View(); } + [HttpGet] + public ActionResult FormView() + { + return View(); + } + /// /// 上传页面 /// diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/InternShipSummaryController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/InternShipSummaryController.cs index 23dca5cbb..c21259c62 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/InternShipSummaryController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/InternShipSummaryController.cs @@ -27,7 +27,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers [HttpGet] public ActionResult Index() { - return View(); + return View(); } /// /// 表单页 @@ -36,9 +36,13 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers [HttpGet] public ActionResult Form() { - return View(); + return View(); + } + [HttpGet] + public ActionResult FormView() + { + return View(); } - /// /// 上传页面 /// @@ -81,8 +85,9 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers [AjaxOnly] public ActionResult GetFormData(string keyValue) { - var InternShipSummaryData = internShipSummaryIBLL.GetInternShipSummaryEntity( keyValue ); - var jsonData = new { + var InternShipSummaryData = internShipSummaryIBLL.GetInternShipSummaryEntity(keyValue); + var jsonData = new + { InternShipSummary = InternShipSummaryData, }; return Success(jsonData); @@ -114,7 +119,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers public ActionResult SaveForm(string keyValue, string strEntity) { InternShipSummaryEntity entity = strEntity.ToObject(); - internShipSummaryIBLL.SaveEntity(keyValue,entity); + internShipSummaryIBLL.SaveEntity(keyValue, entity); return Success("保存成功!"); } diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/InternshipPlanPostController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/InternshipPlanPostController.cs index 6b44ac180..570b0af7d 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/InternshipPlanPostController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/InternshipPlanPostController.cs @@ -38,6 +38,12 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers { return View(); } + + [HttpGet] + public ActionResult FormView() + { + return View(); + } /// /// 上传页面 /// diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/PracticeAppraisalController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/PracticeAppraisalController.cs index da913ad1c..ed53de8a1 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/PracticeAppraisalController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/PracticeAppraisalController.cs @@ -39,6 +39,12 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers return View(); } + [HttpGet] + public ActionResult FormView() + { + return View(); + } + /// /// 上传页面 /// diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/PracticeAssessController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/PracticeAssessController.cs index 827f9c093..4bf8575d4 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/PracticeAssessController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/PracticeAssessController.cs @@ -38,6 +38,12 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers { return View(); } + + [HttpGet] + public ActionResult FormView() + { + return View(); + } /// /// 上传页面 /// diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/PracticeMaterialController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/PracticeMaterialController.cs index b6cb6ede1..e9d0839b2 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/PracticeMaterialController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/PracticeMaterialController.cs @@ -39,6 +39,12 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers return View(); } + [HttpGet] + public ActionResult FormView() + { + return View(); + } + /// /// 上传页面 /// diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/PracticeUnitVisitController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/PracticeUnitVisitController.cs index 30f8ea91f..4f386ff67 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/PracticeUnitVisitController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/PracticeUnitVisitController.cs @@ -39,6 +39,12 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers return View(); } + [HttpGet] + public ActionResult FormView() + { + return View(); + } + /// /// 上传页面 /// diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipLog/FormView.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipLog/FormView.cshtml new file mode 100644 index 000000000..9e2bcb2da --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipLog/FormView.cshtml @@ -0,0 +1,39 @@ +@{ + ViewBag.Title = "实习日志管理"; + Layout = "~/Views/Shared/_Form.cshtml"; +} +
+
+
学生
+ +
+
+
联系方式
+ +
+
+
日志名称
+ +
+
+
实习单位
+ +
+
+
提交日期
+ +
+
+
内容
+ +
+
+
附件
+
+
+
+
备注
+ +
+
+@Html.AppendJsFile("/Areas/EducationalAdministration/Views/InternShipLog/FormView.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipLog/FormView.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipLog/FormView.js new file mode 100644 index 000000000..ad6204323 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipLog/FormView.js @@ -0,0 +1,52 @@ +/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) + * Copyright (c) 2013-2018 北京泉江科技有限公司 + * 创建人:超级管理员 + * 日 期:2019-11-19 10:29 + * 描 述:实习日志管理 + */ +var acceptClick; +var keyValue = request('keyValue'); +var bootstrap = function ($, learun) { + "use strict"; + var page = { + init: function () { + $('.lr-form-wrap').lrscroll(); + page.bind(); + page.initData(); + }, + bind: function () { + $('#attach_file').lrUploader(); + $("#lrUploader_uploadBtn_attach_file").hide(); + }, + initData: function () { + if (!!keyValue) { + $.lrSetForm(top.$.rootUrl + '/EducationalAdministration/InternShipLog/GetFormData?keyValue=' + keyValue, function (data) { + for (var id in data) { + if (!!data[id].length && data[id].length > 0) { + $('#' + id ).jfGridSet('refreshdata', data[id]); + } + else { + $('[data-table="' + id + '"]').lrSetFormData(data[id]); + } + } + }); + } + } + }; + // 保存数据 + acceptClick = function (callBack) { + if (!$('body').lrValidform()) { + return false; + } + var postData = { + strEntity: JSON.stringify($('body').lrGetFormData()) + }; + $.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/InternShipLog/SaveForm?keyValue=' + keyValue, postData, function (res) { + // 保存成功后才回调 + if (!!callBack) { + callBack(); + } + }); + }; + page.init(); +} diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipLog/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipLog/Index.cshtml index 85612a7c7..42490e2d3 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipLog/Index.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipLog/Index.cshtml @@ -26,9 +26,10 @@
-
+ @* 上传文件*@ diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipLog/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipLog/Index.js index 3437e1f29..d54f243be 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipLog/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipLog/Index.js @@ -49,6 +49,19 @@ var bootstrap = function ($, learun) { }); } }); + $('#lr_view').on('click', function () { + var keyValue = $('#gridtable').jfGridValue('ID'); + if (learun.checkrow(keyValue)) { + learun.layerForm({ + id: 'form', + title: '编辑', + url: top.$.rootUrl + '/EducationalAdministration/InternShipLog/FormView?keyValue=' + keyValue, + width: 600, + height: 400, + btn:null + }); + } + }); // 删除 $('#lr_delete').on('click', function () { var keyValue = $('#gridtable').jfGridValue('ID'); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipSummary/FormView.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipSummary/FormView.cshtml new file mode 100644 index 000000000..c634787d8 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipSummary/FormView.cshtml @@ -0,0 +1,35 @@ +@{ + ViewBag.Title = "实习总结管理"; + Layout = "~/Views/Shared/_Form.cshtml"; +} +
+
+
学生名称
+ +
+
+
总结名称
+ +
+
+
提交日期
+ +
+
+
联系方式
+ +
+
+
附件
+
+
+
+
备注
+ +
+
+
总结内容
+ +
+
+@Html.AppendJsFile("/Areas/EducationalAdministration/Views/InternShipSummary/FormView.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipSummary/FormView.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipSummary/FormView.js new file mode 100644 index 000000000..133fb6b12 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipSummary/FormView.js @@ -0,0 +1,52 @@ +/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) + * Copyright (c) 2013-2018 北京泉江科技有限公司 + * 创建人:超级管理员 + * 日 期:2019-11-19 10:31 + * 描 述:实习总结管理 + */ +var acceptClick; +var keyValue = request('keyValue'); +var bootstrap = function ($, learun) { + "use strict"; + var page = { + init: function () { + $('.lr-form-wrap').lrscroll(); + page.bind(); + page.initData(); + }, + bind: function () { + $('#attach_file').lrUploader(); + $("#lrUploader_uploadBtn_attach_file").hide(); + }, + initData: function () { + if (!!keyValue) { + $.lrSetForm(top.$.rootUrl + '/EducationalAdministration/InternShipSummary/GetFormData?keyValue=' + keyValue, function (data) { + for (var id in data) { + if (!!data[id].length && data[id].length > 0) { + $('#' + id ).jfGridSet('refreshdata', data[id]); + } + else { + $('[data-table="' + id + '"]').lrSetFormData(data[id]); + } + } + }); + } + } + }; + // 保存数据 + acceptClick = function (callBack) { + if (!$('body').lrValidform()) { + return false; + } + var postData = { + strEntity: JSON.stringify($('body').lrGetFormData()) + }; + $.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/InternShipSummary/SaveForm?keyValue=' + keyValue, postData, function (res) { + // 保存成功后才回调 + if (!!callBack) { + callBack(); + } + }); + }; + page.init(); +} diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipSummary/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipSummary/Index.cshtml index cc0444df9..02a829df8 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipSummary/Index.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipSummary/Index.cshtml @@ -26,9 +26,10 @@
-
+ @* 上传文件*@ diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipSummary/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipSummary/Index.js index 5d0d920fa..eacbeaa75 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipSummary/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipSummary/Index.js @@ -49,6 +49,20 @@ var bootstrap = function ($, learun) { }); } }); + + $('#lr_view').on('click', function () { + var keyValue = $('#gridtable').jfGridValue('ID'); + if (learun.checkrow(keyValue)) { + learun.layerForm({ + id: 'form', + title: '查看', + url: top.$.rootUrl + '/EducationalAdministration/InternShipSummary/FormView?keyValue=' + keyValue, + width: 600, + height: 400, + btn:null + }); + } + }); // 删除 $('#lr_delete').on('click', function () { var keyValue = $('#gridtable').jfGridValue('ID'); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternshipPlanPost/FormView.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternshipPlanPost/FormView.cshtml new file mode 100644 index 000000000..3489b5423 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternshipPlanPost/FormView.cshtml @@ -0,0 +1,55 @@ +@{ + ViewBag.Title = "申报实习计划岗位"; + Layout = "~/Views/Shared/_Form.cshtml"; +} +
+
+
计划名称
+ +
+
+
实习岗位
+ +
+
+
开始日期
+ +
+
+
结束日期
+ +
+
+
专业名称
+ +
+
+
专业负责人
+ +
+
+
审批人
+ +
+
+
单选项
+
+
+
+
内容简介
+ +
+
+
岗位职责
+ +
+
+
附件
+
+
+
+
备注
+ +
+
+@Html.AppendJsFile("/Areas/EducationalAdministration/Views/InternshipPlanPost/FormView.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternshipPlanPost/FormView.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternshipPlanPost/FormView.js new file mode 100644 index 000000000..a34f1cf21 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternshipPlanPost/FormView.js @@ -0,0 +1,56 @@ +/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) + * Copyright (c) 2013-2018 北京泉江科技有限公司 + * 创建人:超级管理员 + * 日 期:2019-11-19 10:04 + * 描 述:申报实习计划岗位 + */ +var acceptClick; +var keyValue = request('keyValue'); +var bootstrap = function ($, learun) { + "use strict"; + var page = { + init: function () { + $('.lr-form-wrap').lrscroll(); + page.bind(); + page.initData(); + }, + bind: function () { + $('#Status').lrRadioCheckbox({ + type: 'radio', + code: 'YesOrNoInt', + }); + $('#attach_file').lrUploader(); + $("#lrUploader_uploadBtn_attach_file").hide(); + }, + initData: function () { + if (!!keyValue) { + $.lrSetForm(top.$.rootUrl + '/EducationalAdministration/InternshipPlanPost/GetFormData?keyValue=' + keyValue, function (data) { + for (var id in data) { + if (!!data[id].length && data[id].length > 0) { + $('#' + id ).jfGridSet('refreshdata', data[id]); + } + else { + $('[data-table="' + id + '"]').lrSetFormData(data[id]); + } + } + }); + } + } + }; + // 保存数据 + acceptClick = function (callBack) { + if (!$('body').lrValidform()) { + return false; + } + var postData = { + strEntity: JSON.stringify($('body').lrGetFormData()) + }; + $.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/InternshipPlanPost/SaveForm?keyValue=' + keyValue, postData, function (res) { + // 保存成功后才回调 + if (!!callBack) { + callBack(); + } + }); + }; + page.init(); +} diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternshipPlanPost/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternshipPlanPost/Index.cshtml index 3d07797f7..3b6e7a01d 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternshipPlanPost/Index.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternshipPlanPost/Index.cshtml @@ -30,9 +30,10 @@ -
+ @* 上传文件*@ diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternshipPlanPost/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternshipPlanPost/Index.js index c25e337f6..3c4fc1ae5 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternshipPlanPost/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternshipPlanPost/Index.js @@ -49,6 +49,20 @@ var bootstrap = function ($, learun) { }); } }); + + $('#lr_view').on('click', function () { + var keyValue = $('#gridtable').jfGridValue('ID'); + if (learun.checkrow(keyValue)) { + learun.layerForm({ + id: 'form', + title: '查看', + url: top.$.rootUrl + '/EducationalAdministration/InternshipPlanPost/FormView?keyValue=' + keyValue, + width: 600, + height: 400, + btn:null, + }); + } + }); // 删除 $('#lr_delete').on('click', function () { var keyValue = $('#gridtable').jfGridValue('ID'); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAppraisal/FormView.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAppraisal/FormView.cshtml new file mode 100644 index 000000000..d01887e76 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAppraisal/FormView.cshtml @@ -0,0 +1,27 @@ +@{ + ViewBag.Title = "实习鉴定下载"; + Layout = "~/Views/Shared/_Form.cshtml"; +} +
+
+
鉴定名称*
+ +
+ @*
+
文件上传
+
+
*@ +
+
下载次数*
+ +
+
+
附件
+
+
+
+
备注
+ +
+
+@Html.AppendJsFile("/Areas/EducationalAdministration/Views/PracticeAppraisal/FormView.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAppraisal/FormView.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAppraisal/FormView.js new file mode 100644 index 000000000..23a8b0094 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAppraisal/FormView.js @@ -0,0 +1,54 @@ +/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) + * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + * 创建人:超级管理员 + * 日 期:2023-01-14 17:32 + * 描 述:实习鉴定下载 + */ +var acceptClick; +var keyValue = request('keyValue'); +var bootstrap = function ($, learun) { + "use strict"; + var page = { + init: function () { + $('.lr-form-wrap').lrscroll(); + page.bind(); + page.initData(); + }, + bind: function () { + //$('#Down_Url').lrUploader(); + $('#attach_file').lrUploader(); + $("#lrUploader_uploadBtn_attach_file").hide(); + }, + initData: function () { + if (!!keyValue) { + $.lrSetForm(top.$.rootUrl + '/EducationalAdministration/PracticeAppraisal/GetFormData?keyValue=' + keyValue, function (data) { + for (var id in data) { + if (!!data[id].length && data[id].length > 0) { + $('#' + id ).jfGridSet('refreshdata', data[id]); + } + else { + $('[data-table="' + id + '"]').lrSetFormData(data[id]); + } + } + }); + } + $('#Down_Time').val('0'); + } + }; + // 保存数据 + acceptClick = function (callBack) { + if (!$('body').lrValidform()) { + return false; + } + var postData = { + strEntity: JSON.stringify($('body').lrGetFormData()) + }; + $.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/PracticeAppraisal/SaveForm?keyValue=' + keyValue, postData, function (res) { + // 保存成功后才回调 + if (!!callBack) { + callBack(); + } + }); + }; + page.init(); +} diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAppraisal/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAppraisal/Index.cshtml index 2cd652d47..413d66028 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAppraisal/Index.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAppraisal/Index.cshtml @@ -26,9 +26,10 @@
-
+ @* 上传文件*@ diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAppraisal/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAppraisal/Index.js index 098fcaa4f..3b93ee065 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAppraisal/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAppraisal/Index.js @@ -49,6 +49,19 @@ var bootstrap = function ($, learun) { }); } }); + $('#lr_view').on('click', function () { + var keyValue = $('#gridtable').jfGridValue('Id'); + if (learun.checkrow(keyValue)) { + learun.layerForm({ + id: 'form', + title: '编辑', + url: top.$.rootUrl + '/EducationalAdministration/PracticeAppraisal/FormView?keyValue=' + keyValue, + width: 600, + height: 400, + btn:null + }); + } + }); // 删除 $('#lr_delete').on('click', function () { var keyValue = $('#gridtable').jfGridValue('Id'); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAssess/FormView.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAssess/FormView.cshtml new file mode 100644 index 000000000..654b3c59a --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAssess/FormView.cshtml @@ -0,0 +1,36 @@ +@{ + ViewBag.Title = "实习考核管理"; + Layout = "~/Views/Shared/_Form.cshtml"; +} +
+
+
实习学生*
+ @*
*@ + +
+
+
实习注册号
+
+
+
+
实习单位*
+ +
+
+
实习岗位*
+ +
+
+
最终得分*
+ +
+
+
附件
+
+
+
+
考核详细内容*
+ +
+
+@Html.AppendJsFile("/Areas/EducationalAdministration/Views/PracticeAssess/FormView.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAssess/FormView.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAssess/FormView.js new file mode 100644 index 000000000..9f6378814 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAssess/FormView.js @@ -0,0 +1,54 @@ +/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) + * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + * 创建人:超级管理员 + * 日 期:2023-01-14 16:31 + * 描 述:实习考核管理 + */ +var acceptClick; +var keyValue = request('keyValue'); +var bootstrap = function ($, learun) { + "use strict"; + var page = { + init: function () { + $('.lr-form-wrap').lrscroll(); + page.bind(); + page.initData(); + }, + bind: function () { + //$('#StuId').lrDataSourceSelect({ code: 'Practice_StuInfo',value: 'stuid',text: 'stuname' }); + $('#InternId').lrDataSourceSelect({ code: 'PracticeBase', value: 'id', text: 'name' }); + $('#attach_file').lrUploader(); + $("#lrUploader_uploadBtn_attach_file").hide(); + }, + initData: function () { + if (!!keyValue) { + $.lrSetForm(top.$.rootUrl + '/EducationalAdministration/PracticeAssess/GetFormData?keyValue=' + keyValue, function (data) { + for (var id in data) { + if (!!data[id].length && data[id].length > 0) { + $('#' + id ).jfGridSet('refreshdata', data[id]); + } + else { + $('[data-table="' + id + '"]').lrSetFormData(data[id]); + } + } + }); + } + } + }; + // 保存数据 + acceptClick = function (callBack) { + if (!$('body').lrValidform()) { + return false; + } + var postData = { + strEntity: JSON.stringify($('body').lrGetFormData()) + }; + $.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/PracticeAssess/SaveForm?keyValue=' + keyValue, postData, function (res) { + // 保存成功后才回调 + if (!!callBack) { + callBack(); + } + }); + }; + page.init(); +} diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAssess/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAssess/Index.cshtml index dcc0b2824..c8f033c8f 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAssess/Index.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAssess/Index.cshtml @@ -34,9 +34,10 @@
-
+ @* 上传文件*@ diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAssess/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAssess/Index.js index 20cbc90a7..17455503f 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAssess/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAssess/Index.js @@ -16,7 +16,7 @@ var bootstrap = function ($, learun) { $('#multiple_condition_query').lrMultipleQuery(function (queryJson) { page.search(queryJson); }, 220, 400); - $('#StuId').lrDataSourceSelect({ code: 'Practice_StuInfo',value: 'stuid',text: 'stuname' }); + $('#StuId').lrDataSourceSelect({ code: 'Practice_StuInfo', value: 'stuid', text: 'stuname' }); // 刷新 $('#lr_refresh').on('click', function () { location.reload(); @@ -50,13 +50,27 @@ var bootstrap = function ($, learun) { }); } }); + + $('#lr_view').on('click', function () { + var keyValue = $('#gridtable').jfGridValue('Id'); + if (learun.checkrow(keyValue)) { + learun.layerForm({ + id: 'form', + title: '查看', + url: top.$.rootUrl + '/EducationalAdministration/PracticeAssess/FormView?keyValue=' + keyValue, + width: 600, + height: 400, + btn: null + }); + } + }); // 删除 $('#lr_delete').on('click', function () { var keyValue = $('#gridtable').jfGridValue('Id'); if (learun.checkrow(keyValue)) { learun.layerConfirm('是否确认删除该项!', function (res) { if (res) { - learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/PracticeAssess/DeleteForm', { keyValue: keyValue}, function () { + learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/PracticeAssess/DeleteForm', { keyValue: keyValue }, function () { refreshGirdData(); }); } @@ -99,30 +113,32 @@ var bootstrap = function ($, learun) { // }); //} }, - { label: "实习注册号", name: "InternId", width: 100, align: "left", - formatterAsync: function (callback, value, row, op,$cell) { - learun.clientdata.getAsync('custmerData', { - url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'PracticeBase', - key: value, - keyId: 'id', - callback: function (_data) { - callback(_data['name']); - } - }); - }}, - { label: "实习单位", name: "IUnit", width: 100, align: "left"}, - { label: "实习岗位", name: "IPost", width: 100, align: "left"}, - { label: "最终得分", name: "Total_Score", width: 100, align: "left"}, - { label: "考核详细内容", name: "Assess_Content", width: 100, align: "left"}, + { + label: "实习注册号", name: "InternId", width: 100, align: "left", + formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('custmerData', { + url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'PracticeBase', + key: value, + keyId: 'id', + callback: function (_data) { + callback(_data['name']); + } + }); + } + }, + { label: "实习单位", name: "IUnit", width: 100, align: "left" }, + { label: "实习岗位", name: "IPost", width: 100, align: "left" }, + { label: "最终得分", name: "Total_Score", width: 100, align: "left" }, + { label: "考核详细内容", name: "Assess_Content", width: 100, align: "left" }, ], - mainId:'Id', + mainId: 'Id', isPage: true }); page.search(); }, search: function (param) { param = param || {}; - $('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) }); + $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); } }; refreshGirdData = function () { diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeMaterial/FormView.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeMaterial/FormView.cshtml new file mode 100644 index 000000000..ed1378c67 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeMaterial/FormView.cshtml @@ -0,0 +1,31 @@ +@{ + ViewBag.Title = "实习材料管理"; + Layout = "~/Views/Shared/_Form.cshtml"; +} +
+
+
材料名称*
+ +
+
+
数量*
+ +
+
+
库存数量*
+ +
+
+
单价
+ +
+
+
附件
+
+
+
+
备注
+ +
+
+@Html.AppendJsFile("/Areas/EducationalAdministration/Views/PracticeMaterial/FormView.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeMaterial/FormView.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeMaterial/FormView.js new file mode 100644 index 000000000..f7e6e141e --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeMaterial/FormView.js @@ -0,0 +1,52 @@ +/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) + * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + * 创建人:超级管理员 + * 日 期:2023-01-14 17:26 + * 描 述:实习材料管理 + */ +var acceptClick; +var keyValue = request('keyValue'); +var bootstrap = function ($, learun) { + "use strict"; + var page = { + init: function () { + $('.lr-form-wrap').lrscroll(); + page.bind(); + page.initData(); + }, + bind: function () { + $('#attach_file').lrUploader(); + $("#lrUploader_uploadBtn_attach_file").hide(); + }, + initData: function () { + if (!!keyValue) { + $.lrSetForm(top.$.rootUrl + '/EducationalAdministration/PracticeMaterial/GetFormData?keyValue=' + keyValue, function (data) { + for (var id in data) { + if (!!data[id].length && data[id].length > 0) { + $('#' + id ).jfGridSet('refreshdata', data[id]); + } + else { + $('[data-table="' + id + '"]').lrSetFormData(data[id]); + } + } + }); + } + } + }; + // 保存数据 + acceptClick = function (callBack) { + if (!$('body').lrValidform()) { + return false; + } + var postData = { + strEntity: JSON.stringify($('body').lrGetFormData()) + }; + $.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/PracticeMaterial/SaveForm?keyValue=' + keyValue, postData, function (res) { + // 保存成功后才回调 + if (!!callBack) { + callBack(); + } + }); + }; + page.init(); +} diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeMaterial/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeMaterial/Index.cshtml index 8341e44e6..5a959656d 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeMaterial/Index.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeMaterial/Index.cshtml @@ -34,9 +34,10 @@
-
+ @* 上传文件*@ diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeMaterial/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeMaterial/Index.js index 17a31a0ab..9d971e48c 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeMaterial/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeMaterial/Index.js @@ -49,6 +49,22 @@ var bootstrap = function ($, learun) { }); } }); + + $('#lr_view').on('click', function () { + var keyValue = $('#gridtable').jfGridValue('Id'); + if (learun.checkrow(keyValue)) { + learun.layerForm({ + id: 'form', + title: '查看', + url: top.$.rootUrl + '/EducationalAdministration/PracticeMaterial/FormView?keyValue=' + keyValue, + width: 600, + height: 400, + callBack: function (id) { + return top[id].acceptClick(refreshGirdData); + } + }); + } + }); // 删除 $('#lr_delete').on('click', function () { var keyValue = $('#gridtable').jfGridValue('Id'); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeUnitVisit/FormView.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeUnitVisit/FormView.cshtml new file mode 100644 index 000000000..842cbc00c --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeUnitVisit/FormView.cshtml @@ -0,0 +1,31 @@ +@{ + ViewBag.Title = "实习单位回访管理"; + Layout = "~/Views/Shared/_Form.cshtml"; +} +
+
+
实习主题*
+ +
+
+
单位名称*
+ +
+
+
回访日期*
+ +
+
+
回访人
+ +
+
+
附件
+
+
+
+
回访详情*
+ +
+
+@Html.AppendJsFile("/Areas/EducationalAdministration/Views/PracticeUnitVisit/FormView.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeUnitVisit/FormView.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeUnitVisit/FormView.js new file mode 100644 index 000000000..5ceb58b7d --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeUnitVisit/FormView.js @@ -0,0 +1,52 @@ +/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) + * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + * 创建人:超级管理员 + * 日 期:2023-01-14 17:17 + * 描 述:实习单位回访管理 + */ +var acceptClick; +var keyValue = request('keyValue'); +var bootstrap = function ($, learun) { + "use strict"; + var page = { + init: function () { + $('.lr-form-wrap').lrscroll(); + page.bind(); + page.initData(); + }, + bind: function () { + $('#attach_file').lrUploader(); + $("#lrUploader_uploadBtn_attach_file").hide(); + }, + initData: function () { + if (!!keyValue) { + $.lrSetForm(top.$.rootUrl + '/EducationalAdministration/PracticeUnitVisit/GetFormData?keyValue=' + keyValue, function (data) { + for (var id in data) { + if (!!data[id].length && data[id].length > 0) { + $('#' + id ).jfGridSet('refreshdata', data[id]); + } + else { + $('[data-table="' + id + '"]').lrSetFormData(data[id]); + } + } + }); + } + } + }; + // 保存数据 + acceptClick = function (callBack) { + if (!$('body').lrValidform()) { + return false; + } + var postData = { + strEntity: JSON.stringify($('body').lrGetFormData()) + }; + $.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/PracticeUnitVisit/SaveForm?keyValue=' + keyValue, postData, function (res) { + // 保存成功后才回调 + if (!!callBack) { + callBack(); + } + }); + }; + page.init(); +} diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeUnitVisit/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeUnitVisit/Index.cshtml index c1ce16ae3..5e5ca5575 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeUnitVisit/Index.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeUnitVisit/Index.cshtml @@ -33,9 +33,10 @@
-
+ @* 上传文件*@ diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeUnitVisit/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeUnitVisit/Index.js index 9a63d872b..50ecb03ab 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeUnitVisit/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeUnitVisit/Index.js @@ -49,6 +49,20 @@ var bootstrap = function ($, learun) { }); } }); + + $('#lr_view').on('click', function () { + var keyValue = $('#gridtable').jfGridValue('Id'); + if (learun.checkrow(keyValue)) { + learun.layerForm({ + id: 'form', + title: '查看', + url: top.$.rootUrl + '/EducationalAdministration/PracticeUnitVisit/FormView?keyValue=' + keyValue, + width: 600, + height: 400, + btn:null + }); + } + }); // 删除 $('#lr_delete').on('click', function () { var keyValue = $('#gridtable').jfGridValue('Id'); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj b/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj index 328ed1a39..d1f8bf029 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj @@ -1206,8 +1206,11 @@ + + + @@ -1234,11 +1237,15 @@ + + + + @@ -1410,6 +1417,13 @@ + + + + + + +