This commit is contained in:
hyunho 2021-03-30 01:10:24 +00:00
parent 631218e24b
commit 80caa003d5
14 changed files with 23 additions and 23 deletions

View File

@ -98,7 +98,7 @@
} }
<div class="line line-dashed line-lg pull-in"></div><div class="form-group"> <div class="line line-dashed line-lg pull-in"></div><div class="form-group">
<label class="col-sm-4 col-md-2 control-label req">교육유형</label> <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 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>
<div id="divLegalEdu" style="display:none"> <div id="divLegalEdu" style="display:none">
<div class="line line-dashed line-lg pull-in"></div><div class="form-group"> <div class="line line-dashed line-lg pull-in"></div><div class="form-group">

View File

@ -28,7 +28,7 @@
@Html.Partial("./Partial/Radio", Model.ComCodes.Where(w => w.cgroup == "studyplace"), new ViewDataDictionary() { { "checked", Model.CM.studyplace }, { "name", "CM.studyplace" }, { "isreadonly", 1 } }) @Html.Partial("./Partial/Radio", Model.ComCodes.Where(w => w.cgroup == "studyplace"), new ViewDataDictionary() { { "checked", Model.CM.studyplace }, { "name", "CM.studyplace" }, { "isreadonly", 1 } })
</div> </div>
<div style="display:none"> <div style="display:none">
@Html.Partial("./Partial/Radio", null, new ViewDataDictionary() { { "valuetext", "1:온라인;0:오프라인" }, { "checked", 0 }, { "name", "isonline" } }) @Html.Partial("./Partial/Radio", null, new ViewDataDictionary() { { "valuetext", "1:온라인;0:교육장" }, { "checked", 0 }, { "name", "isonline" } })
</div> </div>
</div> </div>
</section> </section>

View File

@ -87,18 +87,18 @@
@if (Model.CM.cshape == 0) @if (Model.CM.cshape == 0)
{ {
<input type="radio" name="isonline" id="rdoOnline" value="1" checked><label for="rdoOnline">온라인</label> <input type="radio" name="isonline" id="rdoOnline" value="1" checked><label for="rdoOnline">온라인</label>
<input type="radio" name="isonline" id="rdoOffline" value="0" disabled><label for="rdoOffline">오프라인</label> <input type="radio" name="isonline" id="rdoOffline" value="0" disabled><label for="rdoOffline">교육장</label>
} }
@if (Model.CM.cshape == 1) @if (Model.CM.cshape == 1)
{ {
<input type="radio" name="isonline" id="rdoOnline" value="1" disabled><label for="rdoOnline">온라인</label> <input type="radio" name="isonline" id="rdoOnline" value="1" disabled><label for="rdoOnline">온라인</label>
<input type="radio" name="isonline" id="rdoOffline" value="0" checked><label for="rdoOffline">오프라인</label> <input type="radio" name="isonline" id="rdoOffline" value="0" checked><label for="rdoOffline">교육장</label>
} }
@if (Model.CM.cshape == 2) @if (Model.CM.cshape == 2)
{ {
<input type="radio" name="isonline" id="rdoOnline" value="1" checked><label for="rdoOnline">온라인</label> <input type="radio" name="isonline" id="rdoOnline" value="1" checked><label for="rdoOnline">온라인</label>
<input type="radio" name="isonline" id="rdoOffline" value="0" disabled><label for="rdoOffline">오프라인</label> <input type="radio" name="isonline" id="rdoOffline" value="0" disabled><label for="rdoOffline">교육장</label>
} }
@*@Html.Partial("./Partial/Radio", null, new ViewDataDictionary() { { "valuetext", "1:온라인;0:오프라인" }, { "checked", 1 }, { "name", "isonline" } })*@ @*@Html.Partial("./Partial/Radio", null, new ViewDataDictionary() { { "valuetext", "1:온라인;0:오프라인" }, { "checked", 1 }, { "name", "isonline" } })*@
</td> </td>
@ -259,7 +259,7 @@
capp("/acommon/cminningsave", { cmino: _cmino, cmno: @Model.CM.cmno, isonline: getrv("isonline"), ititle: getv("ititle"), ctno: $("#contentdatabox li").attr("data-no"), istaste: getrv("istaste"), sttime: getint(val("sttime")), atime: getint(val("atime")), mstime: getint(val("mstime")), metime: getint(val("metime")), userno: val("userno"), iseq: val("iseq") }, "cbcminningsave", null, null,null,true); capp("/acommon/cminningsave", { cmino: _cmino, cmno: @Model.CM.cmno, isonline: getrv("isonline"), ititle: getv("ititle"), ctno: $("#contentdatabox li").attr("data-no"), istaste: getrv("istaste"), sttime: getint(val("sttime")), atime: getint(val("atime")), mstime: getint(val("mstime")), metime: getint(val("metime")), userno: val("userno"), iseq: val("iseq") }, "cbcminningsave", null, null,null,true);
} else { } else {
if (@Model.CM.cshape == 2) { if (@Model.CM.cshape == 2) {
msg2("혼합(온라인 + 오프라인)교육시 오프라인 회차는 등록 할 수 없습니다."); msg2("온라인 혼합 교육시 교육장 회차는 등록 할 수 없습니다.");
return; return;
} }
var data = new FormData(); var data = new FormData();

View File

@ -54,7 +54,7 @@
<th>교육유형</th> <th>교육유형</th>
<td> <td>
<div class="col-md-12"> <div class="col-md-12">
@Html.Partial("./Partial/Select", null, new ViewDataDictionary { { "valuetext", "0:온라인;1:오프라인;2:혼합" }, { "name", "stringval3" }, { "selected", Model.stringval3 }, { "style", "width: 100%" }, { "df", ":-유형선택" } }) @Html.Partial("./Partial/Select", null, new ViewDataDictionary { { "valuetext", "0:온라인;1:교육장;2:온라인 혼합" }, { "name", "stringval3" }, { "selected", Model.stringval3 }, { "style", "width: 100%" }, { "df", ":-유형선택" } })
</div> </div>
</td> </td>
</tr> </tr>

View File

@ -189,7 +189,7 @@
if (isOK) { if (isOK) {
educontract(lectnos.substring(1)); educontract(lectnos.substring(1));
} else { } else {
msg("오프라인교육만 조회하실 수 있습니다."); msg("교육장 교육만 조회하실 수 있습니다.");
} }
} }
} }

View File

