SPMMR06500_제증명메모.xrw 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <?xml version="1.0" encoding="UTF-8"?>
  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. <memo>
  12. <status/>
  13. <pid/>
  14. <memocnts/>
  15. <lastupdtrnm/>
  16. </memo>
  17. </memo>
  18. <cond>
  19. <status/>
  20. <pid/>
  21. <memocnts/>
  22. <lastupdtrnm/>
  23. </cond>
  24. </main>
  25. <send>
  26. <reqdata/>
  27. <savedata/>
  28. </send>
  29. <hidden/>
  30. <init/>
  31. </root>
  32. </instance>
  33. <submission id="TRMMR06501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/memo"/>
  34. <submission id="TXMMR06501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/memo"/>
  35. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  36. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  37. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  38. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  39. <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO04100.js"/>
  40. <script type="javascript">
  41. <![CDATA[
  42. /**
  43. * @desc 제증명 메모 조회
  44. */
  45. function fReqGetIssProfCertMemo(pid){
  46. model.removeNodeset("/root/send/reqdata");
  47. model.makeValue("/root/send/reqdata/pid", pid);
  48. if(submit("TRMMR06501")){
  49. }
  50. }
  51. /**
  52. * @desc 제증명 메모 저장
  53. */
  54. function fReqExeSaveIssProfCertMemo(status){
  55. model.removeNodeset("/root/send/savedata");
  56. model.makeNode("/root/send/savedata");
  57. model.copyNode("/root/send/savedata", "/root/main/cond");
  58. if(submit("TXMMR06501")){
  59. var memonode = model.instances(0).selectSingleNode("/root/main/memo/memo");
  60. if(memonode != null){
  61. model.copyNode("/root/main/cond", "/root/main/memo/memo");
  62. }
  63. }
  64. }
  65. ]]>
  66. </script>
  67. <script type="javascript" ev:event="xforms-ready">
  68. <![CDATA[
  69. //opener화면에서 등록번호를 조회
  70. if(checkOpener()){
  71. var pid = opener.javascript.getParameter("SPMMR06500_pid");
  72. if(pid != ""){ //opener로 부터 pid가 넘어온 경우
  73. model.setValue("/root/main/cond/pid", pid);
  74. fReqGetIssProfCertMemo(pid);
  75. clearParameter("SPMMR06500_pid"); //20100629-kys-요청번호 10534오류로인해 추가함.
  76. var memonode = model.instances(0).selectSingleNode("/root/main/memo/memo");
  77. if(memonode != null){
  78. //조회결과가 있는 경우, default 수정상태
  79. model.copyNode("/root/main/cond", "/root/main/memo/memo");
  80. model.setValue("/root/main/cond/status", "u");
  81. }else{
  82. //조회결과가 없는 경우, default 저장상태
  83. model.setValue("/root/main/cond/status", "i");
  84. }
  85. model.removeNodeset("/root/init/imemode");
  86. model.makeNode("/root/init/imemode");
  87. // 2013.11.26 제증명 메모작성시, 한/영 구분값 CYW---------------------------
  88. fGetUserEnvOcsOrdAnsw("/root/send/reqdata", "/root/init/imemode", "049");
  89. if( model.getValue("/root/init/imemode/answcnt") == "001" ){
  90. textarea1.attribute("imemode") = "alpha";
  91. }else if( model.getValue("/root/init/imemode/answcnt") == "002" ){
  92. textarea1.attribute("imemode") = "hangul";
  93. }else{
  94. textarea1.attribute("imemode") = "";
  95. }
  96. //---------------------------------------------------------------------------
  97. model.refresh();
  98. }
  99. }
  100. ]]>
  101. </script>
  102. </model>
  103. </xhtml:head>
  104. <xhtml:body pagewidth="401" pageheight="141" guideline="1,385;1,401;2,140;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  105. <datagrid id="datagrid1" caption="의사 메모" colsep="^" colwidth="382" extendlastcol="noscroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:385px; height:105px; ">
  106. <col/>
  107. </datagrid>
  108. <textarea id="textarea1" ref="/root/main/cond/memocnts" style="left:0px; top:24px; width:385px; height:81px; "/>
  109. <button id="button1" class="btn5_letter2" style="left:342px; top:108px; width:42px; height:19px; ">
  110. <caption>삭제</caption>
  111. <script type="javascript" ev:event="DOMActivate">
  112. <![CDATA[
  113. model.setValue("/root/main/cond/status", "d");
  114. fReqExeSaveIssProfCertMemo();
  115. ]]>
  116. </script>
  117. </button>
  118. <output id="output1" ref="/root/main/cond/lastupdtrnm" style="left:93px; top:107px; width:100px; height:19px; "/>
  119. <caption id="caption7" class="tit_2" style="left:0px; top:108px; width:92px; height:13px; ">최종작성자 :</caption>
  120. <button id="button3" class="btn5_letter2" style="left:298px; top:108px; width:42px; height:19px; ">
  121. <caption>저장</caption>
  122. <script type="javascript" ev:event="DOMActivate">
  123. <![CDATA[
  124. fReqExeSaveIssProfCertMemo();
  125. ]]>
  126. </script>
  127. </button>
  128. </xhtml:body>
  129. </xhtml:html>