SPMNW09400_메모등록.xrw 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>메모등록</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <memo>
  11. <memoinfo>
  12. <recdd/>
  13. <rectm/>
  14. <memocnts/>
  15. <seqno/>
  16. <pid/>
  17. <memoitemflag/>
  18. <seqno/>
  19. <recdd_b/>
  20. <rectm_b/>
  21. <indd/>
  22. <cretno/>
  23. <instcd/>
  24. <status/>
  25. </memoinfo>
  26. </memo>
  27. </main>
  28. <send>
  29. </send>
  30. <init>
  31. </init>
  32. <hidden/>
  33. </root>
  34. </instance>
  35. <script type="javascript" ev:event="xforms-ready">
  36. <![CDATA[
  37. fInit();
  38. ]]>
  39. </script>
  40. <submission id="TXMNW09401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  41. <submission id="TRMNW09401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/memo"/>
  42. </model>
  43. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  44. <script type="javascript">
  45. <![CDATA[
  46. //화면 오픈시
  47. function fInit() {
  48. if (checkOpener()) {
  49. var recdd = opener.javascript.getParameter("recdd");
  50. var wardcd = opener.javascript.getParameter("wardcd");
  51. var rectm = opener.javascript.getParameter("rectm");
  52. var pid = opener.javascript.getParameter("pid");
  53. var indd = opener.javascript.getParameter("indd");
  54. var cretno = opener.javascript.getParameter("cretno");
  55. var status = opener.javascript.getParameter("status");
  56. }
  57. model.removenode("/root/send");
  58. model.makeValue("/root/send/recdd", recdd);
  59. model.makeValue("/root/send/recdd_b", recdd);
  60. model.makeValue("/root/send/rectm", rectm);
  61. model.makeValue("/root/send/rectm_b", rectm);
  62. model.makeValue("/root/send/memoitemflag", "04");
  63. model.makeValue("/root/send/pid", pid);
  64. model.makeValue("/root/send/indd", indd);
  65. model.makeValue("/root/send/cretno", cretno);
  66. model.makeValue("/root/send/wardcd", wardcd);
  67. model.makeValue("/root/send/status", "02");
  68. if(submit("TRMNW09401")){
  69. if(model.getValue("/root/main/memo/memoinfo/recdd")==""){
  70. model.makeValue("/root/main/memo/memoinfo/recdd",recdd);
  71. model.makeValue("/root/main/memo/memoinfo/rectm",rectm);
  72. model.makeValue("/root/main/memo/memoinfo/recdd_b",recdd);
  73. model.makeValue("/root/main/memo/memoinfo/rrectm_b",rectm);
  74. model.makeValue("/root/main/memo/memoinfo/memoitemflag","04");
  75. model.makeValue("/root/main/memo/memoinfo/pid",pid);
  76. model.makeValue("/root/main/memo/memoinfo/indd",indd);
  77. model.makeValue("/root/main/memo/memoinfo/cretno",cretno);
  78. model.makeValue("/root/main/memo/memoinfo/wardcd",wardcd);
  79. model.makeValue("/root/main/memo/memoinfo/status","i");
  80. model.makeValue("/root/main/memo/memoinfo/memocnts","");
  81. }else{
  82. model.setValue("/root/main/memo/memoinfo/status","u");
  83. }
  84. }
  85. model.refresh();
  86. }
  87. //저장버튼 클릭시
  88. function fSaveMemo() {
  89. model.removenode("/root/send");
  90. model.makeValue("/root/send/recdd" , model.getValue("/root/main/memo/memoinfo/recdd"));
  91. model.makeValue("/root/send/recdd_b" , model.getValue("/root/main/memo/memoinfo/recdd_b"));
  92. model.makeValue("/root/send/rectm" , model.getValue("/root/main/memo/memoinfo/rectm"));
  93. model.makeValue("/root/send/rectm_b" , model.getValue("/root/main/memo/memoinfo/rectm_b"));
  94. model.makeValue("/root/send/memoitemflag", model.getValue("/root/main/memo/memoinfo/memoitemflag"));
  95. model.makeValue("/root/send/pid" , model.getValue("/root/main/memo/memoinfo/pid"));
  96. model.makeValue("/root/send/indd" , model.getValue("/root/main/memo/memoinfo/indd"));
  97. model.makeValue("/root/send/cretno" , model.getValue("/root/main/memo/memoinfo/cretno"));
  98. model.makeValue("/root/send/memocnts" , model.getValue("/root/main/memo/memoinfo/memocnts"));
  99. model.makeValue("/root/send/status" , model.getValue("/root/main/memo/memoinfo/status"));
  100. submit("TXMNW09401");
  101. model.close();
  102. }
  103. ]]>
  104. </script>
  105. </xhtml:head>
  106. <xhtml:body pagewidth="396" pageheight="221" guideline="1,891;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  107. <group id="group1" scroll="auto" style="left:0px; top:0px; width:380px; height:221px; ">
  108. <line id="line8" class="line_2" style="x1:0px; y1:50px; x2:380px; y2:50px; "/>
  109. <textarea id="textarea1" ref="/root/main/memo/memoinfo/memocnts" scroll="autovscroll" imemode="hangul" maxlength="666" style="left:82px; top:52px; width:298px; height:167px; "/>
  110. <caption id="caption5" class="cell_1" style="left:0px; top:27px; width:79px; height:23px; vertical-align:middle; ">작성일자</caption>
  111. <caption id="caption18" class="cell_1" style="left:0px; top:52px; width:79px; height:167px; vertical-align:middle; ">메모내용</caption>
  112. <line id="line7" class="line_3" style="x1:0px; y1:220px; x2:380px; y2:220px; "/>
  113. <caption id="caption11" class="cell_1" style="left:210px; top:27px; width:79px; height:23px; vertical-align:middle; ">작성시간</caption>
  114. <output id="output4" ref="/root/main/memo/memoinfo/recdd" class="output_fix" format="yyyy-mm-dd" style="left:82px; top:28px; width:125px; height:19px; "/>
  115. <output id="output1" ref="/root/main/memo/memoinfo/rectm" class="output_fix" format="hh:nn" style="left:292px; top:28px; width:88px; height:19px; "/>
  116. <button id="btn_save" class="btn5_letter2" style="left:291px; top:2px; width:42px; height:19px; ">
  117. <caption>저장</caption>
  118. <script type="javascript" ev:event="DOMActivate">
  119. <![CDATA[
  120. fSaveMemo();
  121. ]]>
  122. </script>
  123. </button>
  124. <line id="line29" class="line_1" style="x1:0px; y1:22px; x2:380px; y2:22px; "/>
  125. <caption id="caption3" class="tit_2" style="left:5px; top:7px; width:212px; height:13px; ">메모등록</caption>
  126. <button id="button1" class="btn5_letter2" style="left:335px; top:2px; width:42px; height:19px; ">
  127. <caption>종료</caption>
  128. <script type="javascript" ev:event="DOMActivate">
  129. <![CDATA[
  130. model.close();
  131. ]]>
  132. </script>
  133. </button>
  134. </group>
  135. </xhtml:body>
  136. </xhtml:html>