diff --git a/Dao/MyBatis/Maps/Lect.xml b/Dao/MyBatis/Maps/Lect.xml
index 931226d..a354016 100644
--- a/Dao/MyBatis/Maps/Lect.xml
+++ b/Dao/MyBatis/Maps/Lect.xml
@@ -1367,6 +1367,10 @@
,a.time3,a.time4
,a.time5,a.time6
,a.rno
+ ,a.iscomplete
+ ,a.studytime,
+ a.studyplacename studyplacename,
+ a.studyplace
from(
select 1 dtype
,d.tyear intval,d.tseq intval2,c.cshape intval3,a.pstatus intval4,case when e.rfdno is null then 0 else 1 end intval5,a.isrebate intval6,a.itemno intval7
@@ -1376,9 +1380,25 @@
,c.cname strval,null strval2,null strval3
,c.rstime time,c.retime time2
,b.cdt time3,f.estart time4
- ,case when l.sdate is null then c.sstime else l.sdate end time5,case when l.edate is null then c.setime else l.edate end time6
+ ,CASE
+ WHEN l.sdate IS NULL then
+ (case
+ when c.cshape ='1' then f.estart
+ else l.cdt
+ end)
+ ELSE l.sdate
+ end AS time5
+
+ ,case
+ when l.edate is null then f.eend
+ else l.edate
+ end time6
,case when b.pstatus = 1 then 99 else b.pstatus end as sortpstatus
,row_number() over(order by sortpstatus, c.retime, b.payno,a.pino) rno
+ ,l.iscomplete
+ ,c.studytime,
+ cc.cname studyplacename,
+ cmis.studyplace
from payitem a
inner join pay b on b.payno=a.payno and b.pstatus in (21,22,51,55) and b.rstatus < 2
inner join cm c on c.cmno=a.itemno and c.rstime < and c.retime >
@@ -1386,9 +1406,11 @@
inner join term d on d.tmno=c.tmno
left outer join payrfd e on e.payno=a.payno and e.payno=a.payno and e.rstatus=0
left outer join cminningscd f on f.cmisno = l.cmisno
+ LEFT OUTER JOIN cminningscd cmis ON cmis.cmisno = l.cmisno
+ LEFT OUTER JOIN comcode cc ON cc.ccode = cmis.studyplace and cc.cgroup ='studyplace'
where a.ptype in (0,1,4) and a.userno=#userno# and a.pstatus in (21,22,51,55) and a.rstatus=0
and 1 = case when c.retime = '2099-12-31 23:59:59' and l.stime is not null then 0 else 1 end
- order by sortpstatus, c.retime, b.payno,a.pino
+ order by sortpstatus, c.retime desc, b.payno,a.pino
) a
union all
select a.dtype,a.intval,a.intval2,a.intval3,a.intval4,a.intval5,a.intval6,a.intval7,a.intval8,0 intval9
@@ -1398,22 +1420,44 @@
,a.time3,a.time4
,a.time5,a.time6
,a.rno
+ ,a.iscomplete
+ ,a.studytime,
+ a.studyplacename studyplacename,
+ a.studyplace
from (
select 2 dtype
,c.tyear intval,c.tseq intval2,b.cshape intval3,0 intval4,0 intval5,a.isrebate intval6,a.cmno intval7,0 intval8
,a.lectno longval,0 longval2
,b.cname strval,null strval2,null strval3
- ,case when a.sdate is null then b.sstime else a.sdate end as time
- ,case when a.edate is null then b.setime else a.edate end as time2
+ ,case
+ WHEN a.sdate IS NULL then
+ (case
+ when b.cshape ='1' then d.estart
+ else a.cdt
+ end)
+ ELSE a.sdate
+ end AS time
+
+ ,case
+ when a.edate is null then d.eend
+ else a.edate
+ end time2
+
,d.estart time3,d.eend time4
,e.cdt time5,null time6
,row_number() over(order by b.setime desc) rno
,case when d.eend is not null then d.eend else a.edate end as sortedate
+ ,a.iscomplete
+ ,b.studytime,
+ cc.cname studyplacename,
+ cmis.studyplace
from lect a
inner join pay e on e.payno = a.payno
inner join cm b on b.cmno=a.cmno
inner join term c on c.tmno=b.tmno
left outer join cminningscd d on a.cmisno = d.cmisno
+ LEFT OUTER JOIN cminningscd cmis ON cmis.cmisno = a.cmisno
+ LEFT OUTER JOIN comcode cc ON cc.ccode = cmis.studyplace and cc.cgroup ='studyplace'
where a.userno=#userno# and a.status=1 and a.ischanged=0
and (case when a.sdate is null then b.sstime else a.sdate end) <
order by case when time2 > now() then 1 else 0 end desc ,sortedate desc, time2 desc
@@ -1426,6 +1470,10 @@
,null time3, null time4
,null time5, null time6
,a.rno
+ ,a.iscomplete
+ ,a.studytime,
+ a.studyplacename studyplacename,
+ a.studyplace
from (
select 3 dtype
,1 intval,c.iseq intval2,b.classno intval3,0 intval4,0 intval5,0 intval6,a.cmno intval7,0 intval8
@@ -1435,10 +1483,17 @@
,case when a.edate is null then b.setime else a.edate end as time2
,row_number() over(partition by a.cmno order by c.iseq) rno2
,row_number() over(order by b.setime) rno
+ ,a.iscomplete
+ ,b.studytime,
+ cc.cname studyplacename,
+ cmis.studyplace
from lect a
inner join cm b on b.cmno=a.cmno
inner join cminning c on c.cmno=b.cmno and c.isonline=1 and c.isscd = 0
left outer join lectinning d on d.lectno=a.lectno and d.cmino=c.cmino and d.istatus=2
+ LEFT OUTER JOIN cminningscd cmis ON cmis.cmisno = a.cmisno
+ LEFT OUTER JOIN comcode cc ON cc.ccode = cmis.studyplace and cc.cgroup ='studyplace'
+
where a.userno=#userno# and a.status=1 and a.ischanged=0 and d.lectno is null
and a.sdate < and a.edate >
) a
@@ -1451,6 +1506,10 @@
,null time3, null time4
,null time5, null time6
,a.rno
+ ,a.iscomplete
+ ,a.studytime,
+ a.studyplacename studyplacename,
+ a.studyplace
from (
select 3 dtype
,2 intval,c.iseq intval2,b.classno intval3,0 intval4,0 intval5,0 intval6,a.cmno intval7,0 intval8
@@ -1460,11 +1519,17 @@
,case when a.edate is null then b.setime else a.edate end as time2
,row_number() over(partition by a.cmno order by c.iseq) rno2
,row_number() over(order by b.setime) rno
+ ,a.iscomplete
+ ,b.studytime,
+ cc.cname studyplacename,
+ cmis.studyplace
from lect a
inner join cm b on b.cmno=a.cmno
left outer join comcode bc on bc.ccode=b.studyplace
inner join cminning c on c.cmno=b.cmno and c.isonline=0 and c.isscd = 0
+ LEFT OUTER JOIN cminningscd cmis ON cmis.cmisno = a.cmisno
+ LEFT OUTER JOIN comcode cc ON cc.ccode = cmis.studyplace and cc.cgroup ='studyplace'
where a.userno=#userno# and a.status=1 and a.ischanged=0
and a.sdate < and a.edate >
) a
@@ -1477,6 +1542,10 @@
,null time3, null time4
,null time5, null time6
,a.rno
+ ,a.iscomplete
+ ,a.studytime,
+ a.studyplacename studyplacename,
+ a.studyplace
from (
select 3 dtype
,3 intval,0 intval2,b.classno intval3,c.extype intval4,0 intval5,0 intval6,a.cmno intval7,0 intval8
@@ -1486,10 +1555,16 @@
,case when a.edate is null then b.setime else a.edate end as time2
,row_number() over(partition by a.cmno order by c.extype,c.cdt) rno2
,row_number() over(order by b.setime) rno
+ ,a.iscomplete
+ ,b.studytime,
+ cc.cname studyplacename,
+ cmis.studyplace
from lect a
inner join cm b on b.cmno=a.cmno
left outer join comcode bc on bc.ccode=b.studyplace
inner join cmex c on c.cmno=b.cmno and c.isdel=0 and c.econdition <= a.attrate
+ LEFT OUTER JOIN cminningscd cmis ON cmis.cmisno = a.cmisno
+ LEFT OUTER JOIN comcode cc ON cc.ccode = cmis.studyplace and cc.cgroup ='studyplace'
left outer join lectex d on d.lectno=a.lectno and d.exno=c.exno and d.eend is not null
where a.userno=#userno# and a.status=1 and a.ischanged=0 and d.lectno is null
and a.sdate < and a.edate >
@@ -1503,6 +1578,10 @@
,null time3, null time4
,null time5, null time6
,a.rno
+ ,a.iscomplete
+ ,a.studytime,
+ a.studyplacename studyplacename,
+ a.studyplace
from (
select 3 dtype
,4 intval,0 intval2,b.classno intval3,0 intval4,0 intval5,0 intval6,a.cmno intval7,0 intval8
@@ -1512,11 +1591,17 @@
,case when a.edate is null then b.setime else a.edate end as time2
,row_number() over(partition by a.cmno order by c.cdt) rno2
,row_number() over(order by b.setime) rno
+ ,a.iscomplete
+ ,b.studytime,
+ cc.cname studyplacename,
+ cmis.studyplace
from lect a
inner join cm b on b.cmno=a.cmno
left outer join comcode bc on bc.ccode=b.studyplace
inner join cmsd c on c.sdtype=0 and c.cmno=b.cmno and c.isdel=0 and c.sdcondition <= a.attrate
left outer join lectsd d on d.lectno=a.lectno and d.sdno=c.sdno and d.submittime is not null
+ LEFT OUTER JOIN cminningscd cmis ON cmis.cmisno = a.cmisno
+ LEFT OUTER JOIN comcode cc ON cc.ccode = cmis.studyplace and cc.cgroup ='studyplace'
where a.userno=#userno# and a.status=1 and a.ischanged=0 and d.lectno is null
and a.sdate < and a.edate >
) a
@@ -1529,6 +1614,10 @@
,null time3, null time4
,null time5, null time6
,a.rno
+ ,a.iscomplete
+ ,a.studytime,
+ a.studyplacename studyplacename,
+ a.studyplace
from (
select 3 dtype
,5 intval,0 intval2,b.classno intval3,0 intval4,0 intval5,0 intval6,a.cmno intval7,0 intval8
@@ -1538,11 +1627,17 @@
,case when a.edate is null then b.setime else a.edate end as time2
,row_number() over(partition by a.cmno order by c.cdt) rno2
,row_number() over(order by b.setime) rno
+ ,a.iscomplete
+ ,b.studytime,
+ cc.cname studyplacename,
+ cmis.studyplace
from lect a
inner join cm b on b.cmno=a.cmno
left outer join comcode bc on bc.ccode=b.studyplace
inner join cmsd c on c.sdtype=1 and c.cmno=b.cmno and c.isdel=0 and c.sdcondition <= a.attrate
left outer join lectsdboard d on d.lectno=a.lectno and d.sdno=c.sdno and d.isdel=0
+ LEFT OUTER JOIN cminningscd cmis ON cmis.cmisno = a.cmisno
+ LEFT OUTER JOIN comcode cc ON cc.ccode = cmis.studyplace and cc.cgroup ='studyplace'
where a.userno=#userno# and a.status=1 and a.ischanged=0 and d.lectno is null
and a.sdate < and a.edate >
) a
@@ -1555,6 +1650,10 @@
,null time3, null time4
,null time5, null time6
,a.rno
+ ,a.iscomplete
+ ,a.studytime,
+ a.studyplacename studyplacename,
+ a.studyplace
from (
select 4 dtype
,a.scdno intval,a.dday intval2,b.classno intval3,0 intval4,0 intval5,0 intval6,b.cmno intval7,0 intval8
@@ -1562,9 +1661,15 @@
,b.cname strval,null strval2,null strval3
,a.atime time,c.edate time2
,row_number() over(order by a.atime desc) rno
+ ,c.iscomplete
+ ,b.studytime,
+ cc.cname studyplacename,
+ cmis.studyplace
from alarms a
inner join cm b on b.cmno=a.cmexno
inner join lect c on c.cmno=b.cmno and c.userno=a.userno and c.status=1 and c.ischanged=0
+ LEFT OUTER JOIN cminningscd cmis ON cmis.cmisno = c.cmisno
+ LEFT OUTER JOIN comcode cc ON cc.ccode = cmis.studyplace and cc.cgroup ='studyplace'
where a.userno=#userno# and a.scdno < 9 and a.isdel=0
order by a.atime desc
limit 5
@@ -1574,7 +1679,7 @@
update alarms set isdel=1 where alno=#alno# and userno=#userno#
- select a.lectno,a.cmno,a.userno,a.isrebate,a.iscomplete
+ select a.lectno,a.cmno,a.userno,a.isrebate,a.iscomplete,b.studytime,b.outfee
,case when a.sdate is null then b.sstime else a.sdate end as sdate
,case when a.edate is null then b.setime else a.edate end as edate
,b.cmno,b.cname,b.cshape
@@ -1588,8 +1693,10 @@
,1 rno
,e.cdt
,scd.estart,scd.eend
- ,cc.ccode studyplace
- ,cc.cname studyplacename
+
+ ,ccc.cname studyplacename,
+ cmis.studyplace
,case when scd.eend is not null then scd.eend else a.edate end as sortedate
,ci.scdtype
from lect a
@@ -1602,10 +1709,12 @@
left outer join assign ua on ua.asno=u.asno
left outer join cminningscd scd on scd.cmisno = a.cmisno
left outer join cminning ci on ci.cmino = scd.cmino
- left outer join comcode cc on cc.ccode = b.studyplace
+
+ LEFT OUTER JOIN cminningscd cmis ON cmis.cmisno = a.cmisno
+ LEFT OUTER JOIN comcode ccc ON ccc.ccode = cmis.studyplace and ccc.cgroup ='studyplace'
where a.userno=#userno# and a.status=1 and a.ischanged=0
- and b.cshape=#cshape#
+ and b.cshape=#cshape#
and (ifnull(a.iscomplete,0) = 0 and scd.estart > '1900-01-01' and scd.eend > '1900-01-01'
@@ -1613,7 +1722,7 @@
and date_add(a.cdt, interval +1 year) >= date_format(now(),'%Y-%m-%d 23:59:59'))
union all
- select a.lectno,a.cmno,a.userno,a.isrebate,a.iscomplete
+ select a.lectno,a.cmno,a.userno,a.isrebate,a.iscomplete,b.studytime,b.outfee
,case when a.sdate is null then b.sstime else a.sdate end as sdate
,case when a.edate is null then b.setime else a.edate end as edate
,b.cmno,b.cname,b.cshape,b.sstime,b.setime,b.classno,b.isrefund
@@ -1622,10 +1731,12 @@
,u.username,null ccpositionname,CAST(AES_DECRYPT(UNHEX(u.email), ) AS char) email,ua.asname
,row_number() over(partition by e.payno) rno
,e.cdt,null estart, null eend
- ,null studyplace
- ,null studyplacename
+
,a.edate as sortedate
- ,null scdtype
+ ,null scdtype,
+ cc.cname studyplacename,
+ cmis.studyplace
from pay e
inner join lect a on a.payno=e.payno and a.status=1 and a.ischanged=0
inner join cm b on b.cmno=a.cmno and b.sstime <
@@ -1633,10 +1744,14 @@
inner join cg d on d.cgno=b.cgno and d.iscover=1
inner join users u on u.userno=a.userno
left outer join assign ua on ua.asno=u.asno
+
+ LEFT OUTER JOIN cminningscd cmis ON cmis.cmisno = a.cmisno
+ LEFT OUTER JOIN comcode cc ON cc.ccode = cmis.studyplace and cc.cgroup ='studyplace'
+
where e.isgroup=1 and e.userno=#userno# and e.pstatus=1
and b.cshape=#cshape#
union all
- select a.lectno,a.cmno,a.userno,a.isrebate,a.iscomplete
+ select a.lectno,a.cmno,a.userno,a.isrebate,a.iscomplete,b.studytime,b.outfee
,case when a.sdate is null then b.sstime else a.sdate end as sdate
,case when a.edate is null then b.setime else a.edate end as edate
,b.cmno,b.cname,b.cshape,b.sstime,b.setime,b.classno,b.isrefund
@@ -1645,10 +1760,12 @@
,u.username,null ccpositionname,CAST(AES_DECRYPT(UNHEX(u.email), ) AS char) email,ua.asname
,row_number() over(partition by e.payno) rno
,e.cdt,null estart, null eend
- ,null studyplace
- ,null studyplacename
+
,a.edate as sortedate
- ,null scdtype
+ ,null scdtype,
+ cc.cname studyplacename,
+ cmis.studyplace
from lect a0
inner join pay e on e.payno=a0.payno and e.isgroup=1 and e.userno<>#userno# and e.pstatus=1
inner join lect a on a.payno=e.payno and a.status=1 and a.ischanged=0
@@ -1657,6 +1774,8 @@
inner join cg d on d.cgno=b.cgno and d.iscover=1
inner join users u on u.userno=a.userno
left outer join assign ua on ua.asno=u.asno
+ LEFT OUTER JOIN cminningscd cmis ON cmis.cmisno = a0.cmisno
+ LEFT OUTER JOIN comcode cc ON cc.ccode = cmis.studyplace and cc.cgroup ='studyplace'
where a0.userno=#userno# and a0.status=1 and a0.ischanged=0
and b.cshape=#cshape#
order by case when setime < now() then 0 else 1 end desc,sortedate desc, edate desc,payno
@@ -1812,7 +1931,7 @@
select a.*
from (
select a.lectno,a.userno,a.iscomplete,a.sdate,a.edate,a.status
- ,b.cmno,b.cname,b.cshape
+ ,b.cmno,b.cname,b.cshape,b.studytime
,b.rstime,b.retime
,b.sstime,b.setime
,c.tyear,c.tseq
diff --git a/Dao/MyBatis/Maps/Pay.xml b/Dao/MyBatis/Maps/Pay.xml
index 76d179b..3e6fe89 100644
--- a/Dao/MyBatis/Maps/Pay.xml
+++ b/Dao/MyBatis/Maps/Pay.xml
@@ -647,15 +647,15 @@
where a.payno=#payno#
- select a.payno,a.isgroup,a.pstatus ppstatus,a.rstatus prstatus
- ,b.pino,b.ptype,b.pcno,b.itemno,b.userno,b.pstatus,b.rstatus,b.isrebate
- ,c.cname,c.classno,c.rstime,c.retime,c.sstime,c.setime,c.cshape,c.isrefund,c.studydays
- ,cc.cname studyplacename
- ,d.tyear,d.tseq
- ,u.username
- ,ua.asname
- ,uc.cname ccpositionname
- ,CAST(AES_DECRYPT(UNHEX(u.email), ) AS char) email
+ select a.payno,a.isgroup,a.pstatus ppstatus,a.rstatus prstatus,c.studytime
+ ,b.pino,b.ptype,b.pcno,b.itemno,b.userno,b.pstatus,b.rstatus,b.isrebate
+ ,c.cname,c.classno,c.rstime,c.retime,c.sstime,c.setime,c.cshape,c.isrefund,c.studydays
+ ,cc.cname studyplacename,cmis.studyplace
+ ,d.tyear,d.tseq
+ ,u.username
+ ,ua.asname
+ ,uc.cname ccpositionname
+ ,CAST(AES_DECRYPT(UNHEX(u.email), ) AS char) email
,case when max(e.rfdno) > 0 then 1 else 0 end rfdstatus
,lect.cmisno
,a.cdt,cmis.estart cmiestart,cmis.eend cmieend
@@ -665,29 +665,35 @@
from pay a
inner join payitem b on b.payno=a.payno and b.ptype in (0,1,4) and b.pstatus in (21,22,51,55)
inner join cm c on c.cmno=b.itemno and c.rstime < now() and c.retime > now()
- inner join term d on d.tmno=c.tmno
- inner join users u on u.userno=b.userno
- left outer join assign ua on ua.asno=u.asno
- left outer join comcode uc on uc.ccode=u.ccposition
- left outer join payrfditem e0 on e0.pino=b.pino
- left outer join payrfd e on e.rfdno=e0.rfdno and e.payno=a.payno and e.rstatus=0
- left outer join comcode cc on cc.ccode=c.studyplace
- left outer join lect lect on lect.pino=b.pino and lect.ischanged=0
- left outer join cminningscd cmis on cmis.cmisno=lect.cmisno
- where a.userno=#userno# and a.pstatus in (1,21,22,51,55) and lect.status < 8
- and 1 = case when c.retime = '2099-12-31 23:59:59' and lect.stime is not null then 0 else 1 end
- group by a.payno,a.isgroup,a.pstatus,a.rstatus
- ,b.pino,b.ptype,b.pcno,b.itemno,b.userno,b.pstatus,b.rstatus,b.isrebate
- ,c.cname,c.classno,c.rstime,c.retime,c.sstime,c.setime,c.cshape
- ,cc.cname
- ,d.tyear,d.tseq
- ,u.username
- ,ua.asname
- ,uc.cname
- ,u.email
- ,lect.cmisno
- ,cmis.estart,cmis.eend
- order by sortpstatus, c.retime, a.payno,b.pino
+ inner join term d on d.tmno=c.tmno
+ inner join users u on u.userno=b.userno
+ left outer join assign ua on ua.asno=u.asno
+ left outer join comcode uc on uc.ccode=u.ccposition
+ left outer join payrfditem e0 on e0.pino=b.pino
+ left outer join payrfd e on e.rfdno=e0.rfdno and e.payno=a.payno and e.rstatus=0
+ left outer join lect lect on lect.pino=b.pino and lect.ischanged=0
+ left outer join cminningscd cmis on cmis.cmisno=lect.cmisno
+ LEFT OUTER JOIN comcode cc
+ ON cc.ccode = cmis.studyplace
+ and cc.cgroup ='studyplace'
+
+ where a.userno=#userno# and a.pstatus in (1,21,22,51,55) and lect.status < 8
+ and c.cshape=#cshape#
+ and 1 = case when c.retime = '2099-12-31 23:59:59' and lect.stime is not null then 0 else 1 end
+ group by a.payno,a.isgroup,a.pstatus,a.rstatus
+ ,b.pino,b.ptype,b.pcno,b.itemno,b.userno,b.pstatus,b.rstatus,b.isrebate
+ ,c.cname,c.classno,c.rstime,c.retime,c.sstime,c.setime,c.cshape
+ ,cc.cname
+ ,d.tyear,d.tseq
+ ,u.username
+ ,ua.asname
+ ,uc.cname
+ ,u.email
+ ,lect.cmisno
+ ,cmis.estart,cmis.eend
+ order by sortpstatus, c.retime, a.payno,b.pino
+
update pay set
@@ -953,8 +959,13 @@
order by d.rfdno,b.rstatus,ispast,b.pino
- delete from payrfd where payno=#payno#;
- insert into payrfd(payno,rtext,bankname,bankno,bankowner,isowner,rstatus,ruser,rphone,rreason,fgnor,fgnob,ramt, )
+
+ delete from payrfditem
+ where rfdno in (select rfdno from payrfd where payno =#payno#);
+
+ delete from payrfd where payno=#payno#;
+
+ insert into payrfd(payno,rtext,bankname,bankno,bankowner,isowner,rstatus,ruser,rphone,rreason,fgnor,fgnob,ramt, )
select distinct #payno#,#rtext#,#bankname#
,HEX(AES_ENCRYPT(#bankno#, ))
,#bankowner#,#isowner#,#rstatus#,#ruser#
diff --git a/FO/Controllers/CourseController.cs b/FO/Controllers/CourseController.cs
index 2ca2e73..c4ff613 100644
--- a/FO/Controllers/CourseController.cs
+++ b/FO/Controllers/CourseController.cs
@@ -943,7 +943,7 @@ namespace NP.FO.Controllers
foreach (var item in cmInningscdTmp)
{
vm.SelectCMInningscd = item;
- if (item.studyplace != null)
+ if (vm.CM.cshape == 1)
{
item.scdInfoSummary = string.Format("{0} ~ {1}", item.estart.ToString("yyyy년 MM월 dd일"), item.eend.ToString("MM월 dd일"));
}
@@ -1032,7 +1032,7 @@ namespace NP.FO.Controllers
foreach (var item in cmInningscdTmp)
{
vm.SelectCMInningscd = item;
- if (item.studyplace != null)
+ if (vm.CM.cshape == 1)
{
item.scdInfoSummary = string.Format("{0} ~ {1}", item.estart.ToString("yyyy년 MM월 dd일"), item.eend.ToString("MM월 dd일"));
}
@@ -1189,7 +1189,7 @@ namespace NP.FO.Controllers
foreach (var item in cmInningscdTmp)
{
vm.SelectCMInningscd = item;
- if (item.studyplace != null)
+ if (vm.CM.cshape == 1)
{
item.scdInfoSummary = string.Format("{0} ~ {1}", item.estart.ToString("yyyy년 MM월 dd일"), item.eend.ToString("MM월 dd일"));
}
@@ -1245,7 +1245,7 @@ namespace NP.FO.Controllers
foreach (var item in cmInningscdTmp)
{
vm.SelectCMInningscd = item;
- if (item.studyplace != null)
+ if (vm.CM.cshape == 1)
{
item.scdInfoSummary = string.Format("{0} ~ {1}", item.estart.ToString("yyyy년 MM월 dd일"), item.eend.ToString("MM월 dd일"));
}
diff --git a/FO/Controllers/FOBaseController.cs b/FO/Controllers/FOBaseController.cs
index 07ad682..deb74c4 100644
--- a/FO/Controllers/FOBaseController.cs
+++ b/FO/Controllers/FOBaseController.cs
@@ -797,7 +797,7 @@ namespace NP.FO.Controllers
foreach (var item in cmInningscdTmp)
{
vm.SelectCMInningscd = item;
- if (item.studyplace != null)
+ if (vm.CM.cshape == 1)
{
item.scdInfoSummary = string.Format("{0} ~ {1}", item.estart.ToString("yyyy년 MM월 dd일"), item.eend.ToString("MM월 dd일"));
}
diff --git a/FO/Controllers/MyController.cs b/FO/Controllers/MyController.cs
index aca500b..43198c4 100644
--- a/FO/Controllers/MyController.cs
+++ b/FO/Controllers/MyController.cs
@@ -48,6 +48,40 @@ namespace NP.FO.Controllers
//신청중인강좌 없고 고객사사이트가 아니면 수강완료한 강좌 중 후행과정 -> 선행과정 -> 직급추천과정 2개 출력
vm.CMs = Dao.Get("lect.myrecomm", SUserInfo.UserNo);
}
+ //20220803
+ vm.Lects = Dao.Get("lect.mylectures", new System.Collections.Hashtable() { { "userno", SUserInfo.UserNo }, { "cgcode", vm.intval > 0 ? TestCode3 : null }, { "cshape", vm.stringval } });
+
+ foreach (var item in vm.Datas)
+ {
+ //time5 = lect.sdate / time6 = lect.edate / pstatus=intval4
+ if (item.intval4 == 22)
+ {
+ item.lectStatus = "미입금";
+ }
+ else
+ {
+ // 입금상태
+ if(item.time5 > DateTime.Now)
+ {
+ item.lectStatus = "입교확정";
+ }
+ else if(item.time5 <= DateTime.Now && item.time2 >= DateTime.Now )
+ {
+ item.lectStatus = "교육진행중";
+ }
+ /*else if (item.time6 < DateTime.Now)
+ {
+ if (item.iscomplete == null || item.iscomplete == 0)
+ {
+ item.lectStatus = "미수료";
+ }
+ else
+ {
+ item.lectStatus = "수료";
+ }
+ }*/
+ }
+ }
return View(vm);
}
public ActionResult BoardList(VMCC vm)
@@ -138,7 +172,7 @@ namespace NP.FO.Controllers
}
public ActionResult Ready(VMMy vm)
{
- vm.PIs = Dao.Get("pay.mypayitems", new System.Collections.Hashtable() { {"userno", SUserInfo.UserNo } });
+ vm.PIs = Dao.Get("pay.mypayitems", new System.Collections.Hashtable() { {"userno", SUserInfo.UserNo }, { "cgcode", vm.intval > 0 ? TestCode3 : null }, { "cshape", vm.stringval } });
return View(vm);
}
public ActionResult ReadyPay(VMPay vm)
@@ -163,16 +197,60 @@ namespace NP.FO.Controllers
hsData.Add("cgcode", vm.intval > 0 ? TestCode3 : null);
hsData.Add("cshape", vm.stringval);
vm.Lects = Dao.Get("lect.mylectures", hsData);
+
+ foreach (var item in vm.Lects)
+ {
+ if ((item.iscomplete == null || item.iscomplete == 0) && item.edate < DateTime.Now)
+ {
+ item.lectStatus = "미수료";
+ }
+ else if (item.iscomplete == 1 && item.edate < DateTime.Now)
+ {
+ item.lectStatus = "수료";
+ }
+ else if (item.sdate > DateTime.Now)
+ {
+ item.lectStatus = "입교확정";
+ }
+ else if (item.sdate <= DateTime.Now)
+ {
+ item.lectStatus = "교육진행중";
+ }
+ }
+
return View(vm);
}
public ActionResult LectureOn(VMMy vm)
{
+ vm.cmm = Dao.Get("cm.cms", new System.Collections.Hashtable()).FirstOrDefault();
Hashtable hsData = new Hashtable();
hsData.Add("userno", SUserInfo.UserNo);
hsData.Add("cgcode", vm.intval > 0 ? TestCode3 : null);
//hsData.Add("cshape", 2);
- hsData.Add("issubtable", 1);
+ hsData.Add("issubtable", 1);
vm.Lects = Dao.Get("lect.mylectures", hsData);
+
+
+ foreach (var item in vm.Lects)
+ {
+ if ((item.iscomplete == null || item.iscomplete == 0) && item.edate < DateTime.Now)
+ {
+ item.lectStatus = "미수료";
+ }
+ else if (item.iscomplete == 1 && item.edate < DateTime.Now)
+ {
+ item.lectStatus = "수료";
+ }
+ else if (item.sdate > DateTime.Now)
+ {
+ item.lectStatus = "입교확정";
+ }
+ else if (item.sdate <= DateTime.Now)
+ {
+ item.lectStatus = "교육진행중";
+ }
+ }
+
return View(vm);
}
public ActionResult CertPrint(VMMy vm)
@@ -473,6 +551,32 @@ namespace NP.FO.Controllers
vm.Lects = Dao.Get("lect.lecture.document.past", ht);
}
+
+ foreach (var item in vm.Lects)
+ {
+ if ((item.iscomplete == null || item.iscomplete == 0) && item.edate < DateTime.Now)
+ {
+ item.lectStatus = "미수료";
+ }
+ else if (item.iscomplete == 1 && item.edate < DateTime.Now)
+ {
+ item.lectStatus = "수료";
+ }
+ else if (/*item.sdate == null &&*/ item.pstatus == 22)
+ {
+ item.lectStatus = "미입금";
+ }
+ else if (item.sdate > DateTime.Now)
+ {
+ item.lectStatus = "입교확정";
+ }
+ else if (item.sdate <= DateTime.Now)
+ {
+ item.lectStatus = "교육진행중";
+ }
+
+ }
+
return View(vm);
}
}
diff --git a/FO/Views/CRoom/Boards.cshtml b/FO/Views/CRoom/Boards.cshtml
index 1bd8a84..9f8f9b7 100644
--- a/FO/Views/CRoom/Boards.cshtml
+++ b/FO/Views/CRoom/Boards.cshtml
@@ -17,14 +17,14 @@
@foreach (var b in Model.Boards.Where(w => w.pbno == null))
{
-
+
Q.
@Html.Raw(b.subject ?? "")
-
+
@@ -55,8 +55,10 @@ else
}
if (Model.BM.bmtype > 0)
diff --git a/FO/Views/Course/ApplyAgree.cshtml b/FO/Views/Course/ApplyAgree.cshtml
index 8b48e03..082c495 100644
--- a/FO/Views/Course/ApplyAgree.cshtml
+++ b/FO/Views/Course/ApplyAgree.cshtml
@@ -17,31 +17,43 @@
신청강좌
-
+
-
- @(Model.CM.cshape == 0 ? "온라인" : Model.CM.cshape == 1 ? "교육장교육" : "온라인교육")
-
- @{
- string strStudyPlaceTmp = "";
- if (Model.SelectCMInningscd.studyplace != null)
- {
- strStudyPlaceTmp = string.Format("[{0}교육장] {1}", Model.SelectCMInningscd.studyplacename, Model.CM.cname);
- }
- else
- {
- strStudyPlaceTmp = string.Format("{0}", Model.CM.cname);
- }
-
- //Model.SelectCMInningscd.eend2 교육종료일
- string strEduInfo = string.Format("교육기간 {0} | 교육종료일 {1} | {2}시간과정 | {3}과정 | 교육비 {4}원",
+
+
+ @(Model.CM.cshape == 0 ? "온라인" : Model.CM.cshape == 1 ? "교육장교육" : "온라인교육")
+
+ @{
+ string strStudyPlaceTmp = "";
+ string strStudyPlaceTmp2 = "";
+ string strEduInfo = "";
+ if (Model.SelectCMInningscd.studyplace != null)
+ {
+ strStudyPlaceTmp = string.Format("[{0}교육장]", Model.SelectCMInningscd.studyplacename);
+ strStudyPlaceTmp2 = string.Format("{0}", Model.CM.cname);
+ }
+ else
+ {
+ strStudyPlaceTmp = string.Format("{0}", Model.CM.cname);
+ }
+ if (Model.CM.cshape == 1)
+ {
+ strEduInfo = string.Format("교육기간 {0} | {2}시간과정 | {3}과정 교육비 : {4}원 ",
Model.SelectCMInningscd.scdInfoSummary, Model.SelectCMInningscd.eend2, Model.CM.studytime, (Model.CM.isrefund == 1 ? "환급" : "비환급"), Model.CM.infee.ToString("#,0"));
- }
- @strStudyPlaceTmp
-
@Html.Raw(strEduInfo)
+ }
+ else
+ {
+ //Model.SelectCMInningscd.eend2 교육종료일
+ strEduInfo = string.Format("교육기간 {0} | 교육종료일 {1} | {2}시간과정 | {3}과정 교육비 : {4}원 ",
+ Model.SelectCMInningscd.scdInfoSummary, Model.SelectCMInningscd.eend2, Model.CM.studytime, (Model.CM.isrefund == 1 ? "환급" : "비환급"), Model.CM.infee.ToString("#,0"));
+ } }
+
+ @Html.Raw("" + strStudyPlaceTmp + " ") @strStudyPlaceTmp2
+ @Html.Raw(strEduInfo)
+
@@ -120,13 +132,17 @@
}
- ※ 반드시 확인하세요
- - 실제 이수해야 할 내용과 신청내용이 다른 경우 교육인정 및 수정이 불가능 하오니 정확하게 확인 해주세요.
- - 상기 신청내용의 등급이 직무분야의 등급으로 맞게 기재되어 있는지 확인해주세요. (전문분야 등급 아님)
- - 건설사업관리기술인은 감리업무를 수행하는 기술인 을 말합니다.
- - 승급교육일 경우 등급은 승급 후 등급이 기재되어야 하며 승급대상 여부 등을 반드시 협회로 확인 해주세요.
- - 승급교육 또는 계속교육을 인정받으려면 기본교육 및 최초교육을 먼저 이수하여야 합니다.
-
+
+
+ ※ 반드시 확인하세요
+ - 실제 이수해야 할 내용과 신청내용이 다른 경우 교육인정 및 수정이 불가능 하오니 정확하게 확인 해주세요.
+ - 상기 신청내용의 등급이 직무분야의 등급으로 맞게 기재되어 있는지 확인해주세요. (전문분야 등급 아님)
+ - 건설사업관리기술인은 감리업무를 수행하는 기술인 을 말합니다.
+ - 승급교육일 경우 등급은 승급 후 등급이 기재되어야 하며 승급대상 여부 등을 반드시 협회로 확인 해주세요.
+ - 승급교육 또는 계속교육을 인정받으려면 기본교육 및 최초교육을 먼저 이수하여야 합니다.
+ - 모든 최초,승급,계속 교육 등은 직무분야 교육이며전문분야 관련으로 따로 이수하여야 할 교육은 없습니다.
+
+
@if (Model.CM.cshape == 1)
{
@@ -158,7 +174,7 @@
※ 위 4가지 조건 모두 만족하셔야 수료가 가능합니다.
※ 하루 최대 학습 시간은 10차시 입니다.
- ※ 현재 코로나로 인하여 기존 (동영상강의 시청 27시간 + 현장집체7시간 참석) 에서 한시적으로 (동영상강의 시청 35시간)으로 진행합니다.
+ ※ 현재 코로나로 인하여 기존 (동영상강의 시청 28시간 + 현장집체7시간 참석) 에서 한시적으로 (동영상강의 시청 35시간)으로 진행합니다.
@*※ 국토부 장관이 인정하는 사유로 집체교육을 실시 하지 못할 시 에는 동영상강의로 대체되며 7시간을 100% 이수하셔야 수료가 가능합니다. *@
diff --git a/FO/Views/Course/ApplyComplete.cshtml b/FO/Views/Course/ApplyComplete.cshtml
index b5f05b4..06e02ad 100644
--- a/FO/Views/Course/ApplyComplete.cshtml
+++ b/FO/Views/Course/ApplyComplete.cshtml
@@ -19,30 +19,43 @@ else
var isallday = !string.IsNullOrEmpty(Model.CM.retimeymd) ? (Model.CM.retimeymd == "2099-12-31" ? true : false) : false;
신청강좌
-
+
-
- @(Model.CM.cshape == 0 ? "온라인" : Model.CM.cshape == 1 ? "교육장교육" : "온라인교육")
-
- @{
- string strStudyPlaceTmp = "";
- if (Model.SelectCMInningscd.studyplace != null)
- {
- strStudyPlaceTmp = string.Format("[{0}교육장] {1}", Model.SelectCMInningscd.studyplacename, Model.CM.cname);
- }
- else
- {
- strStudyPlaceTmp = string.Format("{0}", Model.CM.cname);
- }
-
- //Model.SelectCMInningscd.eend2 교육종료일
- string strEduInfo = string.Format("교육기간 {0} | 교육종료일 {1} | {2}시간과정 | {3}과정 | 교육비 {4}원",
+
+
+ @(Model.CM.cshape == 0 ? "온라인" : Model.CM.cshape == 1 ? "교육장교육" : "온라인교육")
+
+ @{
+ string strStudyPlaceTmp = "";
+ string strStudyPlaceTmp2 = "";
+ string strEduInfo = "";
+ if (Model.SelectCMInningscd.studyplace != null)
+ {
+ strStudyPlaceTmp = string.Format("[{0}교육장]", Model.SelectCMInningscd.studyplacename);
+ strStudyPlaceTmp2 = string.Format("{0}", Model.CM.cname);
+ }
+ else
+ {
+ strStudyPlaceTmp = string.Format("{0}", Model.CM.cname);
+ }
+ if (Model.CM.cshape == 1)
+ {
+ strEduInfo = string.Format("교육기간 {0} | {2}시간과정 | {3}과정 교육비 : {4}원 ",
Model.SelectCMInningscd.scdInfoSummary, Model.SelectCMInningscd.eend2, Model.CM.studytime, (Model.CM.isrefund == 1 ? "환급" : "비환급"), Model.CM.infee.ToString("#,0"));
- }
- @strStudyPlaceTmp
-
@Html.Raw(strEduInfo)
+
+ }
+ else
+ {
+ //Model.SelectCMInningscd.eend2 교육종료일
+ strEduInfo = string.Format("교육기간 {0} | 교육종료일 {1} | {2}시간과정 | {3}과정 교육비 : {4}원 ",
+ Model.SelectCMInningscd.scdInfoSummary, Model.SelectCMInningscd.eend2, Model.CM.studytime, (Model.CM.isrefund == 1 ? "환급" : "비환급"), Model.CM.infee.ToString("#,0"));
+ }
+ }
+ @Html.Raw("" + strStudyPlaceTmp + " ") @strStudyPlaceTmp2
+@Html.Raw(strEduInfo)
+
diff --git a/FO/Views/Course/ApplyEdu.cshtml b/FO/Views/Course/ApplyEdu.cshtml
index 94c4758..e30a91c 100644
--- a/FO/Views/Course/ApplyEdu.cshtml
+++ b/FO/Views/Course/ApplyEdu.cshtml
@@ -30,31 +30,44 @@
신청강좌
-
+
-
- @(Model.CM.cshape == 0 ? "온라인" : Model.CM.cshape == 1 ? "교육장교육" : "온라인교육")
-
- @{
- string strStudyPlaceTmp = "";
- if (Model.SelectCMInningscd.studyplace != null)
- {
- strStudyPlaceTmp = string.Format("[{0}교육장] {1}", Model.SelectCMInningscd.studyplacename, Model.CM.cname);
- }
- else
- {
- strStudyPlaceTmp = string.Format("{0}", Model.CM.cname);
- }
- //Model.SelectCMInningscd.eend2 교육종료일
- string strEduInfo = string.Format("교육기간 {0} | 교육종료일 {1} | {2}시간과정 | {3}과정 | 교육비 {4}원",
+
+
+ @(Model.CM.cshape == 0 ? "온라인" : Model.CM.cshape == 1 ? "교육장교육" : "온라인교육")
+
+ @{
+ string strStudyPlaceTmp = "";
+ string strStudyPlaceTmp2 = "";
+ string strEduInfo = "";
+ if (Model.SelectCMInningscd.studyplace != null)
+ {
+ strStudyPlaceTmp = string.Format("[{0}교육장]", Model.SelectCMInningscd.studyplacename);
+ strStudyPlaceTmp2 = string.Format("{0}", Model.CM.cname);
+ }
+ else
+ {
+ strStudyPlaceTmp = string.Format("{0}", Model.CM.cname);
+ }
+ if (Model.CM.cshape == 1)
+ {
+ strEduInfo = string.Format("교육기간 {0} | {2}시간과정 | {3}과정 교육비 : {4}원 ",
Model.SelectCMInningscd.scdInfoSummary, Model.SelectCMInningscd.eend2, Model.CM.studytime, (Model.CM.isrefund == 1 ? "환급" : "비환급"), Model.CM.infee.ToString("#,0"));
- }
- @strStudyPlaceTmp
-
@Html.Raw(strEduInfo)
+ }else {
+ //Model.SelectCMInningscd.eend2 교육종료일
+ strEduInfo = string.Format("교육기간 {0} | 교육종료일 {1} | {2}시간과정 | {3}과정 교육비 : {4}원 ",
+ Model.SelectCMInningscd.scdInfoSummary, Model.SelectCMInningscd.eend2, Model.CM.studytime, (Model.CM.isrefund == 1 ? "환급" : "비환급"), Model.CM.infee.ToString("#,0"));
+ }
+ }
+
+
+ @Html.Raw(""+strStudyPlaceTmp+" ") @strStudyPlaceTmp2
+ @Html.Raw(strEduInfo)
+
@@ -83,7 +96,7 @@
@if (Model.CM.isaccommodation == 1 && Model.SelectCMInningscd.studyplace == "19")
{
-
합숙여부 (영천교육장만 합숙가능)
+
합숙여부 (영천교육장만 합숙가능)
예 ( 원 추가)
@@ -96,7 +109,7 @@
@if (Model.CM.isrefund == 1)
{
- 환급여부선택 (고용보험 가입자만 환급가능)
+ 환급여부선택 (고용보험 가입자만 환급가능)
@@ -137,25 +150,25 @@
@if (Model.CM.isrefund == 1)
{
-
환급금 수령계좌 등록 (법인계좌만 입력가능)
+
환급금 수령계좌 등록 (법인계좌만 입력가능)
*는 필수 입력사항입니다.
@@ -389,6 +402,11 @@
@Html.Partial("./Partial/filescript")
}
-
+
+
@if (ViewBag.isPayTest == "1")
{
//테스트일 경우
-
+
+
}
else
{
diff --git a/FO/Views/My/Index.cshtml b/FO/Views/My/Index.cshtml
index fb9708c..fcbb428 100644
--- a/FO/Views/My/Index.cshtml
+++ b/FO/Views/My/Index.cshtml
@@ -45,11 +45,11 @@
-
수강 가능한 과정 (입금이 완료되어 교육진행이 가능한 과정입니다.)
+
■ 수강 가능한 과정 (입금이 완료되어 교육진행이 가능한 과정입니다.)
더보기
-
※ 이미 수료된 과정은 수강과정 메뉴에서 확인 가능합니다.
-
※ 교육비 환불 신청은 결제관리 메뉴에서 가능합니다.
+
※ 이미 수료된 과정은 수강과정 메뉴에서 확인 가능합니다. ※ 교육비 환불 신청은 결제관리 메뉴에서 가능합니다.
+
}
-
신청중인 과정 (신청되어 있는 과정이며 입금완료 시 수강 중인 과정으로 이동합니다.) 더보기
-
※ 온라인교육은 입금완료 시 바로 동영상 강의 시청이 가능합니다.
-
※ 교육신청 취소는 신청과정 메뉴에서 가능 합니다.
+
■ 신청중인 과정 (신청되어 있는 과정이며 입금완료 시 수강 중인 과정으로 이동합니다.) 더보기
+
※ 온라인교육은 입금완료 시 바로 동영상 강의 시청이 가능합니다. ※ 교육신청 취소는 신청과정 메뉴에서 가능 합니다.
+
@foreach (var d in Model.Datas.Where(w => w.dtype == 1))
{
@@ -148,18 +165,40 @@
}
@**@
-
+
- @d.intval-@(d.intval2)기
- @(d.intval3 == 0 ? "온라인" : d.intval3 == 1 ? "교육장" : "온라인")
- @Html.Raw(d.intval6 == 1 ? "환급 " : "")
+ @(d.intval3 == 0 ? "온라인교육" : d.intval3 == 1 ? "교육장교육" : "온라인교육")
+ @if (d.studyplace == null)
+ {
+ @d.studyplacename 교육장
+ }
+ else if (d.studyplace != null)
+ {
+ @d.studyplacename 교육장
+ }
+ @* @Html.Raw(d.intval6 == 1 ? "환급 " : "")*@
@d.strval
- @(d.intval5 == 1 ? "환불요청" : d.intval4 == 1 ? "결제완료" : d.intval4 == 21 ? "결제대기" : d.intval4 == 22 ? "미입금" : d.intval4 == 51 ? "심사중" : d.intval4 == 55 ? "승인대기" : "")
- @*교육기간 : @(d.time2.Year == 2099 ? "결제완료일로부터 "+d.intval9+"일" : (d.intval3 == 1 ? d.time5.ToString("yy-MM-dd") : d.time3.ToString("yy-MM-dd"))+ " ~ "+ (d.intval3 == 1 ? d.time6.ToString("yy-MM-dd") : d.time4.ToString("yy-MM-dd"))) *@
- 교육기간 : @(d.time2.Year == 2099 ? "신청일부터 선택한 교육종료일까지" : (d.intval3 == 1 ? d.time5.ToString("yy-MM-dd") : d.time3.ToString("yy-MM-dd"))+ " ~ "+ (d.intval3 == 1 ? d.time6.ToString("yy-MM-dd") : d.time4.ToString("yy-MM-dd")))
+ @*@(d.time2 > DateTime.Now ? "진행중" : "종료") *@
+ @*@(d.intval4 == 55 ? "승인대기" : d.intval14 == 51 ? "심사중" : d.intval14 == 21 ? "결제대기" : d.intval14 == 22 ? "미입금" : d.intval14 == 1) *@
+ @d.lectStatus
+ @*교육기간 : @(d.intval3 == 1 ? d.time.ToString("yy-MM-dd") : d.time5.ToString("yy-MM-dd")) ~ @(d.intval3 == 1 ? d.time2.ToString("yy-MM-dd") : d.time3.ToString("yy-MM-dd")) *@
+ 교육기간 : @(d.time.ToString("yyyy년 MM월 dd일")) ~ @(d.time2.ToString("yyyy년 MM월 dd일"))
+ @if (d.intval3 != 1)
+ {
+ 교육종료일 : @(string.Format("{0}", d.time2.ToString("yyyy년 MM월 dd일")))
+ }
+ @d.studytime시간과정
+ @Html.Raw(d.intval3 == 1 ? "환급과정 " : "비환급과정 ")
+
+ @* 복습기간 : @(d.time2.AddYears(1).ToString("yy-MM-dd")) *@
+ @* @if (false && d.intval3 == 2 && d.time3 > Convert.ToDateTime("1900-01-01"))
+ {
+ 집체교육 : @d.time3.ToString("yy/MM/dd")
+ }*@
+
status1CNT++;
diff --git a/FO/Views/My/Lecture.cshtml b/FO/Views/My/Lecture.cshtml
index d794055..f21ba00 100644
--- a/FO/Views/My/Lecture.cshtml
+++ b/FO/Views/My/Lecture.cshtml
@@ -19,11 +19,11 @@
- - 2021년 7월 이후 과정 중 수강이 확정 된 과정 을 확인할 수 있습니다.
- - 2021년 7월 이전 교육과정의 수료증 출력은 증빙서류출력 메뉴의 이전과정 탭 에서 가능합니다.
- - 결제완료 된 교육을 취소 하실 경우 결제관리 메뉴에서 환불요청을 해주셔야 합니다.
- - 교육장교육은 교육기간 시작일에 교육장으로 입교 하시면 됩니다.
- - 온라인교육은 해당과정 클릭 시 강의장으로 이동되며 강의 시청이 바로 가능합니다.
+ - 2021년 7월 이후 과정 중 수강이 확정 된 과정 을 확인할 수 있습니다.
+ - 2021년 7월 이전 교육과정의 수료증 출력은 증빙서류출력 메뉴의 이전과정 탭 에서 가능합니다.
+ - 결제완료 된 교육을 취소 하실 경우 결제관리 메뉴에서 환불요청을 해주셔야 합니다.
+ - 교육장교육은 교육기간 시작일에 교육장으로 입교 하시면 됩니다.
+ - 온라인교육은 해당과정 클릭 시 강의장으로 이동되며 강의 시청이 바로 가능합니다.
@@ -59,39 +59,34 @@
}
w.payno == d.payno && w.userno==ViewBag.SSUserNo).First().lectno, d.cmno) : "#")" @strComplete class="gocroom">
- @if(d.cshape == 1)
+
+ @d.cshapename
+ @if (d.studyplace == null)
{
- @d.tyear-@(d.tseq)기
+ @d.studyplacename 교육장
+ } else if(d.studyplace != null){
+ @d.studyplacename 교육장
}
- @d.cshapename
- @Html.Raw(d.isrebate == 1 ? "환급 " : "")
- @d.cname (@(d.classno))
-
+ @d.cname (@(d.classno))
+
- DateTime.Now ? "ltaDlblue" : "ltaDlred")">@(d.edate > DateTime.Now ? "교육기간 학습중" : d.edate.Value.AddYears(1) > DateTime.Now ? "복습가능" : "종료")
-
- @*교육기간 : @(string.Format("{0} ~ {1}", d.cshape == 1 ? d.sdate.Value.ToString("yy-MM-dd") : d.cdt.ToString("yy-MM-dd") , d.edate.Value.ToString("yy-MM-dd")))*@
- 교육기간 : @(string.Format("{0} ~ {1}", d.sdate.Value.ToString("yy-MM-dd") , d.edate.Value.ToString("yy-MM-dd")))
+
+ @d.lectStatus
- @if(d.cshape != 1)
- {
- 복습기간 : @(d.edate.Value.AddYears(1).ToString("yy-MM-dd"))까지
- }
- @if (d.cshape == 2 && d.estart > Convert.ToDateTime("1900-01-01") && d.eend > Convert.ToDateTime("1900-01-01"))
- {
- @(d.scdtype == 1 ? "교육종료일" : "집체교육일") : @(string.Format("{0}", d.estart.ToString("yy-MM-dd")))
- }
+
+ 교육기간 : @(string.Format("{0} ~ {1}", d.sdate.Value.ToString("yyyy년 MM월 dd일") , d.edate.Value.ToString("yyyy년 MM월 dd일")))
+
+ @if (d.cshape != 1) {
+ 교육종료일 : @(string.Format("{0}", d.estart.ToString("yyyy년 MM월 dd일")))
+
+ }
+ @d.studytime 시간과정
+ @Html.Raw(d.isrebate == 1 ? "환급과정 " : "비환급과정 ")
+
+
- @*@if (d.cshape == 2 && d.estart > Convert.ToDateTime("1900-01-01") && d.eend > Convert.ToDateTime("1900-01-01") && d.iscomplete != 1 && Convert.ToDateTime(d.estart) > DateTime.Now)
- {
-
-
-
-
-
-
- }*@
+
diff --git a/FO/Views/My/LectureOn.cshtml b/FO/Views/My/LectureOn.cshtml
index ea810c8..9d11bdd 100644
--- a/FO/Views/My/LectureOn.cshtml
+++ b/FO/Views/My/LectureOn.cshtml
@@ -7,7 +7,7 @@
※ 온라인교육은 관련 법령에 의해 일일 최대 학습시간이 학습중인 모든 과정에 대하여 10시간(10차시)이오니 일정변경에 참고하시기 바랍니다.
- 일정변경 시 주의사항
+ 일정변경 시 주의사항
@@ -23,28 +23,34 @@
- @if(d.cshape == 1)
+
+ @d.cshapename
+ @if (d.studyplace == null)
{
- @d.tyear-@(d.tseq)기
+ @d.studyplacename 교육장
}
- @d.cshapename
- @Html.Raw(d.isrebate == 1 ? "환급 " : "")
+ else if (d.studyplace != null)
+ {
+ @d.studyplacename 교육장
+ }
+
@d.cname (@(d.classno))
- DateTime.Now ? "ltaDlblue" : "ltaDlred")">@(d.edate > DateTime.Now ? "교육기간 학습중" : d.edate.Value.AddYears(1) > DateTime.Now ? "복습가능" : "종료")
+
+ @d.lectStatus
+
@*교육기간 : @(string.Format("{0} ~ {1}", d.cshape == 1 ? d.sdate.Value.ToString("yy-MM-dd") : d.cdt.ToString("yy-MM-dd") , d.edate.Value.ToString("yy-MM-dd")))*@
- 교육기간 : @(string.Format("{0} ~ {1}", d.sdate.Value.ToString("yy-MM-dd"), d.edate.Value.ToString("yy-MM-dd")))
+ 교육기간 : @(string.Format("{0} ~ {1}", d.sdate.Value.ToString("yyyy년 MM월 dd일"), d.edate.Value.ToString("yyyy년 MM월 dd일")))
- @if(d.cshape != 1)
+ @if (d.cshape != 1)
{
- 복습기간 : @(d.edate.Value.AddYears(1).ToString("yy-MM-dd"))까지
- }
- @if (d.cshape == 2 && d.estart > Convert.ToDateTime("1900-01-01") && d.eend > Convert.ToDateTime("1900-01-01"))
- {
- @(d.scdtype == 1 ? "교육종료일" : "집체교육일") : @(string.Format("{0}", d.estart.ToString("yy-MM-dd")))
+ 교육종료일 : @(string.Format("{0}", d.estart.ToString("yyyy년 MM월 dd일")))
+
}
+ @d.studytime 시간과정
+ @Html.Raw(d.isrebate == 1 ? "환급과정 " : "비환급과정 ")
@@ -69,7 +75,14 @@
-
교육일정변경
+ @if (Model.cmm.cshape == 1)
+ {
+
교육장교육 일정변경
+ }
+ else if (Model.cmm.cshape == 2)
+ {
+
교육종료일(수료일자) 변경
+ }
@@ -87,11 +100,11 @@
}
@section scripts{
-
diff --git a/FO/css/mypage.css b/FO/css/mypage.css
index 85e1fe5..d2bad56 100644
--- a/FO/css/mypage.css
+++ b/FO/css/mypage.css
@@ -86,18 +86,20 @@
.mpgcList li a h5 b {display:block; height:20px; line-height:20px; float:left;}
.mpgcList li a h5 span.inline {display: inline-block; float: none; vertical-align: middle; margin-top: -3px;}
.mpgcList li a h5 em {font-size:14pt; color:#238dfa; margin-right:10px; font-style:normal;}
-.mpgcList li a h5 span {padding:0 10px; color:#fff; margin-right:5px; font-weight:300; font-size:10pt;background-color: #333583}
+.mpgcList li a h5 span {padding:0 10px; color:#fff; margin-right:5px; font-weight:300; font-size:10pt;/*background-color: #333583*/}
.mpgcList li a h5 span.mpglLable1 {background:#333583;}
.mpgcList li a h5 span.mpglLable2 {background:#77b743;}
+.mpgcList li a h5 span.nav_blu {background-color:#333583;}
+.mpgcList li a h5 span.nav_grn {background-color:#77b743;}
.mpgcList li a h5 b {font-size:14pt; font-weight:400;}
.mpgcList li a dl {padding-top:10px;}
.mpgcList li a dl:after {content:""; display:table; clear:both;}
-.mpgcList li a dl dt {float:left; font-size:11pt; padding-right:10px; margin-right:10px; position:relative; color:#238dfa;}
+.mpgcList li a dl dt {float:left; font-size:11pt; padding-right:10px; margin-right:10px; position:relative; color:/*#238dfa*/red;}
.mpgcList li a dl dt:after {content:""; display:block; width:1px; height:14px; background:#d6d6d6; position:absolute; right:0; top:50%; margin-top:-7px;}
.mpgcList li a dl dd {float:left; font-size:11pt; color:#888}
.mpgcList li a dl dt.mpglSta1 {color:#ff0000;}
.mpgcList li a dl dt.mpglSta2 {color:#333;}
-.mpgcList li a dl dt.mpglSta3 {color:#00aeea;}
+.mpgcList li a dl dt.mpglSta3 {color:/*#00aeea*/red;}
.mpgnCont {background:#f9f9f9; margin-bottom:50px; padding:30px 20px;}
.mpgNoti .mpgnCont:last-child {margin-bottom:0;}
.mpgnList {}
@@ -275,8 +277,11 @@
.ltaList h5 span,
.ltaList h5 b {font-size:13pt; display:inline-block; vertical-align:middle; height:20px; line-height:20px; margin-right:5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.ltaList h5 em {color:#238dfa; font-style:normal;}
-.ltaList h5 span {color:#fff; background:#333583; padding:0 10px; font-size:10pt;}
+.ltaList h5 span {color:#fff; /*background:#333583; */padding:0 10px; font-size:10pt;}
+.ltaList h5 span.nav_blu {background-color:#333583;}
+.ltaList h5 span.nav_grn {background-color:#77b743;}
.ltaList h5 span.ppl {background:#a404b2}
+ .ltaList h5 strong {font-weight: 400;font-size: 11pt;line-height: 20px;vertical-align: middle;color: #0000ff;}
.ltaList h5 b {font-weight:400; margin-right:0;}
.ltaList h5 a.tstlTitle {font-size:13pt; display:inline-block; vertical-align:middle; height:20px; line-height:20px; margin-right:5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.ltaList h5 a.print {display:inline-block; height:30px; line-height:30px; background:#000; color:#fff; font-size:10pt; padding:0 15px; margin-left:10px;}
@@ -291,7 +296,7 @@
.ltaDl dt.ltaDlbk {color:#383838;}
.ltaDl dt.ltaDlppl,
.ltaDl dt.ltaDlppl a {color:#333583; font-size:12pt; font-weight:500;}
-.ltaDl dd {color:#888; margin-right:20px;}
+.ltaDl dd {color:#888;}
.ltaDl dd a {font-size:12pt; color:#888;}
.ltaDl dd span {color:#ff0000; font-size:12pt;}
.ltaDl dd:last-child {margin-right:0;}
@@ -367,7 +372,7 @@
.ltaBtn {text-align:left;}
.ltaBtn select {float:left; min-width:80px; height:30px;}
.ltaBtn > span,
- .ltaBtn > a {float:left; font-size:11pt; height:30px; line-height:30px;}
+ .ltaBtn > a {float:left; font-size:11pt; height:30px; line-height:30px; text-align:center;}
.ltaBtn dl {width:auto; float:left; padding:5px 0;}
.ltaBtn dl:after {content:""; display:table; clear:both;}
.ltaBtn dl dd {float:left; margin:0; margin-right:5px;}
@@ -410,7 +415,7 @@
.mpgPop {position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.7); z-index:100;}
.mpgPop > div {display:table; width:100%; height:100%;}
.mpgPop > div > div {display:table-cell; width:100%; vertical-align:middle;}
-.mpgPopWrap {width:100%; max-width:440px; max-height:100%; margin:0 auto; background:#fff; position:relative;}
+.mpgPopWrap {width:100%;max-width:500px; max-height:100%; margin:0 auto; background:#fff; position:relative;}
.mpgPopWrap.wdth430 {max-width:430px;}
.mpgPopWrap.wdth580 {max-width:580px;}
.mpgPopWrap.wdth650 {max-width:650px;}
@@ -532,9 +537,11 @@
.bskList tbody td h5 span,
.bskList tbody td h5 b {display:inline-block; vertical-align:middle; height:20px; line-height:20px; font-weight:400;}
.bskList tbody td h5 a {height:30px; line-height:30px; display:inline-block; vertical-align:middle; margin-left:10px; background:#000; color:#fff; font-size:10pt; width:100px; text-align:center;}
-.bskList tbody td h5 span {margin-right:5px; width:40px; text-align:center; color:#fff; font-size:10pt;}
+.bskList tbody td h5 span {margin-right:5px; text-align:center; color:#fff; font-size:10pt;padding: 0 3px;}
.bskList tbody td h5 span.blu {background:#238dfa;}
-.bskList tbody td h5 span.ppl {background:#333583;}
+/*.bskList tbody td h5 span.ppl {background:#333583;}*/
+.bskList tbody td h5 span.nav_blu {background-color:#333583;}
+.bskList tbody td h5 span.nav_grn {background-color:#77b743;}
.bskList tbody td h5 span.grn {background:#77b743;}
.bskList tbody td h5 span.org {background:#f36f21;}
.bskList tbody td h5 span.bk {background:#000;}
@@ -719,9 +726,11 @@
.payTlist h5 {white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.payTlist h5 span,
.payTlist b {display:inline-block; vertical-align:middle; height:20px; line-height:20px; font-weight:400;}
-.payTlist h5 span {margin-right:5px; width:40px; text-align:center; color:#fff; font-size:10pt;}
+.payTlist h5 span {margin-right:5px; /*width:40px;*/ text-align:center; color:#fff; font-size:10pt; padding:0 8px;}
.payTlist h5 span.blu {background:#238dfa;}
-.payTlist h5 span.ppl {background:#333583;}
+/*.payTlist h5 span.ppl {background:#333583;}*/
+.payTlist h5 span.nav_blu {background-color:#333583;}
+.payTlist h5 span.nav_grn {background-color:#77b743;}
.payTlist h5 span.grn {background:#77b743;}
.payTlist h5 span.org {background:#f36f21;}
.payTlist h5 span.bk {background:#000;}
@@ -1025,8 +1034,8 @@
.mpgpBtn {width: 50px; height: 30px; line-height: 28px; font-size: 10pt;}
}
-
-
+.warningbutton {padding: 5px 10px; background: #ffffff; border: 1px solid black;}
+.lectstatus{color:red;}
diff --git a/FO/css/style.css b/FO/css/style.css
index d6d67a3..5993d4b 100644
--- a/FO/css/style.css
+++ b/FO/css/style.css
@@ -78,6 +78,13 @@ body {
.mt0 {
margin-top: 0 !important;
}
+.red {
+ color: red;
+}
+
+.blu {
+ color: #0047a7;
+}
/* GNB */
@@ -9918,7 +9925,8 @@ span.org {
.smtlCont {
position: relative;
padding: 30px 20px;
- padding-right: 240px;
+ padding-right: 300px;
+ word-break: keep-all;
}
.smtList.pop .smtlCont {
@@ -9995,7 +10003,7 @@ span.org {
position: absolute;
right: 20px;
top: 50%;
- margin-top: -25px;
+ /*margin-top: -25px;*/
}
.smtlBtn:after {
@@ -10007,6 +10015,7 @@ span.org {
.smtlBtn li {
float: left;
margin-right: 10px;
+ font-size: 18px
}
.smtlBtn li:last-child {
@@ -10026,7 +10035,10 @@ span.org {
border: solid 1px #0047a7;
color: #0047a7;
}
-
+.smtlChk label {
+ cursor: auto;
+ font-size: 15pt;
+}
.smtlBtn li a.smtlBtn02 {
border: solid 1px #383838;
background: #383838;
@@ -10084,42 +10096,50 @@ span.org {
padding: 0 20px;
}
- .smtlChk > li {
- padding: 30px 0;
+ .smtlChk li {
+ padding: 30px;
border-bottom: solid 1px #eaeaea;
position: relative;
- padding-left: 30px;
- padding-right: 140px;
+ line-height: 1.8em;
}
- .smtlChk > li:last-child {
+ .smtlChk li:last-child {
border-bottom: none;
}
- .smtlChk > li input[type="checkbox"] {
+ .smtlChk li input[type="checkbox"] {
position: absolute;
left: 0;
top: 50%;
margin-top: -9px;
}
- .smtlChk > li > p {
+ .smtlChk li p {
}
- .smtlChk > li > p span {
+ .smtlChk li p span {
}
- .smtlChk > li > p span.blu {
+ .smtlChk li p span.blu {
color: #0047a7;
}
- .smtlChk > li > p span.gry {
+ .smtlChk li p span.gry {
color: #666;
}
- .smtlChk > li > p span.red {
+ .smtlChk li p span.red {
color: #f00;
}
+ .smtlChk li p span.cshapelabel {
+ color: #fff;
+ /* background: #333583;*/
+ padding: 0 10px;
+ font-size: 10pt;
+ margin-left: 5px;
+ }
+ .smtlChk li p span.nav_blu {background-color:#333583;color: #fff;padding: 0 10px; font-size: 11pt;margin-left: 5px;}
+ .smtlChk li p span.nav_grn {background-color:#77b743;color: #fff;padding: 0 10px; font-size: 11pt; margin-left: 5px;}
.smtlChkBtn {
display: block;
@@ -10154,6 +10174,11 @@ span.org {
background: #f4f4f4;
color: #929292;
}
+ .smtlChkBtn.smtlChk05 {
+ border: solid 1px #f4f4f4;
+ background: red;
+ color: #fff;
+ }
@media (max-width:900px) {
@@ -10299,19 +10324,19 @@ span.org {
padding: 0 10px;
}
- .smtlChk > li {
+ .smtlChk li {
padding: 20px 0;
padding-right: 0;
}
- .smtlChk > li input[type="checkbox"] {
+ .smtlChk li input[type="checkbox"] {
position: absolute;
left: 0;
top: 20px;
margin-top: 3px;
}
- .smtlChk > li > p {
+ .smtlChk li p {
padding-left: 30px;
}
diff --git a/FO/js/mypage.js b/FO/js/mypage.js
index 8ec4efd..5d7b91a 100644
--- a/FO/js/mypage.js
+++ b/FO/js/mypage.js
@@ -65,18 +65,21 @@ $(document).ready(function () {
if (complete != undefined && complete == 0)
{
- msg("해당 과정은 미 수료 상태 입니다." +
- "교육일정변경 메뉴에서 교육일정을 변경 해주세요." +
- "※ 미 수료 상태로 교육시작일 이후 1년 경과 시 교육이 취소되어 일정변경이 불가합니다." +
- "※ 확인 클릭 시 교육일정변경 메뉴로 이동합니다."
+ msg("해당 과정은 미 수료 상태 입니다. " +
+ "교육일정변경 메뉴에서 교육일정을 변경 해주세요. " +
+ "※ 미 수료 상태로 교육시작일 이후 1년 경과 시 교육이 취소되어 일정변경이 불가합니다. " +
+ "※ 확인 클릭 시 교육일정변경 메뉴로 이동합니다.", null, null, null, "location.href='" + '/My/LectureOn' + "'"
);
+
return false;
}
if (href != undefined && href != null && href.toLowerCase().indexOf("croom/index?croomlectno=") != -1) {
var cshape = $(this).data("cshape");
if (cshape != undefined && cshape == 1) {
- msg("해당 과정은 교육장에 직접 오셔서 수강하는 과정 입니다." +
+ msg("해당 과정은 교육장에 직접 오셔서 수강 하는 과정 입니다." +
"교육기간을 확인하시고 시작일에 해당 교육장으로 입교 부탁 드립니다.");
+ /*location.href = '/My/LectureOn';*/
+
return false;
}
else if (cshape != undefined && cshape == 2) {
diff --git a/Model/BaseModel.cs b/Model/BaseModel.cs
index 427fd3d..9306011 100644
--- a/Model/BaseModel.cs
+++ b/Model/BaseModel.cs
@@ -490,6 +490,20 @@ namespace NP.Model
public class Data : BaseModel
{
+ ///
+ /// 20220804 비교구문 추가
+ ///
+ public int? iscomplete { get; set; }
+ ///
+ /// 20220804 비교구문 추가
+ ///
+ public string lectStatus { get; set; }
+ ///
+ /// 20220804 비교구문 추가
+ ///
+ public int studytime { get; set; }
+ public int? studyplace { get; set; }
+ public string studyplacename { get; set; }
public int dtype { get; set; }
public int intval { get; set; }
public int intval2 { get; set; }
diff --git a/Model/CM.cs b/Model/CM.cs
index 8ff0740..d7d1940 100644
--- a/Model/CM.cs
+++ b/Model/CM.cs
@@ -67,7 +67,7 @@ namespace NP.Model
public int cmno { get; set; }
public String cmnos { get; set; }
public int orgcmno { get; set; }
-
+ public int ccode { get; set; }
///
/// 과정여부 0:강좌,1:과정,2:패키지
///
@@ -970,6 +970,13 @@ namespace NP.Model
}
}
+ ///
+ /// 수강상태
+ /// 20220803
+ ///
+ public string lectStatus { get; set; }
+ public string studychange { get; set; }
+
///
/// 수료여부 null:미처리,0:미수료,1:수료
///
@@ -999,7 +1006,7 @@ namespace NP.Model
{
get
{
- return isrebate == 1 ? "환급" : "비환급";
+ return isrebate == 1 ? "환급과정" : "비환급과정";
}
}
///
diff --git a/Model/Pay.cs b/Model/Pay.cs
index b9e3917..894d98c 100644
--- a/Model/Pay.cs
+++ b/Model/Pay.cs
@@ -538,7 +538,7 @@ namespace NP.Model
///
/// 학습장소
///
- public int studyplace { get; set; }
+ public int? studyplace { get; set; }
///
/// 학습장소명
///
@@ -554,7 +554,7 @@ namespace NP.Model
{
get
{
- return sdate == null ? "-" : sdate.Value.ToString("yy-MM-dd");
+ return sdate == null ? "-" : sdate.Value.ToString("yyyy년 MM월 dd일");
}
}
///
@@ -568,7 +568,7 @@ namespace NP.Model
{
get
{
- return edate == null ? "-" : edate.Value.ToString("yy-MM-dd");
+ return edate == null ? "-" : edate.Value.ToString("yyyy년 MM월 dd일");
}
}
///
@@ -596,7 +596,7 @@ namespace NP.Model
{
get
{
- return cmieend == null ? "-" : cmieend.Value.ToString("yy-MM-dd");
+ return cmieend == null ? "-" : cmieend.Value.ToString("yyyy년 MM월 dd일");
}
}
///
@@ -639,6 +639,7 @@ namespace NP.Model
public int attrate { get; set; }
public String userpno { get; set; }
+ public string studytime { get; set; }
}
///