fix : 결과 화면 수정 및 맵핑 화면 수정.

dev
Leeyh1121 5 months ago
parent 48123ffe88
commit 8e3d020b6a

@ -26,7 +26,7 @@ public class DsuseMgtMappingController extends AbstractController {
; ;
} }
@RequestMapping(name="마약류폐기 신청서 접수 메인", value=METHOD_URL.dsuseMgtMappingMain) @RequestMapping(name="폐기 보고 확인 메인", value=METHOD_URL.dsuseMgtMappingMain)
public ModelAndView main() { public ModelAndView main() {
ModelAndView mav = new ModelAndView("adds/nims/dsuseMgtMapping-main"); ModelAndView mav = new ModelAndView("adds/nims/dsuseMgtMapping-main");
@ -40,7 +40,7 @@ public class DsuseMgtMappingController extends AbstractController {
; ;
} }
@RequestMapping(name="마약류폐기 신청서 접수 상세", value=METHOD_URL.dsuseMgtMappinginfo) @RequestMapping(name="페기 보고 확인 등록", value=METHOD_URL.dsuseMgtMappinginfo)
public ModelAndView getdsuseMgtReceiptInfo() { public ModelAndView getdsuseMgtReceiptInfo() {
ModelAndView mav = new ModelAndView("adds/nims/dsuseMgtMapping-info"); ModelAndView mav = new ModelAndView("adds/nims/dsuseMgtMapping-info");

@ -56,13 +56,14 @@ public class DsuseMgtRsltController extends AbstractController {
} }
@RequestMapping(name="마약류폐기 신청서 접수 상세", value=METHOD_URL.dsuseMgtRsltInfo) @RequestMapping(name="마약류폐기 신청서 접수 상세", value=METHOD_URL.dsuseMgtRsltInfo)
public ModelAndView getdsuseMgtReceiptInfo() { public ModelAndView getdsuseMgtReceiptInfo(String usrRptIdNo) {
ModelAndView mav = new ModelAndView("adds/nims/dsuseMgtRslt-info"); ModelAndView mav = new ModelAndView("adds/nims/dsuseMgtRslt-info");
return mav return mav
.addObject("pageName", "dsuseMgtRsltInfo") // View(jsp)에서 사용할 id 뒤에 붙일 suffix .addObject("pageName", "dsuseMgtRsltInfo") // View(jsp)에서 사용할 id 뒤에 붙일 suffix
// .addObject("infoPrefix", "dsuseMgtReceipt") // prefix .addObject("infoPrefix", "dsuseMgtRsltInfo") // prefix
// .addObject("infoPrefixUrl", "/adds/nims") // prefixUrl .addObject("infoPrefixUrl", "/adds/nims") // prefixUrl
.addObject("usrRptIdNo", usrRptIdNo) // View(jsp)에서 사용할 id 뒤에 붙일 suffix
; ;
} }
} }

