From e61d7043c1796cab8281bd3edbb08427a4dc1ace Mon Sep 17 00:00:00 2001 From: lch Date: Tue, 13 Jul 2021 04:52:14 +0000 Subject: [PATCH] =?UTF-8?q?"(=EC=A7=84=ED=96=89=EC=9A=94=EC=B2=AD)=20?= =?UTF-8?q?=ED=95=98=EB=A3=A8=EC=97=90=20=ED=95=99=EC=8A=B5=EA=B0=80?= =?UTF-8?q?=EB=8A=A5=ED=95=9C=20=ED=9A=8C=EC=B0=A8=20=EC=84=A4=EC=A0=95=20?= =?UTF-8?q?=EB=A9=94=EB=89=B4=20=EC=B6=94=EA=B0=80=20=20-=20=EB=AC=B4?= =?UTF-8?q?=EC=A0=9C=ED=95=9C/=EC=9E=85=EB=A0=A5=ED=95=9C=20=EC=88=AB?= =?UTF-8?q?=EC=9E=90=EB=A7=8C=ED=81=BC=20=20-=20=EC=84=A0=ED=83=9D?= =?UTF-8?q?=ED=95=9C=20=EA=B0=92=EC=97=90=20=EB=94=B0=EB=9D=BC=20=EC=82=AC?= =?UTF-8?q?=EC=9A=A9=EC=9E=90>=EC=82=AC=EC=9D=B4=EB=B2=84=EA=B0=95?= =?UTF-8?q?=EC=9D=98=EC=8B=A4>=ED=99=88/=ED=95=99=EC=8A=B5=20=EC=97=90?= =?UTF-8?q?=EC=84=9C=20=ED=95=B4=EB=8B=B9=20=EA=B0=95=EC=A2=8C=20=EC=9D=BC?= =?UTF-8?q?=EC=9D=BC=20=ED=95=99=EC=8A=B5=20=ED=9A=8C=EC=B0=A8=20=EC=A0=9C?= =?UTF-8?q?=ED=95=9C"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BO/Views/cm/cmreg.cshtml | 11 ++++++++--- Dao/DB/DB1.Scheme.txt | 3 ++- Dao/MyBatis/Maps/CM.xml | 15 ++++++++------- Dao/MyBatis/Maps/CRoom.xml | 2 +- FO/Controllers/CDMSController.cs | 28 +++++++++++++++++----------- FO/Controllers/CRoomController.cs | 8 ++++++++ FO/Views/CRoom/Index.cshtml | 8 ++++---- FO/Views/CRoom/Innings.cshtml | 6 +++--- Model/CM.cs | 8 ++++++++ 9 files changed, 59 insertions(+), 30 deletions(-) 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 @@