This commit is contained in:
hyunho 2020-11-06 02:20:26 +00:00
parent ec88c3e57b
commit 8bd3b3017e
6 changed files with 156 additions and 70 deletions

View File

@ -1807,5 +1807,29 @@
</dynamic>
order by a.estart desc
</select>
<select id="cm.user.applyedu" parameterClass="hashtable" resultClass="users">
select
a.userno,a.usertype,a.jointype,a.snsid,a.userkind,a.userid,a.userpass,a.username,a.usernameeng,a.gender,a.birthday,a.isacceptemail,a.isacceptmobile,a.telno,a.asno,a.pasname
,a.depart,a.ccposition,a.ccpositionetc,a.fgnoprofile,a.ccjobs,a.bankname,a.bankno,a.post,a.address1,a.address2,a.introhtml,a.status,a.exitreason,a.logintime,a.loginkey,a.send335time
,a.pwcalltime,a.pwcallno,a.eastereggkey,a.eetime,a.kfcfyear,a.isassignuser,a.uduty,a.slevel,a.edus,a.remotekey,a.vssn,a.di,a.ci
,CAST(AES_DECRYPT(UNHEX(a.mobile), <include refid="sql.digest"></include>) AS char) mobile
,CAST(AES_DECRYPT(UNHEX(a.email), <include refid="sql.digest"></include>) AS char) email
,CAST(AES_DECRYPT(UNHEX(a.userpno), <include refid="sql.digest"></include>) AS char) userpno
from users a
where a.status &lt;&gt; 99
<isNotNull property="userno">and a.userno=#userno#</isNotNull>
</select>
<select id="cm.assign.applyedu" 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
inner join users b on a.asno = b.asno
where b.status &lt;&gt; 99
and a.isdel=0
<isNotNull property="userno">and b.userno=#userno#</isNotNull>
</select>
</statements>
</sqlMap>

View File

@ -6,6 +6,8 @@ using System.Web.Mvc;
using NP.Model;
using NP.Base;
using System.Collections;
namespace NP.FO.Controllers
{
public class CourseController : FOOpenBaseController
@ -778,6 +780,43 @@ namespace NP.FO.Controllers
item.scdInfoSummary = string.Format("[{0}] {1}",item.studyplacename, item.estart.ToString("yyyy년 MM월 dd일 ddd요일 HH:mm"));
item.remainPeople = Convert.ToInt32(item.quota) - Convert.ToInt32(item.regmem);
}
vm.Assign = Dao.Get<Assign>("cm.assign.applyedu", new Hashtable() { { "userno", SUserInfo.UserNo } }).FirstOrDefault();
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;
}
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)
{
string[] mobileArr = vm.User.MobileFormat.Split('-');
vm.User.mobile1 = mobileArr.Length > 0 ? mobileArr[0] : string.Empty;
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)
{
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('@');
vm.User.email1 = emailArr.Length > 0 ? emailArr[0] : string.Empty;
vm.User.email2 = emailArr.Length > 1 ? emailArr[1] : string.Empty;
}
return View(vm);
}

View File

@ -42,7 +42,7 @@
</li>
</ul>
@if (Model.CM.cshape == 2)
@if (Model.CM.cshape == 2 && Model.CM.applicableCM == "정상접수")
{
<h4 class="clsTitle">교육일정선택</h4>
<select id="selMonth">
@ -81,15 +81,15 @@
<tbody>
<tr>
<th>은행명</th>
<td><input type="text" name="" id="" class="apyIpt" /></td>
<td><input type="text" name="refundBank" id="refundBank" class="apyIpt" /></td>
</tr>
<tr>
<th>계좌번호</th>
<td><input type="text" name="" id="" class="apyIpt" /></td>
<td><input type="text" name="refundAccount" id="refundAccount" class="apyIpt" /></td>
</tr>
<tr>
<th>예금주</th>
<td><input type="text" name="" id="" class="apyIpt" /></td>
<td><input type="text" name="refundAccountOwner" id="refundAccountOwner" class="apyIpt" /></td>
</tr>
</tbody>
</table>
@ -103,23 +103,29 @@
<tbody>
<tr>
<th>회사명</th>
<td><input type="text" name="" id="" class="apyIpt" /></td>
<td>@Html.TextBoxFor(x=>x.Assign.asname, new { @class = "apylpt"})</td>
</tr>
<tr>
<th>사업자등록번호</th>
<td><input type="text" name="" id="" class="apyIpt" /></td>
<td>@Html.TextBoxFor(x => x.Assign.brno, new { @class = "apylpt" })</td>
</tr>
<tr>
<th>대표자성명</th>
<td><input type="text" name="" id="" class="apyIpt" /></td>
<td>@Html.TextBoxFor(x => x.Assign.ceoname, new { @class = "apylpt" })</td>
</tr>
<tr>
<th>주소</th>
<td>
<ul class="apyAddr">
<li><input type="text" name="" id=""></li>
<li><input type="text" name="" id=""></li>
<li><input type="text" name="" id=""></li>
<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", @style = "background-color:#ddd;", @placeholder = "나머지 주소입력" })
</li>
<li>
<a href="#" onclick="getpost2(this);">우편번호검색</a>
</li>
@ -128,50 +134,38 @@
</tr>
<tr>
<th>업태</th>
<td><input type="text" name="" id="" class="apyIpt" /></td>
<td>@Html.TextBoxFor(x => x.Assign.btype, new { @class = "apylpt" })</td>
</tr>
<tr>
<th>종목</th>
<td><input type="text" name="" id="" class="apyIpt" /></td>
<td>@Html.TextBoxFor(x => x.Assign.bkind, new { @class = "apylpt" })</td>
</tr>
<tr>
<th>고용보험관리번호</th>
<td><input type="text" name="" id="" class="apyIpt" /></td>
<td>@Html.TextBoxFor(x => x.Assign.eino, new { @class = "apylpt" })</td>
</tr>
<tr>
<th>담당자성명</th>
<td><input type="text" name="" id="" class="apyIpt" /></td>
<td>@Html.TextBoxFor(x => x.Assign.mname, new { @class = "apylpt" })</td>
</tr>
<tr>
<th>담당자연락처</th>
<td>
<ul class="usrPhn">
<li>
<select name="" id="">
<option value="010" selected="">010</option>
<option value=""></option>
</select>
</li>
<li>@Html.TextBoxFor(x => x.Assign.mphone1)</li>
<li>-</li>
<li><input type="tel" name="" id=""></li>
<li>@Html.TextBoxFor(x => x.Assign.mphone2)</li>
<li>-</li>
<li><input type="tel" name="" id=""></li>
<li>@Html.TextBoxFor(x => x.Assign.mphone3)</li>
</ul>
</td>
</tr>
<tr>
<th>계산서받을 이메일</th>
<td>
<ul class="clsMail">
<li><input type="text" name="" id=""></li>
<li></li>
<li><input type="text" name="" id=""></li>
<li>
<select name="" id="">
<option value="" selected="">선택</option>
<option value=""></option>
</select>
</li>
<li>@Html.TextBoxFor(x => x.Assign.taxemail1)</li>
<li></li>
<li>@Html.TextBoxFor(x => x.Assign.taxemail2)</li>
</ul>
</td>
</tr>
@ -183,32 +177,26 @@
<tbody>
<tr>
<th>이름</th>
<td><p>홍길동</p></td>
<td><p>@Html.TextBoxFor(x => x.User.username, new { @class = "apylpt" })</p></td>
</tr>
<tr>
<th>주민등록번호</th>
<td>
<ul class="usrNum">
<li><input type="tel" name="" id="" /></li>
<li>@Html.TextBoxFor(x => x.User.userpno1)</li>
<li>-</li>
<li><input type="tel" name="" id="" /></li>
</ul>
</td>
<li>@Html.TextBoxFor(x => x.User.userpno2)</li>
</ul> </td>
</tr>
<tr>
<th>휴대전화</th>
<td>
<ul class="usrPhn">
<li>
<select name="" id="">
<option value="010" selected="">010</option>
<option value=""></option>
</select>
</li>
<li>@Html.TextBoxFor(x => x.User.mobile1)</li>
<li>-</li>
<li><input type="tel" name="" id=""></li>
<li>@Html.TextBoxFor(x => x.User.mobile2)</li>
<li>-</li>
<li><input type="tel" name="" id=""></li>
<li>@Html.TextBoxFor(x => x.User.mobile3)</li>
</ul>
</td>
</tr>
@ -216,25 +204,25 @@
<th>이메일</th>
<td>
<ul class="clsMail">
<li><input type="text" name="" id=""></li>
<li></li>
<li><input type="text" name="" id=""></li>
<li>
<select name="" id="">
<option value="" selected="">선택</option>
<option value=""></option>
</select>
</li>
<li>@Html.TextBoxFor(x => x.User.email1)</li>
<li></li>
<li>@Html.TextBoxFor(x => x.User.email2)</li>
</ul>
</td>
</tr>
<tr>
<th>주소</th>
<td>
<ul class="apyAddr">
<li><input type="text" name="" id=""></li>
<li><input type="text" name="" id=""></li>
<li><input type="text" name="" id=""></li>
<ul class="apyAddr postbox">
<li>
@Html.TextBoxFor(x => x.User.post, new { @class = "postno", @style = "background-color:#ddd;", @readonly = true })
</li>
<li>
@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 = "나머지 주소입력" })
</li>
<li>
<a href="#" onclick="getpost2(this);">우편번호검색</a>
</li>
@ -245,24 +233,40 @@
<th>채용형태</th>
<td>
<ul class="bakRadio">
<li><input type="radio" name="recruit" id="recruit01"><label for="recruit01">정규직</li>
<li><input type="radio" name="recruit" id="recruit02"><label for="recruit02">비정규직</li>
<li>
@Html.RadioButtonFor(model => model.User.isassignuser, "1", new { @name = "recruit", @checked = "checked" })정규직
</li>
<li>
@Html.RadioButtonFor(model => model.User.isassignuser, "0", new { @name = "recruit" })비정규직
</li>
</ul>
</td>
</tr>
<tr>
<th>직위</th>
<td><input type="text" name="" id="" class="apyIpt" /></td>
<td>
@Html.TextBoxFor(x => x.User.uduty, new { @class = "apylpt"})
</td>
</tr>
<tr>
<th>학력</th>
<td>
<ul class="bakRadio">
<li><input type="radio" name="edu" id="edu01"><label for="edu01">고졸</li>
<li><input type="radio" name="edu" id="edu02"><label for="edu02">학사</li>
<li><input type="radio" name="edu" id="edu03"><label for="edu03">석사</li>
<li><input type="radio" name="edu" id="edu04"><label for="edu04">박사</li>
<li><input type="radio" name="edu" id="edu05"><label for="edu05">기타</li>
<li>
@Html.RadioButtonFor(model => model.User.slevel, "0", new { @name = "eduGrade", @checked = "checked" })기타
</li>
<li>
@Html.RadioButtonFor(model => model.User.slevel, "1", new { @name = "eduGrade" })고졸
</li>
<li>
@Html.RadioButtonFor(model => model.User.slevel, "2", new { @name = "eduGrade" })학사
</li>
<li>
@Html.RadioButtonFor(model => model.User.slevel, "3", new { @name = "eduGrade" })석사
</li>
<li>
@Html.RadioButtonFor(model => model.User.slevel, "4", new { @name = "eduGrade" })박사
</li>
</ul>
</td>
</tr>
@ -296,7 +300,7 @@
setScd();
refundAccountShowHide();
}, 300);
}
function refundAccountShowHide() {
if ($("#rdoRefund01").prop("checked")) {

View File

@ -225,8 +225,6 @@
var ulSubCm = $("#ulSubCm_" + cmno);
ulSubCm.empty();
var applyClass = "<li><p class='subDsc'>※ 대기접수는 해당 교육과정의 정원이 마감되어 교육입교 확정은 아니지만 결원 발생 시 대기신청 차례에 따라 교육생 연락처로 연락 드리는 시스템 입니다</p ></li>";
$.each(capResult.obj, function (i, d) {
var li = $("<li />");
var p = $("<p />");

View File

@ -67,6 +67,8 @@ namespace NP.Model
/// 200 uiusersemail ev50 이메일 userid, email cross unique check
/// </summary>
public String email { get; set; }
public String email1 { get; set; }
public String email2 { get; set; }
/// <summary>
/// 이메일정보수신
/// </summary>
@ -79,6 +81,9 @@ namespace NP.Model
/// 200 ev50 모바일번호 "-"생성
/// </summary>
public String mobile { get; set; }
public String mobile1 { get; set; }
public String mobile2 { get; set; }
public String mobile3 { get; set; }
/// <summary>
/// 200 ev50 일반전화 고객사담당자의 Dir.Number와 공용"-"생성
/// </summary>
@ -117,6 +122,8 @@ namespace NP.Model
/// 200 ev50 주민등록번호
/// </summary>
public String userpno { get; set; }
public String userpno1 { get; set; }
public String userpno2 { get; set; }
/// <summary>
/// 50 은행
/// </summary>
@ -521,10 +528,22 @@ namespace NP.Model
/// 담당자연락처
/// </summary>
public String mphone { get; set; }
public String mphone1 { get; set; }
public String mphone2 { get; set; }
public String mphone3 { get; set; }
public String MphoneFormat
{
get
{
return string.IsNullOrEmpty(mphone) || mphone.Replace("-", "").Length < 10 ? (mphone ?? "") : mphone.Replace("-", "").Length == 10 ? string.Format("{0}-{1}-{2}", mphone.Replace("-", "").Substring(0, 3), mphone.Replace("-", "").Substring(3, 3), mphone.Replace("-", "").Substring(6)) : string.Format("{0}-{1}-{2}", mphone.Replace("-", "").Substring(0, 3), mphone.Replace("-", "").Substring(3, 4), mphone.Replace("-", "").Substring(7));
}
}
/// <summary>
/// 계산서 수신 이메일
/// </summary>
public String taxemail { get; set; }
public String taxemail1 { get; set; }
public String taxemail2 { get; set; }
}
@ -610,6 +629,7 @@ namespace NP.Model
/// ev50 모바일번호
/// </summary>
public String mobile {get;set;}
/// <summary>
/// ev50 전화번호
/// </summary>

View File

@ -26,6 +26,7 @@ namespace NP.Model
public int iscart { get; set; }
public int iscert { get; set; }
public IList<CMinningscd> CMInningscds { get; set; }
public Assign Assign { get; set; }
/// <summary>
/// 0: 개인결제, 1: 단체결제
/// </summary>