@@ -0,0 +1,136 @@ | |||||
using Learun.Util; | |||||
using System.Data; | |||||
using Learun.Application.TwoDevelopment.EducationalAdministration; | |||||
using System.Web.Mvc; | |||||
using System.Collections.Generic; | |||||
namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
{ | |||||
/// <summary> | |||||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
/// 创 建:超级管理员 | |||||
/// 日 期:2023-06-12 11:42 | |||||
/// 描 述:TeachingCompetition | |||||
/// </summary> | |||||
public class TeachingCompetitionController : MvcControllerBase | |||||
{ | |||||
private TeachingCompetitionIBLL teachingCompetitionIBLL = new TeachingCompetitionBLL(); | |||||
#region 视图功能 | |||||
/// <summary> | |||||
/// 主页面 | |||||
/// <summary> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
public ActionResult Index() | |||||
{ | |||||
return View(); | |||||
} | |||||
/// <summary> | |||||
/// 表单页 | |||||
/// <summary> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
public ActionResult Form() | |||||
{ | |||||
return View(); | |||||
} | |||||
[HttpGet] | |||||
public ActionResult CheckForm() | |||||
{ | |||||
return View(); | |||||
} | |||||
#endregion | |||||
#region 获取数据 | |||||
/// <summary> | |||||
/// 获取页面显示列表数据 | |||||
/// </summary> | |||||
/// <param name="pagination">分页参数</param> | |||||
/// <param name="queryJson">查询参数</param> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
[AjaxOnly] | |||||
public ActionResult GetPageList(string pagination, string queryJson) | |||||
{ | |||||
Pagination paginationobj = pagination.ToObject<Pagination>(); | |||||
var data = teachingCompetitionIBLL.GetPageList(paginationobj, queryJson); | |||||
var jsonData = new | |||||
{ | |||||
rows = data, | |||||
total = paginationobj.total, | |||||
page = paginationobj.page, | |||||
records = paginationobj.records | |||||
}; | |||||
return Success(jsonData); | |||||
} | |||||
/// <summary> | |||||
/// 获取表单数据 | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
[AjaxOnly] | |||||
public ActionResult GetFormData(string keyValue) | |||||
{ | |||||
var TeachingCompetitionData = teachingCompetitionIBLL.GetTeachingCompetitionEntity(keyValue); | |||||
var jsonData = new | |||||
{ | |||||
TeachingCompetition = TeachingCompetitionData, | |||||
}; | |||||
return Success(jsonData); | |||||
} | |||||
#endregion | |||||
#region 提交数据 | |||||
/// <summary> | |||||
/// 删除实体数据 | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
/// <returns></returns> | |||||
[HttpPost] | |||||
[AjaxOnly] | |||||
public ActionResult DeleteForm(string keyValue) | |||||
{ | |||||
teachingCompetitionIBLL.DeleteEntity(keyValue); | |||||
return Success("删除成功!"); | |||||
} | |||||
/// <summary> | |||||
/// 保存实体数据(新增、修改) | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
/// <param name="strEntity">实体</param> | |||||
/// <returns></returns> | |||||
[HttpPost] | |||||
[ValidateAntiForgeryToken] | |||||
[AjaxOnly] | |||||
public ActionResult SaveForm(string keyValue, string strEntity) | |||||
{ | |||||
TeachingCompetitionEntity entity = strEntity.ToObject<TeachingCompetitionEntity>(); | |||||
teachingCompetitionIBLL.SaveEntity(keyValue, entity); | |||||
if (string.IsNullOrEmpty(keyValue)) | |||||
{ | |||||
} | |||||
return Success("保存成功!"); | |||||
} | |||||
[HttpPost] | |||||
[AjaxOnly] | |||||
public ActionResult CheckForm(string keyValue, string strEntity) | |||||
{ | |||||
TeachingCompetitionEntity entity = strEntity.ToObject<TeachingCompetitionEntity>(); | |||||
teachingCompetitionIBLL.CheckEntity(keyValue, entity); | |||||
return Success("评价成功!"); | |||||
} | |||||
#endregion | |||||
} | |||||
} |
@@ -0,0 +1,20 @@ | |||||
@{ | |||||
ViewBag.Title = "TeachingCompetition"; | |||||
Layout = "~/Views/Shared/_Form.cshtml"; | |||||
} | |||||
<div class="lr-form-wrap" id="form"> | |||||
<div class="col-xs-6 lr-form-item" data-table="TeachingCompetition"> | |||||
<div class="lr-form-item-title">级别<font face="宋体">*</font></div> | |||||
<div id="Rating" isvalid="yes" checkexpession="NotNull"></div> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="TeachingCompetition"> | |||||
<div class="lr-form-item-title">评价教师<font face="宋体">*</font></div> | |||||
<input id="EvaluateTeacher" type="text" class="form-control currentInfo lr-currentInfo-user" /> | |||||
@*<div id="EvaluateTeacher" isvalid="yes" checkexpession="NotNull"></div>*@ | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="TeachingCompetition"> | |||||
<div class="lr-form-item-title">备注</div> | |||||
<textarea id="EvaluateRemark" class="form-control" style="height:100px;"></textarea> | |||||
</div> | |||||
</div> | |||||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/TeachingCompetition/CheckForm.js") |
@@ -0,0 +1,53 @@ | |||||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
* 创建人:超级管理员 | |||||
* 日 期:2023-06-12 11:42 | |||||
* 描 述:TeachingCompetition | |||||
*/ | |||||
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 () { | |||||
$('#EvaluateTeacher')[0].lrvalue = learun.clientdata.get(['userinfo']).userId; | |||||
$('#EvaluateTeacher').val(learun.clientdata.get(['userinfo']).realName); | |||||
$('#Rating').lrDataItemSelect({ code: 'EncouragementDegree' }); | |||||
}, | |||||
//initData: function () { | |||||
//if (!!keyValue) { | |||||
// $.lrSetForm(top.$.rootUrl + '/EducationalAdministration/TeachingCompetition/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/TeachingCompetition/CheckForm?keyValue=' + keyValue, postData, function (res) { | |||||
// 保存成功后才回调 | |||||
if (!!callBack) { | |||||
callBack(); | |||||
} | |||||
}); | |||||
}; | |||||
page.init(); | |||||
} |
@@ -0,0 +1,43 @@ | |||||
@{ | |||||
ViewBag.Title = "TeachingCompetition"; | |||||
Layout = "~/Views/Shared/_Form.cshtml"; | |||||
} | |||||
<div class="lr-form-wrap" id="form"> | |||||
<div class="col-xs-6 lr-form-item" data-table="TeachingCompetition" > | |||||
<div class="lr-form-item-title">部门<font face="宋体">*</font></div> | |||||
<div id="DepartmentId" isvalid="yes" checkexpession="NotNull" ></div> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="TeachingCompetition" > | |||||
<div class="lr-form-item-title">获奖教师<font face="宋体">*</font></div> | |||||
<div id="TeachNo" isvalid="yes" checkexpession="NotNull" ></div> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="TeachingCompetition" > | |||||
<div class="lr-form-item-title">获奖内容<font face="宋体">*</font></div> | |||||
<textarea id="AwardContent" class="form-control" style="height:100px;" isvalid="yes" checkexpession="NotNull" ></textarea> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="TeachingCompetition" > | |||||
<div class="lr-form-item-title">时间<font face="宋体">*</font></div> | |||||
<input id="AwardTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#AwardTime').trigger('change'); } })" isvalid="yes" checkexpession="NotNull" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="TeachingCompetition" > | |||||
<div class="lr-form-item-title">发奖单位<font face="宋体">*</font></div> | |||||
<input id="AwardingUnit" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||||
</div> | |||||
<div class="col-xs-4 lr-form-item" data-table="TeachingCompetition" > | |||||
<div class="lr-form-item-title">级别<font face="宋体">*</font></div> | |||||
<div id="Grade" isvalid="yes" checkexpession="NotNull" ></div> | |||||
</div> | |||||
<div class="col-xs-4 lr-form-item" data-table="TeachingCompetition" > | |||||
<div class="lr-form-item-title">类别<font face="宋体">*</font></div> | |||||
<div id="Classes" isvalid="yes" checkexpession="NotNull" ></div> | |||||
</div> | |||||
<div class="col-xs-4 lr-form-item" data-table="TeachingCompetition" > | |||||
<div class="lr-form-item-title">奖励金额</div> | |||||
<input id="Money" type="number" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="TeachingCompetition" > | |||||
<div class="lr-form-item-title">备注</div> | |||||
<textarea id="Remark" class="form-control" style="height:100px;" ></textarea> | |||||
</div> | |||||
</div> | |||||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/TeachingCompetition/Form.js") |
@@ -0,0 +1,54 @@ | |||||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
* 创建人:超级管理员 | |||||
* 日 期:2023-06-12 11:42 | |||||
* 描 述:TeachingCompetition | |||||
*/ | |||||
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 () { | |||||
$('#DepartmentId').lrDataSourceSelect({ code: 'classdata', value: 'id', text: 'name' }); | |||||
$('#TeachNo').lrDataSourceSelect({ code: 'TeacherInfo', value: 'f_account', text: 'f_realname' }); | |||||
$('#Grade').lrDataItemSelect({ code: 'Level' }); | |||||
$('#Classes').lrDataItemSelect({ code: 'Classes' }); | |||||
}, | |||||
initData: function () { | |||||
if (!!keyValue) { | |||||
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/TeachingCompetition/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/TeachingCompetition/SaveForm?keyValue=' + keyValue, postData, function (res) { | |||||
// 保存成功后才回调 | |||||
if (!!callBack) { | |||||
callBack(); | |||||
} | |||||
}); | |||||
}; | |||||
page.init(); | |||||
} |
@@ -0,0 +1,54 @@ | |||||
@{ | |||||
ViewBag.Title = "TeachingCompetition"; | |||||
Layout = "~/Views/Shared/_Index.cshtml"; | |||||
} | |||||
<div class="lr-layout " > | |||||
<div class="lr-layout-center"> | |||||
<div class="lr-layout-wrap lr-layout-wrap-notitle "> | |||||
<div class="lr-layout-tool"> | |||||
<div class="lr-layout-tool-left"> | |||||
<div class="lr-layout-tool-item"> | |||||
<div id="multiple_condition_query"> | |||||
<div class="lr-query-formcontent"> | |||||
<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">部门</div> | |||||
<div id="DepartmentId"></div> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">获奖教师</div> | |||||
<div id="TeachNo"></div> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">发奖单位</div> | |||||
<input id="AwardingUnit" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">级别</div> | |||||
<div id="Grade"></div> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">类别</div> | |||||
<div id="Classes"></div> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
<div class="lr-layout-tool-right"> | |||||
<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"> | |||||
<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_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | |||||
<a id="lr_check" class="btn btn-default"><i class="fa fa-trash-o"></i> 评价</a> | |||||
@*<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i> 打印</a>*@ | |||||
</div> | |||||
</div> | |||||
</div> | |||||
<div class="lr-layout-body" id="gridtable"></div> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/TeachingCompetition/Index.js") |
@@ -0,0 +1,206 @@ | |||||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
* 创建人:超级管理员 | |||||
* 日 期:2023-06-12 11:42 | |||||
* 描 述:TeachingCompetition | |||||
*/ | |||||
var refreshGirdData; | |||||
var bootstrap = function ($, learun) { | |||||
"use strict"; | |||||
var page = { | |||||
init: function () { | |||||
page.initGird(); | |||||
page.bind(); | |||||
}, | |||||
bind: function () { | |||||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | |||||
page.search(queryJson); | |||||
}, 260, 400); | |||||
$('#DepartmentId').lrDataSourceSelect({ code: 'classdata', value: 'id', text: 'name' }); | |||||
$('#TeachNo').lrDataSourceSelect({ code: 'TeacherInfo', value: 'f_account', text: 'f_realname' }); | |||||
$('#Grade').lrDataItemSelect({ code: 'Level' }); | |||||
$('#Classes').lrDataItemSelect({ code: 'Classes' }); | |||||
// 刷新 | |||||
$('#lr_refresh').on('click', function () { | |||||
location.reload(); | |||||
}); | |||||
// 新增 | |||||
$('#lr_add').on('click', function () { | |||||
learun.layerForm({ | |||||
id: 'form', | |||||
title: '新增', | |||||
url: top.$.rootUrl + '/EducationalAdministration/TeachingCompetition/Form', | |||||
width: 600, | |||||
height: 450, | |||||
callBack: function (id) { | |||||
return top[id].acceptClick(refreshGirdData); | |||||
} | |||||
}); | |||||
}); | |||||
// 编辑 | |||||
$('#lr_edit').on('click', function () { | |||||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||||
if (learun.checkrow(keyValue)) { | |||||
if (keyValue.indexOf(',') != -1) { | |||||
learun.alert.warning("只能选择一条记录进行编辑!"); | |||||
return; | |||||
} | |||||
learun.layerForm({ | |||||
id: 'form', | |||||
title: '编辑', | |||||
url: top.$.rootUrl + '/EducationalAdministration/TeachingCompetition/Form?keyValue=' + keyValue, | |||||
width: 600, | |||||
height: 450, | |||||
callBack: function (id) { | |||||
return top[id].acceptClick(refreshGirdData); | |||||
} | |||||
}); | |||||
} | |||||
}); | |||||
// 删除 | |||||
$('#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/TeachingCompetition/DeleteForm', { keyValue: keyValue }, function () { | |||||
refreshGirdData(); | |||||
}); | |||||
} | |||||
}); | |||||
} | |||||
}); | |||||
// 评价 | |||||
$('#lr_check').on('click', function () { | |||||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||||
if (learun.checkrow(keyValue)) { | |||||
learun.layerForm({ | |||||
id: 'form', | |||||
title: '评价', | |||||
url: top.$.rootUrl + '/EducationalAdministration/TeachingCompetition/CheckForm?keyValue=' + keyValue, | |||||
width: 600, | |||||
height: 300, | |||||
callBack: function (id) { | |||||
return top[id].acceptClick(refreshGirdData); | |||||
} | |||||
}); | |||||
} | |||||
}); | |||||
}, | |||||
// 初始化列表 | |||||
initGird: function () { | |||||
$('#gridtable').lrAuthorizeJfGrid({ | |||||
url: top.$.rootUrl + '/EducationalAdministration/TeachingCompetition/GetPageList', | |||||
headData: [ | |||||
{ | |||||
label: "部门", name: "DepartmentId", width: 120, align: "left", | |||||
formatterAsync: function (callback, value, row, op, $cell) { | |||||
learun.clientdata.getAsync('custmerData', { | |||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', | |||||
key: value, | |||||
keyId: 'id', | |||||
callback: function (_data) { | |||||
callback(_data['name']); | |||||
} | |||||
}); | |||||
} | |||||
}, | |||||
{ | |||||
label: "获奖教师", name: "TeachNo", width: 100, align: "left", | |||||
formatterAsync: function (callback, value, row, op, $cell) { | |||||
learun.clientdata.getAsync('custmerData', { | |||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'TeacherInfo', | |||||
key: value, | |||||
keyId: 'f_account', | |||||
callback: function (_data) { | |||||
callback(_data['f_realname']); | |||||
} | |||||
}); | |||||
} | |||||
}, | |||||
{ label: "获奖内容", name: "AwardContent", width: 240, align: "left", }, | |||||
{ | |||||
label: "时间", name: "AwardTime", width: 100, align: "left" | |||||
, formatter: function (cellvalue) { | |||||
return learun.formatDate(cellvalue, 'yyyy-MM-dd '); | |||||
} | |||||
}, | |||||
{ label: "发奖单位", name: "AwardingUnit", width: 200, align: "left" }, | |||||
{ | |||||
label: "级别", name: "Grade", width: 100, align: "left", | |||||
formatterAsync: function (callback, value, row, op, $cell) { | |||||
learun.clientdata.getAsync('dataItem', { | |||||
key: value, | |||||
code: 'Level', | |||||
callback: function (_data) { | |||||
callback(_data.text); | |||||
} | |||||
}); | |||||
} | |||||
}, | |||||
{ | |||||
label: "类别", name: "Classes", width: 100, align: "left", | |||||
formatterAsync: function (callback, value, row, op, $cell) { | |||||
learun.clientdata.getAsync('dataItem', { | |||||
key: value, | |||||
code: 'Classes', | |||||
callback: function (_data) { | |||||
callback(_data.text); | |||||
} | |||||
}); | |||||
} | |||||
}, | |||||
{ label: "奖励金额", name: "Money", width: 100, align: "left" }, | |||||
{ label: "备注", name: "Remark", width: 100, align: "left" }, | |||||
{ | |||||
label: "评价教师", name: "EvaluateTeacher", width: 100, align: "left", | |||||
formatterAsync: function (callback, value, row, op, $cell) { | |||||
learun.clientdata.getAsync('custmerData', { | |||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'TeacherInfo', | |||||
key: value, | |||||
keyId: 'f_userid', | |||||
callback: function (_data) { | |||||
callback(_data['f_realname']); | |||||
} | |||||
}); | |||||
} | |||||
}, | |||||
{ | |||||
label: "等次", name: "Rating", width: 100, align: "left", | |||||
formatterAsync: function (callback, value, row, op, $cell) { | |||||
learun.clientdata.getAsync('dataItem', { | |||||
key: value, | |||||
code: 'EncouragementDegree', | |||||
callback: function (_data) { | |||||
callback(_data.text); | |||||
} | |||||
}); | |||||
} | |||||
}, | |||||
{ | |||||
label: "评价时间", name: "EvaluateTime", width: 100, align: "left" | |||||
, formatter: function (cellvalue) { | |||||
return learun.formatDate(cellvalue, 'yyyy-MM-dd '); | |||||
} | |||||
}, | |||||
{ label: "评价备注", name: "EvaluateRemark", width: 100, align: "left" }, | |||||
], | |||||
mainId: 'ID', | |||||
isPage: true, | |||||
isMultiselect: true, | |||||
sidx: "CreateTime desc" | |||||
}); | |||||
page.search(); | |||||
}, | |||||
search: function (param) { | |||||
param = param || {}; | |||||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||||
} | |||||
}; | |||||
refreshGirdData = function () { | |||||
$('#gridtable').jfGridSet('reload'); | |||||
}; | |||||
page.init(); | |||||
} |
@@ -906,6 +906,7 @@ | |||||
<Compile Include="Areas\EducationalAdministration\Controllers\StuScoreNotPassTwoTranController.cs" /> | <Compile Include="Areas\EducationalAdministration\Controllers\StuScoreNotPassTwoTranController.cs" /> | ||||
<Compile Include="Areas\EducationalAdministration\Controllers\StudentPracticeInfoController.cs" /> | <Compile Include="Areas\EducationalAdministration\Controllers\StudentPracticeInfoController.cs" /> | ||||
<Compile Include="Areas\EducationalAdministration\Controllers\SchulPraktikaInfoController.cs" /> | <Compile Include="Areas\EducationalAdministration\Controllers\SchulPraktikaInfoController.cs" /> | ||||
<Compile Include="Areas\EducationalAdministration\Controllers\TeachingCompetitionController.cs" /> | |||||
</ItemGroup> | </ItemGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||
<Content Include="Areas\AdmissionsPlatform\Views\AP_OnlineUserInfo\DropOutIndex.js" /> | <Content Include="Areas\AdmissionsPlatform\Views\AP_OnlineUserInfo\DropOutIndex.js" /> | ||||
@@ -1435,6 +1436,7 @@ | |||||
<Content Include="Areas\EducationalAdministration\Views\Sys_SendFile\PrintView.js" /> | <Content Include="Areas\EducationalAdministration\Views\Sys_SendFile\PrintView.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\Sys_SendFile\ReadListParty.js" /> | <Content Include="Areas\EducationalAdministration\Views\Sys_SendFile\ReadListParty.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\Sys_SendFile\ReadListDocument.js" /> | <Content Include="Areas\EducationalAdministration\Views\Sys_SendFile\ReadListDocument.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\TeachingCompetition\CheckForm.js" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\TeachingPlanItem\Form.js" /> | <Content Include="Areas\EducationalAdministration\Views\TeachingPlanItem\Form.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\TeachingPlan\Form.js" /> | <Content Include="Areas\EducationalAdministration\Views\TeachingPlan\Form.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\TeachingPlan\FormManage.js" /> | <Content Include="Areas\EducationalAdministration\Views\TeachingPlan\FormManage.js" /> | ||||
@@ -7119,6 +7121,10 @@ | |||||
<Content Include="Areas\EducationalAdministration\Views\SchulPraktikaInfo\Index.js" /> | <Content Include="Areas\EducationalAdministration\Views\SchulPraktikaInfo\Index.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\SchulPraktikaInfo\Form.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\SchulPraktikaInfo\Form.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\SchulPraktikaInfo\Form.js" /> | <Content Include="Areas\EducationalAdministration\Views\SchulPraktikaInfo\Form.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\TeachingCompetition\Index.cshtml" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\TeachingCompetition\Index.js" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\TeachingCompetition\Form.cshtml" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\TeachingCompetition\Form.js" /> | |||||
</ItemGroup> | </ItemGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||
<Folder Include="Areas\EducationalAdministration\Views\OpenLessonPlanOfElectivePre\" /> | <Folder Include="Areas\EducationalAdministration\Views\OpenLessonPlanOfElectivePre\" /> | ||||
@@ -8116,6 +8122,7 @@ | |||||
<Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\QueryAPStuHealthIndex.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\QueryAPStuHealthIndex.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\QueryStuEncourgementIndex.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\QueryStuEncourgementIndex.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\QueryScoreIndex.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\QueryScoreIndex.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\TeachingCompetition\CheckForm.cshtml" /> | |||||
<None Include="Properties\PublishProfiles\CustomProfile.pubxml" /> | <None Include="Properties\PublishProfiles\CustomProfile.pubxml" /> | ||||
<None Include="Properties\PublishProfiles\FolderProfile.pubxml" /> | <None Include="Properties\PublishProfiles\FolderProfile.pubxml" /> | ||||
<Content Include="Views\Login\Default-beifen.cshtml" /> | <Content Include="Views\Login\Default-beifen.cshtml" /> | ||||
@@ -0,0 +1,29 @@ | |||||
using Learun.Application.TwoDevelopment.EducationalAdministration; | |||||
using System.Data.Entity.ModelConfiguration; | |||||
namespace Learun.Application.Mapping | |||||
{ | |||||
/// <summary> | |||||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
/// 创 建:超级管理员 | |||||
/// 日 期:2023-06-12 11:42 | |||||
/// 描 述:TeachingCompetition | |||||
/// </summary> | |||||
public class TeachingCompetitionMap : EntityTypeConfiguration<TeachingCompetitionEntity> | |||||
{ | |||||
public TeachingCompetitionMap() | |||||
{ | |||||
#region 表、主键 | |||||
//表 | |||||
this.ToTable("TEACHINGCOMPETITION"); | |||||
//主键 | |||||
this.HasKey(t => t.ID); | |||||
#endregion | |||||
#region 配置关系 | |||||
#endregion | |||||
} | |||||
} | |||||
} | |||||
@@ -664,6 +664,7 @@ | |||||
<Compile Include="EducationalAdministration\StuScoreNotPassTwoTranMap.cs" /> | <Compile Include="EducationalAdministration\StuScoreNotPassTwoTranMap.cs" /> | ||||
<Compile Include="EducationalAdministration\StudentPracticeInfoMap.cs" /> | <Compile Include="EducationalAdministration\StudentPracticeInfoMap.cs" /> | ||||
<Compile Include="EducationalAdministration\SchulPraktikaInfoMap.cs" /> | <Compile Include="EducationalAdministration\SchulPraktikaInfoMap.cs" /> | ||||
<Compile Include="EducationalAdministration\TeachingCompetitionMap.cs" /> | |||||
</ItemGroup> | </ItemGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||
<ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj"> | <ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj"> | ||||
@@ -0,0 +1,143 @@ | |||||
using Learun.Util; | |||||
using System; | |||||
using System.Data; | |||||
using System.Collections.Generic; | |||||
namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
{ | |||||
/// <summary> | |||||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
/// 创 建:超级管理员 | |||||
/// 日 期:2023-06-12 11:42 | |||||
/// 描 述:TeachingCompetition | |||||
/// </summary> | |||||
public class TeachingCompetitionBLL : TeachingCompetitionIBLL | |||||
{ | |||||
private TeachingCompetitionService teachingCompetitionService = new TeachingCompetitionService(); | |||||
#region 获取数据 | |||||
/// <summary> | |||||
/// 获取页面显示列表数据 | |||||
/// </summary> | |||||
/// <param name="pagination">分页参数</param> | |||||
/// <param name="queryJson">查询参数</param> | |||||
/// <returns></returns> | |||||
public IEnumerable<TeachingCompetitionEntity> GetPageList(Pagination pagination, string queryJson) | |||||
{ | |||||
try | |||||
{ | |||||
return teachingCompetitionService.GetPageList(pagination, queryJson); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowBusinessException(ex); | |||||
} | |||||
} | |||||
} | |||||
/// <summary> | |||||
/// 获取TeachingCompetition表实体数据 | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
/// <returns></returns> | |||||
public TeachingCompetitionEntity GetTeachingCompetitionEntity(string keyValue) | |||||
{ | |||||
try | |||||
{ | |||||
return teachingCompetitionService.GetTeachingCompetitionEntity(keyValue); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowBusinessException(ex); | |||||
} | |||||
} | |||||
} | |||||
#endregion | |||||
#region 提交数据 | |||||
/// <summary> | |||||
/// 删除实体数据 | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
public void DeleteEntity(string keyValue) | |||||
{ | |||||
try | |||||
{ | |||||
teachingCompetitionService.DeleteEntity(keyValue); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowBusinessException(ex); | |||||
} | |||||
} | |||||
} | |||||
/// <summary> | |||||
/// 保存实体数据(新增、修改) | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
/// <param name="entity">实体</param> | |||||
/// <returns></returns> | |||||
public void SaveEntity(string keyValue, TeachingCompetitionEntity entity) | |||||
{ | |||||
try | |||||
{ | |||||
teachingCompetitionService.SaveEntity(keyValue, entity); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowBusinessException(ex); | |||||
} | |||||
} | |||||
} | |||||
public void CheckEntity(string keyValue, TeachingCompetitionEntity entity) | |||||
{ | |||||
try | |||||
{ | |||||
teachingCompetitionService.CheckEntity(keyValue, entity); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowBusinessException(ex); | |||||
} | |||||
} | |||||
} | |||||
#endregion | |||||
} | |||||
} |
@@ -0,0 +1,121 @@ | |||||
using Learun.Util; | |||||
using System; | |||||
using System.ComponentModel.DataAnnotations.Schema; | |||||
namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
{ | |||||
/// <summary> | |||||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
/// 创 建:超级管理员 | |||||
/// 日 期:2023-06-12 11:42 | |||||
/// 描 述:TeachingCompetition | |||||
/// </summary> | |||||
public class TeachingCompetitionEntity | |||||
{ | |||||
#region 实体成员 | |||||
/// <summary> | |||||
/// ID | |||||
/// </summary> | |||||
[Column("ID")] | |||||
public string ID { get; set; } | |||||
/// <summary> | |||||
/// 部门 | |||||
/// </summary> | |||||
[Column("DEPARTMENTID")] | |||||
public string DepartmentId { get; set; } | |||||
/// <summary> | |||||
/// 编号 | |||||
/// </summary> | |||||
[Column("TEACHNO")] | |||||
public string TeachNo { get; set; } | |||||
/// <summary> | |||||
/// 获奖内容 | |||||
/// </summary> | |||||
[Column("AWARDCONTENT")] | |||||
public string AwardContent { get; set; } | |||||
/// <summary> | |||||
/// 获奖时间 | |||||
/// </summary> | |||||
[Column("AWARDTIME")] | |||||
public DateTime? AwardTime { get; set; } | |||||
/// <summary> | |||||
/// 发奖单位 | |||||
/// </summary> | |||||
[Column("AWARDINGUNIT")] | |||||
public string AwardingUnit { get; set; } | |||||
/// <summary> | |||||
/// 级别 | |||||
/// </summary> | |||||
[Column("GRADE")] | |||||
public string Grade { get; set; } | |||||
/// 类别 | |||||
/// </summary> | |||||
[Column("CLASSES")] | |||||
public string Classes { get; set; } | |||||
/// <summary> | |||||
/// Money | |||||
/// </summary> | |||||
[Column("MONEY")] | |||||
public decimal? Money { get; set; } | |||||
/// <summary> | |||||
/// Remark | |||||
/// </summary> | |||||
[Column("REMARK")] | |||||
public string Remark { get; set; } | |||||
/// <summary> | |||||
/// CreateTime | |||||
/// </summary> | |||||
[Column("CREATETIME")] | |||||
public DateTime? CreateTime { get; set; } | |||||
/// <summary> | |||||
/// CreateUser | |||||
/// </summary> | |||||
[Column("CREATEUSER")] | |||||
public string CreateUser { get; set; } | |||||
/// <summary> | |||||
/// 评价教师 | |||||
/// </summary> | |||||
[Column("EVALUATETEACHER")] | |||||
public string EvaluateTeacher { get; set; } | |||||
/// <summary> | |||||
/// 评价等级 | |||||
/// </summary> | |||||
[Column("RATING")] | |||||
public string Rating { get; set; } | |||||
/// <summary> | |||||
/// EvaluateTime | |||||
/// </summary> | |||||
[Column("EVALUATETIME")] | |||||
public DateTime? EvaluateTime { get; set; } | |||||
/// <summary> | |||||
/// EvaluateRemark | |||||
/// </summary> | |||||
[Column("EVALUATEREMARK")] | |||||
public string EvaluateRemark { get; set; } | |||||
#endregion | |||||
#region 扩展操作 | |||||
/// <summary> | |||||
/// 新增调用 | |||||
/// </summary> | |||||
public void Create() | |||||
{ | |||||
this.ID = Guid.NewGuid().ToString(); | |||||
this.CreateTime = DateTime.Now; | |||||
this.CreateUser = LoginUserInfo.Get().userId; | |||||
} | |||||
/// <summary> | |||||
/// 编辑调用 | |||||
/// </summary> | |||||
/// <param name="keyValue"></param> | |||||
public void Modify(string keyValue) | |||||
{ | |||||
this.ID = keyValue; | |||||
} | |||||
#endregion | |||||
#region 扩展字段 | |||||
#endregion | |||||
} | |||||
} | |||||
@@ -0,0 +1,49 @@ | |||||
using Learun.Util; | |||||
using System.Data; | |||||
using System.Collections.Generic; | |||||
namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
{ | |||||
/// <summary> | |||||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
/// 创 建:超级管理员 | |||||
/// 日 期:2023-06-12 11:42 | |||||
/// 描 述:TeachingCompetition | |||||
/// </summary> | |||||
public interface TeachingCompetitionIBLL | |||||
{ | |||||
#region 获取数据 | |||||
/// <summary> | |||||
/// 获取页面显示列表数据 | |||||
/// </summary> | |||||
/// <param name="queryJson">查询参数</param> | |||||
/// <returns></returns> | |||||
IEnumerable<TeachingCompetitionEntity> GetPageList(Pagination pagination, string queryJson); | |||||
/// <summary> | |||||
/// 获取TeachingCompetition表实体数据 | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
/// <returns></returns> | |||||
TeachingCompetitionEntity GetTeachingCompetitionEntity(string keyValue); | |||||
#endregion | |||||
#region 提交数据 | |||||
/// <summary> | |||||
/// 删除实体数据 | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
void DeleteEntity(string keyValue); | |||||
/// <summary> | |||||
/// 保存实体数据(新增、修改) | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
/// <param name="entity">实体</param> | |||||
void SaveEntity(string keyValue, TeachingCompetitionEntity entity); | |||||
void CheckEntity(string keyValue, TeachingCompetitionEntity entity); | |||||
#endregion | |||||
} | |||||
} |
@@ -0,0 +1,211 @@ | |||||
using Dapper; | |||||
using Learun.DataBase.Repository; | |||||
using Learun.Util; | |||||
using System; | |||||
using System.Collections.Generic; | |||||
using System.Data; | |||||
using System.Text; | |||||
namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
{ | |||||
/// <summary> | |||||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
/// 创 建:超级管理员 | |||||
/// 日 期:2023-06-12 11:42 | |||||
/// 描 述:TeachingCompetition | |||||
/// </summary> | |||||
public class TeachingCompetitionService : RepositoryFactory | |||||
{ | |||||
#region 获取数据 | |||||
/// <summary> | |||||
/// 获取页面显示列表数据 | |||||
/// </summary> | |||||
/// <param name="pagination">查询参数</param> | |||||
/// <param name="queryJson">查询参数</param> | |||||
/// <returns></returns> | |||||
public IEnumerable<TeachingCompetitionEntity> GetPageList(Pagination pagination, string queryJson) | |||||
{ | |||||
try | |||||
{ | |||||
var strSql = new StringBuilder(); | |||||
strSql.Append("SELECT "); | |||||
strSql.Append(@"t.* "); | |||||
strSql.Append(" FROM TeachingCompetition t "); | |||||
strSql.Append(" WHERE 1=1 "); | |||||
var queryParam = queryJson.ToJObject(); | |||||
// 虚拟参数 | |||||
var dp = new DynamicParameters(new { }); | |||||
if (!queryParam["DepartmentId"].IsEmpty()) | |||||
{ | |||||
dp.Add("DepartmentId", queryParam["DepartmentId"].ToString(), DbType.String); | |||||
strSql.Append(" AND t.DepartmentId = @DepartmentId "); | |||||
} | |||||
if (!queryParam["TeachNo"].IsEmpty()) | |||||
{ | |||||
dp.Add("TeachNo", queryParam["TeachNo"].ToString(), DbType.String); | |||||
strSql.Append(" AND t.TeachNo = @TeachNo "); | |||||
} | |||||
if (!queryParam["AwardingUnit"].IsEmpty()) | |||||
{ | |||||
dp.Add("AwardingUnit", "%" + queryParam["AwardingUnit"].ToString() + "%", DbType.String); | |||||
strSql.Append(" AND t.AwardingUnit Like @AwardingUnit "); | |||||
} | |||||
if (!queryParam["Grade"].IsEmpty()) | |||||
{ | |||||
dp.Add("Grade", queryParam["Grade"].ToString(), DbType.String); | |||||
strSql.Append(" AND t.Grade = @Grade "); | |||||
} | |||||
if (!queryParam["Classes"].IsEmpty()) | |||||
{ | |||||
dp.Add("Classes", queryParam["Classes"].ToString(), DbType.String); | |||||
strSql.Append(" AND t.Classes = @Classes "); | |||||
} | |||||
return this.BaseRepository("CollegeMIS").FindList<TeachingCompetitionEntity>(strSql.ToString(), dp, pagination); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowServiceException(ex); | |||||
} | |||||
} | |||||
} | |||||
/// <summary> | |||||
/// 获取TeachingCompetition表实体数据 | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
/// <returns></returns> | |||||
public TeachingCompetitionEntity GetTeachingCompetitionEntity(string keyValue) | |||||
{ | |||||
try | |||||
{ | |||||
return this.BaseRepository("CollegeMIS").FindEntity<TeachingCompetitionEntity>(keyValue); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowServiceException(ex); | |||||
} | |||||
} | |||||
} | |||||
#endregion | |||||
#region 提交数据 | |||||
/// <summary> | |||||
/// 删除实体数据 | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
public void DeleteEntity(string keyValue) | |||||
{ | |||||
var db = this.BaseRepository("CollegeMIS").BeginTrans(); | |||||
try | |||||
{ | |||||
var id = keyValue.Split(','); | |||||
foreach (var item in id) | |||||
{ | |||||
db.Delete<TeachingCompetitionEntity>(t => t.ID == item); | |||||
} | |||||
db.Commit(); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
db.Rollback(); | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowServiceException(ex); | |||||
} | |||||
} | |||||
} | |||||
/// <summary> | |||||
/// 保存实体数据(新增、修改) | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
/// <param name="entity">实体</param> | |||||
public void SaveEntity(string keyValue, TeachingCompetitionEntity entity) | |||||
{ | |||||
try | |||||
{ | |||||
if (!string.IsNullOrEmpty(keyValue)) | |||||
{ | |||||
entity.Modify(keyValue); | |||||
this.BaseRepository("CollegeMIS").Update(entity); | |||||
} | |||||
else | |||||
{ | |||||
entity.Create(); | |||||
this.BaseRepository("CollegeMIS").Insert(entity); | |||||
} | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowServiceException(ex); | |||||
} | |||||
} | |||||
} | |||||
/// <summary> | |||||
/// 保存实体数据(新增、修改) | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
/// <param name="entity">实体</param> | |||||
public void CheckEntity(string keyValue, TeachingCompetitionEntity entity) | |||||
{ | |||||
var db = this.BaseRepository("CollegeMIS").BeginTrans(); | |||||
try | |||||
{ | |||||
var Id = keyValue.Split(','); | |||||
foreach (var item in Id) | |||||
{ | |||||
TeachingCompetitionEntity model = db.FindEntity<TeachingCompetitionEntity>(x => x.ID == item); | |||||
model.Rating = entity.Rating; | |||||
model.EvaluateTeacher = entity.EvaluateTeacher; | |||||
model.EvaluateTime = DateTime.Now; | |||||
model.EvaluateRemark = entity.EvaluateRemark; | |||||
db.Update(model); | |||||
} | |||||
db.Commit(); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
db.Rollback(); | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowServiceException(ex); | |||||
} | |||||
} | |||||
} | |||||
#endregion | |||||
} | |||||
} |
@@ -2079,6 +2079,10 @@ | |||||
<Compile Include="EducationalAdministration\SchulPraktikaInfo\SchulPraktikaInfoService.cs" /> | <Compile Include="EducationalAdministration\SchulPraktikaInfo\SchulPraktikaInfoService.cs" /> | ||||
<Compile Include="EducationalAdministration\SchulPraktikaInfo\SchulPraktikaInfoBLL.cs" /> | <Compile Include="EducationalAdministration\SchulPraktikaInfo\SchulPraktikaInfoBLL.cs" /> | ||||
<Compile Include="EducationalAdministration\SchulPraktikaInfo\SchulPraktikaInfoIBLL.cs" /> | <Compile Include="EducationalAdministration\SchulPraktikaInfo\SchulPraktikaInfoIBLL.cs" /> | ||||
<Compile Include="EducationalAdministration\TeachingCompetition\TeachingCompetitionEntity.cs" /> | |||||
<Compile Include="EducationalAdministration\TeachingCompetition\TeachingCompetitionService.cs" /> | |||||
<Compile Include="EducationalAdministration\TeachingCompetition\TeachingCompetitionBLL.cs" /> | |||||
<Compile Include="EducationalAdministration\TeachingCompetition\TeachingCompetitionIBLL.cs" /> | |||||
</ItemGroup> | </ItemGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||
<ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj"> | <ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj"> | ||||