Files
eapim-online/WebContent/mgr/kbmessage.jsp
T

228 lines
18 KiB
Plaintext

<%-- <%@ page import="java.io.*, java.util.*"%>
<%@ page language="java" contentType="text/html;charset=utf-8"%>
<%@ page import="com.eactive.eai.agent.AgentUtil"%>
<%@ page import="com.eactive.eai.agent.command.Command"%>
<%@ page import="com.eactive.eai.common.EAITable"%>
<%@ page import="com.kbstar.eai.common.kbmessage.*"%>
<%@ page import="java.util.HashMap"%>
<%!
/**
* <pre>
* 문자열을 받아서 널이면 제로스트링을, 아니면 트림된 문자열을 리턴.
* </pre>
* @param String 변환 대상
* @return 'String'
*/
public static String checkNull( String str ) {
String sResult = new String();
if ( str == null ) {
sResult = "";
}
else {
sResult = str.trim();
}
return sResult;
}
%>
<%
KBMessageManager manager = KBMessageManager.getInstance();
String[] alls = manager.getAllKBMessageKeys();
String action = request.getParameter("actionType");
String selectedKey = request.getParameter("selectedKey");
if(selectedKey == null && alls.length>=1) {
selectedKey = alls[0];
}
if ("reload".equals(action)){
manager.reload(selectedKey);
}else if ("reloadAll".equals(action)){
manager.reload();
}else {
;
}
KBMessage vo = null;
if(selectedKey != null){
vo = manager.getKBMessage(selectedKey);
}
%>
<html>
<head>
<title>
EAI KBMessage Manager
</title>
<script>
function doAction() {
document.frm.submit();
}
function managerReload(){
document.frm.actionType.value="reload";
document.frm.submit();
}
function managerReloadAll(){
document.frm.actionType.value="reloadAll";
document.frm.submit();
}
function doSearch(){
var searchValue = document.frm.searchTxt.value;
document.frm.selectedKey.value = searchValue;
document.frm.submit();
}
function enterEvent(){
if(window.event.keyCode==13){
doSearch();
}
}
</script>
</head>
<body>
<p style="font-size:12pt;">
<b>EAI KB내부표준 메시지 관리</b> <br><br>
</p>
<form name="frm" action="">
<input type="hidden" name="actionType" value="">
<table width="800" border=0 bgcolor='black' cellpadding="1" cellspacing="1">
<tr bgcolor='white'>
<td rowspan="2" align='right' width='350' bgcolor="#ccccff">업무 서비스 키 :&nbsp;&nbsp;</td>
<td align='left' >&nbsp;<select name="selectedKey" onchange="doAction();"style="width:98%" >
<%
for(int i=0;i<alls.length;i++) {
%>
<option value="<%=alls[i]%>" <%= (alls[i].equals(selectedKey)) ? "selected" : "" %>><%=alls[i]%>
<%
}
%></select>
</td>
<td width='50'><input type="button" name="reload" value="reload" onClick="managerReload()" /></td>
<td width='70'><input type="button" name="reloadAll" value="reloadAll" onClick="managerReloadAll()" /></td>
</tr>
<tr bgcolor='white'>
<td align='left' >&nbsp;<input type="edit" name="searchTxt" onkeydown="enterEvent()" value="<%=selectedKey%>" style="width:98%" /></td>
<td colspan="2" align="center"><input type="button" name="search" value="search" onClick="doSearch()" /></td>
</tr>
</table>
</form>
<br>
<table width="800" border=0 bgcolor='black' cellpadding="1" cellspacing="1">
<tr bgcolor='white'>
<td align='right' bgcolor="#003366">&nbsp; <font color="yellow"><b>Property Key</b> &nbsp;</font></td>
<td align='left' bgcolor="#003366">&nbsp;<font color="yellow">&nbsp; <b>Property Value</b></font></td>
</tr>
<%
if(vo != null) {
%>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; 업무 서비스 키 : &nbsp;&nbsp;</td>
<td align='left' style="height:40px;">&nbsp;<input type="text" name="bwkSvcKey" style="width:98%" value="<%=vo.getBwkSvcKey()%>" readonly></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; CICS트랜코드 : &nbsp;&nbsp;</td>
<td align='left' style="height:40px;">&nbsp;<input type="text" name="cICSTrncd" style="width:98%" value="<%=vo.getKBHeader().getCicsTrncd()%>"></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; 전문요청구분코드 : (S-요청 /R-응답)&nbsp;&nbsp;</td>
<td align='left' style="height:40px;">&nbsp;<input type="text" name="telgmDmndDstcd" style="width:98%" value="<%=vo.getKBHeader().getTelgmDmndDstcd()%>"></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; 그룹회사코드 : &nbsp;&nbsp;</td>
<td align='left' style="height:40px;">&nbsp;<input type="text" name="groupCoCd" style="width:98%" value="<%=vo.getKBCommon().getGroupCoCd()%>"></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; 수신거래코드 : &nbsp;&nbsp;</td>
<td align='left' style="height:40px;">&nbsp;<input type="text" name="telgmRecvTranCd" style="width:98%" value="<%=vo.getKBCommon().getTelgmRecvTranCd()%>"></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; 처리결과수신거래코드 : &nbsp;&nbsp;</td>
<td align='left' style="height:40px;">&nbsp;<input type="text" name="prcssRsultTelgmRecvTranCd" style="width:98%" value="<%=vo.getKBCommon().getPrcssRtdTranCd()%>"></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; 화면번호 : &nbsp;&nbsp;</td>
<td align='left' style="height:40px;">&nbsp;<input type="text" name="screnNo" style="width:98%" value="<%=vo.getKBCommon().getScrenNo()%>"></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; 대외기관코드 : &nbsp;&nbsp;</td>
<td align='left' style="height:40px;">&nbsp;<input type="text" name="osidInstiCd" style="width:98%" value="<%=vo.getKBCommon().getOsidInstiCd()%>"></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; 내외부구분코드 : (1-내부/2-외부)&nbsp;&nbsp;</td>
<td align='left' style="height:40px;">&nbsp;<input type="text" name="wtinExtnlDstcd" style="width:98%" value="<%=vo.getKBCommon().getInoPartlDstcd()%>"></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; 원거래복원여부 : (0-불필요/1-필요)&nbsp;&nbsp;</td>
<td align='left' style="height:40px;">&nbsp;<input type="text" name="ogtranRstrYn" style="width:98%" value="<%=vo.getKBCommon().getOgtranRstrYn()%>"></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; 복합거래요청구분코드 : (' '-없음/T-다중전송/A-다중조합)&nbsp;&nbsp;</td>
<td align='left' style="height:40px;">&nbsp;<input type="text" name="cmpxTranDmndDstcd" style="width:98%" value="<%=vo.getKBCommon().getCmpxTranDmndDstcd()%>"></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; 시스템운영환경구분코드 : (O-운영/S-테스트,스테이징/D-개발/R-DR)&nbsp;&nbsp;</td>
<td align='left' style="height:40px;">&nbsp;<input type="text" name="sysOperEvirnDstcd" style="width:98%" value="<%=vo.getKBCommon().getSysOperEvirnDstcd()%>"></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; 취소구분코드 : (1-정상/3-정정취소/4-정정/5-취소)&nbsp;&nbsp;</td>
<td align='left' style="height:40px;">&nbsp;<input type="text" name="cnclDstcd" style="width:98%" value="<%=vo.getKBCommon().getCnclDstcd()%>"></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; EAI거래코드&nbsp;&nbsp;</td>
<td align='left' style="height:40px;">&nbsp;<input type="text" name="eAITranName" style="width:98%" value="<%=vo.getEAITranName()%>"></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; EAI내외부구분코드&nbsp;&nbsp;</td>
<td align='left' style="height:40px;">&nbsp;<input type="text" name="eaiInoPartlDstcd" style="width:98%" value="<%=vo.getKBCommon().getEaiInoPartlDstcd()%>"></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; 채널구분코드&nbsp;&nbsp;</td>
<td align='left' style="height:40px;">&nbsp;<input type="text" name="chnlDstcd" style="width:98%" value="<%=vo.getKBCommon().getChnlDstcd()%>"></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; 채널세부업무구분코드&nbsp;&nbsp;</td>
<td align='left' style="height:40px;">&nbsp;<input type="text" name="chnlDBzwkDstcd" style="width:98%" value="<%=vo.getKBCommon().getChnlDBzwkDstcd()%>"></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; 매체구분코드&nbsp;&nbsp;</td>
<td align='left' style="height:40px;">&nbsp;<input type="text" name="mdiaDstcd" style="width:98%" value="<%=vo.getKBCommon().getMdiaDstcd()%>"></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; 거래부점코드&nbsp;&nbsp;</td>
<td align='left' style="height:40px;">&nbsp;<input type="text" name="tranBrncd" style="width:98%" value="<%=vo.getKBCommon().getTranBrncd()%>"></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; 사용자 직원번호&nbsp;&nbsp;</td>
<td align='left' style="height:40px;">&nbsp;<input type="text" name="userEmpid" style="width:98%" value="<%=vo.getKBCommon().getUserEmpid()%>"></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; 은행코드&nbsp;&nbsp;</td>
<td align='left' style="height:40px;">&nbsp;<input type="text" name="bnkCd" style="width:98%" value="<%=vo.getKBCommon().getBnkCd()%>"></td>
</tr>
<%
}
%>
</table>
</body>
</html> --%>