합숙여부 추가
This commit is contained in:
parent
9ec93f5e8f
commit
c270c28d68
|
|
@ -100,6 +100,10 @@
|
|||
<label class="col-sm-4 col-md-2 control-label req">교육유형</label>
|
||||
<div class="col-sm-8 col-md-10">@Html.Partial("./Partial/Radio", Model.CM.cshape, new ViewDataDictionary() { { "valuetext", "0:온라인;1:교육장;2:온라인 혼합" }, { "checked", Model.CM.cshape }, { "name", "CM.cshape" } })</div>
|
||||
</div>
|
||||
<div class="line line-dashed line-lg pull-in isaccommodation"></div><div class="form-group isaccommodation" style="display:none" >
|
||||
<label class="col-sm-4 col-md-2 control-label req">합숙여부</label>
|
||||
<div class="col-sm-8 col-md-10">@Html.Partial("./Partial/Radio", Model.CM.isaccommodation, new ViewDataDictionary() { { "valuetext", "1:예;0:아니요" }, { "checked", Model.CM.isaccommodation }, { "name", "CM.isaccommodation" } })</div>
|
||||
</div>
|
||||
<div id="divLegalEdu" style="display:none">
|
||||
<div class="line line-dashed line-lg pull-in"></div><div class="form-group">
|
||||
<label class="col-sm-4 col-md-2 control-label">기술인분류</label>
|
||||
|
|
@ -358,13 +362,19 @@
|
|||
if ('@(Model.CM.ismaster)' == '0') {
|
||||
$("#pcgno,#CM_cgno").hide();
|
||||
}
|
||||
|
||||
if ($("input[name='CM.cshape']:checked").val() != '0') {
|
||||
$(".isaccommodation").show();
|
||||
}
|
||||
else {
|
||||
$(".isaccommodation").hide();
|
||||
}
|
||||
if ($("input[name='CM.isaccommodation']:checked").val() != '0') {
|
||||
$("#spnaccommofee").show();
|
||||
}
|
||||
else {
|
||||
$("#spnaccommofee").hide();
|
||||
}
|
||||
|
||||
if ($("input[name='CM.cshape']:checked").val() == '1') {
|
||||
$("#alldays").prop("disabled", true);
|
||||
}
|
||||
|
|
@ -383,10 +393,11 @@
|
|||
}
|
||||
$("input[name='CM.cshape']").on("change", function () {
|
||||
if ($(this).val() == "0") {
|
||||
$("#spnaccommofee").hide();
|
||||
$(".isaccommodation").hide();
|
||||
$("input:radio[name='CM.isaccommodation']:radio[value='0']").click();
|
||||
}
|
||||
else {
|
||||
$("#spnaccommofee").show();
|
||||
$(".isaccommodation").show();
|
||||
}
|
||||
|
||||
if ($(this).val() == "1") {
|
||||
|
|
@ -396,6 +407,15 @@
|
|||
$("#alldays").prop("disabled", false);
|
||||
}
|
||||
});
|
||||
$("input[name='CM.isaccommodation']").on("click", function () {
|
||||
if ($(this).val() == "0") {
|
||||
$("#spnaccommofee").hide();
|
||||
$("#CM_accommofee").val("");
|
||||
}
|
||||
else {
|
||||
$("#spnaccommofee").show();
|
||||
}
|
||||
});
|
||||
loadlegal($("#pcgno").val());
|
||||
|
||||
$("#alldays").on("click", function () {
|
||||
|
|
|
|||
72
Model/CM.cs
72
Model/CM.cs
|
|
@ -64,14 +64,14 @@ namespace NP.Model
|
|||
/// <summary>
|
||||
/// 강좌/과정키, 패키지강좌의 강좌키
|
||||
/// </summary>
|
||||
public int cmno {get;set;}
|
||||
public int cmno { get; set; }
|
||||
public String cmnos { get; set; }
|
||||
public int orgcmno { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 과정여부 0:강좌,1:과정,2:패키지
|
||||
/// </summary>
|
||||
public int ismaster {get;set;}
|
||||
public int ismaster { get; set; }
|
||||
public String ismastername
|
||||
{
|
||||
get
|
||||
|
|
@ -82,19 +82,19 @@ namespace NP.Model
|
|||
/// <summary>
|
||||
/// fkcmcg 과정분류 CG.CGNo
|
||||
/// </summary>
|
||||
public int cgno {get;set;}
|
||||
public int cgno { get; set; }
|
||||
public String cgname { get; set; }
|
||||
public int pcgno { get; set; }
|
||||
public String pcgname { get; set; }
|
||||
/// <summary>
|
||||
/// fkcmcm 과정키 cm.cmno
|
||||
/// </summary>
|
||||
public int? pcmno {get;set;}
|
||||
public int? pcmno { get; set; }
|
||||
public String pcname { get; set; }
|
||||
/// <summary>
|
||||
/// 100 과정명
|
||||
/// </summary>
|
||||
public String cname {get;set;}
|
||||
public String cname { get; set; }
|
||||
/// <summary>
|
||||
/// 100 키워드
|
||||
/// </summary>
|
||||
|
|
@ -102,7 +102,7 @@ namespace NP.Model
|
|||
/// <summary>
|
||||
/// fkcmterm 기수키 term.tmno
|
||||
/// </summary>
|
||||
public int? tmno {get;set;}
|
||||
public int? tmno { get; set; }
|
||||
/// <summary>
|
||||
/// 기수년도
|
||||
/// </summary>
|
||||
|
|
@ -121,7 +121,7 @@ namespace NP.Model
|
|||
/// <summary>
|
||||
/// 반
|
||||
/// </summary>
|
||||
public int? classno {get;set;}
|
||||
public int? classno { get; set; }
|
||||
public String cnameclassno
|
||||
{
|
||||
get
|
||||
|
|
@ -133,11 +133,11 @@ namespace NP.Model
|
|||
/// <summary>
|
||||
/// 신청시작
|
||||
/// </summary>
|
||||
public DateTime? rstime {get;set;}
|
||||
public DateTime? rstime { get; set; }
|
||||
/// <summary>
|
||||
/// 신청종료
|
||||
/// </summary>
|
||||
public DateTime? retime {get;set;}
|
||||
public DateTime? retime { get; set; }
|
||||
public int isnewcm
|
||||
{
|
||||
get
|
||||
|
|
@ -156,7 +156,7 @@ namespace NP.Model
|
|||
{
|
||||
get
|
||||
{
|
||||
return retimeymd == "2099-12-31" ? string.Format("상시 ({0}일)", rsretimeToDay ) : rstime == null && retime == null ? "" : string.Format("{0} ~ {1}", rstime == null ? "" : rstime.Value.ToString("yyyy-MM-dd"), retime == null ? "" : retime.Value.ToString("yyyy-MM-dd"));
|
||||
return retimeymd == "2099-12-31" ? string.Format("상시 ({0}일)", rsretimeToDay) : rstime == null && retime == null ? "" : string.Format("{0} ~ {1}", rstime == null ? "" : rstime.Value.ToString("yyyy-MM-dd"), retime == null ? "" : retime.Value.ToString("yyyy-MM-dd"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -164,7 +164,7 @@ namespace NP.Model
|
|||
{
|
||||
get
|
||||
{
|
||||
return rstime == null && retime == null ? "" : string.Format("{0}", Convert.ToDateTime(retime).DayOfYear - Convert.ToDateTime(rstime).DayOfYear);
|
||||
return rstime == null && retime == null ? "" : string.Format("{0}", Convert.ToDateTime(retime).DayOfYear - Convert.ToDateTime(rstime).DayOfYear);
|
||||
}
|
||||
}
|
||||
public int isrequesting {
|
||||
|
|
@ -175,7 +175,7 @@ namespace NP.Model
|
|||
/// <summary>
|
||||
/// 학습시작
|
||||
/// </summary>
|
||||
public DateTime? sstime {get;set;}
|
||||
public DateTime? sstime { get; set; }
|
||||
public String sstimeymd
|
||||
{
|
||||
get
|
||||
|
|
@ -194,7 +194,7 @@ namespace NP.Model
|
|||
{
|
||||
get
|
||||
{
|
||||
return sstime == null && setime == null ? studydays+"일" : string.Format("{0} ~ {1}", sstime == null ? "" : sstime.Value.ToString("yyyy-MM-dd"), setime == null ? "" : setime.Value.ToString("yyyy-MM-dd"));
|
||||
return sstime == null && setime == null ? studydays + "일" : string.Format("{0} ~ {1}", sstime == null ? "" : sstime.Value.ToString("yyyy-MM-dd"), setime == null ? "" : setime.Value.ToString("yyyy-MM-dd"));
|
||||
}
|
||||
}
|
||||
public String ssretimeToDay
|
||||
|
|
@ -208,7 +208,7 @@ namespace NP.Model
|
|||
/// <summary>
|
||||
/// 학습종료
|
||||
/// </summary>
|
||||
public DateTime? setime {get;set;}
|
||||
public DateTime? setime { get; set; }
|
||||
public String setimeymd
|
||||
{
|
||||
get
|
||||
|
|
@ -262,11 +262,11 @@ namespace NP.Model
|
|||
/// <summary>
|
||||
/// 성적처리시작
|
||||
/// </summary>
|
||||
public DateTime? gstime {get;set;}
|
||||
public DateTime? gstime { get; set; }
|
||||
/// <summary>
|
||||
/// 성적처리종료
|
||||
/// </summary>
|
||||
public DateTime? getime {get;set;}
|
||||
public DateTime? getime { get; set; }
|
||||
public String getimeymd
|
||||
{
|
||||
get
|
||||
|
|
@ -277,7 +277,7 @@ namespace NP.Model
|
|||
/// <summary>
|
||||
/// 강의유형 0: 온라인, 1: 교육장, 2: 혼합(온+오프)
|
||||
/// </summary>
|
||||
public int cshape {get;set;}
|
||||
public int cshape { get; set; }
|
||||
public String cshapename
|
||||
{
|
||||
get
|
||||
|
|
@ -288,11 +288,11 @@ namespace NP.Model
|
|||
/// <summary>
|
||||
/// 회원수강료
|
||||
/// </summary>
|
||||
public int infee {get;set;}
|
||||
public int infee { get; set; }
|
||||
/// <summary>
|
||||
/// 비회원수강료
|
||||
/// </summary>
|
||||
public int outfee {get;set;}
|
||||
public int outfee { get; set; }
|
||||
/// <summary>
|
||||
/// 합숙비용
|
||||
/// </summary>
|
||||
|
|
@ -301,7 +301,7 @@ namespace NP.Model
|
|||
/// <summary>
|
||||
/// 정원 0: 제한없음
|
||||
/// </summary>
|
||||
public int quota {get;set;}
|
||||
public int quota { get; set; }
|
||||
public String quotastr
|
||||
{
|
||||
get
|
||||
|
|
@ -312,19 +312,19 @@ namespace NP.Model
|
|||
/// <summary>
|
||||
/// 과정소개/패키지메모 에디터
|
||||
/// </summary>
|
||||
public String introhtml {get;set;}
|
||||
public String introhtml { get; set; }
|
||||
/// <summary>
|
||||
/// 학습대상 에디터
|
||||
/// </summary>
|
||||
public String targethtml {get;set;}
|
||||
public String targethtml { get; set; }
|
||||
/// <summary>
|
||||
/// 학습목표 에디터
|
||||
/// </summary>
|
||||
public String goalhtml {get;set;}
|
||||
public String goalhtml { get; set; }
|
||||
/// <summary>
|
||||
/// 학습내용 에디터
|
||||
/// </summary>
|
||||
public String contenthtml {get;set;}
|
||||
public String contenthtml { get; set; }
|
||||
/// <summary>
|
||||
/// 200 학습장소 오프라인강좌전용 comcode.cgroup=studyplace
|
||||
/// </summary>
|
||||
|
|
@ -333,28 +333,28 @@ namespace NP.Model
|
|||
/// <summary>
|
||||
/// 학습시간 단위: Hour
|
||||
/// </summary>
|
||||
public float studytime {get;set;}
|
||||
public float studytime { get; set; }
|
||||
/// <summary>
|
||||
/// fkcmcc 자격증 ComCode.CGroup=Cert
|
||||
/// </summary>
|
||||
public int? certcc {get;set;}
|
||||
public int? certcc { get; set; }
|
||||
/// <summary>
|
||||
/// fkcmcc2 급수 ComCode.CGroup=CertGrade
|
||||
/// </summary>
|
||||
public int? certgradecc {get;set;}
|
||||
public int? certgradecc { get; set; }
|
||||
public String certgradeccname { get; set; }
|
||||
/// <summary>
|
||||
/// 100 추천직무 ComCode.CGroup=Job, 콤마로분리
|
||||
/// </summary>
|
||||
public String jobcc {get;set;}
|
||||
public String jobcc { get; set; }
|
||||
/// <summary>
|
||||
/// 추천직급 0:사원,1:대리급,2:과장급
|
||||
/// </summary>
|
||||
public String jobpositiongrade {get;set;}
|
||||
public String jobpositiongrade { get; set; }
|
||||
/// <summary>
|
||||
/// 난이도 0:입문,1:기초,2:초급,3:중급
|
||||
/// </summary>
|
||||
public int? difficulty {get;set;}
|
||||
public int? difficulty { get; set; }
|
||||
public String difficultyname
|
||||
{
|
||||
get
|
||||
|
|
@ -365,7 +365,7 @@ namespace NP.Model
|
|||
/// <summary>
|
||||
/// 환급여부 0:환급아님,1:환급
|
||||
/// </summary>
|
||||
public int isrefund {get;set;}
|
||||
public int isrefund { get; set; }
|
||||
/// <summary>
|
||||
/// 순차학습방식 여부
|
||||
/// </summary>
|
||||
|
|
@ -388,7 +388,7 @@ namespace NP.Model
|
|||
/// <summary>
|
||||
/// 회원가 패키지생성시점
|
||||
/// </summary>
|
||||
public int orginfee { get; set; }
|
||||
public int orginfee { get; set; }
|
||||
/// <summary>
|
||||
/// 비회원가 패키지생성시점
|
||||
/// </summary>
|
||||
|
|
@ -401,7 +401,7 @@ namespace NP.Model
|
|||
public int countlect { get; set; }
|
||||
public int lectstatus { get; set; }
|
||||
public int countstandby { get; set; }
|
||||
|
||||
|
||||
public int countcomplete { get; set; }
|
||||
public int countnoresult { get; set; }
|
||||
public int isjoin { get; set; }
|
||||
|
|
@ -415,7 +415,7 @@ namespace NP.Model
|
|||
{
|
||||
get
|
||||
{
|
||||
return string.IsNullOrEmpty(tasteurl) ? isbig == 1 ? "/img/online/fair_sample01.jpg" : "/img/main/main_edu_thumb02.jpg" : (NP.Model.Base.Files+ tasteurl);
|
||||
return string.IsNullOrEmpty(tasteurl) ? isbig == 1 ? "/img/online/fair_sample01.jpg" : "/img/main/main_edu_thumb02.jpg" : (NP.Model.Base.Files + tasteurl);
|
||||
}
|
||||
}
|
||||
public Int64 cmino { get; set; }
|
||||
|
|
@ -485,6 +485,10 @@ namespace NP.Model
|
|||
public String username { get; set; }
|
||||
public Int64 lectnocheck { get; set; }
|
||||
public int ischkatt { get; set; }
|
||||
/// <summary>
|
||||
/// 합숙여부
|
||||
/// </summary>
|
||||
public int isaccommodation { get; set;}
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
|
|
|
|||
Loading…
Reference in New Issue