Аутор | SHA1 | Порука | Датум |
---|---|---|---|
dyy | 1a911e0706 | 【修改】教学调度加日志; | пре 1 месец |
dyy | c4041f4d88 | 【修改】全院学生成绩查看:可搜索名字打印; | пре 1 месец |
@@ -295,6 +295,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
[HttpGet] | [HttpGet] | ||||
public ActionResult PrintScore() | public ActionResult PrintScore() | ||||
{ | { | ||||
ViewBag.StuNo = Request["StuNo"]; | |||||
return View(); | return View(); | ||||
} | } | ||||
#endregion | #endregion | ||||
@@ -1289,7 +1290,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
public ActionResult DataFilling(string keyValue) | public ActionResult DataFilling(string keyValue) | ||||
{ | { | ||||
//毕业表 | //毕业表 | ||||
var StuInfoGraduateEntity = stuInfoBasicIBLL.GetStuInfoBasicEntityByStuNo(keyValue); | |||||
var StuInfoGraduateEntity = stuInfoBasicIBLL.GetStuInfoBasicEntityByKeyword(keyValue); | |||||
if (StuInfoGraduateEntity == null) | if (StuInfoGraduateEntity == null) | ||||
{ | { | ||||
return View(new StuInfoBasicEntity()); | return View(new StuInfoBasicEntity()); | ||||
@@ -38,7 +38,7 @@ var bootstrap = function ($, learun) { | |||||
$('#lr_print').on('click', function () { | $('#lr_print').on('click', function () { | ||||
var StuNo = $.trim($('#StuNo').val()); | var StuNo = $.trim($('#StuNo').val()); | ||||
if (StuNo == null || StuNo == "") { | if (StuNo == null || StuNo == "") { | ||||
learun.alert.warning("请输入学号!"); | |||||
learun.alert.warning("请输入学号或姓名!"); | |||||
return; | return; | ||||
} | } | ||||
learun.layerForm({ | learun.layerForm({ | ||||
@@ -6,7 +6,7 @@ | |||||
@Html.AppendJsFile("/Content/jquery/plugin/jqprint/jQuery.print.js") | @Html.AppendJsFile("/Content/jquery/plugin/jqprint/jQuery.print.js") | ||||
<div class="myPage" id="printBox"> | <div class="myPage" id="printBox"> | ||||
<a id="lr_print" class="btn btn-default noPrint"><i class="fa fa-print"></i> 打印</a> | <a id="lr_print" class="btn btn-default noPrint"><i class="fa fa-print"></i> 打印</a> | ||||
<div class="title"><img src="~/Content/images/StuInfoGraduate/header.png" /></div> | |||||
<div class="title"><img src="~/Content/images/StuInfoGraduate/header2.png" /></div> | |||||
<img class="line" src="~/Content/images/StuInfoGraduate/line.png" /> | <img class="line" src="~/Content/images/StuInfoGraduate/line.png" /> | ||||
<div class="tableTop"> | <div class="tableTop"> | ||||
<div>学号:<span id="StuNo"></span></div> | <div>学号:<span id="StuNo"></span></div> | ||||
@@ -42,9 +42,9 @@ | |||||
$('#lr_print').click(function () { | $('#lr_print').click(function () { | ||||
$('#printBox').print() | $('#printBox').print() | ||||
}) | }) | ||||
var keyValue = request('StuNo') | |||||
//var keyValue = request('StuNo') | |||||
$.ajax({ | $.ajax({ | ||||
url: top.$.rootUrl + '/EducationalAdministration/StuScore/DataFilling?keyValue=' + keyValue, | |||||
url: top.$.rootUrl + '/EducationalAdministration/StuScore/DataFilling?keyValue=@ViewBag.StuNo', | |||||
type: "get", | type: "get", | ||||
dataType: "json", | dataType: "json", | ||||
async: false, | async: false, | ||||
@@ -2618,6 +2618,11 @@ | |||||
<Content Include="Content\images\SsoSystem\noLogin.png" /> | <Content Include="Content\images\SsoSystem\noLogin.png" /> | ||||
<Content Include="Content\images\SsoSystem\search.png" /> | <Content Include="Content\images\SsoSystem\search.png" /> | ||||
<Content Include="Content\images\SsoSystem\user.jpg" /> | <Content Include="Content\images\SsoSystem\user.jpg" /> | ||||
<Content Include="Content\images\StuInfoGraduate\header.png" /> | |||||
<Content Include="Content\images\StuInfoGraduate\header2.png" /> | |||||
<Content Include="Content\images\StuInfoGraduate\line.png" /> | |||||
<Content Include="Content\images\StuInfoGraduate\linebig.png" /> | |||||
<Content Include="Content\images\StuInfoGraduate\linesmall.png" /> | |||||
<Content Include="Content\images\StuRecruitmentBrochure.jpg" /> | <Content Include="Content\images\StuRecruitmentBrochure.jpg" /> | ||||
<Content Include="Content\images\wsbsdt.png" /> | <Content Include="Content\images\wsbsdt.png" /> | ||||
<Content Include="Content\jquery\jquery-3.6.4.min.js" /> | <Content Include="Content\jquery\jquery-3.6.4.min.js" /> | ||||
@@ -340,6 +340,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
{ | { | ||||
Util.Log.LogHelper.Info(ex); | |||||
if (ex is ExceptionEx) | if (ex is ExceptionEx) | ||||
{ | { | ||||
throw; | throw; | ||||
@@ -253,6 +253,24 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
} | } | ||||
} | } | ||||
public StuInfoBasicEntity GetStuInfoBasicEntityByKeyword(string keyword) | |||||
{ | |||||
try | |||||
{ | |||||
return stuInfoBasicService.GetStuInfoBasicEntityByKeyword(keyword); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowBusinessException(ex); | |||||
} | |||||
} | |||||
} | |||||
/// <summary> | /// <summary> | ||||
/// 获取左侧树形数据 | /// 获取左侧树形数据 | ||||
@@ -43,6 +43,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
string GetPhotoByStuNo(string enCode); | string GetPhotoByStuNo(string enCode); | ||||
StuInfoBasicEntity GetStuInfoBasicEntityByStuName(string name); | StuInfoBasicEntity GetStuInfoBasicEntityByStuName(string name); | ||||
StuInfoBasicEntity GetStuInfoBasicEntityByKeyword(string keyword); | |||||
/// <summary> | /// <summary> | ||||
/// 获取左侧树形数据 | /// 获取左侧树形数据 | ||||
/// <summary> | /// <summary> | ||||
@@ -397,6 +397,25 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
} | } | ||||
} | } | ||||
public StuInfoBasicEntity GetStuInfoBasicEntityByKeyword(string keyword) | |||||
{ | |||||
try | |||||
{ | |||||
return this.BaseRepository("CollegeMIS").FindEntity<StuInfoBasicEntity>(a => a.StuName == keyword || a.StuNo == keyword); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowServiceException(ex); | |||||
} | |||||
} | |||||
} | |||||
/// <summary> | /// <summary> | ||||
/// 获取StuInfoBasic表实体数据 | /// 获取StuInfoBasic表实体数据 | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||