slipSign_form.jsp 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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 = WAFConfig.get("gw.url.address");
  14. %>
  15. <% if( storage.getSuccess() ) {
  16. System.out.println("ORGID===="+signInfo.get("ORGID"));
  17. System.out.println("ORGKEY===="+signInfo.get("ORGKEY"));
  18. System.out.println("COMID===="+signInfo.get("COMID"));
  19. System.out.println("EMPNO===="+signInfo.get("EMPNO"));
  20. System.out.println("FORMID===="+signInfo.get("FORMID"));
  21. System.out.println("BODY===="+signInfo.get("BODY"));
  22. %>
  23. <FORM name="form1" method="post">
  24. <INPUT type="hidden" name="ORGID" value="<%= signInfo.get("ORGID") %>"><br>
  25. <INPUT type="hidden" name="ORGKEY" value="<%= signInfo.get("ORGKEY") %>"><br>
  26. <INPUT type="hidden" name="COMID" value="<%= signInfo.get("COMID") %>"><br>
  27. <INPUT type="hidden" name="EMPNO" value="<%= signInfo.get("EMPNO")%>"><br>
  28. <INPUT type="hidden" name="FORMID" value="<%= signInfo.get("FORMID") %>"><br>
  29. <TEXTAREA name="BODY" cols="100" rows="10" style="display:none"></TEXTAREA>
  30. <DIV id="body_div" style="display:none">
  31. <%= signInfo.get("BODY") %>
  32. </DIV>
  33. </FORM>
  34. <SCRIPT language="JavaScript">
  35. function doSend() {
  36. var f = document.form1;
  37. /*
  38. try {
  39. opener.doSearch();
  40. }
  41. catch(errorObject) {
  42. alert("결재상신 페이지를 Reload 할 수 없습니다.");
  43. }
  44. */
  45. f.BODY.value = document.all.body_div.innerHTML;
  46. f.action = "<%=gwURL%>?ORGID=ERP&ORGKEY="+f.ORGKEY.value+"&COMID=TEC&EMPNO="+f.EMPNO.value+"&FORMID="+f.FORMID.value+"&APP_DOCID=";
  47. //ORGID=ERP&ORGKEY=SIGN_INTERFACE_ID&COMID=TEC&EMPNO=사번&FORMID=expensecall2&APP_DOCID=
  48. f.submit();
  49. }
  50. doSend();
  51. </SCRIPT>
  52. <% }
  53. else { %>
  54. <SCRIPT language="JavaScript">
  55. /* function dlgAlert( msg, varWidth, varHeight ){
  56. var dlgWidth = 350;
  57. var dlgHeight = 180;
  58. if( varWidth != null )
  59. dlgWidth = varWidth;
  60. if( varHeight != null )
  61. dlgHeight = varHeight;
  62. window.showModalDialog('/lib/dlgAlert.screen', msg,'dialogWidth:' + dlgWidth + 'px;dialogHeight:' + dlgHeight + 'px; center:yes; help:no; status:no; scroll:no; resizable:no');
  63. } */
  64. alert("<%= storage.getMessage() %>");
  65. self.close();
  66. </SCRIPT>
  67. <% } %>