@ -98,15 +98,13 @@
</div> </div>
</form> </form>
<form id="productList--${pageName}" name="productList"> <form id="productList--${pageName}" name="productList">
<div class="table-responsive ox-scroll oy-scroll h-px-300" id="table-responsive-1--${pageName}"> <div class="table-responsive ox-scroll oy-scroll h-px-300" id="table-responsive--${pageName}">
<table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" id="DataTables_Table_0--productList" aria-describedby="DataTables_Table_0_info"> <table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" id="DataTables_Table_0--productList" aria-describedby="DataTables_Table_0_info">
<thead class="sticky-thead"> <thead class="sticky-thead">
<tr id="theadTr--productList" <tr id="theadTr--productList"
data-by="by--productList" data-by-output="byOutput--productList" data-main-option="mainOption--productList" data-sub-option="subOption--productList"> data-by="by--productList" data-by-output="byOutput--productList" data-main-option="mainOption--productList" data-sub-option="subOption--productList">
<th style="width: 15.828px;text-align:center;" tabindex="0">No</th>
<th class="sorting sorting_asc" aria-sort="ascending" style="width: 223.719px;">제품명</th> <th class="sorting sorting_asc" aria-sort="ascending" style="width: 223.719px;">제품명</th>
<th class="sorting" style="width: 146.156px;">제품코드</th> <th class="sorting" style="width: 146.156px;">제품코드</th>
<th class="sorting" style="width: 160.141px;">제품번호</th>
<th class="sorting" style="width: 160.141px;">제조 번호</th> <th class="sorting" style="width: 160.141px;">제조 번호</th>
<th class="sorting" style="width: 160.141px;">제조 일련 번호</th> <th class="sorting" style="width: 160.141px;">제조 일련 번호</th>
<th class="sorting" style="width: 230.469px;">유효기간</th> <th class="sorting" style="width: 230.469px;">유효기간</th>
@ -122,9 +120,8 @@
</tbody> </tbody>
<template id="productListRow--productList"> <template id="productListRow--productList">
<tr data-key="{prductCd}"> <tr data-key="{prductCd}">
<td style="text-align:center;"><input value="prductCd" onchange="userControl.select('{prductCd}', this.checked);" type="checkbox" class="form-check-input"></td>
<td class="cmn text-center" {onclick}="" {ondblclick}="">{prductCd}</td>
<td class="cmn text-center" {onclick}="" {ondblclick}="">{prductNm}</td> <td class="cmn text-center" {onclick}="" {ondblclick}="">{prductNm}</td>
<td class="cmn text-center" {onclick}="" {ondblclick}="">{prductCd}</td>
<td class="cmn text-center" {onclick}="" {ondblclick}="">{mnfNo}</td> <td class="cmn text-center" {onclick}="" {ondblclick}="">{mnfNo}</td>
<td class="cmn text-center" {onclick}="" {ondblclick}="">{mnfSeq}</td> <td class="cmn text-center" {onclick}="" {ondblclick}="">{mnfSeq}</td>
<td class="cmn text-center" {onclick}="" {ondblclick}="">{prdValidDe}</td> <td class="cmn text-center" {onclick}="" {ondblclick}="">{prdValidDe}</td>
@ -133,7 +130,7 @@
<td class="cmn text-center" {onclick}="" {ondblclick}="">{pceQy}</td> <td class="cmn text-center" {onclick}="" {ondblclick}="">{pceQy}</td>
<td class="cmn text-center" {onclick}="" {ondblclick}="">{pceUnit}</td> <td class="cmn text-center" {onclick}="" {ondblclick}="">{pceUnit}</td>
<td class="cmn text-center" {onclick}="" {ondblclick}="">{dsuseQy}</td> <td class="cmn text-center" {onclick}="" {ondblclick}="">{dsuseQy}</td>
<td class="cmn text-center" {onclick}="" {ondblclick}=""></td> <td class="cmn text-center aaaa" {onclick}="" {ondblclick}=""></td>
</tr> </tr>
</template> </template>
<template id="productListNotFound--productList"> <template id="productListNotFound--productList">
@ -293,7 +290,7 @@
$P.productList.onDatasetChange = item => { $P.productList.onDatasetChange = item => {
if (!item) return; if (!item) return;
let empty = $P.productListList.empty; let empty = $P.productList.empty;
// 업무별 DataTables(그리드) tr, td // 업무별 DataTables(그리드) tr, td
let foundContent = document.getElementById("productListRow--productList").content; let foundContent = document.getElementById("productListRow--productList").content;
@ -311,7 +308,9 @@
let trs = empty ? [document.getElementById("$productListNotFound--productList").content.outerHTML] let trs = empty ? [document.getElementById("$productListNotFound--productList").content.outerHTML]
: $P.productList.inStrings(foundTr.outerHTML, replacer); : $P.productList.inStrings(foundTr.outerHTML, replacer);
$("#table-responsive--${pageName}")[0].changeContent(trs.join(), initScroll, noMore); $("#table-responsive--${pageName}")[0].changeContent(trs.join(), true, true);
fnMakeGridImageViewer($("#tbody--productList").find("td.aaaa").get(), "dsusePrdImgFiles");
} }
/************************************************************************** /**************************************************************************
@ -362,7 +361,7 @@
//추가 //추가
$P.fnAdd = () => { $P.fnAdd = () => {
$P.productList.addData($P.productFormFields.get()); $P.productList.addData([$P.productFormFields.get()]);
} }
$P.fnDel = () => { $P.fnDel = () => {

@ -246,7 +246,7 @@
let noMore = (totalSize == ${infoPrefix}List.length); let noMore = (totalSize == ${infoPrefix}List.length);
let initScroll = ($P.control.query.pageNum < 2) && ($P.control.untilPageNum == 0); let initScroll = ($P.control.query.pageNum < 2) && ($P.control.untilPageNum == 0);
$("#table-responsive--${pageName}")[0].changeContent(trs.join(), initScroll, noMore); $("#table-responsive--${pageName}")[0].changeContent(trs.join(), true, true);
if ($P.control.untilPageNum != 0) { if ($P.control.untilPageNum != 0) {
$P.control.query.fetchSize = $P.control.defaultFetchSize; $P.control.query.fetchSize = $P.control.defaultFetchSize;
@ -307,19 +307,15 @@
// 버튼 이벤트 // 버튼 이벤트
$("#btnSave--${pageName}").on("click", () => $P.fnSave()); // 저장 $("#btnSave--${pageName}").on("click", () => $P.fnSave()); // 저장
} }
// DataTables width 변경 조정 (업무별 그리드가 존재 한다면.. crdn06010-main.jsp 참고)
fnMakeResizableTable($("#table-responsive--${pageName}")[0]);
// DataTables 스크롤 이벤트 생성
fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollDataList);
// 초기 화면 설정 // 초기 화면 설정
$P.initForm = () => { $P.initForm = () => {
// Dialog 마우스로 드래그 할 수 있도록 설정. // Dialog 마우스로 드래그 할 수 있도록 설정.
// fnMakeDraggableDialog(document.getElementById($P.control.prefix + "Dialog")); // fnMakeDraggableDialog(document.getElementById($P.control.prefix + "Dialog"));
console.log("#${usrRptIdNo}");
// input, select 초기화 // input, select 초기화
let searchForm = $("#frmSearch--${pageName}"); let searchForm = $("#frmSearch--${pageName}");

@ -283,8 +283,10 @@
// 신청서 정보 dialog // 신청서 정보 dialog
$P.control.getInfo = (gdccId) => { $P.control.getInfo = (gdccId) => {
let dialogTitle = "폐기 결과[통보] 등록"; let dialogTitle = "폐기 결과[통보] 등록";
let params = {}; var usrRptIdNo = $P.control.dataset.getCurrent().USR_RPT_ID_NO;
if (typeof usrRptIdNo == "undefined" || usrRptIdNo == null || usrRptIdNo == "") return;
let params = {usrRptIdNo : usrRptIdNo};
ajax.get({ ajax.get({
url : wctx.url("/adds/nims/dsuseMgtRslt-lnfo.do") url : wctx.url("/adds/nims/dsuseMgtRslt-lnfo.do")
, data : params , data : params
@ -294,7 +296,7 @@
, title : dialogTitle , title : dialogTitle
, content : resp , content : resp
, size : $P.control.infoSize , size : $P.control.infoSize
, onClose : () => { $P.RefreshList(); } , onClose : () => { $P.fnRefreshList(); }
}); });
} }
}); });

Loading…
Cancel
Save