manager_control.jsp 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. <%@ page contentType="text/html;charset=utf-8" isErrorPage="true" %>
  2. <%@ page import="com.udapsoft.waf.common.ui.*" %>
  3. <%@ page import="com.udapsoft.waf.system.HandlerStorage" %>
  4. <%@ page import="kr.co.hsnc.common.util.*"%>
  5. <%@ page import="kr.co.hsnc.common.sql.*" %>
  6. <%@ page import="kr.co.udapsoft.common.commonSign.CommonSignThreadManager" %>
  7. <%@ page import="kr.co.udapsoft.common.commonSign.CommonMailThreadManager" %>
  8. <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
  9. <%
  10. ctx.init(request, response);
  11. HandlerStorage storage = ctx.getHandlerStorage();
  12. ValueObject params = ctx.getParams();
  13. if( "CommonThread".equals(params.get("thread_name")) ){
  14. if( "Start".equals(params.get("cmd")) ) {
  15. CommonSignThreadManager.doStart();
  16. }
  17. else if( "Stop".equals(params.get("cmd")) ) {
  18. CommonSignThreadManager.doStop();
  19. }
  20. }else if( "CommonMailThread".equals(params.get("thread_name")) ){
  21. if( "Start".equals(params.get("cmd")) ) {
  22. CommonMailThreadManager.doStart();
  23. }
  24. else if( "Stop".equals(params.get("cmd")) ) {
  25. CommonMailThreadManager.doStop();
  26. }
  27. }
  28. %>
  29. <SCRIPT language="JavaScript">
  30. $(document).ready(function(){
  31. jQuery("#btn_ACZ10100").click(function() {
  32. excuteProc('IF_GET_ACZ10100');
  33. });
  34. jQuery("#btn_ACZ10101").click(function() {
  35. excuteProc('IF_GET_ACZ10101');
  36. });
  37. jQuery("#btn_PUB0120T").click(function() {
  38. excuteProc('IF_GET_PUB0120T');
  39. });
  40. jQuery("#btn_ACZ10800").click(function() {
  41. excuteProc('IF_GET_ACZ10800');
  42. });
  43. jQuery("#btn_BUDGET").click(function() {
  44. excuteProc('IF_GET_BUDGET');
  45. });
  46. jQuery("#btn_PDF").click(function() {
  47. var pop = window.open("/common/file/PdfViewer.screen?PROOF_DEPT=2054&PROOFDATE=20190331&PROOF_NO=3&PROOF_SEQ=1&PAGES_YN=N&zoom=100","pop","width=700,height=300, scrollbars=yes, resizable=yes");
  48. });
  49. });
  50. function excuteProc(procName){
  51. var f = document.form1;
  52. f.procName.value = procName;
  53. submitXmlRequest("/common/util/getErpData.screen", "PROC", f, "SUCCESS");
  54. }
  55. function doCmd(threadName, cmd) {
  56. var f = document.form1;
  57. f.thread_name.value = threadName;
  58. f.cmd.value = cmd;
  59. f.submit();
  60. }
  61. function doResult(resultObj) {
  62. document.form1.isSubmit = false;
  63. try {
  64. if( resultObj.getRequestEvent() == "PROC") {
  65. if( resultObj.getSuccess() ) {
  66. alert("완료되었습니다.");
  67. } else {
  68. dlgErrorMsg(resultObj);
  69. }
  70. }
  71. } catch(errorObject) {
  72. showErrorDlg("doResult()", errorObject);
  73. }
  74. }
  75. </SCRIPT>
  76. <modular:search id="form1">
  77. <modular:key id="fevent" />
  78. </modular:search>
  79. <form name="form1" method="post">
  80. <INPUT type="hidden" name="fevent" id="fevent" value="">
  81. <INPUT type="hidden" name="thread_name" value="">
  82. <INPUT type="hidden" name="cmd" value="">
  83. <INPUT type="hidden" name="procName" value="">
  84. <div align="left" id="title">
  85. <ul>
  86. <li>결제 데몬</li>
  87. </ul>
  88. </div>
  89. <table class="form-table">
  90. <colgroup>
  91. <col width="20%" />
  92. <col width="20%" />
  93. <col width="10%" />
  94. <col width="10%" />
  95. <col width="40%" />
  96. </colgroup>
  97. <tr>
  98. <th style="text-align: center;">Name</th>
  99. <th style="text-align: center;">Status</th>
  100. <th style="text-align: center;">Control 1</th>
  101. <th style="text-align: center;">Control 2</th>
  102. <th style="text-align: center;">Description</th>
  103. </tr>
  104. <tr height="25">
  105. <td style="text-align: center;">CommonSignThread</td>
  106. <td style="text-align: center;"><%= CommonSignThreadManager.isRun() %></td>
  107. <td style="text-align: center;"><a href="javascript:doCmd('CommonThread','Start');">Start</a></td>
  108. <td style="text-align: center;"><a href="javascript:doCmd('CommonThread','Stop');">Stop</a></td>
  109. <td style="text-align: center;">통합 결재 데몬</td>
  110. </tr>
  111. <tr height="25">
  112. <td style="text-align: center;">CommonMailThread</td>
  113. <td style="text-align: center;"><%= CommonMailThreadManager.isRun() %></td>
  114. <td style="text-align: center;"><a href="javascript:doCmd('CommonMailThread','Start');">Start</a></td>
  115. <td style="text-align: center;"><a href="javascript:doCmd('CommonMailThread','Stop');">Stop</a></td>
  116. <td style="text-align: center;">메일발송데몬</td>
  117. </tr>
  118. </table>
  119. <div class="application-info magT15">
  120. <div class="application-sub-title">
  121. <span class="title">ERP 데이터 가져오기</span>
  122. </div>
  123. </div>
  124. <TABLE class="form-table">
  125. <colgroup>
  126. <col width="40%"/>
  127. <col width="40%"/>
  128. <col width="20%"/>
  129. </colgroup>
  130. <TR height="25">
  131. <TH style="text-align: center;">항목</TH>
  132. <TH style="text-align: center;">프로시저명</TH>
  133. <TH style="text-align: center;">실행</TH>
  134. </TR>
  135. <TR height="25">
  136. <TD style="text-align: center;">현장</TD>
  137. <TD style="text-align: center;">IF_GET_ACZ10100</TD>
  138. <TD style="text-align: center;"><span class="btnSearch center" id="btn_ACZ10100"><a href="javascript:void(0);">실행</a></span></TD>
  139. </TR>
  140. <TR height="25">
  141. <TD style="text-align: center;">부서</TD>
  142. <TD style="text-align: center;">IF_GET_ACZ10101</TD>
  143. <TD style="text-align: center;"><span class="btnSearch center" id="btn_ACZ10101"><a href="javascript:void(0);">실행</a></span></TD>
  144. </TR>
  145. <TR height="25">
  146. <TD style="text-align: center;">사용자</TD>
  147. <TD style="text-align: center;">IF_GET_PUB0120T</TD>
  148. <TD style="text-align: center;"><span class="btnSearch center" id="btn_PUB0120T"><a href="javascript:void(0);">실행</a></span></TD>
  149. </TR>
  150. <TR height="25">
  151. <TD style="text-align: center;">거래처</TD>
  152. <TD style="text-align: center;">IF_GET_ACZ10800</TD>
  153. <TD style="text-align: center;"><span class="btnSearch center" id="btn_ACZ10800"><a href="javascript:void(0);">실행</a></span></TD>
  154. </TR>
  155. <TR height="25">
  156. <TD style="text-align: center;">예산</TD>
  157. <TD style="text-align: center;">IF_GET_BUDGET</TD>
  158. <TD style="text-align: center;"><span class="btnSearch center" id="btn_BUDGET"><a href="javascript:void(0);">실행</a></span></TD>
  159. </TR>
  160. <TR height="25">
  161. <TD style="text-align: center;">증빙</TD>
  162. <TD style="text-align: center;">PDF생성</TD>
  163. <TD style="text-align: center;"><span class="btnSearch center" id="btn_PDF"><a href="javascript:void(0);">실행</a></span></TD>
  164. </TR>
  165. </TABLE>
  166. </form>