316 lines
9.9 KiB
Plaintext
316 lines
9.9 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>
|
|
</head>
|
|
<script>
|
|
$(document).ready(function(){
|
|
$("#btn_close").click(function(){
|
|
self.close(0);
|
|
});
|
|
|
|
//협조부서 조회
|
|
fn_refreshDeptList();
|
|
|
|
$(".btnModify").click(function(){
|
|
//if(confirm("Edit Mode로 이동하시겠습니까?")){
|
|
fn_goEdit($("#objId").val());
|
|
//}
|
|
});
|
|
|
|
$(".btnDistributeMail").click(function(){
|
|
fn_sendMail();
|
|
});
|
|
|
|
//첨부 파일 기능
|
|
fnc_setFileDropZone("finalDropZone", "${param.objId}", "${docType}", "${docTypeName}", "finalAreaDraw",false,null,null);
|
|
|
|
finalAreaDraw();
|
|
});
|
|
</script>
|
|
<script>
|
|
//메일 배포
|
|
function fn_sendMail(){
|
|
var objId = fnc_checkNull($("#objId").val());
|
|
if(objId != ""){
|
|
var params = "";
|
|
params += "?parentType=projectConcept";
|
|
params += "&objId="+objId;
|
|
window.open("/common/searchMailReceiver.do"+params, "", "width=480, height=367");
|
|
}
|
|
}
|
|
|
|
function fn_goEdit(objId){
|
|
document.projectConceptProductForm.action = "/projectConcept/projectConceptProductInfoFormPopup.do?mode=edit";
|
|
document.projectConceptProductForm.submit();
|
|
}
|
|
|
|
//형상 영역을 display 한다.
|
|
function finalAreaDraw(){
|
|
fn_fileCallback("final","${docType}");
|
|
}
|
|
|
|
//협조부서 목록 새로고침
|
|
function fn_refreshDeptList(){
|
|
var targetObjId = $("#objId").val();
|
|
$.ajax({
|
|
url:"/projectConcept/getProjectConceptProductDeptList.do",
|
|
type:"POST",
|
|
data:{"targetObjId":targetObjId},
|
|
dataType:"json",
|
|
success:function(data){
|
|
var appendCode = "";
|
|
|
|
if(data.length > 0){
|
|
$.each(data, function(i){
|
|
appendCode += "<tr>";
|
|
appendCode += "<td>"+(i+1)+"</td>";
|
|
appendCode += "<td title='"+data[i].LOCATION_NAME+" "+data[i].DEPT_NAME+"'>"+data[i].LOCATION_NAME+" "+data[i].DEPT_NAME+"</td>";
|
|
appendCode += "<td title='"+fnc_checkNull(data[i].REPLY_REQ_DATE)+"'>"+fnc_checkNull(data[i].REPLY_REQ_DATE)+"</td>";
|
|
appendCode += "</tr>";
|
|
});
|
|
}else{
|
|
appendCode += "<tr>";
|
|
appendCode += "<td colspan='4' align='center'>등록된 협조부서가 없습니다.</td>";
|
|
appendCode += "</tr>";
|
|
}
|
|
|
|
$("#dataList").children().remove();
|
|
$("#dataList").append(appendCode);
|
|
fnc_datepick();
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
|
|
}
|
|
|
|
//첨부파일 목록을 가져온다.
|
|
function fn_fileCallback(areaId,fileType){
|
|
$.ajax({
|
|
url:"/common/getFileList.do",
|
|
type:"POST",
|
|
data:{"targetObjId":"${param.objId}", "docType":fileType},
|
|
dataType:"json",
|
|
async:false,
|
|
success:function(data){
|
|
if(0 < data.length){
|
|
$("#"+areaId+"DropZone").hide();
|
|
//첨부파일 목록 영역 show
|
|
$("#"+areaId+"FileArea").empty();
|
|
|
|
if(0 < $("#"+areaId+"DefaultRow").length){
|
|
$("#"+areaId+"DefaultRow").hide();
|
|
}
|
|
|
|
$.each(data, function(i){
|
|
|
|
var appendText = "";
|
|
if("final" == areaId){
|
|
var path = data[i].FILE_PATH;
|
|
var fileName = data[i].SAVED_FILE_NAME;
|
|
var fileExt = data[i].UPPER_FILE_EXT;
|
|
|
|
appendText+= "<tr>";
|
|
appendText+= " <td>"+[i+1]+"</td>";
|
|
appendText+= " <td title='"+data[i].REAL_FILE_NAME+"' class='align_l'><a href='javascript:fnc_downloadFile(\""+data[i].OBJID+"\")'> "+data[i].REAL_FILE_NAME+"</a></td>";
|
|
appendText+= " <td title='"+data[i].DEPT_NAME +" " +data[i].USER_NAME+"'>"+data[i].DEPT_NAME +" " +data[i].USER_NAME+"</td>";
|
|
appendText+= " <td title='"+data[i].REGDATE+"'>"+data[i].REGDATE+"</td>";
|
|
appendText+= "</tr>";
|
|
}
|
|
$("#"+areaId+"FileArea").append(appendText);
|
|
});
|
|
}else{
|
|
$("#"+areaId+"DropZone").hide();
|
|
$("#"+areaId+"AttachFileList").hide();
|
|
$("#"+areaId+"FileArea").empty();
|
|
var appendText = "";
|
|
appendText += "<tr>";
|
|
appendText += "<td colspan=\"5\">첨부 파일이 없습니다.</td>";
|
|
appendText +="</tr>";
|
|
$("#"+areaId+"FileArea").append(appendText);
|
|
}
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}//파일 첨부 END
|
|
</script>
|
|
<body>
|
|
<form name="projectConceptProductForm" id="projectConceptProductForm" action="" method="post">
|
|
<input type="hidden" name="objId" id="objId" value="${param.objId}" />
|
|
<section class="business_popup_min_width">
|
|
<div class="plm_menu_name">
|
|
<h2>
|
|
<span>수주활동</span>
|
|
</h2>
|
|
</div>
|
|
<div id="businessPopupFormWrap">
|
|
<div class="form_popup_title"> ${info.CAR_NAME} (${info.CAR_CODE}) / ${info.PROD_NAME}</div>
|
|
<table class="pmsPopupForm">
|
|
<colgroup>
|
|
<col width="13%"/>
|
|
<col width="*"/>
|
|
<col width="*"/>
|
|
<col width="15%"/>
|
|
<col width="*"/>
|
|
<col width="*"/>
|
|
</colgroup>
|
|
<tr>
|
|
<td class="input_title">
|
|
<label for="">제품군</label>
|
|
</td>
|
|
<td colspan="2" class="tr_data_border_bottom" title="${info.PROD_GROUP_NAME}">${info.PROD_GROUP_NAME}</td>
|
|
<td class="input_title">
|
|
<label for="">제품</label>
|
|
</td>
|
|
<td colspan="2" class="tr_data_border_bottom" title="${info.PROD_NAME}">${info.PROD_NAME}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title">
|
|
<label for="">견적번호</label>
|
|
</td>
|
|
<td colspan="2" class="tr_data_border_bottom" title="${info.ESTIMATE_NO}">${info.ESTIMATE_NO}</td>
|
|
<td class="input_title">
|
|
<label for="">견적제출일</label>
|
|
</td>
|
|
<td colspan="2" class="tr_data_border_bottom" title="${info.ESTIMATE_SUBMIT_DATE}">${info.ESTIMATE_SUBMIT_DATE}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title">
|
|
<label for="">견적요청 접수일</label>
|
|
</td>
|
|
<td colspan="2" class="tr_data_border_bottom" title="${info.ESTIMATE_REQ_DATE}">${info.ESTIMATE_REQ_DATE}</td>
|
|
<td class="input_title">
|
|
<label for="">생산총수량</label>
|
|
</td>
|
|
<td colspan="2" class="tr_data_border_bottom" title="${info.TOTAL_PRODUCTION_CNT}"><fmt:formatNumber value="${info.TOTAL_PRODUCTION_CNT}" pattern="#,###"/> </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title">
|
|
<label for="">연평균생산수량</label>
|
|
</td>
|
|
<td colspan="2" class="tr_data_border_bottom" title="${info.YEARLY_AVG_PRODUCTION_CNT}"><fmt:formatNumber value="${info.YEARLY_AVG_PRODUCTION_CNT}" pattern="#,###"/> </td>
|
|
<td class="input_title">
|
|
<label for="">입찰담당자</label>
|
|
</td>
|
|
<td colspan="2" class="tr_data_border_bottom" title="${info.ESTIMATE_PIC_DEPT_NAME} ${info.ESTIMATE_PIC_USER_NAME}">${info.ESTIMATE_PIC_DEPT_NAME} ${info.ESTIMATE_PIC_USER_NAME}</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="6" align="right">
|
|
<div class="btn_wrap">
|
|
<c:if test="${info.WRITER eq connectUserId}">
|
|
<input type="button" value="메일배포" class="blue_btn btnDistributeMail"/>
|
|
</c:if>
|
|
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title">
|
|
<label for="">협조부서</label>
|
|
</td>
|
|
<td colspan="5">
|
|
<div style="overflow-y:scroll;">
|
|
<table class="project_form_in_table" style="width:100%;">
|
|
<colgroup>
|
|
<col width="10%"/>
|
|
<col width="*"/>
|
|
<col width="20%"/>
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<td>No</td>
|
|
<td>협조팀명</td>
|
|
<td>자료회신요청일</td>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
</div>
|
|
<div class="in_table_scroll_wrap" style="width:100%;">
|
|
<table class="plm_table">
|
|
<colgroup>
|
|
<col width="10%"/>
|
|
<col width="*"/>
|
|
<col width="20%"/>
|
|
</colgroup>
|
|
<tbody id="dataList">
|
|
<tr>
|
|
<td colspan="3" align="cencter">등록된 협조부서가 없습니다.</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table class="pmsPopupForm" style="margin-top:0;">
|
|
<colgroup>
|
|
<col width="13%;">
|
|
<col width="10%;">
|
|
<col width="*;">
|
|
<col width="*;">
|
|
<col width="*;">
|
|
<col width="10%;">
|
|
</colgroup>
|
|
<tr>
|
|
<td rowspan="3" class="input_title">
|
|
<label for="">최종 산출물</label>
|
|
</td>
|
|
<td colspan="5"><div id="finalDropZone" class="dropzone">Drag & Drop Files Here</div></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="5">
|
|
<div style="overflow-y:scroll;">
|
|
<table class="project_form_in_table" style="width:100%;">
|
|
<colgroup>
|
|
<col width="10%">
|
|
<col width="*">
|
|
<col width="20%">
|
|
<col width="20%;">
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<td>No</td>
|
|
<td>첨부파일명</td>
|
|
<td>첨부인원</td>
|
|
<td>등록일</td>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
</div>
|
|
<div class="in_table_scroll_wrap" style="width:100%; height:130px;">
|
|
<table class="plm_table">
|
|
<colgroup>
|
|
<col width="10%">
|
|
<col width="*">
|
|
<col width="20%">
|
|
<col width="20%;">
|
|
</colgroup>
|
|
<tbody id="finalFileArea">
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<div class="btn_wrap">
|
|
<div class="plm_btn_wrap_center">
|
|
<c:if test="${info.STATUS eq 'create'}">
|
|
<input type="button" value="Edit" class="plm_btns btnModify">
|
|
</c:if>
|
|
<input type="button" value="닫기" id="btn_close" class="plm_btns">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</form>
|
|
</body>
|
|
</html> |