- 환급금, 회사정보, 개인정보 *는 필수 입력사항입니다. 문구 추가

- 환급금 신청시 은행명, 계좌번호, 예금주 입력폼체크
- 환급금 비신청시 은행명, 계좌번호, 예금주 null 처리
This commit is contained in:
lch 2021-05-03 02:11:03 +00:00
parent 87fa8a1d04
commit fd3e00ee41
2 changed files with 50 additions and 43 deletions

View File

@ -275,14 +275,19 @@ namespace NP.Base.Controllers
} }
if (!string.IsNullOrEmpty(Request["cmisno"])) if (!string.IsNullOrEmpty(Request["cmisno"]))
ppllog.cmisno = Convert.ToInt64(Request["cmisno"]); ppllog.cmisno = Convert.ToInt64(Request["cmisno"]);
if (!string.IsNullOrEmpty(Request["isrebate"])) if (!string.IsNullOrEmpty(Request["isrebate"]))
ppllog.isrebate = Convert.ToInt32(Request["isrebate"]); ppllog.isrebate = Convert.ToInt32(Request["isrebate"]);
if (!string.IsNullOrEmpty(Request["rbankname"]))
ppllog.rbankname = Request["rbankname"].ToString(); if (!string.IsNullOrEmpty(Request["isrebate"]) && Convert.ToInt32(Request["isrebate"]) == 1)
if (!string.IsNullOrEmpty(Request["rbankacc"])) {
ppllog.rbankacc = Request["rbankacc"].ToString(); if (!string.IsNullOrEmpty(Request["rbankname"]))
if (!string.IsNullOrEmpty(Request["rbankowner"])) ppllog.rbankname = Request["rbankname"].ToString();
ppllog.rbankowner = Request["rbankowner"].ToString(); if (!string.IsNullOrEmpty(Request["rbankacc"]))
ppllog.rbankacc = Request["rbankacc"].ToString();
if (!string.IsNullOrEmpty(Request["rbankowner"]))
ppllog.rbankowner = Request["rbankowner"].ToString();
}
if (!string.IsNullOrEmpty(Request["isaccommodation"])) if (!string.IsNullOrEmpty(Request["isaccommodation"]))
ppllog.isaccommodation = Convert.ToInt32(Request["isaccommodation"].ToString()); ppllog.isaccommodation = Convert.ToInt32(Request["isaccommodation"].ToString());

View File

