This commit is contained in:
parent
b3c3be58d7
commit
9420b3e843
|
|
@ -248,7 +248,84 @@ namespace NP.Base.Controllers
|
|||
// pmno = (pmno??0) < 1 ? (Int64?)null : pmno;
|
||||
// return JsonOK(Dao.Save("common.memo.insert", new Memo() { usernos = userno.ToString(), pmno = pmno, mtitle = mtitle, mcontents = mcontents, uno = SUserInfo.UserNo, uip = GetUserIP(), cno = SUserInfo.UserNo }));
|
||||
//}
|
||||
[HttpPost]
|
||||
public JsonResult savePPLog(VMCourse vm)
|
||||
{
|
||||
int rtn = 0;
|
||||
PPLog ppllog = new PPLog();
|
||||
ppllog.uno = SUserInfo.UserNo;
|
||||
ppllog.uip = GetUserIP();
|
||||
|
||||
ppllog.userno = vm.User.userno;
|
||||
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);
|
||||
if (vm.stringval == "0")
|
||||
{
|
||||
ppllog.typeman = !string.IsNullOrEmpty(vm.stringval3) ? Convert.ToInt32(vm.stringval3) : (int?)null;
|
||||
ppllog.typeedu = !string.IsNullOrEmpty(vm.stringval4) ? Convert.ToInt32(vm.stringval4) : (int?)null;
|
||||
ppllog.typegrade = !string.IsNullOrEmpty(vm.stringval5) ? Convert.ToInt32(vm.stringval5) : (int?)null;
|
||||
ppllog.typejob = !string.IsNullOrEmpty(vm.stringval6) ? Convert.ToInt32(vm.stringval6) : (int?)null;
|
||||
}
|
||||
else
|
||||
{
|
||||
ppllog.cgno = !string.IsNullOrEmpty(vm.stringval3) ? Convert.ToInt32(vm.stringval6) : (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["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.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);
|
||||
if (!string.IsNullOrEmpty(vm.User.userpno1) && !string.IsNullOrEmpty(vm.User.userpno2))
|
||||
{
|
||||
ppllog.userpno = string.Format("{0}-{1}", vm.User.userpno1, vm.User.userpno2);
|
||||
}
|
||||
ppllog.mobile = string.Format("{0}-{1}-{2}", vm.User.mobile1, vm.User.mobile2, vm.User.mobile3);
|
||||
ppllog.email = string.Format("{0}@{1}", vm.User.email1, vm.User.email2);
|
||||
ppllog.upost = vm.User.post;
|
||||
ppllog.uaddress1 = vm.User.address1;
|
||||
ppllog.uaddress2 = vm.User.address2;
|
||||
ppllog.isassignuser = vm.User.isassignuser;
|
||||
ppllog.uduty = vm.User.uduty;
|
||||
ppllog.slevel = vm.User.slevel;
|
||||
|
||||
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)
|
||||
{
|
||||
return JsonOK(ppllog.pplno);
|
||||
}
|
||||
return JsonOK(rtn);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1831,5 +1831,55 @@
|
|||
and a.isdel=0
|
||||
<isNotNull property="userno">and b.userno=#userno#</isNotNull>
|
||||
</select>
|
||||
|
||||
<insert id="cm.pplog.applyedu.in" parameterClass="hashtable">
|
||||
SELECT * FROM (SELECT LAST_INSERT_ID(0) col1) a WHERE col1 > 0;
|
||||
|
||||
insert into pplog (
|
||||
userno,isready,cgcode,cshape,typeman,typeedu,typegrade,typejob,cgno,cmisno,isrebate,rbankname,rbankacc,rbankowner,asname,brno,ceoname,post,address1,address2,btype,bkind,eino,mname
|
||||
,mphone,taxemail,userpno,mobile,email,upost,uaddress1,uaddress2,isassignuser,uduty,slevel,<include refid="sql.inc"></include>)
|
||||
values (
|
||||
#userno#,#isready#,#cgcode#,#cshape#,#typeman#,#typeedu#,#typegrade#,#typejob#,#cgno#,#cmisno#,#isrebate#,#rbankname#,#rbankacc#,#rbankowner#,#asname#,#brno#,#ceoname#,#post#,#address1#
|
||||
,#address2#,#btype#,#bkind#,#eino#,#mname#
|
||||
,HEX(AES_ENCRYPT(#mphone#, <include refid="sql.digest"></include>))
|
||||
,HEX(AES_ENCRYPT(#taxemail#, <include refid="sql.digest"></include>))
|
||||
,HEX(AES_ENCRYPT(#userpno#, <include refid="sql.digest"></include>))
|
||||
,HEX(AES_ENCRYPT(#mobile#, <include refid="sql.digest"></include>))
|
||||
,HEX(AES_ENCRYPT(#email#, <include refid="sql.digest"></include>))
|
||||
,#upost#,#uaddress1#,#uaddress2#,#isassignuser#,#uduty#,#slevel#,<include refid="sql.inv"></include>)
|
||||
<selectKey type="post" property="pplno" resultClass="long">SELECT LAST_INSERT_ID()</selectKey>
|
||||
</insert>
|
||||
|
||||
<update id="cm.assign.applyedu.up" parameterClass="hashtable">
|
||||
update assign set <include refid="sql.up"></include>
|
||||
,asname=#asname#
|
||||
,ceoname=#ceoname#
|
||||
,brno =#brno#
|
||||
,post =#post#
|
||||
,address1=#address1#
|
||||
,address2=#address2#
|
||||
,btype =#btype#
|
||||
,bkind =#bkind#
|
||||
,fgnobno=#fgnobno#
|
||||
,eino=#eino#
|
||||
,mname=#mname#
|
||||
,mphone =case when #mphone# is not null then HEX(AES_ENCRYPT(#mphone#, <include refid="sql.digest"></include>)) else mphone end
|
||||
,taxemail =case when #taxemail# is not null then HEX(AES_ENCRYPT(#taxemail#, <include refid="sql.digest"></include>)) else taxemail end
|
||||
where asno=#asno#
|
||||
</update>
|
||||
<update id="cm.users.applyedu.up" parameterClass="hashtable">
|
||||
update users set <include refid="sql.up"></include>
|
||||
,email =case when #email# is null and #email# > 80 then null when #email# is not null then HEX(AES_ENCRYPT(#email#, <include refid="sql.digest"></include>)) else email end
|
||||
,mobile =HEX(AES_ENCRYPT(#mobile#, <include refid="sql.digest"></include>))
|
||||
,asno =#asno#
|
||||
,userpno =case when #userpno# is not null then HEX(AES_ENCRYPT(#userpno#, <include refid="sql.digest"></include>)) else null end
|
||||
,post =case when #post# is not null then #post# else post end
|
||||
,address1 =case when #address1# is not null then #address1# else address1 end
|
||||
,address2 =case when #address2# is not null then #address2# else address2 end
|
||||
,uduty = #uduty#
|
||||
,slevel = #slevel#
|
||||
,isassignuser = #isassignuser#
|
||||
where userno=#userno#
|
||||
</update>
|
||||
</statements>
|
||||
</sqlMap>
|
||||
|
|
@ -772,6 +772,7 @@ namespace NP.FO.Controllers
|
|||
|
||||
public ActionResult ApplyEdu(VMCourse vm)
|
||||
{
|
||||
|
||||
vm.CM = Dao.Get<CM>("cm.cms", new System.Collections.Hashtable() { { "cmno", vm.cmno } }).FirstOrDefault();
|
||||
vm.CM.applicableCM = (vm.CM.quota - vm.CM.lectcnt <= 0) ? "대기접수" : "정상접수";
|
||||
vm.CMInningscds = Dao.Get<CMinningscd>("cm.cminningscds.applyedu", new System.Collections.Hashtable() { { "cmno", vm.cmno },{"month", (vm.scdMonth == null)? DateTime.Now.Year : vm.scdMonth } });
|
||||
|
|
@ -794,6 +795,11 @@ namespace NP.FO.Controllers
|
|||
vm.Assign.taxemail1 = taxemailArr.Length > 0 ? taxemailArr[0] : string.Empty;
|
||||
vm.Assign.taxemail2 = taxemailArr.Length > 1 ? taxemailArr[1] : string.Empty;
|
||||
}
|
||||
vm.FileList = new List<File>() { };
|
||||
if (vm.Assign.fgnobno != null)
|
||||
{
|
||||
vm.FileList = GetFiles(vm.Assign.fgnobno.Value);
|
||||
}
|
||||
|
||||
vm.User = Dao.Get<Users>("cm.user.applyedu", new Hashtable() { { "userno", SUserInfo.UserNo } }).FirstOrDefault();
|
||||
if (!string.IsNullOrEmpty(vm.User.MobileFormat) && vm.User.MobileFormat.IndexOf("-") >= 0)
|
||||
|
|
@ -803,13 +809,18 @@ namespace NP.FO.Controllers
|
|||
vm.User.mobile2 = mobileArr.Length > 1 ? mobileArr[1] : string.Empty;
|
||||
vm.User.mobile3 = mobileArr.Length > 2 ? mobileArr[2] : string.Empty;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(vm.User.userpno) && vm.User.userpno.Length == 13)
|
||||
|
||||
if (!string.IsNullOrEmpty(vm.User.userpno))
|
||||
{
|
||||
vm.User.userpno = vm.User.userpno.Replace("-","");
|
||||
if (vm.User.userpno.Length == 13)
|
||||
{
|
||||
string userpnoString = string.Format("{0}-{1}", vm.User.userpno.Substring(0, 6), vm.User.userpno.Substring(6, 7));
|
||||
string[] userpnoArr = userpnoString.Split('-');
|
||||
vm.User.userpno1 = userpnoArr.Length > 0 ? userpnoArr[0] : string.Empty;
|
||||
vm.User.userpno2 = userpnoArr.Length > 1 ? userpnoArr[1] : string.Empty;
|
||||
}
|
||||
}
|
||||
if (!string.IsNullOrEmpty(vm.User.email) && vm.User.email.IndexOf("@") >= 0)
|
||||
{
|
||||
string[] emailArr = vm.User.email.Split('@');
|
||||
|
|
|
|||
|
|
@ -7,7 +7,9 @@
|
|||
<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="scdMonth" id="scdMonth" value="@Model.scdMonth" />@*교육일정 month*@
|
||||
<input type="hidden" name="cmisno" id="cmisno" />
|
||||
<input type="hidden" name="isrebate" id="isrebate" />
|
||||
<input type="hidden" name="applicableCM" id="applicableCM" />
|
||||
<h4 class="clsTitle">신청강좌</h4>
|
||||
<ul class="smtList mt0">
|
||||
<li>
|
||||
|
|
@ -65,8 +67,8 @@
|
|||
<th>교육비 지원</th>
|
||||
<td>
|
||||
<ul class="bakRadio">
|
||||
<li><input type="radio" name="rdoRefund" id="rdoRefund01" checked><label for="rdoRefund01">환급</label></li>
|
||||
<li><input type="radio" name="rdoRefund" id="rdoRefund02"><label for="rdoRefund02">비환급</label></li>
|
||||
<li><input type="radio" name="rdoRefund" id="rdoRefund01" value="1" checked><label for="rdoRefund01">환급</label></li>
|
||||
<li><input type="radio" name="rdoRefund" id="rdoRefund02" value="0"><label for="rdoRefund02">비환급</label></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
@ -81,15 +83,15 @@
|
|||
<tbody>
|
||||
<tr>
|
||||
<th>은행명</th>
|
||||
<td><input type="text" name="refundBank" id="refundBank" class="apyIpt" /></td>
|
||||
<td><input type="text" name="rbankname" id="rbankname" class="apyIpt" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>계좌번호</th>
|
||||
<td><input type="text" name="refundAccount" id="refundAccount" class="apyIpt" /></td>
|
||||
<td><input type="text" name="rbankacc" id="rbankacc" class="apyIpt" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>예금주</th>
|
||||
<td><input type="text" name="refundAccountOwner" id="refundAccountOwner" class="apyIpt" /></td>
|
||||
<td><input type="text" name="rbankowner" id="rbankowner" class="apyIpt" /></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
@ -99,19 +101,20 @@
|
|||
}
|
||||
<div id="postlayer" class="daumpost"><a href="#" class="btn btn-xxs btn-select closedaumpost" onclick="closeDaumPostcode();">close</a></div>
|
||||
<h4 class="clsTitle">회사정보 확인</h4>
|
||||
@Html.HiddenFor(x => x.Assign.asno)
|
||||
<table class="clsTable">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>회사명</th>
|
||||
<td>@Html.TextBoxFor(x=>x.Assign.asname, new { @class = "apylpt"})</td>
|
||||
<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" })</td>
|
||||
<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" })</td>
|
||||
<td>@Html.TextBoxFor(x => x.Assign.ceoname, new { @class = "apylpt", @maxlength = "50" })</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>주소</th>
|
||||
|
|
@ -124,7 +127,7 @@
|
|||
@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", @style = "background-color:#ddd;", @placeholder = "나머지 주소입력" })
|
||||
@Html.TextBoxFor(x => x.Assign.address2, new { @class = "postadrsub", @placeholder = "나머지 주소입력", @maxlength = "200" })
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" onclick="getpost2(this);">우편번호검색</a>
|
||||
|
|
@ -134,75 +137,77 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<th>업태</th>
|
||||
<td>@Html.TextBoxFor(x => x.Assign.btype, new { @class = "apylpt" })</td>
|
||||
<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" })</td>
|
||||
<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" })</td>
|
||||
<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" })</td>
|
||||
<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)</li>
|
||||
<li>@Html.TextBoxFor(x => x.Assign.mphone1, new { @maxlength = "3" })</li>
|
||||
<li>-</li>
|
||||
<li>@Html.TextBoxFor(x => x.Assign.mphone2)</li>
|
||||
<li>@Html.TextBoxFor(x => x.Assign.mphone2, new { @maxlength = "4" })</li>
|
||||
<li>-</li>
|
||||
<li>@Html.TextBoxFor(x => x.Assign.mphone3)</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)</li>
|
||||
<li>@Html.TextBoxFor(x => x.Assign.taxemail1, new { @maxlength = "100" })</li>
|
||||
<li>@</li>
|
||||
<li>@Html.TextBoxFor(x => x.Assign.taxemail2)</li>
|
||||
<li>@Html.TextBoxFor(x => x.Assign.taxemail2, new { @maxlength = "30" })</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>사업자등록증</th>
|
||||
<td>
|
||||
<input type="file" id="brFile" name="brFile" />
|
||||
@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>
|
||||
@Html.HiddenFor(x => x.User.userno)
|
||||
<table class="clsTable">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>이름</th>
|
||||
<td><p>@Html.TextBoxFor(x => x.User.username, new { @class = "apylpt" })</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>
|
||||
<th>주민등록번호</th>
|
||||
<td>
|
||||
<ul class="usrNum">
|
||||
<li>@Html.TextBoxFor(x => x.User.userpno1)</li>
|
||||
<li>@Html.TextBoxFor(x => x.User.userpno1, new { @maxlength = "6" })</li>
|
||||
<li>-</li>
|
||||
<li>@Html.TextBoxFor(x => x.User.userpno2)</li>
|
||||
</ul>
</td>
|
||||
<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)</li>
|
||||
<li>@Html.TextBoxFor(x => x.User.mobile1, new { @maxlength = "3" })</li>
|
||||
<li>-</li>
|
||||
<li>@Html.TextBoxFor(x => x.User.mobile2)</li>
|
||||
<li>@Html.TextBoxFor(x => x.User.mobile2, new { @maxlength = "4" })</li>
|
||||
<li>-</li>
|
||||
<li>@Html.TextBoxFor(x => x.User.mobile3)</li>
|
||||
<li>@Html.TextBoxFor(x => x.User.mobile3, new { @maxlength = "4" })</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
@ -210,9 +215,9 @@
|
|||
<th>이메일</th>
|
||||
<td>
|
||||
<ul class="clsMail">
|
||||
<li>@Html.TextBoxFor(x => x.User.email1)</li>
|
||||
<li>@Html.TextBoxFor(x => x.User.email1, new { @maxlength = "100" })</li>
|
||||
<li>@</li>
|
||||
<li>@Html.TextBoxFor(x => x.User.email2)</li>
|
||||
<li>@Html.TextBoxFor(x => x.User.email2, new { @maxlength = "30" })</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
@ -227,7 +232,7 @@
|
|||
@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", @style = "background-color:#ddd;", @placeholder = "나머지 주소입력" })
|
||||
@Html.TextBoxFor(x => x.User.address2, new { @class = "postadrsub", @placeholder = "나머지 주소입력", @maxlength = "200" })
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" onclick="getpost2(this);">우편번호검색</a>
|
||||
|
|
@ -251,7 +256,7 @@
|
|||
<tr>
|
||||
<th>직위</th>
|
||||
<td>
|
||||
@Html.TextBoxFor(x => x.User.uduty, new { @class = "apylpt"})
|
||||
@Html.TextBoxFor(x => x.User.uduty, new { @class = "apylpt", @maxlength = "20" })
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
@ -293,6 +298,7 @@
|
|||
</form>
|
||||
@section scriptsHeader{
|
||||
@Html.Partial("./Partial/ScriptPost")
|
||||
@Html.Partial("./Partial/filescript")
|
||||
}
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
|
|
@ -308,9 +314,10 @@
|
|||
|
||||
});
|
||||
function initControl() {
|
||||
$("#selMonth").val(@Model.scdMonth);
|
||||
setTimeout(function () {
|
||||
if (@Model.CM.cshape == 2) {
|
||||
setScd();
|
||||
}
|
||||
refundAccountShowHide();
|
||||
}, 300);
|
||||
|
||||
|
|
@ -330,21 +337,46 @@
|
|||
function renderScd() {
|
||||
var ulScd = $("#ulScd");
|
||||
ulScd.empty();
|
||||
var cnt = 0;
|
||||
$.each(capResult.obj, function (i, d) {
|
||||
var li = $("<li />");
|
||||
if (d.remainPeople <= 0)
|
||||
{
|
||||
li.append("<input type='radio' name='rdoScds' id='rdo_"+d.cmisno+"'> "+d.scdInfoSummary+"<label style='color: red'> (종료)</label>");
|
||||
if (cnt == 0) {
|
||||
li.append("<input type='radio' name='rdoScds' value='" + d.cmisno + "' checked> " + d.scdInfoSummary + "<label style='color: red'> (종료)</label>");
|
||||
}
|
||||
else {
|
||||
li.append("<input type='radio' name='rdoScds' value='" + d.cmisno + "'> " + d.scdInfoSummary + "<label style='color: red'> (종료)</label>");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
li.append("<input type='radio' name='rdoScds' id='rdo_" + d.cmisno + "'> " + d.scdInfoSummary + "<label style='color: red'> (" + d.remainPeople+"명 남음)</label>");
|
||||
if (cnt == 0) {
|
||||
li.append("<input type='radio' name='rdoScds' value='" + d.cmisno + "' checked> " + d.scdInfoSummary + "<label style='color: red'> (" + d.remainPeople + "명 남음)</label>");
|
||||
}
|
||||
else
|
||||
{
|
||||
li.append("<input type='radio' name='rdoScds' value='" + d.cmisno + "'> " + d.scdInfoSummary + "<label style='color: red'> (" + d.remainPeople + "명 남음)</label>");
|
||||
}
|
||||
}
|
||||
cnt++;
|
||||
ulScd.append(li);
|
||||
});
|
||||
}
|
||||
|
||||
function applyEdu() {
|
||||
capfileform('/fcommon/paytaxsave', 'mform', 'cbgogo');
|
||||
$("#cmisno").val($("input:radio[name=rdoScds]:checked").val());
|
||||
$("#isrebate").val($("input:radio[name=rdoRefund]:checked").val());
|
||||
$("#applicableCM").val("@Model.CM.applicableCM");
|
||||
|
||||
capfileform('/fcommon/savePPLog', 'applyEduForm', 'saveResult');
|
||||
}
|
||||
function saveResult() {
|
||||
if (capResult.code == 1000 && capResult.obj > 0) {
|
||||
alert("저장되었습니다. pplno : " + capResult.obj);
|
||||
} else {
|
||||
alert("저장을 실패하였습니다.");
|
||||
}
|
||||
return;
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -48,6 +48,7 @@
|
|||
<Compile Include="Pay.cs" />
|
||||
<Compile Include="Common.cs" />
|
||||
<Compile Include="ENUM.cs" />
|
||||
<Compile Include="PPLog.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Systems.cs" />
|
||||
<Compile Include="CM.cs" />
|
||||
|
|
|
|||
|
|
@ -0,0 +1,54 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace NP.Model
|
||||
{
|
||||
[Serializable]
|
||||
public class PPLog : BaseModel
|
||||
{
|
||||
public Int64 pplno { get; set; }
|
||||
public int userno { get; set; }
|
||||
public int? isready { get; set; }
|
||||
public String cgcode { get; set; }
|
||||
public int? cshape { get; set; }
|
||||
public int? typeman { get; set; }
|
||||
public int? typeedu { get; set; }
|
||||
public int? typegrade { get; set; }
|
||||
public int? typejob { get; set; }
|
||||
public int? cgno { get; set; }
|
||||
public Int64? cmisno { get; set; }
|
||||
public int? isrebate { get; set; }
|
||||
public String rbankname { get; set; }
|
||||
public String rbankacc { get; set; }
|
||||
public String rbankowner { get; set; }
|
||||
|
||||
public Int64 asno { get; set; }
|
||||
public String asname { get; set; }
|
||||
public String brno { get; set; }
|
||||
public String ceoname { get; set; }
|
||||
public String post { get; set; }
|
||||
public String address1 { get; set; }
|
||||
public String address2 { get; set; }
|
||||
public String btype { get; set; }
|
||||
public String bkind { get; set; }
|
||||
public Int64? fgnobno { get; set; }
|
||||
public String eino { get; set; }
|
||||
public String mname { get; set; }
|
||||
public String mphone { get; set; }
|
||||
public String taxemail { get; set; }
|
||||
|
||||
public String userpno { get; set; }
|
||||
public String mobile { get; set; }
|
||||
public String email { get; set; }
|
||||
public String upost { get; set; }
|
||||
public String uaddress1 { get; set; }
|
||||
public String uaddress2 { get; set; }
|
||||
public int? isassignuser { get; set; }
|
||||
public String uduty { get; set; }
|
||||
public int? slevel { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue