Просмотр исходного кода

实习管理查看功能添加

北屯中职分支
liangkun 1 год назад
Родитель
Сommit
0be1643dee
36 измененных файлов: 820 добавлений и 32 удалений
  1. +6
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/InternShipLogController.cs
  2. +11
    -6
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/InternShipSummaryController.cs
  3. +6
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/InternshipPlanPostController.cs
  4. +6
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/PracticeAppraisalController.cs
  5. +6
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/PracticeAssessController.cs
  6. +6
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/PracticeMaterialController.cs
  7. +6
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/PracticeUnitVisitController.cs
  8. +39
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipLog/FormView.cshtml
  9. +52
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipLog/FormView.js
  10. +2
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipLog/Index.cshtml
  11. +13
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipLog/Index.js
  12. +35
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipSummary/FormView.cshtml
  13. +52
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipSummary/FormView.js
  14. +2
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipSummary/Index.cshtml
  15. +14
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipSummary/Index.js
  16. +55
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternshipPlanPost/FormView.cshtml
  17. +56
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternshipPlanPost/FormView.js
  18. +2
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternshipPlanPost/Index.cshtml
  19. +14
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternshipPlanPost/Index.js
  20. +27
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAppraisal/FormView.cshtml
  21. +54
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAppraisal/FormView.js
  22. +2
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAppraisal/Index.cshtml
  23. +13
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAppraisal/Index.js
  24. +36
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAssess/FormView.cshtml
  25. +54
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAssess/FormView.js
  26. +2
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAssess/Index.cshtml
  27. +35
    -19
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAssess/Index.js
  28. +31
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeMaterial/FormView.cshtml
  29. +52
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeMaterial/FormView.js
  30. +2
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeMaterial/Index.cshtml
  31. +16
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeMaterial/Index.js
  32. +31
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeUnitVisit/FormView.cshtml
  33. +52
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeUnitVisit/FormView.js
  34. +2
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeUnitVisit/Index.cshtml
  35. +14
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeUnitVisit/Index.js
  36. +14
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj

+ 6
- 0
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();
}

/// <summary>
/// 上传页面
/// <summary>


+ 11
- 6
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();
}
/// <summary>
/// 表单页
@@ -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();
}

/// <summary>
/// 上传页面
/// <summary>
@@ -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<InternShipSummaryEntity>();
internShipSummaryIBLL.SaveEntity(keyValue,entity);
internShipSummaryIBLL.SaveEntity(keyValue, entity);
return Success("保存成功!");
}



+ 6
- 0
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();
}
/// <summary>
/// 上传页面
/// <summary>


+ 6
- 0
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();
}

/// <summary>
/// 上传页面
/// <summary>


+ 6
- 0
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();
}
/// <summary>
/// 上传页面
/// <summary>


+ 6
- 0
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();
}

/// <summary>
/// 上传页面
/// <summary>


+ 6
- 0
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();
}

/// <summary>
/// 上传页面
/// <summary>


+ 39
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipLog/FormView.cshtml Просмотреть файл

