- Add Docker Compose configurations for dev, prod, and standalone environments - Add database initialization scripts (init-db.sh, init-db-docker.sh) - Add enhanced start-docker-linux.sh with DB init support - Add comprehensive database initialization guide - Support for automatic dbexport.pgsql import on first run - Include safety checks for production environment
210 lines
10 KiB
Plaintext
210 lines
10 KiB
Plaintext
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
|
<%@ page import="com.pms.common.utils.*"%>
|
|
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
|
<%@ page import="java.util.*" %>
|
|
<%@include file= "/init.jsp" %>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<title><%=Constants.SYSTEM_NAME%></title>
|
|
<c:set var="totalCount" value="${empty TOTAL_COUNT?0:TOTAL_COUNT}" />
|
|
<c:set var="maxPage" value="${empty MAX_PAGE_SIZE?1:MAX_PAGE_SIZE}" />
|
|
<c:set var="nPage" value="${empty param.page?1:param.page}" />
|
|
<c:set var="pageIndex" value="${(nPage-1)/10}" />
|
|
<c:set var="nextPage" value="${empty NEXT_PAGE?1:NEXT_PAGE}" />
|
|
<c:set var="prevPage" value="${empty PREV_PAGE?1:PREV_PAGE}" />
|
|
<c:set var="now" value="<%=new java.util.Date() %>"/>
|
|
<c:set var="sysYear"><fmt:formatDate value="${now}" pattern="yyyy" /></c:set>
|
|
<style>
|
|
.select2-selection__choice {
|
|
font-size: 11px;
|
|
background-color: #fff !important;
|
|
border: none !important;
|
|
margin-right: 0px !important;
|
|
}
|
|
.select2-selection__choice__remove {
|
|
display: contents !important;
|
|
}
|
|
.select2-container .select2-selection--multiple {
|
|
min-height: 20px !important;
|
|
}
|
|
.select2-container--default .select2-selection--multiple .select2-selection__choice {
|
|
margin-top: 3.5px !important;
|
|
}
|
|
.select2-selection__rendered {
|
|
height: 18px !important;
|
|
}
|
|
.select2-container .select2-selection--multiple .select2-selection__rendered {
|
|
overflow: auto !important;
|
|
}
|
|
</style>
|
|
<script>
|
|
$(document).ready(function(){
|
|
|
|
$("._table1").scroll(function () {
|
|
$("._table2").scrollLeft($("._table1").scrollLeft());
|
|
});
|
|
$("._table2").scroll(function () {
|
|
$("._table1").scrollLeft($("._table2").scrollLeft());
|
|
});
|
|
|
|
$('.select2').select2();
|
|
|
|
$("#btnSearch").click(function(){
|
|
fn_search();
|
|
});
|
|
$("#btnExcel").click(function() {
|
|
fn_excel();
|
|
});
|
|
//엔터 조회
|
|
$("input").keyup(function(e){
|
|
if(e.keyCode == 13){
|
|
$("#page").val("1");
|
|
fn_search();
|
|
}
|
|
});
|
|
|
|
//체크박스 전체선택/전체해제
|
|
$("#allCheck").click(function(){
|
|
if($("#allCheck").prop("checked")) {
|
|
$("input[type=checkbox]").prop("checked",true);
|
|
} else {
|
|
$("input[type=checkbox]").prop("checked",false);
|
|
}
|
|
});
|
|
fn_search();
|
|
});
|
|
|
|
var columns = [
|
|
{headerHozAlign : 'center', hozAlign : 'left', /* width : '150', */ title : '공급업체명', field : 'SUPPLY_NAME' },
|
|
|
|
{headerHozAlign : 'center', hozAlign : 'right', width : '120', title : '소계', field : 'TOTAL_SUPPLY_UNIT_PRICE', topCalc:'sum', topCalcFormatter : "money", topCalcFormatterParams : {thousand:",", symbolAfter:"p", precision:false },
|
|
formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false }
|
|
},
|
|
{headerHozAlign : 'center', hozAlign : 'right', width : '115', title : '1월', field : 'M01', topCalc:'sum', topCalcFormatter : "money", topCalcFormatterParams : {thousand:",", symbolAfter:"p", precision:false },
|
|
formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false }
|
|
},
|
|
{headerHozAlign : 'center', hozAlign : 'right', width : '115', title : '2월', field : 'M02', topCalc:'sum', topCalcFormatter : "money", topCalcFormatterParams : {thousand:",", symbolAfter:"p", precision:false },
|
|
formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false }
|
|
},
|
|
{headerHozAlign : 'center', hozAlign : 'right', width : '115', title : '3월', field : 'M03', topCalc:'sum', topCalcFormatter : "money", topCalcFormatterParams : {thousand:",", symbolAfter:"p", precision:false },
|
|
formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false }
|
|
},
|
|
{headerHozAlign : 'center', hozAlign : 'right', width : '115', title : '4월', field : 'M04', topCalc:'sum', topCalcFormatter : "money", topCalcFormatterParams : {thousand:",", symbolAfter:"p", precision:false },
|
|
formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false }
|
|
},
|
|
{headerHozAlign : 'center', hozAlign : 'right', width : '115', title : '5월', field : 'M05', topCalc:'sum', topCalcFormatter : "money", topCalcFormatterParams : {thousand:",", symbolAfter:"p", precision:false },
|
|
formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false }
|
|
},
|
|
{headerHozAlign : 'center', hozAlign : 'right', width : '115', title : '6월', field : 'M06', topCalc:'sum', topCalcFormatter : "money", topCalcFormatterParams : {thousand:",", symbolAfter:"p", precision:false },
|
|
formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false }
|
|
},
|
|
{headerHozAlign : 'center', hozAlign : 'right', width : '115', title : '7월', field : 'M07', topCalc:'sum', topCalcFormatter : "money", topCalcFormatterParams : {thousand:",", symbolAfter:"p", precision:false },
|
|
formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false }
|
|
},
|
|
{headerHozAlign : 'center', hozAlign : 'right', width : '115', title : '8월', field : 'M08', topCalc:'sum', topCalcFormatter : "money", topCalcFormatterParams : {thousand:",", symbolAfter:"p", precision:false },
|
|
formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false }
|
|
},
|
|
{headerHozAlign : 'center', hozAlign : 'right', width : '115', title : '9월', field : 'M09', topCalc:'sum', topCalcFormatter : "money", topCalcFormatterParams : {thousand:",", symbolAfter:"p", precision:false },
|
|
formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false }
|
|
},
|
|
{headerHozAlign : 'center', hozAlign : 'right', width : '115', title : '10월', field : 'M10', topCalc:'sum', topCalcFormatter : "money", topCalcFormatterParams : {thousand:",", symbolAfter:"p", precision:false },
|
|
formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false }
|
|
},
|
|
{headerHozAlign : 'center', hozAlign : 'right', width : '115', title : '11월', field : 'M11', topCalc:'sum', topCalcFormatter : "money", topCalcFormatterParams : {thousand:",", symbolAfter:"p", precision:false },
|
|
formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false }
|
|
},
|
|
{headerHozAlign : 'center', hozAlign : 'right', width : '115', title : '12월', field : 'M12', topCalc:'sum', topCalcFormatter : "money", topCalcFormatterParams : {thousand:",", symbolAfter:"p", precision:false },
|
|
formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false }
|
|
}
|
|
];
|
|
|
|
//var grid;
|
|
function fn_search(){
|
|
var selectedValues = $("#project_no").val();
|
|
$('input[name="project_nos"]').remove();
|
|
$('<input>').attr({
|
|
type: 'hidden',
|
|
name: 'project_nos',
|
|
value: selectedValues
|
|
}).appendTo('#form1');
|
|
|
|
_tabulGrid = fnc_tabul_search(_tabul_layout_fitColumns, _tabulGrid, "/purchaseOrder/purchaseOrderStatusAmountBySupplyGrid.do", columns, false);
|
|
}
|
|
|
|
function fn_search_old(){
|
|
document.form1.action = "/purchaseOrder/purchaseOrderStatusAmountBySupply.do";
|
|
document.form1.submit();
|
|
}
|
|
|
|
function fn_excel() {
|
|
var selectedValues = $("#project_no").val();
|
|
$('input[name="project_nos"]').val(selectedValues);
|
|
|
|
document.form1.actionType.value = "excel";
|
|
var form = document.form1;
|
|
form.action="/purchaseOrder/purchaseOrderStatusAmountBySupply.do";
|
|
form.submit();
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<form name="form1" id="form1" action="" method="post">
|
|
<input type="hidden" name="actionType" value="" />
|
|
<div class="content-box">
|
|
<div class="content-box-s">
|
|
<div class="plm_menu_name_gdnsi">
|
|
<h2>
|
|
<span>발주관리_업체별_입고요청월 금액현황</span>
|
|
</h2>
|
|
<div class="btnArea">
|
|
<input type="button" value="조회" class="plm_btns" id="btnSearch" name="btnSearch">
|
|
<!--
|
|
<input type="button" value="Excel Download" class="plm_btns" id="btnExcel">
|
|
-->
|
|
</div>
|
|
</div>
|
|
<div id="plmSearchZon">
|
|
<table>
|
|
<tr>
|
|
|
|
<td><label for="Year">년도</label></td>
|
|
<td>
|
|
<select name="Year" id="Year" class="select2" autocomplete="off">
|
|
<option value="">선택</option>
|
|
<c:forEach begin="${sysYear-4}" end="${sysYear}" var="req_year">
|
|
<option value="${req_year}" ${(param.Year eq req_year) or (empty param.Year and req_year eq sysYear) ? 'selected':'' }>${req_year}</option>
|
|
<%-- <option value="${req_year}"${param.Year eq req_year ? 'selected':'' }>${req_year}</option> --%>
|
|
</c:forEach>
|
|
</select>
|
|
</td>
|
|
|
|
<td><label for="project_no">프로젝트번호</label></td>
|
|
<td>
|
|
<select name="project_no" id="project_no" style="width:300px;" class="select2" autocomplete="off" multiple="multiple">
|
|
<option value="">선택</option>
|
|
${code_map.project_no}
|
|
</select>
|
|
</td>
|
|
|
|
<td><label for="partner_objid">공급업체명</label></td>
|
|
<td>
|
|
<select name="partner_objid" id="partner_objid" class="select2" autocomplete="off" style="width:250px">
|
|
<option value="">선택</option>
|
|
${code_map.partner_objid}
|
|
</select>
|
|
</td>
|
|
|
|
<td><label for="">구매담당자</label></td>
|
|
<td><select name="sales_mng_user_id" id="sales_mng_user_id" class="select2" autocomplete="off" style="width:140px"><option value="">선택</option>${code_map.sales_mng_user_id}</select></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<%@include file= "/WEB-INF/view/common/common_gridArea.jsp" %>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</body>
|
|
</html> |