@@ -146,6 +146,23 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
return null; | return null; | ||||
} | } | ||||
} | } | ||||
public ActionResult FileDownLoadTZS(string IDCard) | |||||
{ | |||||
FileStreamResult result = null; | |||||
try | |||||
{ | |||||
var path = Server.MapPath("~/Resource/StuTZS/"); | |||||
var pathoffull = path + IDCard+".jpg"; | |||||
FileStream fsread = new FileStream(pathoffull, FileMode.OpenOrCreate, FileAccess.ReadWrite); | |||||
result = File(fsread, "image/jpg", IDCard + ".jpg"); | |||||
return result; | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
return null; | |||||
} | |||||
} | |||||
protected virtual ActionResult Success(string info) | protected virtual ActionResult Success(string info) | ||||
{ | { | ||||
@@ -69,6 +69,7 @@ | |||||
<span style="font-size: 12px; color: red;" id="msg"> 备注:请手机截屏此录取界面,保存图片。报名时出示此图片换取录取通知书!</span> | <span style="font-size: 12px; color: red;" id="msg"> 备注:请手机截屏此录取界面,保存图片。报名时出示此图片换取录取通知书!</span> | ||||
<br /> | <br /> | ||||
<div class="box" id="fileDownLoad"><a alt="点击下载" style="color: blue;text-decoration: underline;">请点击入学须知并仔细阅读</a></div> | <div class="box" id="fileDownLoad"><a alt="点击下载" style="color: blue;text-decoration: underline;">请点击入学须知并仔细阅读</a></div> | ||||
<div class="box" id="tzsfileDownLoad"><a alt="点击下载" style="color: blue;text-decoration: underline;">请点击下载通知书</a></div> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
@@ -190,6 +191,11 @@ | |||||
//下载入学须知 | //下载入学须知 | ||||
location.href = "/EducationalAdministration/StuEnrollPhone/FileDownLoad?name=" + '2022年新生入学须知' + '&pathName=' + '新生入学须知.pdf';; | location.href = "/EducationalAdministration/StuEnrollPhone/FileDownLoad?name=" + '2022年新生入学须知' + '&pathName=' + '新生入学须知.pdf';; | ||||
}); | }); | ||||
$('#tzffileDownLoad').find('a').on('click', | |||||
function () { | |||||
//下载通知书 | |||||
location.href = "/EducationalAdministration/StuEnrollPhone/FileDownLoadTZS?IDCard=" + IDCard; | |||||
}); | |||||
//renderForm(); | //renderForm(); | ||||
}); | }); | ||||