@@ -39,6 +39,12 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
return View(); | return View(); | ||||
} | } | ||||
[HttpGet] | |||||
public ActionResult FormView() | |||||
{ | |||||
return View(); | |||||
} | |||||
/// <summary> | /// <summary> | ||||
/// 上传页面 | /// 上传页面 | ||||
/// <summary> | /// <summary> | ||||
@@ -27,7 +27,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
[HttpGet] | [HttpGet] | ||||
public ActionResult Index() | public ActionResult Index() | ||||
{ | { | ||||
return View(); | |||||
return View(); | |||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 表单页 | /// 表单页 | ||||
@@ -36,9 +36,13 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
[HttpGet] | [HttpGet] | ||||
public ActionResult Form() | public ActionResult Form() | ||||
{ | { | ||||
return View(); | |||||
return View(); | |||||
} | |||||
[HttpGet] | |||||
public ActionResult FormView() | |||||
{ | |||||
return View(); | |||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 上传页面 | /// 上传页面 | ||||
/// <summary> | /// <summary> | ||||
@@ -81,8 +85,9 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
[AjaxOnly] | [AjaxOnly] | ||||
public ActionResult GetFormData(string keyValue) | public ActionResult GetFormData(string keyValue) | ||||
{ | { | ||||
var InternShipSummaryData = internShipSummaryIBLL.GetInternShipSummaryEntity( keyValue ); | |||||
var jsonData = new { | |||||
var InternShipSummaryData = internShipSummaryIBLL.GetInternShipSummaryEntity(keyValue); | |||||
var jsonData = new | |||||
{ | |||||
InternShipSummary = InternShipSummaryData, | InternShipSummary = InternShipSummaryData, | ||||
}; | }; | ||||
return Success(jsonData); | return Success(jsonData); | ||||
@@ -114,7 +119,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
public ActionResult SaveForm(string keyValue, string strEntity) | public ActionResult SaveForm(string keyValue, string strEntity) | ||||
{ | { | ||||
InternShipSummaryEntity entity = strEntity.ToObject<InternShipSummaryEntity>(); | InternShipSummaryEntity entity = strEntity.ToObject<InternShipSummaryEntity>(); | ||||
internShipSummaryIBLL.SaveEntity(keyValue,entity); | |||||
internShipSummaryIBLL.SaveEntity(keyValue, entity); | |||||
return Success("保存成功!"); | return Success("保存成功!"); | ||||
} | } | ||||
@@ -38,6 +38,12 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
{ | { | ||||
return View(); | return View(); | ||||
} | } | ||||
[HttpGet] | |||||
public ActionResult FormView() | |||||
{ | |||||
return View(); | |||||
} | |||||
/// <summary> | /// <summary> | ||||
/// 上传页面 | /// 上传页面 | ||||
/// <summary> | /// <summary> | ||||
@@ -39,6 +39,12 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
return View(); | return View(); | ||||
} | } | ||||
[HttpGet] | |||||
public ActionResult FormView() | |||||
{ | |||||
return View(); | |||||
} | |||||
/// <summary> | /// <summary> | ||||
/// 上传页面 | /// 上传页面 | ||||
/// <summary> | /// <summary> | ||||
@@ -38,6 +38,12 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
{ | { | ||||
return View(); | return View(); | ||||
} | } | ||||
[HttpGet] | |||||
public ActionResult FormView() | |||||
{ | |||||
return View(); | |||||
} | |||||
/// <summary> | /// <summary> | ||||
/// 上传页面 | /// 上传页面 | ||||
/// <summary> | /// <summary> | ||||
@@ -39,6 +39,12 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
return View(); | return View(); | ||||
} | } | ||||
[HttpGet] | |||||
public ActionResult FormView() | |||||
{ | |||||
return View(); | |||||
} | |||||
/// <summary> | /// <summary> | ||||
/// 上传页面 | /// 上传页面 | ||||
/// <summary> | /// <summary> | ||||
@@ -39,6 +39,12 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
return View(); | return View(); | ||||
} | } | ||||
[HttpGet] | |||||
public ActionResult FormView() | |||||
{ | |||||
return View(); | |||||
} | |||||
/// <summary> | /// <summary> | ||||
/// 上传页面 | /// 上传页面 | ||||
/// <summary> | /// <summary> | ||||
@@ -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") |
@@ -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(); | |||||
} |
@@ -26,9 +26,10 @@ | |||||
<div class=" btn-group btn-group-sm"> | <div class=" btn-group btn-group-sm"> | ||||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | <a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | ||||
</div> | </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> 录入</a> | <a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 录入</a> | ||||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 修改</a> | <a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 修改</a> | ||||
<a id="lr_view" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 查看</a> | |||||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | <a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | ||||
</div> | </div> | ||||
@*<a id="lr_upload" class="btn btn-default"><i class="fa fa-archive-o"></i> 上传文件</a>*@ | @*<a id="lr_upload" class="btn btn-default"><i class="fa fa-archive-o"></i> 上传文件</a>*@ | ||||
@@ -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 () { | $('#lr_delete').on('click', function () { | ||||
var keyValue = $('#gridtable').jfGridValue('ID'); | var keyValue = $('#gridtable').jfGridValue('ID'); | ||||
@@ -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") |
@@ -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(); | |||||
} |
@@ -26,9 +26,10 @@ | |||||
<div class=" btn-group btn-group-sm"> | <div class=" btn-group btn-group-sm"> | ||||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | <a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | ||||
</div> | </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> 录入</a> | <a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 录入</a> | ||||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 修改</a> | <a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 修改</a> | ||||
<a id="lr_view" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 查看</a> | |||||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | <a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | ||||
</div> | </div> | ||||
@*<a id="lr_upload" class="btn btn-default"><i class="fa fa-archive-o"></i> 上传文件</a>*@ | @*<a id="lr_upload" class="btn btn-default"><i class="fa fa-archive-o"></i> 上传文件</a>*@ | ||||
@@ -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 () { | $('#lr_delete').on('click', function () { | ||||
var keyValue = $('#gridtable').jfGridValue('ID'); | var keyValue = $('#gridtable').jfGridValue('ID'); | ||||
@@ -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") |
@@ -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(); | |||||
} |
@@ -30,9 +30,10 @@ | |||||
<div class=" btn-group btn-group-sm"> | <div class=" btn-group btn-group-sm"> | ||||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh">刷新</i></a> | <a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh">刷新</i></a> | ||||
</div> | </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> 录入</a> | <a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 录入</a> | ||||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 修改</a> | <a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 修改</a> | ||||
<a id="lr_view" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 查看</a> | |||||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | <a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | ||||
</div> | </div> | ||||
@*<a id="lr_upload" class="btn btn-default"><i class="fa fa-archive-o"></i> 上传文件</a>*@ | @*<a id="lr_upload" class="btn btn-default"><i class="fa fa-archive-o"></i> 上传文件</a>*@ | ||||
@@ -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 () { | $('#lr_delete').on('click', function () { | ||||
var keyValue = $('#gridtable').jfGridValue('ID'); | var keyValue = $('#gridtable').jfGridValue('ID'); | ||||
@@ -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") |
@@ -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(); | |||||
} |
@@ -26,9 +26,10 @@ | |||||
<div class=" btn-group btn-group-sm"> | <div class=" btn-group btn-group-sm"> | ||||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | <a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | ||||
</div> | </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> 新增</a> | <a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 新增</a> | ||||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | <a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | ||||
<a id="lr_view" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 查看</a> | |||||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | <a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | ||||
</div> | </div> | ||||
@*<a id="lr_upload" class="btn btn-default"><i class="fa fa-archive-o"></i> 上传文件</a>*@ | @*<a id="lr_upload" class="btn btn-default"><i class="fa fa-archive-o"></i> 上传文件</a>*@ | ||||
@@ -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 () { | $('#lr_delete').on('click', function () { | ||||
var keyValue = $('#gridtable').jfGridValue('Id'); | var keyValue = $('#gridtable').jfGridValue('Id'); | ||||
@@ -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") |
@@ -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(); | |||||
} |
@@ -34,9 +34,10 @@ | |||||
<div class=" btn-group btn-group-sm"> | <div class=" btn-group btn-group-sm"> | ||||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | <a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | ||||
</div> | </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> 新增</a> | <a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 新增</a> | ||||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | <a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | ||||
<a id="lr_view" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 查看</a> | |||||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | <a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | ||||
</div> | </div> | ||||
@*<a id="lr_upload" class="btn btn-default"><i class="fa fa-archive-o"></i> 上传文件</a>*@ | @*<a id="lr_upload" class="btn btn-default"><i class="fa fa-archive-o"></i> 上传文件</a>*@ | ||||
@@ -16,7 +16,7 @@ var bootstrap = function ($, learun) { | |||||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | $('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | ||||
page.search(queryJson); | page.search(queryJson); | ||||
}, 220, 400); | }, 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 () { | $('#lr_refresh').on('click', function () { | ||||
location.reload(); | 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 () { | $('#lr_delete').on('click', function () { | ||||
var keyValue = $('#gridtable').jfGridValue('Id'); | var keyValue = $('#gridtable').jfGridValue('Id'); | ||||
if (learun.checkrow(keyValue)) { | if (learun.checkrow(keyValue)) { | ||||
learun.layerConfirm('是否确认删除该项!', function (res) { | learun.layerConfirm('是否确认删除该项!', function (res) { | ||||
if (res) { | if (res) { | ||||
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/PracticeAssess/DeleteForm', { keyValue: keyValue}, function () { | |||||
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/PracticeAssess/DeleteForm', { keyValue: keyValue }, function () { | |||||
refreshGirdData(); | 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 | isPage: true | ||||
}); | }); | ||||
page.search(); | page.search(); | ||||
}, | }, | ||||
search: function (param) { | search: function (param) { | ||||
param = param || {}; | param = param || {}; | ||||
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) }); | |||||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||||
} | } | ||||
}; | }; | ||||
refreshGirdData = function () { | refreshGirdData = function () { | ||||
@@ -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") |
@@ -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(); | |||||
} |
@@ -34,9 +34,10 @@ | |||||
<div class=" btn-group btn-group-sm"> | <div class=" btn-group btn-group-sm"> | ||||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | <a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | ||||
</div> | </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> 新增</a> | <a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 新增</a> | ||||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | <a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | ||||
<a id="lr_view" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 查看</a> | |||||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | <a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | ||||
</div> | </div> | ||||
@*<a id="lr_upload" class="btn btn-default"><i class="fa fa-archive-o"></i> 上传文件</a>*@ | @*<a id="lr_upload" class="btn btn-default"><i class="fa fa-archive-o"></i> 上传文件</a>*@ | ||||
@@ -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 () { | $('#lr_delete').on('click', function () { | ||||
var keyValue = $('#gridtable').jfGridValue('Id'); | var keyValue = $('#gridtable').jfGridValue('Id'); | ||||
@@ -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") |
@@ -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(); | |||||
} |
@@ -33,9 +33,10 @@ | |||||
<div class=" btn-group btn-group-sm"> | <div class=" btn-group btn-group-sm"> | ||||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | <a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | ||||
</div> | </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> 新增</a> | <a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 新增</a> | ||||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | <a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | ||||
<a id="lr_view" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 查看</a> | |||||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | <a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | ||||
</div> | </div> | ||||
@*<a id="lr_upload" class="btn btn-default"><i class="fa fa-archive-o"></i> 上传文件</a>*@ | @*<a id="lr_upload" class="btn btn-default"><i class="fa fa-archive-o"></i> 上传文件</a>*@ | ||||
@@ -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 () { | $('#lr_delete').on('click', function () { | ||||
var keyValue = $('#gridtable').jfGridValue('Id'); | var keyValue = $('#gridtable').jfGridValue('Id'); | ||||
@@ -1206,8 +1206,11 @@ | |||||
<Content Include="Areas\EducationalAdministration\Views\HealthPunchStu\StatisticsTeach.js" /> | <Content Include="Areas\EducationalAdministration\Views\HealthPunchStu\StatisticsTeach.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\HealthPunchTime\Form.js" /> | <Content Include="Areas\EducationalAdministration\Views\HealthPunchTime\Form.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\HealthPunchTime\Index.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\InternShipLog\UploadForm.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\InternshipPlanPost\FormView.js" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\InternshipPlanPost\UploadForm.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\InternShipSummary\UploadForm.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\JournalSend\FormOfDC.js" /> | <Content Include="Areas\EducationalAdministration\Views\JournalSend\FormOfDC.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\JournalSend\IndexOfDC.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\Index.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\PM_PositionChange\StatisticIndex.js" /> | <Content Include="Areas\EducationalAdministration\Views\PM_PositionChange\StatisticIndex.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\PM_WorkerTechnology\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\PracticeAppraisal\UploadForm.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\PracticeAssess\FormView.js" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\PracticeAssess\UploadForm.js" /> | <Content Include="Areas\EducationalAdministration\Views\PracticeAssess\UploadForm.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\PracticeBase\Form.js" /> | <Content Include="Areas\EducationalAdministration\Views\PracticeBase\Form.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\PracticeBase\Index.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\PracticeMaterial\UploadForm.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\PracticeUnitVisit\FormView.js" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\PracticeUnitVisit\UploadForm.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\ClassReport.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\R_EnterBuilding\DeptReport.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\HealthPunchStu\StatisticsTeach.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\HealthPunchTime\Form.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\HealthPunchTime\Form.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\HealthPunchTime\Index.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" /> | <None Include="Areas\EducationalAdministration\Views\StuInfoBasic\Printxjk.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuInfoFresh\AllocationClassDC.js" /> | <Content Include="Areas\EducationalAdministration\Views\StuInfoFresh\AllocationClassDC.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuInfoFresh\StatisticClassIndex.js" /> | <Content Include="Areas\EducationalAdministration\Views\StuInfoFresh\StatisticClassIndex.js" /> | ||||