SPMNE07600_응급환자메모등록.xrw 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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. <memo/>
  15. <pid/>
  16. <indd/>
  17. <cretno/>
  18. <visitno/>
  19. <instcd/>
  20. <status/>
  21. </memoinfo>
  22. </memo>
  23. </main>
  24. <send>
  25. </send>
  26. <init>
  27. </init>
  28. <hidden/>
  29. </root>
  30. </instance>
  31. <script type="javascript" ev:event="xforms-ready">
  32. <![CDATA[
  33. fInit();
  34. ]]>
  35. </script>
  36. <submission id="TRMNE07601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/memo"/>
  37. <submission id="TXMNE07601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  38. </model>
  39. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  40. <script type="javascript">
  41. <![CDATA[
  42. //화면 오픈시
  43. function fInit() {
  44. if (checkOpener()) {
  45. var pid = opener.javascript.getParameter("pid");
  46. var indd = opener.javascript.getParameter("indd");
  47. var cretno = opener.javascript.getParameter("cretno");
  48. var visitno = opener.javascript.getParameter("visitno");
  49. var status = opener.javascript.getParameter("status");
  50. }
  51. model.removenode("/root/send");
  52. model.makeValue("/root/send/pid", pid);
  53. model.makeValue("/root/send/indd", indd);
  54. model.makeValue("/root/send/cretno", cretno);
  55. model.makeValue("/root/send/visitno", visitno);
  56. model.makeValue("/root/send/status", status);
  57. submit("TRMNE07601", false);
  58. model.makeValue("/root/main/memo/memoinfo/status","U");
  59. if(model.getValue("/root/main/memo/memoinfo/recdd")==""){
  60. model.makeValue("/root/main/memo/memoinfo/pid",pid);
  61. model.makeValue("/root/main/memo/memoinfo/indd",indd);
  62. model.makeValue("/root/main/memo/memoinfo/cretno",cretno);
  63. model.makeValue("/root/main/memo/memoinfo/visitno",visitno);
  64. model.makeValue("/root/main/memo/memoinfo/memo","");
  65. }
  66. model.refresh();
  67. }
  68. //저장버튼 클릭시
  69. function fSaveMemo() {
  70. if(model.getValue("/root/main/memo/memoinfo/memo") == "" ){
  71. messageBox("저장할 Memo 내용을 입력하십시요","I");
  72. return;
  73. }
  74. model.removenode("/root/send");
  75. model.makeValue("/root/send/pid" , model.getValue("/root/main/memo/memoinfo/pid"));
  76. model.makeValue("/root/send/indd" , model.getValue("/root/main/memo/memoinfo/indd"));
  77. model.makeValue("/root/send/cretno" , model.getValue("/root/main/memo/memoinfo/cretno"));
  78. model.makeValue("/root/send/visitno" , model.getValue("/root/main/memo/memoinfo/visitno"));
  79. model.makeValue("/root/send/memo" , model.getValue("/root/main/memo/memoinfo/memo"));
  80. model.makeValue("/root/send/status" , model.getValue("/root/main/memo/memoinfo/status"));
  81. submit("TXMNE07601");
  82. opener.window.javascript.fSeletedSrcTool();
  83. model.close();
  84. }
  85. ]]>
  86. </script>
  87. </xhtml:head>
  88. <xhtml:body pagewidth="396" pageheight="221" guideline="1,891;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  89. <group id="group1" scroll="auto" style="left:0px; top:0px; width:380px; height:221px; ">
  90. <line id="line8" class="line_2" style="x1:0px; y1:50px; x2:380px; y2:50px; "/>
  91. <textarea id="textarea1" ref="/root/main/memo/memoinfo/memo" scroll="autovscroll" imemode="hangul" maxlength="666" style="left:82px; top:52px; width:298px; height:167px; "/>
  92. <caption id="caption5" class="cell_1" style="left:0px; top:27px; width:79px; height:23px; vertical-align:middle; ">작성일자</caption>
  93. <caption id="caption18" class="cell_1" style="left:0px; top:52px; width:79px; height:167px; vertical-align:middle; ">메모내용</caption>
  94. <line id="line7" class="line_3" style="x1:0px; y1:220px; x2:380px; y2:220px; "/>
  95. <caption id="caption11" class="cell_1" style="left:210px; top:27px; width:79px; height:23px; vertical-align:middle; ">작성시간</caption>
  96. <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; "/>
  97. <output id="output1" ref="/root/main/memo/memoinfo/rectm" class="output_fix" format="hh:nn" style="left:292px; top:28px; width:88px; height:19px; "/>
  98. <button id="btn_save" class="btn5_letter2" style="left:291px; top:2px; width:42px; height:19px; ">
  99. <caption>저장</caption>
  100. <script type="javascript" ev:event="DOMActivate">
  101. <![CDATA[
  102. fSaveMemo();
  103. ]]>
  104. </script>
  105. </button>
  106. <line id="line29" class="line_1" style="x1:0px; y1:22px; x2:380px; y2:22px; "/>
  107. <caption id="caption3" class="tit_2" style="left:5px; top:7px; width:212px; height:13px; ">메모등록</caption>
  108. <button id="button1" class="btn5_letter2" style="left:335px; top:2px; width:42px; height:19px; ">
  109. <caption>종료</caption>
  110. <script type="javascript" ev:event="DOMActivate">
  111. <![CDATA[
  112. model.close();
  113. ]]>
  114. </script>
  115. </button>
  116. </group>
  117. </xhtml:body>
  118. </xhtml:html>