756 lines
42 KiB
Plaintext
756 lines
42 KiB
Plaintext
@model NP.Model.VMCourse
|
||
@{
|
||
var isallday = Model.CM.retimeymd == "2099-12-31" ? true : false;
|
||
}
|
||
<form id="historyForm" method="post">
|
||
<input type="hidden" name="cmno" value="@Model.cmno" /> @*강좌번호*@
|
||
<input type="hidden" name="stringval" value="@Model.stringval" /> @*법정교육/기타교육*@
|
||
<input type="hidden" name="stringval2" value="@Model.stringval2" />@*교육유형*@
|
||
<input type="hidden" name="stringval3" value="@Model.stringval3" />@*기술인분류*@
|
||
<input type="hidden" name="stringval4" value="@Model.stringval4" />@*교육목적*@
|
||
<input type="hidden" name="stringval5" value="@Model.stringval5" />@*등급*@
|
||
<input type="hidden" name="stringval6" value="@Model.stringval6" />@*직무분야*@
|
||
<input type="hidden" name="stringval7" value="@Model.stringval7" />@*전문분야*@
|
||
<input type="hidden" name="pplno" value="@Model.pplno" />@*pplno*@
|
||
<input type="hidden" name="selMonth" value="@Model.selMonth" />@*교육일정선택(selMonth)*@
|
||
<input type="hidden" name="isCompany" value="@Model.isCompany" />@*업체/개인 선택*@
|
||
<input type="hidden" name="CM.cmino" id="becmino" value="@Model.CM.cmino" />
|
||
<input type="hidden" name="CM.cmisno" id="becmisno" value="@Model.CM.cmisno" />
|
||
</form>
|
||
<form id="applyEduForm" method="post">
|
||
<input type="hidden" name="cmno" id="cmno" value="@Model.cmno" /> @*강좌번호*@
|
||
<input type="hidden" name="stringval" id="stringval" value="@Model.stringval" /> @*법정교육/기타교육*@
|
||
<input type="hidden" name="stringval2" id="stringval2" value="@Model.stringval2" />@*교육유형*@
|
||
<input type="hidden" name="stringval3" id="stringval3" value="@Model.stringval3" />@*기술인분류*@
|
||
<input type="hidden" name="stringval4" id="stringval4" value="@Model.stringval4" />@*교육목적*@
|
||
<input type="hidden" name="stringval5" id="stringval5" value="@Model.stringval5" />@*등급*@
|
||
<input type="hidden" name="stringval6" id="stringval6" value="@Model.stringval6" />@*직무분야*@
|
||
<input type="hidden" name="stringval7" id="stringval7" value="@Model.stringval7" />@*전문분야*@
|
||
<!--<input type="hidden" name="isCompany" value="@Model.isCompany" />-->@*업체/개인 선택*@
|
||
<input type="hidden" name="cmisno" id="cmisno" />
|
||
<input type="hidden" name="applicableCM" id="applicableCM" />
|
||
<input type="hidden" name="cshape" id="cshape" value="@Model.CM.cshape" />
|
||
<h4 class="clsTitle">신청강좌</h4>
|
||
<ul class="smtList mt0" style="font-weight:500;">
|
||
<li>
|
||
<ul class="smtlChk" style="padding-left:0px;">
|
||
<li>
|
||
|
||
<p>
|
||
<span class="@(Model.CM.cshape == 0 ? "org" : Model.CM.cshape == 1 ? "nav_grn" : "nav_blu")">
|
||
@(Model.CM.cshape == 0 ? "온라인" : Model.CM.cshape == 1 ? "교육장교육" : "온라인교육")
|
||
</span>
|
||
@{
|
||
string strStudyPlaceTmp = "";
|
||
string strStudyPlaceTmp2 = "";
|
||
string strEduInfo = "";
|
||
if (Model.SelectCMInningscd.studyplace != null)
|
||
{
|
||
strStudyPlaceTmp = Model.SelectCMInningscd.studyplacename + "교육장";
|
||
strStudyPlaceTmp2 = Model.CM.cname;
|
||
}
|
||
else
|
||
{
|
||
strStudyPlaceTmp = Model.CM.cname;
|
||
}
|
||
if (Model.CM.cshape == 1)
|
||
{
|
||
strEduInfo = string.Format("교육기간 {0} | {2}시간과정 |<span class='red'> {3}과정 </span><br /><span style='margin-left:5px;'>교육비 : {4}원</span>",
|
||
Model.SelectCMInningscd.scdInfoSummary, Model.SelectCMInningscd.eend2, Model.CM.studytime, (Model.CM.isrefund == 1 ? "환급" : "비환급"), Model.CM.infee.ToString("#,0"));
|
||
}
|
||
else
|
||
{
|
||
//Model.SelectCMInningscd.eend2 교육종료일
|
||
strEduInfo = string.Format("교육기간 {0} |<span class='red'> 교육종료일 {1} </span> | {2}시간과정 |<span class='red'> {3}과정 </span><br /><span style='margin-left:5px;'>교육비 : {4}원</span>",
|
||
Model.SelectCMInningscd.scdInfoSummary, Model.SelectCMInningscd.eend2, Model.CM.studytime, (Model.CM.isrefund == 1 ? "환급" : "비환급"), Model.CM.infee.ToString("#,0"));
|
||
|
||
// 23년 1월 오픈
|
||
//strEduInfo += string.Format("교육기간 {0} |", Model.SelectCMInningscd.scdInfoSummary);
|
||
//strEduInfo += string.Format("<span> 교육종료일 {0} </span> | ", Model.SelectCMInningscd.eend2);
|
||
//strEduInfo += string.Format("{0}시간과정 |", Model.CM.studytime);
|
||
//strEduInfo += string.Format("<span class='red'> {0}과정 </span><br />", (Model.CM.isrefund == 1 ? "환급" : "비환급"));
|
||
//strEduInfo += string.Format("<span style='margin-left:5px;'>집체교육 참석일 : {0}</span><br />", Model.SelectCMInningscd.estart.ToString("yyyy년 MM월 dd일"));
|
||
//strEduInfo += string.Format("<span style='margin-left:5px;'>교육비 : {0}원</span>", Model.CM.infee.ToString("#,0"));
|
||
}
|
||
|
||
|
||
}
|
||
|
||
@if (Model.SelectCMInningscd.studyplace == null)
|
||
{
|
||
<span style="font-size:22px"><label><span>@strStudyPlaceTmp</span><span class="blu">@strStudyPlaceTmp2 </span></label></span><br />
|
||
}
|
||
else if (Model.SelectCMInningscd.studyplace != null)
|
||
{
|
||
<span style="font-size:22px"><label><span class="blu">[@strStudyPlaceTmp]</span><span>@strStudyPlaceTmp2 </span></label></span><br />
|
||
}
|
||
|
||
<span><label>@Html.Raw(strEduInfo)</label></span>
|
||
</p>
|
||
</li>
|
||
</ul>
|
||
<div class="apyCost">
|
||
결제금액 : <span class="red" id="spninfeecost"></span> 원
|
||
</div>
|
||
</li>
|
||
</ul>
|
||
|
||
<div id="eduArea" style="display:none">
|
||
<h4 class="clsTitle">교육종료일 선택 (운영시 가림예정) </h4>
|
||
<p style="margin-bottom: 30px; color:red;">
|
||
※ 원하는 교육종료일(수료일자)를 선택해 주세요. 입금완료시 바로 교육이 시작됩니다.<br>
|
||
※ 관련 법령에 의해 일일 최대 학습시간은 학습중인 모든 과정에 대하여 10시간(10차시)이오니 교육종료일 선택 시 꼭!참고하시기 바랍니다..<br>
|
||
※ 수료일자 까지 수료조건을 만족하시면 그 다음날 오후 3시 이후에 수료증 출력이 가능합니다.
|
||
</p>
|
||
@*<select id="selMonth">
|
||
@for (int i = 1; i <= 12; i++)
|
||
{
|
||
<option @(DateTime.Now.Month == i ? "selected" : "") value="@(i)">@(i)월</option>
|
||
}
|
||
</select>
|
||
<span> ※원하는 수료일자(월)을 선택하세요. 지정하신 일자가 수료일자가 됩니다.</span>
|
||
<br /><br />*@
|
||
<ul id="ulScd"></ul>
|
||
</div>
|
||
|
||
@if (Model.CM.isaccommodation == 1 && Model.SelectCMInningscd.studyplace == "19")
|
||
{
|
||
<h4 class="clsTitle">합숙여부 <span style="color:red; font-weight:700;">(영천교육장만 합숙가능)</span> </h4>
|
||
<ul class="bakRadio">
|
||
<li>
|
||
<input type="radio" name="isaccommodation" id="isaccommodation1" value="1" /><label for="isaccommodation1"> 예 (<span id="spnaccommofee"></span>원 추가)</label>
|
||
</li>
|
||
<li>
|
||
<input type="radio" name="isaccommodation" id="isaccommodation2" value="0" checked /><label for="isaccommodation2"> 아니오</label>
|
||
</li>
|
||
</ul>
|
||
}
|
||
|
||
@if (Model.CM.isrefund == 1)
|
||
{
|
||
<h4 class="clsTitle">환급여부선택<span style="color:red; font-weight:700;"> (고용보험 가입자만 환급가능)</span></h4>
|
||
<table class="clsTable">
|
||
<tbody>
|
||
<tr>
|
||
<th>환급여부</th>
|
||
<td>
|
||
<ul class="bakRadio">
|
||
<li><input type="radio" name="isrebate" id="isrebate1" value="1" checked><label for="isrebate1">환급</label></li>
|
||
<li><input type="radio" name="isrebate" id="isrebate0" value="0"><label for="isrebate0">비환급</label></li>
|
||
</ul>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
|
||
<p class="subDsc mt10">※ <span style="color:red;">(주의)</span> 신청중인 교육이 환급과정이라 하더라도 <span style="color:red;">고용보험 미 가입자는 교육비 환급이 되지 않습니다. </span></p>
|
||
}
|
||
|
||
<div class="div-isCompany">
|
||
<h4 class="clsTitle">소속선택</h4>
|
||
<table class="clsTable">
|
||
<tbody>
|
||
<tr>
|
||
<th>업체/개인 선택</th>
|
||
<td>
|
||
<ul class="bakRadio">
|
||
<li><input type="radio" name="isCompany" id="isCompany1" value="1" @(Model.Assign.asno != 0 ? "checked" : "") /><label for="isCompany1"> 업체</label></li>
|
||
<li><input type="radio" name="isCompany" id="isCompany0" value="0" @(Model.Assign.asno != 0 ? "" : "checked") /><label for="isCompany0"> 개인</label></li>
|
||
</ul>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="subDsc mt10">
|
||
<span style="color:red;font-weight:700;font-size:20px">※계산서 발급을 원할 경우 반드시 업체로 선택해 주세요. (단 카드결제는 관련 법에 의해 계산서 발급불가) </span><br>
|
||
※수료증 소속부분에 기재될 내용으로 소속업체가 없으면 개인을 선택해 주세요.
|
||
</p>
|
||
</div>
|
||
@if (Model.CM.isrefund == 1)
|
||
{
|
||
<div class="div-rbankInfo">
|
||
<h4 class="clsTitle">환급금 수령계좌 등록<span style="color: red; font-weight: 700;"> (법인계좌만 입력가능)</span></h4>
|
||
<p class="subDsc">*는 필수 입력사항입니다.</p>
|
||
<table class="clsTable">
|
||
<tbody>
|
||
<tr>
|
||
<th class="req">은행명</th>
|
||
<td><input type="text" name="rbankname" onkeydown="checkSpacebar()" onKeypress='if ((event.keyCode > 32 && event.keyCode < 48) || (event.keyCode > 57 && event.keyCode < 65) || (event.keyCode > 90 && event.keyCode < 97) || (event.keyCode < 128 && event.keyCode > 122)) event.returnValue = false;' id="rbankname" class="apyIpt" value="@(Model.PPLog != null ? Model.PPLog.rbankname : string.Empty)" /></td>
|
||
</tr>
|
||
<tr>
|
||
<th class="req">계좌번호</th>
|
||
<td><input type="number" name="rbankacc" onkeydown="checkSpacebar()" onKeypress='if ((event.keyCode > 32 && event.keyCode < 48) || (event.keyCode > 57 && event.keyCode < 65) || (event.keyCode > 90 && event.keyCode < 97) || (event.keyCode < 128 && event.keyCode > 122)) event.returnValue = false;' id="rbankacc" class="apyIpt" value="@(Model.PPLog != null ? Model.PPLog.rbankacc : string.Empty)" /></td>
|
||
</tr>
|
||
<tr>
|
||
<th class="req">예금주</th>
|
||
<td><input type="text" name="rbankowner" onkeydown="checkSpacebar()" onKeypress='if ((event.keyCode > 32 && event.keyCode < 48) || (event.keyCode > 57 && event.keyCode < 65) || (event.keyCode > 90 && event.keyCode < 97) || (event.keyCode < 128 && event.keyCode > 122)) event.returnValue = false;' id="rbankowner" class="apyIpt" value="@(Model.PPLog != null ? Model.PPLog.rbankowner : string.Empty)" /></td>
|
||
</tr>
|
||
<tr>
|
||
<th class="req">고용보험관리번호</th>
|
||
<td><input type="number" name="eino" onkeydown="checkSpacebar()" onKeypress='if ((event.keyCode > 32 && event.keyCode < 48) || (event.keyCode > 57 && event.keyCode < 65) || (event.keyCode > 90 && event.keyCode < 97) || (event.keyCode < 128 && event.keyCode > 122)) event.returnValue = false;' id="eino" class="apyIpt" value="@(Model.PPLog != null ? Model.PPLog.eino : string.Empty)" /><button type="button" onclick="insuranceguide()" style="margin-left:10px;">고용보험관리번호 안내</button></td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="subDsc mt10">※ 환급금액 지급받는 계좌이므로 반드시 소속된 사업장의 법인계좌정보만 입력하여 주시기 바랍니다. <span style="color:red;">(개인계좌 또는 사업주 개인의 계좌로는 환급이 불가합니다)</span></p>
|
||
</div>
|
||
}
|
||
<div id="postlayer" class="daumpost"><a href="#" class="btn btn-xxs btn-select closedaumpost" onclick="closeDaumPostcode();">close</a></div>
|
||
|
||
@*@if (Model.CM.isrefund == 1)
|
||
{*@
|
||
<div class="div-companyInfo">
|
||
<h4 class="clsTitle">회사정보 확인</h4>
|
||
<p class="subDsc">*는 필수 입력사항입니다.</p>
|
||
@*<p class="subDsc">계산서 발급을 원할 경우 담당자성명, 담당자연락처를 제외한 모든 사항 필수 입력을 해주세요.</p>*@
|
||
@Html.HiddenFor(x => x.Assign.asno)
|
||
@Html.HiddenFor(x => x.Assign.eino)
|
||
<table class="clsTable">
|
||
<tbody>
|
||
<tr>
|
||
<th class="onreq offreq">회사명</th>
|
||
<td>
|
||
@Html.TextBoxFor(x => x.Assign.asname, new { @class = "apylpt", @maxlength = "100", @style = "background-color:#ddd;", @readonly = true })
|
||
<a href="#" id="btnassign" class="btnassign">검색</a>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th class="onreq offreq">사업자등록번호</th>
|
||
<td>@Html.TextBoxFor(x => x.Assign.brno, new { @class = "apylpt", @maxlength = "10" })</td>
|
||
</tr>
|
||
<tr>
|
||
<th class="onreq offreq">대표자성명</th>
|
||
<td>@Html.TextBoxFor(x => x.Assign.ceoname, new { @class = "apylpt", @maxlength = "50" })</td>
|
||
</tr>
|
||
<tr>
|
||
<th class="onreq offreq">주소</th>
|
||
<td>
|
||
<ul class="apyAddr postbox">
|
||
<li>
|
||
@Html.TextBoxFor(x => x.Assign.post, new { @class = "postno", @style = "background-color:#ddd;" })
|
||
</li>
|
||
<li>
|
||
@Html.TextBoxFor(x => x.Assign.address1, new { @class = "postadr", @style = "background-color:#ddd;", @placeholder = "주소입력" })
|
||
</li>
|
||
<li>
|
||
@Html.TextBoxFor(x => x.Assign.address2, new { @class = "postadrsub", @placeholder = "나머지 주소입력", @maxlength = "200" })
|
||
</li>
|
||
<li>
|
||
<a href="#" onclick="getpost2(this);">우편번호검색</a>
|
||
</li>
|
||
</ul>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th class="onreq offreq">업태</th>
|
||
<td>@Html.TextBoxFor(x => x.Assign.btype, new { @class = "apylpt", @maxlength = "50" })</td>
|
||
</tr>
|
||
<tr>
|
||
<th class="onreq offreq">종목</th>
|
||
<td>@Html.TextBoxFor(x => x.Assign.bkind, new { @class = "apylpt", @maxlength = "50" })</td>
|
||
</tr>
|
||
<tr>
|
||
<th>담당자성명</th>
|
||
<td>@Html.TextBoxFor(x => x.Assign.mname, new { @class = "apylpt", @maxlength = "30" })</td>
|
||
</tr>
|
||
<tr>
|
||
<th>담당자연락처</th>
|
||
<td>
|
||
<ul class="usrPhn">
|
||
<li>@Html.TextBoxFor(x => x.Assign.mphone1, new { @maxlength = "3" })</li>
|
||
<li>-</li>
|
||
<li>@Html.TextBoxFor(x => x.Assign.mphone2, new { @maxlength = "4" })</li>
|
||
<li>-</li>
|
||
<li>@Html.TextBoxFor(x => x.Assign.mphone3, new { @maxlength = "4" })</li>
|
||
</ul>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th class="onreq offreq">계산서받을 이메일</th>
|
||
<td>
|
||
<ul class="clsMail">
|
||
<li>@Html.TextBoxFor(x => x.Assign.taxemail1, new { @maxlength = "100" })</li>
|
||
<li>@</li>
|
||
<li>@Html.TextBoxFor(x => x.Assign.taxemail2, new { @maxlength = "30" })</li>
|
||
@Html.Partial("./Partial/Select",null,new ViewDataDictionary { { "special","email"},{ "name","taxemail3"},{"df",":직접입력" },{"onchange","emailchange()" } })
|
||
</ul>
|
||
</td>
|
||
</tr>
|
||
@*<tr>
|
||
<th>사업자등록증 <span class="red">(선택)</span></th>
|
||
<td>
|
||
@Html.Partial("./Partial/file", Model.FileList, new ViewDataDictionary { { "fgn", "fgnobno" }, { "fgv", Model.Assign.fgnobno ?? 0 }, { "filename", "file1" }, { "filecount", 1 }, { "fileext", "png,jpg,gif,pdf" }, { "datakey", "assign.fgnobno" } })
|
||
</td>
|
||
</tr>*@
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
@*}*@
|
||
<h4 class="clsTitle">개인정보 확인</h4>
|
||
<p class="subDsc">*는 필수 입력사항입니다.</p>
|
||
@Html.HiddenFor(x => x.User.userno)
|
||
<table class="clsTable">
|
||
<tbody>
|
||
<tr>
|
||
<th class="req">이름</th>
|
||
<td><p>@Html.TextBoxFor(x => x.User.username, new { @class = "apylpt", @maxlength = "10", @style = "background-color:#ddd;", @readonly = true })</p></td>
|
||
</tr>
|
||
<tr>
|
||
<th class="req">주민등록번호</th>
|
||
<td>
|
||
<ul class="usrNum">
|
||
<li>@Html.TextBoxFor(x => x.User.userpno1, new { @maxlength = "6", @readonly = "readonly", @style = "background-color:#ddd;" })</li>
|
||
<li>-</li>
|
||
<li>@Html.TextBoxFor(x => x.User.userpno2, new { @maxlength = "7", @readonly = "readonly", @style = "background-color:#ddd;" })</li>
|
||
</ul>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th class="req">휴대전화</th>
|
||
<td>
|
||
<ul class="usrPhn">
|
||
<li>@Html.TextBoxFor(x => x.User.mobile1, new { @maxlength = "3", @readonly = "readonly", @style = "background-color:#ddd;" })</li>
|
||
<li>-</li>
|
||
<li>@Html.TextBoxFor(x => x.User.mobile2, new { @maxlength = "4", @readonly = "readonly", @style = "background-color:#ddd;" })</li>
|
||
<li>-</li>
|
||
<li>@Html.TextBoxFor(x => x.User.mobile3, new { @maxlength = "4", @readonly = "readonly", @style = "background-color:#ddd;" })</li>
|
||
</ul>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th class="req">이메일</th>
|
||
<td>
|
||
<ul class="clsMail">
|
||
<li>@Html.TextBoxFor(x => x.User.email1, new { @maxlength = "100" })</li>
|
||
<li>@</li>
|
||
<li>@Html.TextBoxFor(x => x.User.email2, new { @maxlength = "30" })</li>
|
||
</ul>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th class="req">주소</th>
|
||
<td>
|
||
<ul class="apyAddr postbox">
|
||
<li>
|
||
@Html.TextBoxFor(x => x.User.post, new { @class = "postno", @style = "background-color:#ddd;", @readonly = true })
|
||
</li>
|
||
<li>
|
||
@Html.TextBoxFor(x => x.User.address1, new { @class = "postadr", @style = "background-color:#ddd;", @readonly = true, @placeholder = "주소입력" })
|
||
</li>
|
||
<li>
|
||
@Html.TextBoxFor(x => x.User.address2, new { @class = "postadrsub", @placeholder = "나머지 주소입력", @maxlength = "200" })
|
||
</li>
|
||
<li>
|
||
<a href="#" onclick="getpost2(this);">우편번호검색</a>
|
||
</li>
|
||
</ul>
|
||
</td>
|
||
</tr>
|
||
<tr style="display:none;">
|
||
<th class="req">채용형태</th>
|
||
<td>
|
||
<ul class="bakRadio">
|
||
<li>
|
||
@Html.RadioButtonFor(model => model.User.isassignuser, "1", new { @name = "recruit", @checked = "checked" })정규직
|
||
</li>
|
||
<li>
|
||
@Html.RadioButtonFor(model => model.User.isassignuser, "0", new { @name = "recruit" })비정규직
|
||
</li>
|
||
</ul>
|
||
</td>
|
||
</tr>
|
||
<tr class="uduty">
|
||
<th class="req">직위</th>
|
||
<td>
|
||
@Html.TextBoxFor(x => x.User.uduty, new { @class = "apylpt", @maxlength = "20" })
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th class="req">학력</th>
|
||
<td>
|
||
<ul class="bakRadio">
|
||
<li>
|
||
@Html.RadioButtonFor(model => model.User.slevel, "0", new { @name = "eduGrade", @checked = "checked" })기타
|
||
</li>
|
||
<li>
|
||
@Html.RadioButtonFor(model => model.User.slevel, "1", new { @name = "eduGrade" })고졸
|
||
</li>
|
||
<li>
|
||
@Html.RadioButtonFor(model => model.User.slevel, "2", new { @name = "eduGrade" })학사
|
||
</li>
|
||
<li>
|
||
@Html.RadioButtonFor(model => model.User.slevel, "3", new { @name = "eduGrade" })석사
|
||
</li>
|
||
<li>
|
||
@Html.RadioButtonFor(model => model.User.slevel, "4", new { @name = "eduGrade" })박사
|
||
</li>
|
||
</ul>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
|
||
<ul class="clsBtn society">
|
||
@if (Model.CM.applicableCM == "정상접수")
|
||
{
|
||
<li><a href="#" onclick="javascript:applyEdu();">수강신청</a></li>
|
||
}
|
||
else
|
||
{
|
||
<li><a href="#" onclick="javascript:applyEdu()">수강대기 신청</a></li>
|
||
}
|
||
<li><a href="#" id="btnback">뒤로가기</a></li>
|
||
</ul>
|
||
|
||
</form>
|
||
@Html.Partial("./Partial/BoxAssign", null, new ViewDataDictionary { { "bindmethod", "bindassign" } })
|
||
@section styles{
|
||
<style type="text/css">
|
||
.btnassign {
|
||
display: inline-block;
|
||
height: 40px;
|
||
line-height: 40px;
|
||
text-align: center;
|
||
background: #878787;
|
||
color: #fff !important;
|
||
width: 120px;
|
||
vertical-align: top;
|
||
margin-left: 7px;
|
||
}
|
||
</style>
|
||
}
|
||
@section scriptsHeader{
|
||
@Html.Partial("./Partial/ScriptPost")
|
||
@Html.Partial("./Partial/filescript")
|
||
}
|
||
<script type="text/javascript">
|
||
|
||
function checkSpacebar() {
|
||
var kcode = event.keyCode;
|
||
if (kcode == 32) event.returnValue = false
|
||
}
|
||
function insuranceguide() {
|
||
|
||
msg("<span style='font-size:17pt;'>고용보험관리번호</span></br></br><span style='text-align: left; margin:auto; display: inherit;'>- 회사 마다 사업자등록번호 처럼 부여되어 있는 번호 이며 11자리 숫자로 보통 사업자등록번호 뒤에 0이나 6이 붙는 경우가 많습니다.(다른 형식인 경우도 있음)</span></br><span style='text-align: left; margin:auto; display: inherit;'>- 교육원에서 환급금 신청 목적으로 노동부 전산망에 교육생 등록을 할 때 필요한 번호 입니다. 따라서 <span style='color:red'>본인이 소속된 회사의 고용보험관리번호를 기재하시면 됩니다.</span></br></br><spanstyle='text-align: left; margin:auto; display: inherit;'> - 고용보험관리번호는 일반적으로 회사 내 고용보험 담당자가 알고 있습니다.</span>");
|
||
}
|
||
var model = {};
|
||
model.isloaded = false;
|
||
model.islogin = @(ViewBag.SSUserNo > 0 ? "true" :"false");
|
||
model.cm = @Html.Raw(Json.Encode(new List<NP.Model.CM>() { Model.CM }.Select(s => new { s.infee, s.accommofee, s.applicableCM, s.cshape, s.cmno }).First()));
|
||
model.assign = @Html.Raw(Json.Encode(new List<NP.Model.Assign>() { Model.Assign }.Select(s => new { s.asno, s.asname }).First()));;
|
||
model.pplog = @Html.Raw(Json.Encode(new List<NP.Model.PPLog>() { ( Model.PPLog != null ? Model.PPLog : new NP.Model.PPLog {}) }.Select(s => new { s.isrebate, s.isaccommodation, s.cmisno }).First()));;
|
||
//model.selMonth = @(Model.selMonth != null ? Model.selMonth.ToString() : "null");
|
||
model.iscompany = @(Model.isCompany != null ? Model.isCompany.ToString() : "null");
|
||
|
||
$(document).ready(function () {
|
||
$(".div-companyInfo").find(".clsTable").find("tr th").removeClass("req");
|
||
if ($("input:radio[name='isrebate']").val() == "1") {
|
||
$(".div-companyInfo").find(".clsTable").find("tr th.offreq").addClass("req");
|
||
} else {
|
||
$(".div-companyInfo").find(".clsTable").find("tr th.onreq").addClass("req");
|
||
}
|
||
|
||
$("#selMonth").change(function () {
|
||
setScd();
|
||
});
|
||
|
||
|
||
|
||
// 환급여부 체크하면 소속선택(div-isCompany)hide 환급금수령계좌(div-rbankInfo) show 회사정보확인(div-companyInfo) show
|
||
$("input:radio[name='isrebate']").on("click",function () {
|
||
$(".div-companyInfo").find(".clsTable").find("tr th").removeClass("req");
|
||
if ($(this).val() == "1") {
|
||
$(".div-isCompany").hide();
|
||
$(".div-rbankInfo").show();
|
||
$("input:radio[name='isCompany'][value='1']").click();
|
||
$(".uduty").show();
|
||
$(".div-companyInfo").find(".clsTable").find("tr th.offreq").addClass("req");
|
||
}// 비환급 체크하면 소속선택 show 환급금수령계좌 hide 보여진 소속선택에서 개인(val == 0) 체크하면 업체정보 hide
|
||
else {
|
||
$(".div-isCompany").show();
|
||
$(".div-rbankInfo").hide();
|
||
if ($("input:radio[name='isCompany']:checked").val() == "0") {
|
||
$(".div-companyInfo").hide();
|
||
}
|
||
$(".div-companyInfo").find(".clsTable").find("tr th.onreq").addClass("req");
|
||
$(".uduty").hide();
|
||
}
|
||
});
|
||
|
||
$("input:radio[name='isaccommodation']").on("click",function () {
|
||
var total;
|
||
if ($(this).val() == "1") {
|
||
total = model.cm.infee + model.cm.accommofee;
|
||
}
|
||
else {
|
||
total = model.cm.infee;
|
||
}
|
||
$("#spninfeecost").html(bindComma(total));
|
||
});
|
||
|
||
$("input:radio[name='isCompany']").on("click", function () {
|
||
if ($(this).val() == "0") {
|
||
$(".div-companyInfo").hide();
|
||
} else {
|
||
$(".div-companyInfo").show();
|
||
}
|
||
});
|
||
|
||
$("#btnback").on("click", function () {
|
||
$("#historyForm").attr("action", "/Course/SmartSearch");
|
||
$("#historyForm").submit();
|
||
});
|
||
|
||
$("#btnassign").on("click", function () {
|
||
boxassignview(bindassign);
|
||
});
|
||
|
||
initControl();
|
||
model.isloaded = true;
|
||
});
|
||
function initControl() {
|
||
$("#spninfee").html(bindComma(model.cm.infee));
|
||
$("#spninfeecost").html(bindComma(model.cm.infee));
|
||
$("#spnaccommofee").html(bindComma(model.cm.accommofee));
|
||
|
||
setTimeout(function () {
|
||
//if (model.cm.cshape == 2) {
|
||
// setScd();
|
||
//}
|
||
setScd();
|
||
}, 300);
|
||
|
||
if (model.cm.cshape == 0) {
|
||
$(".div-isCompany").show();
|
||
$(".uduty").hide();
|
||
} else if (model.cm.cshape == 1) {
|
||
$(".div-isCompany").hide();
|
||
$(".uduty").show();;
|
||
} else if (model.cm.cshape == 2) {
|
||
$(".div-isCompany").show();
|
||
$(".uduty").hide();
|
||
}
|
||
|
||
if (model.assign.asno == 0) {
|
||
$("#btnassign").show();
|
||
} else {
|
||
$("#btnassign").hide();
|
||
}
|
||
|
||
if ($("input:radio[name='isrebate']:checked").val() == "1") {
|
||
$(".div-companyInfo").show();
|
||
} else {
|
||
if ($("input:radio[name='isCompany']:checked").val() == "1") {
|
||
$(".div-companyInfo").show();
|
||
} else {
|
||
$(".div-companyInfo").hide();
|
||
}
|
||
}
|
||
|
||
if (model.pplog.isaccommodation != null) {
|
||
$("input:radio[name='isaccommodation'][value='" + model.pplog.isaccommodation + "']").click();
|
||
}
|
||
|
||
if (model.pplog.isrebate != null) {
|
||
$("input:radio[name='isrebate'][value='" + model.pplog.isrebate + "']").click();
|
||
}
|
||
|
||
//if (model.selMonth != null) {
|
||
// $("#selMonth").val(model.selMonth).trigger('change');
|
||
//}
|
||
|
||
if(model.iscompany != null) {
|
||
$("input:radio[name='isCompany'][value='" + model.iscompany + "']").click();
|
||
}
|
||
}
|
||
function bindassign(v) {
|
||
$("#Assign_asno").val(v.split(':')[0]);
|
||
$("#Assign_asname").val(v.split(':')[1]);
|
||
|
||
capp("/fcommon/getassign", { asno: $("#Assign_asno").val() }, "cbbindassign");
|
||
}
|
||
function cbbindassign() {
|
||
if (capResult.code == 1000) {
|
||
var mphone = String(capResult.obj.mphone).split("-");
|
||
var mphone1 = mphone.length > 0 ? mphone[0] : "";
|
||
var mphone2 = mphone.length > 1 ? mphone[1] : "";
|
||
var mphone3 = mphone.length > 2 ? mphone[2] : "";
|
||
|
||
var taxemail = String(capResult.obj.taxemail).split("@@");
|
||
var taxemail1 = taxemail.length > 0 ? taxemail[0] : "";
|
||
var taxemail2 = taxemail.length > 1 ? taxemail[1] : "";
|
||
|
||
setv("Assign_brno", capResult.obj.brno);
|
||
setv("Assign_ceoname", capResult.obj.ceoname);
|
||
setv("Assign_post", capResult.obj.post);
|
||
setv("Assign_address1", capResult.obj.address1);
|
||
setv("Assign_address2", capResult.obj.address2);
|
||
setv("Assign_btype", capResult.obj.btype);
|
||
setv("Assign_bkind", capResult.obj.bkind);
|
||
setv("Assign_eino", capResult.obj.eino);
|
||
setv("eino", capResult.obj.eino);
|
||
//setv("Assign_mname", capResult.obj.mname);
|
||
//setv("Assign_mphone1", mphone1);
|
||
//setv("Assign_mphone2", mphone2);
|
||
//setv("Assign_mphone3", mphone3);
|
||
//setv("Assign_taxemail1", taxemail1);
|
||
//setv("Assign_taxemail2", taxemail2);
|
||
}
|
||
}
|
||
function setScd() {
|
||
//capp("/focommon/GetScdForMixEdu", { cmno: model.cm.cmno, month: $("#selMonth").val() }, "renderScd");
|
||
//교육일정에 등록되어 있는 일정 중 선택이 가능한 첫번째 일정 선택으로 달 파라미터 제거
|
||
|
||
capp("/focommon/GetScdForMixEdu", { cmno: model.cm.cmno }, "renderScd");
|
||
}
|
||
function renderScd() {
|
||
var becmino = $("#becmino").val();
|
||
var becmisno = $("#becmisno").val();
|
||
|
||
var ulScd = $("#ulScd");
|
||
ulScd.empty();
|
||
//var seq = 0;
|
||
if (capResult.obj.length < 1) {
|
||
var li = $("<li />");
|
||
li.append("<label> - 선택 가능한 교육종료일이 없습니다.</label>");
|
||
ulScd.append(li);
|
||
}
|
||
|
||
$.each(capResult.obj, function (i, d) {
|
||
var strCheck = (becmisno == d.cmisno ? 'checked' : '') +" disabled";
|
||
var li = $("<li />");
|
||
if (d.isEnd == true)
|
||
{
|
||
li.append("<label><input type='radio' name='rdoScds' value='" + d.cmisno + "' disabled> <span style='color:gray'>" + d.scdInfoSummary + "</span><label style='color: red'> (종료)</label></label>");
|
||
}
|
||
else
|
||
{
|
||
if (d.quota != 0) {
|
||
if (d.remainPeople <= 0) {
|
||
li.append("<label><input type='radio' name='rdoScds' value='" + d.cmisno + "' disabled> <span style='color:gray'>" + d.scdInfoSummary + "</span><label style='color: red'> (마감)</label></label>");
|
||
}
|
||
else {
|
||
if (d.isselected == 1) {
|
||
li.append("<label><input type='radio' name='rdoScds' value='" + d.cmisno + "'" + strCheck + "> " + d.scdInfoSummary + "<label style='color: red;display:none;'> (" + d.remainPeople + "명 남음)</label></label>");
|
||
}
|
||
else {
|
||
li.append("<label><input type='radio' name='rdoScds' value='" + d.cmisno + "'" + strCheck + "> " + d.scdInfoSummary + "<label style='color: red;display:none;'> (" + d.remainPeople + "명 남음)</label></label>");
|
||
}
|
||
//if (seq == 0) {
|
||
// li.append("<label><input type='radio' name='rdoScds' value='" + d.cmisno + "' checked> " + d.scdInfoSummary + "<label style='color: red;display:none;'> (" + d.remainPeople + "명 남음)</label></label>");
|
||
//}
|
||
//else {
|
||
// li.append("<label><input type='radio' name='rdoScds' value='" + d.cmisno + "'> " + d.scdInfoSummary + "<label style='color: red;display:none;'> (" + d.remainPeople + "명 남음)</label></label>");
|
||
//}
|
||
}
|
||
}
|
||
else {
|
||
if (d.isselected == 1) {
|
||
li.append("<label><input type='radio' name='rdoScds' value='" + d.cmisno + "'" + strCheck + "> " + d.scdInfoSummary + "</label>");
|
||
}
|
||
else {
|
||
li.append("<label><input type='radio' name='rdoScds' value='" + d.cmisno + "'" + strCheck + "> " + d.scdInfoSummary + "</label>");
|
||
}
|
||
//if (seq == 0) {
|
||
// li.append("<label><input type='radio' name='rdoScds' value='" + d.cmisno + "' checked> " + d.scdInfoSummary + "</label>");
|
||
//}
|
||
//else {
|
||
// li.append("<label><input type='radio' name='rdoScds' value='" + d.cmisno + "'> " + d.scdInfoSummary + "</label>");
|
||
//}
|
||
}
|
||
}
|
||
//seq++;
|
||
ulScd.append(li);
|
||
});
|
||
|
||
if (model.pplog.cmisno != null) {
|
||
$("input:radio[name='rdoScds'][value='" + model.pplog.cmisno + "']").click();
|
||
}
|
||
}
|
||
function applyEdu() {
|
||
|
||
var isrebate = $("input:radio[name='isrebate']:checked").val() == "1" ? true : false;
|
||
var isCompany = $("input:radio[name='isCompany']:checked").val() == "1" ? true : false;
|
||
var assign_taxemail = val("Assign_taxemail1") + "@@" + val("Assign_taxemail2");
|
||
var user_mobile = val("User_mobile1").replace(/ /, '').replace(/ /, '') + val("User_mobile2").replace(/ /, '').replace(/ /, '') + val("User_mobile3").replace(/ /, '').replace(/ /, '');
|
||
var user_email = val("User_email1") + "@@" + val("User_email2");
|
||
var isCompanyInfoCheck = false;
|
||
if (isrebate || isCompany) {
|
||
isCompanyInfoCheck = true;
|
||
}
|
||
if (isrebate && getBytes(val("eino")) == 11) {
|
||
setv("Assign_eino", val("eino"));
|
||
}
|
||
$("#cmisno").val($("input:radio[name=rdoScds]:checked").val());
|
||
if ($("#cmisno").val() != $("#becmisno").val()) {
|
||
msg("뒤로가기 후 교육일정을 재선택해주세요.");
|
||
return;
|
||
}
|
||
|
||
$("#applicableCM").val(model.cm.applicableCM);
|
||
/*if (model.cm.cshape == 2 && $("#cmisno").val() == "" ) {*/
|
||
// 20220801
|
||
if ($("#cmisno").val() == "") {
|
||
msg("교육일정을 선택해주세요.");
|
||
return;
|
||
}
|
||
else if (isrebate && check("rbankname", null, "은행명을 등록해주세요.")) { }
|
||
else if (isrebate && check("rbankacc", null, "계좌번호를 등록해주세요.")) { }
|
||
else if (isrebate && check("rbankowner", null, "예금주를 등록해주세요.")) { }
|
||
else if (isrebate && check("eino", null, "고용보험관리번호를 등록해주세요.")) { }
|
||
else if (isrebate && getBytes(val("eino")) != 11) { focus("eino"); msg("11자리의 고용보험관리번호를 등록해주세요."); }
|
||
|
||
else if (isCompanyInfoCheck && check("Assign_asname", null, "회사명을 등록해주세요.")) { }
|
||
else if (isCompanyInfoCheck && check("Assign_brno", null, "사업자등록번호를 등록해주세요.")) { }
|
||
else if (isCompanyInfoCheck && getBytes(val("Assign_brno")) != 10) { focus("Assign_brno"); msg("10자리의 사업자번호를 등록해주세요."); }
|
||
else if (isCompanyInfoCheck && check("Assign_ceoname", null, "대표자성명을 등록해주세요.")) { }
|
||
|
||
//else if (isrebate && (check("Assign_post", null, "우편번호를 등록해주세요.") || check("Assign_address1", null, "주소를 등록해주세요.") || check("Assign_address2", null, "상세주소를 등록해주세요."))) { }
|
||
//else if (isrebate && check("Assign_btype", null, "업태를 등록해주세요.")) { }
|
||
//else if (isrebate && check("Assign_bkind", null, "종목을 등록해주세요.")) { }
|
||
else if (isrebate && (check("Assign_taxemail1", null, "계산서받을 이메일을 등록해주세요.") || check("Assign_taxemail2", null, "계산서받을 이메일을 등록해주세요."))) { }
|
||
else if (isrebate && !isemail(assign_taxemail)) { focus("Assign_taxemail1"); msg("올바른 이메일주소를 입력해주세요."); }
|
||
else if (isCompanyInfoCheck && (check("Assign_post", null, "우편번호를 등록해주세요.") || check("Assign_address1", null, "주소를 등록해주세요.") || check("Assign_address2", null, "상세주소를 등록해주세요."))) { }
|
||
else if (isCompanyInfoCheck && check("Assign_btype", null, "업태를 등록해주세요.")) { }
|
||
else if (isCompanyInfoCheck && check("Assign_bkind", null, "종목을 등록해주세요.")) { }
|
||
else if (isCompanyInfoCheck && (check("Assign_taxemail1", null, "계산서받을 이메일을 등록해주세요.") || check("Assign_taxemail2", null, "계산서받을 이메일을 등록해주세요."))) { }
|
||
else if (isCompanyInfoCheck && !isemail(assign_taxemail)) { focus("Assign_taxemail1"); msg("올바른 이메일주소를 입력해주세요."); }
|
||
|
||
else if (check("User_userpno1", null, "주민등록번호 앞자리를 입력하십시오.") || check("User_userpno2", null, "주민등록번호 뒷자리를 입력하십시오.")) { }
|
||
else if (check("User_mobile1", null, "휴대전화를 등록해주세요.") || check("User_mobile2", null, "휴대전화를 등록해주세요.") || check("User_mobile3", null, "휴대전화를 등록해주세요.")) { }
|
||
else if (!ismobilenumber(user_mobile)) { focus("mobile"); msg("휴대전화를 확인해주세요."); }
|
||
else if (check("User_email1", null, "이메일을 등록해주세요.") || check("User_email2", null, "이메일을 등록해주세요.")) { }
|
||
else if (!isemail(user_email)) { focus("User_email1"); msg("올바른 이메일주소를 입력해주세요."); }
|
||
else if (check("User_post", null, "우편번호를 등록해주세요.") || check("User_address1", null, "주소를 등록해주세요.") || check("User_address2", null, "상세주소를 등록해주세요.")) { }
|
||
else if ($("input:radio[name='isrebate']:checked").val() == "1" && check("User_uduty", null, "직위를 등록해주세요.")) { }
|
||
else {
|
||
if (model.islogin > 0) {
|
||
capfileform('/fcommon/savePPLog', 'applyEduForm', 'saveResult');
|
||
}
|
||
else {
|
||
msg("로그인 후 신청 할 수 있습니다.");
|
||
return;
|
||
}
|
||
}
|
||
}
|
||
function saveResult() {
|
||
if (capResult.code == 1000 && capResult.obj > 0) {
|
||
$("#historyForm > input[name='pplno']").val(capResult.obj);
|
||
//$("#historyForm > input[name='selMonth']").val($("#selMonth").val());
|
||
$("#historyForm > input[name='isCompany']").val($("input:radio[name='isCompany']:checked").val());
|
||
$("#historyForm").attr("action", "/Course/ApplyAgree");
|
||
$("#historyForm").submit();
|
||
} else if (capResult.code == -1) {
|
||
msg("이미 신청된 교육 중 교육종료일이 같은 교육이 있습니다.<br/> 다른 일정으로 신청해 주시기 바랍니다.");
|
||
} else {
|
||
msg("저장을 실패하였습니다.");
|
||
}
|
||
return;
|
||
}
|
||
function emailchange() {
|
||
if ($("#taxemail3").val() != "") {
|
||
$("#Assign_taxemail2").val($("#taxemail3").val());
|
||
}
|
||
}
|
||
</script>
|
||
|