@@ -25,6 +25,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
private StuInfoBasicIBLL stuInfoBasicIBLL = new StuInfoBasicBLL(); | |||
private CdMajorIBLL cdMajorIBLL = new CdMajorBLL(); | |||
private UserIBLL userIBLL = new UserBLL(); | |||
private EADateArrangeIBLL eADateArrangeIBLL = new EADateArrangeBLL(); | |||
#region 视图功能 | |||
@@ -114,6 +115,17 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
[HttpGet] | |||
public ActionResult InputScoreIndex() | |||
{ | |||
//获取“教学工作安排”中“成绩录入”的记录 | |||
var entity = eADateArrangeIBLL.GetEADateArrangeEntityByName("成绩录入"); | |||
if (entity != null && entity.CheckMark == "1" && DateTime.Now > entity.MakeDate && DateTime.Now < entity.EndDate) | |||
{ | |||
ViewBag.CanInputFlag = true;//可以录入成绩标识 | |||
} | |||
else | |||
{ | |||
ViewBag.CanInputFlag = false; | |||
} | |||
return View(); | |||
} | |||
/// <summary> | |||
@@ -123,6 +135,17 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
[HttpGet] | |||
public ActionResult InputScoreIndexInTeacher() | |||
{ | |||
//获取“教学工作安排”中“成绩录入”的记录 | |||
var entity = eADateArrangeIBLL.GetEADateArrangeEntityByName("成绩录入"); | |||
if (entity != null && entity.CheckMark == "1" && DateTime.Now > entity.MakeDate && DateTime.Now < entity.EndDate) | |||
{ | |||
ViewBag.CanInputFlag = true;//可以录入成绩标识 | |||
} | |||
else | |||
{ | |||
ViewBag.CanInputFlag = false; | |||
} | |||
return View(); | |||
} | |||
/// <summary> | |||
@@ -132,6 +155,17 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
[HttpGet] | |||
public ActionResult InputScoreIndexOfElective() | |||
{ | |||
//获取“教学工作安排”中“成绩录入”的记录 | |||
var entity = eADateArrangeIBLL.GetEADateArrangeEntityByName("选修成绩录入"); | |||
if (entity != null && entity.CheckMark == "1" && DateTime.Now > entity.MakeDate && DateTime.Now < entity.EndDate) | |||
{ | |||
ViewBag.CanInputFlag = true;//可以录入成绩标识 | |||
} | |||
else | |||
{ | |||
ViewBag.CanInputFlag = false; | |||
} | |||
return View(); | |||
} | |||
/// <summary> | |||
@@ -141,6 +175,18 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
[HttpGet] | |||
public ActionResult InputScoreIndexOfElectiveInTeacher() | |||
{ | |||
//获取“教学工作安排”中“成绩录入”的记录 | |||
var entity = eADateArrangeIBLL.GetEADateArrangeEntityByName("选修成绩录入"); | |||
if (entity != null && entity.CheckMark == "1" && DateTime.Now > entity.MakeDate && DateTime.Now < entity.EndDate) | |||
{ | |||
ViewBag.CanInputFlag = true;//可以录入成绩标识 | |||
} | |||
else | |||
{ | |||
ViewBag.CanInputFlag = false; | |||
} | |||
return View(); | |||
} | |||
/// <summary> | |||
@@ -22,6 +22,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
{ | |||
private StuScoreNotPassIBLL stuScoreNotPassIBLL = new StuScoreNotPassBLL(); | |||
private UserIBLL userIBLL = new UserBLL(); | |||
private EADateArrangeIBLL eADateArrangeIBLL = new EADateArrangeBLL(); | |||
#region 视图功能 | |||
@@ -51,6 +52,17 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
[HttpGet] | |||
public ActionResult InputScoreIndex() | |||
{ | |||
//获取“教学工作安排”中“补考成绩录入”的记录 | |||
var entity = eADateArrangeIBLL.GetEADateArrangeEntityByName("补考成绩录入"); | |||
if (entity != null && entity.CheckMark == "1" && DateTime.Now > entity.MakeDate && DateTime.Now < entity.EndDate) | |||
{ | |||
ViewBag.CanInputFlag = true;//可以录入成绩标识 | |||
} | |||
else | |||
{ | |||
ViewBag.CanInputFlag = false; | |||
} | |||
return View(); | |||
} | |||
/// <summary> | |||
@@ -60,6 +72,17 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
[HttpGet] | |||
public ActionResult InputScoreIndexInTeacher() | |||
{ | |||
//获取“教学工作安排”中“补考成绩录入”的记录 | |||
var entity = eADateArrangeIBLL.GetEADateArrangeEntityByName("补考成绩录入"); | |||
if (entity != null && entity.CheckMark == "1" && DateTime.Now > entity.MakeDate && DateTime.Now < entity.EndDate) | |||
{ | |||
ViewBag.CanInputFlag = true;//可以录入成绩标识 | |||
} | |||
else | |||
{ | |||
ViewBag.CanInputFlag = false; | |||
} | |||
return View(); | |||
} | |||
/// <summary> | |||
@@ -22,6 +22,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
{ | |||
private StuScoreNotPassTwoIBLL stuScoreNotPassTwoIBLL = new StuScoreNotPassTwoBLL(); | |||
private UserIBLL userIBLL = new UserBLL(); | |||
private EADateArrangeIBLL eADateArrangeIBLL = new EADateArrangeBLL(); | |||
#region 视图功能 | |||
@@ -50,6 +51,17 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
[HttpGet] | |||
public ActionResult InputScoreIndex() | |||
{ | |||
//获取“教学工作安排”中“重考成绩录入”的记录 | |||
var entity = eADateArrangeIBLL.GetEADateArrangeEntityByName("重考成绩录入"); | |||
if (entity != null && entity.CheckMark == "1" && DateTime.Now > entity.MakeDate && DateTime.Now < entity.EndDate) | |||
{ | |||
ViewBag.CanInputFlag = true;//可以录入成绩标识 | |||
} | |||
else | |||
{ | |||
ViewBag.CanInputFlag = false; | |||
} | |||
return View(); | |||
} | |||
/// <summary> | |||
@@ -59,6 +71,17 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
[HttpGet] | |||
public ActionResult InputScoreIndexInTeacher() | |||
{ | |||
//获取“教学工作安排”中“重考成绩录入”的记录 | |||
var entity = eADateArrangeIBLL.GetEADateArrangeEntityByName("重考成绩录入"); | |||
if (entity != null && entity.CheckMark == "1" && DateTime.Now > entity.MakeDate && DateTime.Now < entity.EndDate) | |||
{ | |||
ViewBag.CanInputFlag = true;//可以录入成绩标识 | |||
} | |||
else | |||
{ | |||
ViewBag.CanInputFlag = false; | |||
} | |||
return View(); | |||
} | |||
/// <summary> | |||
@@ -112,3 +112,9 @@ | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuScore/InputScoreIndex.js") | |||
<script> | |||
var CanInputFlag = "@ViewBag.CanInputFlag"; | |||
if (CanInputFlag != "True") { | |||
top.learun.layerConfirm('当前时间不是成绩录入时间!', function (res) {}); | |||
} | |||
</script> |
@@ -576,6 +576,11 @@ var bootstrap = function ($, learun) { | |||
} | |||
}; | |||
judgeSelect = function () { | |||
if (CanInputFlag != "True") { | |||
top.learun.layerConfirm('当前时间不是成绩录入时间!', function (res) { }); | |||
return false; | |||
} | |||
var $content = $('body').find('.lr-layout-tool-left'); | |||
var query = $content.lrGetFormData(); | |||
if (query.F_SchoolId == null || query.F_SchoolId == "") { | |||
@@ -38,6 +38,7 @@ | |||
float: right; | |||
padding-right: 30px; | |||
} | |||
.scaleRow .tipBox { | |||
display: inline-block; | |||
color: #ff0000; | |||
@@ -113,3 +114,9 @@ | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuScore/InputScoreIndexInTeacher.js") | |||
<script> | |||
var CanInputFlag = "@ViewBag.CanInputFlag"; | |||
if (CanInputFlag != "True") { | |||
top.learun.layerConfirm('当前时间不是成绩录入时间!', function (res) {}); | |||
} | |||
</script> |
@@ -577,6 +577,11 @@ var bootstrap = function ($, learun) { | |||
} | |||
}; | |||
judgeSelect = function () { | |||
if (CanInputFlag != "True") { | |||
top.learun.layerConfirm('当前时间不是成绩录入时间!', function (res) { }); | |||
return false; | |||
} | |||
var $content = $('body').find('.lr-layout-tool-left'); | |||
var query = $content.lrGetFormData(); | |||
if (query.F_SchoolId == null || query.F_SchoolId == "") { | |||
@@ -38,10 +38,11 @@ | |||
float: right; | |||
padding-right: 30px; | |||
} | |||
.scaleRow .tipBox{ | |||
display:inline-block; | |||
color:#ff0000; | |||
margin-left:10px; | |||
.scaleRow .tipBox { | |||
display: inline-block; | |||
color: #ff0000; | |||
margin-left: 10px; | |||
} | |||
#addMinutesBtn { | |||
@@ -87,31 +88,37 @@ | |||
<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_input" class="btn btn-default"><i class="fa fa-edit"> 开始录入</i></a> | |||
<a id="lr_save" class="btn btn-default" style="display:none;"><i class="fa fa-edit"> 提交成绩</i></a> | |||
<a id="lr_check" class="btn btn-default"><i class="fa fa-lock"> 提交教务处</i></a> | |||
<a id="lr_uncheck" class="btn btn-default"><i class="fa fa-lock"> 去审核成绩</i></a> | |||
<a id="lr_setScale" class="btn btn-default"><i class="fa fa-edit"> 设置成绩比例</i></a> | |||
</div>*@ | |||
<a id="lr_input" class="btn btn-default"><i class="fa fa-edit"> 开始录入</i></a> | |||
<a id="lr_save" class="btn btn-default" style="display:none;"><i class="fa fa-edit"> 提交成绩</i></a> | |||
<a id="lr_check" class="btn btn-default"><i class="fa fa-lock"> 提交教务处</i></a> | |||
<a id="lr_uncheck" class="btn btn-default"><i class="fa fa-lock"> 去审核成绩</i></a> | |||
<a id="lr_setScale" class="btn btn-default"><i class="fa fa-edit"> 设置成绩比例</i></a> | |||
</div>*@ | |||
</div> | |||
</div> | |||
@*<div class="scaleRow divRow"> | |||
<span>比例设置:</span> | |||
<span>平时成绩占比 <span id="OrdinaryScoreScale">0</span> %,</span> | |||
<span>期中成绩占比 <span id="TermInScoreScale">0</span> %,</span> | |||
<span>期末成绩占比 <span id="TermEndScoreScale">0</span> %,</span> | |||
<span>其他成绩占比 <span id="OtherScoreScale">0</span> %</span> | |||
<div class="tipBox">提示:录入完成后,请务必点击“提交成绩”按钮,避免成绩丢失!</div> | |||
<div class="timeBox" style="display:none;"> | |||
倒计时: | |||
<span id="minutes" data-minutes="30"></span>分钟(<span id="seconds" data-seconds="60"></span>秒) | |||
<div id="addMinutesBtn" data-minutes="30">续时</div> | |||
</div> | |||
</div>*@ | |||
<span>比例设置:</span> | |||
<span>平时成绩占比 <span id="OrdinaryScoreScale">0</span> %,</span> | |||
<span>期中成绩占比 <span id="TermInScoreScale">0</span> %,</span> | |||
<span>期末成绩占比 <span id="TermEndScoreScale">0</span> %,</span> | |||
<span>其他成绩占比 <span id="OtherScoreScale">0</span> %</span> | |||
<div class="tipBox">提示:录入完成后,请务必点击“提交成绩”按钮,避免成绩丢失!</div> | |||
<div class="timeBox" style="display:none;"> | |||
倒计时: | |||
<span id="minutes" data-minutes="30"></span>分钟(<span id="seconds" data-seconds="60"></span>秒) | |||
<div id="addMinutesBtn" data-minutes="30">续时</div> | |||
</div> | |||
</div>*@ | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
</div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuScore/InputScoreIndexOfElective.js") | |||
<script> | |||
var CanInputFlag = "@ViewBag.CanInputFlag"; | |||
if (CanInputFlag != "True") { | |||
top.learun.layerConfirm('当前时间不是选修成绩录入时间!', function (res) {}); | |||
} | |||
</script> |
@@ -594,6 +594,11 @@ var bootstrap = function ($, learun) { | |||
} | |||
}; | |||
judgeSelect = function () { | |||
if (CanInputFlag != "True") { | |||
top.learun.layerConfirm('当前时间不是选修成绩录入时间!', function (res) { }); | |||
return false; | |||
} | |||
var $content = $('body').find('.lr-layout-tool-left'); | |||
var query = $content.lrGetFormData(); | |||
if (query.F_SchoolId == null || query.F_SchoolId == "") { | |||
@@ -38,10 +38,11 @@ | |||
float: right; | |||
padding-right: 30px; | |||
} | |||
.scaleRow .tipBox{ | |||
display:inline-block; | |||
color:#ff0000; | |||
margin-left:10px; | |||
.scaleRow .tipBox { | |||
display: inline-block; | |||
color: #ff0000; | |||
margin-left: 10px; | |||
} | |||
#addMinutesBtn { | |||
@@ -87,31 +88,37 @@ | |||
<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_input" class="btn btn-default"><i class="fa fa-edit"> 开始录入</i></a> | |||
<a id="lr_save" class="btn btn-default" style="display:none;"><i class="fa fa-edit"> 提交成绩</i></a> | |||
<a id="lr_check" class="btn btn-default"><i class="fa fa-lock"> 提交教务处</i></a> | |||
<a id="lr_uncheck" class="btn btn-default"><i class="fa fa-lock"> 去审核成绩</i></a> | |||
<a id="lr_setScale" class="btn btn-default"><i class="fa fa-edit"> 设置成绩比例</i></a> | |||
</div>*@ | |||
<a id="lr_input" class="btn btn-default"><i class="fa fa-edit"> 开始录入</i></a> | |||
<a id="lr_save" class="btn btn-default" style="display:none;"><i class="fa fa-edit"> 提交成绩</i></a> | |||
<a id="lr_check" class="btn btn-default"><i class="fa fa-lock"> 提交教务处</i></a> | |||
<a id="lr_uncheck" class="btn btn-default"><i class="fa fa-lock"> 去审核成绩</i></a> | |||
<a id="lr_setScale" class="btn btn-default"><i class="fa fa-edit"> 设置成绩比例</i></a> | |||
</div>*@ | |||
</div> | |||
</div> | |||
@*<div class="scaleRow divRow"> | |||
<span>比例设置:</span> | |||
<span>平时成绩占比 <span id="OrdinaryScoreScale">0</span> %,</span> | |||
<span>期中成绩占比 <span id="TermInScoreScale">0</span> %,</span> | |||
<span>期末成绩占比 <span id="TermEndScoreScale">0</span> %,</span> | |||
<span>其他成绩占比 <span id="OtherScoreScale">0</span> %</span> | |||
<div class="tipBox">提示:录入完成后,请务必点击“提交成绩”按钮,避免成绩丢失!</div> | |||
<div class="timeBox" style="display:none;"> | |||
倒计时: | |||
<span id="minutes" data-minutes="30"></span>分钟(<span id="seconds" data-seconds="60"></span>秒) | |||
<div id="addMinutesBtn" data-minutes="30">续时</div> | |||
</div> | |||
</div>*@ | |||
<span>比例设置:</span> | |||
<span>平时成绩占比 <span id="OrdinaryScoreScale">0</span> %,</span> | |||
<span>期中成绩占比 <span id="TermInScoreScale">0</span> %,</span> | |||
<span>期末成绩占比 <span id="TermEndScoreScale">0</span> %,</span> | |||
<span>其他成绩占比 <span id="OtherScoreScale">0</span> %</span> | |||
<div class="tipBox">提示:录入完成后,请务必点击“提交成绩”按钮,避免成绩丢失!</div> | |||
<div class="timeBox" style="display:none;"> | |||
倒计时: | |||
<span id="minutes" data-minutes="30"></span>分钟(<span id="seconds" data-seconds="60"></span>秒) | |||
<div id="addMinutesBtn" data-minutes="30">续时</div> | |||
</div> | |||
</div>*@ | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
</div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuScore/InputScoreIndexOfElectiveInTeacher.js") | |||
<script> | |||
var CanInputFlag = "@ViewBag.CanInputFlag"; | |||
if (CanInputFlag != "True") { | |||
top.learun.layerConfirm('当前时间不是选修成绩录入时间!', function (res) {}); | |||
} | |||
</script> |
@@ -594,6 +594,11 @@ var bootstrap = function ($, learun) { | |||
} | |||
}; | |||
judgeSelect = function () { | |||
if (CanInputFlag != "True") { | |||
top.learun.layerConfirm('当前时间不是选修成绩录入时间!', function (res) { }); | |||
return false; | |||
} | |||
var $content = $('body').find('.lr-layout-tool-left'); | |||
var query = $content.lrGetFormData(); | |||
if (query.F_SchoolId == null || query.F_SchoolId == "") { | |||
@@ -108,3 +108,9 @@ | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuScoreNotPass/InputScoreIndex.js") | |||
<script> | |||
var CanInputFlag = "@ViewBag.CanInputFlag"; | |||
if (CanInputFlag != "True") { | |||
top.learun.layerConfirm('当前时间不是补考成绩录入时间!', function (res) {}); | |||
} | |||
</script> |
@@ -459,6 +459,11 @@ var bootstrap = function ($, learun) { | |||
} | |||
}; | |||
judgeSelect = function () { | |||
if (CanInputFlag != "True") { | |||
top.learun.layerConfirm('当前时间不是补考成绩录入时间!', function (res) { }); | |||
return false; | |||
} | |||
var $content = $('body').find('.lr-layout-tool-left'); | |||
var query = $content.lrGetFormData(); | |||
if (query.F_SchoolId == null || query.F_SchoolId == "") { | |||
@@ -6,6 +6,7 @@ | |||
.lr-select { | |||
width: 150px; | |||
} | |||
#LessonNo { | |||
width: 180px; | |||
} | |||
@@ -13,6 +14,7 @@ | |||
.lr-selectLittle { | |||
width: 80px; | |||
} | |||
.lr-layout-tool { | |||
height: 80px; | |||
} | |||
@@ -39,6 +41,7 @@ | |||
float: right; | |||
padding-right: 30px; | |||
} | |||
.scaleRow .tipBox { | |||
display: inline-block; | |||
color: #ff0000; | |||
@@ -108,3 +111,9 @@ | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuScoreNotPass/InputScoreIndexInTeacher.js") | |||
<script> | |||
var CanInputFlag = "@ViewBag.CanInputFlag"; | |||
if (CanInputFlag != "True") { | |||
top.learun.layerConfirm('当前时间不是补考成绩录入时间!', function (res) {}); | |||
} | |||
</script> |
@@ -459,6 +459,11 @@ var bootstrap = function ($, learun) { | |||
} | |||
}; | |||
judgeSelect = function () { | |||
if (CanInputFlag != "True") { | |||
top.learun.layerConfirm('当前时间不是补考成绩录入时间!', function (res) { }); | |||
return false; | |||
} | |||
var $content = $('body').find('.lr-layout-tool-left'); | |||
var query = $content.lrGetFormData(); | |||
if (query.F_SchoolId == null || query.F_SchoolId == "") { | |||
@@ -47,6 +47,7 @@ | |||
color: #ff0000; | |||
margin-left: 10px; | |||
} | |||
#addMinutesBtn { | |||
display: inline-block; | |||
cursor: pointer; | |||
@@ -110,3 +111,9 @@ | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuScoreNotPassTwo/InputScoreIndex.js") | |||
<script> | |||
var CanInputFlag = "@ViewBag.CanInputFlag"; | |||
if (CanInputFlag != "True") { | |||
top.learun.layerConfirm('当前时间不是重考成绩录入时间!', function (res) {}); | |||
} | |||
</script> |
@@ -459,6 +459,11 @@ var bootstrap = function ($, learun) { | |||
} | |||
}; | |||
judgeSelect = function () { | |||
if (CanInputFlag != "True") { | |||
top.learun.layerConfirm('当前时间不是重考成绩录入时间!', function (res) { }); | |||
return false; | |||
} | |||
var $content = $('body').find('.lr-layout-tool-left'); | |||
var query = $content.lrGetFormData(); | |||
if (query.F_SchoolId == null || query.F_SchoolId == "") { | |||
@@ -6,6 +6,7 @@ | |||
.lr-select { | |||
width: 150px; | |||
} | |||
#LessonNo { | |||
width: 180px; | |||
} | |||
@@ -13,6 +14,7 @@ | |||
.lr-selectLittle { | |||
width: 80px; | |||
} | |||
.lr-layout-tool { | |||
height: 80px; | |||
} | |||
@@ -45,6 +47,7 @@ | |||
color: #ff0000; | |||
margin-left: 10px; | |||
} | |||
#addMinutesBtn { | |||
display: inline-block; | |||
cursor: pointer; | |||
@@ -108,3 +111,9 @@ | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuScoreNotPassTwo/InputScoreIndexInTeacher.js") | |||
<script> | |||
var CanInputFlag = "@ViewBag.CanInputFlag"; | |||
if (CanInputFlag != "True") { | |||
top.learun.layerConfirm('当前时间不是重考成绩录入时间!', function (res) {}); | |||
} | |||
</script> |
@@ -459,6 +459,11 @@ var bootstrap = function ($, learun) { | |||
} | |||
}; | |||
judgeSelect = function () { | |||
if (CanInputFlag != "True") { | |||
top.learun.layerConfirm('当前时间不是重考成绩录入时间!', function (res) { }); | |||
return false; | |||
} | |||
var $content = $('body').find('.lr-layout-tool-left'); | |||
var query = $content.lrGetFormData(); | |||
if (query.F_SchoolId == null || query.F_SchoolId == "") { | |||
@@ -66,6 +66,30 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
} | |||
} | |||
/// <summary> | |||
/// 获取EADateArrange表实体数据 | |||
/// <param name="name">工作名称</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public EADateArrangeEntity GetEADateArrangeEntityByName(string name) | |||
{ | |||
try | |||
{ | |||
return eADateArrangeService.GetEADateArrangeEntityByName(name); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
#endregion | |||
#region 提交数据 | |||
@@ -27,6 +27,13 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
/// <summary> | |||
/// <returns></returns> | |||
EADateArrangeEntity GetEADateArrangeEntity(string keyValue); | |||
/// <summary> | |||
/// 获取EADateArrange表实体数据 | |||
/// <param name="name">工作名称</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
EADateArrangeEntity GetEADateArrangeEntityByName(string name); | |||
#endregion | |||
#region 提交数据 | |||
@@ -107,6 +107,30 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
} | |||
} | |||
/// <summary> | |||
/// 获取EADateArrange表实体数据 | |||
/// <param name="name">工作名称</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public EADateArrangeEntity GetEADateArrangeEntityByName(string name) | |||
{ | |||
try | |||
{ | |||
return this.BaseRepository("CollegeMIS").FindEntity<EADateArrangeEntity>(x => x.WorkName == name); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
#endregion | |||
#region 提交数据 | |||