@ -25,7 +25,7 @@
{ {
var scdlect = Model.SCDLects.Where(w => w.scdno == i + 1).FirstOrDefault() ?? new NP.Model.SCDLect(); var scdlect = Model.SCDLects.Where(w => w.scdno == i + 1).FirstOrDefault() ?? new NP.Model.SCDLect();
<tr data-no="@(i + 1)"> <tr data-no="@(i + 1)">
<td>작업@(i+1). @(i == 7 ? "오프라인" : i == 8 ? "자격검정" : "온라인/혼합")</td> <td>작업@(i+1). @(i == 7 ? "교육장" : i == 8 ? "자격검정" : "온라인 혼합")</td>
<td>@(i < 2 || i > 6 ? "출석" : i == 2 ? "진행평가" : i == 3 ? "최종평가" : i == 4 ? "과제" : i == 5 ? "토론" : i == 6 ? "강의평가" : "-")</td> <td>@(i < 2 || i > 6 ? "출석" : i == 2 ? "진행평가" : i == 3 ? "최종평가" : i == 4 ? "과제" : i == 5 ? "토론" : i == 6 ? "강의평가" : "-")</td>
<td>@(i < 2 ? "진도율 80% 미만" : i == 2 || i == 3 ? "미응시자 대상" : i == 4 || i == 5 ? "미제출자 대상" : i == 6 ? "미참여자 대상" : i == 7 ? "교육일" : i == 8 ? "시험일" : "")</td> <td>@(i < 2 ? "진도율 80% 미만" : i == 2 || i == 3 ? "미응시자 대상" : i == 4 || i == 5 ? "미제출자 대상" : i == 6 ? "미참여자 대상" : i == 7 ? "교육일" : i == 8 ? "시험일" : "")</td>
<td class="dday">@Html.Partial("./Partial/Select", null, new ViewDataDictionary { { "special", "fromto" }, { "start", 1 }, { "end", 10 }, { "name", "dday" }, { "selected", scdlect.dday } }) 일 남음</td> <td class="dday">@Html.Partial("./Partial/Select", null, new ViewDataDictionary { { "special", "fromto" }, { "start", 1 }, { "end", 10 }, { "name", "dday" }, { "selected", scdlect.dday } }) 일 남음</td>

View File

@ -19,7 +19,7 @@
<option value="@t.tmno" @(Model.stringval2 == t.tmno.ToString() ? "selected" : "")>@t.tseq 기</option> <option value="@t.tmno" @(Model.stringval2 == t.tmno.ToString() ? "selected" : "")>@t.tseq 기</option>
} }
</select> </select>
@Html.Partial("./Partial/Select", null, new ViewDataDictionary { { "valuetext", ":-유형선택;0:온라인;1:오프라인;2:혼합" }, { "name", "stringval3" }, { "selected", Model.stringval3 } }) @Html.Partial("./Partial/Select", null, new ViewDataDictionary { { "valuetext", ":-유형선택;0:온라인;1:교육장;2:온라인 혼합" }, { "name", "stringval3" }, { "selected", Model.stringval3 } })
@Html.Partial("./Partial/Select", null, new ViewDataDictionary { { "valuetext", ":-수료처리여부;3:수료처리;4:수료 미처리" }, { "name", "stringval4" }, { "selected", Model.stringval4 } }) @Html.Partial("./Partial/Select", null, new ViewDataDictionary { { "valuetext", ":-수료처리여부;3:수료처리;4:수료 미처리" }, { "name", "stringval4" }, { "selected", Model.stringval4 } })
@Html.Partial("./Partial/Text", Model.stringval5, Helpers.DicText(new NP.Model.TextDic() { Name = "stringval5", Value = Model.stringval5, PH = "강좌명을 입력하세요.", CssClass = "ff" })) @Html.Partial("./Partial/Text", Model.stringval5, Helpers.DicText(new NP.Model.TextDic() { Name = "stringval5", Value = Model.stringval5, PH = "강좌명을 입력하세요.", CssClass = "ff" }))
@Html.Partial("./Partial/Button", new NP.Model.Button() { Special = "search" }) @Html.Partial("./Partial/Button", new NP.Model.Button() { Special = "search" })

View File