@@ -0,0 +1,39 @@
@{
ViewBag.Title = "实习日志管理";
Layout = "~/Views/Shared/_Form.cshtml";
}
<div class="lr-form-wrap">
<div class="col-xs-12 lr-form-item" data-table="InternShipLog" >
<div class="lr-form-item-title">学生</div>
<input id="StudentID" type="text" class="form-control" readonly="readonly" />
</div>
<div class="col-xs-12 lr-form-item" data-table="InternShipLog" >
<div class="lr-form-item-title">联系方式</div>
<input id="Mobile" type="text" class="form-control" readonly="readonly"/>
</div>
<div class="col-xs-12 lr-form-item" data-table="InternShipLog" >
<div class="lr-form-item-title">日志名称</div>
<input id="LogName" type="text" class="form-control" readonly="readonly" />
</div>
<div class="col-xs-12 lr-form-item" data-table="InternShipLog" >
<div class="lr-form-item-title">实习单位</div>
<input id="IUnit" type="text" class="form-control" readonly="readonly"/>
</div>
<div class="col-xs-12 lr-form-item" data-table="InternShipLog" >
<div class="lr-form-item-title">提交日期</div>
<input id="AddTime" type="text" class="form-control lr-input-wdatepicker" readonly="readonly" />
</div>
<div class="col-xs-12 lr-form-item" data-table="InternShipLog" >
<div class="lr-form-item-title">内容</div>
<textarea id="LogContent" class="form-control" style="height:100px;" readonly="readonly" ></textarea>
</div>
<div class="col-xs-12 lr-form-item" data-table="InternShipLog">
<div class="lr-form-item-title">附件</div>
<div id="attach_file" readonly="readonly"></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="InternShipLog" >
<div class="lr-form-item-title">备注</div>
<textarea id="Remark" class="form-control" style="height:100px;" readonly="readonly"></textarea>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/InternShipLog/FormView.js")

+ 52
- 0
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();
}

+ 2
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipLog/Index.cshtml Просмотреть файл

@@ -26,9 +26,10 @@
<div class=" btn-group btn-group-sm">
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a>
</div>
<div class=" btn-group btn-group-sm" learun-authorize="yes">
<div class=" btn-group btn-group-sm">
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;录入</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
<a id="lr_view" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;查看</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
</div>
@*<a id="lr_upload" class="btn btn-default"><i class="fa fa-archive-o"></i>&nbsp;上传文件</a>*@


+ 13
- 0
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');


+ 35
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipSummary/FormView.cshtml Просмотреть файл

@@ -0,0 +1,35 @@
@{
ViewBag.Title = "实习总结管理";
Layout = "~/Views/Shared/_Form.cshtml";
}
<div class="lr-form-wrap">
<div class="col-xs-12 lr-form-item" data-table="InternShipSummary" >
<div class="lr-form-item-title">学生名称</div>
<input id="Student" type="text" class="form-control" readonly="readonly"/>
</div>
<div class="col-xs-12 lr-form-item" data-table="InternShipSummary" >
<div class="lr-form-item-title">总结名称</div>
<input id="SummaryName" type="text" class="form-control" readonly="readonly"/>
</div>
<div class="col-xs-12 lr-form-item" data-table="InternShipSummary" >
<div class="lr-form-item-title">提交日期</div>
<input id="AddTime" type="text" class="form-control lr-input-wdatepicker" readonly="readonly" />
</div>
<div class="col-xs-12 lr-form-item" data-table="InternShipSummary" >
<div class="lr-form-item-title">联系方式</div>
<input id="Mobile" type="text" class="form-control" readonly="readonly"/>
</div>
<div class="col-xs-12 lr-form-item" data-table="InternShipSummary">
<div class="lr-form-item-title">附件</div>
<div id="attach_file" readonly="readonly"></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="InternShipSummary" >
<div class="lr-form-item-title">备注</div>
<textarea id="Remark" class="form-control" style="height:100px;" readonly="readonly"></textarea>
</div>
<div class="col-xs-12 lr-form-item" data-table="InternShipSummary" >
<div class="lr-form-item-title">总结内容</div>
<textarea id="SummaryContent" class="form-control" style="height:100px;" readonly="readonly" ></textarea>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/InternShipSummary/FormView.js")

+ 52
- 0
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();
}

+ 2
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternShipSummary/Index.cshtml Просмотреть файл

@@ -26,9 +26,10 @@
<div class=" btn-group btn-group-sm">
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a>
</div>
<div class=" btn-group btn-group-sm" learun-authorize="yes">
<div class=" btn-group btn-group-sm">
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;录入</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
<a id="lr_view" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;查看</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
</div>
@*<a id="lr_upload" class="btn btn-default"><i class="fa fa-archive-o"></i>&nbsp;上传文件</a>*@


+ 14
- 0
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');


+ 55
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternshipPlanPost/FormView.cshtml Просмотреть файл

