SPLLC90200_환자특이사항등록.xrw 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPLLC90200_환자특이사항등록.xrw
  4. * 설 명 : 환자특이사항 관리
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 조철형
  7. * 작 성 일 : 2007.05.01
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>환자특이사항등록</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root>
  18. <main>
  19. <getpatspcflist>
  20. <chk/>
  21. <spcfcntsregdt/>
  22. <spcfcnts/>
  23. <diagtestuseyn/>
  24. <pid/>
  25. </getpatspcflist>
  26. </main>
  27. <send>
  28. <getpatspcflist/>
  29. </send>
  30. <init>
  31. </init>
  32. <hidden>
  33. <choi/>
  34. <RsltRegDT/>
  35. <spcfcnts/>
  36. <diagtestuseyn>1</diagtestuseyn>
  37. <pid/>
  38. <default/>
  39. <use/>
  40. </hidden>
  41. </root>
  42. </instance>
  43. <script type="javascript" ev:event="xforms-model-construct-done">
  44. <![CDATA[
  45. grd_patspcflist.removeItem();
  46. model.makeValue("/root/send/pid" , model.getvalue("/root/hidden/pid"));
  47. submit("TRLLC90201");
  48. model.removeNodeset("/root/send/pid");
  49. ]]>
  50. </script>
  51. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  52. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  53. <submission id="TXLLC90201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  54. <submission id="TXLLC90202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  55. <submission id="TRLLC90201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main"/>
  56. </model>
  57. <script type="javascript">
  58. <![CDATA[
  59. // 추가 버튼 클릭시 그리드에 추가
  60. function fSetpatspcfflist(){
  61. if(model.getvalue("/root/hidden/spcfcnts") == ""){
  62. messageBox("환자특이사항을","C001","") ;
  63. model.setFocus("ipt_patspcfcnts");
  64. return;
  65. }
  66. grd_patspcflist.addRow();
  67. model.setValue("/root/main/getpatspcflist[" + grd_patspcflist.row + " ]/spcfcntsregdt", getCurrentDate()+getCurrentTime());
  68. model.setValue("/root/main/getpatspcflist[" + grd_patspcflist.row + " ]/spcfcnts", model.getvalue("/root/hidden/spcfcnts"));
  69. model.setValue("/root/main/getpatspcflist[" + grd_patspcflist.row + " ]/diagtestuseyn", model.getvalue("/root/hidden/diagtestuseyn"));
  70. model.setValue("/root/main/getpatspcflist[" + grd_patspcflist.row + " ]/pid", model.getvalue("/root/hidden/pid"));
  71. model.copyNode("/root/send/getpatspcflist" , "/root/main/getpatspcflist[" + grd_patspcflist.row + " ]");
  72. submit("TXLLC90201");
  73. model.copyNode("/root/send/getpatspcflist","/root/hidden/default");
  74. model.setvalue("/root/hidden/spcfcnts","");
  75. model.refresh();
  76. grd_patspcflist.topRow = grd_patspcflist.row;
  77. }
  78. //삭제버튼 리스트에서 삭제 DB단까지
  79. function fDelpatspcflist(){
  80. grd_patspcflist.clearStatus();
  81. for(i=1; i< grd_patspcflist.rows; i++){
  82. if(model.getValue("/root/main/getpatspcflist["+i+"]/chk")=="true"){
  83. grd_patspcflist.addStatus( i, "update");
  84. }
  85. }
  86. model.setvalue("/root/send/getpatspcflist" , grd_patspcflist.getUpdateData());
  87. submit("TXLLC90202");
  88. model.copyNode("/root/send/getpatspcflist","/root/hidden/default");
  89. for(i=1; i<=grd_patspcflist.rows; i++){
  90. if(model.getValue("/root/main/getpatspcflist["+i+"]/chk")=="true"){
  91. grd_patspcflist.deleteItem(i);
  92. }
  93. }
  94. }
  95. // 확인버튼 클릭시
  96. function fSetpatspcflist(){
  97. var spcfcnts = "";
  98. for(i=1; i<=grd_patspcflist.rows; i++){
  99. spcfcnts = spcfcnts + model.getvalue("/root/main/getpatspcflist["+i+"]/spcfcnts") + "\n";
  100. }
  101. opener.model.setvalue("root/main/TestInfo/TestspcfInfo/spcfcnts",spcfcnts);
  102. window.close();
  103. }
  104. ]]>
  105. </script>
  106. </xhtml:head>
  107. <xhtml:body pagewidth="440" pageheight="390" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  108. <group id="group1" style="left:0px; top:0px; width:415px; height:360px; ">
  109. <caption id="caption1" class="tit_2" style="left:5px; top:107px; width:121px; height:13px; ">환자특이사항내역</caption>
  110. <caption id="caption2" class="tit_2" style="left:5px; top:11px; width:100px; height:13px; ">환자특이사항</caption>
  111. <caption id="caption3" class="cell_1" style="left:0px; top:26px; width:72px; height:23px; vertical-align:middle; ">상용구</caption>
  112. <line id="line1" class="line_1" style="x1:0px; y1:122px; x2:414px; y2:122px; "/>
  113. <line id="line2" class="line_1" style="x1:0px; y1:26px; x2:414px; y2:26px; "/>
  114. <line id="line3" class="line_2" style="x1:0px; y1:53px; x2:415px; y2:53px; "/>
  115. <line id="line5" class="line_2" style="x1:0px; y1:53px; x2:414px; y2:53px; "/>
  116. <caption id="caption5" class="cell_1" style="left:0px; top:75px; width:72px; height:23px; ">공유구분</caption>
  117. <line id="line4" class="line_3" style="x1:0px; y1:97px; x2:414px; y2:97px; "/>
  118. <select1 id="combo1" ref="/root/hidden/diagtestuseyn" class="combo_default" appearance="minimal" style="left:75px; top:76px; width:180px; height:19px; ">
  119. <choices>
  120. <item>
  121. <label>- 전 체 -</label>
  122. <value>1</value>
  123. </item>
  124. <item>
  125. <label>진단검사</label>
  126. <value>2</value>
  127. </item>
  128. </choices>
  129. </select1>
  130. <datagrid id="grd_patspcflist" nodeset="/root/main/getpatspcflist" caption="^등록일시^특이사항^공유구분^등록번호" colsep="^" colwidth="30, 118, 270, 100, 100" dataheight="23" defaultrows="1" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:127px; width:414px; height:213px; ">
  131. <col checkvalue="true,false" ref="chk" type="checkbox"/>
  132. <col ref="spcfcntsregdt" format="9999-99-99 99:99:99"/>
  133. <col ref="spcfcnts"/>
  134. <col ref="diagtestuseyn"/>
  135. <col ref="pid"/>
  136. </datagrid>
  137. <button id="btn_add" class="btn2_letter2" style="left:372px; top:5px; width:42px; height:19px; ">
  138. <caption>추가</caption>
  139. <script type="javascript" ev:event="onclick">
  140. <![CDATA[
  141. fSetpatspcfflist();
  142. ]]>
  143. </script>
  144. </button>
  145. <caption id="caption4" class="cell_1" style="left:0px; top:51px; width:72px; height:23px; ">특이사항</caption>
  146. <input id="ipt_patspcfcnts" ref="/root/hidden/spcfcnts" class="input_default" navindex="1" style="left:75px; top:52px; width:339px; height:19px; "/>
  147. <caption id="caption6" class="cell_1" style="left:259px; top:74px; width:72px; height:23px; ">등록번호</caption>
  148. <output id="output1" ref="/root/hidden/pid" class="output_fix" style="left:335px; top:76px; width:79px; height:19px; "/>
  149. <select1 id="combo2" ref="/root/hidden/use" class="combo_default" appearance="minimal" style="left:75px; top:30px; width:180px; height:19px; ">
  150. <choices>
  151. <item>
  152. <label>CBC 타과 중복 처방</label>
  153. <value>CBC 타과 중복 처방</value>
  154. </item>
  155. <item>
  156. <label>PT 타과 중복 처방</label>
  157. <value>PT 타과 중복 처방</value>
  158. </item>
  159. <item>
  160. <label>URINE 타과 중복 처방</label>
  161. <value>URINE 타과 중복 처방</value>
  162. </item>
  163. <item>
  164. <label>검체부족</label>
  165. <value>검체부족</value>
  166. </item>
  167. <item>
  168. <label>기타()</label>
  169. <value>기타()</value>
  170. </item>
  171. </choices>
  172. <script type="javascript" ev:event="xforms-select">
  173. <![CDATA[
  174. // var cntCR = instance1.selectNodes("/root/hidden/use").length;
  175. // if(cmb_resn.value == model.getValue("/root/init/cancelresn["+i+"]/resncd")){
  176. model.setValue("/root/hidden/spcfcnts", combo2.value);
  177. model.refresh();
  178. // }
  179. ]]>
  180. </script>
  181. </select1>
  182. </group>
  183. <group id="group2" style="left:0px; top:345px; width:415px; height:27px; ">
  184. <button id="button4" class="btn4_letter2" style="left:300px; top:5px; width:56px; height:22px; ">
  185. <caption>삭제</caption>
  186. <script type="javascript" ev:event="onclick">
  187. <![CDATA[
  188. fDelpatspcflist();
  189. ]]>
  190. </script>
  191. </button>
  192. <button id="btn_cfm" class="btn4_letter2" style="left:241px; top:5px; width:54px; height:22px; ">
  193. <caption>확인</caption>
  194. <script type="javascript" ev:event="onclick">
  195. <![CDATA[
  196. fSetpatspcflist();
  197. ]]>
  198. </script>
  199. </button>
  200. <button id="button9" class="btn4_letter2" style="left:359px; top:5px; width:56px; height:22px; ">
  201. <caption>취소</caption>
  202. <script type="javascript" ev:event="onclick">
  203. <![CDATA[
  204. window.close();
  205. ]]>
  206. </script>
  207. </button>
  208. <line id="line6" class="line_6" style="x1:0px; y1:0px; x2:414px; y2:0px; "/>
  209. </group>
  210. </xhtml:body>
  211. </xhtml:html>