Browse Source

继教学分登记管理

新疆皮山
ndbs 2 months ago
parent
commit
1427ac615c
9 changed files with 152 additions and 1 deletions
  1. +9
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/TeacherTrainController.cs
  2. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherTrain/Form.cshtml
  3. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherTrain/Form.js
  4. +55
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherTrain/FormView.cshtml
  5. +58
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherTrain/FormView.js
  6. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherTrain/Index.cshtml
  7. +17
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherTrain/Index.js
  8. +2
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
  9. +5
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/TeacherTrain/TeacherTrainEntity.cs

+ 9
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/TeacherTrainController.cs View File

@@ -37,6 +37,15 @@ namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers
{
return View();
}
/// <summary>
/// 表单页
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult FormView()
{
return View();
}
#endregion

#region 获取数据


+ 4
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherTrain/Form.cshtml View File

@@ -47,5 +47,9 @@
<div class="lr-form-item-title">备注</div>
<input id="TTComment" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item" data-table="TeacherTrain">
<div class="lr-form-item-title">附件上传</div>
<div id="Path"></div>
</div>
</div>
@Html.AppendJsFile("/Areas/PersonnelManagement/Views/TeacherTrain/Form.js")

+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherTrain/Form.js View File

@@ -22,6 +22,7 @@ var bootstrap = function ($, learun) {
dataUrl: top.$.rootUrl + '/LR_OrganizationModule/User/GetListByUserIds'
});
$("#TTLevel").lrDataItemSelect({ code: 'TrainLevel' });
$('#Path').lrUploader();
},
initData: function () {
if (!!keyValue) {


+ 55
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherTrain/FormView.cshtml View File

@@ -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="TeacherTrain">
<div class="lr-form-item-title">组织培训单位</div>
<input id="TTUnit" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item" data-table="TeacherTrain">
<div class="lr-form-item-title">教师姓名<font face="宋体">*</font></div>
<div id="EID" isvalid="yes" checkexpession="NotNull"></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="TeacherTrain">
<div class="lr-form-item-title">培训开始时间<font face="宋体">*</font></div>
<input id="TTStartTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt: 'yyyy-MM-dd', onpicked: function() { $('#TTStartTime').trigger('change'); } })" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-6 lr-form-item" data-table="TeacherTrain">
<div class="lr-form-item-title">培训结束时间<font face="宋体">*</font></div>
<input id="TTEndTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt: 'yyyy-MM-dd', onpicked: function() { $('#TTEndTime').trigger('change'); } })" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-12 lr-form-item" data-table="TeacherTrain">
<div class="lr-form-item-title">培训内容<font face="宋体">*</font></div>
<textarea id="TTContent" class="form-control" style="height: 100px;" isvalid="yes" checkexpession="NotNull"></textarea>
</div>
<div class="col-xs-12 lr-form-item" data-table="TeacherTrain">
<div class="lr-form-item-title">培训机构<font face="宋体">*</font></div>
<input id="TTOrganization" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-12 lr-form-item" data-table="TeacherTrain">
<div class="lr-form-item-title">培训方式<font face="宋体">*</font></div>
<input id="TTWay" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-12 lr-form-item" data-table="TeacherTrain">
<div class="lr-form-item-title">所获证书<font face="宋体">*</font></div>
<input id="TTCertificates" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-6 lr-form-item" data-table="TeacherTrain">
<div class="lr-form-item-title">培训级别<font face="宋体">*</font></div>
<div id="TTLevel" isvalid="yes" checkexpession="NotNull"></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="TeacherTrain">
<div class="lr-form-item-title">培训人数<font face="宋体">*</font></div>
<input id="TTEmpNum" type="number" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-12 lr-form-item" data-table="TeacherTrain">
<div class="lr-form-item-title">备注</div>
<input id="TTComment" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item" data-table="TeacherTrain">
<div class="lr-form-item-title">附件上传</div>
<div id="Path"></div>
</div>
</div>
@Html.AppendJsFile("/Areas/PersonnelManagement/Views/TeacherTrain/FormView.js")

+ 58
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherTrain/FormView.js View File

@@ -0,0 +1,58 @@
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
* Copyright (c) 2013-2018 北京泉江科技有限公司
* 创建人:超级管理员
* 日 期:2019-03-19 11:34
* 描 述:教师培训信息
*/
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 () {
$('#EID').lrformselect({
layerUrl: top.$.rootUrl + '/LR_OrganizationModule/User/SelectOnlyForm',
layerUrlW: 400,
layerUrlH: 300,
dataUrl: top.$.rootUrl + '/LR_OrganizationModule/User/GetListByUserIds'
});
$("#TTLevel").lrDataItemSelect({ code: 'TrainLevel' });
$('#Path').lrUploader({ isUpload: false });
},
initData: function () {
if (!!keyValue) {
$.lrSetForm(top.$.rootUrl + '/PersonnelManagement/TeacherTrain/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 + '/PersonnelManagement/TeacherTrain/SaveForm?keyValue=' + keyValue, postData, function (res) {
// 保存成功后才回调
if (!!callBack) {
callBack();
}
});
};
page.init();
}

+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherTrain/Index.cshtml View File

@@ -26,6 +26,7 @@
<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_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
<a id="lr_view" class="btn btn-default"><i class="fa fa-search-minus"></i>&nbsp;查看</a>
</div>
</div>
</div>


+ 17
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherTrain/Index.js View File

@@ -63,6 +63,23 @@ var bootstrap = function ($, learun) {
});
}
});
//查看
$('#lr_view').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('TTID');
if (learun.checkrow(keyValue)) {
learun.layerForm({
id: 'formteachertrain',
title: '查看',
url: top.$.rootUrl + '/PersonnelManagement/TeacherTrain/FormView?keyValue=' + keyValue,
width: 1000,
height: 700,
btn: '',
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
});
}
});
},
// 初始化列表
initGird: function () {


+ 2
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj View File

@@ -1912,6 +1912,7 @@
<Content Include="Areas\PersonnelManagement\Views\TeacherLeaveManagement\Form.js" />
<Content Include="Areas\PersonnelManagement\Views\TeacherLeaveManagement\FormView.js" />
<Content Include="Areas\PersonnelManagement\Views\TeacherLeaveManagement\Index.js" />
<Content Include="Areas\PersonnelManagement\Views\TeacherTrain\FormView.js" />
<Content Include="Areas\PersonnelManagement\Views\VisitorInfo\ExamineForm.js" />
<Content Include="Areas\PersonnelManagement\Views\VisitorInfo\fromAdd.css" />
<Content Include="Areas\ReceiveSendFeeManagement\Views\FD_PayManage\AmountConversion.js" />
@@ -8178,6 +8179,7 @@
<Content Include="Areas\EducationalAdministration\Views\JobPerformance\IndexMy.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\JobPerformance\IndexPrint.cshtml" />
<Content Include="Content\excel\JobPerformanceImport.xls" />
<Content Include="Areas\PersonnelManagement\Views\TeacherTrain\FormView.cshtml" />
<None Include="Properties\PublishProfiles\CustomProfile.pubxml" />
<None Include="Properties\PublishProfiles\FolderProfile.pubxml" />
<Content Include="Views\Login\Default-beifen.cshtml" />


+ 5
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/TeacherTrain/TeacherTrainEntity.cs View File

@@ -84,7 +84,11 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
/// </summary>
[Column("TTEMPNUM")]
public int? TTEmpNum { get; set; }

/// <summary>
/// 附件
/// </summary>
[Column("PATH")]
public string Path { get; set; }
#endregion

#region 扩展操作


Loading…
Cancel
Save