@@ -0,0 +1,55 @@
@{
ViewBag.Title = "申报实习计划岗位";
Layout = "~/Views/Shared/_Form.cshtml";
}
<div class="lr-form-wrap">
<div class="col-xs-12 lr-form-item" data-table="InternshipPlanPost" >
<div class="lr-form-item-title">计划名称</div>
<input id="PlanName" type="text" class="form-control" readonly="readonly" />
</div>
<div class="col-xs-12 lr-form-item" data-table="InternshipPlanPost" >
<div class="lr-form-item-title">实习岗位</div>
<input id="InternshipPost" type="text" class="form-control" readonly="readonly" />
</div>
<div class="col-xs-12 lr-form-item" data-table="InternshipPlanPost" >
<div class="lr-form-item-title">开始日期</div>
<input id="StartTime" type="text" class="form-control lr-input-wdatepicker" readonly="readonly" />
</div>
<div class="col-xs-12 lr-form-item" data-table="InternshipPlanPost" >
<div class="lr-form-item-title">结束日期</div>
<input id="EndTime" type="text" class="form-control lr-input-wdatepicker" readonly="readonly" />
</div>
<div class="col-xs-12 lr-form-item" data-table="InternshipPlanPost" >
<div class="lr-form-item-title">专业名称</div>
<input id="MajorName" type="text" class="form-control" readonly="readonly"/>
</div>
<div class="col-xs-12 lr-form-item" data-table="InternshipPlanPost" >
<div class="lr-form-item-title">专业负责人</div>
<input id="MajorHead" type="text" class="form-control" readonly="readonly" />
</div>
<div class="col-xs-12 lr-form-item" data-table="InternshipPlanPost" >
<div class="lr-form-item-title">审批人</div>
<input id="Checker" type="text" class="form-control" readonly="readonly" />
</div>
<div class="col-xs-12 lr-form-item" data-table="InternshipPlanPost" >
<div class="lr-form-item-title">单选项</div>
<div id="Status" readonly="readonly"></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="InternshipPlanPost" >
<div class="lr-form-item-title">内容简介</div>
<textarea id="ContentValidate" class="form-control" style="height:100px;" readonly="readonly"></textarea>
</div>
<div class="col-xs-12 lr-form-item" data-table="InternshipPlanPost" >
<div class="lr-form-item-title">岗位职责</div>
<textarea id="Responsibilities" class="form-control" style="height:100px;" readonly="readonly"></textarea>
</div>
<div class="col-xs-12 lr-form-item" data-table="InternshipPlanPost">
<div class="lr-form-item-title">附件</div>
<div id="attach_file" readonly="readonly"></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="InternshipPlanPost" >
<div class="lr-form-item-title">备注</div>
<textarea id="Remark" class="form-control" style="height:100px;" readonly="readonly"></textarea>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/InternshipPlanPost/FormView.js")

+ 56
- 0
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();
}

+ 2
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/InternshipPlanPost/Index.cshtml Просмотреть файл

@@ -30,9 +30,10 @@
<div class=" btn-group btn-group-sm">
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh">刷新</i></a>
</div>
<div class=" btn-group btn-group-sm" learun-authorize="yes">
<div class=" btn-group btn-group-sm">
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;录入</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
<a id="lr_view" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;查看</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
</div>
@*<a id="lr_upload" class="btn btn-default"><i class="fa fa-archive-o"></i>&nbsp;上传文件</a>*@


+ 14
- 0
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');


+ 27
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAppraisal/FormView.cshtml Просмотреть файл

