SMMMO06001_응급실접수취소환자리스트.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  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. <main>
  10. <acptcncllist>
  11. <acptcncllist>
  12. <chk/>
  13. <pid/>
  14. <hngnm/>
  15. <cretno/>
  16. <age/>
  17. <sex>M</sex>
  18. <indd/>
  19. <mainsymp/>
  20. <cancelrsn/>
  21. <highbp/>
  22. <lowbp/>
  23. <mntpulsecnt/>
  24. <mntbrethcnt/>
  25. <chosbdtp/>
  26. <oxyconcen/>
  27. <medispcl/>
  28. <intern/>
  29. <codi/>
  30. <status/>
  31. </acptcncllist>
  32. </acptcncllist>
  33. <patinfo>
  34. <patinfolist/>
  35. </patinfo>
  36. </main>
  37. <send>
  38. <fromdd/>
  39. <todd/>
  40. <pid/>
  41. <hngnm/>
  42. <acptcncllist/>
  43. </send>
  44. <source>
  45. <srchcond/>
  46. <pid/>
  47. </source>
  48. <temp/>
  49. <codeinfo>
  50. <codeinfo>
  51. <codelist/>
  52. </codeinfo>
  53. </codeinfo>
  54. </root>
  55. </instance>
  56. <script type="javascript" ev:event="xforms-ready">
  57. <![CDATA[
  58. grd_patlist.fixedcellcheckbox(0, grd_patlist.colRef("chk")) = true;
  59. model.copyNode("/root/temp","/root/send");
  60. fGetNursHardCdInfo("'227'", getCurrentDate());
  61. model.copyNode("/root/send","/root/temp");
  62. model.refresh();
  63. model.setValue("/root/send/fromdd", getCurrentDate());
  64. model.setValue("/root/send/todd", getCurrentDate());
  65. model.removeNodeset("/root/main/acptcncllist/acptcncllist");
  66. model.refresh();
  67. ]]>
  68. </script>
  69. <script type="javascript">
  70. <![CDATA[
  71. function ChkDate(){
  72. var fromdd = model.getValue("/root/send/fromdd");
  73. var todd = model.getValue("/root/send/todd");
  74. if( fromdd > todd ){
  75. messageBox("시작일자가 종료일자보다 클 수","I004"); //없습니다.
  76. model.setValue("/root/send/fromdd", getCurrentDate());
  77. model.setValue("/root/send/todd", getCurrentDate());
  78. return false;
  79. }else if( todd > getCurrentDate() ){
  80. messageBox("종료일자가 현재일자("+getCurrentDate()+")보다 클 수","I004");//없습니다.
  81. model.setValue("/root/send/fromdd", getCurrentDate());
  82. model.setValue("/root/send/todd", getCurrentDate());
  83. return false;
  84. }
  85. return true;
  86. }
  87. ]]>
  88. </script>
  89. <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/codeinfo/codelist"/>
  90. <submission id="TRMMO06000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/acptcncllist"/>
  91. <submission id="TXMMO06001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/acptcncllist" resultref="/root/main/acptcncllist"/>
  92. </model>
  93. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  94. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  95. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  96. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  97. </xhtml:head>
  98. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  99. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:399px; height:15px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">응급실 접수취소 환자리스트</caption>
  100. <group id="group2" style="left:0px; top:21px; width:1194px; height:35px; vertical-align:top; ">
  101. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  102. <button id="btn_search" class="btn1_letter2" style="left:1002px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  103. <caption>조회</caption>
  104. <script type="javascript" ev:event="onclick">
  105. <![CDATA[
  106. var rtn = ChkDate();
  107. if( rtn == true ){
  108. model.setValue("/root/send/fromdd", model.getValue("/root/send/fromdd"));
  109. model.setValue("/root/send/todd", model.getValue("/root/send/todd"));
  110. model.setValue("/root/send/pid", model.getValue("/root/send/pid"));
  111. model.setValue("/root/send/hngnm", model.getValue("/root/send/hngnm"));
  112. if (!submit("TRMMO06000")){
  113. messageBox("조회를","E009");
  114. }else{
  115. grd_patlist.colDisabled(grd_patlist.colRef("cancelrsn")) = true;
  116. }
  117. model.refresh();
  118. }else{
  119. return;
  120. }
  121. ]]>
  122. </script>
  123. </button>
  124. <line id="line13" style="x1:992px; y1:7px; x2:992px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  125. <caption id="caption2" class="search_name" style="left:18px; top:9px; width:91px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">조회일자 :</caption>
  126. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_s_essential" inputtype="date" style="left:107px; top:9px; width:100px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; ">
  127. <script type="javascript" ev:event="xforms-value-changed">
  128. <![CDATA[
  129. ChkDate();
  130. ]]>
  131. </script>
  132. </input>
  133. <caption id="caption5" style="left:209px; top:13px; width:15px; height:13px; ">~</caption>
  134. <input id="ipt_todd" ref="/root/send/todd" class="input_s_essential" inputtype="date" style="left:223px; top:9px; width:100px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; ">
  135. <script type="javascript" ev:event="xforms-value-changed">
  136. <![CDATA[
  137. ChkDate();
  138. ]]>
  139. </script>
  140. </input>
  141. <button id="btn_excel" class="btn6_letter2" style="left:1124px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn2_letter2.gif; ">
  142. <caption>엑셀</caption>
  143. <script type="javascript" ev:event="onclick">
  144. <![CDATA[
  145. var fromdd = model.getValue("/root/send/fromdd");
  146. var todd = model.getValue("/root/send/todd");
  147. var dt = "";
  148. if(fromdd == todd) {
  149. dt = fromdd;
  150. } else {
  151. dt = fromdd + "~" + todd;
  152. }
  153. var fileName = window.fileDialog("save", ",", false, "응급실접수취소", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  154. grd_patlist.saveExcel(fileName, "SheetName", true, true, "", "", false);
  155. ]]>
  156. </script>
  157. </button>
  158. <caption id="caption1" class="search_name" style="left:340px; top:8px; width:91px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">등록번호 :</caption>
  159. <caption id="caption3" class="search_name" style="left:520px; top:8px; width:66px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">성명 :</caption>
  160. <input id="ipt_pid" ref="/root/send/pid" style="left:430px; top:9px; width:76px; height:19px; ">
  161. <script type="javascript" ev:event="onkeydown">
  162. <![CDATA[
  163. if(event.keyCode == "13") {
  164. model.setValue("/root/source/srchcond", "1");
  165. model.setValue("/root/source/pid", ipt_pid.currentText);
  166. modal("../../../pam/commonweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
  167. var popupendflag = model.getValue("/root/main/popupendflag");
  168. if (popupendflag == "ok"){
  169. model.makeValue("/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  170. model.makeValue("/root/send/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  171. }
  172. ipt_hngnm.refresh();
  173. ipt_pid.refresh();
  174. }
  175. ]]>
  176. </script>
  177. </input>
  178. <input id="ipt_hngnm" ref="/root/send/hngnm" style="left:585px; top:9px; width:76px; height:19px; ">
  179. <script type="javascript" ev:event="onkeydown">
  180. <![CDATA[
  181. if(event.keyCode == "13") {
  182. model.setValue("/root/source/srchcond", "2");
  183. model.setValue("/root/source/hngnm", ipt_hngnm.currentText);
  184. modal("../../../pam/commonweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
  185. var popupendflag = model.getValue("/root/main/popupendflag");
  186. if (popupendflag == "ok"){
  187. model.makeValue("/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  188. model.makeValue("/root/send/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  189. }
  190. ipt_hngnm.refresh();
  191. ipt_pid.refresh();
  192. }
  193. ]]>
  194. </script>
  195. </input>
  196. <button id="button61" class="icon_search" style="left:667px; top:11px; width:16px; height:16px; ">
  197. <caption/>
  198. <script type="javascript" ev:event="DOMActivate">
  199. <![CDATA[
  200. if( model.getValue("/root/send/pid") != "" ){
  201. model.setValue("/root/source/srchcond", "1");
  202. model.setValue("/root/source/pid", ipt_pid.currentText);
  203. }else if( model.getValue("/root/send/hngnm") != "" ){
  204. model.setValue("/root/source/srchcond", "2");
  205. model.setValue("/root/source/hngnm", ipt_hngnm.currentText);
  206. }else{
  207. model.setValue("/root/source/srchcond", "2");
  208. }
  209. modal("../../../pam/commonweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
  210. var popupendflag = model.getValue("/root/main/popupendflag");
  211. if (popupendflag == "ok"){
  212. model.makeValue("/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  213. model.makeValue("/root/send/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  214. ipt_hngnm.refresh();
  215. ipt_pid.refresh();
  216. }
  217. ]]>
  218. </script>
  219. </button>
  220. <button id="button1" class="btn6_letter2" style="left:1064px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  221. <caption>삭제</caption>
  222. <script type="javascript" ev:event="onclick">
  223. <![CDATA[
  224. if(grd_patlist.findRow("Y",1, grd_patlist.colRef("chk")) != -1){
  225. model.setValue("/root/send/acptcncllist", grd_patlist.getUpdateData("update", "status"));
  226. if (!submit("TXMMO06001")){
  227. messageBox("삭제를","E009");//실패하였습니다.
  228. }
  229. }else{
  230. messageBox("삭제 할 데이터가", "I004");//없습니다.
  231. return;
  232. }
  233. ]]>
  234. </script>
  235. </button>
  236. </group>
  237. <datagrid id="grd_patlist" nodeset="/root/main/acptcncllist/acptcncllist" class="datagrid4" caption="^등록번호^환자명^cretno^나이^성별^내원일시^주증상^접수취소사유^기타사유^수축기혈압^이완기혈압^맥박수^호흡수^체온^산소포화도(%)^전문의^인턴^코디네이터" colsep="^" colwidth="23, 70, 75, 45, 36, 36, 101, 100, 154, 100, 68, 68, 44, 44, 44, 87, 57, 57, 80" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="label" style="left:0px; top:76px; width:1195px; height:670px; ">
  238. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  239. <col ref="pid"/>
  240. <col ref="hngnm" style="text-align:center; "/>
  241. <col ref="cretno" visibility="hidden"/>
  242. <col ref="age" style="text-align:center; "/>
  243. <col ref="sex" style="text-align:center; "/>
  244. <col ref="indd" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  245. <col ref="mainsymp"/>
  246. <col ref="cancelrsn" type="combo" style="left:485px; top:23px; width:100px; height:23px; ">
  247. <choices>
  248. <itemset nodeset="/root/codeinfo/codeinfo/codelist[cdgrupid='227']">
  249. <label ref="cdnm"/>
  250. <value ref="cdid"/>
  251. </itemset>
  252. </choices>
  253. </col>
  254. <col ref="etc"/>
  255. <col ref="highbp" style="text-align:center; "/>
  256. <col ref="lowbp" style="text-align:center; "/>
  257. <col ref="mntpulsecnt" style="text-align:center; "/>
  258. <col ref="mntbrethcnt" style="text-align:center; "/>
  259. <col ref="chosbdtp" style="text-align:center; "/>
  260. <col ref="oxyconcen" style="text-align:center; "/>
  261. <col ref="medispcl" style="text-align:center; "/>
  262. <col ref="intern"/>
  263. <col ref="codi" style="text-align:center; "/>
  264. <script type="javascript" ev:event="ondblclick">
  265. <![CDATA[
  266. if(grd_patlist.isCell(event.target) && grd_patlist.mouseRow > 0){
  267. var Param = model.getValue("/root/main/acptcncllist/acptcncllist[" + grd_patlist.row + "]/pid")+"▦"
  268. + model.getValue("/root/main/acptcncllist/acptcncllist[" + grd_patlist.row + "]/hngnm")+"▦"
  269. + model.getValue("/root/main/acptcncllist/acptcncllist[" + grd_patlist.row + "]/indd")+"▦"
  270. + model.getValue("/root/main/acptcncllist/acptcncllist[" + grd_patlist.row + "]/cretno")+"▦"
  271. + model.getValue("/root/main/acptcncllist/acptcncllist[" + grd_patlist.row + "]/sex")+"▦"
  272. + model.getValue("/root/main/acptcncllist/acptcncllist[" + grd_patlist.row + "]/age")+"▩";
  273. setParameter("SMMMO06000_Param", Param);
  274. modal("SMMMO06000");
  275. }
  276. ]]>
  277. </script>
  278. <script type="javascript" ev:event="onaftersort">
  279. <![CDATA[
  280. grd_patlist.gridToInstance();
  281. ]]>
  282. </script>
  283. </datagrid>
  284. <line id="line8" class="line_1" style="x1:0px; y1:71px; x2:1194px; y2:71px; "/>
  285. <shape id="roundrect2" class="roundrect_example" appearance="roundrect" style="left:0px; top:750px; width:1195px; height:30px; "/>
  286. <caption id="caption26" class="hand" style="left:10px; top:753px; width:1180px; height:22px; vertical-align:middle; ">등록번호 미발생환자의 경우 이름, 등록번호 검색이 되지 않습니다.</caption>
  287. <button id="button2" class="btn3_letter12" style="left:1010px; top:754px; width:176px; height:22px; ">
  288. <caption>응급실접수취소 신규입력</caption>
  289. <script type="javascript" ev:event="DOMActivate">
  290. <![CDATA[
  291. setParameter("SMMMO06000_Param", "");
  292. modal("SMMMO06000");//응급실접수취소
  293. ]]>
  294. </script>
  295. </button>
  296. </xhtml:body>
  297. </xhtml:html>