SMMNE02301_파랑새발령심폐소생술보고조회.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>심폐소생술 및 파랑새발령 보고조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <resusrec>
  11. <resusreclist/>
  12. </resusrec>
  13. </main>
  14. <send>
  15. <reqdata>
  16. <instcd/>
  17. <wardcd/>
  18. <orddeptcd/>
  19. <patinfoflag/>
  20. <cardarryn/>
  21. <bluebirdalarmyn/>
  22. <cardarrgenrfromdd/>
  23. <pid/>
  24. <patnm/>
  25. <cardarrgenrtodd/>
  26. </reqdata>
  27. <srch>
  28. <wardcd/>
  29. </srch>
  30. </send>
  31. <hidden>
  32. </hidden>
  33. <init>
  34. <baseinfo>
  35. <instinfo>
  36. <instcd/>
  37. <hospnm/>
  38. </instinfo>
  39. </baseinfo>
  40. <status/>
  41. <kind/>
  42. <projlist/>
  43. <gridstatus/>
  44. </init>
  45. <temp/>
  46. <result>
  47. <studyprojlist>
  48. </studyprojlist>
  49. </result>
  50. </root>
  51. </instance>
  52. <script type="javascript" ev:event="xforms-ready">
  53. <![CDATA[
  54. fIni();
  55. ]]>
  56. </script>
  57. <submission id="TRMNE02309" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" replace="instance" resultref="/root/main/resusrec"/>
  58. <submission id="TXRIS00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" replace="instance" resultref="/root/temp"/>
  59. <submission id="TRMNW00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init"/>
  60. </model>
  61. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  64. <script type="javascript" src="../../../com/authinfoweb/js/ZSA001.js"/>
  65. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  67. <script type="javascript">
  68. <![CDATA[
  69. function fIni(){
  70. model.setValue("/root/send/srch/wardcd", getUserInfo("dutplcecd"));
  71. model.setValue("/root/send/reqdata/cardarrgenrfromdd" , getCurrentDate());
  72. model.setValue("/root/send/reqdata/cardarrgenrtodd" , getCurrentDate());
  73. submit("TRMNW00101");
  74. // fSearch();
  75. model.refresh();
  76. }
  77. function fSearch(){
  78. //fSrchCondition();
  79. if(submit("TRMNE02309")){
  80. var cnt = getNodesetCount("/root/main/resusrec/resusreclist");
  81. if( cnt > 0 ){
  82. cpt_text.value = "( " + cnt + " 건 )";
  83. }else{
  84. cpt_text.value = "";
  85. }
  86. }
  87. model.refresh();
  88. }
  89. function fSrchCondition(){
  90. // 조회 조건이 하나도 없을 경우 ( 전체이거나 ) Check
  91. if( model.getValue("/root/send/reqdata/cardarrgenrdd") == "" &&
  92. model.getValue("/root/send/reqdata/orddeptcd") == "" &&
  93. model.getValue("/root/send/reqdata/wardcd") == "" &&
  94. model.getValue("/root/send/reqdata/patinfoflag") == "" &&
  95. model.getValue("/root/send/reqdata/cardarryn") == "" &&
  96. model.getValue("/root/send/reqdata/pid") == "" &&
  97. model.getValue("/root/send/reqdata/patnm") == "" &&
  98. model.getValue("/root/send/reqdata/bluebirdalarmyn") == "" ) {
  99. messageBox("조회조건을 하나이상 입력해주세요.","E999");
  100. return;
  101. }
  102. }
  103. // 파랑새발령/심폐소생술 보고서 화면 연동
  104. function fDetail() {
  105. var selectedRow = grd_resusreclist.row;
  106. if (selectedRow < 1) {
  107. return;
  108. }else{
  109. var pid = model.getValue("/root/main/resusrec/resusreclist["+selectedRow+"]/pid");
  110. var patnm = model.getValue("/root/main/resusrec/resusreclist["+selectedRow+"]/patnm");
  111. var patinfoflag = model.getValue("/root/main/resusrec/resusreclist["+selectedRow+"]/patinfoflag");
  112. var cardarrgenrdt = model.getValue("/root/main/resusrec/resusreclist["+selectedRow+"]/cardarrgenrdt");
  113. setParameter("SMMNE02301_openerid" , "SMMNE02301" );
  114. setParameter("SMMNE02301_pid" , pid );
  115. setParameter("SMMNE02301_patnm" , patnm );
  116. setParameter("SMMNE02301_patinfoflag" , patinfoflag );
  117. setParameter("SMMNE02301_cardarrgenrdt" , cardarrgenrdt );
  118. modal("SMMNE02302");
  119. }
  120. }
  121. ]]>
  122. </script>
  123. </xhtml:head>
  124. <xhtml:body>
  125. <group id="group3" style="left:0px; top:25px; width:1200px; height:65px; vertical-align:top; ">
  126. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1198px; height:63px; background-color:#fffbf2; border-color:#ffd799; "/>
  127. <button id="btn_search" class="btn1_letter2" _auth="R" style="left:1132px; top:22px; width:56px; height:22px; ">
  128. <caption>조회</caption>
  129. <script type="javascript" ev:event="DOMActivate">
  130. <![CDATA[
  131. fSearch();
  132. ]]>
  133. </script>
  134. </button>
  135. <caption id="caption3" class="search_name" style="left:8px; top:10px; width:111px; height:17px; ">발생일자 :</caption>
  136. <caption id="caption4" class="search_name" style="left:326px; top:10px; width:120px; height:17px; ">대상자구분 :</caption>
  137. <select1 id="cmb_orddeptcd" ref="/root/send/reqdata/orddeptcd" appearance="minimal" style="left:96px; top:35px; width:209px; height:19px; text-align:left; ">
  138. <choices>
  139. <itemset nodeset="/root/init/dept/">
  140. <label ref="depthngnm"/>
  141. <value ref="deptcd"/>
  142. </itemset>
  143. </choices>
  144. </select1>
  145. <input id="ipt_cardarrgenrfromdd" ref="/root/send/reqdata/cardarrgenrfromdd" inputtype="date" format="yyyy-mm-dd" style="left:96px; top:10px; width:95px; height:19px; text-align:center; "/>
  146. <caption id="caption1" class="search_name" style="left:8px; top:35px; width:90px; height:17px; ">진 료 과 :</caption>
  147. <line id="line30" class="line_4" style="x1:1118px; y1:11px; x2:1118px; y2:57px; "/>
  148. <caption id="caption5" class="search_name" style="left:325px; top:35px; width:105px; height:17px; ">병 동 :</caption>
  149. <caption id="caption7" class="search_name" style="left:588px; top:35px; width:110px; height:17px; ">심정지 여부 :</caption>
  150. <caption id="caption8" class="search_name" style="left:828px; top:35px; width:175px; height:17px; ">파랑새 발령 호출여부 :</caption>
  151. <select1 id="cmb_wardcd" ref="/root/send/reqdata/wardcd" appearance="minimal" style="left:428px; top:35px; width:140px; height:19px; text-align:left; ">
  152. <choices>
  153. <itemset nodeset="/root/init/ward/">
  154. <label ref="wardnm"/>
  155. <value ref="wardcd"/>
  156. </itemset>
  157. </choices>
  158. </select1>
  159. <select1 id="rdo_cardarryn" ref="/root/send/reqdata/cardarryn" appearance="full" cellspacing="5" cols="3" overflow="visible" style="left:695px; top:35px; width:120px; height:20px; text-align:left; border-style:none; ">
  160. <choices>
  161. <item>
  162. <label>전체</label>
  163. <value/>
  164. </item>
  165. <item>
  166. <label>Y</label>
  167. <value>Y</value>
  168. </item>
  169. <item>
  170. <label>N</label>
  171. <value>N</value>
  172. </item>
  173. </choices>
  174. </select1>
  175. <select1 id="rdo_bluebirdalarmyn" ref="/root/send/reqdata/bluebirdalarmyn" appearance="full" cellspacing="5" cols="3" overflow="visible" style="left:994px; top:37px; width:124px; height:20px; text-align:left; border-style:none; ">
  176. <choices>
  177. <item>
  178. <label>전체</label>
  179. <value/>
  180. </item>
  181. <item>
  182. <label>Y</label>
  183. <value>Y</value>
  184. </item>
  185. <item>
  186. <label>N</label>
  187. <value>N</value>
  188. </item>
  189. </choices>
  190. </select1>
  191. <input id="ipt_cardarrgenrtodd" ref="/root/send/reqdata/cardarrgenrtodd" inputtype="date" format="yyyy-mm-dd" style="left:210px; top:10px; width:95px; height:19px; text-align:center; "/>
  192. <caption id="caption2" style="left:194px; top:10px; width:15px; height:25px; font-weight:bold; ">~</caption>
  193. <select1 id="rdo_patinfoflag" ref="/root/send/reqdata/patinfoflag" appearance="minimal" style="left:428px; top:10px; width:140px; height:19px; text-align:left; ">
  194. <choices>
  195. <item>
  196. <label>전체</label>
  197. <value/>
  198. </item>
  199. <item>
  200. <label>입원환자</label>
  201. <value>1</value>
  202. </item>
  203. <item>
  204. <label>외래 내원환자</label>
  205. <value>2</value>
  206. </item>
  207. <item>
  208. <label>응급실 내원환자</label>
  209. <value>3</value>
  210. </item>
  211. <item>
  212. <label>보호자</label>
  213. <value>4</value>
  214. </item>
  215. <item>
  216. <label>방문객</label>
  217. <value>5</value>
  218. </item>
  219. <item>
  220. <label>기타</label>
  221. <value>6</value>
  222. </item>
  223. </choices>
  224. </select1>
  225. <caption id="caption10" class="search_name" style="left:588px; top:10px; width:105px; height:17px; ">등 록 번 호 :</caption>
  226. <input id="ipt_pid" ref="/root/send/reqdata/pid" class="input_default" navindex="1" maxlength="10" style="left:695px; top:10px; width:115px; height:19px; "/>
  227. <input id="int_patnm" ref="/root/send/reqdata/patnm" class="input_default" navindex="2" maxlength="10" style="left:917px; top:10px; width:113px; height:19px; ">
  228. <script type="javascript" ev:event="onkeyup">
  229. <![CDATA[
  230. ]]>
  231. </script>
  232. </input>
  233. <caption id="caption11" class="search_name" style="left:828px; top:10px; width:95px; height:17px; ">환 자 명 :</caption>
  234. </group>
  235. <datagrid id="grd_resusreclist" nodeset="/root/main/resusrec/resusreclist" class="datagrid2" scroll="auto" caption="발생일자^대상자 구분^환자명^등록번호^성별^나이^입원일자^진료과^주치의^담당의^진단명^환자상태^심정지&#xA;여부^심정지 발견시간^심정지 추정시간^파랑새&#xA;호출여부^파랑새 호출시간^소생팀 도착시간^목격여부^발견자^발견장소^담당의 호출시간^담당의 도착시간^소생술 시작시간^소생술 종료시간^보고일^보고부서^보고자^부서장확인" colsep="^" colwidth="130, 85, 76, 84, 36, 37, 75, 100, 60, 60, 150, 120, 52, 100, 100, 60, 100, 100, 130, 120, 156, 100, 100, 100, 100, 121, 81, 79, 100" ellipsis="true" explorerbar="sortshow" frozencols="5" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:105px; width:1200px; height:677px; ">
  236. <col ref="cardarrgenrdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  237. <col ref="patinfoflagtext" style="text-align:center; "/>
  238. <col ref="patnm" style="text-align:center; "/>
  239. <col ref="pidtext" style="text-align:center; "/>
  240. <col ref="gender" style="text-align:center; "/>
  241. <col ref="age" style="text-align:center; "/>
  242. <col ref="indd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
  243. <col ref="orddeptnm" style="text-align:left; "/>
  244. <col ref="atdoctnm" style="text-align:center; "/>
  245. <col ref="medispclnm" style="text-align:center; "/>
  246. <col ref="diagnm" style="text-align:left; "/>
  247. <col ref="patstatus"/>
  248. <col ref="cardarryn" style="text-align:center; "/>
  249. <col ref="cardarrfinddd" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  250. <col ref="cardarrestmdd" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  251. <col ref="bluebirdalarmyn" style="text-align:center; "/>
  252. <col ref="bluebirdalarmdd" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  253. <col ref="resusteamarvdd" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  254. <col ref="cardarrgoalyn" style="text-align:left; "/>
  255. <col ref="cardarrdiscvpsn" style="text-align:left; "/>
  256. <col ref="cardarrgenrplce" style="text-align:left; "/>
  257. <col ref="atdoctcalldd" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  258. <col ref="atdoctarrdd" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  259. <col ref="resusfromdd" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  260. <col ref="resustodd" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  261. <col ref="reportdate" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  262. <col ref="reportdeptnm" style="text-align:center; "/>
  263. <col ref="reporternm" style="text-align:center; "/>
  264. <col ref="lastupdnm" visibility="hidden" style="text-align:center; "/>
  265. <col ref="instcd" visibility="hidden"/>
  266. <col ref="pid" visibility="hidden" style="text-align:center; "/>
  267. <col ref="patinfoflag" visibility="hidden" style="text-align:center; "/>
  268. <col ref="reportdeptcd" visibility="hidden" style="text-align:center; "/>
  269. <script type="javascript" ev:event="onaftersort">
  270. <![CDATA[
  271. grd_resusreclist.gridToInstance();
  272. ]]>
  273. </script>
  274. <script type="javascript" ev:event="ondblclick">
  275. <![CDATA[
  276. fDetail();
  277. ]]>
  278. </script>
  279. </datagrid>
  280. <line id="line1" class="line_1" style="x1:0px; y1:104px; x2:1200px; y2:104px; font-family:돋움체; "/>
  281. <group id="grp_buttons" style="left:0px; top:0px; width:1200px; height:25px; ">
  282. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:315px; height:13px; ">심폐소생술 및 파랑새발령 보고조회</caption>
  283. <button id="btn_excel" class="btn6_letter2" _auth="R" style="left:1141px; top:2px; width:56px; height:22px; ">
  284. <caption>엑셀</caption>
  285. <script type="javascript" ev:event="DOMActivate">
  286. <![CDATA[
  287. var sTitle = "과제리스트";
  288. var fileName = window.fileDialog("save", ",", false, sTitle, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  289. if (fileName != ""){
  290. grd_resusreclist.saveExcel(fileName, sTitle, true, true, "", "", true);
  291. }
  292. ]]>
  293. </script>
  294. </button>
  295. <caption id="cpt_text" style="left:945px; top:3px; width:185px; height:20px; font-weight:bold; color:#0000ff; text-align:right; "/>
  296. </group>
  297. </xhtml:body>
  298. </xhtml:html>