@@ -0,0 +1,27 @@
@{
ViewBag.Title = "实习鉴定下载";
Layout = "~/Views/Shared/_Form.cshtml";
}
<div class="lr-form-wrap" id="form">
<div class="col-xs-6 lr-form-item" data-table="Practice_Appraisal" >
<div class="lr-form-item-title">鉴定名称<font face="宋体">*</font></div>
<input id="AppraisalName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" readonly="readonly" />
</div>
@*<div class="col-xs-6 lr-form-item" data-table="Practice_Appraisal" >
<div class="lr-form-item-title">文件上传</div>
<div id="Down_Url" ></div>
</div>*@
<div class="col-xs-6 lr-form-item" data-table="Practice_Appraisal" >
<div class="lr-form-item-title">下载次数<font face="宋体">*</font></div>
<input id="Down_Time" type="text" class="form-control" isvalid="yes" checkexpession="Num" readonly="readonly" />
</div>
<div class="col-xs-12 lr-form-item" data-table="Practice_Appraisal">
<div class="lr-form-item-title">附件</div>
<div id="attach_file" readonly="readonly"></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="Practice_Appraisal" >
<div class="lr-form-item-title">备注</div>
<textarea id="Reamark" class="form-control" style="height:200px;" readonly="readonly"></textarea>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/PracticeAppraisal/FormView.js")

+ 54
- 0
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();
}

+ 2
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAppraisal/Index.cshtml Просмотреть файл

@@ -26,9 +26,10 @@
<div class=" btn-group btn-group-sm">
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a>
</div>
<div class=" btn-group btn-group-sm" learun-authorize="yes">
<div class=" btn-group btn-group-sm">
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<a id="lr_view" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;查看</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
</div>
@*<a id="lr_upload" class="btn btn-default"><i class="fa fa-archive-o"></i>&nbsp;上传文件</a>*@


+ 13
- 0
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');


+ 36
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAssess/FormView.cshtml Просмотреть файл

@@ -0,0 +1,36 @@
@{
ViewBag.Title = "实习考核管理";
Layout = "~/Views/Shared/_Form.cshtml";
}
<div class="lr-form-wrap" id="form">
<div class="col-xs-6 lr-form-item" data-table="Practice_Assess">
<div class="lr-form-item-title">实习学生<font face="宋体">*</font></div>
@*<div id="StuId" isvalid="yes" checkexpession="NotNull"></div>*@
<input id="StuId" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" readonly="readonly" />
</div>
<div class="col-xs-6 lr-form-item" data-table="Practice_Assess" >
<div class="lr-form-item-title">实习注册号</div>
<div id="InternId" readonly="readonly"></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="Practice_Assess" >
<div class="lr-form-item-title">实习单位<font face="宋体">*</font></div>
<input id="IUnit" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" readonly="readonly"/>
</div>
<div class="col-xs-6 lr-form-item" data-table="Practice_Assess" >
<div class="lr-form-item-title">实习岗位<font face="宋体">*</font></div>
<input id="IPost" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" readonly="readonly"/>
</div>
<div class="col-xs-6 lr-form-item" data-table="Practice_Assess" >
<div class="lr-form-item-title">最终得分<font face="宋体">*</font></div>
<input id="Total_Score" type="text" class="form-control" isvalid="yes" checkexpession="Num" readonly="readonly"/>
</div>
<div class="col-xs-12 lr-form-item" data-table="Practice_Assess">
<div class="lr-form-item-title">附件</div>
<div id="attach_file" readonly="readonly"></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="Practice_Assess" >
<div class="lr-form-item-title">考核详细内容<font face="宋体">*</font></div>
<textarea id="Assess_Content" class="form-control" style="height:400px;" isvalid="yes" checkexpession="NotNull" readonly="readonly"></textarea>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/PracticeAssess/FormView.js")

+ 54
- 0
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();
}

+ 2
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeAssess/Index.cshtml Просмотреть файл

@@ -34,9 +34,10 @@
<div class=" btn-group btn-group-sm">
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a>
</div>
<div class=" btn-group btn-group-sm" learun-authorize="yes">
<div class=" btn-group btn-group-sm">
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<a id="lr_view" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;查看</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
</div>
@*<a id="lr_upload" class="btn btn-default"><i class="fa fa-archive-o"></i>&nbsp;上传文件</a>*@


