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

View File

@ -50,7 +50,7 @@
<ul> <ul>
@*<li><a href="javascript:schIpt('1', '0', '온라인교육');">온라인교육</a></li>*@ @*<li><a href="javascript:schIpt('1', '0', '온라인교육');">온라인교육</a></li>*@
<li><a href="javascript:schIpt('1', '1', '교육장교육');">교육장교육</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> </ul>
</div> </div>
</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;} .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;} .closepopa{float: right; margin-top: -25px; font-size: 20px; padding: 5px 10px;}
.iframeclosebox{height: 30px; line-height: 30px; font-weight: bold; text-align: right;} .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) { @media (max-width:1000px) {
.popupitem{ .popupitem{
top: 10% !important; left: 10% !important; max-width: 80% !important; max-height: 80% !important} top: 10% !important; left: 10% !important; max-width: 80% !important; max-height: 80% !important}