This commit is contained in:
kdh0120 2021-06-21 06:35:15 +00:00
parent 0a48ee276f
commit 94e0001027
3 changed files with 63 additions and 50 deletions

View File

@ -155,15 +155,15 @@
<table class="clsTable">
<tbody>
<tr>
<th>*은행명</th>
<th class="req">은행명</th>
<td><input type="text" name="rbankname" id="rbankname" class="apyIpt" value="@(Model.PPLog != null ? Model.PPLog.rbankname : string.Empty)" /></td>
</tr>
<tr>
<th>*계좌번호</th>
<th class="req">계좌번호</th>
<td><input type="text" name="rbankacc" id="rbankacc" class="apyIpt" value="@(Model.PPLog != null ? Model.PPLog.rbankacc : string.Empty)" /></td>
</tr>
<tr>
<th>*예금주</th>
<th class="req">예금주</th>
<td><input type="text" name="rbankowner" id="rbankowner" class="apyIpt" value="@(Model.PPLog != null ? Model.PPLog.rbankowner : string.Empty)" /></td>
</tr>
</tbody>
@ -177,26 +177,27 @@
<div class="div-companyInfo">
<h4 class="clsTitle">회사정보 확인</h4>
<p class="subDsc">*는 필수 입력사항입니다.</p>
<p class="subDsc">계산서 발급을 원할 경우 담당자성명, 담당자연락처를 제외한 모든 사항 필수 입력을 해주세요.</p>
@Html.HiddenFor(x => x.Assign.asno)
<table class="clsTable">
<tbody>
<tr>
<th>*회사명</th>
<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>*사업자등록번호</th>
<th class="onreq offreq">사업자등록번호</th>
<td>@Html.TextBoxFor(x => x.Assign.brno, new { @class = "apylpt", @maxlength = "10" })</td>
</tr>
<tr>
<th>*대표자성명</th>
<th class="onreq offreq">대표자성명</th>
<td>@Html.TextBoxFor(x => x.Assign.ceoname, new { @class = "apylpt", @maxlength = "50" })</td>
</tr>
<tr>
<th>*주소</th>
<th class="offreq">주소</th>
<td>
<ul class="apyAddr postbox">
<li>
@ -215,23 +216,23 @@
</td>
</tr>
<tr>
<th>*업태</th>
<th class="offreq">업태</th>
<td>@Html.TextBoxFor(x => x.Assign.btype, new { @class = "apylpt", @maxlength = "50" })</td>
</tr>
<tr>
<th>*종목</th>
<th class="offreq">종목</th>
<td>@Html.TextBoxFor(x => x.Assign.bkind, new { @class = "apylpt", @maxlength = "50" })</td>
</tr>
<tr>
<th>*고용보험관리번호</th>
<th class="offreq">고용보험관리번호</th>
<td>@Html.TextBoxFor(x => x.Assign.eino, new { @class = "apylpt", @maxlength = "30" })</td>
</tr>
<tr>
<th>*담당자성명</th>
<th>담당자성명</th>
<td>@Html.TextBoxFor(x => x.Assign.mname, new { @class = "apylpt", @maxlength = "30" })</td>
</tr>
<tr>
<th>*담당자연락처</th>
<th>담당자연락처</th>
<td>
<ul class="usrPhn">
<li>@Html.TextBoxFor(x => x.Assign.mphone1, new { @maxlength = "3" })</li>
@ -242,7 +243,7 @@
</ul>
</tr>
<tr>
<th>*계산서받을 이메일</th>
<th class="offreq">계산서받을 이메일</th>
<td>
<ul class="clsMail">
<li>@Html.TextBoxFor(x => x.Assign.taxemail1, new { @maxlength = "100" })</li>
@ -267,11 +268,11 @@
<table class="clsTable">
<tbody>
<tr>
<th>*이름</th>
<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>*주민등록번호</th>
<th class="req">주민등록번호</th>
<td>
<ul class="usrNum">
<li>@Html.TextBoxFor(x => x.User.userpno1, new { @maxlength = "6" })</li>
@ -281,7 +282,7 @@
</td>
</tr>
<tr>
<th>*휴대전화</th>
<th class="req">휴대전화</th>
<td>
<ul class="usrPhn">
<li>@Html.TextBoxFor(x => x.User.mobile1, new { @maxlength = "3" })</li>
@ -293,7 +294,7 @@
</td>
</tr>
<tr>
<th>*이메일</th>
<th class="req">이메일</th>
<td>
<ul class="clsMail">
<li>@Html.TextBoxFor(x => x.User.email1, new { @maxlength = "100" })</li>
@ -303,7 +304,7 @@
</td>
</tr>
<tr>
<th>*주소</th>
<th class="req">주소</th>
<td>
<ul class="apyAddr postbox">
<li>
@ -322,7 +323,7 @@
</td>
</tr>
<tr style="display:none;">
<th>*채용형태</th>
<th class="req">채용형태</th>
<td>
<ul class="bakRadio">
<li>
@ -335,13 +336,13 @@
</td>
</tr>
<tr class="uduty">
<th>*직위</th>
<th class="req">직위</th>
<td>
@Html.TextBoxFor(x => x.User.uduty, new { @class = "apylpt", @maxlength = "20" })
</td>
</tr>
<tr>
<th>*학력</th>
<th class="req">학력</th>
<td>
<ul class="bakRadio">
<li>
@ -406,20 +407,30 @@
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");
model.iscompany = @(Model.isCompany != null ? Model.isCompany.ToString() : "null");
model.isonline = "@(Model.CM.cshape)" == "1" ? false : true;
$(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();
});
$("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();
$(".div-companyInfo").show();
$(".uduty").show();
$(".div-companyInfo").find(".clsTable").find("tr th.offreq").addClass("req");
}
else {
$(".div-isCompany").show();
@ -427,7 +438,8 @@
if ($("input:radio[name='isCompany']:checked").val() == "0") {
$(".div-companyInfo").hide();
}
$(".uduty").hide();
$(".div-companyInfo").find(".clsTable").find("tr th.onreq").addClass("req");
$(".uduty").hide();
}
});
@ -443,10 +455,10 @@
});
$("input:radio[name='isCompany']").on("click", function () {
if ($(this).val() == "0") {
$(".div-companyInfo").hide();
if ($(this).val() == "0") {
$(".div-companyInfo").hide();
} else {
$(".div-companyInfo").show();
$(".div-companyInfo").show();
}
});
@ -473,7 +485,7 @@
}
}, 300);
if (model.cm.cshape == 0) {
if (model.cm.cshape == 0) {
$(".div-isCompany").show();
$(".uduty").hide();
} else if (model.cm.cshape == 1) {
@ -485,11 +497,11 @@
}
if (model.assign.asno == 0) {
$("#btnassign").show();
$("#btnassign").show();
} else {
$("#btnassign").hide();
$("#btnassign").hide();
}
if ($("input:radio[name='isrebate']:checked").val() == "1") {
$(".div-companyInfo").show();
} else {
@ -497,7 +509,7 @@
$(".div-companyInfo").show();
} else {
$(".div-companyInfo").hide();
}
}
}
if (model.pplog.isaccommodation != null) {
@ -514,8 +526,8 @@
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]);
@ -599,7 +611,7 @@
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 isCompany = $("input:radio[name='isCompany']:checked").val() == "1" ? true : false;
var assign_mphone = val("Assign_mphone1").replace(/ /, '').replace(/ /, '') + val("Assign_mphone2").replace(/ /, '').replace(/ /, '') + val("Assign_mphone3").replace(/ /, '').replace(/ /, '');
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(/ /, '');
@ -615,20 +627,20 @@
if (isrebate && check("rbankname", null, "은행명을 등록해주세요.")) { }
else if (isrebate && check("rbankacc", null, "계좌번호를 등록해주세요.")) { }
else if (isrebate && check("rbankowner", null, "예금주를 등록해주세요.")) { }
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 (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_eino", null, "고용보험관리번호를 등록해주세요.")) { }
else if (isCompanyInfoCheck && getBytes(val("Assign_eino")) != 11) { focus("Assign_eino"); msg("11자리의 고용보험관리번호를 등록해주세요."); }
else if (isCompanyInfoCheck && check("Assign_mname", null, "담당자성명을 등록해주세요.")) { }
else if (isCompanyInfoCheck && (check("Assign_mphone1", null, "담당자연락처를 등록해주세요.") || check("Assign_mphone2", null, "담당자연락처를 등록해주세요.") || check("Assign_mphone3", null, "담당자연락처를 등록해주세요."))) { }
else if (isCompanyInfoCheck && !ismobilenumber(assign_mphone)) { focus("Assign_mphone1"); msg("담당자연락처를 확인해주세요."); }
else if (isCompanyInfoCheck && (check("Assign_taxemail1", null, "계산서받을 이메일을 등록해주세요.") || check("Assign_taxemail2", null, "계산서받을 이메일을 등록해주세요."))) { }
else if (isCompanyInfoCheck && !isemail(assign_taxemail)) { focus("Assign_taxemail1"); msg("올바른 이메일주소를 입력해주세요."); }
else if (isCompanyInfoCheck && model.isonline && check("Assign_asname", null, "회사명을 등록해주세요.")) { }
else if (isCompanyInfoCheck && model.isonline && check("Assign_brno", null, "사업자등록번호를 등록해주세요.")) { }
else if (isCompanyInfoCheck && model.isonline && getBytes(val("Assign_brno")) != 10) { focus("Assign_brno"); msg("10자리의 사업자번호를 등록해주세요."); }
else if (isCompanyInfoCheck && model.isonline && check("Assign_ceoname", null, "대표자성명을 등록해주세요.")) { }
else if (isCompanyInfoCheck && !model.isonline && (check("Assign_post", null, "우편번호를 등록해주세요.") || check("Assign_address1", null, "주소를 등록해주세요.") || check("Assign_address2", null, "상세주소를 등록해주세요."))) { }
else if (isCompanyInfoCheck && !model.isonline && check("Assign_btype", null, "업태를 등록해주세요.")) { }
else if (isCompanyInfoCheck && !model.isonline && check("Assign_bkind", null, "종목을 등록해주세요.")) { }
else if (isCompanyInfoCheck && !model.isonline && check("Assign_eino", null, "고용보험관리번호를 등록해주세요.")) { }
else if (isCompanyInfoCheck && !model.isonline && getBytes(val("Assign_eino")) != 11) { focus("Assign_eino"); msg("11자리의 고용보험관리번호를 등록해주세요."); }
//else if (isCompanyInfoCheck && check("Assign_mname", null, "담당자성명을 등록해주세요.")) { }
//else if (isCompanyInfoCheck && (check("Assign_mphone1", null, "담당자연락처를 등록해주세요.") || check("Assign_mphone2", null, "담당자연락처를 등록해주세요.") || check("Assign_mphone3", null, "담당자연락처를 등록해주세요."))) { }
//else if (isCompanyInfoCheck && !ismobilenumber(assign_mphone)) { focus("Assign_mphone1"); msg("담당자연락처를 확인해주세요."); }
else if (isCompanyInfoCheck && !model.isonline && (check("Assign_taxemail1", null, "계산서받을 이메일을 등록해주세요.") || check("Assign_taxemail2", null, "계산서받을 이메일을 등록해주세요."))) { }
else if (isCompanyInfoCheck && !model.isonline && !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("휴대전화를 확인해주세요."); }

View File

@ -50,7 +50,7 @@
<ul>
@*<li><a href="javascript:schIpt('1', '0', '온라인교육');">온라인교육</a></li>*@
<li><a href="javascript:schIpt('1', '1', '교육장교육');">교육장교육</a></li>
<li><a href="javascript:schIpt('1', '2', '혼합교육');">온라인교육</a></li>
<li><a href="javascript:schIpt('1', '2', '온라인교육');">온라인교육</a></li>
</ul>
</div>
</div>

View File

@ -5,7 +5,8 @@
.popupitem .inner .poptitlebox span{display: block; margin-right: 50px; overflow: hidden; white-space: nowrap; text-align: left; text-overflow: ellipsis;}
.closepopa{float: right; margin-top: -25px; font-size: 20px; padding: 5px 10px;}
.iframeclosebox{height: 30px; line-height: 30px; font-weight: bold; text-align: right;}
.req:after{color: red;content:'*'}
.req:before{color:#666;content:'*'}
/*.req:after{color: red;content:'*'}*/
@media (max-width:1000px) {
.popupitem{
top: 10% !important; left: 10% !important; max-width: 80% !important; max-height: 80% !important}