+ 35
- 19
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 () {


+ 31
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeMaterial/FormView.cshtml Просмотреть файл

@@ -0,0 +1,31 @@
@{
ViewBag.Title = "实习材料管理";
Layout = "~/Views/Shared/_Form.cshtml";
}
<div class="lr-form-wrap" id="form">
<div class="col-xs-6 lr-form-item" data-table="Practice_Material" >
<div class="lr-form-item-title">材料名称<font face="宋体">*</font></div>
<input id="MaterName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" readonly="readonly" />
</div>
<div class="col-xs-6 lr-form-item" data-table="Practice_Material" >
<div class="lr-form-item-title">数量<font face="宋体">*</font></div>
<input id="Use_Total" type="text" class="form-control" isvalid="yes" checkexpession="Num" readonly="readonly"/>
</div>
<div class="col-xs-6 lr-form-item" data-table="Practice_Material" >
<div class="lr-form-item-title">库存数量<font face="宋体">*</font></div>
<input id="Stock" type="text" class="form-control" isvalid="yes" checkexpession="Num" readonly="readonly"/>
</div>
<div class="col-xs-6 lr-form-item" data-table="Practice_Material" >
<div class="lr-form-item-title">单价</div>
<input id="Price" type="text" class="form-control" isvalid="yes" checkexpession="PositiveFloatintZero" readonly="readonly"/>
</div>
<div class="col-xs-12 lr-form-item" data-table="Practice_Material">
<div class="lr-form-item-title">附件</div>
<div id="attach_file" readonly="readonly"></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="Practice_Material" >
<div class="lr-form-item-title">备注</div>
<textarea id="Remark" class="form-control" style="height:200px;" readonly="readonly"></textarea>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/PracticeMaterial/FormView.js")

+ 52
- 0
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();
}

+ 2
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeMaterial/Index.cshtml Просмотреть файл

@@ -34,9 +34,10 @@
<div class=" btn-group btn-group-sm">
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a>
</div>
<div class=" btn-group btn-group-sm" learun-authorize="yes">
<div class=" btn-group btn-group-sm">
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<a id="lr_view" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;查看</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
</div>
@*<a id="lr_upload" class="btn btn-default"><i class="fa fa-archive-o"></i>&nbsp;上传文件</a>*@


+ 16
- 0
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');


+ 31
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeUnitVisit/FormView.cshtml Просмотреть файл

@@ -0,0 +1,31 @@
@{
ViewBag.Title = "实习单位回访管理";
Layout = "~/Views/Shared/_Form.cshtml";
}
<div class="lr-form-wrap" id="form">
<div class="col-xs-12 lr-form-item" data-table="Practice_Unit_Visit" >
<div class="lr-form-item-title">实习主题<font face="宋体">*</font></div>
<input id="PracticeTitle" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" readonly="readonly" />
</div>
<div class="col-xs-6 lr-form-item" data-table="Practice_Unit_Visit" >
<div class="lr-form-item-title">单位名称<font face="宋体">*</font></div>
<input id="UnitId" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" readonly="readonly"/>
</div>
<div class="col-xs-6 lr-form-item" data-table="Practice_Unit_Visit" >
<div class="lr-form-item-title">回访日期<font face="宋体">*</font></div>
<input id="Visit_Date" type="text" class="form-control lr-input-wdatepicker" readonly="readonly"/>
</div>
<div class="col-xs-6 lr-form-item" data-table="Practice_Unit_Visit" >
<div class="lr-form-item-title">回访人</div>
<input id="Visiter" type="text" class="form-control" readonly="readonly"/>
</div>
<div class="col-xs-12 lr-form-item" data-table="Practice_Unit_Visit">
<div class="lr-form-item-title">附件</div>
<div id="attach_file" readonly="readonly"></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="Practice_Unit_Visit" >
<div class="lr-form-item-title">回访详情<font face="宋体">*</font></div>
<textarea id="Feedback" class="form-control" style="height:200px;" isvalid="yes" checkexpession="NotNull" readonly="readonly"></textarea>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/PracticeUnitVisit/FormView.js")

+ 52
- 0
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();
}

+ 2
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PracticeUnitVisit/Index.cshtml Просмотреть файл

