<기능개선>

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:
jity7777 2023-08-23 07:39:39 +00:00
parent dd8649bb33
commit e3124b7a57
5 changed files with 124 additions and 85 deletions

View File

@ -1789,6 +1789,8 @@ namespace NP.Base.Controllers
d.sedate = Convert.ToDateTime(d.sedatestring);
}
if(!string.IsNullOrWhiteSpace(d.kind) && !string.IsNullOrWhiteSpace(d.cg))
{
if (string.IsNullOrEmpty(d.userpno.Trim()))
{
return JsonBack(new JsonRtn() { code = 1, msg = i + "번째 데이터의 주민번호가 공란입니다." });
@ -1797,10 +1799,10 @@ namespace NP.Base.Controllers
{
return JsonBack(new JsonRtn() { code = 1, msg = i + "번째 데이터의 과정명이 공란입니다." });
}
else if (string.IsNullOrEmpty(d.completeno.Trim()))
{
return JsonBack(new JsonRtn() { code = 1, msg = i + "번째 데이터의 수료번호가 공란입니다." });
}
//else if (string.IsNullOrEmpty(d.completeno.Trim()))
//{
// return JsonBack(new JsonRtn() { code = 1, msg = i + "번째 데이터의 수료번호가 공란입니다." });
//}
else if (string.IsNullOrEmpty(d.ssdatestring.Trim()))
{
return JsonBack(new JsonRtn() { code = 1, msg = i + "번째 데이터의 교육시작일이 공란입니다." });
@ -1845,8 +1847,35 @@ namespace NP.Base.Controllers
*/
d.uno = SUserInfo.UserNo;
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);
}
}
}

View File

@ -903,7 +903,7 @@
,count(p.payno) over() pagetotalcount
,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
,cc1.cname tgname,cc2.cname tename
,cc1.cname tgname,cc2.cname tename, cg.cgcode
,cc3.cname tmname,cc4.cname tjname
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
@ -981,6 +981,7 @@
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 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 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

View File

@ -298,6 +298,8 @@
viewcontents(_cmino, false,@Model.croomlectno);
} else {
_authplatform = capResult.msg;
// ### 모바일 인증 처리
if(_authplatform == "0"){
msg("학습인증수단이 없는 회원입니다. 정보수정을 통해 학습인증수단을 입력해주세요.");
} else if (_authplatform == "1") {
@ -305,6 +307,8 @@
} else if (_authplatform == "2") {
confirmtoggle(true, "학습을 처음 시작할 때 본인인증이 필요합니다. 본인인증은 회차 당 1회에 한 해 진행됩니다.<br/> 본인인증을 하시겠습니까?", "chkmobile()");
}
// ### 모바일 인증 중단 처리
// viewcontents(_cmino, false,@Model.croomlectno);
}
} else {
msg("휴대폰 번호가 공란입니다.<br/>정보수정을 통해 번호를 입력해주세요.");

View File

@ -202,6 +202,7 @@
//viewcontents(_cmino, false,@Model.croomlectno);
} else {
_authplatform = capResult.msg;
// ### 모바일 인증 처리
if(_authplatform == "0"){
msg("학습인증수단이 없는 회원입니다. 정보수정을 통해 학습인증수단을 입력해주세요.");
} else if (_authplatform == "1") {
@ -209,6 +210,8 @@
} else if (_authplatform == "2") {
confirmtoggle(true, "학습을 처음 시작할 때 본인인증이 필요합니다. 본인인증은 회차 당 1회에 한 해 진행됩니다.<br/> 본인인증을 하시겠습니까?", "chkmobile()");
}
// ### 모바일 인증 중단 처리
//msg("학습을 시작합니다.", null, null, null, "viewcontents("+_cmino+",false,@(Model.croomlectno))");
}
} else {
msg("휴대폰 번호가 공란입니다.<br/>정보수정을 통해 번호를 입력해주세요.");

View File

@ -620,7 +620,8 @@ namespace NP.Model
{
get
{
return tename == null ? "" : tename.Contains("기본교육") ? "기본" : "전문";
return cgcode == "101" ? "기본" : "전문";
//return tename == null ? "" : tename.Contains("기본교육") ? "기본" : "전문";
}
}
/// <summary>
@ -640,6 +641,7 @@ namespace NP.Model
public String userpno { get; set; }
public string studytime { get; set; }
public string cgcode { get; set; }
}
/// <summary>