<기능개선>

통합테스트목록 . 544
교육신청시 회사정보 확인 수정
일부(담당자성명, 담당자연락처, 계산서받을이메일)
1. 고객사정보 불러오기 일부 제외
2. 교육신청시 고객사 정보 수정 일부 제외
This commit is contained in:
kdh0120 2021-11-16 00:59:17 +00:00
parent 089388eeb6
commit df7d796102
4 changed files with 50 additions and 25 deletions

View File

@ -2017,9 +2017,9 @@
<isNotEmpty property="bkind">,bkind =#bkind#</isNotEmpty>
<isNotNull property="fgnobno">,fgnobno=#fgnobno#</isNotNull>
<isNotEmpty property="eino">,eino=#eino#</isNotEmpty>
<isNotEmpty property="mname">,mname=#mname#</isNotEmpty>
<isNotEmpty property="mphone">,mphone =case when #mphone# is not null then HEX(AES_ENCRYPT(#mphone#, <include refid="sql.digest"></include>)) else mphone end</isNotEmpty>
<isNotEmpty property="taxemail">,taxemail =case when #taxemail# is not null then HEX(AES_ENCRYPT(#taxemail#, <include refid="sql.digest"></include>)) else taxemail end</isNotEmpty>
<!--<isNotEmpty property="mname">,mname=#mname#</isNotEmpty>-->
<!--<isNotEmpty property="mphone">,mphone =case when #mphone# is not null then HEX(AES_ENCRYPT(#mphone#, <include refid="sql.digest"></include>)) else mphone end</isNotEmpty>-->
<!--<isNotEmpty property="taxemail">,taxemail =case when #taxemail# is not null then HEX(AES_ENCRYPT(#taxemail#, <include refid="sql.digest"></include>)) else taxemail end</isNotEmpty>-->
where asno=#asno#
</update>
<update id="cm.users.applyedu.up" parameterClass="hashtable">

View File

@ -842,19 +842,20 @@ namespace NP.FO.Controllers
vm.Assign = Dao.Get<Assign>("cm.assign.applyedu", new Hashtable() { { "userno", SUserInfo.UserNo } }).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;
}
vm.Assign.mname = 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;
//}
vm.FileList = new List<File>() { };
if (vm.Assign.fgnobno != null)
{
@ -895,6 +896,23 @@ namespace NP.FO.Controllers
if (vm.pplno != 0)
{
vm.PPLog = Dao.Get<PPLog>("pay.pplogs", new Hashtable() { { "pplno", vm.pplno }, { "userno", SUserInfo.UserNo } }).FirstOrDefault();
if(vm.Assign != null)
{
vm.Assign.mname = vm.PPLog.mname;
if (!string.IsNullOrEmpty(vm.PPLog.MphoneFormat) && vm.PPLog.MphoneFormat.IndexOf("-") >= 0)
{
string[] mphoneArr = vm.PPLog.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.PPLog.taxemail) && vm.PPLog.taxemail.IndexOf("@") >= 0)
{
string[] taxemailArr = vm.PPLog.taxemail.Split('@');
vm.Assign.taxemail1 = taxemailArr.Length > 0 ? taxemailArr[0] : string.Empty;
vm.Assign.taxemail2 = taxemailArr.Length > 1 ? taxemailArr[1] : string.Empty;
}
}
}
return View(vm);
}

View File

@ -562,12 +562,12 @@
setv("Assign_bkind", capResult.obj.bkind);
setv("Assign_eino", capResult.obj.eino);
setv("eino", capResult.obj.eino);
setv("Assign_mname", capResult.obj.mname);
setv("Assign_mphone1", mphone1);
setv("Assign_mphone2", mphone2);
setv("Assign_mphone3", mphone3);
setv("Assign_taxemail1", taxemail1);
setv("Assign_taxemail2", taxemail2);
//setv("Assign_mname", capResult.obj.mname);
//setv("Assign_mphone1", mphone1);
//setv("Assign_mphone2", mphone2);
//setv("Assign_mphone3", mphone3);
//setv("Assign_taxemail1", taxemail1);
//setv("Assign_taxemail2", taxemail2);
}
}
function setScd() {
@ -668,8 +668,8 @@
//else if (isrebate && (check("Assign_post", null, "우편번호를 등록해주세요.") || check("Assign_address1", null, "주소를 등록해주세요.") || check("Assign_address2", null, "상세주소를 등록해주세요."))) { }
//else if (isrebate && check("Assign_btype", null, "업태를 등록해주세요.")) { }
//else if (isrebate && check("Assign_bkind", null, "종목을 등록해주세요.")) { }
//else if (isrebate && (check("Assign_taxemail1", null, "계산서받을 이메일을 등록해주세요.") || check("Assign_taxemail2", null, "계산서받을 이메일을 등록해주세요."))) { }
//else if (isrebate && !isemail(assign_taxemail)) { focus("Assign_taxemail1"); msg("올바른 이메일주소를 입력해주세요."); }
else if (isrebate && (check("Assign_taxemail1", null, "계산서받을 이메일을 등록해주세요.") || check("Assign_taxemail2", null, "계산서받을 이메일을 등록해주세요."))) { }
else if (isrebate && !isemail(assign_taxemail)) { focus("Assign_taxemail1"); msg("올바른 이메일주소를 입력해주세요."); }
else if (isCompanyInfoCheck && (check("Assign_post", null, "우편번호를 등록해주세요.") || check("Assign_address1", null, "주소를 등록해주세요.") || check("Assign_address2", null, "상세주소를 등록해주세요."))) { }
else if (isCompanyInfoCheck && check("Assign_btype", null, "업태를 등록해주세요.")) { }
else if (isCompanyInfoCheck && check("Assign_bkind", null, "종목을 등록해주세요.")) { }

View File

@ -39,6 +39,13 @@ namespace NP.Model
public String eino { get; set; }
public String mname { get; set; }
public String mphone { 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));
}
}
public String taxemail { get; set; }
public String userpno { get; set; }