SPMNF00400_기타사항입력및조회.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  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. <grd_etclist>
  11. <etclist>
  12. <visitdd/>
  13. <recnursid/>
  14. <reccontent/>
  15. <recdd/>
  16. <pid/>
  17. <inptdt/>
  18. <recnursnm/>
  19. <recseq/>
  20. <instcd/>
  21. <rectm/>
  22. </etclist>
  23. </grd_etclist>
  24. <cond>
  25. <pid/>
  26. <hngnm/>
  27. <sex/>
  28. <visitdd/>
  29. <recdd1/>
  30. <recinfo>01</recinfo>
  31. <recdd2/>
  32. <inptdt/>
  33. <instcd/>
  34. </cond>
  35. </main>
  36. <send>
  37. <reqdata/>
  38. <savedata/>
  39. </send>
  40. <init>
  41. <visitddlist>
  42. <visitddlist>
  43. <visitddid/>
  44. <visitddnm/>
  45. </visitddlist>
  46. </visitddlist>
  47. </init>
  48. <hidden>
  49. <recetcinfo>
  50. <patinfo/>
  51. </recetcinfo>
  52. </hidden>
  53. </root>
  54. </instance>
  55. <script type="javascript" ev:event="xforms-ready">
  56. <![CDATA[
  57. model.removeNodeset("/root/main/grd_etclist");
  58. model.setValue("/root/main/cond/pid", model.getValue("/root/hidden/recetcinfo/patinfo/pid"));
  59. model.setValue("/root/main/cond/hngnm", model.getValue("/root/hidden/recetcinfo/patinfo/hngnm"));
  60. model.setValue("/root/main/cond/sex", model.getValue("/root/hidden/recetcinfo/patinfo/sex"));
  61. model.setValue("/root/main/cond/visitdd", model.getValue("/root/hidden/recetcinfo/patinfo/visitdd"));
  62. model.setValue("/root/main/cond/inptdt", model.getValue("/root/hidden/recetcinfo/patinfo/inptdt"));
  63. model.setValue("/root/main/cond/instcd", model.getValue("/root/hidden/recetcinfo/patinfo/instcd"));
  64. //로컬
  65. // model.setValue("/root/main/cond/pid", "3661639");
  66. // model.setValue("/root/main/cond/hngnm", "");
  67. // model.setValue("/root/main/cond/sex", "");
  68. // model.setValue("/root/main/cond/visitdd", "20080117");
  69. // model.setValue("/root/main/cond/inptdt", "20040508000000");
  70. // model.setValue("/root/main/cond/instcd", "012");
  71. //방문일 조회
  72. submit("TRMNF03003");
  73. cmb_recdd2.visible = false;
  74. ipt_recdd1.visible = true;
  75. model.setValue("/root/main/cond/recdd1", getCurrentDate());
  76. //기록 기타사항 조회
  77. submit("TRMNF00405");
  78. model.refresh();
  79. ]]>
  80. </script>
  81. <submission id="TRMNF03003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond/pid" resultref="/root/init/visitddlist"/>
  82. <submission id="TRMNF00405" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/main/grd_etclist"/>
  83. <submission id="TXMNF00407" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/grd_etclist"/>
  84. </model>
  85. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  86. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  87. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  88. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  89. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  90. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  91. </xhtml:head>
  92. <xhtml:body pagewidth="700" pageheight="400" guideline="1,700;2,400" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  93. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:160px; height:13px; ">기타사항 입력 및 조회</caption>
  94. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:680px; y2:25px; "/>
  95. <button id="button11" class="btn2_letter3" style="left:514px; top:5px; width:53px; height:19px; ">
  96. <caption>행삭제</caption>
  97. <script type="javascript" ev:event="DOMActivate">
  98. <![CDATA[
  99. var rows = grd_etclist.selectedRows;
  100. if(rows < 1){
  101. return;
  102. }
  103. for (i= rows-1; i >= 0; i--){
  104. var status = grd_etclist.rowStatus(grd_etclist.selectedrow(i));
  105. if(status == 1 || status == 3){
  106. grd_etclist.deleteRow(grd_etclist.selectedrow(i));
  107. }else{
  108. grd_etclist.rowStatus(grd_etclist.selectedrow(i))= 4;
  109. }
  110. }
  111. ]]>
  112. </script>
  113. </button>
  114. <button id="btn_add" class="btn2_letter3" style="left:459px; top:5px; width:53px; height:19px; ">
  115. <caption>행추가</caption>
  116. <script type="javascript" ev:event="DOMActivate">
  117. <![CDATA[
  118. grd_etclist.additem();
  119. var row = grd_etclist.row;
  120. if(model.getValue("/root/main/cond/recinfo") == '01'){
  121. model.setValue("/root/main/grd_etclist/etclist[" + row + "]/recdd", model.getValue("/root/main/cond/recdd1"));
  122. }else{
  123. if(model.getValue("/root/init/visitddlist/visitddlist/visitddid") == ""){
  124. model.setValue("/root/main/grd_etclist/etclist[" + row + "]/recdd", model.getValue("/root/main/cond/recdd1"));
  125. }else{
  126. model.setValue("/root/main/grd_etclist/etclist[" + row + "]/recdd", model.getValue("/root/main/cond/recdd2"));
  127. }
  128. }
  129. model.setValue("/root/main/grd_etclist/etclist[" + row + "]/visitdd", model.getValue("/root/main/cond/visitdd"));
  130. model.setValue("/root/main/grd_etclist/etclist[" + row + "]/recnursid", getUserInfo("userid"));
  131. model.setValue("/root/main/grd_etclist/etclist[" + row + "]/recnursnm", getUserInfo("usernm"));
  132. model.setValue("/root/main/grd_etclist/etclist[" + row + "]/pid", model.getValue("/root/main/cond/pid"));
  133. model.setValue("/root/main/grd_etclist/etclist[" + row + "]/inptdt", model.getValue("/root/main/cond/inptdt"));
  134. model.refresh();
  135. ]]>
  136. </script>
  137. </button>
  138. <button id="btn_savenewpat" class="btn5_letter2" style="left:586px; top:5px; width:42px; height:19px; ">
  139. <caption>저장</caption>
  140. <script type="javascript" ev:event="DOMActivate">
  141. <![CDATA[
  142. model.makeNode("/root/send/savedata");
  143. model.setValue("/root/send/savedata", grd_etclist.getUpdateData());
  144. model.makeValue("/root/send/reqdata/pid", model.getValue("/root/main/cond/pid"));
  145. model.makeValue("/root/send/reqdata/visitdd", model.getValue("/root/main/cond/visitdd"));
  146. model.makeValue("/root/send/reqdata/inptdt", model.getValue("/root/main/cond/inptdt"));
  147. model.makeValue("/root/send/reqdata/instcd", model.getValue("/root/main/cond/instcd"));
  148. submit("TXMNF00407");
  149. ]]>
  150. </script>
  151. </button>
  152. <button id="btn_closenewpat" class="btn2_letter2" style="left:631px; top:5px; width:42px; height:19px; ">
  153. <caption>닫기</caption>
  154. <script type="javascript" ev:event="DOMActivate">
  155. <![CDATA[
  156. window.close();
  157. ]]>
  158. </script>
  159. </button>
  160. <caption id="caption31" class="cell_1" style="left:0px; top:30px; width:84px; height:19px; font-family:돋움; text-align:center; ">환자정보</caption>
  161. <input id="input1" ref="/root/main/cond/pid" disabled="true" style="left:85px; top:30px; width:100px; height:19px; "/>
  162. <input id="input2" ref="/root/main/cond/sex" disabled="true" style="left:289px; top:30px; width:76px; height:19px; "/>
  163. <input id="input3" ref="/root/main/cond/hngnm" disabled="true" style="left:187px; top:30px; width:100px; height:19px; "/>
  164. <caption id="caption1" class="cell_1" style="left:370px; top:30px; width:105px; height:19px; font-family:돋움; text-align:center; ">기록일자 정보</caption>
  165. <select1 id="rdo_patflag" ref="/root/main/cond/recinfo" class="radio_search" appearance="full" cols="3" rows="1" overflow="visible" style="left:480px; top:30px; width:95px; height:20px; border-style:none; ">
  166. <choices>
  167. <item>
  168. <label>자동</label>
  169. <value>01</value>
  170. </item>
  171. <item>
  172. <label>지정</label>
  173. <value>02</value>
  174. </item>
  175. </choices>
  176. <script type="javascript" ev:event="xforms-value-changed">
  177. <![CDATA[
  178. //alert(model.getValue("/root/main/cond/recinfo"));
  179. if(model.getValue("/root/main/cond/recinfo") == '01'){
  180. model.setValue("/root/main/cond/recdd1", getCurrentDate());
  181. cmb_recdd2.visible = false;
  182. ipt_recdd1.visible = true;
  183. }else{
  184. if(model.getValue("/root/init/visitddlist/visitddlist/visitddid") == ""){
  185. cmb_recdd2.visible = false;
  186. ipt_recdd1.visible = true;
  187. model.setValue("/root/main/cond/recdd1", getCurrentDate());
  188. }else{
  189. ipt_recdd1.visible = false;
  190. cmb_recdd2.visible = true;
  191. cmb_recdd2.select(0);
  192. // model.setValue("/root/main/cond/recdd2", model.getValue("/root/init/visitddlist/visitddlist/visitddid"));
  193. }
  194. }
  195. ]]>
  196. </script>
  197. </select1>
  198. <select1 id="cmb_recdd2" ref="/root/main/cond/recdd2" class="combo_search" appearance="minimal" format="YYYY-MM-DD" style="left:576px; top:29px; width:100px; height:19px; ">
  199. <choices>
  200. <itemset nodeset="/root/init/visitddlist/visitddlist">
  201. <label ref="visitddnm"/>
  202. <value ref="visitddid"/>
  203. </itemset>
  204. </choices>
  205. </select1>
  206. <input id="ipt_recdd1" ref="/root/main/cond/recdd1" class="input_default" inputtype="date" style="left:576px; top:30px; width:101px; height:19px; "/>
  207. <datagrid id="grd_etclist" nodeset="/root/main/grd_etclist/etclist" class="datagrid2" caption="기록일자^기록내용^기록자" colsep="^" colwidth="120, 400, 120" dataheight="25" explorerbar="sort" mergecellsfixedrows="bycolrec" multitotal="false" rowheader="update" rowheight="32" rowsep="|" style="left:0px; top:52px; width:675px; height:348px; text-align:center; vertical-align:middle; ">
  208. <col ref="recdd" format="yyyy-mm-dd" style="text-align:center; "/>
  209. <col ref="reccontent" type="input" style="text-align:center; "/>
  210. <col ref="recnursnm" style="left:680px; top:32px; width:100px; height:23px; text-align:center; "/>
  211. <col ref="recnursid" visibility="hidden" style="left:100px; top:32px; width:300px; height:23px; text-align:left; "/>
  212. <col ref="visitdd" visibility="hidden" style="text-align:center; "/>
  213. <col ref="pid" visibility="hidden" style="text-align:center; "/>
  214. <col ref="inptdt" visibility="hidden" style="text-align:left; "/>
  215. <col ref="recseq" visibility="hidden" style="text-align:left; "/>
  216. <col ref="instcd" visibility="hidden" style="text-align:left; "/>
  217. <col ref="rectm" visibility="hidden" style="text-align:left; "/>
  218. </datagrid>
  219. </xhtml:body>
  220. </xhtml:html>