SPMNR10300_FlowSheet기타기록등록.xrw 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <cond>
  10. <dayinfo/>
  11. <recflag/>
  12. <pid/>
  13. <indd/>
  14. <cretno/>
  15. <ioflag/>
  16. </cond>
  17. <main>
  18. <patdetlinfo>
  19. <patdetllist>
  20. <ammemo/>
  21. <pmmemo/>
  22. <brthdd/>
  23. </patdetllist>
  24. </patdetlinfo>
  25. </main>
  26. <send/>
  27. </root>
  28. </instance>
  29. <script type="javascript" ev:event="xforms-ready">
  30. <![CDATA[
  31. finit();
  32. ]]>
  33. </script>
  34. <submission id="TRMNR10102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/patdetlinfo"/>
  35. <submission id="TXMNR10301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp"/>
  36. </model>
  37. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  38. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  39. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  40. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  41. <script type="javascript">
  42. <![CDATA[
  43. function finit(){
  44. var sParamMsgInfo = "";
  45. sParamMsgInfo = opener.javascript.getParameter("SPMNR10300_Param");
  46. model.setValue("/root/cond/dayinfo", getArrayData(sParamMsgInfo, 0 ,0) );
  47. model.setValue("/root/cond/recflag", getArrayData(sParamMsgInfo, 0 ,1) );
  48. model.setValue("/root/cond/pid", getArrayData(sParamMsgInfo, 0 ,2) );
  49. model.setValue("/root/cond/indd", getArrayData(sParamMsgInfo, 0 ,3) );
  50. model.setValue("/root/cond/cretno", getArrayData(sParamMsgInfo, 0 ,4) );
  51. model.setValue("/root/cond/ioflag", getArrayData(sParamMsgInfo, 0 ,5) );
  52. if(getArrayData(sParamMsgInfo, 0 ,1) == "01"){
  53. group1.visible = false;
  54. group2.visible = true;
  55. document.title = "환자 면회 정보 등록";
  56. }else{
  57. group1.visible = true;
  58. group2.visible = false;
  59. document.title = "환자 출생일 정보 등록";
  60. }
  61. model.removenode("/root/send");
  62. model.makeNode("/root/send");
  63. model.copyNode("/root/send", "/root/cond");
  64. submit("TRMNR10102");
  65. }
  66. function fSave(){
  67. var sHeaderInfo = "stat▦pid▦applydd▦recflag▦apflag▦memocnts▩";
  68. var sSaveInfo = "";
  69. var sRecFlag = model.getValue("/root/cond/recflag") ;
  70. if(sRecFlag == "01"){
  71. if(model.getValue("/root/cond/dayinfo").length < 8 ){
  72. messageBox("면회일자를 정확하게 입력하시기 바랍니다.", "E");
  73. return;
  74. }
  75. if( model.getValue(ipt_ammemo.attribute("ref")) == ""){
  76. sSaveInfo += "D" + "▦"
  77. + model.getValue("/root/cond/pid") + "▦"
  78. + model.getValue("/root/cond/dayinfo") + "▦"
  79. + sRecFlag + "▦"
  80. + "A" + "▦"
  81. + model.getValue(ipt_ammemo.attribute("ref")) + "▩";
  82. }else{
  83. sSaveInfo += "U" + "▦"
  84. + model.getValue("/root/cond/pid") + "▦"
  85. + model.getValue("/root/cond/dayinfo") + "▦"
  86. + sRecFlag + "▦"
  87. + "A" + "▦"
  88. + model.getValue(ipt_ammemo.attribute("ref")) + "▩";
  89. }
  90. if(model.getValue(ipt_pmmemo.attribute("ref")) == ""){
  91. sSaveInfo += "D" + "▦"
  92. + model.getValue("/root/cond/pid") + "▦"
  93. + model.getValue("/root/cond/dayinfo") + "▦"
  94. + sRecFlag + "▦"
  95. + "P" + "▦"
  96. + model.getValue(ipt_pmmemo.attribute("ref")) + "▩";
  97. }else{
  98. sSaveInfo += "U" + "▦"
  99. + model.getValue("/root/cond/pid") + "▦"
  100. + model.getValue("/root/cond/dayinfo") + "▦"
  101. + sRecFlag + "▦"
  102. + "P" + "▦"
  103. + model.getValue(ipt_pmmemo.attribute("ref")) + "▩";
  104. }
  105. }else{
  106. if(model.getValue(ipt_brthdd.attribute("ref")) == ""){
  107. sSaveInfo += "D" + "▦"
  108. + model.getValue("/root/cond/pid") + "▦"
  109. + model.getValue("/root/cond/dayinfo") + "▦"
  110. + sRecFlag + "▦"
  111. + "-" + "▦"
  112. + model.getValue(ipt_brthdd.attribute("ref")) + "▩";
  113. }else{
  114. sSaveInfo += "U" + "▦"
  115. + model.getValue("/root/cond/pid") + "▦"
  116. + model.getValue("/root/cond/dayinfo") + "▦"
  117. + sRecFlag + "▦"
  118. + "-" + "▦"
  119. + model.getValue(ipt_brthdd.attribute("ref")) + "▩";
  120. }
  121. }
  122. model.removenode("/root/send");
  123. model.makeValue("/root/send/saveinfo", sHeaderInfo + sSaveInfo);
  124. submit("TXMNR10301", false);
  125. window.close();
  126. }
  127. ]]>
  128. </script>
  129. </xhtml:head>
  130. <xhtml:body pagewidth="230" pageheight="150" guideline="1,1190;1,240;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  131. <group id="group2" style="left:0px; top:0px; width:213px; height:108px; ">
  132. <caption id="caption4" class="tit_2" style="left:5px; top:9px; width:136px; height:14px; ">환자 면회 정보</caption>
  133. <input id="ipt_dayinfo" ref="/root/cond/dayinfo" inputtype="date" style="left:83px; top:35px; width:130px; height:19px; ">
  134. <script type="javascript" ev:event="xforms-value-changed">
  135. <![CDATA[
  136. if(model.getValue("/root/cond/dayinfo").length == 8){
  137. model.removenode("/root/send");
  138. model.makeNode("/root/send");
  139. model.copyNode("/root/send", "/root/cond");
  140. submit("TRMNR10102");
  141. }
  142. ]]>
  143. </script>
  144. </input>
  145. <caption id="caption5" class="cell_1" style="left:0px; top:34px; width:81px; height:21px; ">면회일자</caption>
  146. <line id="line1" class="line_1" style="x1:0px; y1:30px; x2:213px; y2:30px; "/>
  147. <caption id="caption6" class="cell_1" style="left:0px; top:58px; width:81px; height:21px; ">오전</caption>
  148. <line id="line4" class="line_3" style="x1:0px; y1:56px; x2:213px; y2:56px; "/>
  149. <line id="line2" class="line_3" style="x1:0px; y1:80px; x2:213px; y2:80px; "/>
  150. <caption id="caption1" class="cell_1" style="left:0px; top:82px; width:81px; height:21px; ">오후</caption>
  151. <input id="ipt_ammemo" ref="/root/main/patdetlinfo/patdetllist/ammemo" style="left:83px; top:59px; width:130px; height:41px; "/>
  152. <input id="ipt_pmmemo" ref="/root/main/patdetlinfo/patdetllist/pmmemo" style="left:83px; top:83px; width:130px; height:19px; "/>
  153. <line id="line3" class="line_3" style="x1:0px; y1:104px; x2:213px; y2:104px; "/>
  154. </group>
  155. <button id="btn_close" class="btn4_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:157px; top:110px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  156. <caption>닫기</caption>
  157. <script type="javascript" ev:event="DOMActivate">
  158. <![CDATA[
  159. window.close();
  160. ]]>
  161. </script>
  162. </button>
  163. <button id="btn_save" class="btn4_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:100px; top:110px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  164. <caption>확인</caption>
  165. <script type="javascript" ev:event="DOMActivate">
  166. <![CDATA[
  167. fSave();
  168. ]]>
  169. </script>
  170. </button>
  171. <group id="group1" style="left:0px; top:0px; width:213px; height:108px; ">
  172. <caption id="caption2" class="tit_2" style="left:5px; top:9px; width:136px; height:14px; ">출생일 정보</caption>
  173. <line id="line5" class="line_1" style="x1:0px; y1:30px; x2:213px; y2:30px; "/>
  174. <caption id="caption3" class="cell_1" style="left:0px; top:34px; width:81px; height:21px; ">출생일자</caption>
  175. <input id="ipt_brthdd" ref="/root/main/patdetlinfo/patdetllist/brthdd" inputtype="date" style="left:83px; top:35px; width:130px; height:19px; "/>
  176. </group>
  177. </xhtml:body>
  178. </xhtml:html>