@ -87,19 +87,15 @@
@if (Model.CM.cshape == 1) @if (Model.CM.cshape == 1)
{ {
<h4 class="clsTitle">합숙여부</h4> <h4 class="clsTitle">합숙여부</h4>
<ul class="bakRadio"> <ul class="bakRadio">
<li> <li>
<input type="radio" name="rdoAccommo" id="rdoAccommo1" value="1" /><label for="rdoAccommo1"> 예 (<span id="spnaccommofee"></span>원 추가)</label> <input type="radio" name="rdoAccommo" id="rdoAccommo1" value="1" /><label for="rdoAccommo1"> 예 (<span id="spnaccommofee"></span>원 추가)</label>
</li> </li>
<li> <li>
<input type="radio" name="rdoAccommo" id="rdoAccommo2" value="2" checked /><label for="rdoAccommo2"> 아니오</label> <input type="radio" name="rdoAccommo" id="rdoAccommo2" value="2" checked /><label for="rdoAccommo2"> 아니오</label>
</li> </li>
</ul> </ul>
}
@if (Model.CM.cshape == 1)
{
<h4 class="clsTitle">교육비 지원</h4> <h4 class="clsTitle">교육비 지원</h4>
<table class="clsTable"> <table class="clsTable">
<tbody> <tbody>
@ -118,19 +114,20 @@
<p class="subDsc mt10">※ 고용보험에 가입되어 있는 재직자의 경우에만 교육비 중 기준된 일정금액 환급이 가능 하며 대표이사, 대표이사의 직계가족 또는 고용보험 미 가입자는 환급이 불가 합니다.</p> <p class="subDsc mt10">※ 고용보험에 가입되어 있는 재직자의 경우에만 교육비 중 기준된 일정금액 환급이 가능 하며 대표이사, 대표이사의 직계가족 또는 고용보험 미 가입자는 환급이 불가 합니다.</p>
<div id="divRefundAccount" style="display:none"> <div id="divRefundAccount" style="display:none">
<h4 class="clsTitle">환급 지급계좌 등록</h4> <h4 class="clsTitle">환급금 수령계좌 등록</h4>
<p class="subDsc">*는 필수 입력사항입니다.</p>
<table class="clsTable"> <table class="clsTable">
<tbody> <tbody>
<tr> <tr>
<th>은행명</th> <th>*은행명</th>
<td><input type="text" name="rbankname" id="rbankname" class="apyIpt" /></td> <td><input type="text" name="rbankname" id="rbankname" class="apyIpt" /></td>
</tr> </tr>
<tr> <tr>
<th>계좌번호</th> <th>*계좌번호</th>
<td><input type="text" name="rbankacc" id="rbankacc" class="apyIpt" /></td> <td><input type="text" name="rbankacc" id="rbankacc" class="apyIpt" /></td>
</tr> </tr>
<tr> <tr>
<th>예금주</th> <th>*예금주</th>
<td><input type="text" name="rbankowner" id="rbankowner" class="apyIpt" /></td> <td><input type="text" name="rbankowner" id="rbankowner" class="apyIpt" /></td>
</tr> </tr>
</tbody> </tbody>
@ -141,23 +138,24 @@
} }
<div id="postlayer" class="daumpost"><a href="#" class="btn btn-xxs btn-select closedaumpost" onclick="closeDaumPostcode();">close</a></div> <div id="postlayer" class="daumpost"><a href="#" class="btn btn-xxs btn-select closedaumpost" onclick="closeDaumPostcode();">close</a></div>
<h4 class="clsTitle">회사정보 확인</h4> <h4 class="clsTitle">회사정보 확인</h4>
<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>*회사명</th>
<td>@Html.TextBoxFor(x => x.Assign.asname, new { @class = "apylpt", @maxlength = "100" })</td> <td>@Html.TextBoxFor(x => x.Assign.asname, new { @class = "apylpt", @maxlength = "100" })</td>
</tr> </tr>
<tr> <tr>
<th>사업자등록번호</th> <th>*사업자등록번호</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>*대표자성명</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>*주소</th>
<td> <td>
<ul class="apyAddr postbox"> <ul class="apyAddr postbox">
<li> <li>
@ -176,23 +174,23 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<th>업태</th> <th>*업태</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>*종목</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>*고용보험관리번호</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>
@ -203,7 +201,7 @@
</ul> </ul>
</tr> </tr>
<tr> <tr>
<th>계산서받을 이메일</th> <th>*계산서받을 이메일</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>
@ -222,15 +220,16 @@
</table> </table>
<h4 class="clsTitle">개인정보 확인</h4> <h4 class="clsTitle">개인정보 확인</h4>
<p class="subDsc">*는 필수 입력사항입니다.</p>
@Html.HiddenFor(x => x.User.userno) @Html.HiddenFor(x => x.User.userno)
<table class="clsTable"> <table class="clsTable">
<tbody> <tbody>
<tr> <tr>
<th>이름</th> <th>*이름</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>*주민등록번호</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>
@ -240,7 +239,7 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<th>휴대전화</th> <th>*휴대전화</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>
@ -252,7 +251,7 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<th>이메일</th> <th>*이메일</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>
@ -262,7 +261,7 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<th>주소</th> <th>*주소</th>
<td> <td>
<ul class="apyAddr postbox"> <ul class="apyAddr postbox">
<li> <li>
@ -281,7 +280,7 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<th>채용형태</th> <th>*채용형태</th>
<td> <td>
<ul class="bakRadio"> <ul class="bakRadio">
<li> <li>
@ -294,13 +293,13 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<th>직위</th> <th>*직위</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>*학력</th>
<td> <td>
<ul class="bakRadio"> <ul class="bakRadio">
<li> <li>
@ -430,7 +429,10 @@
} }
function applyEdu() { function applyEdu() {
if ($("#User_userpno1").val() == "" || $("#User_userpno1").val() == null) { if ($("input:radio[name='rdoRefund']:checked").val() == "1" && check("rbankname", null, "은행명을 등록해주세요.")) { }
else if ($("input:radio[name='rdoRefund']:checked").val() == "1" && check("rbankacc", null, "계좌번호를 등록해주세요.")) { }
else if ($("input:radio[name='rdoRefund']:checked").val() == "1" && check("rbankowner", null, "예금주를 등록해주세요.")) { }
else if ($("#User_userpno1").val() == "" || $("#User_userpno1").val() == null) {
focus("User_userpno1"); focus("User_userpno1");
msg("주민등록번호 앞자리를 입력하십시오."); msg("주민등록번호 앞자리를 입력하십시오.");
} }