parent
74525284a0
commit
d3b30a0d33
|
|
@ -260,8 +260,8 @@ namespace NP.Base.Controllers
|
|||
ppllog.asno = vm.Assign.asno;
|
||||
ppllog.isready = Request["applicableCM"].ToString() == "정상접수" ? 0 : 1;
|
||||
ppllog.cgcode = vm.stringval;
|
||||
if (!string.IsNullOrEmpty(vm.stringval2))
|
||||
ppllog.cshape = Convert.ToInt32(vm.stringval2);
|
||||
ppllog.cshape = !string.IsNullOrEmpty(vm.stringval2) ? Convert.ToInt32(vm.stringval2) : (int?)null;
|
||||
ppllog.asname = string.Empty;
|
||||
if (vm.stringval == "0")
|
||||
{
|
||||
ppllog.typeman = !string.IsNullOrEmpty(vm.stringval3) ? Convert.ToInt32(vm.stringval3) : (int?)null;
|
||||
|
|
@ -273,43 +273,75 @@ namespace NP.Base.Controllers
|
|||
{
|
||||
ppllog.cgno = !string.IsNullOrEmpty(vm.stringval3) ? Convert.ToInt32(vm.stringval3) : (int?)null;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(Request["cmisno"]))
|
||||
ppllog.cmisno = Convert.ToInt64(Request["cmisno"]);
|
||||
|
||||
if (!string.IsNullOrEmpty(Request["isrebate"]))
|
||||
ppllog.isrebate = Convert.ToInt32(Request["isrebate"]);
|
||||
|
||||
if (!string.IsNullOrEmpty(Request["isrebate"]) && Convert.ToInt32(Request["isrebate"]) == 1)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(Request["rbankname"]))
|
||||
ppllog.rbankname = Request["rbankname"].ToString();
|
||||
if (!string.IsNullOrEmpty(Request["rbankacc"]))
|
||||
ppllog.rbankacc = Request["rbankacc"].ToString();
|
||||
if (!string.IsNullOrEmpty(Request["rbankowner"]))
|
||||
ppllog.rbankowner = Request["rbankowner"].ToString();
|
||||
|
||||
ppllog.cmisno = !string.IsNullOrEmpty(Request["cmisno"]) ? Convert.ToInt64(Request["cmisno"]) : (long?)null ;
|
||||
ppllog.isrebate = !string.IsNullOrEmpty(Request["isrebate"]) ? Convert.ToInt32(Request["isrebate"]) : (int?)null;
|
||||
|
||||
if (ppllog.isrebate == 1)
|
||||
{
|
||||
ppllog.rbankname = !string.IsNullOrEmpty(Request["rbankname"]) ? Request["rbankname"].ToString() : null;
|
||||
ppllog.rbankacc = !string.IsNullOrEmpty(Request["rbankacc"]) ? Request["rbankacc"].ToString() : null;
|
||||
ppllog.rbankowner = !string.IsNullOrEmpty(Request["rbankowner"]) ? Request["rbankowner"].ToString() : null;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(Request["isaccommodation"]))
|
||||
ppllog.isaccommodation = Convert.ToInt32(Request["isaccommodation"].ToString());
|
||||
ppllog.isaccommodation = !string.IsNullOrEmpty(Request["isaccommodation"]) ? Convert.ToInt32(Request["isaccommodation"].ToString()) : (int?)null;
|
||||
|
||||
ppllog.asname = vm.Assign.asname;
|
||||
ppllog.brno = vm.Assign.brno.IndexOf("-") > 0 ? vm.Assign.brno.Replace("-", "") : vm.Assign.brno;
|
||||
ppllog.ceoname = vm.Assign.ceoname;
|
||||
ppllog.post = vm.Assign.post;
|
||||
ppllog.address1 = vm.Assign.address1;
|
||||
ppllog.address2 = vm.Assign.address2;
|
||||
ppllog.btype = vm.Assign.btype;
|
||||
ppllog.bkind = vm.Assign.bkind;
|
||||
|
||||
Int64? fgnobno = (Int64?)null;
|
||||
if (Request.Files.GetMultiple("file1").Where(w => !string.IsNullOrEmpty(w.FileName)).Count() > 0)
|
||||
{
|
||||
fgnobno = SetFile(Request.Files.GetMultiple("file1").Where(w => !string.IsNullOrEmpty(w.FileName)).ToList(), fgnobno ?? 0, "assign", "fgnobno");
|
||||
//강의유형 온라인 or 혼합(온+오프) or (교육장 and 비환급):
|
||||
if (ppllog.cshape == 0 || (ppllog.cshape == 1 && ppllog.isrebate == 0) || ppllog.cshape == 2) {
|
||||
var isCompany = !string.IsNullOrEmpty(Request["isCompany"]) ? Convert.ToInt32(Request["isCompany"]) : (int?)null;
|
||||
if (isCompany == 0) //개인
|
||||
{
|
||||
ppllog.asno = null;
|
||||
vm.Assign = null;
|
||||
}
|
||||
else if (isCompany == 1) //업체
|
||||
{
|
||||
if(vm.Assign.asno != vm.asno) //기존 등록된 회사랑 소속업체명에서 선택한 회사가 다르면 소속업체명에서 선택한 회사로 변경
|
||||
{
|
||||
ppllog.asno = vm.asno;
|
||||
vm.Assign = Dao.Get<Assign>("cm.assign.applyedu.byasno", new Hashtable() { { "asno", vm.asno } }).FirstOrDefault();
|
||||
if (vm.Assign != null)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(vm.Assign.MphoneFormat) && vm.Assign.MphoneFormat.IndexOf("-") >= 0)
|
||||
{
|
||||
string[] mphoneArr = vm.Assign.MphoneFormat.Split('-');
|
||||
vm.Assign.mphone1 = mphoneArr.Length > 0 ? mphoneArr[0] : string.Empty;
|
||||
vm.Assign.mphone2 = mphoneArr.Length > 1 ? mphoneArr[1] : string.Empty;
|
||||
vm.Assign.mphone3 = mphoneArr.Length > 2 ? mphoneArr[2] : string.Empty;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(vm.Assign.taxemail) && vm.Assign.taxemail.IndexOf("@") >= 0)
|
||||
{
|
||||
string[] taxemailArr = vm.Assign.taxemail.Split('@');
|
||||
vm.Assign.taxemail1 = taxemailArr.Length > 0 ? taxemailArr[0] : string.Empty;
|
||||
vm.Assign.taxemail2 = taxemailArr.Length > 1 ? taxemailArr[1] : string.Empty;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (vm.Assign != null)
|
||||
{
|
||||
ppllog.asname = vm.Assign.asname;
|
||||
ppllog.brno = vm.Assign.brno.IndexOf("-") > 0 ? vm.Assign.brno.Replace("-", "") : vm.Assign.brno;
|
||||
ppllog.ceoname = vm.Assign.ceoname;
|
||||
ppllog.post = vm.Assign.post;
|
||||
ppllog.address1 = vm.Assign.address1;
|
||||
ppllog.address2 = vm.Assign.address2;
|
||||
ppllog.btype = vm.Assign.btype;
|
||||
ppllog.bkind = vm.Assign.bkind;
|
||||
|
||||
Int64? fgnobno = (Int64?)null;
|
||||
if (Request.Files.GetMultiple("file1").Where(w => !string.IsNullOrEmpty(w.FileName)).Count() > 0)
|
||||
{
|
||||
fgnobno = SetFile(Request.Files.GetMultiple("file1").Where(w => !string.IsNullOrEmpty(w.FileName)).ToList(), fgnobno ?? 0, "assign", "fgnobno");
|
||||
}
|
||||
ppllog.fgnobno = fgnobno;
|
||||
|
||||
ppllog.eino = vm.Assign.eino;
|
||||
ppllog.mname = vm.Assign.mname;
|
||||
ppllog.mphone = string.Format("{0}-{1}-{2}", vm.Assign.mphone1, vm.Assign.mphone2, vm.Assign.mphone3);
|
||||
ppllog.taxemail = string.Format("{0}@{1}", vm.Assign.taxemail1, vm.Assign.taxemail2);
|
||||
}
|
||||
ppllog.fgnobno = fgnobno;
|
||||
ppllog.eino = vm.Assign.eino;
|
||||
ppllog.mname = vm.Assign.mname;
|
||||
ppllog.mphone = string.Format("{0}-{1}-{2}", vm.Assign.mphone1, vm.Assign.mphone2, vm.Assign.mphone3);
|
||||
ppllog.taxemail = string.Format("{0}@{1}", vm.Assign.taxemail1, vm.Assign.taxemail2);
|
||||
if (!string.IsNullOrEmpty(vm.User.userpno1) && !string.IsNullOrEmpty(vm.User.userpno2))
|
||||
{
|
||||
ppllog.userpno = string.Format("{0}{1}", vm.User.userpno1, vm.User.userpno2);
|
||||
|
|
@ -322,8 +354,12 @@ namespace NP.Base.Controllers
|
|||
ppllog.isassignuser = vm.User.isassignuser;
|
||||
ppllog.uduty = vm.User.uduty;
|
||||
ppllog.slevel = vm.User.slevel;
|
||||
|
||||
Dao.Save("cm.assign.applyedu.up", ppllog);
|
||||
|
||||
if (ppllog.asno != null)
|
||||
{
|
||||
//ppllog.asno 값이 중간에 변경이 안되었을 때만 호출
|
||||
Dao.Save("cm.assign.applyedu.up", ppllog);
|
||||
}
|
||||
Dao.Save("cm.users.applyedu.up", ppllog);
|
||||
Dao.Insert("cm.pplog.applyedu.in", ppllog);
|
||||
if (ppllog.pplno > 0)
|
||||
|
|
|
|||
|
|
@ -1859,6 +1859,17 @@
|
|||
and a.isdel=0
|
||||
<isNotNull property="userno">and b.userno=#userno#</isNotNull>
|
||||
</select>
|
||||
|
||||
<select id="cm.assign.applyedu.byasno" parameterClass="hashtable" resultClass="assign">
|
||||
select
|
||||
a.asno,a.ascode,a.isjoin,a.joinyear,a.joinprice,a.asname,a.ceoname,a.brno,a.eino,a.grno,a.btype,a.bkind,a.salesamount,a.homeurl,a.mcount,a.aday,a.astype,a.asctg,a.askey,a.post
|
||||
,a.address1,a.address2,a.fgnobno,a.fgnobank,a.joindate,a.exitdate,a.status,a.issite,a.subdomain,a.sitename,a.sitelogo,a.sitefooter,a.siteip,a.ismain,a.mname,a.isdel
|
||||
,CAST(AES_DECRYPT(UNHEX(a.mphone), <include refid="sql.digest"></include>) AS char) mphone
|
||||
,CAST(AES_DECRYPT(UNHEX(a.taxemail), <include refid="sql.digest"></include>) AS char) taxemail
|
||||
from assign a
|
||||
where a.asno=#asno#
|
||||
and a.isdel=0
|
||||
</select>
|
||||
|
||||
<insert id="cm.pplog.applyedu.in" parameterClass="hashtable">
|
||||
SELECT * FROM (SELECT LAST_INSERT_ID(0) col1) a WHERE col1 > 0;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
@model NP.Model.VMCourse
|
||||
@{
|
||||
@{
|
||||
var isallday = Model.CM.retimeymd == "2099-12-31" ? true : false;
|
||||
}
|
||||
<form id="applyEduForm" method="post">
|
||||
|
|
@ -11,9 +11,9 @@
|
|||
<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" />
|
||||
<input type="hidden" name="cshape" id="cshape" value="@Model.CM.cshape" />
|
||||
<h4 class="clsTitle">신청강좌</h4>
|
||||
<ul class="smtList mt0">
|
||||
<li>
|
||||
|
|
@ -103,8 +103,8 @@
|
|||
<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>
|
||||
<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>
|
||||
|
|
@ -112,7 +112,26 @@
|
|||
</table>
|
||||
|
||||
<p class="subDsc mt10">※ 고용보험에 가입되어 있는 재직자의 경우에만 교육비 중 기준된 일정금액 환급이 가능 하며 고용보험 미 가입자는 환급이 불가 합니다.</p>
|
||||
|
||||
}
|
||||
<h4 class="clsTitle isCompany">소속업체명</h4>
|
||||
<table class="clsTable isCompany">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>업체/개인 선택</th>
|
||||
<td>
|
||||
<input type="radio" name="isCompany" id="isCompany1" value="1" @(Model.Assign != null ? "checked" : "") /><label for="isCompany1"> 업체명</label>
|
||||
<input type="hidden" id="asno" name="asno" value="@(Model.Assign != null ? Model.Assign.asno : 0)">
|
||||
<input type="text" id="asname" name="asname" placeholder="" readonly="readonly" value="@(Model.Assign != null ? Model.Assign.asname : "")" style="background-color:#ddd;" />
|
||||
<input type="radio" name="isCompany" id="isCompany0" value="0" @(Model.Assign != null ? "" : "checked") style="padding-left:5px" /><label for="isCompany0"> 개인</label>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p class="subDsc mt10 isCompany">
|
||||
※수료증 소속부분에 기재될 내용으로 소속업체가 없으면 개인을 선택해 주세요.
|
||||
</p>
|
||||
@if (Model.CM.cshape == 1)
|
||||
{
|
||||
<h4 class="clsTitle rbankInfo">환급금 수령계좌 등록</h4>
|
||||
<p class="subDsc rbankInfo">*는 필수 입력사항입니다.</p>
|
||||
<table class="clsTable rbankInfo">
|
||||
|
|
@ -135,91 +154,93 @@
|
|||
|
||||
}
|
||||
<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>
|
||||
|
||||
@if (Model.Assign != null)
|
||||
{
|
||||
<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)
|
||||
@Html.HiddenFor(x => x.User.userno)
|
||||
<table class="clsTable">
|
||||
<tbody>
|
||||
<tr>
|
||||
|
|
@ -333,6 +354,7 @@
|
|||
</ul>
|
||||
|
||||
</form>
|
||||
@Html.Partial("./Partial/BoxAssign", null, new ViewDataDictionary { { "bindmethod", "bindassign" } })
|
||||
@section scriptsHeader{
|
||||
@Html.Partial("./Partial/ScriptPost")
|
||||
@Html.Partial("./Partial/filescript")
|
||||
|
|
@ -349,11 +371,13 @@
|
|||
$(".rbankInfo").show();
|
||||
$(".companyInfo").show();
|
||||
$(".uduty").show();
|
||||
$(".isCompany").hide();
|
||||
}
|
||||
else {
|
||||
$(".rbankInfo").hide();
|
||||
$(".companyInfo").hide();
|
||||
$(".uduty").hide();
|
||||
$(".isCompany").show();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
@ -366,11 +390,17 @@
|
|||
total = @Model.CM.infee;
|
||||
}
|
||||
$("#spninfeecost").html(bindComma(total));
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
$("input:radio[name='isCompany']").on("click", function () {
|
||||
var isCompany = $(this).val();
|
||||
if (isCompany == "0") {
|
||||
setv("asno", "");
|
||||
$("#asname").val("");
|
||||
} else {
|
||||
boxassignview();
|
||||
}
|
||||
});
|
||||
});
|
||||
function initControl() {
|
||||
$("#spninfee").html(bindComma(@Model.CM.infee));
|
||||
|
|
@ -380,10 +410,24 @@
|
|||
setTimeout(function () {
|
||||
if (@Model.CM.cshape == 2) {
|
||||
setScd();
|
||||
}
|
||||
}
|
||||
}, 300);
|
||||
}
|
||||
|
||||
if ($("#cshape").val() == "0") {
|
||||
$(".companyInfo").hide();
|
||||
$(".isCompany").show();
|
||||
} else if ($("#cshape").val() == "1") {
|
||||
$(".companyInfo").show();
|
||||
$(".isCompany").hide();
|
||||
} else if ($("#cshape").val() == "2") {
|
||||
$(".companyInfo").hide();
|
||||
$(".isCompany").show();
|
||||
}
|
||||
}
|
||||
function bindassign(v) {
|
||||
$("#asno").val(v.split(':')[0]);
|
||||
$("#asname").val(v.split(':')[1]);
|
||||
}
|
||||
function setScd() {
|
||||
capp("/focommon/GetScdForMixEdu", { cmno: @Model.cmno, month: $("#selMonth").val() }, "renderScd");
|
||||
}
|
||||
|
|
@ -441,9 +485,8 @@
|
|||
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');
|
||||
|
|
@ -463,4 +506,4 @@
|
|||
}
|
||||
return;
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
|
|
@ -99,8 +99,11 @@
|
|||
</ul>
|
||||
<span class="cashnot hide">)</span>
|
||||
</li>
|
||||
<li><input type="radio" name="iscashrct" id="pay0203" value="2"><label for="pay0203">계산서 발행</label></li>
|
||||
</ul>
|
||||
@if (!string.IsNullOrEmpty(Model.PPLog.asname))
|
||||
{
|
||||
<li><input type="radio" name="iscashrct" id="pay0203" value="2"><label for="pay0203">계산서 발행</label></li>
|
||||
}
|
||||
</ul>
|
||||
</div>
|
||||
<ul class="clsBtn society">
|
||||
<li><a href="#" onclick="save()">수강신청</a></li>
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ namespace NP.Model
|
|||
public String rbankacc { get; set; }
|
||||
public String rbankowner { get; set; }
|
||||
|
||||
public Int64 asno { get; set; }
|
||||
public Int64? asno { get; set; }
|
||||
public String asname { get; set; }
|
||||
public String brno { get; set; }
|
||||
public String ceoname { get; set; }
|
||||
|
|
|
|||
Loading…
Reference in New Issue