465 lines
22 KiB
Plaintext
465 lines
22 KiB
Plaintext
@model NP.Model.VMCourse
|
||
@{
|
||
var isallday = Model.CM.retimeymd == "2099-12-31" ? true : false;
|
||
}
|
||
<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="cmisno" id="cmisno" />
|
||
<input type="hidden" name="isrebate" id="isrebate" />
|
||
<input type="hidden" name="applicableCM" id="applicableCM" />
|
||
<input type="hidden" name="isaccommodation" id="isaccommodation" />
|
||
<h4 class="clsTitle">신청강좌</h4>
|
||
<ul class="smtList mt0">
|
||
<li>
|
||
<ul class="smtlChk" style="padding-left:0px;">
|
||
<li>
|
||
@if (Model.CM.cshape == 0)
|
||
{
|
||
if (!isallday)
|
||
{
|
||
<p><label>@(Model.CM.tseq)기 | <span class='gry'>@(Model.CM.ssrename) (@(Convert.ToInt32(Model.CM.ssretimeToDay) * 24)시간) </span> | @Model.CM.cname | <span class='red'><span id="spninfee"></span>원</span></label></p>
|
||
}
|
||
else
|
||
{
|
||
<p><label>@(Model.CM.tseq)기 | <span class='gry'>신청일로부터 @(Model.CM.studydays)일 (@(Model.CM.studydays * 24)시간) </span> | @Model.CM.cname | <span class='red'><span id="spninfee"></span>원</span></label></p>
|
||
}
|
||
}
|
||
else if (Model.CM.cshape == 1)
|
||
{
|
||
if (!isallday)
|
||
{
|
||
<p><label>@(Model.CM.tseq)기 | <span class='blu'>[@(Model.CM.studyplacename) 교육장] </span><span class='gry'>@Model.CM.ssrename (@(Model.CM.ssretimeToDay)일) </span> | @Model.CM.cname | <span class='red'><span id="spninfee"></span>원</span></label></p>
|
||
}
|
||
else
|
||
{
|
||
<p><label>@(Model.CM.tseq)기 | <span class='blu'>[@(Model.CM.studyplacename) 교육장] </span><span class='gry'>신청일로부터 @(Model.CM.studydays)일 (@(Model.CM.studydays * 24)시간) </span> | @Model.CM.cname | <span class='red'><span id="spninfee"></span>원</span></label></p>
|
||
}
|
||
}
|
||
else if (Model.CM.cshape == 2)
|
||
{
|
||
if (!isallday)
|
||
{
|
||
<p><label>@(Model.CM.tseq)기 | <span class='gry'>@(Model.CM.ssrename) (@(Convert.ToInt32(Model.CM.ssretimeToDay) * 24)시간) </span> | @Model.CM.cname | <span class='red'><span id="spninfee"></span>원 ※ 집체교육 선택 필수</span></label></p>
|
||
}
|
||
else
|
||
{
|
||
<p><label>@(Model.CM.tseq)기 | <span class='gry'>신청일로부터 @(Model.CM.studydays)일 (@(Model.CM.studydays * 24)시간) </span> | @Model.CM.cname | <span class='red'><span id="spninfee"></span>원 ※ 집체교육 선택 필수</span></label></p>
|
||
}
|
||
}
|
||
|
||
@if (Model.CM.applicableCM == "정상접수")
|
||
{
|
||
<span class="smtlChkBtn smtlChk01">정상접수</span>
|
||
}
|
||
else
|
||
{
|
||
<span class="smtlChkBtn smtlChk02">대기접수</span>
|
||
}
|
||
</li>
|
||
</ul>
|
||
<div class="apyCost">
|
||
결제금액 : <span class="red" id="spninfeecost"></span> 원
|
||
</div>
|
||
</li>
|
||
</ul>
|
||
|
||
@if (Model.CM.cshape == 2 && Model.CM.applicableCM == "정상접수")
|
||
{
|
||
<h4 class="clsTitle">교육일정선택</h4>
|
||
<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>
|
||
|
||
|
||
}
|
||
|
||
@if (Model.CM.cshape == 1)
|
||
{
|
||
<h4 class="clsTitle">합숙여부</h4>
|
||
<ul class="bakRadio">
|
||
<li>
|
||
<input type="radio" name="rdoAccommo" id="rdoAccommo1" value="1" /><label for="rdoAccommo1"> 예 (<span id="spnaccommofee"></span>원 추가)</label>
|
||
</li>
|
||
<li>
|
||
<input type="radio" name="rdoAccommo" id="rdoAccommo2" value="2" checked /><label for="rdoAccommo2"> 아니오</label>
|
||
</li>
|
||
</ul>
|
||
<h4 class="clsTitle">환급여부선택</h4>
|
||
<table class="clsTable">
|
||
<tbody>
|
||
<tr>
|
||
<th>환급여부</th>
|
||
<td>
|
||
<ul class="bakRadio">
|
||
<li><input type="radio" name="isrebate" id="isrebate01" value="1" checked><label for="isrebate01">환급</label></li>
|
||
<li><input type="radio" name="isrebate" id="isrebate02" value="0"><label for="isrebate02">비환급</label></li>
|
||
</ul>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
|
||
<p class="subDsc mt10">※ 고용보험에 가입되어 있는 재직자의 경우에만 교육비 중 기준된 일정금액 환급이 가능 하며 고용보험 미 가입자는 환급이 불가 합니다.</p>
|
||
|
||
<h4 class="clsTitle rbankInfo">환급금 수령계좌 등록</h4>
|
||
<p class="subDsc rbankInfo">*는 필수 입력사항입니다.</p>
|
||
<table class="clsTable rbankInfo">
|
||
<tbody>
|
||
<tr>
|
||
<th>*은행명</th>
|
||
<td><input type="text" name="rbankname" id="rbankname" class="apyIpt" /></td>
|
||
</tr>
|
||
<tr>
|
||
<th>*계좌번호</th>
|
||
<td><input type="text" name="rbankacc" id="rbankacc" class="apyIpt" /></td>
|
||
</tr>
|
||
<tr>
|
||
<th>*예금주</th>
|
||
<td><input type="text" name="rbankowner" id="rbankowner" class="apyIpt" /></td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="subDsc mt10 rbankInfo">※ 환급금액 지급받는 계좌이므로 반드시 소속된 사업장의 법인계좌정보만 입력하여 주시기 바랍니다. (개인계좌 또는 사업주 개인의 계좌로는 환급이 불가합니다)</p>
|
||
|
||
}
|
||
<div id="postlayer" class="daumpost"><a href="#" class="btn btn-xxs btn-select closedaumpost" onclick="closeDaumPostcode();">close</a></div>
|
||
<h4 class="clsTitle companyInfo">회사정보 확인</h4>
|
||
<p class="subDsc companyInfo">*는 필수 입력사항입니다.</p>
|
||
@Html.HiddenFor(x => x.Assign.asno)
|
||
<table class="clsTable companyInfo">
|
||
<tbody>
|
||
<tr>
|
||
<th>*회사명</th>
|
||
<td>@Html.TextBoxFor(x => x.Assign.asname, new { @class = "apylpt", @maxlength = "100" })</td>
|
||
</tr>
|
||
<tr>
|
||
<th>*사업자등록번호</th>
|
||
<td>@Html.TextBoxFor(x => x.Assign.brno, new { @class = "apylpt", @maxlength = "10" })</td>
|
||
</tr>
|
||
<tr>
|
||
<th>*대표자성명</th>
|
||
<td>@Html.TextBoxFor(x => x.Assign.ceoname, new { @class = "apylpt", @maxlength = "50" })</td>
|
||
</tr>
|
||
<tr>
|
||
<th>*주소</th>
|
||
<td>
|
||
<ul class="apyAddr postbox">
|
||
<li>
|
||
@Html.TextBoxFor(x => x.Assign.post, new { @class = "postno", @style = "background-color:#ddd;", @readonly = true })
|
||
</li>
|
||
<li>
|
||
@Html.TextBoxFor(x => x.Assign.address1, new { @class = "postadr", @style = "background-color:#ddd;", @readonly = true, @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>*업태</th>
|
||
<td>@Html.TextBoxFor(x => x.Assign.btype, new { @class = "apylpt", @maxlength = "50" })</td>
|
||
</tr>
|
||
<tr>
|
||
<th>*종목</th>
|
||
<td>@Html.TextBoxFor(x => x.Assign.bkind, new { @class = "apylpt", @maxlength = "50" })</td>
|
||
</tr>
|
||
<tr>
|
||
<th>*고용보험관리번호</th>
|
||
<td>@Html.TextBoxFor(x => x.Assign.eino, new { @class = "apylpt", @maxlength = "30" })</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>
|
||
</tr>
|
||
<tr>
|
||
<th>*계산서받을 이메일</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>
|
||
</ul>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>사업자등록증</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>
|
||
|
||
<h4 class="clsTitle">개인정보 확인</h4>
|
||
<p class="subDsc">*는 필수 입력사항입니다.</p>
|
||
@Html.HiddenFor(x => x.User.userno)
|
||
<table class="clsTable">
|
||
<tbody>
|
||
<tr>
|
||
<th>*이름</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>*주민등록번호</th>
|
||
<td>
|
||
<ul class="usrNum">
|
||
<li>@Html.TextBoxFor(x => x.User.userpno1, new { @maxlength = "6" })</li>
|
||
<li>-</li>
|
||
<li>@Html.TextBoxFor(x => x.User.userpno2, new { @maxlength = "7" })</li>
|
||
</ul>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>*휴대전화</th>
|
||
<td>
|
||
<ul class="usrPhn">
|
||
<li>@Html.TextBoxFor(x => x.User.mobile1, new { @maxlength = "3" })</li>
|
||
<li>-</li>
|
||
<li>@Html.TextBoxFor(x => x.User.mobile2, new { @maxlength = "4" })</li>
|
||
<li>-</li>
|
||
<li>@Html.TextBoxFor(x => x.User.mobile3, new { @maxlength = "4" })</li>
|
||
</ul>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>*이메일</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>*주소</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>
|
||
<th>*채용형태</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>
|
||
<th>*직위</th>
|
||
<td>
|
||
@Html.TextBoxFor(x => x.User.uduty, new { @class = "apylpt", @maxlength = "20" })
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>*학력</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 solo">
|
||
@if (Model.CM.applicableCM == "정상접수")
|
||
{
|
||
<li><a href="#" onclick="javascript: applyEdu(1);">수강신청</a></li>
|
||
}
|
||
else
|
||
{
|
||
<li><a href="#" onclick="javascript:applyEdu(6)">수강대기 신청</a></li>
|
||
}
|
||
</ul>
|
||
|
||
</form>
|
||
@section scriptsHeader{
|
||
@Html.Partial("./Partial/ScriptPost")
|
||
@Html.Partial("./Partial/filescript")
|
||
}
|
||
<script type="text/javascript">
|
||
$(document).ready(function () {
|
||
initControl();
|
||
$("#selMonth").change(function () {
|
||
setScd();
|
||
});
|
||
|
||
$("input[name='isrebate']").change(function () {
|
||
if ($("input:radio[name='isrebate']:checked").val() == "1") {
|
||
$(".rbankInfo").show();
|
||
$(".companyInfo").show();
|
||
}
|
||
else {
|
||
$(".rbankInfo").hide();
|
||
$(".companyInfo").hide();
|
||
}
|
||
});
|
||
|
||
$("input[name='rdoAccommo']").change(function () {
|
||
var total;
|
||
if ($("input[name='rdoAccommo']:checked").val() == "1") {
|
||
total = @Model.CM.infee + @Model.CM.accommofee;
|
||
}
|
||
else {
|
||
total = @Model.CM.infee;
|
||
}
|
||
$("#spninfeecost").html(bindComma(total));
|
||
|
||
});
|
||
|
||
|
||
|
||
});
|
||
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();
|
||
}
|
||
}, 300);
|
||
}
|
||
|
||
function setScd() {
|
||
capp("/focommon/GetScdForMixEdu", { cmno: @Model.cmno, month: $("#selMonth").val() }, "renderScd");
|
||
}
|
||
function renderScd() {
|
||
var ulScd = $("#ulScd");
|
||
ulScd.empty();
|
||
var seq = 0;
|
||
$.each(capResult.obj, function (i, d) {
|
||
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 (seq == 0) {
|
||
li.append("<label><input type='radio' name='rdoScds' value='" + d.cmisno + "' checked> " + d.scdInfoSummary + "<label style='color: red'> (" + d.remainPeople + "명 남음)</label></label>");
|
||
}
|
||
else {
|
||
li.append("<label><input type='radio' name='rdoScds' value='" + d.cmisno + "'> " + d.scdInfoSummary + "<label style='color: red'> (" + d.remainPeople + "명 남음)</label></label>");
|
||
}
|
||
}
|
||
}
|
||
else {
|
||
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);
|
||
});
|
||
}
|
||
|
||
function applyEdu() {
|
||
if ($("input:radio[name='isrebate']:checked").val() == "1" && check("rbankname", null, "은행명을 등록해주세요.")) { }
|
||
else if ($("input:radio[name='isrebate']:checked").val() == "1" && check("rbankacc", null, "계좌번호를 등록해주세요.")) { }
|
||
else if ($("input:radio[name='isrebate']:checked").val() == "1" && check("rbankowner", null, "예금주를 등록해주세요.")) { }
|
||
else if ($("#User_userpno1").val() == "" || $("#User_userpno1").val() == null) {
|
||
focus("User_userpno1");
|
||
msg("주민등록번호 앞자리를 입력하십시오.");
|
||
}
|
||
else if ($("#User_userpno2").val() == "" || $("#User_userpno2").val() == null) {
|
||
focus("User_userpno2");
|
||
msg("주민등록번호 뒷자리를 입력하십시오.");
|
||
}
|
||
else {
|
||
if (@ViewBag.SSUserNo > 0) {
|
||
$("#cmisno").val($("input:radio[name=rdoScds]:checked").val());
|
||
$("#isrebate").val($("input:radio[name=isrebate]:checked").val());
|
||
$("#isaccommodation").val($("input:radio[name=rdoAccommo]:checked").val());
|
||
|
||
$("#applicableCM").val("@Model.CM.applicableCM");
|
||
|
||
capfileform('/fcommon/savePPLog', 'applyEduForm', 'saveResult');
|
||
}
|
||
else {
|
||
msg("로그인 후 신청 할 수 있습니다.");
|
||
return;
|
||
}
|
||
}
|
||
}
|
||
function saveResult() {
|
||
if (capResult.code == 1000 && capResult.obj > 0) {
|
||
//alert("저장되었습니다. pplno : " + capResult.obj);
|
||
location.href = "/Course/ApplyPay?pplno=" + capResult.obj;
|
||
} else {
|
||
msg("저장을 실패하였습니다.");
|
||
}
|
||
return;
|
||
}
|
||
</script>
|