175 lines
5.7 KiB
Plaintext
175 lines
5.7 KiB
Plaintext
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
|
<%@ page import="com.pms.common.utils.*"%>
|
|
<%@ page import="java.util.*" %>
|
|
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
|
<%@include file= "/init.jsp" %>
|
|
<%
|
|
PersonBean person = (PersonBean)session.getAttribute(Constants.PERSON_BEAN);
|
|
String userId = CommonUtils.checkNull(person.getUserId());
|
|
%>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<c:set var="now" value="<%=new java.util.Date() %>" />
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<title><%=Constants.SYSTEM_NAME%></title>
|
|
<script type="text/javascript">
|
|
$(function(){
|
|
//첨부파일
|
|
/* fnc_setFileDropZone("RELEASE_CHECKDropZone" , "${resultMap.RELEASE_OBJID}", "RELEASE_CHECK" , "RELEASE_CHECK" , "fileAreaDraw",false,null,null);
|
|
fnc_setFileDropZone("RELEASE_ORDERDropZone" , "${resultMap.RELEASE_OBJID}", "RELEASE_ORDER" , "RELEASE_ORDER" , "fileAreaDraw",false,null,null);
|
|
fnc_setFileDropZone("RELEASE_TAKING_OVERDropZone", "${resultMap.RELEASE_OBJID}", "RELEASE_TAKING_OVER", "RELEASE_TAKING_OVER", "fileAreaDraw",false,null,null);
|
|
fileAreaDraw(); */
|
|
|
|
|
|
//날짜
|
|
fnc_datepick2();
|
|
$('.select2').select2();
|
|
|
|
//저장
|
|
$("#btnSave").click(function(){
|
|
fn_save();
|
|
});
|
|
|
|
$("#btnClose").click(function(){
|
|
self.close();
|
|
});
|
|
|
|
/* $(".File2").click(function(){
|
|
var objId = $(this).attr("data-OBJID");
|
|
var docType =$(this).attr("data-docType");
|
|
var docTypeName = $(this).attr("data-docTypeName");
|
|
var params = "?targetObjId="+objId+"&docType="+docType+"&docTypeName="+docTypeName;
|
|
window.open("/common/FileRegistPopup.do"+params, "", "width=800, height=335");
|
|
}); */
|
|
|
|
//$("#INSTALL_RESULT").val("${resultMap.INSTALL_RESULT}").trigger("change");
|
|
|
|
$("input[numberOnly='']")
|
|
.each(function(){
|
|
$(this).css({'text-align':'right'})
|
|
})
|
|
.on("keyup", function() {
|
|
$(this).val(fnc_addComma($(this).val().replace(/[^0-9]/g,"")));
|
|
});
|
|
});
|
|
|
|
|
|
/* function fn_setoption(){
|
|
$.ajax({
|
|
url:"/common/getContractOptionList.do",
|
|
type:"POST",
|
|
data:{"isJson":true,"objId":"${resultMap.OBJID}"},
|
|
dataType:"json",
|
|
async:false,
|
|
success:function(data){
|
|
resultList = data
|
|
if(0 < resultList.length){
|
|
for (var i = 0; i < resultList.length; i++) {
|
|
var commonCodeId = resultList[i].CODE;
|
|
$("input[name=option_type][value="+commonCodeId+"]").prop("checked",true);
|
|
}
|
|
}
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
} */
|
|
|
|
function fn_save(){
|
|
$("input[numberOnly='']").each(function(){
|
|
$(this).val($(this).val().replace(/,/gi,""));
|
|
});
|
|
//alert("test : " + "${resultMap.RELEASE_WRITER}");
|
|
if(fnc_valitate("form1")){
|
|
Swal.fire({
|
|
title: '선택된 데이터를 지급완료 처리하시겠습니까?',
|
|
text: '',
|
|
icon: 'warning',
|
|
|
|
showCancelButton: true, // cancel버튼 보이기. 기본은 원래 없음
|
|
confirmButtonColor: '#3085d6', // confrim 버튼 색깔 지정
|
|
cancelButtonColor: '#d33', // cancel 버튼 색깔 지정
|
|
confirmButtonText: '확인', // confirm 버튼 텍스트 지정
|
|
cancelButtonText: '취소', // cancel 버튼 텍스트 지정
|
|
reverseButtons: false, // 버튼 순서 거꾸로
|
|
|
|
}).then(result => {
|
|
// 만약 Promise리턴을 받으면,
|
|
if (result.isConfirmed) { // 만약 모달창에서 confirm 버튼을 눌렀다면
|
|
$.ajax({
|
|
url:"/costMgmt/expenseConfirm.do",
|
|
type:"POST",
|
|
data: $("#form1").serializeObject(),
|
|
dataType:"json",
|
|
success:function(data){
|
|
Swal.fire(data.msg);
|
|
fn_search();
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
/* function fileAreaDraw(){
|
|
fn_fileCallback("RELEASE_CHECK" ,"RELEASE_CHECK" );
|
|
fn_fileCallback("RELEASE_ORDER" ,"RELEASE_ORDER" );
|
|
fn_fileCallback("RELEASE_TAKING_OVER","RELEASE_TAKING_OVER");
|
|
} */
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<form name="form1" id="form1" action="" method="post">
|
|
<input type="hidden" name="CONTRACT_OBJID" id="CONTRACT_OBJID" value="${param.CONTRACT_OBJID}">
|
|
<input type="hidden" name="OBJID" id="OBJID" value="${param.OBJID}">
|
|
<input type="hidden" name="SETTLE_AMOUNT" id="SETTLE_AMOUNT" value="${param.SETTLE_AMOUNT}">
|
|
<input type="hidden" name="option" id="option">
|
|
<section>
|
|
<div class="plm_menu_name">
|
|
<h2>
|
|
<span>경비관리_경비지급</span>
|
|
</h2>
|
|
</div>
|
|
<div id="businessPopupFormWrap" style="width:97%;">
|
|
<table class="pmsPopupForm">
|
|
<colgroup>
|
|
<col width="35%">
|
|
<col width="*">
|
|
</colgroup>
|
|
<tr>
|
|
<td class="input_title"><label for="">지급금액</label></td>
|
|
<td class="input_sub_title" style="text-align: right;">
|
|
<input type="text" name="AMOUNT_PAYMENT" id="AMOUNT_PAYMENT" value="<fmt:formatNumber value="${param.SETTLE_AMOUNT}" pattern="#,###" />" numberOnly />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title"><label for="">지급일</label></td>
|
|
<td class="input_sub_title" style="text-align: right;">
|
|
<input type="text" name="PAYMENT_DATE" class="date" value="<fmt:formatDate value="${now}" pattern="yyyy-MM-dd" />" style="text-align: right;"/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title"><label for="">비고</label></td>
|
|
<td class="input_sub_title" style="text-align: right;">
|
|
<input type="text" name="REMARK" id="REMARK" value="${resultMap.REMARK}" style="text-align: right;"/>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="btn_wrap">
|
|
<div class="plm_btn_wrap_center">
|
|
<%-- <c:if test="${resultMap.RELEASE_ORDER_CNT eq 1}"> --%>
|
|
<input type="button" value="경비지급" id="btnSave" class="plm_btns">
|
|
<%-- </c:if> --%>
|
|
<input type="button" value="닫기" id="btnClose" class="plm_btns">
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</form>
|
|
</body>
|
|
</html> |