6833. 일정변경화면 내용 수정 관련 ("까지" 텏스트 제거)

This commit is contained in:
iyak 2025-04-28 04:35:04 +00:00
parent 52643f86ba
commit 2ca780ee2b
1 changed files with 236 additions and 274 deletions

View File

@ -8,7 +8,6 @@
}
<div class="mpgInfo mpgInfored">
@* <p style="color: red; font-size:20px;">※ 관련 법령에 의해 일일 최대 학습시간은 학습중인 모든 과정에 대하여 10시간(10차시)이오니 일정변경에 참고하시기 바랍니다.</p>*@
<p style="color: red; font-size:20px;">※ 온라인교육은 관련 법령에 의해 일일 최대 학습시간이 학습중인 모든 과정에 대하여 10시간(10차시)이오니 일정변경에 참고하시기 바랍니다.</p>
</div>
<div style="margin-bottom:20px;">
@ -28,7 +27,6 @@
<th>
<div class="ltaList">
<h5>
<span class="@(d.cshape == 0 ? "org" : d.cshape == 1 ? "nav_grn" : "nav_blu")">@d.cshapename </span>
@if (d.studyplace == null)
{
@ -46,7 +44,6 @@
@d.lectStatus
</dt>
<dt style="color:#888888">
@*교육기간 : @(string.Format("{0} ~ {1}", d.cshape == 1 ? d.sdate.Value.ToString("yy-MM-dd") : d.cdt.ToString("yy-MM-dd") , d.edate.Value.ToString("yy-MM-dd")))*@
교육기간 : @(string.Format("{0} ~ {1}", d.sdate.Value.ToString("yyyy년 MM월 dd일"), d.edate.Value.ToString("yyyy년 MM월 dd일")))
</dt>
@if (d.cshape != 1)
@ -88,19 +85,18 @@
<div class="mpgPopWrap">
<div class="mpgPopTitle" id="divTitle">
<h5></h5>
@* <a href='javascript: mpgPopClose();'></a>*@
</div>
<div class="mpgPopCont" style="background-color: white;padding:10px">
<div id="divScd"></div>
</div><!-- clsPopCont -->
</div>
<div class="mpgpopbtn2" style="margin-bottom: 20px; background-color: white;">
<ul class="mpgPopBtn" style="margin-top: 0px;">
<li><a href="#" class="bk" onclick="selectScd()">선택완료</a></li>
<li><a href="#" onclick="mpgPopClose()">취소</a></li>
</ul>
</div>
</div><!-- clsPopWrap -->
</div>
</div>
</div>
</div>
@ -112,9 +108,11 @@
#popScd {
top: -170px;
}
.mpgPopCont {
height: 550px
}
.mpgPopBtn {
padding-top: 30px;
}
@ -135,25 +133,26 @@
window.open("/My/CertPrint?lectno=" + lectno + "&intval=" + userno, "certprint", "width=" + (screen.availWidth) + ", height=" + (screen.availHeight) + ", scrollbars=yes, resizable=yes, status=no, location=no, left=0, top=0");
}
}
function ps() {
window.open("/My/CertSet");
}
function openScd(cmno, lectno, cshape) {
vLectno = lectno
$(".mpgPop").show();
_cmno = cmno;
setScd(cmno, cshape);
}
function setScd(cmno, cshape) {
capp("/focommon/GetScdForMixEdu", { cmno: cmno, lectno: vLectno, cshape: cshape }, "renderScdInning(" + cmno + "," + cshape + ")");
//20220809
// capp("/focommon/GetScdForMixEdu", { cmno: cmno, lectno: vLectno }, "renderScd");
}
function renderScdInning(cmno, cshape) {
let strTmp = "";
let dateStyle = "style1" // "style1 : 0000년 00월 00일, style2 : 0000년 00월 00일 까지"
let dateStyle = "style1";
var divScd = $("#divScd");
var divTitle = $("#divTitle");
let onceCheck = false;
@ -161,12 +160,10 @@
let notContentsCheck = false;
divTitle.empty();
if (cshape == 1)
{
if (cshape == 1) {
strTmp = "<h5> 교육장교육 일정변경 </ul>";
}
else if (cshape == 2)
{
else if (cshape == 2) {
dateStyle = "style2";
if (capResult.obj.length > 0) {
@ -181,15 +178,15 @@
studyplaceCheck = false;
}
if (!studyplaceCheck) { // capResult.obj[0].studyplace == null
if (!studyplaceCheck) {
strTmp = "<h5> 교육종료일(수료일자) 변경 </ul>";
}
else {
strTmp = "<h5> 교육종료일(집체교육 참석일) 변경 </ul>";
}
}
strTmp += "<a href='javascript: mpgPopClose();'></a>";
@*strTmp = strTmp + "<a href='javascript: mpgPopClose();'></a>";*@
divTitle.append(strTmp);
divScd.empty();
@ -199,7 +196,6 @@
var ulScd = $("#ulScd" + cmno);
ulScd.empty();
//var seq = 0;
let displayCnt = 0;
let noDisPlay = true;
let datachk = false;
@ -214,33 +210,21 @@
}
if (dateStyle == "style2") {
d.scdInfoSummary = d.scdInfoSummary + "까지"
//d.scdInfoSummary = d.scdInfoSummary + "까지"
}
//if (cshape == 2 && d.studyplace != null && !onceCheck) {
// li.append("<div style='border:solid red 1px;padding:10px 10px'><label style='font-size:12pt;font-weight:bold'> ※ 이미 <span style='font-size:12pt;font-weight:bold;color: red'>집체7시간을 참석하신 경우</span> 변경한 교육종료일까지 부족한 수료조건을 만족하시면 수료 가능합니다. <span style='font-size:12pt;font-weight:bold;color: red'>(집체교육 재 참석 없음)</span></label></div><br>");
// onceCheck = true;
//}
var pData = $("<p />");
_cmno = d.cmno;
_cmino = d.cmino;
//var aApplyClass = $("<a />", { "onclick": "javascript:applyClassEdu(" + d.cmno + ", " + d.pcmno + ", " + d.cmino + ", " + d.cmisno + ");" });
/*var spanApplyClass = $("<span />", { "class": "smtlChkBtn smtlChk03", "style": "font-size:18px" });*/
/*var spanApplyClass = $("<span />", { "style": "font-size:18px" });*/
var radioEduDay = "<input type='radio' name='rdoScds' value='" + d.cmisno + "' ";
/*var radioEduDay = "<input type='radio' style='display:none' name='rdoScds' value='" + d.cmisno + *//*"' onclick='javascript:applyClassEdu(" + d.cmno + ", " + d.pcmno + ", " + d.cmino + ", " + d.cmisno + ")*//* + "' ";*/
var strStudyPlacename = "";
if (d.studyplace != null && d.studyplace != '' && d.studyplacename != null && d.studyplacename != '') {
strStudyPlacename = '[' + d.studyplacename + '교육장]';
}
//if (d.isEnd == true) {
// pData.html("<label>" + strStudyPlacename + " <label style='color: red'>[접수마감] </label>" + radioEduDay + " disabled> <span style='color:gray'>" + d.scdInfoSummary + "</span></label>");
//}
if (d.isEnd == false)
{
if (d.isEnd == false) {
++displayCnt;
if (d.quota != 0) {
if (d.remainPeople <= 0) {
@ -249,17 +233,12 @@
}
else {
if (d.isselected == 1) {
//spanApplyClass.text("수강신청");
//aApplyClass.append(spanApplyClass);
datachk = true;
pData.html("<label>" + strStudyPlacename + " <label style='color: red'>[접수중]&nbsp;&nbsp;&nbsp;&nbsp; </label>" + radioEduDay + " checked> " + d.scdInfoSummary + "<label style='color: red;display:;'> (" + d.remainPeople + "명 남음)</label>" + comment + "</label>");
}
else {
//spanApplyClass.text("수강신청");
//aApplyClass.append(spanApplyClass);
datachk = true;
pData.html("<label>" + strStudyPlacename + " <label style='color: red'>[접수중] &nbsp;&nbsp;&nbsp;&nbsp;</label>" + radioEduDay + "'> " + d.scdInfoSummary + "<label style='color: red;display:;'> (" + d.remainPeople + "명 남음)</label> " + comment + "</label>");
//pData.append(aApplyClass);
}
}
}
@ -268,17 +247,10 @@
datachk = true;
pData.html("<label>" + strStudyPlacename + " " + radioEduDay + " checked> " + d.scdInfoSummary + "</label>" + comment + "</label>");
}
//else {
// pData.html("<label>" + strStudyPlacename + " " + radioEduDay + "'> " + d.scdInfoSummary + "</label></label>");
//}
}
}
//if (capResult.obj.length < 1) {
// var li = $("<li />");
// li.append("<label> - 선택 가능한 교육종료일이 없습니다.</label>");
// ulScd.append(li);
//}
// 아래 코딩으로 대체
if (displayCnt == 0 && noDisPlay) {
var li = $("<li />");
@ -337,12 +309,7 @@
} else {
li.append("<input type='radio' name='rdoScds' value='" + d.cmisno + "'> " + d.scdInfoSummary + "<label style='color: red;display:none;'> (" + d.remainPeople + "명 남음)" + comment + "</label>");
}
//if (seq == 0) {
// li.append("<input type='radio' name='rdoScds' value='" + d.cmisno + "' checked> " + d.scdInfoSummary + "<label style='color: red;display:none;'> (" + d.remainPeople + "명 남음)</label>");
//}
//else {
// li.append("<input type='radio' name='rdoScds' value='" + d.cmisno + "'> " + d.scdInfoSummary + "<label style='color: red;display:none;'> (" + d.remainPeople + "명 남음)</label>");
//}
}
}
else {
@ -351,12 +318,7 @@
} else {
li.append("<input type='radio' name='rdoScds' value='" + d.cmisno + "'> " + d.scdInfoSummary + comment + "</label>");
}
//if (seq == 0) {
// li.append("<input type='radio' name='rdoScds' value='" + d.cmisno + "' checked> " + d.scdInfoSummary + "</label>");
//}
//else {
// li.append("<input type='radio' name='rdoScds' value='" + d.cmisno + "'> " + d.scdInfoSummary + "</label>");
//}
}
}
//seq++;