전문레이아웃 매핑 선연결 제외
This commit is contained in:
@@ -4,11 +4,18 @@
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||
<%@ include file="/jsp/common/include/localemessage.jsp" %>
|
||||
<%@ page import="com.eactive.eai.common.util.SystemUtil"%>
|
||||
<%@ page import="com.eactive.eai.rms.common.context.MonitoringContext"%>
|
||||
<%@ page import="com.eactive.eai.rms.common.util.CommonUtil"%>
|
||||
<%
|
||||
response.setHeader("Pragma", "No-cache");
|
||||
response.setHeader("Cache-Control", "no-cache");
|
||||
response.setHeader("Expires", "0");
|
||||
|
||||
MonitoringContext monitoringContext = (MonitoringContext)CommonUtil.getBean(request, "monitoringContext");
|
||||
String deployYnStr = monitoringContext.getStringProperty(MonitoringContext.IOMAP_DEPLOY_YN_BY_RMS, "N");
|
||||
boolean deployYn = "Y".equalsIgnoreCase(deployYnStr);
|
||||
String adminOnlyYnStr = monitoringContext.getStringProperty(MonitoringContext.IOMAP_DEPLOY_YN_BY_ADMIN_ONLY, "Y");
|
||||
boolean adminOnly = "Y".equalsIgnoreCase(adminOnlyYnStr);
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
@@ -17,62 +24,48 @@
|
||||
|
||||
<jsp:include page="/jsp/common/include/css.jsp"/>
|
||||
<jsp:include page="/jsp/common/include/script.jsp"/>
|
||||
<script language="javascript" >
|
||||
<script>
|
||||
var url = '<c:url value="/onl/admin/rule/transformMan.json" />';
|
||||
var url_view = '<c:url value="/onl/admin/rule/transformMan.view" />';
|
||||
var url_excel= '<c:url value="/onl/admin/rule/transformMan.excel"/>';
|
||||
var roleString = "<%=SessionManager.getRoleIdString(request)%>";
|
||||
var devSvr = <%=SystemUtil.isDevServer()%>;
|
||||
|
||||
function dateFormater(cellvalue, options, rowObject){
|
||||
if (cellvalue==null|| cellvalue==undefined) return "";
|
||||
if (cellvalue.trim().length < 14) return "";
|
||||
var display = "";
|
||||
display=display+cellvalue.substr(0,4)+"-";
|
||||
display=display+cellvalue.substr(4,2)+"-";
|
||||
display=display+cellvalue.substr(6,2)+" ";
|
||||
|
||||
display=display+cellvalue.substr(8,2)+":";
|
||||
display=display+cellvalue.substr(10,2)+":";
|
||||
display=display+cellvalue.substr(12,2);
|
||||
|
||||
return display;
|
||||
}
|
||||
|
||||
var stageSvr = <%=SystemUtil.isStagingServer()%>;
|
||||
var adminOnly = <%=adminOnly%>;
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
var postData = getSearchForJqgrid("cmd","LIST"); //jqgrid에서는 object 로
|
||||
|
||||
$('#grid').jqGrid({
|
||||
datatype:"json",
|
||||
mtype: 'POST',
|
||||
url: url,
|
||||
postData : { cmd : 'LIST'
|
||||
, searchBizCode : $('input[name=searchBizCode]').val()
|
||||
, searchCnvsnName : $('input[name=searchCnvsnName]').val()
|
||||
, searchCnvsnDesc : $('input[name=searchCnvsnDesc]').val()
|
||||
|
||||
},
|
||||
postData : postData,
|
||||
colNames:[
|
||||
'<%=localeMessage.getString("transformMan.eaibzwkdstcd")%>',
|
||||
'<%=localeMessage.getString("transformMan.telCngMappCd")%>',
|
||||
'<%=localeMessage.getString("transformMan.telCngMappDesc")%>',
|
||||
'<%=localeMessage.getString("transformMan.ifSvcCd")%>',
|
||||
'<%=localeMessage.getString("transformMan.ifSvcDesc")%>',
|
||||
'<%=localeMessage.getString("transformMan.eaiSvrDiv")%>',
|
||||
'<%= localeMessage.getString("combo.useYn")%> ',
|
||||
'<%=localeMessage.getString("transformMan.modifyDate")%>',
|
||||
'<%=localeMessage.getString("transformMan.verInfo")%>',
|
||||
'타입',
|
||||
'cnvsnType',
|
||||
'flag'
|
||||
],
|
||||
colModel:[
|
||||
{ name : 'EAIBZWKDSTCD' , align:'center' ,sortable:false , width : "40"},
|
||||
{ name : 'CNVSNNAME' , align:'left' },
|
||||
{ name : 'EAISVCNAME' , align:'left' },
|
||||
{ name : 'EAISVCDESC' , align:'left' },
|
||||
{ name : 'EAIBZWKDSTCD' , align:'center' ,sortable:false , width:"30"},
|
||||
{ name : 'CNVSNNAME' , align:'left' , width:"100" },
|
||||
{ name : 'CNVSNDESC' , align:'left' , width:"100" },
|
||||
{ name : 'EAISVCNAME' , align:'left' , width:"70" },
|
||||
{ name : 'EAISVCDESC' , align:'left' , width:"100"},
|
||||
{ name : 'EAISEVRDSTCD' , hidden : true },
|
||||
{ name : 'USEYN', align:'center', width:30,editoptions:{value:"0:<%= localeMessage.getString("combo.usen")%>;1:<%= localeMessage.getString("combo.usey")%>"}, formatter:"select"},
|
||||
{ name : 'LASTAMNDHMS' , align:'center' , formatter: dateFormater, width : "70" },
|
||||
{ name : 'VERINFO' , align:'center' , width : "70" },
|
||||
{ name : 'CNVSNTYPE' , hidden : true },
|
||||
{ name : 'USEYN', align:'center', width:30 ,editoptions:{value:"0:<%= localeMessage.getString("combo.usen")%>;1:<%= localeMessage.getString("combo.usey")%>"}, formatter:"select"},
|
||||
{ name : 'LASTAMNDHMS' , align:'center' , width : "60" },
|
||||
{ name : 'VERINFO' , align:'center' , width : "30" },
|
||||
{ name : 'CNVSNTYPE' , hidden : true },
|
||||
{ name : 'FLAG' , hidden : true }
|
||||
],
|
||||
jsonReader: {
|
||||
@@ -136,7 +129,8 @@ $(document).ready(function() {
|
||||
//key값
|
||||
url2 += '&cnvsnName='+cnvsnName;
|
||||
url2 += '&eaiSvcName='+eaiSvcName;
|
||||
url2 += '&eaiSvcDesc='+eaiSvcDesc;
|
||||
//url2 += '&eaiSvcDesc='+eaiSvcDesc;
|
||||
url2 += '&eaiSvcDesc='+encodeURIComponent(eaiSvcDesc);
|
||||
url2 += '&cnvsnDesc='+cnvsnDesc;
|
||||
url2 += '&eaiSevrDStcd='+eaiSevrDStcd;
|
||||
url2 += '&useYn='+useYn;
|
||||
@@ -161,7 +155,6 @@ $(document).ready(function() {
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
resizeJqGridWidth('grid','content_middle','1000');
|
||||
|
||||
$("#btn_search").click(function(){
|
||||
@@ -217,7 +210,7 @@ $(document).ready(function() {
|
||||
}
|
||||
return false;
|
||||
}else{
|
||||
if(confirm("초기화 하시겠습니까?")){
|
||||
if(confirm("<%=localeMessage.getString("eaiMessage.confirm2")%>")){
|
||||
var postData = [];
|
||||
postData.push({ name: "cmd" , value:"LIST_INITIALIZE"});
|
||||
postData.push({ name: "chkItems" , value : chkArr});
|
||||
@@ -242,8 +235,13 @@ $(document).ready(function() {
|
||||
});
|
||||
|
||||
$('#btn_cmsave').click(onclickBtnCmSave);
|
||||
$('#btn_clone').click(onclickBtnClone);
|
||||
|
||||
$("#btn_delete").click(function(){
|
||||
if(!confirm("삭제하시겠습니까?")){
|
||||
return;
|
||||
}
|
||||
|
||||
var id = "grid";
|
||||
var cnvsnNameArr = new Array();
|
||||
var eaiSvcNameArr = new Array();
|
||||
@@ -263,7 +261,7 @@ $(document).ready(function() {
|
||||
}
|
||||
|
||||
if(chkcnt == 0){
|
||||
alert("변환매핑을 선택해 주세요");
|
||||
alert("<%= localeMessage.getString("standardLayout.message4") %>");
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -303,10 +301,18 @@ $(document).ready(function() {
|
||||
});
|
||||
buttonControl();
|
||||
setBtnHide(roleString, "admin", "btn_initialize");
|
||||
//setBtnControl(roleString, "admin", "btn_cmsave");
|
||||
if(!devSvr){
|
||||
$("#btn_cmsave").hide();
|
||||
|
||||
if(devSvr || stageSvr){
|
||||
if (adminOnly) {
|
||||
setBtnHide(roleString, "admin", "btn_clone");
|
||||
}
|
||||
}else{
|
||||
$("#btn_clone").hide();
|
||||
}
|
||||
//setBtnControl(roleString, "admin", "btn_cmsave");
|
||||
//if(!devSvr){
|
||||
// $("#btn_cmsave").hide();
|
||||
//}
|
||||
});
|
||||
|
||||
function setBtnControl(roleString, condiVal, compoId)
|
||||
@@ -429,6 +435,62 @@ function addCMResource(eaiBzwkDsdCd, obj, cnvsnNames) {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function onclickBtnClone() {
|
||||
var sel = $('#grid').jqGrid('getGridParam', 'selarrrow');
|
||||
if (sel.length == 0) {
|
||||
alert('<%= localeMessage.getString("eaiMessage.alert17")%>');
|
||||
return;
|
||||
}
|
||||
var selectedTransformNames = [];
|
||||
|
||||
$(sel).each(function(index, i) {
|
||||
var cnvsnName = $('#grid').getCell(i, 'CNVSNNAME');
|
||||
selectedTransformNames.push(cnvsnName);
|
||||
});
|
||||
|
||||
var url2 = url_view;
|
||||
url2 += "?cmd=POPUP CALENDAR";
|
||||
var args = new Object();
|
||||
args['selectedCnvsnName'] = selectedTransformNames.join(',');
|
||||
showModal(url2,args,540,270, function(arg){
|
||||
var args = null;
|
||||
if(arg == null || arg == undefined ) {
|
||||
//chrome
|
||||
args = this.dialogArguments;
|
||||
args.returnValue = this.returnValue;
|
||||
} else {
|
||||
//ie
|
||||
args = arg;
|
||||
}
|
||||
if( !args || !args.returnValue ) return;
|
||||
deployTransforms(args.returnValue);
|
||||
});
|
||||
}
|
||||
|
||||
function deployTransforms(ret) {
|
||||
var params = ret;
|
||||
params['cmd'] = 'CLONETOPROD';
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url:url,
|
||||
dataType:"json",
|
||||
data:params,
|
||||
success:function(json){
|
||||
alert(json.message);
|
||||
list($("#grid").getGridParam("page"));
|
||||
},
|
||||
error:function(xhr,status,error){
|
||||
if (xhr.responseText != null) {
|
||||
try {
|
||||
alert(JSON.parse(xhr.responseText).errorMsg);
|
||||
} catch (e) {
|
||||
alert(error);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
@@ -441,6 +503,11 @@ function addCMResource(eaiBzwkDsdCd, obj, cnvsnNames) {
|
||||
</div><!-- end content_top -->
|
||||
<div class="content_middle" id="content_middle">
|
||||
<div class="search_wrap">
|
||||
<% if (SystemUtil.isDevServer() && deployYn) { %>
|
||||
<button type="button" class="cssbtn" id="btn_clone" level="W"><i class="material-icons">move_up</i> <%= localeMessage.getString("button.copyStage") %></button>
|
||||
<% } else if (SystemUtil.isStagingServer() && deployYn) { %>
|
||||
<button type="button" class="cssbtn" id="btn_clone" level="W"><i class="material-icons">move_up</i> <%= localeMessage.getString("button.copyProd") %></button>
|
||||
<% } %>
|
||||
<button type="button" class="cssbtn" id="btn_excel" level="W" status="DETAIL"><i class="material-icons">table_view</i> <%= localeMessage.getString("button.excel") %></button>
|
||||
<button type="button" class="cssbtn" id="btn_initialize" level="W" ><i class="material-icons">restart_alt</i> <%= localeMessage.getString("button.reset") %></button>
|
||||
<button type="button" class="cssbtn" id="btn_delete" level="W" status="DETAIL,NEW"><i class="material-icons">delete</i> <%= localeMessage.getString("button.delete") %></button>
|
||||
@@ -469,9 +536,13 @@ function addCMResource(eaiBzwkDsdCd, obj, cnvsnNames) {
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="width:180px;"><%=localeMessage.getString("transformMan.telCngMappDesc")%> </th>
|
||||
<td colspan="3">
|
||||
<td>
|
||||
<input type="text" name="searchCnvsnDesc" value="${param.searchCnvsnDesc}">
|
||||
</td>
|
||||
<th style="width:180px;"><%=localeMessage.getString("transformMan.ifSvcCd")%> </th>
|
||||
<td>
|
||||
<input type="text" name="searchIfSvcCd" value="${param.searchIfSvcCd}">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user