@ -19,7 +19,7 @@
<option value="@t.tmno" @(Model.stringval2 == t.tmno.ToString() ? "selected" : "")>@t.tseq 기</option> <option value="@t.tmno" @(Model.stringval2 == t.tmno.ToString() ? "selected" : "")>@t.tseq 기</option>
} }
</select> </select>
@Html.Partial("./Partial/Select", null, new ViewDataDictionary { { "valuetext", ":-유형선택;0:온라인;1:오프라인;2:혼합" }, { "name", "stringval3" }, { "selected", Model.stringval3 } }) @Html.Partial("./Partial/Select", null, new ViewDataDictionary { { "valuetext", ":-유형선택;0:온라인;1:교육장;2:온라인 혼합" }, { "name", "stringval3" }, { "selected", Model.stringval3 } })
<br /><br /> <br /><br />
교육기간 @Html.Partial("./Partial/Date", string.IsNullOrEmpty(Model.stringval5) ? (DateTime?)null : Convert.ToDateTime(Model.stringval5), new ViewDataDictionary { { "name", "stringval5" } }) ~ @Html.Partial("./Partial/Date", string.IsNullOrEmpty(Model.stringval6) ? (DateTime?)null : Convert.ToDateTime(Model.stringval6), new ViewDataDictionary { { "name", "stringval6" } }) 교육기간 @Html.Partial("./Partial/Date", string.IsNullOrEmpty(Model.stringval5) ? (DateTime?)null : Convert.ToDateTime(Model.stringval5), new ViewDataDictionary { { "name", "stringval5" } }) ~ @Html.Partial("./Partial/Date", string.IsNullOrEmpty(Model.stringval6) ? (DateTime?)null : Convert.ToDateTime(Model.stringval6), new ViewDataDictionary { { "name", "stringval6" } })
@Html.Partial("./Partial/Text", Model.stringval4, Helpers.DicText(new NP.Model.TextDic() { Name = "stringval4", Value = Model.stringval4, PH = "강좌명을 입력하세요.", CssClass = "ff" })) @Html.Partial("./Partial/Text", Model.stringval4, Helpers.DicText(new NP.Model.TextDic() { Name = "stringval4", Value = Model.stringval4, PH = "강좌명을 입력하세요.", CssClass = "ff" }))

View File

@ -74,7 +74,7 @@
<td class="text-left"> <td class="text-left">
@Html.HiddenFor(m => m.stringval14) @Html.HiddenFor(m => m.stringval14)
@*@Html.Partial("./Partial/Select", null, new ViewDataDictionary { { "valuetext", ":상품구분;0:강좌;1:패키지;2:교재;3:시험;4:자격증강좌" }, { "name", "stringval11" }, { "selected", Model.stringval11 } })*@ @*@Html.Partial("./Partial/Select", null, new ViewDataDictionary { { "valuetext", ":상품구분;0:강좌;1:패키지;2:교재;3:시험;4:자격증강좌" }, { "name", "stringval11" }, { "selected", Model.stringval11 } })*@
@Html.Partial("./Partial/Select", null, new ViewDataDictionary { { "valuetext", ":상품유형;0:온라인;1:오프라인;2:혼합" }, { "name", "stringval12" }, { "selected", Model.stringval12 } }) @Html.Partial("./Partial/Select", null, new ViewDataDictionary { { "valuetext", ":상품유형;0:온라인;1:교육장;2:온라인 혼합" }, { "name", "stringval12" }, { "selected", Model.stringval12 } })
@Html.Partial("./Partial/Select", Model.CGs, new ViewDataDictionary { { "name", "stringval13" }, { "selected", Model.stringval13 }, { "df", ":-과정분류" } })&nbsp;&nbsp; @Html.Partial("./Partial/Select", Model.CGs, new ViewDataDictionary { { "name", "stringval13" }, { "selected", Model.stringval13 }, { "df", ":-과정분류" } })&nbsp;&nbsp;
<label><input type="checkbox" name="rebate" value="1" @(sv14.Contains(",1,") ? "checked" : "") /> 환급</label>&nbsp;&nbsp; <label><input type="checkbox" name="rebate" value="1" @(sv14.Contains(",1,") ? "checked" : "") /> 환급</label>&nbsp;&nbsp;
<label><input type="checkbox" name="rebate" value="0" @(sv14.Contains(",0,") ? "checked" : "") /> 비환급</label>&nbsp;&nbsp; <label><input type="checkbox" name="rebate" value="0" @(sv14.Contains(",0,") ? "checked" : "") /> 비환급</label>&nbsp;&nbsp;

View File

@ -205,7 +205,7 @@ else if (p.isunpay == 3)
@if (p.isgroup == 1 && pi.Where(w => w.ptype == 0).Count() > 1) @if (p.isgroup == 1 && pi.Where(w => w.ptype == 0).Count() > 1)
{ {
<section class="panel panel-default"> <section class="panel panel-default">
<header class="panel-heading"><strong><i class="fa fa-bars"></i> 오프라인강의(단과) 단체수강 교육생정보<span class=""></span></strong></header> <header class="panel-heading"><strong><i class="fa fa-bars"></i> 교육장 강의(단과) 단체수강 교육생정보<span class=""></span></strong></header>
<table class="regtable" style="margin-top: 0;"> <table class="regtable" style="margin-top: 0;">
<thead> <thead>
<tr><th>이름(ID)</th><th>회사</th><th>사업장과의관계</th><th>부서/직위</th><th>회사전화번호</th><th>휴대전화번호</th><th>공정거래업무경력</th></tr> <tr><th>이름(ID)</th><th>회사</th><th>사업장과의관계</th><th>부서/직위</th><th>회사전화번호</th><th>휴대전화번호</th><th>공정거래업무경력</th></tr>

View File

@ -19,7 +19,7 @@
<option value="@t.tmno" @(Model.stringval2 == t.tmno.ToString() ? "selected" : "")>@t.tseq 기</option> <option value="@t.tmno" @(Model.stringval2 == t.tmno.ToString() ? "selected" : "")>@t.tseq 기</option>
} }
</select> </select>
@Html.Partial("./Partial/Select", null, new ViewDataDictionary { { "valuetext", ":-유형선택;0:온라인;1:오프라인;2:혼합" }, { "name", "stringval3" }, { "selected", Model.stringval3 } }) @Html.Partial("./Partial/Select", null, new ViewDataDictionary { { "valuetext", ":-유형선택;0:온라인;1:교육장;2:온라인 혼합" }, { "name", "stringval3" }, { "selected", Model.stringval3 } })
@Html.Partial("./Partial/Select", null, new ViewDataDictionary { { "valuetext", ":-유형선택;0:강의평가;1:사전설문" }, { "name", "stringval4" }, { "selected", Model.stringval4 } }) @Html.Partial("./Partial/Select", null, new ViewDataDictionary { { "valuetext", ":-유형선택;0:강의평가;1:사전설문" }, { "name", "stringval4" }, { "selected", Model.stringval4 } })
@Html.Partial("./Partial/Text", Model.stringval5, Helpers.DicText(new NP.Model.TextDic() { Name = "stringval5", Value = Model.stringval5, PH = "강좌명을 입력하세요.", CssClass = "ff" })) @Html.Partial("./Partial/Text", Model.stringval5, Helpers.DicText(new NP.Model.TextDic() { Name = "stringval5", Value = Model.stringval5, PH = "강좌명을 입력하세요.", CssClass = "ff" }))
@Html.Partial("./Partial/Button", new NP.Model.Button() { Special = "search" }) @Html.Partial("./Partial/Button", new NP.Model.Button() { Special = "search" })

View File

