2020-10-12 14:39:23 +09:00
|
|
|
@model NP.Model.VMUser
|
|
|
|
|
<div style="@(Model.User.userno > 0 && Model.viewname !="admin" ? "":"display: none;")">
|
|
|
|
|
<ul class="pagination pagination-md" style="margin: 0;">
|
|
|
|
|
<li class="@(Model.tabidx == 0 ? "active" : "")"><a href="#" onclick="gotab(0);" data-toggle="tab">기본정보</a></li>
|
|
|
|
|
@if (Model.viewname == "user")
|
|
|
|
|
{
|
|
|
|
|
<li class="@(Model.tabidx == 1 ? "active" : "")"><a href="#" onclick="gotab(1);" data-toggle="tab">교육이력</a></li>
|
2021-02-01 13:43:57 +09:00
|
|
|
<li class="@(Model.tabidx == 3 ? "active" : "")"><a href="#" onclick="gotab(3);" data-toggle="tab">상담이력</a></li>
|
2020-10-12 14:39:23 +09:00
|
|
|
}
|
|
|
|
|
else if (Model.viewname == "professor")
|
|
|
|
|
{
|
2021-01-05 13:57:38 +09:00
|
|
|
<li class="@(Model.tabidx == 2 ? "active" : "")"><a href="#" onclick="gotab(2);" data-toggle="tab">강의이력</a></li>
|
2020-10-12 14:39:23 +09:00
|
|
|
}
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="row" id="regbox">
|
|
|
|
|
<form id="mform" method="post" enctype="multipart/form-data" class="form-horizontal">
|
|
|
|
|
<section class="panel panel-default">
|
|
|
|
|
<div class="panel-body">
|
|
|
|
|
<div class="form-group" style="@(Model.viewname == "admin"?"":"display: none;")">
|
|
|
|
|
<label class="col-sm-4 col-md-2 control-label req">권한선택</label>
|
|
|
|
|
<div class="col-sm-8 col-md-10">
|
|
|
|
|
@if (Model.viewname == "user" || Model.viewname == "professor")
|
|
|
|
|
{
|
|
|
|
|
@Html.HiddenFor(m => m.User.usertype)
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
@Html.Partial("./Partial/Select", Model.userauths, new ViewDataDictionary { { "name", "User.usertype" }, { "selected", Model.User.usertype }, { "df", ":-권한선택" }, { "special", "reg" } })
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="line line-dashed line-lg pull-in"></div><div class="form-group">
|
2020-10-16 12:57:39 +09:00
|
|
|
<label class="col-sm-4 col-md-2 control-label req">ID</label>
|
2020-10-12 14:39:23 +09:00
|
|
|
<div class="col-sm-8 col-md-10">@Html.TextBoxFor(m => m.User.userid, new { @class = "form-control disp-init ff", @style = "width: 300px;", @maxlength = "50" })</div>
|
|
|
|
|
</div>
|
|
|
|
|
<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>
|
|
|
|
|
<div class="col-sm-8 col-md-10">@Html.PasswordFor(m => m.User.userpass, new { @class = "form-control disp-init", @style = "width: 300px;", @maxlength = "20" })</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="line line-dashed line-lg pull-in"></div><div class="form-group">
|
2020-10-16 12:57:39 +09:00
|
|
|
<label class="col-sm-4 col-md-2 control-label req">이름</label>
|
2020-10-12 14:39:23 +09:00
|
|
|
<div class="col-sm-8 col-md-10">@Html.TextBoxFor(m => m.User.username, new { @class = "form-control disp-init", @style = "width: 300px;", @maxlength = "50" })</div>
|
2020-11-30 14:44:19 +09:00
|
|
|
@Html.HiddenFor(m=>m.User.jointype)
|
2020-10-12 14:39:23 +09:00
|
|
|
</div>
|
|
|
|
|
@if (Model.viewname == "user")
|
|
|
|
|
{
|
|
|
|
|
<div class="line line-dashed line-lg pull-in"></div><div class="form-group">
|
2020-10-16 12:57:39 +09:00
|
|
|
<label class="col-sm-4 col-md-2 control-label">주민등록번호</label>
|
|
|
|
|
<div class="col-sm-8 col-md-10">
|
|
|
|
|
@Html.HiddenFor(m => m.User.userpno)
|
|
|
|
|
@Html.TextBox("userpno1", (Model.User.userpno ?? "").Length > 5 ? Model.User.userpno.Substring(0, 6) : Model.User.userpno, new { @class = "form-control disp-init int nocomma text-center", @data_zero = "1", @style = "width: 143px;", @maxlength = "6" }) -
|
|
|
|
|
@Html.TextBox("userpno2", (Model.User.userpno ?? "").Length > 12 ? Model.User.userpno.Substring(6, 7) : Model.User.userpno, new { @class = "form-control disp-init int nocomma text-center", @data_zero = "1", @style = "width: 143px;", @maxlength = "7" })
|
|
|
|
|
</div>
|
2020-10-12 14:39:23 +09:00
|
|
|
</div>
|
2020-11-30 14:13:00 +09:00
|
|
|
<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>
|
|
|
|
|
<div class="col-sm-8 col-md-10">@Html.Partial("./Partial/Radio", null, new ViewDataDictionary() { { "valuetext", "1:예;0:아니오" }, { "checked", Model.User.ischkatt }, { "name", "User.ischkatt" } })</div>
|
|
|
|
|
</div>
|
2020-10-12 14:39:23 +09:00
|
|
|
}
|
|
|
|
|
<div class="line line-dashed line-lg pull-in"></div><div class="form-group">
|
|
|
|
|
<label class="col-sm-4 col-md-2 control-label @(Model.viewname =="user" || Model.viewname=="professor" ? "req" : "")">이메일</label>
|
|
|
|
|
<div class="col-sm-8 col-md-10">
|
|
|
|
|
@Html.TextBoxFor(m => m.User.email, new { @class = "form-control disp-init", @style = "width: 300px;", @maxlength = "50" })
|
|
|
|
|
@if (Model.viewname == "user")
|
|
|
|
|
{
|
|
|
|
|
<label><input type="checkbox" name="User.isacceptemail" value="1" @(Model.User.isacceptemail == 1 ? "checked" : "") /> 수신</label>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="line line-dashed line-lg pull-in"></div><div class="form-group">
|
2020-10-16 12:57:39 +09:00
|
|
|
<label class="col-sm-4 col-md-2 control-label @(Model.viewname =="user" ? "req" : "") ">핸드폰</label>
|
|
|
|
|
<div class="col-sm-8 col-md-10">
|
|
|
|
|
@Html.TextBoxFor(m => m.User.mobile, new { @class = "form-control disp-init mobilefmt nocomma", @data_zero = "1", @style = "width: 300px;", @maxlength = "13" })
|
|
|
|
|
@if (Model.viewname == "user")
|
|
|
|
|
{
|
|
|
|
|
<label><input type="checkbox" name="User.isacceptmobile" value="1" @(Model.User.isacceptmobile == 1 ? "checked" : "") /> 수신</label>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
2020-10-12 14:39:23 +09:00
|
|
|
</div>
|
|
|
|
|
@if (Model.viewname == "user")
|
|
|
|
|
{
|
2020-11-30 14:13:00 +09:00
|
|
|
@Html.HiddenFor(w => w.User.birthday)
|
|
|
|
|
@*@Html.Partial("./Partial/Date", Model.User.birthday == null ? (DateTime?)null : Convert.ToDateTime(Model.User.birthday), new ViewDataDictionary { { "name", "User.birthday" } })*@
|
2020-10-12 14:39:23 +09:00
|
|
|
}
|
2020-10-16 12:57:39 +09:00
|
|
|
@if (Model.viewname == "user")
|
|
|
|
|
{
|
|
|
|
|
<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>
|
|
|
|
|
<div class="col-sm-8 col-md-10 postbox" style="line-height: 35px;">
|
|
|
|
|
@Html.TextBoxFor(m => m.User.post, new { @readonly = "readonly", @style = "width: 70px; background-color: #ddd;", @class = "postno form-control disp-init" }) <a href="#" onclick="javascript: getpost2(this);" title="주소찾기"><i class="fa fa-map-marker" style="font-size: 13px;"></i> 주소찾기(클릭 후 상단검색)</a>
|
|
|
|
|
<br />@Html.TextBoxFor(m => m.User.address1, new { @readonly = "readonly", @style = "background-color: #ddd; width: 300px;", @class = "postadr form-control disp-init", @placeholder = "주소" })
|
|
|
|
|
@Html.TextBoxFor(m => m.User.address2, new { @class = "postadrsub form-control disp-init", @placeholder = "상세주소", @style = "width: 400px;" })
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
<div class="line line-dashed line-lg pull-in assignbox" style="@(ViewBag.isadmin && Model.viewname != "professor" ? "" : "display:none;")"></div>
|
|
|
|
|
<div class="form-group assignbox" style="@(ViewBag.isadmin && Model.viewname != "professor" ? "" : "display:none;")">
|
2020-10-12 14:39:23 +09:00
|
|
|
<label class="col-sm-4 col-md-2 control-label">소속</label>
|
|
|
|
|
<div class="col-sm-8 col-md-10">
|
|
|
|
|
<a href="#" class="btn btn-info btn-find btn-xs data-find data-find-float" onclick="findassignshow()"><i class="fa fa-search"></i></a>
|
|
|
|
|
@Html.HiddenFor(m => m.User.asno)
|
|
|
|
|
<ul class="selectgroupul" id="asbox">
|
|
|
|
|
@if (Model.User.asno > 0)
|
|
|
|
|
{
|
|
|
|
|
<li data-no="@Model.User.asno"><label>@Model.User.asname</label><a href="#" class="adel" onclick="assigndel(this)">X</a></li>
|
|
|
|
|
}
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2020-10-16 12:57:39 +09:00
|
|
|
@if (Model.viewname == "user")
|
2020-10-12 14:39:23 +09:00
|
|
|
{
|
2021-05-03 13:41:22 +09:00
|
|
|
<div class="line line-dashed line-lg pull-in"></div>
|
|
|
|
|
<div class="form-group" style="display:none;">
|
2020-10-16 12:57:39 +09:00
|
|
|
<label class="col-sm-4 col-md-2 control-label">채용형태</label>
|
|
|
|
|
<div class="col-sm-8 col-md-10">@Html.Partial("./Partial/Radio", null, new ViewDataDictionary() { { "valuetext", "1:정규직;0:비정규직" }, { "checked", Model.User.isassignuser }, { "name", "User.isassignuser" } })</div>
|
2020-10-12 14:39:23 +09:00
|
|
|
</div>
|
2021-05-03 13:41:22 +09:00
|
|
|
<div class="line line-dashed line-lg pull-in"></div>
|
|
|
|
|
<div class="form-group">
|
2020-10-16 12:57:39 +09:00
|
|
|
<label class="col-sm-4 col-md-2 control-label">직위</label>
|
|
|
|
|
<div class="col-sm-8 col-md-10">@Html.TextBoxFor(m => m.User.uduty, new { @class = "form-control disp-init", @style = "width: 300px;", @maxlength = "50" })</div>
|
2020-10-12 14:39:23 +09:00
|
|
|
</div>
|
2021-05-03 13:41:22 +09:00
|
|
|
<div class="line line-dashed line-lg pull-in"></div>
|
|
|
|
|
<div class="form-group">
|
2020-10-16 12:57:39 +09:00
|
|
|
<label class="col-sm-4 col-md-2 control-label">학력</label>
|
|
|
|
|
<div class="col-sm-8 col-md-10">@Html.Partial("./Partial/Radio", null, new ViewDataDictionary() { { "valuetext", "0:기타;1:고졸;2:학사;3:석사;4:박사" }, { "checked", Model.User.slevel }, { "name", "User.slevel" } })</div>
|
2020-10-12 14:39:23 +09:00
|
|
|
</div>
|
2020-10-16 12:57:39 +09:00
|
|
|
}
|
|
|
|
|
@if (Model.viewname == "professor" || Model.viewname == "admin")
|
|
|
|
|
{
|
|
|
|
|
if (Model.viewname == "professor")
|
2020-10-12 14:39:23 +09:00
|
|
|
{
|
|
|
|
|
<div class="line line-dashed line-lg pull-in"></div><div class="form-group">
|
2020-10-16 12:57:39 +09:00
|
|
|
<label class="col-sm-4 col-md-2 control-label">소속</label>
|
|
|
|
|
<div class="col-sm-8 col-md-10">@Html.TextBoxFor(m => m.User.pasname, new { @class = "form-control disp-init", @style = "width: 300px;", @maxlength = "50" })</div>
|
2020-10-12 14:39:23 +09:00
|
|
|
</div>
|
|
|
|
|
}
|
2020-10-16 12:57:39 +09:00
|
|
|
|
2020-10-12 14:39:23 +09:00
|
|
|
<div class="line line-dashed line-lg pull-in"></div><div class="form-group">
|
2020-10-16 12:57:39 +09:00
|
|
|
<label class="col-sm-4 col-md-2 control-label">부서</label>
|
|
|
|
|
<div class="col-sm-8 col-md-10">@Html.TextBoxFor(m => m.User.depart, new { @class = "form-control disp-init", @style = "width: 300px;", @maxlength = "50" })</div>
|
|
|
|
|
</div>
|
|
|
|
|
<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>
|
|
|
|
|
<div class="col-sm-8 col-md-10">
|
|
|
|
|
@Html.Partial("./Partial/Select", Model.ComCodes.Where(w => w.cgroup == "jobposition"), new ViewDataDictionary { { "special", "reg" }, { "name", "User.ccposition" }, { "selected", Model.User.ccposition }, { "df", ":-직급선택" }, { "class", "disp-init" } })
|
|
|
|
|
@Html.TextBoxFor(m => m.User.ccpositionetc, new { @class = "form-control disp-init", @style = "width: 100px;" + (Model.User.ccposition == null || (Model.ComCodes.Where(w => w.ccode == Model.User.ccposition).FirstOrDefault() ?? new NP.Model.ComCode()).refcode != "9" ? "display:none;" : ""), @maxlength = "40" })
|
2020-10-12 14:39:23 +09:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2020-10-16 12:57:39 +09:00
|
|
|
if (Model.viewname == "professor")
|
2020-10-12 14:39:23 +09:00
|
|
|
{
|
|
|
|
|
<div class="line line-dashed line-lg pull-in"></div><div class="form-group">
|
2020-10-16 12:57:39 +09:00
|
|
|
<label class="col-sm-4 col-md-2 control-label">사진</label>
|
2020-10-12 14:39:23 +09:00
|
|
|
<div class="col-sm-8 col-md-10">
|
2020-10-16 12:57:39 +09:00
|
|
|
@Html.Partial("./Partial/File", Model.FileList, new ViewDataDictionary {
|
|
|
|
|
{ "name", "User.fgnoprofile" },{"value", Model.User.fgnoprofile },{ "fname", "file"},
|
|
|
|
|
{"width", null },{"table", "users" },{ "column", "fgnoprofile"},{"filecount", 1 },
|
|
|
|
|
{"readmode", 0 },{"hidemode", 0 },
|
|
|
|
|
{ "isimage", 1 },{ "imageid", "imgprofile" },{ "dftsrc", "/img/common/profile_sample.jpg" },
|
|
|
|
|
{ "fileext", "" }, { "loginfo",Model.User.userno+"|9"}
|
|
|
|
|
})
|
|
|
|
|
<br />
|
|
|
|
|
<img id="imgprofile" src="@(Model.FileList.Count() > 0 && !string.IsNullOrEmpty(Model.FileList.First().fileurl) ? string.Format("{0}{1}", Model.Files, Model.FileList.First().fileurl) : "/img/common/profile_sample.jpg")" style="max-width: 135px; max-height: 135px; border-radius: 5px;" />
|
2020-10-12 14:39:23 +09:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
2020-10-16 12:57:39 +09:00
|
|
|
}
|
|
|
|
|
@if (Model.viewname == "user" || Model.viewname == "professor")
|
|
|
|
|
{
|
|
|
|
|
|
2020-10-12 14:39:23 +09:00
|
|
|
if (Model.viewname == "professor")
|
|
|
|
|
{
|
|
|
|
|
<div class="line line-dashed line-lg pull-in"></div><div class="form-group">
|
2020-10-16 12:57:39 +09:00
|
|
|
<label class="col-sm-4 col-md-2 control-label">주민등록번호</label>
|
2020-10-12 14:39:23 +09:00
|
|
|
<div class="col-sm-8 col-md-10">
|
|
|
|
|
@Html.HiddenFor(m => m.User.userpno)
|
2020-10-16 12:57:39 +09:00
|
|
|
@Html.TextBox("userpno1", (Model.User.userpno ?? "").Length > 5 ? Model.User.userpno.Substring(0, 6) : Model.User.userpno, new { @class = "form-control disp-init int nocomma text-center", @data_zero = "1", @style = "width: 143px;", @maxlength = "6" }) -
|
|
|
|
|
@Html.TextBox("userpno2", (Model.User.userpno ?? "").Length > 12 ? Model.User.userpno.Substring(6, 7) : Model.User.userpno, new { @class = "form-control disp-init int nocomma text-center", @data_zero = "1", @style = "width: 143px;", @maxlength = "7" })
|
2020-10-12 14:39:23 +09:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<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>
|
|
|
|
|
<div class="col-sm-8 col-md-10">
|
|
|
|
|
@Html.TextBoxFor(m => m.User.bankname, new { @class = "form-control disp-init", @style = "width: 200px;", @maxlength = "50", @placeholder = "은행입력" })
|
|
|
|
|
@Html.TextBoxFor(m => m.User.bankno, new { @class = "form-control disp-init", @style = "width: 400px;", @maxlength = "30", @placeholder = "계좌번호입력" })
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2020-10-16 12:57:39 +09:00
|
|
|
<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>
|
|
|
|
|
<div class="col-sm-8 col-md-10 postbox" style="line-height: 35px;">
|
|
|
|
|
@Html.TextBoxFor(m => m.User.post, new { @readonly = "readonly", @style = "width: 70px; background-color: #ddd;", @class = "postno form-control disp-init" }) <a href="#" onclick="javascript: getpost2(this);" title="주소찾기"><i class="fa fa-map-marker" style="font-size: 13px;"></i> 주소찾기(클릭 후 상단검색)</a>
|
|
|
|
|
<br />@Html.TextBoxFor(m => m.User.address1, new { @readonly = "readonly", @style = "background-color: #ddd; width: 300px;", @class = "postadr form-control disp-init", @placeholder = "주소" })
|
|
|
|
|
@Html.TextBoxFor(m => m.User.address2, new { @class = "postadrsub form-control disp-init", @placeholder = "상세주소", @style = "width: 400px;" })
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2020-10-12 14:39:23 +09:00
|
|
|
<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>
|
|
|
|
|
<div class="col-sm-8 col-md-10">@Html.TextAreaFor(m => m.User.introhtml, new { @class = "form-control", @style = "resize: none; width: 90%; height: 80px; padding: 3px 5px;" })</div>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
<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>
|
|
|
|
|
<div class="col-sm-8 col-md-10">@Html.Partial("./Partial/Radio", null, new ViewDataDictionary() { { "valuetext", "1:활성;8:휴면;9:비활성" }, { "checked", Model.User.status }, { "name", "User.status" } })</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|
|
|
|
|
<div class="botfixempty"> </div>
|
|
|
|
|
<div class="form-group botfix">
|
|
|
|
|
<a href="#" class="btn btn-primary" onclick="save();">저장</a>
|
|
|
|
|
@if (Model.User.userno > 0 && Model.viewname == "user")
|
|
|
|
|
{
|
|
|
|
|
<a href="#" class="btn btn-danger" onclick="del();">탈퇴</a>
|
|
|
|
|
}
|
|
|
|
|
else if (Model.User.userno > 0 && Model.viewname == "professor")
|
|
|
|
|
{
|
|
|
|
|
<a href="#" class="btn btn-danger" onclick="del();">삭제</a>
|
|
|
|
|
}
|
|
|
|
|
<a href="#" class="btn btn-default" onclick="golist();">목록</a>
|
|
|
|
|
</div>
|
|
|
|
|
@Html.HiddenFor(m => m.intval)
|
|
|
|
|
@Html.HiddenFor(m => m.User.userno)
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
<section class="panel panel-default" id="lectbox" style="display: none;">
|
|
|
|
|
<div class="table-responsive" id="excel2">
|
|
|
|
|
<table class="table table-striped b-t b-light">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th width="20">No</th>
|
|
|
|
|
<th>기수</th>
|
|
|
|
|
<th>과정분류</th>
|
|
|
|
|
<th>강좌명(분반)</th>
|
|
|
|
|
<th>신청구분</th>
|
|
|
|
|
<th>신청일</th>
|
|
|
|
|
<th>결제여부</th>
|
|
|
|
|
<th>수료여부</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody class="data" id="tbody2">
|
|
|
|
|
@foreach (var item in Model.Lects)
|
|
|
|
|
{
|
|
|
|
|
<tr>
|
|
|
|
|
<td>@item.rnorvt</td>
|
|
|
|
|
<td>@item.tmname</td>
|
|
|
|
|
<td>@item.cgname</td>
|
|
|
|
|
<td>@item.cnameclassno</td>
|
|
|
|
|
<td>@item.isrebatename</td>
|
|
|
|
|
<td>@item.cdtymd</td>
|
|
|
|
|
<td>@item.pstatusname</td>
|
|
|
|
|
|
|
|
|
|
<td>@item.iscompletename</td>
|
|
|
|
|
<td>@item.iscompletename</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="botfixempty"> </div>
|
|
|
|
|
<div class="form-group botfix">
|
|
|
|
|
<a href="#" class="btn btn-default" onclick="golist();">목록</a>
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|
|
|
|
|
<section class="panel panel-default" id="profbox" style="display: none;">
|
|
|
|
|
<div class="table-responsive" id="excel3">
|
|
|
|
|
<table class="table table-striped b-t b-light">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th width="20">No</th>
|
|
|
|
|
<th>기수</th>
|
|
|
|
|
<th>과정분류</th>
|
|
|
|
|
<th>강좌명(분반)</th>
|
|
|
|
|
<th>강의기간</th>
|
|
|
|
|
<th>강의료</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody class="data" id="tbody3">
|
|
|
|
|
@foreach (var item in Model.CMPRs)
|
|
|
|
|
{
|
|
|
|
|
<tr>
|
|
|
|
|
<td>@item.rnorvt</td>
|
|
|
|
|
<td>@item.tmname</td>
|
|
|
|
|
<td>@item.cgname</td>
|
|
|
|
|
<td class="text-left">@item.cname (@item.classno)</td>
|
|
|
|
|
<td>@string.Format("{0} ~{1}", item.sstime == null ? "" : item.sstime.Value.ToString("yy-MM-dd"), item.setime == null ? "" : item.setime.Value.ToString("yy-MM-dd"))</td>
|
|
|
|
|
<td><input type="text" class="pfee form-control int text-right" data-cmno="@item.cmno" value="@item.pfee.ToString("#,0")" /></td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="botfixempty"> </div>
|
|
|
|
|
<div class="form-group botfix">
|
|
|
|
|
<a href="#" class="btn btn-primary" onclick="savepfee();">저장</a>
|
|
|
|
|
<a href="#" class="btn btn-select" onclick="prt();">인쇄</a>
|
|
|
|
|
<a href="#" class="btn btn-default" onclick="golist();">목록</a>
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|
2021-01-06 13:01:08 +09:00
|
|
|
<div id="boardbox" style="display: none;">
|
|
|
|
|
<section class="panel panel-default">
|
|
|
|
|
<header class="panel-heading font-bold">상담내용입력</header>
|
|
|
|
|
<div class="panel-body">
|
|
|
|
|
<form id="mform2" method="post" class="form-horizontal" enctype="multipart/form-data">
|
|
|
|
|
@Html.HiddenFor(m => m.Councel.bno)
|
|
|
|
|
<input type="hidden" id="intval2" name="intval2" value="@Model.intval" />
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-lg-2 control-label">문의구분</label>
|
|
|
|
|
<div class="col-lg-10">
|
2021-02-01 13:43:57 +09:00
|
|
|
@Html.Partial("./Partial/Select", Model.ComCodes2, new ViewDataDictionary { {"class","form-control"} ,{ "name", "Councel.bldgcat" }, { "selected", null }, { "style", "width: 30%;padding:3px 5px;" }, { "df", ":선택" }, { "formgroupstyle", "padding-left:15px" } })
|
2021-01-06 13:01:08 +09:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="line line-dashed line-lg pull-in"></div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-lg-2 control-label">문의내용</label>
|
|
|
|
|
<div class="col-lg-10">
|
|
|
|
|
@Html.TextAreaFor(m=>m.Councel.qtext, new { @class = "form-control",@rows="2", @style = "resize:none; width:90%;padding:3px 5px;" })
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="line line-dashed line-lg pull-in"></div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-lg-2 control-label">답변내용</label>
|
|
|
|
|
<div class="col-lg-10">
|
|
|
|
|
@Html.TextAreaFor(m=>m.Councel.atext, new {@class="form-control", @rows = "2", @style="resize:none; width:90%; padding:3px 5px;" })
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="line line-dashed line-lg pull-in"></div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<div class="col-sm-offset-10">
|
|
|
|
|
<a href="#" class="btn btn-info" id="btnadd" onclick="save2();">등록</a>
|
|
|
|
|
<a href="#" class="btn btn-primary" style="display:none;" id="btnsave" onclick="save2();">저장</a>
|
|
|
|
|
<a href="#" class="btn btn-danger" style="display:none;" id="btndelete" onclick="del2();">삭제</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|
|
|
|
|
<section class="panel panel-default">
|
|
|
|
|
<header class="panel-heading font-bold">상담이력</header>
|
|
|
|
|
<div class="table-responsive" id="excel4">
|
|
|
|
|
<table class="table table-striped b-t b-light">
|
|
|
|
|
<thead>
|
2021-01-05 13:57:38 +09:00
|
|
|
<tr>
|
2021-02-01 13:43:57 +09:00
|
|
|
<th width="5%">No</th>
|
|
|
|
|
<th width="10%">구분</th>
|
|
|
|
|
<th width="25%">문의내용</th>
|
|
|
|
|
<th width="30%">답변내용</th>
|
|
|
|
|
<th width="15%">등록일</th>
|
|
|
|
|
<th width="15%">상담자</th>
|
2021-01-05 13:57:38 +09:00
|
|
|
</tr>
|
2021-01-06 13:01:08 +09:00
|
|
|
</thead>
|
|
|
|
|
<tbody class="data" id="tbody4">
|
|
|
|
|
@foreach (var item in Model.Councels)
|
|
|
|
|
{
|
|
|
|
|
<tr data-bno="@item.bno" data-bldgcat="@item.bldgcat">
|
|
|
|
|
<td>@item.rnorvt</td>
|
|
|
|
|
<td>@item.bldgcatname</td>
|
|
|
|
|
<td class="qt">@item.qtext</td>
|
|
|
|
|
<td class="link at"><a href="#" onclick="javascript:councelup(this);">@item.atext</a></td>
|
|
|
|
|
<td>@item.cdtymdnlhms</td>
|
|
|
|
|
<td>@(item.coname) (@(item.coid))</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="botfixempty"> </div>
|
|
|
|
|
<div class="form-group botfix">
|
|
|
|
|
<a href="#" class="btn btn-default" onclick="golist();">목록</a>
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|
|
|
|
|
</div>
|
2020-10-12 14:39:23 +09:00
|
|
|
<form id="dform" method="post" action="/user/@(Model.viewname)s">
|
|
|
|
|
@Html.Partial("./Partial/DForm", Model, new ViewDataDictionary { { "preform", 1 } })
|
|
|
|
|
</form>
|
|
|
|
|
<div id="postlayer" class="daumpost">
|
|
|
|
|
<a href="#" class="btn btn-xxs btn-select closedaumpost" onclick="closeDaumPostcode();">close</a>
|
|
|
|
|
</div>
|
|
|
|
|
@Html.Partial("./Partial/AssignBox", "bindAssign;고객사 검색;1")
|
|
|
|
|
@section styles{
|
|
|
|
|
@Html.Partial("./Partial/Summernotestyle")
|
|
|
|
|
}
|
|
|
|
|
@section scriptsHeader{
|
|
|
|
|
@Html.Partial("./Partial/ScriptPost")
|
|
|
|
|
@Html.Partial("./Partial/FileScript")
|
2020-10-16 12:57:39 +09:00
|
|
|
@Html.Partial("./Partial/ScriptDate")
|
2020-10-12 14:39:23 +09:00
|
|
|
@if (Model.viewname == "professor")
|
|
|
|
|
{
|
|
|
|
|
@Html.Partial("./Partial/Summernote")
|
|
|
|
|
}
|
2021-01-06 13:01:08 +09:00
|
|
|
<style type="text/css">
|
|
|
|
|
tr.red{border: 2px solid red;}
|
|
|
|
|
</style>
|
2020-10-12 14:39:23 +09:00
|
|
|
}
|
|
|
|
|
@section scripts{
|
|
|
|
|
<script>
|
|
|
|
|
function gotab(idx) {
|
2021-01-06 13:01:08 +09:00
|
|
|
$("#tabidx").val(idx);
|
2021-01-05 13:57:38 +09:00
|
|
|
$("#lectbox, #regbox, #profbox, #boardbox").hide();
|
2021-01-06 13:01:08 +09:00
|
|
|
if (idx == 0) { $("#regbox").show();}
|
2020-10-12 14:39:23 +09:00
|
|
|
else if (idx == 1) { $("#lectbox").show(); }
|
|
|
|
|
else if (idx == 2) { $("#profbox").show(); }
|
2021-01-06 13:01:08 +09:00
|
|
|
else if (idx == 3) { $("#boardbox").show(); }
|
2020-10-12 14:39:23 +09:00
|
|
|
}
|
|
|
|
|
function bindAssign(data) {
|
|
|
|
|
var v = data.split(':')[0];
|
|
|
|
|
setv("User_asno", v);
|
|
|
|
|
$("#asbox").html("");
|
|
|
|
|
$("#asbox").append("<li data-no=\"" + v + "\"><label>" + data.split(':')[1]+"</label><a href=\"#\" class=\"adel\" onclick=\"assigndel(this)\">X</a></li>");
|
|
|
|
|
}
|
|
|
|
|
function assigndel(a) {
|
|
|
|
|
$(a).closest("li").remove();
|
|
|
|
|
setv("User_asno", "");
|
|
|
|
|
}
|
|
|
|
|
$(document).ready(function () {
|
2021-01-06 13:01:08 +09:00
|
|
|
gotab(@Model.tabidx);
|
2020-10-12 14:39:23 +09:00
|
|
|
if ('@(Model.User.userno)' != '0') {
|
|
|
|
|
$("#User_userid").attr("readonly", "readonly");
|
|
|
|
|
}
|
|
|
|
|
$("#User_usertype").on("change", function () {
|
|
|
|
|
$(".assignbox").show();
|
|
|
|
|
if ($(this).val() == "92") {
|
|
|
|
|
$(".assignbox").hide();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
$("#User_mobile").on("change", function () {
|
|
|
|
|
$("#User_mobile").val(formatmobile(val("#User_mobile")));
|
|
|
|
|
});
|
|
|
|
|
if ($("#User_usertype").val() == "92") {
|
|
|
|
|
$(".assignbox").hide();
|
|
|
|
|
}
|
|
|
|
|
if ('@Model.viewname' == 'professor') {
|
|
|
|
|
$('#User_introhtml').summernote({
|
|
|
|
|
height: 100,
|
|
|
|
|
tabsize: 2,
|
|
|
|
|
callbacks: {
|
|
|
|
|
onImageUpload: function (files, editor, welEditable) {
|
|
|
|
|
var fdata = new FormData();
|
|
|
|
|
fdata.append('img', files[0]);
|
|
|
|
|
fdata.append('fd', "Editor");
|
|
|
|
|
uploadeditorimage(files, this, fdata, "cbeditorupload()");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
2020-10-16 12:57:39 +09:00
|
|
|
if ('@Model.viewname' == 'admin') {
|
|
|
|
|
$("#User_")
|
|
|
|
|
}
|
2020-10-12 14:39:23 +09:00
|
|
|
$("#User_ccposition").on("change", function () {
|
|
|
|
|
$("#User_ccpositionetc").hide();
|
|
|
|
|
if ($(this).find("option:selected").attr("data-refcode") == "9") {
|
|
|
|
|
$("#User_ccpositionetc").show().focus();
|
2020-10-16 12:57:39 +09:00
|
|
|
}
|
2020-10-12 14:39:23 +09:00
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
function save() {
|
2021-04-12 15:00:21 +09:00
|
|
|
setv("User_userpno", val("userpno1")+val("userpno2"));
|
2020-10-12 14:39:23 +09:00
|
|
|
setv("User_mobile", formatmobile(val("User_mobile")));
|
|
|
|
|
setv("User_telno", formatphone(val("User_telno")));
|
|
|
|
|
if (val("User_usertype") == "0" || val("User_usertype") == "") { focus("User_usertype");msg("권한을 선택해주세요."); }
|
|
|
|
|
else if (check("User_userid", null, "ID를 입력해주세요.")) { }
|
|
|
|
|
else if (val("User_userid").length < 6) {focus("User_userid"); msg("ID를 6글자 이상으로 입력해주세요.");}
|
|
|
|
|
else if (val("User_userno") == '0' && !ispassword(val("User_userpass"))) { focus("User_userpass"); msg("6글자이상의 비밀번호를 입력해주세요."); }
|
2021-04-30 11:08:20 +09:00
|
|
|
else if (val("userpno1") != "" && val("userpno2") == "") { focus("userpno2"); msg("주민등록번호를 제대로 입력해주세요."); }
|
|
|
|
|
else if ((val("userpno1") != "" && val("userpno2") != "") && $("#User_userpno").val().length < 13) { focus("userpno2"); msg("주민등록번호를 제대로 입력해주세요."); }
|
2020-10-12 14:39:23 +09:00
|
|
|
else if (check("User_username", null, "이름을 입력해주세요.")) { }
|
2020-10-16 12:57:39 +09:00
|
|
|
else if (('@Model.viewname' == 'professor' || '@Model.viewname' == 'user') && check("User_email",null,"이메일을 입력해주세요")) { }
|
|
|
|
|
else if (('@Model.viewname' == 'professor' || '@Model.viewname' == 'user') && check("User_mobile", null, "핸드폰 번호를 입력해주세요")) { }
|
2020-10-12 14:39:23 +09:00
|
|
|
else if (!isnulloremt(val("User_email")) && !isemail(val("User_email"))) { focus("User_email"); msg("이메일주소를 올바르게 입력해주세요."); }
|
|
|
|
|
//else if (!isnulloremt(val("User_mobile")) && (!ismobile(val("User_mobile")) )) { focus("User_mobile"); msg("핸드폰번호를 올바르게 입력해주세요."); }
|
2021-04-30 17:28:30 +09:00
|
|
|
//else if ((val("User_usertype") == "1" || val("User_usertype") == "81") && val("User_asno") == "") { msg("소속을 등록해주세요.");}
|
2020-10-12 14:39:23 +09:00
|
|
|
else if (confirm("저장하시겠습니까?")) {
|
|
|
|
|
if (val("User_usertype") >= "92") {
|
|
|
|
|
setv("User_asno", "");
|
|
|
|
|
}
|
|
|
|
|
if ('@Model.viewname' == 'professor') {
|
|
|
|
|
var cdata = $('#User_introhtml').summernote('code');
|
|
|
|
|
cdata = cdata == "<p><br></p>" ? "" : cdata;
|
|
|
|
|
setv("User_introhtml", cdata);
|
|
|
|
|
}
|
|
|
|
|
capfileform("/acommon/usersave", "mform", "cbsave");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function cbsave() {
|
|
|
|
|
if (capResult.code == 1000) {
|
|
|
|
|
msgok(1, "", true);
|
|
|
|
|
golist(200, true);
|
|
|
|
|
} else if (capResult.obj == -1) {
|
|
|
|
|
focus("User_userid");
|
|
|
|
|
msg("이미 사용중인 아이디입니다.");
|
|
|
|
|
} else if (capResult.obj == -2) {
|
|
|
|
|
focus("User_email");
|
|
|
|
|
msg("이미 사용중인 이메일주소입니다.");
|
2020-10-29 17:12:47 +09:00
|
|
|
} else if (capResult.obj == -3) {
|
|
|
|
|
focus("User_email");
|
|
|
|
|
msg("이미 사용중인 휴대폰번호입니다.");
|
2020-10-12 14:39:23 +09:00
|
|
|
}
|
|
|
|
|
else { msgdev(); }
|
|
|
|
|
}
|
|
|
|
|
function del() {
|
|
|
|
|
if (confirm(('@Model.viewname' == "user"?"탈퇴":"삭제")+"처리하시겠습니까?")) {
|
|
|
|
|
capp("/acommon/userexitjoin", { userno: @Model.User.userno}, "cbdel");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function cbdel() {
|
|
|
|
|
if (capResult.code == 1000) {
|
|
|
|
|
msg("처리되었습니다.", 0, null, null, true);
|
|
|
|
|
golist(500, true);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function savepfee() {
|
|
|
|
|
if ($("#tbody3 tr").length < 1) {
|
|
|
|
|
msg("인쇄할 데이터가 없습니다.");
|
|
|
|
|
} else if (confirm("저장하시겠습니까?")) {
|
|
|
|
|
var sd = "";
|
|
|
|
|
$.each($("#tbody3 tr input.pfee"), function (i, c) {
|
|
|
|
|
sd += ";" + $(c).attr("data-cmno") + ":" + getint($(c).val());
|
|
|
|
|
});
|
|
|
|
|
capp("/acommon/cmprpfee", { userno:@Model.User.userno, sd: sd.substr(1) }, "cbsavepfee");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function prt() {
|
|
|
|
|
if ($("#tbody3 tr").length < 1) {
|
|
|
|
|
msg("인쇄할 데이터가 없습니다.");
|
|
|
|
|
} else {
|
|
|
|
|
winopen("/user/urprint?intval=@Model.intval", "urprint", 800, 600);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function cbsavepfee() {
|
|
|
|
|
if (capResult.code == 1000) {
|
|
|
|
|
msgok(1);
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-01-06 13:01:08 +09:00
|
|
|
function councelup(obj) {
|
|
|
|
|
$("#tbody4").find("tr").removeClass("red");
|
|
|
|
|
$("#btnadd").hide();
|
|
|
|
|
$("#btnsave").hide();
|
|
|
|
|
$("#btndelete").hide();
|
|
|
|
|
//선택된거면 해제(등록모드로 변경)
|
|
|
|
|
if ($("#Councel_bno").val() == $(obj).closest("tr").attr("data-bno")) {
|
|
|
|
|
$("#btnadd").show();
|
|
|
|
|
$("#Councel_bno").val(0);
|
|
|
|
|
$("#Councel_bldgcat").val("");
|
|
|
|
|
$("#Councel_qtext").val("");
|
|
|
|
|
$("#Councel_atext").val("");
|
|
|
|
|
} else {
|
|
|
|
|
$("#btnsave").show();
|
|
|
|
|
$("#btndelete").show();
|
|
|
|
|
$("#Councel_bno").val($(obj).closest("tr").attr("data-bno"));
|
|
|
|
|
$("#Councel_bldgcat").val($(obj).closest("tr").attr("data-bldgcat"));
|
|
|
|
|
$("#Councel_qtext").val($(obj).closest("tr").find("td.qt").text());
|
|
|
|
|
$("#Councel_atext").val($(obj).closest("tr").find("td.at").text());
|
|
|
|
|
$(obj).closest("tr").addClass("red");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function save2() {
|
|
|
|
|
if ($("#Councel_bldgcat") == "") { msg("문의구분을 선택하세요."); }
|
|
|
|
|
else if (check("Councel_qtext", null, "문의내용을 입력하세요.")) { }
|
|
|
|
|
else if (check("Councel_atext", null, "답변내용을 입력하세요.")) { }
|
|
|
|
|
else {
|
|
|
|
|
if ($("#Councel_bno").val() > 0) {
|
|
|
|
|
if (confirm("변경하시겠습니까?")) {
|
|
|
|
|
capfileform("/acommon/councelsave", "mform2", "cbsave2");
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
if (confirm("등록하시겠습니까?")) {
|
|
|
|
|
capfileform("/acommon/councelsave", "mform2", "cbsave2");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function cbsave2() {
|
|
|
|
|
if (capResult.code == 1000) {
|
|
|
|
|
msgok(1, "", true);
|
|
|
|
|
$("#dform_tabidx").val(3);
|
2021-01-06 13:15:21 +09:00
|
|
|
$("#dform").attr("action","/user/@(Model.viewname)reg").submit();
|
2021-01-06 13:01:08 +09:00
|
|
|
} else {
|
|
|
|
|
msgdev();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function del2(){
|
|
|
|
|
if ($("#Councel_bno").val() > 0) {
|
|
|
|
|
if (confirm("삭제하시겠습니까?")) {
|
|
|
|
|
capp("/acommon/counceldel", { bno: $("#Councel_bno").val() }, "cbdel2");
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
msg("삭제할 상담을 선택하세요.");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function cbdel2() {
|
|
|
|
|
if (capResult.code == 1000) {
|
|
|
|
|
msgok(0, "", true);
|
|
|
|
|
$("#dform_tabidx").val(3);
|
|
|
|
|
$("#dform").attr("action", "/user/@(Model.viewname)reg").submit();
|
|
|
|
|
} else {
|
|
|
|
|
msgdev();
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-10-12 14:39:23 +09:00
|
|
|
</script>
|
|
|
|
|
}
|