<기능개선>
1. PMS NO : 8310 2. (주요)작업내용 (1) Dao/MyBatis/Maps/CRoom.xml - cgcode 컬럼 추가 (2) Model/Pay.cs - cgcode 필드 추가 및 edukind 변경 (3) 그외 - Base/Controller/ACommon.cs : 증빙서류출력(과거)등록시 조건 수정 - FO/Views/CRoom/Index.cshtml : 알림톡 잇슈관련 복원 - FO/Views/CRoom/Innings.cshtml: 알림톡 잇슈관련 복원
This commit is contained in:
parent
dd8649bb33
commit
e3124b7a57
|
|
@ -1789,7 +1789,9 @@ namespace NP.Base.Controllers
|
||||||
d.sedate = Convert.ToDateTime(d.sedatestring);
|
d.sedate = Convert.ToDateTime(d.sedatestring);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(string.IsNullOrEmpty(d.userpno.Trim()))
|
if(!string.IsNullOrWhiteSpace(d.kind) && !string.IsNullOrWhiteSpace(d.cg))
|
||||||
|
{
|
||||||
|
if (string.IsNullOrEmpty(d.userpno.Trim()))
|
||||||
{
|
{
|
||||||
return JsonBack(new JsonRtn() { code = 1, msg = i + "번째 데이터의 주민번호가 공란입니다." });
|
return JsonBack(new JsonRtn() { code = 1, msg = i + "번째 데이터의 주민번호가 공란입니다." });
|
||||||
}
|
}
|
||||||
|
|
@ -1797,10 +1799,10 @@ namespace NP.Base.Controllers
|
||||||
{
|
{
|
||||||
return JsonBack(new JsonRtn() { code = 1, msg = i + "번째 데이터의 과정명이 공란입니다." });
|
return JsonBack(new JsonRtn() { code = 1, msg = i + "번째 데이터의 과정명이 공란입니다." });
|
||||||
}
|
}
|
||||||
else if (string.IsNullOrEmpty(d.completeno.Trim()))
|
//else if (string.IsNullOrEmpty(d.completeno.Trim()))
|
||||||
{
|
//{
|
||||||
return JsonBack(new JsonRtn() { code = 1, msg = i + "번째 데이터의 수료번호가 공란입니다." });
|
// return JsonBack(new JsonRtn() { code = 1, msg = i + "번째 데이터의 수료번호가 공란입니다." });
|
||||||
}
|
//}
|
||||||
else if (string.IsNullOrEmpty(d.ssdatestring.Trim()))
|
else if (string.IsNullOrEmpty(d.ssdatestring.Trim()))
|
||||||
{
|
{
|
||||||
return JsonBack(new JsonRtn() { code = 1, msg = i + "번째 데이터의 교육시작일이 공란입니다." });
|
return JsonBack(new JsonRtn() { code = 1, msg = i + "번째 데이터의 교육시작일이 공란입니다." });
|
||||||
|
|
@ -1845,8 +1847,35 @@ namespace NP.Base.Controllers
|
||||||
*/
|
*/
|
||||||
d.uno = SUserInfo.UserNo;
|
d.uno = SUserInfo.UserNo;
|
||||||
d.uip = GetUserIP();
|
d.uip = GetUserIP();
|
||||||
|
++i;
|
||||||
}
|
}
|
||||||
return JsonOK(Dao.Save("cr.documnetspast.batch", new Hashtable() { { "Ds", data } }));
|
}
|
||||||
|
|
||||||
|
int result = 0;
|
||||||
|
int cnt = 0;
|
||||||
|
int limit = 5; // 10000;
|
||||||
|
List<Document> tempData = new List<Document>();
|
||||||
|
|
||||||
|
foreach(var item in data)
|
||||||
|
{
|
||||||
|
++cnt;
|
||||||
|
tempData.Add(item);
|
||||||
|
|
||||||
|
if (cnt > limit)
|
||||||
|
{
|
||||||
|
result += Dao.Save("cr.documnetspast.batch", new Hashtable() { { "Ds", tempData } });
|
||||||
|
|
||||||
|
cnt = 0;
|
||||||
|
tempData = new List<Document>();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if(tempData.Count > 0)
|
||||||
|
{
|
||||||
|
result += Dao.Save("cr.documnetspast.batch", new Hashtable() { { "Ds", tempData } });
|
||||||
|
}
|
||||||
|
|
||||||
|
return JsonOK(result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -903,7 +903,7 @@
|
||||||
,count(p.payno) over() pagetotalcount
|
,count(p.payno) over() pagetotalcount
|
||||||
,scd.estart cmiestart, scd.eend cmieeend, scd.studyplace cmistudyplace
|
,scd.estart cmiestart, scd.eend cmieeend, scd.studyplace cmistudyplace
|
||||||
,pi.rbank , CAST(AES_DECRYPT(UNHEX(pi.rbankaccnum), <include refid="sql.digest"></include>) AS char) rbankaccnum, pi.tbankuser
|
,pi.rbank , CAST(AES_DECRYPT(UNHEX(pi.rbankaccnum), <include refid="sql.digest"></include>) AS char) rbankaccnum, pi.tbankuser
|
||||||
,cc1.cname tgname,cc2.cname tename
|
,cc1.cname tgname,cc2.cname tename, cg.cgcode
|
||||||
,cc3.cname tmname,cc4.cname tjname
|
,cc3.cname tmname,cc4.cname tjname
|
||||||
from (
|
from (
|
||||||
select 0 isexamready,p.payno,max(case when pi.ptype in (0,1,3,4) then pi.pino else 0 end) pi1,min(pi.pino) pi2,count(pi.pino) ccount
|
select 0 isexamready,p.payno,max(case when pi.ptype in (0,1,3,4) then pi.pino else 0 end) pi1,min(pi.pino) pi2,count(pi.pino) ccount
|
||||||
|
|
@ -981,6 +981,7 @@
|
||||||
left outer join payrfditem pri on a.isexamready=0 and pri.pino=pi.pino
|
left outer join payrfditem pri on a.isexamready=0 and pri.pino=pi.pino
|
||||||
left outer join payrfd pr on a.isexamready=0 and pr.rfdno=pri.rfdno
|
left outer join payrfd pr on a.isexamready=0 and pr.rfdno=pri.rfdno
|
||||||
left outer join cm cm on a.isexamready=0 and pi.ptype in (0,1,4) and cm.cmno=pi.itemno
|
left outer join cm cm on a.isexamready=0 and pi.ptype in (0,1,4) and cm.cmno=pi.itemno
|
||||||
|
left outer join cg cg on cm.cgno = cg.cgno
|
||||||
left outer join lect le on a.isexamready=0 and le.pino=pi.pino and le.ischanged=0
|
left outer join lect le on a.isexamready=0 and le.pino=pi.pino and le.ischanged=0
|
||||||
left outer join book bk on a.isexamready=0 and pi.ptype=2 and bk.bkno=pi.itemno
|
left outer join book bk on a.isexamready=0 and pi.ptype=2 and bk.bkno=pi.itemno
|
||||||
left outer join exam ex on a.isexamready=0 and ex.exno=pi.itemno
|
left outer join exam ex on a.isexamready=0 and ex.exno=pi.itemno
|
||||||
|
|
@ -1622,7 +1623,7 @@
|
||||||
where no=#no#
|
where no=#no#
|
||||||
</update>
|
</update>
|
||||||
<update id="cr.documnetspast.batch" parameterClass="hashtable">
|
<update id="cr.documnetspast.batch" parameterClass="hashtable">
|
||||||
insert into docprintpast (kind, cg, cshape, username, userpno, typeman, edukind, typeedu, typegrade, typejob, cgname, completeno, companyname, companyaddr, brno, eino, btype, bkind, ceoname, ssdate, sedate, sctime, assign, slevel, uduty, phone, mname, mphone, sprice, rprice, rbank, rbankno, rbankuser, taxemail, syear, <include refid="sql.inc"></include>)
|
insert into docprintpast(kind, cg, cshape, username, userpno, typeman, edukind, typeedu, typegrade, typejob, cgname, completeno, companyname, companyaddr, brno, eino, btype, bkind, ceoname, ssdate, sedate, sctime, assign, slevel, uduty, phone, mname, mphone, sprice, rprice, rbank, rbankno, rbankuser, taxemail, syear, <include refid="sql.inc"></include>)
|
||||||
<iterate property="Ds" open="" conjunction="union all" close="">
|
<iterate property="Ds" open="" conjunction="union all" close="">
|
||||||
select #Ds[].kind#, #Ds[].cg#, #Ds[].cshape#, #Ds[].username#
|
select #Ds[].kind#, #Ds[].cg#, #Ds[].cshape#, #Ds[].username#
|
||||||
, HEX(AES_ENCRYPT(#Ds[].userpno#, <include refid="sql.digest"></include>))
|
, HEX(AES_ENCRYPT(#Ds[].userpno#, <include refid="sql.digest"></include>))
|
||||||
|
|
|
||||||
|
|
@ -298,6 +298,8 @@
|
||||||
viewcontents(_cmino, false,@Model.croomlectno);
|
viewcontents(_cmino, false,@Model.croomlectno);
|
||||||
} else {
|
} else {
|
||||||
_authplatform = capResult.msg;
|
_authplatform = capResult.msg;
|
||||||
|
|
||||||
|
// ### 모바일 인증 처리
|
||||||
if(_authplatform == "0"){
|
if(_authplatform == "0"){
|
||||||
msg("학습인증수단이 없는 회원입니다. 정보수정을 통해 학습인증수단을 입력해주세요.");
|
msg("학습인증수단이 없는 회원입니다. 정보수정을 통해 학습인증수단을 입력해주세요.");
|
||||||
} else if (_authplatform == "1") {
|
} else if (_authplatform == "1") {
|
||||||
|
|
@ -305,6 +307,8 @@
|
||||||
} else if (_authplatform == "2") {
|
} else if (_authplatform == "2") {
|
||||||
confirmtoggle(true, "학습을 처음 시작할 때 본인인증이 필요합니다. 본인인증은 회차 당 1회에 한 해 진행됩니다.<br/> 본인인증을 하시겠습니까?", "chkmobile()");
|
confirmtoggle(true, "학습을 처음 시작할 때 본인인증이 필요합니다. 본인인증은 회차 당 1회에 한 해 진행됩니다.<br/> 본인인증을 하시겠습니까?", "chkmobile()");
|
||||||
}
|
}
|
||||||
|
// ### 모바일 인증 중단 처리
|
||||||
|
// viewcontents(_cmino, false,@Model.croomlectno);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
msg("휴대폰 번호가 공란입니다.<br/>정보수정을 통해 번호를 입력해주세요.");
|
msg("휴대폰 번호가 공란입니다.<br/>정보수정을 통해 번호를 입력해주세요.");
|
||||||
|
|
|
||||||
|
|
@ -202,6 +202,7 @@
|
||||||
//viewcontents(_cmino, false,@Model.croomlectno);
|
//viewcontents(_cmino, false,@Model.croomlectno);
|
||||||
} else {
|
} else {
|
||||||
_authplatform = capResult.msg;
|
_authplatform = capResult.msg;
|
||||||
|
// ### 모바일 인증 처리
|
||||||
if(_authplatform == "0"){
|
if(_authplatform == "0"){
|
||||||
msg("학습인증수단이 없는 회원입니다. 정보수정을 통해 학습인증수단을 입력해주세요.");
|
msg("학습인증수단이 없는 회원입니다. 정보수정을 통해 학습인증수단을 입력해주세요.");
|
||||||
} else if (_authplatform == "1") {
|
} else if (_authplatform == "1") {
|
||||||
|
|
@ -209,6 +210,8 @@
|
||||||
} else if (_authplatform == "2") {
|
} else if (_authplatform == "2") {
|
||||||
confirmtoggle(true, "학습을 처음 시작할 때 본인인증이 필요합니다. 본인인증은 회차 당 1회에 한 해 진행됩니다.<br/> 본인인증을 하시겠습니까?", "chkmobile()");
|
confirmtoggle(true, "학습을 처음 시작할 때 본인인증이 필요합니다. 본인인증은 회차 당 1회에 한 해 진행됩니다.<br/> 본인인증을 하시겠습니까?", "chkmobile()");
|
||||||
}
|
}
|
||||||
|
// ### 모바일 인증 중단 처리
|
||||||
|
//msg("학습을 시작합니다.", null, null, null, "viewcontents("+_cmino+",false,@(Model.croomlectno))");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
msg("휴대폰 번호가 공란입니다.<br/>정보수정을 통해 번호를 입력해주세요.");
|
msg("휴대폰 번호가 공란입니다.<br/>정보수정을 통해 번호를 입력해주세요.");
|
||||||
|
|
|
||||||
|
|
@ -620,7 +620,8 @@ namespace NP.Model
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return tename == null ? "" : tename.Contains("기본교육") ? "기본" : "전문";
|
return cgcode == "101" ? "기본" : "전문";
|
||||||
|
//return tename == null ? "" : tename.Contains("기본교육") ? "기본" : "전문";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
@ -640,6 +641,7 @@ namespace NP.Model
|
||||||
|
|
||||||
public String userpno { get; set; }
|
public String userpno { get; set; }
|
||||||
public string studytime { get; set; }
|
public string studytime { get; set; }
|
||||||
|
public string cgcode { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue