최초커밋
This commit is contained in:
194
WebContent/WEB-INF/view/project/projectmodifyPopUp.jsp
Normal file
194
WebContent/WEB-INF/view/project/projectmodifyPopUp.jsp
Normal file
@@ -0,0 +1,194 @@
|
||||
<%@ 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" %>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title><%=Constants.SYSTEM_NAME%></title>
|
||||
<style>
|
||||
::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$("#btn_close").click(function(){
|
||||
<c:if test="${('edit' eq param.ACTION_TYPE)}">
|
||||
self.close();
|
||||
opener.fn_search();
|
||||
</c:if>
|
||||
});
|
||||
|
||||
$("input:text[numberOnly]").on("keyup", function() {
|
||||
$(this).val(fn_addComma($(this).val().replace(/[^0-9]/g,"")));
|
||||
});
|
||||
|
||||
_fnc_datepick();
|
||||
});
|
||||
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 saveOEMInfo(){
|
||||
if(fnc_valitate("oemForm")){
|
||||
if(fn_checkProjectNo()){
|
||||
if(confirm("저장하시겠습니까?")){
|
||||
|
||||
$("#facility_qty").val($("#facility_qty").val().replace(/,/gi,""));
|
||||
$("#contract_price").val($("#contract_price").val().replace(/,/gi,""));
|
||||
$("#contract_price_currency").val($("#contract_price_currency").val().replace(/,/gi,""));
|
||||
|
||||
$.ajax({
|
||||
url:"/project/ModifyProject.do",
|
||||
type:"POST",
|
||||
data:$("#oemForm").serialize(),
|
||||
dataType:"json",
|
||||
success:function(data){
|
||||
Swal.fire(data.msg);
|
||||
opener.fn_search();
|
||||
self.close();
|
||||
},
|
||||
error: function(jqxhr, status, error){
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function fn_checkProjectNo(){
|
||||
var resultFlag = true;
|
||||
|
||||
$.ajax({
|
||||
type:"POST",
|
||||
url : "/project/checkProjectNo.do",
|
||||
data : {"project_no":fnc_checkNull($("#project_no").val()),"old_project_no":"${Info.PROJECT_NO}"},
|
||||
dataType:"json",
|
||||
async:false,
|
||||
error: function(jqxhr, status, error){
|
||||
Swal.fire(jqxhr.statusText + ", " + status + ", " + error);
|
||||
Swal.fire(jqxhr.status);
|
||||
Swal.fire(jqxhr.responseText);
|
||||
},
|
||||
success:function(data){
|
||||
if(0 < data.length){
|
||||
resultFlag = false;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return resultFlag;
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<form name="oemForm" id="oemForm" action="" method="post">
|
||||
<input type="hidden" name="OBJID" id="OBJID" value="${Info.OBJID}">
|
||||
<input type="hidden" name="old_project_no" id="old_project_no" value="${Info.PROJECT_NO}">
|
||||
|
||||
<section>
|
||||
<div class="plm_menu_name">
|
||||
<h2>
|
||||
<span>프로젝트 수정</span>
|
||||
</h2>
|
||||
</div>
|
||||
<div id="businessPopupFormWrap">
|
||||
<h4><span>프로젝트 정보</span></h4>
|
||||
<table class="pmsPopupForm">
|
||||
<colgroup>
|
||||
<col width="30%">
|
||||
<col width="70%">
|
||||
</colgroup>
|
||||
<tr>
|
||||
<td class="input_title"><label for="project_no">프로젝트 번호</label></td>
|
||||
<td class="input_sub_title">
|
||||
<input type="text" name="project_no" id="project_no" value="${Info.PROJECT_NO}" required reqTitle="당사 프로젝트 번호" maxlength="100" readonly>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="input_title"><label for="project_name">당사 프로젝트 명</label></td>
|
||||
<td class="input_sub_title">
|
||||
<input type="text" name="project_name" id="project_name" value="${Info.PROJECT_NAME}" required reqTitle="당사 프로젝트 명" maxlength="100">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="input_title"><label for="facility_qty">설비방향</label></td>
|
||||
<td class="input_sub_title">
|
||||
<select name="facility" id="facility" required reqTitle="설비방향" type="select" class="select2">
|
||||
<option value="">선택</option>${code_map.facility}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<td class="input_title"><label for="facility_qty">설비대수</label></td>
|
||||
<td class="input_sub_title">
|
||||
<input type="text" name="facility_qty" id="facility_qty" reqTitle="설비대수" required value="<fmt:formatNumber value="${Info.FACILITY_QTY}" pattern="#,###"/>" numberOnly readonly/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="input_title"><label for="facility_depth">설비길이</label></td>
|
||||
<td class="input_sub_title">
|
||||
<input type="text" name="facility_depth" id="facility_depth" reqTitle="설비길이" required value="${Info.FACILITY_DEPTH}" numberOnly />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="input_title"><label for="contract_del_date">예상납기일</label></td>
|
||||
<td class="input_sub_title">
|
||||
<input type="text" class="date_icon" name="contract_del_date" id="contract_del_date" reqTitle="예상납기일" required value="${Info.CONTRACT_DEL_DATE}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="input_title"><label for="contract_price_currency">통화</label></td>
|
||||
<td class="input_sub_title">
|
||||
<select name="contract_currency" id="contract_currency" reqTitle="통화" type="select" class="select2">
|
||||
<option value="">선택</option>${code_map.contract_currency}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="input_title"><label for="contract_price_currency">수주가</label></td>
|
||||
<td class="input_sub_title">
|
||||
<input type="text" name="contract_price_currency" id="contract_price_currency" value="<fmt:formatNumber value="${Info.CONTRACT_PRICE_CURRENCY}" pattern="#,###"/>" required reqTitle="수주가" numberOnly/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="input_title"><label for="contract_price">원화 환산금액</label></td>
|
||||
<td class="input_sub_title">
|
||||
<input type="text" name="contract_price" id="contract_price" value="<fmt:formatNumber value="${Info.CONTRACT_PRICE}" pattern="#,###"/>" required reqTitle="수주가" numberOnly/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="btn_wrap">
|
||||
<div class="plm_btn_wrap_center">
|
||||
<c:choose>
|
||||
<c:when test="${('edit' eq param.ACTION_TYPE)}">
|
||||
<input type="button" value="수정" class="plm_btns" onclick="javascript:saveOEMInfo();">
|
||||
</c:when>
|
||||
<c:otherwise></c:otherwise>
|
||||
</c:choose>
|
||||
<input type="button" value="닫기" name="" id="btn_close" class="plm_btns" onclick="javascript:self.close();">
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user