Ver a proveniência

学生学籍管理添加打印学籍页面

临城职教中职
ndbs há 2 anos
ascendente
cometimento
7c04e1b83e
5 ficheiros alterados com 627 adições e 0 eliminações
  1. +65
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuInfoBasicController.cs
  2. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Index.cshtml
  3. +19
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Index.js
  4. +541
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/printxjk.cshtml
  5. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj

+ 65
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuInfoBasicController.cs Ver ficheiro

@@ -148,6 +148,71 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers

return View(stuInfoBasicEntity);
}


/// <summary>
/// 打印
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult Printxjk(string keyValue)
{
var stuInfoBasicEntity = stuInfoBasicIBLL.GetStuInfoBasicEntity(keyValue);

if (stuInfoBasicEntity == null)
{
return View(new StuInfoBasicEntity());
}
//#region 获取附件名称
//if (dispatchEntity.AttachmentName != null)
//{
// string str = "";
// string[] array = annexesFileIBLL.GetFileNames(dispatchEntity.AttachmentName).Split(',');
// if (array.Length > 0)
// {
// for (int i = 0; i < array.Length; i++)
// {
// if (array[i].Trim() != "")
// {
// str += array[i].Substring(0, array[i].IndexOf(".")) + ",";
// }
// }
// str.TrimEnd(',');
// }
// dispatchEntity.Reasons = str;
//}
//#endregion

//#region 获取校长的签名盖章+ 批示+时间+阅
////var listTaskLog = nWFTaskIBLL.GetLogList(dispatchEntity.processId);
//var firstList = nWFTaskIBLL.GetLogList(dispatchEntity.processId).OrderBy(o => o.F_CreateDate).ToList();
//for (int i = 1; i < firstList.Count; i++)
//{
// if (i == 1)
// {
// dispatchEntity.Render = firstList[i].F_Des;
// ViewBag.pSList += firstList[i].F_CreateUserName + firstList[i].F_CreateDate + "阅" + "&";
// }
//}
//var PrintList = nWFTaskIBLL.GetLogList(dispatchEntity.processId).GroupBy(o => o.F_CreateUserName).Select(o => new
//{
// F_CreateDate = o.FirstOrDefault().F_CreateDate,
// F_CreateUserName = o.FirstOrDefault().F_CreateUserName,
//});
//var newList = PrintList.Where(s => PrintList.Select(mo => mo.F_CreateDate).Contains(s.F_CreateDate)).OrderBy(s => s.F_CreateDate).ToList();
//for (int i = 1; i < newList.Count; i++)
//{
// if (!ViewBag.pSList.Contains(newList[i].F_CreateUserName))
// {
// ViewBag.pSList += newList[i].F_CreateUserName + newList[i].F_CreateDate + "阅" + "&";
// }
//}
//ViewBag.pSList = ViewBag.pSList.TrimEnd('&');
//ViewBag.pSList = new List<string>(ViewBag.pSList.Split('&'));
//#endregion
return View(stuInfoBasicEntity);
}

#endregion




+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Index.cshtml Ver ficheiro

@@ -66,6 +66,7 @@
<a id="lr_searchChange" class="btn btn-default"><i class="fa fa-search"></i>&nbsp;查看异动</a>
<a id="lr_photo" class="btn btn-default"><i class="fa fa-search"></i>&nbsp;拍照</a>
<a id="lr_printInfo" class="btn btn-default"><i class="fa fa-print"></i>&nbsp;学生简历表</a>
<a id="lr_printxjk" class="btn btn-default"><i class="fa fa-print"></i>&nbsp;学籍卡打印</a>

</div>
</div>


+ 19
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Index.js Ver ficheiro

@@ -286,6 +286,25 @@ var bootstrap = function ($, learun) {
}
});