@ -20,7 +20,7 @@
<option value="@t.tmno" @(Model.stringval2 == t.tmno.ToString() ? "selected" : "")>@t.tseq 기</option> <option value="@t.tmno" @(Model.stringval2 == t.tmno.ToString() ? "selected" : "")>@t.tseq 기</option>
} }
</select> </select>
@Html.Partial("./Partial/Select", null, new ViewDataDictionary { { "valuetext", "0:온라인;1:오프라인;2:혼합" }, { "name", "stringval3" }, { "selected", Model.stringval3 }, { "df", ":-유형선택" } }) @Html.Partial("./Partial/Select", null, new ViewDataDictionary { { "valuetext", "0:온라인;1:교육장;2:온라인 혼합" }, { "name", "stringval3" }, { "selected", Model.stringval3 }, { "df", ":-유형선택" } })
@Html.Partial("./Partial/Select", Model.CGs.Where(w => w.pcgno == null), new ViewDataDictionary { { "name", "stringval4" }, { "selected", Model.stringval4 }, { "style", "width: 100%" }, { "df", ":-상위분류" } }) @Html.Partial("./Partial/Select", Model.CGs.Where(w => w.pcgno == null), new ViewDataDictionary { { "name", "stringval4" }, { "selected", Model.stringval4 }, { "style", "width: 100%" }, { "df", ":-상위분류" } })
@Html.Partial("./Partial/Select", Model.CGs.Where(w => w.pcgno != null && w.pcgno.ToString() == Model.stringval4), new ViewDataDictionary { { "name", "stringval5" }, { "selected", Model.stringval5 }, { "style", "width: 100%;" }, { "df", ":-과정분류" } }) @Html.Partial("./Partial/Select", Model.CGs.Where(w => w.pcgno != null && w.pcgno.ToString() == Model.stringval4), new ViewDataDictionary { { "name", "stringval5" }, { "selected", Model.stringval5 }, { "style", "width: 100%;" }, { "df", ":-과정분류" } })
@Html.Partial("./Partial/Button", new NP.Model.Button() { Special = "search", OnClick = "" }) @Html.Partial("./Partial/Button", new NP.Model.Button() { Special = "search", OnClick = "" })

View File

@ -275,14 +275,14 @@ namespace NP.Model
} }
} }
/// <summary> /// <summary>
/// 강의유형 0: 온라인, 1: 오프라인, 2: 혼합(온+오프) /// 강의유형 0: 온라인, 1: 교육장, 2: 혼합(온+오프)
/// </summary> /// </summary>
public int cshape {get;set;} public int cshape {get;set;}
public String cshapename public String cshapename
{ {
get get
{ {
return cshape == 0 ? "온라인" : cshape == 1 ? "오프라인" : cshape == 2 ? "혼합" : "-"; return cshape == 0 ? "온라인" : cshape == 1 ? "교육장" : cshape == 2 ? "온라인 혼합" : "-";
} }
} }
/// <summary> /// <summary>
@ -507,7 +507,7 @@ namespace NP.Model
/// </summary> /// </summary>
public int iseq {get;set;} public int iseq {get;set;}
/// <summary> /// <summary>
/// 학습방식 0:오프라인,1:온라인 /// 학습방식 0:교육장,1:온라인
/// </summary> /// </summary>
public int isonline {get;set;} public int isonline {get;set;}
public String tasteurl { get; set; } public String tasteurl { get; set; }
@ -515,7 +515,7 @@ namespace NP.Model
{ {
get get
{ {
return isonline == 0 ? "오프라인" : "온라인"; return isonline == 0 ? "교육장" : "온라인";
} }
} }
public String isonlinename2 public String isonlinename2
@ -635,7 +635,7 @@ namespace NP.Model
{ {
get get
{ {
return cshape == 0 ? "온라인" : cshape == 1 ? "오프라인" : cshape == 2 ? "혼합" : "-"; return cshape == 0 ? "온라인" : cshape == 1 ? "교육장" : cshape == 2 ? "온라인 혼합" : "-";
} }
} }
public Int64 lectno { get; set; } public Int64 lectno { get; set; }
@ -1113,7 +1113,7 @@ namespace NP.Model
{ {
get get
{ {
return cshape == 0 ? "온라인" : cshape == 1 ? "교육장" : cshape == 2 ? "온라인" : "-"; return cshape == 0 ? "온라인" : cshape == 1 ? "교육장" : cshape == 2 ? "온라인 혼합" : "-";
} }
} }
public String cshapename2 { get; set; } public String cshapename2 { get; set; }
@ -2254,7 +2254,7 @@ namespace NP.Model
{ {
get get
{ {
return cshape == 0 ? "온라인" : cshape == 1 ? "오프라인" : cshape == 2 ? "혼합" : "-"; return cshape == 0 ? "온라인" : cshape == 1 ? "교육장" : cshape == 2 ? "온라인 혼합" : "-";
} }
} }
public String cgname { get; set; } public String cgname { get; set; }