@@ -1,4 +1,5 @@
@model Learun.Application.TwoDevelopment.EducationalAdministration.ScoreCheckInfoEntity
@using Learun.Application.TwoDevelopment.EducationalAdministration
@model Learun.Application.TwoDevelopment.EducationalAdministration.ScoreCheckInfoEntity
@{
ViewBag.Title = "学业成绩考核记载表";
Layout = null;
@@ -21,182 +22,180 @@
<div class="table-page">
<h1 class="table-title">学生成绩考核记载表( @Model.AcademicYearNo 学年,第 @Model.Semester 学期)</h1>
<table id="table" border="1" cellspacing="0" cellpadding="10" width="100%" align="center">
<tr>
<td rowspan="9">
<div style="width:20px;display: inline-block;">学业成绩</div>
</td>
<td rowspan="2">学科名称</td>
<td colspan="2">成 绩</td>
<td rowspan="2">学科名称</td>
<td colspan="2">成 绩</td>
</tr>
<tr>
<td>正考</td>
<td>补考</td>
<td>正考</td>
<td>补考</td>
</tr>
<tr>
<td>1</td>
<td>1</td>
<td>1</td>
<td>2</td>
<td>2</td>
<td>2</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>
<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 colspan="2">学校教务部门审核意见</td>
<td colspan="5">
<div style="text-align:left;">@Model.CheckOpinion</div>
<div class="text-right" style="padding-right: 64px;margin-top: 10px;position:relative;">(盖 章)
<img id="FilePath" src="" style="position:absolute;bottom:0;right:5px;width:50px;height:30px;"/>
</div>
<div class="text-right" style="padding-right: 8px;">
@{
if (Model.CheckTime.HasValue)
@{
var scoreList = Model.StuScoreList as IEnumerable<StuScoreEntity>;
//两个为一组
var scoreListTemp = scoreList.Select((x, i) => new { Index = i, Value = x }).GroupBy(x => x.Index / 2).Select(x => x.Select(y => y.Value).ToList()).ToList();
//第一列占多少行
int rowNum = 9;
if (scoreList.Count() > 14)
{
rowNum = Convert.ToInt32(Math.Ceiling(Convert.ToDecimal(scoreList.Count() / 2))) + 2;
}
<tr>
<td rowspan="@rowNum">
<div style="width:20px;display: inline-block;">学业成绩</div>
</td>
<td rowspan="2">学科名称</td>
<td colspan="2">成 绩</td>
<td rowspan="2">学科名称</td>
<td colspan="2">成 绩</td>
</tr>
<tr>
<td>正考</td>
<td>补考</td>
<td>正考</td>
<td>补考</td>
</tr>
for (int i = 0; i < rowNum - 2; i++)
{
<tr>
@if (i < scoreListTemp.Count())
{
for (int j = 0; j < 2; j++)
{
<span>@Model.CheckTime.Value.Year 年 @Model.CheckTime.Value.Month 月 @Model.CheckTime.Value.Day 日</span>
if (j < scoreListTemp[i].Count())
{
<td>@scoreListTemp[i][j].LessonName</td>
<td>@(scoreListTemp[i][j].Score == null ? 0 : scoreListTemp[i][j].Score)</td>
<td>@(Convert.ToInt32(scoreListTemp[i][j].ScoreOfNotPassTwo) > 0 ? scoreListTemp[i][j].ScoreOfNotPassTwo : scoreListTemp[i][j].ScoreOfNotPass)</td>
}
else
{
<td></td>
<td></td>
<td></td>
}
}
else
}
else
{
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
}
</tr>
}
<tr>
<td colspan="2">学校教务部门审核意见</td>
<td colspan="5">
<div style="text-align:left;">@Model.CheckOpinion</div>
<div class="text-right" style="padding-right: 64px;margin-top: 10px;position:relative;">
(盖 章)
@if (!string.IsNullOrEmpty(Model.FilePath))
{
<span>年 月 日</span>
<img id="FilePath" src="@Model.FilePath" style="position:absolute;bottom:0;right:5px;width:50px;height:30px;" />
}
</div>
<div class="text-right" style="padding-right: 8px;">
@{
if (Model.CheckTime.HasValue)
{
<span>@Model.CheckTime.Value.Year 年 @Model.CheckTime.Value.Month 月 @Model.CheckTime.Value.Day 日</span>
}
else
{
<span>年 月 日</span>
}
}
}
</div>
</td>
</tr>
<tr>
<td rowspan="2">考勤</td>
<td style="padding: 6px;">事假(节)</td>
<td colspan="5" style="border: none;padding:0">
<table border="1" cellspacing="0" cellpadding="6" width="100%" align="center"
style="border-width: 0px;">
<tr>
<td>病假(节)</td>
<td>旷课(节)</td>
<td>迟到(次)</td>
<td>早退(次)</td>
</tr>
</table>
</td>
</div>
</td>
</tr>
<tr>
<td rowspan="2">考勤</td>
<td style="padding: 6px;">事假(节)</td>
<td colspan="5" style="border: none;padding:0">
<table border="1" cellspacing="0" cellpadding="6" width="100%" align="center"
style="border-width: 0px;">
<tr>
<td>病假(节)</td>
<td>旷课(节)</td>
<td>迟到(次)</td>
<td>早退(次)</td>
</tr>
</table>
</td>
</tr>
<tr>
<td></td>
<td colspan="5" style="border: none;padding:0">
<table border="1" cellspacing="0" cellpadding="10" width="100%" align="center"
style="border-width: 0px;">
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2">职业资格证书获得情况</td>
<td colspan="5">
<div style="text-align:left">
@foreach (var item in Model.StudentCertificateList)
{
<span>@(Model.StudentCertificateList.IndexOf(item)+1)、@item.SCName @item.CreateTime.Value.ToShortDateString().Replace("/", "-")</span><br>
}
</div>
</td>
</tr>
<tr>
<td colspan="2">奖 惩 记 载</td>
<td colspan="5">
<div style="height: 42px;">
@foreach (var item in Model.StuEncourgementList)
{
<div class="tableTxt">@(Model.StuEncourgementList.IndexOf(item) + 1)、@item.EncourgeDate.Value.ToShortDateString().Replace("/", "-") @item.EncourgeName @item.Fee</div>
}
@foreach (var item in Model.StuPunishmentList)
{
<div class="tableTxt">@(Model.StuPunishmentList.IndexOf(item) + 1 + Model.StuEncourgementList.Count())、@item.PunishDate.Value.ToShortDateString().Replace("/", "-") @item.PunishName</div>
}
</div>
</td>
</tr>
<tr>
<td rowspan="2">
<div style="width:20px;display: inline-block;">操行鉴定</div>
</td>
<td>操行等级</td>
<td colspan="5" id="OperatingLevel">@Model.OperatingLevel </td>
</tr>
<tr>
<td><div style="width:20px;display: inline-block;">班主任评估</div></td>
<td colspan="5">
<div style="text-align:left;">@Model.TeacherDemo</div>
<div class="text-right" style="padding-right: 64px;margin-top: 140px;">班主任签名:<span id="Signed">@Model.Signed </span></div>
<div class="text-right" style="padding-right: 8px;margin-top: 12px;">
@{
if (Model.TDate.HasValue)
</tr>
<tr>
@{
var leaveList = Model.StuAttendanceLeaveList as IEnumerable<StuAttendanceLeaveEntity>;
<td>@leaveList.Where(x=>x.LeaveType=="事假").Count()</td>
<td colspan="5" style="border: none;padding:0">
<table border="1" cellspacing="0" cellpadding="10" width="100%" align="center"
style="border-width: 0px;">
<tr>
<td>@leaveList.Where(x => x.LeaveType == "病假").Count()</td>
<td>@leaveList.Where(x => x.LeaveType == "旷课").Count()</td>
<td>@leaveList.Where(x => x.LeaveType == "迟到").Count()</td>
<td>@leaveList.Where(x => x.LeaveType == "早退").Count()</td>
</tr>
</table>
</td>
}
</tr>
<tr>
<td colspan="2">职业资格证书获得情况</td>
<td colspan="5">
<div style="text-align:left">
@foreach (var item in Model.StudentCertificateList)
{
<span>@Model.TDate.Value.Year 年 @Model.TDate.Value.Month 月 @Model.TDate.Value.Day 日</span >
<span>@(Model.StudentCertificateList.IndexOf(item) + 1)、@item.CreateTime.Value.ToShortDateString().Replace("/", "-") @item.SCName </span><br>
}
else
</div>
</td>
</tr>
<tr>
<td colspan="2">奖 惩 记 载</td>
<td colspan="5">
<div style="text-align:left;">
@foreach (var item in Model.StuEncourgementList)
{
<span>年 月 日</span>
<div class="tableTxt">奖励 @(Model.StuEncourgementList.IndexOf(item) + 1)、@item.EncourgeDate.Value.ToShortDateString().Replace("/", "-") @item.EncourgeName @item.Fee</div>
}
@foreach (var item in Model.StuPunishmentList)
{
<div class="tableTxt">处分 @(Model.StuPunishmentList.IndexOf(item) + 1)、@item.PunishDate.Value.ToShortDateString().Replace("/", "-") @item.PunishName</div>
}
</div>
</td>
</tr>
<tr>
<td rowspan="2">
<div style="width:20px;display: inline-block;">操行鉴定</div>
</td>
<td>操行等级</td>
<td colspan="5" id="OperatingLevel">@Model.OperatingLevel </td>
</tr>
<tr>
<td><div style="width:20px;display: inline-block;">班主任评估</div></td>
<td colspan="5">
<div style="text-align:left;">@Model.TeacherDemo</div>
<div class="text-right" style="padding-right: 64px;margin-top: 140px;">班主任签名:<span id="Signed">@Model.Signed </span></div>
<div class="text-right" style="padding-right: 8px;margin-top: 12px;">
@{
if (Model.TDate.HasValue)
{
<span>@Model.TDate.Value.Year 年 @Model.TDate.Value.Month 月 @Model.TDate.Value.Day 日</span>
}
else
{
<span>年 月 日</span>
}
}
}
</div>
</td>
</tr>
</div>
</td>
</tr>
}
</table>
<div style="padding-left: 8px;margin-top: 4px;">注:操行等级分优、良、中、差四等</div>
<style>
@@ -215,6 +214,7 @@
td {
text-align: center;
font-size: 14px;
height:21px;
}
.text-right {
@@ -430,6 +430,7 @@
GetDataItemStr("OperatingLevel", "@Model.OperatingLevel","#OperatingLevel");
GetDataSourceStr("BaseUser", "f_account", "f_realname", "@Model.Signed", "#Signed");
</script>
</body>