//打印学籍卡
$('#lr_printxjk').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('StuId');
if (learun.checkrow(keyValue)) {
if (keyValue.indexOf(',') != -1) {
learun.alert.warning("只能选择一条记录进行查看!");
return;
}
learun.layerForm({
id: 'print',
title: '学籍卡打印',
url: top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/Printxjk?keyValue=' + keyValue,
width: 1100,
height: 800,
btn: null
});
}
});

},
// 初始化列表
initGird: function () {


+ 541
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/printxjk.cshtml Ver ficheiro

@@ -0,0 +1,541 @@
@model Learun.Application.TwoDevelopment.EducationalAdministration.StuInfoBasicEntity
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0051)http://localhost:8080/MDITIP/printOutContent.action -->
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>打印</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">

<style>
h4 {
font-size: 23px;
font-weight: 400;
width: 50%;
text-align: center;
margin: 0 auto;
}

em {
font-style: normal
}

b {
margin-left: 20px;
}

input {
border: 0;
outline: none;
cursor: pointer;
}

span {
width: 30%;
float: right;
}

table {
width: 100%;
border: 1px solid #222;
border-top: none;
border-bottom: none;
}
td {
width: 15%;
height: 44px;
border: 1px solid #222;
text-align: center;
}

#headerInfo td {
width: 15%;
height: 44px;
border: 1px solid #222;
text-align: center;
/* word-wrap: break-word;
word-break: normal; */
page-break-after: always;
}

</style>

</head>

<body>
<div id="print-content">
<div class="header">
<h4>长阳土家族自治县职业教育中心学生学籍卡</h4>
</div>
<p>
<b><em>经办人:</em><input type="text"></b>
<span>打印日期:</span>
</p>
<!-- 页面记录信息 -->
<table cellpadding="0" cellspacing="0">
<tr>
<td>姓名</td>
<td>@Model.StuName</td>
<td>性别</td>
<td id="GenderNo">@Model.GenderNo</td>
<td>出生日期</td>
<td>@(Model.Birthday.HasValue ? Model.Birthday.Value.ToShortDateString().Replace("/", "-") : "")</td>
<td rowspan="3">照片</td>
</tr>
<tr>
<td>民族</td>
<td id="NationalityNo">@Model.NationalityNo</td>
<td>政治面貌</td>
<td></td>
<td>班级</td>
<td id="ClassNo">@Model.ClassNo</td>

</tr>
<tr>
<td>学号</td>
<td>@Model.StuNo</td>
<td>学制</td>
<td></td>
<td>学籍号</td>
<td></td>

</tr>
<tr>
<td>年级</td>
<td>@Model.Grade</td>
<td>专业</td>
<td id="MajorNo">@Model.MajorNo</td>
<td>身份证号</td>
<td colspan="2">@Model.IdentityCardNo</td>

</tr>
<tr>
<td>入学年月</td>
<td></td>
<td>入学方式</td>
<td></td>
<td>学习形式</td>
<td colspan="2"></td>
</tr>
<tr>
<td>家庭住址</td>
<td colspan="3"></td>
<td>毕业时间</td>
<td colspan="2"></td>
</tr>
<tr>
<td>异动情况</td>
<td colspan="7"></td>
</tr>
<tr>
<td colspan="8">学业成绩</td>
</tr>
<tr>
<td>学期</td>
<td>课程名称</td>
<td>成绩</td>
<td>课程名称</td>
<td>成绩</td>
<td>课程名称</td>
<td>成绩</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" id="yi">
<tr>
<td rowspan="5">第一学期</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" id="er">
<tr>
<td rowspan="5">第二学期</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" id="san">
<tr>
<td rowspan="5">第三学期</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" id="si">

<tr>
<td rowspan="5">第四学期</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" id="wu">
<tr>
<td rowspan="5">第五学期</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" id="liu">
<tr>
<td rowspan="5">第六学期</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>


</table>
</div>

</body>

