This commit is contained in:
parent
a01e95516f
commit
a158e681e4
|
|
@ -829,6 +829,7 @@ namespace NP.BO.Controllers
|
|||
DateTime.Now.AddMonths(-2).ToString("yyyy-MM-dd");
|
||||
vm.Lects = Dao.Get<Lect>("lect.lecture.document", ht);
|
||||
vm.pagetotalcount = GetCount(vm.Lects.FirstOrDefault());
|
||||
|
||||
return View(vm);
|
||||
}
|
||||
|
||||
|
|
@ -875,6 +876,19 @@ namespace NP.BO.Controllers
|
|||
vm.DocumentList = Dao.Get<Document>("cr.documnetspast", ht);
|
||||
vm.pagetotalcount = GetCount(vm.DocumentList.FirstOrDefault());
|
||||
|
||||
if (vm.isexceldown == 1)
|
||||
{
|
||||
vm.DocumentList = Dao.Get<Document>("cr.documnetspast", ht);
|
||||
return ExportExcel(
|
||||
new String[] { "구분","과정분류","교육유형","이름","주민번호","기술인분류","교육구분","교육목적","등급","직무분야","과정명","수료번호","업체명","업체주소","사업자등록번호",
|
||||
"고용보험관리번호","업태","종목","대표자","교육시작일","교육종료일","교육이수시간","소속협회","학력","직위","교육생연락처","업체담당자","업체담당당자 연락처","교육비",
|
||||
"환급액","환급은행명","환급계좌" ,"환급계좌예금주","계산서이메일","교육연도"},
|
||||
new String[] { "kind", "cg", "cshape", "username", "userpno", "typeman", "edukind", "typeedu", "typegrade", "typejob", "cgname", "completeno", "companyname",
|
||||
"companyaddr", "brno", "eino", "btype", "bkind", "ceoname", "ssdate","sedate","sctime","assign","slevel","uduty","phone","mname","mphone",
|
||||
"sprice","rprice","rbank","rbankno","rbankuser","taxemail","syear"},
|
||||
vm.DocumentList,
|
||||
"증빙서류출력(과거)");
|
||||
}
|
||||
return View(vm);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -98,6 +98,8 @@
|
|||
</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>
|
||||
<a href="#" onclick="javascript:exceldown('mform', '/croom/documentspast', 'tbody1', 'DocumentsPast');" class="btn btn-default btn-s-xs" style="margin-left: 5px;">엑셀다운로드</a>
|
||||
|
||||
</div><br />
|
||||
<div class="tar buttonbox">
|
||||
@Html.Partial("./Partial/pagerow", new ViewDataDictionary { { "tbodyid", "tbody1" }, { "searchmethod", "submit()" }, { "pagesize", Model.pagerowcount } })
|
||||
|
|
@ -146,42 +148,42 @@
|
|||
<tbody class="data" id="tbody1">
|
||||
@foreach (var item in Model.DocumentList)
|
||||
{
|
||||
<tr>
|
||||
<td>@item.kind</td>
|
||||
<td>@item.cshape</td>
|
||||
<td>@item.username</td>
|
||||
<td>@item.userpno</td>
|
||||
<td>@item.typeman</td>
|
||||
<td>@item.edukind</td>
|
||||
<td>@item.typeedu</td>
|
||||
<td>@item.typegrade</td>
|
||||
<td>@item.typejob</td>
|
||||
<td>@item.cgname</td>
|
||||
<td>@item.completeno</td>
|
||||
<td>@item.companyname</td>
|
||||
<td>@item.companyaddr</td>
|
||||
<td>@item.brno</td>
|
||||
<td>@item.eino</td>
|
||||
<td>@item.btype</td>
|
||||
<td>@item.bkind</td>
|
||||
<td>@item.ceoname</td>
|
||||
<td>@Convert.ToDateTime(@item.ssdate).ToShortDateString()</td>
|
||||
<td>@Convert.ToDateTime(@item.sedate).ToShortDateString()</td>
|
||||
<td>@item.sctime</td>
|
||||
<td>@item.assign</td>
|
||||
<td>@item.slevel</td>
|
||||
<td>@item.uduty</td>
|
||||
<td>@item.phone</td>
|
||||
<td>@item.mname</td>
|
||||
<td>@item.mphone</td>
|
||||
<td>@item.sprice</td>
|
||||
<td>@item.rprice</td>
|
||||
<td>@item.rbank</td>
|
||||
<td>@item.rbankno</td>
|
||||
<td>@item.rbankuser</td>
|
||||
<td>@item.taxemail</td>
|
||||
<td>@item.syear</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>@item.kind</td>
|
||||
<td>@item.cshape</td>
|
||||
<td>@item.username</td>
|
||||
<td>@item.userpno</td>
|
||||
<td>@item.typeman</td>
|
||||
<td>@item.edukind</td>
|
||||
<td>@item.typeedu</td>
|
||||
<td>@item.typegrade</td>
|
||||
<td>@item.typejob</td>
|
||||
<td>@item.cgname</td>
|
||||
<td>@item.completeno</td>
|
||||
<td>@item.companyname</td>
|
||||
<td>@item.companyaddr</td>
|
||||
<td>@item.brno</td>
|
||||
<td>@item.eino</td>
|
||||
<td>@item.btype</td>
|
||||
<td>@item.bkind</td>
|
||||
<td>@item.ceoname</td>
|
||||
<td>@Convert.ToDateTime(@item.ssdate).ToShortDateString()</td>
|
||||
<td>@Convert.ToDateTime(@item.sedate).ToShortDateString()</td>
|
||||
<td>@item.sctime</td>
|
||||
<td>@item.assign</td>
|
||||
<td>@item.slevel</td>
|
||||
<td>@item.uduty</td>
|
||||
<td>@item.phone</td>
|
||||
<td>@item.mname</td>
|
||||
<td>@item.mphone</td>
|
||||
<td>@item.sprice</td>
|
||||
<td>@item.rprice</td>
|
||||
<td>@item.rbank</td>
|
||||
<td>@item.rbankno</td>
|
||||
<td>@item.rbankuser</td>
|
||||
<td>@item.taxemail</td>
|
||||
<td>@item.syear</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
|||
Loading…
Reference in New Issue