PdfViewer.jsp 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <%@ page contentType="text/html; charset=utf-8" %>
  2. <%@ page import="kr.co.hsnc.common.sql.*" %>
  3. <%@ page import="kr.co.hsnc.common.util.*"%>
  4. <%@ page import="kr.co.hsnc.common.config.*"%>
  5. <%@ page import="com.udapsoft.waf.system.HandlerStorage" %>
  6. <%@ include file="/jsp/work/taglib.jsp" %>
  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 params = storage.getParams();
  12. String event = storage.getEvent();
  13. ValueObject pdf = storage.getValueObject("pdf");
  14. %>
  15. <style type="text/css">
  16. .view_title {
  17. BACKGROUND-COLOR : #5F86B6 ;
  18. FONT-FAMILY : "굴림", "Verdana" ;
  19. FONT-SIZE : 9pt ;
  20. COLOR : #ffffff ;
  21. TEXT-INDENT : 9px ;
  22. }
  23. </style>
  24. <SCRIPT language="JavaScript">
  25. function test(){
  26. document.location.href = '/common/file/PdfDownloadServlet?PROOF_DEPT='+$("#PROOF_DEPT").val()+'&PROOFDATE='+$("#PROOFDATE").val()+'&PROOF_NO='+$("#PROOF_NO").val()+'&PROOF_SEQ='+$("#PROOF_SEQ").val()+'&JOB_GU='+$("#JOB_GU").val()+'&PAGES_YN=N&zoom=100';
  27. }
  28. function create(){
  29. if (confirm("생성 하시겠습니까?")){
  30. var f = document.form1;
  31. $("#fevent").val("CREATE_PDF");
  32. submitXmlRequest("/common/file/PdfViewerBiz_form.screen", "CREATE_PDF", f);
  33. }
  34. }
  35. function doResult(resultObj) {
  36. document.form1.isSubmit = false;
  37. try {
  38. if( resultObj.getRequestEvent() == "CREATE_PDF") {
  39. if( resultObj.getSuccess() ) {
  40. alert("완료되었습니다.");
  41. } else {
  42. dlgErrorMsg(resultObj);
  43. }
  44. }
  45. } catch(errorObject) {
  46. showErrorDlg("doResult()", errorObject);
  47. }
  48. }
  49. </SCRIPT>
  50. <FORM id="form1" name="form1" method="post">
  51. <INPUT type="hidden" name="fevent" id="fevent" value="">
  52. <table class="form-table">
  53. <colgroup>
  54. <col width="20%" />
  55. <col width="20%" />
  56. </colgroup>
  57. <tr height="25">
  58. <td style="text-align: center;">ACMP_ID</td>
  59. <td style="text-align: center;"><INPUT type="text" name="ACMP_ID" id="ACMP_ID" value=""></td>
  60. </tr>
  61. <tr height="25">
  62. <td style="text-align: center;">JOB_GU(01 외주기성,선급/02 구매기성,선급)</td><!-- 20 외주선급/21 구매선급 -->
  63. <td style="text-align: center;"><INPUT type="text" name="JOB_GU" id="JOB_GU" value=""></td>
  64. </tr>
  65. <tr height="25">
  66. <td style="text-align: center;"><a href="javascript:create();">생성</a></td>
  67. <td style="text-align: center;"><a href="javascript:test();">Viewer</a></td>
  68. </tr>
  69. </table>
  70. </FORM>
  71. <script>
  72. </script>