</html>
<script>
var clientH22 = document.body.clientHeight
var clientH33 = window.screen.availHeight
var scrollH = document.body.scrollHeight
var yiDom = document.getElementById("yi")
var yiH = yiDom.offsetHeight
var erDom = document.getElementById("er")
var erH = erDom.offsetHeight
var sanDom = document.getElementById("san")
var sanH = sanDom.offsetHeight
var siDom = document.getElementById("si")
var siH = siDom.offsetHeight
var wuDom = document.getElementById("wu")
var wuH = wuDom.offsetHeight
var liuDom = document.getElementById("liu")
var liuH = liuDom.offsetHeight
var siNumH = erH + sanH + siH
erDom.classList.add("pageBreak")
if(yiH>230){
yiDom.classList.add("pageBreak")
wuDom.classList.add("pageBreak")
}
if(erH > 230){
yiDom.classList.add("pageBreak")
erDom.classList.remove("pageBreak")
}
if(sanH > 300){
erDom.classList.remove("pageBreak")
sanDom.classList.add("pageBreak")
siDom.classList.remove("pageBreak")
wuDom.classList.remove("pageBreak")
}
if(siH > 400){
siDom.classList.add("pageBreak")
liuDom.classList.remove("pageBreak")
wuDom.classList.remove("pageBreak")
}
if(wuH > 400){
wuDom.classList.add("pageBreak")
liuDom.classList.remove("pageBreak")
}
if(liuH > 400){
wuDom.classList.add("pageBreak")
}

if((erH + sanH)>600){
sanDom.classList.add("pageBreak")
siDom.classList.remove("pageBreak")
wuDom.classList.remove("pageBreak")
liuDom.classList.remove("pageBreak")
}else
if((sanH +siH)>700){
// siDom.classList.add("pageBreak")
wuDom.classList.remove("pageBreak")
liuDom.classList.remove("pageBreak")
}
if((siH + wuH) >700){
wuDom.classList.add("pageBreak")
liuDom.classList.remove("pageBreak")
}
console.log("erH",erH)
console.log("sanH",sanH)
console.log("siH",siH)
console.log("wuH",wuH)
console.log("liuH",liuH)

if((erH + sanH + siH)>700){
sanDom.classList.add("pageBreak")
siDom.classList.remove("pageBreak")
wuDom.classList.add("pageBreak")
}

</script>
<script>
//绑定字典或源的值
function GetDataSourceStr(code, value, text, valueStr, box) {
$(box).html("");
$.ajax({
url: "/OnlineRegistrate/GetDataSourceMap?code=" + code,
async: false,
success: function (msg) {
var msgObject = $.parseJSON(msg);
if (msgObject.code == 200) {
$.each(msgObject.data, function (i, item) {
if (item[value] == valueStr) {
$(box).html(item[text]);
return;
}
});
} else {
layer.msg(msgObject.info);
}
},
});
return;
};
function GetDataItemStr(code, valueStr, box) {
$(box).html("");
$.ajax({
url: "/OnlineRegistrate/GetDataItemMap?code=" + code,
async: false,
success: function (msg) {
var msgObject = $.parseJSON(msg);
if (msgObject.code == 200) {
$.each(msgObject.data, function (i, item) {
if (item["F_ItemValue"] == valueStr) {
$(box).html(item["F_ItemName"]);
return;
}
});
} else {
layer.msg(msgObject.info);
}
},
});
return;
};
GetDataItemStr("usersexbit", "@Model.GenderNo", "#GenderNo");
GetDataItemStr("BCdNationality", "@Model.NationalityNo", "#NationalityNo");
GetDataSourceStr("CdDeptInfo", "deptno", "deptname", "@Model.DeptNo", "#DeptNo");
GetDataSourceStr("CdMajorInfo", "majorno", "majorname", "@Model.MajorNo", "#MajorNo");
GetDataSourceStr("bjsj", "classno", "classname", "@Model.ClassNo", "#ClassNo");

</script>

+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj Ver ficheiro

@@ -1106,6 +1106,7 @@
<Content Include="Areas\EducationalAdministration\Views\StuInfoBasic\IndexInClass.js" />
<Content Include="Areas\EducationalAdministration\Views\StuInfoBasic\MyClass.js" />
<Content Include="Areas\EducationalAdministration\Views\StuInfoBasic\Print.css" />
<None Include="Areas\EducationalAdministration\Views\StuInfoBasic\Printxjk.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StuInfoFresh\AllocationClassDC.js" />
<Content Include="Areas\EducationalAdministration\Views\StuInfoFresh\StatisticClassIndex.js" />
<Content Include="Areas\EducationalAdministration\Views\StuInfoFresh\StatusView.js" />


Carregando…
Cancelar
Guardar