131 lines
3.6 KiB
Plaintext
131 lines
3.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.*"%>
|
|
<%@include file="/init.jsp"%>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<link rel="stylesheet" href="css/basic.css">
|
|
<title><%=Constants.SYSTEM_NAME%></title>
|
|
|
|
<script>
|
|
$(function(){
|
|
$(document).ready(function(){
|
|
|
|
$(".searchCharger").click(function(){
|
|
fn_searchEmployee();
|
|
});
|
|
|
|
$("#btn_save").click(function(){
|
|
if(confirm("저장하시겠습니까?")){
|
|
fn_saveChargerInfo();
|
|
}
|
|
});
|
|
});
|
|
});
|
|
</script>
|
|
|
|
<script>
|
|
//지정된 대표자를 삭제한다.
|
|
function fn_saveTransferDocChargerInfo(userType,userId){
|
|
$.ajax({
|
|
url:"/transfer/saveDocTransferChargerInfo.do",
|
|
type:"POST",
|
|
data:{"targetObjId":$("#targetObjId").val(),"productObjId":$("#productObjId").val(),"userId":userId},
|
|
dataType:"json",
|
|
async:false,
|
|
success:function(data){
|
|
if(fnc_checkTrue(data.result)){
|
|
Swal.fire("지정되었습니다.");
|
|
}
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}
|
|
|
|
//사원정보를 조회한다.
|
|
function fn_searchEmployee(){
|
|
var params = "";
|
|
params += "?title=담당자 지정";
|
|
params += "&callback=fn_setUserInfo";
|
|
params += "&isMulti=false";
|
|
|
|
window.open("/common/searchEmployeePopup.do"+params, "", "width=480, height=400");
|
|
}
|
|
|
|
//조회된 사원정보를 Set 한다.
|
|
function fn_setUserInfo(userId,userName,deptName,deptCode,userType){
|
|
$("#productCharger").val(deptName+" "+userName);
|
|
$("#chargerUsereId").val(userId);
|
|
}
|
|
|
|
function fn_saveChargerInfo(){
|
|
$.ajax({
|
|
url:"/transfer/saveQualityTransferChargerInfo.do",
|
|
type:"POST",
|
|
data:$("#form1").serialize(),
|
|
dataType:"json",
|
|
success:function(data){
|
|
if(fnc_checkTrue(data.result)){
|
|
Swal.fire("저장되었습니다.");
|
|
fn_moveDetail();
|
|
}else{
|
|
Swal.fire("오류가 발생하였습니다.");
|
|
}
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}
|
|
|
|
function fn_moveDetail(){
|
|
var form = document.form1;
|
|
form.action = "/transfer/qualityTransferChargerDetailPopUp.do";
|
|
form.submit();
|
|
}
|
|
|
|
</script>
|
|
|
|
</head>
|
|
<body>
|
|
<section style="min-width:490px;">
|
|
<div class="plm_menu_name">
|
|
<h2>
|
|
<span>대표자 관리</span>
|
|
</h2>
|
|
</div>
|
|
<div id="businessPopupFormWrap">
|
|
<form id="form1" name="form1" method="post">
|
|
<input type="hidden" id="objId" name="objId" value="${info.OBJID}">
|
|
<input type="hidden" id="targetObjId" name="targetObjId" value="${param.targetObjId}">
|
|
<input type="hidden" id="productObjId" name="productObjId" value="${param.productObjId}">
|
|
<table class="pmsPopupForm">
|
|
<colgroup>
|
|
<col width="20%" />
|
|
<col width="*" />
|
|
</colgroup>
|
|
<tbody>
|
|
<tr>
|
|
<td class="input_title"><label>생산팀</label></td>
|
|
<td class="">
|
|
<input type="text" name="productCharger" id="productCharger" style="width:93%;" value="${info.DEPT_NAME} ${info.USER_NAME}" readonly>
|
|
<input type="hidden" name="chargerUsereId" id="chargerUsereId" value="${info.CHARGER_ID}">
|
|
<a href='#' class='search_btn searchCharger'></a>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</form>
|
|
</div>
|
|
<div class="btn_wrap">
|
|
<center class="plm_btn_wrap_center">
|
|
<input type="button" value="저장" name="" class="plm_btns" id="btn_save">
|
|
<input type="button" value="닫기" name="" class="plm_btns" onclick="javascript:self.close();">
|
|
</center>
|
|
</div>
|
|
</secsion>
|
|
</body>
|
|
</html> |