ERP-node/WebContent/WEB-INF/view/salesMng/salesRequestFormPopUp.jsp

708 lines
26 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ 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" %>
<%
Map info = (HashMap)(request.getAttribute("resultMap"));
boolean isModify = true;
if(info!=null &&
( CommonUtils.checkNull(info.get("STATUS_TITLE")).equals( "결재중" )
||CommonUtils.checkNull(info.get("STATUS_TITLE")).equals( "결재완료" )
||CommonUtils.checkNull(info.get("STATUS_TITLE")).equals( "접수" )
)
){
isModify = false; //수정불가
}
String actType = (String)request.getAttribute("actType");
%>
<%
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>
</head>
<script>
var grid;
$(function(){
$("._table1").scroll(function () {
$("._table2").scrollLeft($("._table1").scrollLeft());
});
$("._table2").scroll(function () {
$("._table1").scrollLeft($("._table2").scrollLeft());
});
if(fnc_isNotEmpty("${resultMap.WRITER}") && "${resultMap.WRITER}" != "${connectUserId}"){
$("#btnReg").hide();
$("#btnAppr").hide();
}
// 전체 체크 기능
$("#allCheck").click(function() {
if ($("#allCheck").prop("checked")) {
$("input[type=checkbox]").prop("checked", true);
} else {
$("input[type=checkbox]").prop("checked", false);
}
});
$("#btnReg").click(function(){
// 물품구매요청서를 저장한다.
if(fnc_validate("form1")){
if(0 < $("#partListArea tr").length){
var zeroQty = false;
$("input[name*=QTY]").each(function(){
if ($(this).val() == 0){
Swal.fire('수량이 0 입니다.');
zeroQty = true;
return;
}
});
if (!zeroQty) {
fn_save();
}
}else{
Swal.fire('저장할 품목이 존재 하지 않습니다.');
return;
}
}
});
$("#btnAddRow").click(function(){
//물품구매요청서 행을 추가한다
fn_AddRow();
});
$("#btnDeleteRow").click(function(){
//물품구매요청서 행을 삭제한다
fn_deleteRow();
});
$("#btnAppr").click(function(){ //결재상신
if(fnc_valitate("form1")){
var objId = "${resultMap.OBJID}";
/* if(""==grid.getRowData()){
Swal.fire('저장할 품목이 존재 하지 않습니다');
return;
} */
//var title = encodeURIComponent($("#TITLE").val());
var title = encodeURIComponent("발주서 상신");
window.open("/approval/registApproval.do?targetType=SALES_REQUEST&targetObjId="+objId+"&approvalTitle="+title+"&callbackFnc=fn_callbackFnc","registApproval","width=700,height=700");
}
});
//상신된 결재라인 가져오기
fn_getApprLine();
fnc_getAjaxProductMgmtList("PRODUCT_CODE", "", "", "${resultMap.PRODUCT_CODE}");
fnc_getUserList2("SALES_MNG_USER_ID", "${resultMap.SALES_MNG_USER_ID}");
fnc_getCodeListAppend("0000259","REQUEST_STATUS","${resultMap.REQUEST_STATUS}");
fn_UnitCodeList("${resultMap.PROJECT_NO}", "UNIT_NAME", "${resultMap.UNIT_NAME}","");
fnc_datepick();
$(".select2").select2();
fn_getSalesRequestTargetPartList("${resultMap.OBJID}","${param.bom_report_objid}");
$("#ORDER_NUMBER").change(function(){
var orderQty = fnc_checkNull($(this).val());
if("" != orderQty && 0 < orderQty){
$(".TARGET_OBJID").each(function(i){
var targetObjId = $(this).val();
var orgQty = fnc_checkNull($("#ORG_QTY_"+targetObjId).val());
if(null != orgQty && "" != orgQty){
$("#QTY_"+targetObjId).val(orgQty * orderQty);
}
});
}
});
<% if(isModify){ %>
//수정가능
$("#REQUEST_CD,#PROJECT_NO,#CUSTOMER_NAME,#PRODUCT_NAME,#MECHANICAL_TYPE,#PROJECT_NAME,#SETUP,#RELEASE_DATE,#REQUEST_REASONS,#REQUEST_USER_ID,#DELIVERY_REQUEST_DATE,#UNIT_NAME").prop("disabled","");
//프로젝트명 변경시 유닛명 셋팅
$("#PROJECT_NO").change(function(){
$("#CUSTOMER_NAME, #PRODUCT_NAME, #MECHANICAL_TYPE, #PROJECT_NAME, #SETUP, #RELEASE_DATE, #UNIT_NAME").val("");
if($(this).val()!=""){
//프로젝트번호로 지정된 정보를 가져온다
var list = fnc_getJsonAllDataListBySqlId({"sqlId":"salesMng.purchaseOrderAdminSupplyInfo", "PROJECT_NO":$(this).val()});
if(fnc_checkNull( list )!=""){
var row = list[0];
$("#CUSTOMER_NAME" ).val( row["CUSTOMER_NAME" ] );
$("#PRODUCT_NAME" ).val( row["PRODUCT_NAME" ] );
$("#MECHANICAL_TYPE" ).val( row["MECHANICAL_TYPE" ] );
$("#PROJECT_NAME" ).val( row["PROJECT_NAME" ] );
$("#SETUP" ).val( row["SETUP" ] );
$("#RELEASE" ).val( row["RELEASE_DATE" ] );
}
}
fn_UnitCodeList(this.value, "UNIT_NAME", "","");
});
//프로젝트번호, 유닛명 변경시 - 구매BOM에서 등록한 PART정보를 가져온다
$("#PROJECT_NO,#UNIT_NAME").change(function(){
$("#partListArea").empty();
fn_addBomPart();
});
$("#REQUEST_USER_ID").val('<%=connectUserId%>');
$(".select2").select2();
<% }else{ %>
$("#btnSupplySave").click(function(){ fn_Supply_save(); }); //공급업체저장
<% } %>
});
</script>
<script>
//상신된 결재라인가져오기
function fn_getApprLine(){
if('${resultMap.OBJID}'!=''){
$.ajax({
url:"/common/getApprovalLine.do",
type:"POST",
data:{"objId":"${resultMap.OBJID}"},
dataType:"json",
async:false,
success:function(data){
$.each(data.RESULT, function(i,o){
if(i==0){
$("#appr"+i).html(o.WRITER +"<br/>"+ o.REGDATE);
}
$("#appr"+(i+1)).html(o.TARGET_USER_NAME +"<br/>"+ (o.PROC_DATE!=undefined?o.PROC_DATE:" "));
});
},
error: function(jqxhr, status, error){
}
});
}
}
function fn_getSalesRequestTargetPartList(masterObjId,bomObjId){
$("#partListArea").empty();
var requestStatus = $("#STATUS").val();
var appendText = "";
$.ajax({
url:"/salesMng/getSalesRequestTargetList.do",
type:"POST",
data:{"SALES_REQUEST_MASTER_OBJID":"${resultMap.OBJID}"},
dataType:"json",
async:false,
success:function(data){
var resultData = data;
$.each(resultData, function(i){
console.log("resultData["+i+"]:"+resultData[i]);
//var RNUM = fnc_checkNull(resultData[i].RNUM);
var rowObjId = fnc_checkNull(resultData[i].OBJID);
var PART_OBJID = fnc_checkNull(resultData[i].PART_OBJID);
var PART_NO = fnc_checkNull(resultData[i].PART_NO);
var PART_NAME = fnc_checkNull(resultData[i].PART_NAME);
//var SPEC = fnc_checkNull(resultData[i].SPEC);
var QTY = fnc_checkNull(resultData[i].QTY);
var PARTNER_OBJID = fnc_checkNull(resultData[i].PARTNER_OBJID);
//var DELIVERY_REQUEST_DATE = fnc_checkNull(resultData[i].DELIVERY_REQUEST_DATE);
//var REMARK = fnc_checkNull(resultData[i].REMARK);
var SALES_REQUEST_MASTER_OBJID = fnc_checkNull(resultData[i].SALES_REQUEST_MASTER_OBJID);
appendText += " <tr class='dataTr' id='"+rowObjId+"'>";
appendText += " <input type='hidden' name='OBJID' value='"+rowObjId+"'class='TARGET_OBJID'>";
appendText += " <td class='align_c'>";
appendText += " <input type='checkbox' name='chkOBJID"+rowObjId+"' value='"+rowObjId+"' class='chkBox'>";
appendText += " </td>";
//appendText += " <td class='align_l' value='RNUM'>";
//appendText += " <input type='text' name='RNUM_"+rowObjId+"' value='"+RNUM+"'>";
//appendText += " </td>";
//appendText += " <td class='input_title'><label>품번</label></td>";
appendText += " <td class='align_l' colspan=''>";
if(requestStatus == 'approvalComplete' || requestStatus == 'reception'){
appendText += " <input type='text' name='PART_NO_"+rowObjId+"' id='PART_NO_"+rowObjId+"' value='"+PART_NO+"' readonly>";
}else{
appendText += " <select name='PART_OBJID_"+rowObjId+"' id='PART_OBJID_"+rowObjId+"' reqTitle='품번' type='select' class='select2'>";
appendText += " </select>";
}
appendText += " </td>";
//appendText += " <td class='input_title'><label>품명</label></td>";
appendText += " <td class='align_l' colspan=''>";
appendText += " <input type='text' name='PART_NAME_"+rowObjId+"' value='"+PART_NAME+"' readonly>";
appendText += " </td>";
//appendText += " <td class='align_l'>";
//appendText += " <input type='text' name='SPEC_"+rowObjId+"' value='"+SPEC+"'>";
//appendText += " </td>";
//appendText += " <td class='input_title'><label>수량</label></td>";
appendText += " <td class='align_c' type='number'>";
appendText += " <input type='number' name='QTY_"+rowObjId+"' value='"+QTY+"' reqTitle='수량' required style='text-align: center;'>";
appendText += " </td>";
//appendText += " <td class='input_title'><label>공급업체</label></td>";
appendText += " <td class='align_l'>";
appendText += " <select name='PARTNER_OBJID_"+rowObjId+"' id='PARTNER_OBJID_"+rowObjId+"' reqTitle='공급업체' type='select' class='select2' >";
appendText += " </select>";
appendText += " </td>";
//appendText += " <td class='align_l'>";
//appendText += " <input type='date' name='DELIVERY_REQUEST_DATE_"+rowObjId+"' value='"+DELIVERY_REQUEST_DATE+"'>";
//appendText += " </td>";
//appendText += " <td class='align_l'>";
//appendText += " <input type='text' name='REMARK_"+rowObjId+"' value='"+REMARK+"'>";
//appendText += " </td>";
appendText += " </tr>";
//fnc_getSupplyCodeListAppend("PARTNER_OBJID_"+rowObjId, PARTNER_OBJID);
//fn_addBomPart("PART_OBJID_"+rowObjId, PART_NO);
});
$("#partListArea").append(appendText);
$.each(resultData, function(i){
var rowObjId = fnc_checkNull(resultData[i].OBJID);
var PART_OBJID = fnc_checkNull(resultData[i].PART_OBJID);
var PARTNER_OBJID = fnc_checkNull(resultData[i].PARTNER_OBJID);
fnc_getAdminSupCdListAppend("", "PARTNER_OBJID_"+rowObjId, PARTNER_OBJID);
$("#PARTNER_OBJID_"+rowObjId).val(PARTNER_OBJID);
fn_addBomPart("PART_OBJID_"+rowObjId, PART_OBJID, "PART_NAME_"+rowObjId,"");
});
$(".select2").select2();
},
error: function(jqxhr, status, error){
}
});
//$("#partListArea").append(appendText);
}
/* 물품구매요청서 Row 추가 */
function fn_AddRow(){
if($("#UNIT_NAME").val() == '' || $("#UNIT_NAME").val() == null){
Swal.fire("유닛명을 먼저 선택해주세요");
return false;
}
var rowObjId = fnc_createObjId();
var appendText = "";
appendText += " <tr class='dataTr' id='"+rowObjId+"'>";
appendText += " <input type='hidden' name='OBJID' value='"+rowObjId+"'class='TARGET_OBJID'>";
appendText += " <td class='align_c'>";
appendText += " <input type='checkbox' name='chkOBJID"+rowObjId+"' value='"+rowObjId+"' class='chkBox'>";
appendText += " </td>";
//appendText += " <td class='align_l' value='RNUM'>";
//appendText += " <input type='text' name='RNUM_"+rowObjId+"'>";
//appendText += " </td>";
//appendText += " <td class='input_title'><label>품번</label></td>";
appendText += " <td class='align_l' value='PART_OBJID' title='PART_OBJID' colspan=''>";
appendText += " <select name='PART_OBJID_"+rowObjId+"' id='PART_OBJID_"+rowObjId+"' reqTitle='품번' type='select' class='select2'>";
appendText += " </select>";
appendText += " </td>";
//appendText += " <td class='input_title'><label>품명</label></td>";
appendText += " <td class='align_l' value='PART_NAME' title='PART_NAME' colspan='' readonly>";
appendText += " <input type='text' name='PART_NAME_"+rowObjId+"' id='PART_NAME_"+rowObjId+"'>";
appendText += " </td>";
//appendText += " <td class='align_l' value='SPEC' title='UNIT_TITLE'>";
//appendText += " <input type='text' name='SPEC_"+rowObjId+"'>";
//appendText += " </td>";
//appendText += " <td class='input_title'><label>수량</label></td>";
appendText += " <td class='align_c' value='QTY' type='number' readonly>";
appendText += " <input type='number' name='QTY_"+rowObjId+"' reqTitle='수량' required style='text-align: center;'>";
appendText += " </td>";
//appendText += " <td class='input_title'><label>공급업체</label></td>";
appendText += " <td class='align_l' value='PARTNER_OBJID'>";
appendText += " <select name='PARTNER_OBJID_"+rowObjId+"' id='PARTNER_OBJID_"+rowObjId+"' reqTitle='공급업체' type='select' class='select2'>";
appendText += " </select>";
appendText += " </td>";
//appendText += " <td class='align_l' value='DELIVERY_REQUEST_DATE'>";
//appendText += " <input type='date' name='DELIVERY_REQUEST_DATE_"+rowObjId+"'>";
//appendText += " </td>";
//appendText += " <td class='align_l' value='REMARK'>";
//appendText += " <input type='text' name='REMARK_"+rowObjId+"'>";
//appendText += " </td>";
appendText += " </tr>";
if(0 < $("#partListArea tr:first").lenght || typeof $("#partListArea tr:first").lenght != "undefined") {
$("#partListArea tr:first").before(appendText);
}else{
$("#partListArea").append(appendText);
}
fnc_getAdminSupCdListAppend("", "PARTNER_OBJID_"+rowObjId, "");
fn_addBomPart("PART_OBJID_"+rowObjId, "", "PART_NAME_"+rowObjId, "PARTNER_OBJID_"+rowObjId);
fnc_datepick();
$(".select2").select2();
}
/* Row 삭제 */
function fn_deleteRow(){
$(".chkBox:checked").length;
if(0 < $(".chkBox:checked").length){
if(confirm("선택된 내용을 삭제하시겠습니까?")){
$(".chkBox:checked").each(function(i){
var targetOBJID = $(this).val();
$("#"+targetOBJID).remove();
});
}
}else{
Swal.fire("선택된 내용이 없습니다.");
return false;
}
}
<!--
//결재정보를 가져온다.
function fn_getApprovalLine(){
var scheduleList = new Array();
<c:forEach items="${approvalList}" var="approvalItem">
var seq = "${approvalItem.SEQ}";
var targetUserName = "${approvalItem.TARGET_USER_NAME}";
var procDate = "${approvalItem.PROC_DATE}";
if(1 == seq){
$("#reviewerName").append(targetUserName);
$("#reviewerDate").append(procDate);
}
if(2 == seq){
$("#confirmName").append(targetUserName);
$("#confirmDate").append(procDate);
}
</c:forEach>
}
-->
// 물품구매요청서 내용을 저장한다.
function fn_save(){
var formData = $("#form1").serialize();
if(confirm("저장하시겠습니까?")){
$.ajax({
type: "POST",
url: "/salesMng/saveSalesRequestInfo.do",
data: $("#form1").serialize(),
dataType:"json",
success:function(data){
//Swal.fire(data.msg);
alert(data.msg);
if(typeof opener.fn_search =="function"){ opener.fn_search() };
self.close();
if(data.result){
opener.fn_search();
self.close();
}
},
error: function(jqxhr, status, error){
}
});
}
}
//공급업체 내용을 저장한다.
function fn_Supply_save(){
var formData = $("#form1").serialize();
if(confirm("저장하시겠습니까?")){
$.ajax({
type: "POST",
url: "/salesMng/saveSalesRequestSupplyInfo.do",
data: $("#form1").serialize(),
dataType:"json",
success:function(data){
//Swal.fire(data.msg);
alert(data.msg);
if(data.result){
opener.fn_search();
self.close();
}
},
error: function(jqxhr, status, error){
}
});
}
}
//계약제품, 업체명으로 BOM에 등록된 부품정보를 자동 추가
function fn_addBomPart(selectboxId,selectedVal,sql_id,sql_supply){
$("#BOM_REPORT_OBJID").val("");
//var type = $("#TYPE").val(); //발주부품
var project_objid = $("#PROJECT_NO").val(); //프로젝트명
var unit_code = $("#UNIT_NAME").val(); //유닛명
//var partner_objid = $("#PARTNER_OBJID").val(); //공급업체
//console.log('type:'+type + ' contract_mgmt_objid:'+contract_mgmt_objid + ' unit_code:'+unit_code + ' partner_objid:'+partner_objid);
//프로젝트명, 유닛명이 선택되어있으면
if(fnc_checkNull(project_objid)!="" && fnc_checkNull(unit_code)!=""){
$("#"+selectboxId).empty();
$("#"+selectboxId).append("<option value=''>선택</option>");
//구매BOM 조회해서 부품정보를 가져온다
var resultList = fnc_getJsonAllDataListBySqlId({"sqlId":"salesMng.SalesBomPartListByProjectUnit"
, "PROJECT_OBJID":project_objid
, "UNIT_CODE":unit_code });
if(0 < resultList.length){
for (var i = 0; i < resultList.length; i++) {
var commonCodeId = resultList[i].PART_OBJID;
var commonCodeName = resultList[i].PART_NO;
var partName = resultList[i].PART_NAME;
var supplyObjid = resultList[i].SUPPLY_OBJID;
$("#"+selectboxId).append("<option value='"+commonCodeId+"' data-part_name='"+partName+"' data-supplyObjid='"+supplyObjid+"'>"+commonCodeName+"</option>");
}
$("#"+selectboxId).val(selectedVal);
$("#"+selectboxId).change(function(){
$("#"+sql_id).val($(this).find("option:selected").attr("data-part_name"));
$("#"+sql_supply).val($(this).find("option:selected").attr("data-supplyObjid"));
});
}
}
$("#"+selectboxId).trigger("change");
}
function fn_callbackFnc(){
opener.fn_search();
self.close();
}
</script>
<style>
.input_title {border-left:1px solid #ccc;}
.input_sub_title {border-left:1px solid #ccc;}
.pmsPopupForm tr:last-child td{border-bottom:1px solid #ccc;}
</style>
<body>
<form name="form1" id="form1" action="" method="post">
<input type="hidden" name="SALES_REQUEST_MASTER_OBJID" id="SALES_REQUEST_MASTER_OBJID" value="${resultMap.OBJID}">
<input type="hidden" name="STATUS" id="STATUS" value="${resultMap.STATUS}">
<input type="hidden" name="TARGET_DRAWING_DOWNLOAD" id="TARGET_DRAWING_DOWNLOAD">
<section>
<div class="plm_menu_name" style="display:flex;">
<h2 style="width:60%;height:80px;text-align:center;margin-top:15px;">
<span style="font-size:30px;">구매요청서</br>(Purchase request)</span>
</h2>
<table class="pmsPopupForm" style="width:40%;background:white;">
<colgroup>
<col width="20%">
<col width="20%">
<col width="20%">
</colgroup>
<tr style="border-spacing: 0;border-bottom:1px solid #ccc;border-left:1px solid #ccc;">
<td class="input_title" style="text-align:center;">
<label>작성</label>
</td>
<td class="input_title" style="text-align:center;">
<label>검토</label>
</td>
<td class="input_title" style="text-align:center;">
<label>팀장</label>
</td>
</tr>
<tr>
<td style="text-align:center;" id="appr0"></td>
<td style="text-align:center;" id="appr1"></td>
<td style="text-align:center;" id="appr2"></td>
</tr>
<%--
<tr style="border-spacing: 0;border-bottom:1px solid #ccc;">
<td class="input_sub_title" style="text-align:center;">
${resultMap.WRITER_NAME}<!-- 작성자이름 -->
</td>
<td class="input_sub_title" style="text-align:center;" id="reviewerName"></td>
<td class="input_sub_title" style="text-align:center;" id="reviewerName"></td>
</tr>
<tr style="border-spacing: 0;border-bottom:1px solid #ccc;border-left:1px solid #ccc;">
<td class="input_sub_title" style="text-align:center;">
${resultMap.REGDATE_TITLE}<!-- 작성일자 -->
</td>
<td class="input_sub_title" style="text-align:center;" id="reviewerDate"></td>
<td class="input_sub_title" style="text-align:center;" id="reviewerDate"></td>
</tr>
--%>
</table>
</div>
<div id="businessPopupFormWrap" style="z-index:99;">
<table class="pmsPopupForm" style="z-index:99;">
<tr>
<col width="8%">
<col width="12%">
<col width="8%">
<col width="12%">
<col width="8%">
<col width="12%">
<col width="8%">
<col width="12%">
<col width="8%">
<col width="12%">
</tr>
<tr>
<input type="hidden" name="REQUEST_MNG_NO" id="REQUEST_MNG_NO" reqTitle="날짜" value="${resultMap.REGDATE_TITLE}" readonly="readonly">
<td class="input_title"><label for="">구분</label></td>
<td class="input_sub_title">
<%-- <select name="request_cd" id="request_cd" reqTitle="구매담당자" type="select" ${'create' eq resultMap.STATUS ? '':'readonly style="background-color:#ababab" onFocus="this.initialSelect = this.selectedIndex;" onChange="this.selectedIndex = this.initialSelect;"'} required></select> --%>
<select name="REQUEST_CD" id="REQUEST_CD" reqTitle="구분" type="select" class="select2" disabled>
<option value="">선택</option> ${code_map.request_cd}
</select>
<td class="input_title"><label for="">프로젝트번호</label></td>
<td>
<select name="PROJECT_NO" id="PROJECT_NO" reqTitle="프로젝트번호" type="select" class="select2" disabled>
<option value="">선택</option> ${code_map.project_no}
</select>
</td>
<td class="input_title"><label for="">고객사</label></td>
<td class="input_sub_title">
<input type="text" name="CUSTOMER_NAME" id="CUSTOMER_NAME" value="${resultMap.CUSTOMER_NAME}" readonly>
</td>
<td class="input_title"><label for="">제품구분</label></td>
<td class="input_sub_title">
<input type="text" name="PRODUCT_NAME" id="PRODUCT_NAME" value="${resultMap.PRODUCT_NAME}" readonly>
</td>
<td class="input_title"><label for="">기계형식</label></td>
<td class="input_sub_title">
<input type="text" name="MECHANICAL_TYPE" id="MECHANICAL_TYPE" value="${resultMap.MECHANICAL_TYPE}" readonly>
</td>
</tr>
<tr>
<td class="input_title"><label for="">프로젝트명</label></td>
<td class="input_sub_title" colspan="3">
<input type="text" name="PROJECT_NAME" id="PROJECT_NAME" value="${resultMap.PROJECT_NAME}" readonly>
</td>
<td class="input_title"><label for="">셋업지</label></td>
<td class="input_sub_title" colspan="3">
<input type="text" name="SETUP" id="SETUP" value="${resultMap.SETUP}" readonly>
</td>
<td class="input_title"><label for="">출고일</label></td>
<td class="input_sub_title">
<input type="text" name="RELEASE" id="RELEASE" value="${resultMap.RELEASE_DATE}" readonly>
</td>
</tr>
<tr>
<td class="input_title"><label for="">요청사유</label></td>
<td>
<select name="REQUEST_REASONS" id="REQUEST_REASONS" reqTitle="요청사유" type="select" class="select2" disabled>
<option value="">선택</option> ${code_map.request_reasons}
</select>
</td>
<td class="input_title"><label for="">요청인</label></td>
<td>
<select name="REQUEST_USER_ID" id="REQUEST_USER_ID" reqTitle="요청인" type="select" class="select2" disabled>
<option value="">선택</option> ${code_map.request_user_id}
</select>
</td>
<td class="input_title"><label for="">입고요청일</label></td>
<td>
<input type="text" class="date_icon" name="DELIVERY_REQUEST_DATE" id="DELIVERY_REQUEST_DATE" reqTitle="입고요청일" value="${resultMap.DELIVERY_REQUEST_DATE}" required disabled>
</td>
<td class="input_title"><label for="">유닛명</label></td>
<td colspan="3">
<select name="UNIT_NAME" id="UNIT_NAME" required reqTitle="유닛명" type="select" class="select2" disabled>
<option value="">선택</option>
</select>
</td>
</tr>
<tr>
<td class="input_title"><label for="">제목</label></td>
<td class="input_sub_title" colspan="9">
<input type="text" name="REMARK" id="REMARK" value="${resultMap.REMARK}">
</td>
</tr>
</table>
</div>
<div class="btn_wrap">
<% if(isModify){ %>
<div class="plm_btn_wrap" style="padding:0 8 0 8; text-align: right;">
<input type="button" value="행추가" class="plm_btns" id="btnAddRow" name="btnAddRow" style="background:#dfeffc">
<input type="button" value="행삭제" class="plm_btns" id="btnDeleteRow" name="btnDeleteRow" style="background:#dfeffc">
</div>
<% } %>
</div>
<div id="businessPopupFormWrap" style="z-index:99;">
<table class="pmsPopupForm" style="z-index:99;">
<!-- <tr>
<td class="input_title">
<label for="">구매의뢰 부품</label>
</td>
</tr> -->
<tr>
<td style="border-top:1px solid #ccc;">
<div class="in_table_scroll_wrap _table1" style="height:22px;width:99.5%;">
<table class="plm_table">
<colgroup>
<col width="30px">
<col width="200px">
<col width="200px">
<col width="80px">
<col width="200px">
</colgroup>
<thead>
<tr class="plm_thead">
<td><input type="checkbox" name="allCheck" id="allCheck"></td>
<td>품번</td>
<td>품명</td>
<td>수량</td>
<td>공급업체</td>
</tr>
</thead>
</table>
</div>
<div class="in_table_scroll_wrap _table2" style="height:250px;width:100%;">
<table class="plm_table">
<colgroup>
<col width="30px">
<col width="200px">
<col width="200px">
<col width="80px">
<col width="200px">
</colgroup>
<tbody id="partListArea">
</tbody>
</table>
</div>
</td>
</tr>
</table>
<div class="btn_wrap">
<%-- <c:if test="${'create' eq resultMap.STATUS}"> --%>
<div class="plm_btn_wrap" style="padding:0 8 0 8; text-align: right;">
<!-- <input type="button" value="수정" class="plm_btns" id="btnAddRow" name="btnAddRow" style="background:#dfeffc"> -->
<% if(isModify){ %>
<input type="button" value="결재상신" class="plm_btns" id="btnAppr" name="btnAppr" style="background:#dfeffc">
<input type="button" value="저장" class="plm_btns" id="btnReg" style="background:#dfeffc">
<% }else{ %>
<input type="button" value="공급업체저장" class="plm_btns" id="btnSupplySave" style="background:#dfeffc">
<% } %>
<input type="button" value="닫기" class="plm_btns" style="background:#dfeffc" onclick="window.close();" >
</div>
<%-- </c:if> --%>
</div>
</div>
</section>
</form>
</body>
</html>