diff --git a/BO/Views/cm/cmreg.cshtml b/BO/Views/cm/cmreg.cshtml index 9ca197e..b1060e3 100644 --- a/BO/Views/cm/cmreg.cshtml +++ b/BO/Views/cm/cmreg.cshtml @@ -247,6 +247,13 @@
@Html.Partial("./Partial/Radio", null, new ViewDataDictionary() { { "valuetext", "1:공개;0:비공개" }, { "checked", Model.CM.isuse }, { "name", "CM.isuse" } })
+
+ +
+ @Html.TextBoxFor(m => m.CM.todaylectinninglimit, new { @class = "form-control disp-init int text-right", @style = "width: 100px;", @maxlength = "5", @placeholder = "" }) + 회차 ※ 0이면 무제한 +
+
@Html.HiddenFor(m => m.intval) @@ -440,9 +447,7 @@ $("#gtime").show(); $("#CM_cshape1").prop("disabled", false); } - }); - - + }); }); function loadlegal(cgno) { capp("/acommon/cgget", { cgno: cgno }, "renderlegal"); diff --git a/Dao/DB/DB1.Scheme.txt b/Dao/DB/DB1.Scheme.txt index 2cd3b20..db645f8 100644 --- a/Dao/DB/DB1.Scheme.txt +++ b/Dao/DB/DB1.Scheme.txt @@ -429,7 +429,8 @@ create table cm ( ,iscertificate tinyint not null default 1 ,isdel tinyint not null ,studydays int - `isaccommodation` TINYINT(4) NOT NULL DEFAULT '0', + ,isaccommodation TINYINT(4) NOT NULL DEFAULT '0', + ,todaylectinninglimit INT(11) NULL DEFAULT NULL, ,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL ,primary key(cmno)); diff --git a/Dao/MyBatis/Maps/CM.xml b/Dao/MyBatis/Maps/CM.xml index c6ff23d..42802b8 100644 --- a/Dao/MyBatis/Maps/CM.xml +++ b/Dao/MyBatis/Maps/CM.xml @@ -131,8 +131,8 @@ ,d.cname pcname ,e.ccode,e.cname studyplacename ,(select count(l.lectno) cnt from lect l where l.cmno = a.cmno and l.status =1 and l.ischanged=0) lectcnt - ,a.ischkatt - ,case when date_format(a.retime,'%Y%m%d') = '20991231' then 1 else 0 end isalldays + ,a.ischkatt,a.todaylectinninglimit + ,case when date_format(a.retime,'%Y%m%d') = '20991231' then 1 else 0 end isalldays ,a.cdt,a.udt ,a.cmno value,a.cname text ,row_number() over(order by $orderby$a.udt desc) rno @@ -173,7 +173,7 @@ order by a.rno insert into cm(ismaster,cgno,pcmno,cname,kname,tmno,classno,rstime,retime,sstime,setime,gstime,getime,cshape,typeman,typeedu,typegrade,typejob,infee,outfee,accommofee,quota,introhtml,targethtml,goalhtml,contenthtml,studyplace,studytime - ,certcc,certgradecc,jobcc,jobpositiongrade,difficulty,isrefund,isuse,isseq,iscertificate,isdel,studydays,isaccommodation,) + ,certcc,certgradecc,jobcc,jobpositiongrade,difficulty,isrefund,isuse,isseq,iscertificate,isdel,studydays,isaccommodation,todaylectinninglimit,) select #ismaster#,cgno,case when a.ismaster = 1 and #ismaster# = 0 then a.cmno else a.pcmno end,ifnull(#cname#, concat('사본_', cname)),a.kname,#tmno# ,case when #tmno# is null then null else ifnull(b.classno,0)+1 end ,t.rstime @@ -1297,7 +1298,7 @@ ,case when date_format(a.retime,'%Y-%m-%d')='2099-12-31' then null else t.gstime end ,case when date_format(a.retime,'%Y-%m-%d')='2099-12-31' then null else date_format(t.getime,'%Y-%m-%d 23:59:59') end ,a.cshape,a.typeman,a.typeedu,a.typegrade,a.typejob,infee,outfee,accommofee,quota,introhtml,targethtml,goalhtml,contenthtml,studyplace,studytime - ,certcc,certgradecc,jobcc,jobpositiongrade,difficulty,isrefund,1,isseq,a.iscertificate,0,studydays,isaccommodation, + ,certcc,certgradecc,jobcc,jobpositiongrade,difficulty,isrefund,1,isseq,a.iscertificate,0,studydays,isaccommodation,todaylectinninglimit, from cm a left outer join ( select max(b.classno) classno diff --git a/Dao/MyBatis/Maps/CRoom.xml b/Dao/MyBatis/Maps/CRoom.xml index 94b9911..7a5b8a7 100644 --- a/Dao/MyBatis/Maps/CRoom.xml +++ b/Dao/MyBatis/Maps/CRoom.xml @@ -161,7 +161,7 @@