slipSign_form.jsp 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <%@ page contentType="text/html; charset=utf-8" %>
  2. <%@ page import="com.udapsoft.waf.system.HandlerStorage" %>
  3. <%@ page import="kr.co.hsnc.common.config.WAFConfig"%>
  4. <%@ page import="kr.co.hsnc.common.sql.*" %>
  5. <%@ page import="kr.co.hsnc.common.util.*"%>
  6. <%@ page import="com.udapsoft.waf.common.ui.*" %>
  7. <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
  8. <%
  9. ctx.init(request, response);
  10. HandlerStorage storage = ctx.getHandlerStorage();
  11. ValueObject signInfo = storage.getValueObject("SignInfo");
  12. ValueObject params = storage.getParams();
  13. String gwURL = "https://gw.sgcenc.co.kr/DraftUI.aspx";
  14. System.out.println("gwURL="+gwURL);
  15. %>
  16. <% if( storage.getSuccess() ) {
  17. System.out.println("ORGID===="+signInfo.get("ORGID"));
  18. System.out.println("ORGKEY===="+signInfo.get("ORGKEY"));
  19. System.out.println("COMID===="+signInfo.get("COMID"));
  20. System.out.println("EMPNO===="+signInfo.get("EMPNO"));
  21. System.out.println("FORMID===="+signInfo.get("FORMID"));
  22. System.out.println("BODY===="+signInfo.get("BODY"));
  23. %>
  24. <FORM name="form1" method="post">
  25. <INPUT type="hidden" name="ORGID" value="<%= signInfo.get("ORGID") %>"><br>
  26. <INPUT type="hidden" name="ORGKEY" value="<%= signInfo.get("ORGKEY") %>"><br>
  27. <INPUT type="hidden" name="COMID" value="<%= signInfo.get("COMID") %>"><br>
  28. <INPUT type="hidden" name="EMPNO" value="<%= signInfo.get("EMPNO")%>"><br>
  29. <INPUT type="hidden" name="FORMID" value="<%= signInfo.get("FORMID") %>"><br>
  30. <TEXTAREA name="BODY" cols="100" rows="10" style="display:none"></TEXTAREA>
  31. <DIV id="body_div" style="display:none">
  32. <%= signInfo.get("BODY") %>
  33. </DIV>
  34. </FORM>
  35. <SCRIPT language="JavaScript">
  36. function doSend() {
  37. var f = document.form1;
  38. /*
  39. try {
  40. opener.doSearch();
  41. }
  42. catch(errorObject) {
  43. alert("결재상신 페이지를 Reload 할 수 없습니다.");
  44. }
  45. */
  46. f.BODY.value = document.all.body_div.innerHTML;
  47. f.action = "<%=gwURL%>?ORGID=EBID&ORGKEY="+f.ORGKEY.value+"&COMID=TEC&EMPNO="+f.EMPNO.value+"&FORMID="+f.FORMID.value+"&APP_DOCID=";
  48. //ORGID=EBID&ORGKEY=SIGN_INTERFACE_ID&COMID=TEC&EMPNO=사번&FORMID=expensecall2&APP_DOCID=
  49. f.submit();
  50. }
  51. doSend();
  52. </SCRIPT>
  53. <% }
  54. else { %>
  55. <SCRIPT language="JavaScript">
  56. /* function dlgAlert( msg, varWidth, varHeight ){
  57. var dlgWidth = 350;
  58. var dlgHeight = 180;
  59. if( varWidth != null )
  60. dlgWidth = varWidth;
  61. if( varHeight != null )
  62. dlgHeight = varHeight;
  63. window.showModalDialog('/lib/dlgAlert.screen', msg,'dialogWidth:' + dlgWidth + 'px;dialogHeight:' + dlgHeight + 'px; center:yes; help:no; status:no; scroll:no; resizable:no');
  64. } */
  65. alert("<%= storage.getMessage() %>");
  66. self.close();
  67. </SCRIPT>
  68. <% } %>