@@ -33,9 +33,10 @@
<div class=" btn-group btn-group-sm">
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a>
</div>
<div class=" btn-group btn-group-sm" learun-authorize="yes">
<div class=" btn-group btn-group-sm">
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<a id="lr_view" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;查看</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
</div>
@*<a id="lr_upload" class="btn btn-default"><i class="fa fa-archive-o"></i>&nbsp;上传文件</a>*@


+ 14
- 0
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');


+ 14
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj Просмотреть файл

@@ -1206,8 +1206,11 @@
<Content Include="Areas\EducationalAdministration\Views\HealthPunchStu\StatisticsTeach.js" />
<Content Include="Areas\EducationalAdministration\Views\HealthPunchTime\Form.js" />
<Content Include="Areas\EducationalAdministration\Views\HealthPunchTime\Index.js" />
<Content Include="Areas\EducationalAdministration\Views\InternShipLog\FormView.js" />
<Content Include="Areas\EducationalAdministration\Views\InternShipLog\UploadForm.js" />
<Content Include="Areas\EducationalAdministration\Views\InternshipPlanPost\FormView.js" />
<Content Include="Areas\EducationalAdministration\Views\InternshipPlanPost\UploadForm.js" />
<Content Include="Areas\EducationalAdministration\Views\InternShipSummary\FormView.js" />
<Content Include="Areas\EducationalAdministration\Views\InternShipSummary\UploadForm.js" />
<Content Include="Areas\EducationalAdministration\Views\JournalSend\FormOfDC.js" />
<Content Include="Areas\EducationalAdministration\Views\JournalSend\IndexOfDC.js" />
@@ -1234,11 +1237,15 @@
<Content Include="Areas\EducationalAdministration\Views\PM_PositionChange\Index.js" />
<Content Include="Areas\EducationalAdministration\Views\PM_PositionChange\StatisticIndex.js" />
<Content Include="Areas\EducationalAdministration\Views\PM_WorkerTechnology\StatisticIndex.js" />
<Content Include="Areas\EducationalAdministration\Views\PracticeAppraisal\FormView.js" />
<Content Include="Areas\EducationalAdministration\Views\PracticeAppraisal\UploadForm.js" />
<Content Include="Areas\EducationalAdministration\Views\PracticeAssess\FormView.js" />
<Content Include="Areas\EducationalAdministration\Views\PracticeAssess\UploadForm.js" />
<Content Include="Areas\EducationalAdministration\Views\PracticeBase\Form.js" />
<Content Include="Areas\EducationalAdministration\Views\PracticeBase\Index.js" />
<Content Include="Areas\EducationalAdministration\Views\PracticeMaterial\FormView.js" />
<Content Include="Areas\EducationalAdministration\Views\PracticeMaterial\UploadForm.js" />
<Content Include="Areas\EducationalAdministration\Views\PracticeUnitVisit\FormView.js" />
<Content Include="Areas\EducationalAdministration\Views\PracticeUnitVisit\UploadForm.js" />
<Content Include="Areas\EducationalAdministration\Views\R_EnterBuilding\ClassReport.js" />
<Content Include="Areas\EducationalAdministration\Views\R_EnterBuilding\DeptReport.js" />
@@ -1410,6 +1417,13 @@
<Content Include="Areas\EducationalAdministration\Views\HealthPunchStu\StatisticsTeach.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\HealthPunchTime\Form.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\HealthPunchTime\Index.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\InternshipPlanPost\FormView.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\InternShipLog\FormView.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\InternShipSummary\FormView.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\PracticeAssess\FormView.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\PracticeUnitVisit\FormView.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\PracticeMaterial\FormView.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\PracticeAppraisal\FormView.cshtml" />
<None Include="Areas\EducationalAdministration\Views\StuInfoBasic\Printxjk.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StuInfoFresh\AllocationClassDC.js" />
<Content Include="Areas\EducationalAdministration\Views\StuInfoFresh\StatisticClassIndex.js" />


Загрузка…
Отмена
Сохранить