2020-12-22 17:37:14 +09:00
|
|
|
@model NP.Model.Documents
|
|
|
|
|
<form id="mform" method="post">
|
|
|
|
|
<section class="panel panel-default clearfix devsearch" data-cleartbody="tbody1">
|
|
|
|
|
<div class="table-responsive">
|
|
|
|
|
<table class="table b-t b-light viewtable">
|
|
|
|
|
<colgroup>
|
2020-12-23 09:20:12 +09:00
|
|
|
<col style="width:15%" />
|
|
|
|
|
<col style="width:35%" />
|
|
|
|
|
<col style="width:15%" />
|
2020-12-22 17:37:14 +09:00
|
|
|
<col />
|
|
|
|
|
</colgroup>
|
|
|
|
|
<tbody id="searchtbody">
|
|
|
|
|
<tr>
|
2020-12-23 09:59:37 +09:00
|
|
|
<th>교육년도</th>
|
2020-12-22 17:37:14 +09:00
|
|
|
<td>
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
<select id="stringval" name="stringval" class="form-control">
|
|
|
|
|
<option value="">-년도선택</option>
|
|
|
|
|
@foreach (var t in Model.syears)
|
|
|
|
|
{
|
|
|
|
|
<option value="@t.text" @(Model.stringval == t.text.ToString() ? "selected" : "")>@t.text 년</option>
|
|
|
|
|
}
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
<th>과정분류</th>
|
|
|
|
|
<td>
|
2020-12-22 17:38:24 +09:00
|
|
|
<div class="col-md-12">
|
2020-12-22 17:37:14 +09:00
|
|
|
@Html.Partial("./Partial/Select", Model.cgs, new ViewDataDictionary { { "name", "stringval2" }, { "selected", Model.stringval2 }, { "style", "width: 100%" }, { "df", ":-선택" } })
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>교육유형</th>
|
|
|
|
|
<td>
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
@Html.Partial("./Partial/Select", Model.cshapes, new ViewDataDictionary { { "name", "stringval3" }, { "selected", Model.stringval3 }, { "style", "width: 100%" }, { "df", ":-선택" } })
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
<th>기술인분류</th>
|
|
|
|
|
<td>
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
@Html.Partial("./Partial/Select", Model.typemans, new ViewDataDictionary { { "name", "stringval4" }, { "selected", Model.stringval4 }, { "style", "width: 100%" }, { "df", ":-선택" } })
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>교육구분</th>
|
|
|
|
|
<td>
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
@Html.Partial("./Partial/Select", Model.edukinds, new ViewDataDictionary { { "name", "stringval5" }, { "selected", Model.stringval5 }, { "style", "width: 100%" }, { "df", ":-선택" } })
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
<th>교육목적</th>
|
|
|
|
|
<td>
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
@Html.Partial("./Partial/Select", Model.typeedus, new ViewDataDictionary { { "name", "stringval6" }, { "selected", Model.stringval6 }, { "style", "width: 100%" }, { "df", ":-선택" } })
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
2020-12-22 10:21:32 +09:00
|
|
|
|
2020-12-22 17:37:14 +09:00
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>등급</th>
|
|
|
|
|
<td>
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
@Html.Partial("./Partial/Select", Model.typegrades, new ViewDataDictionary { { "name", "stringval7" }, { "selected", Model.stringval7 }, { "style", "width: 100%" }, { "df", ":-선택" } })
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
<th>직무분야</th>
|
|
|
|
|
<td>
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
@Html.Partial("./Partial/Select", Model.typejobs, new ViewDataDictionary { { "name", "stringval8" }, { "selected", Model.stringval8 }, { "style", "width: 100%" }, { "df", ":-선택" } })
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>학습기간</th>
|
|
|
|
|
<td>
|
|
|
|
|
<div class="col-md-12">
|
2020-12-23 09:20:12 +09:00
|
|
|
@Html.Partial("./Partial/Date", string.IsNullOrEmpty(Model.stringval9) ? (DateTime?)null : Convert.ToDateTime(Model.stringval9), new ViewDataDictionary { { "name", "stringval9" } }) ~
|
2020-12-22 17:37:14 +09:00
|
|
|
@Html.Partial("./Partial/Date", string.IsNullOrEmpty(Model.stringval10) ? (DateTime?)null : Convert.ToDateTime(Model.stringval10), new ViewDataDictionary { { "name", "stringval10" } })
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
<th>검색단어</th>
|
|
|
|
|
<td>
|
|
|
|
|
<div class="col-md-4">
|
|
|
|
|
@Html.Partial("./Partial/Select", Model.words, new ViewDataDictionary { { "name", "stringval11" }, { "selected", Model.stringval11 }, { "style", "width: 100%" }, { "df", ":-선택" } })
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-md-8">
|
|
|
|
|
@Html.Partial("./Partial/Text", Model.stringval12, Helpers.DicText(new NP.Model.TextDic() { Name = "stringval12", Value = Model.stringval12, PH = "단어를 입력하세요.", CssClass = "ff" }))
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
2020-12-22 10:21:32 +09:00
|
|
|
|
2020-12-22 17:37:14 +09:00
|
|
|
</section>
|
|
|
|
|
<div style="text-align: right; border-bottom: 1px solid #ddd; padding-bottom: 5px;">
|
|
|
|
|
<button class="btn btn-default btn-s-xs" type="button" onclick="javascript:submit();"><i class="fa fa-search"></i></button>
|
2022-05-16 11:22:06 +09:00
|
|
|
@*<a href="#" onclick="javascript:exceldown('mform', '/croom/documentspast', 'tbody1', 'DocumentsPast');" class="btn btn-default btn-s-xs" style="margin-left: 5px;">엑셀다운로드</a>*@
|
|
|
|
|
<a href="#" onclick="javascript:callComment('mform', '/croom/documentspast', 'tbody1', 'DocumentsPast');" class="btn btn-s-xs btn-success" style="margin-left: 5px;">엑셀다운로드</a>
|
2021-05-25 16:22:56 +09:00
|
|
|
<a href="#" onclick="javascript:viewbatch();" class="btn btn-s-xs btn-info">엑셀일괄등록</a>
|
2020-12-23 09:58:58 +09:00
|
|
|
|
2020-12-22 17:37:14 +09:00
|
|
|
</div><br />
|
|
|
|
|
<div class="tar buttonbox">
|
|
|
|
|
@Html.Partial("./Partial/pagerow", new ViewDataDictionary { { "tbodyid", "tbody1" }, { "searchmethod", "submit()" }, { "pagesize", Model.pagerowcount } })
|
2020-12-22 10:21:32 +09:00
|
|
|
</div>
|
2020-12-22 17:37:14 +09:00
|
|
|
<section class="panel panel-default">
|
|
|
|
|
<div class="table-responsive" id="excel1">
|
2020-12-23 09:20:12 +09:00
|
|
|
<table class="table table-striped b-t b-light" style="width:5000px">
|
2020-12-22 17:37:14 +09:00
|
|
|
<thead>
|
|
|
|
|
<tr>
|
2021-05-25 16:22:56 +09:00
|
|
|
<th>수정</th>
|
|
|
|
|
<th>등록/수정 일자</th>
|
2020-12-22 17:37:14 +09:00
|
|
|
<th>이름</th>
|
|
|
|
|
<th>주민번호</th>
|
2021-06-29 13:59:12 +09:00
|
|
|
<th>교육생연락처</th>
|
|
|
|
|
<th>교육유형</th>
|
2020-12-22 17:37:14 +09:00
|
|
|
<th>교육구분</th>
|
2021-06-29 13:59:12 +09:00
|
|
|
<th>기술인분류</th>
|
|
|
|
|
<th>직무분야</th>
|
2020-12-22 17:37:14 +09:00
|
|
|
<th>교육목적</th>
|
|
|
|
|
<th>등급</th>
|
2021-06-29 13:59:12 +09:00
|
|
|
<th>교육시작일</th>
|
|
|
|
|
<th>교육종료일</th>
|
2020-12-22 17:37:14 +09:00
|
|
|
<th>과정명</th>
|
|
|
|
|
<th>수료번호</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody class="data" id="tbody1">
|
|
|
|
|
@foreach (var item in Model.DocumentList)
|
|
|
|
|
{
|
2020-12-23 09:58:58 +09:00
|
|
|
<tr>
|
2021-05-25 16:22:56 +09:00
|
|
|
<td class="link"><a href="#" onclick="viewdocument(@item.no)">[수정]</a></td>
|
|
|
|
|
<td>@(item.cdt != DateTime.MinValue ? item.cdtymd : item.udt != DateTime.MinValue ? item.udtymd : "-") </td>
|
2020-12-23 09:58:58 +09:00
|
|
|
<td>@item.username</td>
|
2021-05-21 17:51:23 +09:00
|
|
|
<td>@(item.userpno.Length > 7 ? item.userpno.Insert(6,"-") : item.userpno)</td>
|
2021-06-29 13:59:12 +09:00
|
|
|
<td>@item.phone</td>
|
|
|
|
|
<td>@item.cshape</td>
|
2020-12-23 09:58:58 +09:00
|
|
|
<td>@item.edukind</td>
|
2021-06-29 13:59:12 +09:00
|
|
|
<td>@item.typeman</td>
|
|
|
|
|
<td>@item.typejob</td>
|
2020-12-23 09:58:58 +09:00
|
|
|
<td>@item.typeedu</td>
|
|
|
|
|
<td>@item.typegrade</td>
|
2021-06-29 13:59:12 +09:00
|
|
|
<td>@Convert.ToDateTime(@item.ssdate).ToShortDateString()</td>
|
|
|
|
|
<td>@Convert.ToDateTime(@item.sedate).ToShortDateString()</td>
|
2020-12-23 09:58:58 +09:00
|
|
|
<td>@item.cgname</td>
|
|
|
|
|
<td>@item.completeno</td>
|
|
|
|
|
</tr>
|
2020-12-22 17:37:14 +09:00
|
|
|
}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
@Html.Pager((int)Model.pagenum, 10, Model.pagerowcount, Model.pagetotalcount)
|
|
|
|
|
</section>
|
|
|
|
|
</form>
|
2022-05-16 11:22:06 +09:00
|
|
|
<div id="documentbox" class="findbox draggable regbox" style="width: 800px; z-index: 1041; top: 60px;bottom: 30px; overflow: auto;">
|
2021-05-25 16:22:56 +09:00
|
|
|
<h4><i class="fa fa-bars"></i> <span id="pcap">과거 증빙서류 수정</span><a href="#" class="btn btn-default btn-xs f-r closethisbox">닫기</a></h4>
|
|
|
|
|
<input type="hidden" id="document_no" name="document.no" />
|
|
|
|
|
<table class="regtable">
|
|
|
|
|
<colgroup>
|
|
|
|
|
<col style="width:20%" />
|
|
|
|
|
<col style="width:30%" />
|
|
|
|
|
<col style="width:20%" />
|
|
|
|
|
<col />
|
|
|
|
|
</colgroup>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>과정분류</th>
|
|
|
|
|
<td>
|
|
|
|
|
@Html.Partial("./Partial/Select", Model.cgs, new ViewDataDictionary { { "name", "document.cg" }, { "style", "width: 100%" }, { "df", ":-선택" } })
|
|
|
|
|
</td>
|
|
|
|
|
<th>교육유형</th>
|
|
|
|
|
<td>
|
|
|
|
|
@Html.Partial("./Partial/Select", Model.cshapes, new ViewDataDictionary { { "name", "document.cshape" }, { "style", "width: 100%" }, { "df", ":-선택" } })
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>이름</th>
|
|
|
|
|
<td>
|
|
|
|
|
@Html.Partial("./Partial/Text", null, Helpers.DicText(new NP.Model.TextDic() { Name = "document.username", Style = "width:100%;" }))
|
|
|
|
|
</td>
|
|
|
|
|
<th>주민번호</th>
|
|
|
|
|
<td>
|
|
|
|
|
@Html.Partial("./Partial/Text", null, Helpers.DicText(new NP.Model.TextDic() { Name = "document.userpno", Style = "width:100%;" }))
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>기술인분류</th>
|
|
|
|
|
<td>
|
|
|
|
|
@Html.Partial("./Partial/Select", Model.typemans, new ViewDataDictionary { { "name", "document.typeman" }, { "style", "width: 100%" }, { "df", ":-선택" } })
|
|
|
|
|
</td>
|
|
|
|
|
<th>교육구분</th>
|
|
|
|
|
<td>
|
|
|
|
|
@Html.Partial("./Partial/Select", Model.edukinds, new ViewDataDictionary { { "name", "document.edukind" }, { "style", "width: 100%" }, { "df", ":-선택" } })
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>교육목적</th>
|
|
|
|
|
<td>
|
|
|
|
|
@Html.Partial("./Partial/Select", Model.typeedus, new ViewDataDictionary { { "name", "document.typeedu" }, { "style", "width: 100%" }, { "df", ":-선택" } })
|
|
|
|
|
</td>
|
|
|
|
|
<th>등급</th>
|
|
|
|
|
<td>
|
|
|
|
|
@Html.Partial("./Partial/Select", Model.typegrades, new ViewDataDictionary { { "name", "document.typegrade" }, { "style", "width: 100%" }, { "df", ":-선택" } })
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>직무분야</th>
|
|
|
|
|
<td>
|
|
|
|
|
@Html.Partial("./Partial/Select", Model.typejobs, new ViewDataDictionary { { "name", "document.typejob" }, { "style", "width: 100%" }, { "df", ":-선택" } })
|
|
|
|
|
</td>
|
|
|
|
|
<th>과정명</th>
|
|
|
|
|
<td>
|
|
|
|
|
@Html.Partial("./Partial/Text", null, Helpers.DicText(new NP.Model.TextDic() { Name = "document.cgname", Style = "width:100%;" }))
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>수료번호</th>
|
|
|
|
|
<td>
|
|
|
|
|
@Html.Partial("./Partial/Text", null, Helpers.DicText(new NP.Model.TextDic() { Name = "document.completeno", Style = "width:100%;" }))
|
|
|
|
|
</td>
|
|
|
|
|
<th>업체명</th>
|
|
|
|
|
<td>
|
|
|
|
|
@Html.Partial("./Partial/Text", null, Helpers.DicText(new NP.Model.TextDic() { Name = "document.companyname", Style = "width:100%;" }))
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>업체주소</th>
|
|
|
|
|
<td colspan="3">
|
|
|
|
|
@Html.Partial("./Partial/Text", null, Helpers.DicText(new NP.Model.TextDic() { Name = "document.companyaddr", Style = "width:100%;" }))
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>사업자등록번호</th>
|
|
|
|
|
<td>
|
|
|
|
|
@Html.Partial("./Partial/Text", null, Helpers.DicText(new NP.Model.TextDic() { Name = "document.brno", Style = "width:100%;" }))
|
|
|
|
|
</td>
|
|
|
|
|
<th>고용보험관리번호</th>
|
|
|
|
|
<td>
|
|
|
|
|
@Html.Partial("./Partial/Text", null, Helpers.DicText(new NP.Model.TextDic() { Name = "document.eino", Style = "width:100%;" }))
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>업태</th>
|
|
|
|
|
<td>
|
|
|
|
|
@Html.Partial("./Partial/Text", null, Helpers.DicText(new NP.Model.TextDic() { Name = "document.btype", Style = "width:100%;" }))
|
|
|
|
|
</td>
|
|
|
|
|
<th>종목</th>
|
|
|
|
|
<td>
|
|
|
|
|
@Html.Partial("./Partial/Text", null, Helpers.DicText(new NP.Model.TextDic() { Name = "document.bkind", Style = "width:100%;" }))
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>대표자</th>
|
|
|
|
|
<td>
|
|
|
|
|
@Html.Partial("./Partial/Text", null, Helpers.DicText(new NP.Model.TextDic() { Name = "document.ceoname", Style = "width:100%;" }))
|
|
|
|
|
</td>
|
|
|
|
|
<th>교육일시작일</th>
|
|
|
|
|
<td>
|
|
|
|
|
@Html.Partial("./Partial/Date", null, new ViewDataDictionary { { "name", "document.ssdate" } })
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>교육일종료일</th>
|
|
|
|
|
<td>
|
|
|
|
|
@Html.Partial("./Partial/Date", null, new ViewDataDictionary { { "name", "document.sedate" } })
|
|
|
|
|
</td>
|
|
|
|
|
<th>교육이수시간</th>
|
|
|
|
|
<td>
|
|
|
|
|
@Html.Partial("./Partial/Text", null, Helpers.DicText(new NP.Model.TextDic() { Name = "document.sctime", Style = "width:100%;" }))
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>소속협회</th>
|
|
|
|
|
<td>
|
|
|
|
|
@Html.Partial("./Partial/Text", null, Helpers.DicText(new NP.Model.TextDic() { Name = "document.assign", Style = "width:100%;" }))
|
|
|
|
|
</td>
|
|
|
|
|
<th>학력</th>
|
|
|
|
|
<td>
|
|
|
|
|
@Html.Partial("./Partial/Text", null, Helpers.DicText(new NP.Model.TextDic() { Name = "document.slevel", Style = "width:100%;" }))
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>직위</th>
|
|
|
|
|
<td>
|
|
|
|
|
@Html.Partial("./Partial/Text", null, Helpers.DicText(new NP.Model.TextDic() { Name = "document.uduty", Style = "width:100%;" }))
|
|
|
|
|
</td>
|
|
|
|
|
<th>교육생연락처</th>
|
|
|
|
|
<td>
|
|
|
|
|
@Html.Partial("./Partial/Text", null, Helpers.DicText(new NP.Model.TextDic() { Name = "document.phone", Style = "width:100%;" }))
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>업체담당자</th>
|
|
|
|
|
<td>
|
|
|
|
|
@Html.Partial("./Partial/Text", null, Helpers.DicText(new NP.Model.TextDic() { Name = "document.mname", Style = "width:100%;" }))
|
|
|
|
|
</td>
|
|
|
|
|
<th>업체담당자연락처</th>
|
|
|
|
|
<td>
|
|
|
|
|
@Html.Partial("./Partial/Text", null, Helpers.DicText(new NP.Model.TextDic() { Name = "document.mphone", Style = "width:100%;" }))
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>교육비</th>
|
|
|
|
|
<td>
|
|
|
|
|
@Html.Partial("./Partial/Text", null, Helpers.DicText(new NP.Model.TextDic() { Name = "document.sprice", Style = "width:100%;" }))
|
|
|
|
|
</td>
|
|
|
|
|
<th>환급액</th>
|
|
|
|
|
<td>
|
|
|
|
|
@Html.Partial("./Partial/Text", null, Helpers.DicText(new NP.Model.TextDic() { Name = "document.rprice", Style = "width:100%;" }))
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>환급은행명</th>
|
|
|
|
|
<td>
|
|
|
|
|
@Html.Partial("./Partial/Text", null, Helpers.DicText(new NP.Model.TextDic() { Name = "document.rbank", Style = "width:100%;" }))
|
|
|
|
|
</td>
|
|
|
|
|
<th>환급계좌</th>
|
|
|
|
|
<td>
|
|
|
|
|
@Html.Partial("./Partial/Text", null, Helpers.DicText(new NP.Model.TextDic() { Name = "document.rbankno", Style = "width:100%;" }))
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>환급계좌예금주</th>
|
|
|
|
|
<td>
|
|
|
|
|
@Html.Partial("./Partial/Text", null, Helpers.DicText(new NP.Model.TextDic() { Name = "document.rbankuser", Style = "width:100%;" }))
|
|
|
|
|
</td>
|
|
|
|
|
<th>계산서이메일</th>
|
|
|
|
|
<td>
|
|
|
|
|
@Html.Partial("./Partial/Text", null, Helpers.DicText(new NP.Model.TextDic() { Name = "document.taxemail", Style = "width:100%;" }))
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>교육연도</th>
|
|
|
|
|
<td>
|
|
|
|
|
@Html.Partial("./Partial/Select", Model.syears, new ViewDataDictionary { { "name", "document.syear" }, { "style", "width: 100%" }, { "df", ":-선택" } })
|
|
|
|
|
</td>
|
2022-05-16 11:22:06 +09:00
|
|
|
<th>구분</th>
|
2021-05-25 16:22:56 +09:00
|
|
|
<td>
|
|
|
|
|
@Html.Partial("./Partial/Select", Model.kinds, new ViewDataDictionary { { "name", "document.kind" }, { "style", "width: 100%" }, { "df", ":-선택" } })
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<div class="findboxbtnbox" id="btnsave">
|
|
|
|
|
<a href="#" class="btn btn-primary" onclick="update();">수정</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="batchbox" class="findbox draggable regbox summernoteparentfixedbox" style="width: 500px; z-index: 1041; left: 50%; margin-left: -250px; top: 60px; bottom: 30px; overflow: auto;">
|
|
|
|
|
<h4><a href="#" class="btn btn-default btn-xs f-r closethisbox" style="margin-right:5px; margin-top:5px;">닫기</a></h4>
|
|
|
|
|
<section class="panel panel-default" style="border-top: 1px solid #ddd; margin-top: 5px;">
|
|
|
|
|
<header class="panel-heading"><strong><i class="fa fa-bars"></i> 일괄등록<span class=""></span></strong></header>
|
|
|
|
|
<div class="panel-body">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-5 col-md-3 control-label">일괄등록</label>
|
|
|
|
|
<div class="col-sm-7 col-md-9">
|
2022-05-16 11:22:06 +09:00
|
|
|
<input id="uploadfile" type="file" /><br />
|
2021-05-25 16:22:56 +09:00
|
|
|
</div>
|
|
|
|
|
<div class="findboxbtnbox">
|
|
|
|
|
<a href="~/Content/file/documentspast.xlsx" class="btn btn-info">양식다운로드</a>
|
|
|
|
|
<a href="#" class="btn btn-primary" onclick="save();">일괄등록</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|
|
|
|
|
</div>
|
2020-12-22 17:37:14 +09:00
|
|
|
@section scriptsHeader{
|
|
|
|
|
@Html.Partial("./Partial/ScriptDate")
|
2022-05-16 11:22:06 +09:00
|
|
|
@Html.Partial("./Partial/ExcelCommentBox")
|
2020-12-22 17:37:14 +09:00
|
|
|
}
|
|
|
|
|
@section scripts{
|
|
|
|
|
<script>
|
|
|
|
|
$(document).ready(function () {
|
2022-05-16 11:22:06 +09:00
|
|
|
});
|
|
|
|
|
|
2021-05-25 16:22:56 +09:00
|
|
|
function jsonDateToString(jsonDate) {
|
|
|
|
|
var date = new Date(parseInt(jsonDate.replace(/(^.*\()|([+-].*$)/g, '')));
|
|
|
|
|
var yyyy = String(date.getFullYear());
|
|
|
|
|
var MM = (date.getMonth() + 1) < 10 ? "0" + (date.getMonth() + 1) : String(date.getMonth() + 1);
|
2022-05-16 11:22:06 +09:00
|
|
|
var dd = date.getDate() < 10 ? "0" + date.getDate() : String(date.getDate());
|
2021-05-25 16:22:56 +09:00
|
|
|
return yyyy + "-" + MM + "-" + dd;;
|
|
|
|
|
}
|
|
|
|
|
function viewdocument(no) {
|
2022-05-16 11:22:06 +09:00
|
|
|
capp("/acommon/DocumnetsPast", { no: no }, "cbviewdocument", null, null, true);
|
2021-05-25 16:22:56 +09:00
|
|
|
}
|
|
|
|
|
function cbviewdocument() {
|
2022-05-16 11:22:06 +09:00
|
|
|
if (capResult.code == 1000) {
|
|
|
|
|
for (key in capResult.obj) {
|
2021-05-25 16:22:56 +09:00
|
|
|
if (key == "ssdate" || key == "sedate") {
|
|
|
|
|
capResult.obj[key] = jsonDateToString(capResult.obj[key]);
|
|
|
|
|
} else if (key == "userpno") {
|
|
|
|
|
capResult.obj[key] = capResult.obj[key].substr(0, 6) + "-" + capResult.obj[key].substr(6);
|
|
|
|
|
}
|
|
|
|
|
$("#document_" + key).val(capResult.obj[key]);
|
2022-05-16 11:22:06 +09:00
|
|
|
}
|
2021-05-25 16:22:56 +09:00
|
|
|
bglayer(); $("#documentbox").slideDown("fast");
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
msgadmin2();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function update() {
|
2023-05-02 14:56:34 +09:00
|
|
|
if ($("#document_userpno").val() == "") {
|
|
|
|
|
$("#document_userpno").focus();
|
|
|
|
|
msg2("주민번호를 입력해주세요.");
|
|
|
|
|
} else if (!$.isNumeric($("#document_userpno").val().replace(/-/gi, "")) || $("#document_userpno").val().replace(/-/gi, "").length != 13) {
|
|
|
|
|
$("#document_userpno").focus();
|
|
|
|
|
msg2("잘못된 주민번호입니다.");
|
|
|
|
|
} else if ($("#document_ssdate").val() == "") {
|
|
|
|
|
$("#document_ssdate").focus();
|
|
|
|
|
msg2("교육일시작일 입력해주세요.");
|
|
|
|
|
} else if ($("#document_sedate").val() == "") {
|
|
|
|
|
$("#document_sedate").focus();
|
|
|
|
|
msg2("교육일종료일 입력해주세요.");
|
|
|
|
|
} else if ($("#document_completeno").val() == "") {
|
|
|
|
|
$("#document_completeno").focus();
|
|
|
|
|
msg2("수료번호를 입력해주세요.");
|
|
|
|
|
} else if ($("#document_cgname").val() == "") {
|
|
|
|
|
$("#document_cgname").focus();
|
|
|
|
|
msg2("과정명을 입력해주세요.");
|
|
|
|
|
}else {
|
|
|
|
|
if (confirm("과거 증빙서류를 수정하시겠습니까??")) {
|
|
|
|
|
var data = {};
|
|
|
|
|
$.each($("#documentbox input, #documentbox select"), function () {
|
|
|
|
|
data[this.name.replace(/document./gi, "")] = this.value;
|
|
|
|
|
});
|
|
|
|
|
capp("/acommon/DocumnetsPastUpdate", data, "cbupdate");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function updateOld() {
|
2021-05-25 16:22:56 +09:00
|
|
|
if ($("#document_username").val() == "") {
|
|
|
|
|
$("#document_username").focus();
|
2022-05-16 11:22:06 +09:00
|
|
|
msg2("이름을 입력해주세요.");
|
2021-05-25 16:22:56 +09:00
|
|
|
} else if ($("#document_userpno").val() == "") {
|
|
|
|
|
$("#document_userpno").focus();
|
|
|
|
|
msg2("주민번호를 입력해주세요.");
|
|
|
|
|
} else if (!$.isNumeric($("#document_userpno").val().replace(/-/gi, "")) || $("#document_userpno").val().replace(/-/gi, "").length != 13) {
|
|
|
|
|
$("#document_userpno").focus();
|
|
|
|
|
msg2("잘못된 주민번호입니다.");
|
|
|
|
|
} else if (!$.isNumeric($("#document_brno").val())) {
|
|
|
|
|
$("#document_brno").focus();
|
|
|
|
|
msg2("사업자등록번호는 숫자만 입력가능합니다.");
|
|
|
|
|
} else if (!$.isNumeric($("#document_eino").val())) {
|
|
|
|
|
$("#document_eino").focus();
|
|
|
|
|
msg2("고용보험관리번호는 숫자만 입력가능합니다.");
|
|
|
|
|
} else if (!$.isNumeric($("#document_sctime").val())) {
|
|
|
|
|
$("#document_sctime").focus();
|
|
|
|
|
msg2("교육이수시간은 숫자만 입력가능합니다.");
|
|
|
|
|
} else if (!$.isNumeric($("#document_sprice").val())) {
|
|
|
|
|
$("#document_sprice").focus();
|
|
|
|
|
msg2("교육비는 숫자만 입력가능합니다.");
|
|
|
|
|
} else if (!$.isNumeric($("#document_rprice").val())) {
|
|
|
|
|
$("#document_rprice").focus();
|
|
|
|
|
msg2("환급액은 숫자만 입력가능합니다.");
|
|
|
|
|
} else if (!$.isNumeric($("#document_rbankno").val())) {
|
|
|
|
|
$("#document_rbankno").focus();
|
|
|
|
|
msg2("환급계좌는 숫자만 입력가능합니다.");
|
|
|
|
|
} else if (!$.isNumeric($("#document_syear").val())) {
|
|
|
|
|
$("#document_syear").focus();
|
|
|
|
|
msg2("교육년도는 숫자만 입력가능합니다.");
|
|
|
|
|
} else {
|
|
|
|
|
if (confirm("과거 증빙서류를 수정하시겠습니까??")) {
|
|
|
|
|
var data = {};
|
|
|
|
|
$.each($("#documentbox input, #documentbox select"), function () {
|
|
|
|
|
data[this.name.replace(/document./gi, "")] = this.value;
|
|
|
|
|
});
|
|
|
|
|
capp("/acommon/DocumnetsPastUpdate", data, "cbupdate");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function cbupdate() {
|
2022-05-16 11:22:06 +09:00
|
|
|
if (capResult.code == 1000) {
|
2021-05-25 16:22:56 +09:00
|
|
|
msgok(1, "", true);
|
|
|
|
|
submit("mform", 800, true);
|
|
|
|
|
} else {
|
|
|
|
|
msgadmin2();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function viewbatch() {
|
|
|
|
|
bglayer(); $("#batchbox").slideDown("fast", function () { $("#batchbox").scrollTop(0); });
|
|
|
|
|
}
|
|
|
|
|
|
2022-05-16 11:22:06 +09:00
|
|
|
function save() {
|
2021-05-25 16:22:56 +09:00
|
|
|
if ($("#uploadfile").val() == "") {
|
|
|
|
|
msg2("파일을 선택해주세요.");
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
var thumbext = $("#uploadfile").val();
|
2022-05-16 11:22:06 +09:00
|
|
|
thumbext = thumbext.slice(thumbext.indexOf(".") + 1).toLowerCase();
|
|
|
|
|
if (thumbext.indexOf("xlsx") < 0) {
|
2021-05-25 16:22:56 +09:00
|
|
|
msg("xlsx 확장자만 가능합니다.", 0, true);
|
|
|
|
|
}
|
2022-05-16 11:22:06 +09:00
|
|
|
else if (confirm("일괄등록하시겠습니까?")) {
|
2021-05-25 16:22:56 +09:00
|
|
|
var formData = new FormData();
|
|
|
|
|
formData.append("uploadfile", $("#uploadfile")[0].files[0]);
|
|
|
|
|
formData.append("uploadjob", "documentbatch");
|
|
|
|
|
capfile("/acommon/uploadexcel", formData, "cbsave", true, false, true, true);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function cbsave() {
|
|
|
|
|
$("#uploadfile").val("");
|
|
|
|
|
if (capResult.code == 1000) {
|
|
|
|
|
msg("일괄등록을 완료했습니다.", null, true, null, true);
|
|
|
|
|
submit("mform", 800, true);
|
|
|
|
|
}
|
2022-05-16 11:22:06 +09:00
|
|
|
else {
|
2021-05-25 16:22:56 +09:00
|
|
|
msg("업로드가 실패했습니다.<br /><br /><br />" + capResult.msg, null, true);
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-12-22 17:37:14 +09:00
|
|
|
</script>
|
|
|
|
|
}
|