This commit is contained in:
hyunho 2021-01-20 02:08:51 +00:00
parent 0774733ebc
commit c2d71db02f
3 changed files with 26 additions and 5 deletions

View File

@ -10,11 +10,21 @@
<div class="line line-dashed line-lg pull-in"></div><div class="form-group">
<label class="col-sm-4 col-md-2 control-label">신청기간(교육기간)</label>
<div class="col-sm-8 col-md-10">
@(Model.CM.rsrename) (@(Model.CM.sssename))
@(Model.CM.rsrename)
@if (Model.CM.retimeymd != "2099-12-31")
{
<span>(@(Model.CM.ssseterm)일)</span>
<span>
(@(Model.CM.sssename))
(@(Model.CM.ssseterm)일)
</span>
}
else
{
<span>
/ (@(Model.CM.studydays)일)
</span>
}
</div>
</div>
<div class="line line-dashed line-lg pull-in"></div><div class="form-group">

View File

@ -2,7 +2,18 @@
<table class="regtable" style="margin-top: 0;">
<colgroup><col width="200" /><col /></colgroup>
<tr><th>기수 | 유형 | 강좌명 | 분반</th><td>@string.Format("{0} | {1} | {2} | {3}반", Model.CM.tmname, Model.CM.cmno + "." + Model.CM.cshapename, Model.CM.cname, Model.CM.classno)</td></tr>
<tr><th>신청기간(교육기간)</th><td>@string.Format("{0} ~ {1} ({2})", Model.CM.rstime ==null ? "" : Model.CM.rstime.Value.ToShortDateString(), Model.CM.retime ==null ? "" : Model.CM.retime.Value.ToShortDateString(), Model.CM.cshape == 1 ? Model.CM.sstime==null ? "" : Model.CM.sstime.Value.ToShortDateString() : string.Format("{0}부터 {1}일간", Model.CM.sstime==null?"": Model.CM.sstime.Value.ToShortDateString(), Model.CM.ssseterm))</td></tr>
<tr><th>신청기간(교육기간)</th>
<td>
@if (Model.CM.retimeymd != "2099-12-31")
{
<span>@string.Format("{0} ~ {1} ({2})", Model.CM.rstime == null ? "" : Model.CM.rstime.Value.ToShortDateString(), Model.CM.retime == null ? "" : Model.CM.retime.Value.ToShortDateString(), Model.CM.cshape == 1 ? Model.CM.sstime == null ? "" : Model.CM.sstime.Value.ToShortDateString() : string.Format("{0}부터 {1}일간", Model.CM.sstime == null ? "" : Model.CM.sstime.Value.ToShortDateString(), Model.CM.ssseterm))</span>
}
else
{
<span>상시 / (@(Model.CM.studydays)일)</span>
}
</td>
</tr>
</table>
<ul class="pagination pagination-md">
<li class="@(Model.tabidx == 0 ? "active":"")"><a href="#" onclick="gotab(0);" data-toggle="tab">종합</a></li>

View File

@ -156,7 +156,7 @@ namespace NP.Model
{
get
{
return retimeymd == "2099-12-31" ? string.Format("신청일로부터 {0} 일", Convert.ToInt32(studydays)) : rstime == null && retime == null ? "" : string.Format("{0} ~ {1}", rstime == null ? "" : rstime.Value.ToString("yyyy-MM-dd"), retime == null ? "" : retime.Value.ToString("yyyy-MM-dd"));
return retimeymd == "2099-12-31" ? "상시" : rstime == null && retime == null ? "" : string.Format("{0} ~ {1}", rstime == null ? "" : rstime.Value.ToString("yyyy-MM-dd"), retime == null ? "" : retime.Value.ToString("yyyy-MM-dd"));
}
}