218 lines
6.6 KiB
Plaintext
218 lines
6.6 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>
|
|
<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_datepick();
|
|
$('.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")){
|
|
if(confirm("저장하시겠습니까?")){
|
|
$.ajax({
|
|
url:"/costMgmt/saveCostGoalInfo.do",
|
|
type:"POST",
|
|
data:$("#form1").serialize(),
|
|
dataType:"json",
|
|
success:function(data){
|
|
Swal.fire(data.msg);
|
|
|
|
if(data.result){
|
|
opener.fn_search();
|
|
self.close();
|
|
}
|
|
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|
|
function _fnc_datepick(){
|
|
var $dateinput = $("input.date_icon");
|
|
for(var i=0; i<$dateinput.length; i++){
|
|
$dateinput.eq(i).attr("size","10");
|
|
$dateinput.eq(i).datepicker({
|
|
changeMonth:true,
|
|
changeYear:true
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
/* 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="${resultMap.OBJID}">
|
|
<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">
|
|
|
|
|
|
<div id="businessPopupFormWrap">
|
|
<h4><span>출하지시서 첨부파일</span></h4>
|
|
<table class="pmsPopupForm">
|
|
<colgroup>
|
|
<col width="10%">
|
|
<col width="10%">
|
|
<col width="20%">
|
|
|
|
</colgroup>
|
|
<tr>
|
|
<td colspan="3">
|
|
<div id="srFileAreaTable" class="spec_data_in_table">
|
|
<div style="overflow-y: scroll;">
|
|
<table style="width: 100%;">
|
|
<colgroup>
|
|
<col width="10%">
|
|
<col width="*">
|
|
<col width="20%">
|
|
</colgroup>
|
|
<thead>
|
|
<tr class="plm_thead">
|
|
<td style="text-align: center;">No</td>
|
|
<td style="text-align: center;">첨부파일명</td>
|
|
<td style="text-align: center;">등록일</td>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
</div>
|
|
<div class="plm_scroll_table" style="height: 40px; overflow-y: scroll">
|
|
<table id="RELEASE_ORDERFileArea" class="fileListscrollTbody">
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</td>
|
|
</tr> -->
|
|
<tr>
|
|
<td class="input_title"><label for="">재료비</label></td>
|
|
<td class="input_sub_title" style="text-align: right;">
|
|
<input type="text" name="MATERIAL_COST_GOAL" id="MATERIAL_COST_GOAL" value="<fmt:formatNumber value="${resultMap.MATERIAL_COST_GOAL}" 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="LABOR_COST_GOAL" id="LABOR_COST_GOAL" value="<fmt:formatNumber value="${resultMap.LABOR_COST_GOAL}" 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="EXPENSE_COST_GOAL" id="EXPENSE_COST_GOAL" value="<fmt:formatNumber value="${resultMap.EXPENSE_COST_GOAL}" pattern="#,###" />" numberOnly />
|
|
</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> |