SMMQI02800_PSCI.xrw 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431
  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. <send>
  10. <reqdata/>
  11. </send>
  12. <main>
  13. <search>
  14. <fromdd/>
  15. <todd/>
  16. <orddeptcd/>
  17. <excuroomcd/>
  18. <pid/>
  19. <hngnm/>
  20. <searchflag/>
  21. </search>
  22. <pscilist>
  23. <psciinfo>
  24. <ordtypenm/>
  25. <pid/>
  26. <hngnm/>
  27. <orddrnm/>
  28. <testcdnm/>
  29. <rsltval/>
  30. <prcpdd/>
  31. <smssenddd/>
  32. <snssenddrnm/>
  33. </psciinfo>
  34. </pscilist>
  35. <patinfo>
  36. <patinfolist/>
  37. </patinfo>
  38. </main>
  39. <init>
  40. <dept>
  41. <dept>
  42. </dept>
  43. </dept>
  44. <doctlist>
  45. <medispcl>
  46. <doctid/>
  47. <doctnm/>
  48. </medispcl>
  49. </doctlist>
  50. <cmb_info>
  51. <suppdeptlist>
  52. <suppdept>
  53. <suppdeptcd/>
  54. <depthngnm/>
  55. </suppdept>
  56. </suppdeptlist>
  57. <excuroomcdlist>
  58. <excuroom>
  59. <basecd/>
  60. <basecdflagdesc/>
  61. </excuroom>
  62. </excuroomcdlist>
  63. </cmb_info>
  64. <LB0106/>
  65. </init>
  66. <hidden>
  67. <testgroup>
  68. <tsectcd/>
  69. </testgroup>
  70. </hidden>
  71. </root>
  72. </instance>
  73. <script type="javascript" ev:event="xforms-ready">
  74. <![CDATA[
  75. fInit();
  76. ]]>
  77. </script>
  78. <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
  79. <submission id="TRMQI02801" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" ref="/root/send/reqdata" resultref="/root/main/pscilist"/>
  80. <submission id="TRAEA00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/cmb_info/excuroomcdlist"/>
  81. <submission id="TRAEA00903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/cmb_info/execridlist"/>
  82. <submission id="TRAEA00904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/cmb_info/suppdeptlist"/>
  83. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  84. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  85. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
  86. </model>
  87. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  88. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  89. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  90. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  91. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  92. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  93. <script type="javascript" src="../../../com/departmentcodeweb/js/common.js"/>
  94. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  95. <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
  96. <script type="javascript">
  97. <![CDATA[
  98. function fInit()
  99. {
  100. ipt_fromdd.value = getCurrentDate().substring(0,6).concat("01");
  101. ipt_todd.value = getCurrentDate();
  102. model.removeNodeset("/root/main/pscilist/psciinfo");
  103. fBaseInfoRef("0106|");
  104. // 진료과
  105. var instcd = getUserInfo("dutplceinstcd");
  106. var standard_yn = "rcptuseyn";
  107. var ord_deptflag = 'D';
  108. var rslt_ref = "/root/init/dept";
  109. var sort_method = "depthngnm";
  110. sort_field = "depthngnm"
  111. zsdfGetInOutOrdDeptList(instcd, rslt_ref, sort_field, sort_method);
  112. // 진료과
  113. addComboItem("cmb_orddeptcd", "", "", "above");
  114. //fDoctSerach();
  115. zbcfGetCodeList( new Array("M0011","M0010"), new Array("/root/init2/cmb_info/initexecprcpstatcd","/root/init2/cmb_info/prcpgenrflag") );
  116. submit("TRZBC00101", false);
  117. submit("TRAEA00902", false); //검사실
  118. //submit("TRAEA00903", false); //검사자
  119. //submit("TRAEA00904", false); //지원부서
  120. //submit("TRAEA01301", false); //검사실
  121. //0103:사용자별검사그룹, 0106: 시행부서, 0108:연관검사, 0109:결과코드, 0210:소견마스터, 0115:장비마스터, 0000:사용자부서구분코드
  122. cmb_searchflag.select(0);
  123. cmb_excuroomcd.select(0);
  124. model.refresh();
  125. }
  126. function fPatPopUp()
  127. {
  128. modal("SPPMC02500", 1,10, 10, "SPPMC02500", "", "");
  129. if (model.getValue("/root/main/popupendflag") == "ok")
  130. {
  131. model.makeValue("/root/main/search/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  132. model.makeValue("/root/main/search/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  133. }
  134. //fHistSearch();
  135. model.refresh();
  136. }
  137. // 조회 함수
  138. function fPsciSearch()
  139. {
  140. var fromdd=model.getValue("/root/main/search/fromdd");
  141. var todd=model.getValue("/root/main/search/todd");
  142. if(fromdd>todd)
  143. {
  144. messageBox("조회종료일자보다 작은 조회시작일자인지","I007");
  145. model.setFocus("ipt_todd");
  146. return;
  147. }
  148. if(isNull(fromdd))
  149. {
  150. messageBox("조회시작일은","I003");
  151. model.setFocus("ipt_fromdd");
  152. return;
  153. }
  154. if(isNull(todd))
  155. {
  156. messageBox("조회종료일은","I003");
  157. model.setFocus("ipt_todd");
  158. return;
  159. }
  160. if(isNull(model.getValue("/root/main/search/orddeptcd"))) //진료과 가 전체일때
  161. {
  162. model.makeValue("/root/send/reqdata/orddeptcd","%");
  163. }
  164. else
  165. {
  166. model.makeValue("/root/send/reqdata/orddeptcd",model.getValue("/root/main/search/orddeptcd"));
  167. }
  168. if(isNull(model.getValue("/root/main/search/excuroomcd")))
  169. {
  170. model.makeValue("/root/send/reqdata/excuroomcd","%");
  171. }
  172. else
  173. {
  174. model.makeValue("/root/send/reqdata/excuroomcd",model.getValue("/root/main/search/excuroomcd"));
  175. }
  176. if(isNull(model.getValue("/root/main/search/pid")))
  177. {
  178. model.makeValue("/root/send/reqdata/pid","%");
  179. }
  180. else
  181. {
  182. model.makeValue("/root/send/reqdata/pid",model.getValue("/root/main/search/pid"));
  183. }
  184. if(model.getValue("/root/main/search/excuroomcd")=="00") //검사부서가 전체 일때
  185. {
  186. model.makeValue("/root/send/reqdata/excuroomcd","%");
  187. }
  188. else
  189. {
  190. model.makeValue("/root/send/reqdata/excuroomcd",model.getValue("/root/main/search/excuroomcd"));
  191. }
  192. model.makeValue("/root/send/reqdata/searchflag",model.getValue("/root/main/search/searchflag"));
  193. model.makeValue("/root/send/reqdata/fromdd",fromdd);
  194. model.makeValue("/root/send/reqdata/todd",todd);
  195. submit("TRMQI02801");
  196. }
  197. function fExcel()
  198. {
  199. if (grd_psciinfo.rows < 2)
  200. {
  201. messageBox("엑셀파일로 저장할 리스트 내역이", "I004");
  202. return;
  203. }
  204. var fileName = window.fileDialog("save", ",", false, "PSCI목록", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  205. if (fileName != "")
  206. {
  207. grd_psciinfo.saveExcel(fileName, "SheetName", false, false, "", "", false);
  208. }
  209. }
  210. //초기화 함수
  211. function fInitPsci()
  212. {
  213. ipt_fromdd.value = getCurrentDate().substring(0,6).concat("01");
  214. ipt_todd.value = getCurrentDate();
  215. cmb_searchflag.select(0);
  216. cmb_excuroomcd.select(0);
  217. cmb_orddeptcd.select(0);
  218. model.removeNodeset("/root/main/search/pid");
  219. model.removeNodeset("/root/main/search/hngnm");
  220. model.removeNodeset("/root/main/pscilist");
  221. model.refresh();
  222. }
  223. ]]>
  224. </script>
  225. </xhtml:head>
  226. <xhtml:body guideline="1,5;2,-3;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  227. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  228. <line id="line1" class="line_1" style="x1:1px; y1:93px; x2:1195px; y2:93px; "/>
  229. <group id="grp_sea" style="left:0px; top:5px; width:1194px; height:62px; vertical-align:top; ">
  230. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:61px; background-color:#fffbf2; border-color:#ffd799; "/>
  231. <caption id="caption8" class="search_name" style="left:6px; top:10px; width:91px; height:17px; ">조회기간 :</caption>
  232. <caption id="caption7" class="search_no_b" style="left:182px; top:11px; width:12px; height:17px; ">~</caption>
  233. <caption id="caption5" class="search_name" style="left:300px; top:10px; width:75px; height:17px; ">진료과 :</caption>
  234. <caption id="caption2" class="search_name" style="left:530px; top:10px; width:89px; height:17px; ">검사부서 :</caption>
  235. <caption id="caption10" class="search_name" style="left:770px; top:10px; width:80px; height:17px; ">환자명 :</caption>
  236. <caption id="caption3" class="search_name" style="left:5px; top:36px; width:91px; height:17px; ">환자구분 :</caption>
  237. <input id="ipt_fromdd" ref="/root/main/search/fromdd" class="input_search" inputtype="date" style="left:95px; top:10px; width:85px; height:19px; "/>
  238. <input id="ipt_todd" ref="/root/main/search/todd" class="input_search" inputtype="date" style="left:195px; top:10px; width:85px; height:19px; "/>
  239. <line id="line2" style="x1:1122px; y1:5px; x2:1122px; y2:56px; border-color:#ffcc99; "/>
  240. <button id="btn_search" class="btn1_letter2" style="left:1130px; top:10px; width:56px; height:22px; ">
  241. <caption>조회</caption>
  242. <script type="javascript" ev:event="DOMActivate">
  243. <![CDATA[
  244. fPsciSearch();
  245. // submit("TRMQR02800");
  246. ]]>
  247. </script>
  248. </button>
  249. <select1 id="cmb_orddeptcd" ref="/root/main/search/orddeptcd" class="combo_search" appearance="minimal" editmode="input" style="left:380px; top:10px; width:135px; height:19px; ">
  250. <choices>
  251. <itemset nodeset="/root/init/dept/dept">
  252. <label ref="depthngnm"/>
  253. <value ref="deptcd"/>
  254. </itemset>
  255. </choices>
  256. <script type="javascript" ev:event="xforms-value-changed">
  257. <![CDATA[
  258. // var lrg = model.getValue("/root/send/lrg");
  259. // model.setValue("/root/send/mdl","");
  260. //
  261. //대분류가 임상일 경우
  262. // alert(lrg);
  263. // if(lrg == "01") {
  264. // model.removeNodeset("/root/init/mdl/M0428");
  265. // zbcfGetCodeList(new Array("M0428"), new Array("/root/init/mdl"), true);
  266. // searchmdl.choices.itemset.attribute("nodeset") = "/root/init/mdl/M0428";
  267. // }
  268. //대분류가 비임상일 경우
  269. // else if(lrg == "02"){
  270. // model.removeNodeset("/root/init/mdl/M0429");
  271. // zbcfGetCodeList(new Array("M0429"), new Array("/root/init/mdl"), true);
  272. // searchmdl.choices.itemset.attribute("nodeset") = "/root/init/mdl/M0429";
  273. // }
  274. //대분류가 안전관련 감면사례 보고일 경우
  275. // else{
  276. // alert("00");
  277. // model.removeNodeset("/root/init/mdl/M0429");
  278. // searchmdl.choices.itemset.attribute("nodeset") = "/root/init/mdl/M0429";
  279. // searchmdl.deselect();
  280. // }
  281. // searchmdl.refresh();
  282. ]]>
  283. </script>
  284. </select1>
  285. <select1 id="cmb_excuroomcd" ref="/root/main/search/excuroomcd" class="combo_search" appearance="minimal" style="left:620px; top:10px; width:135px; height:19px; ">
  286. <choices>
  287. <itemset nodeset="/root/init/LB0106">
  288. <label ref="nm"/>
  289. <value ref="cd"/>
  290. </itemset>
  291. </choices>
  292. </select1>
  293. <select1 id="cmb_searchflag" ref="/root/main/search/searchflag" class="combo_search" appearance="minimal" style="left:95px; top:36px; width:80px; height:19px; ">
  294. <choices>
  295. <item>
  296. <label>- 전 체 -</label>
  297. <value>%</value>
  298. </item>
  299. <item>
  300. <label>외래</label>
  301. <value>O</value>
  302. </item>
  303. <item>
  304. <label>병동</label>
  305. <value>I</value>
  306. </item>
  307. </choices>
  308. </select1>
  309. <button id="button6" class="icon_search" style="left:1085px; top:10px; width:16px; height:16px; ">
  310. <caption/>
  311. <script type="javascript" ev:event="DOMActivate">
  312. <![CDATA[
  313. fPatPopUp();
  314. ]]>
  315. </script>
  316. </button>
  317. <output id="opt_pid" ref="/root/main/search/pid" class="output_fix" style="left:849px; top:10px; width:105px; height:19px; "/>
  318. <output id="opt_hngnm" ref="/root/main/search/hngnm" class="output_fix" style="left:962px; top:10px; width:110px; height:19px; "/>
  319. </group>
  320. <datagrid id="grd_psciinfo" nodeset="/root/main/pscilist/psciinfo" caption="구분^환자ID^환자명^주치의^검사명^검사결과^처방일자^SMS전송일자^SMS전송의사" colsep="^" colwidth="60, 116, 92, 92, 245, 118, 100, 100, 100" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="29" rowsep="|" tooltip="true" style="left:0px; top:98px; width:1194px; height:617px; text-align:center; ">
  321. <col ref="ordtypenm" style="text-align:center; "/>
  322. <col ref="pid" style="text-align:center; "/>
  323. <col ref="hngnm" style="text-align:center; "/>
  324. <col ref="orddrnm" style="text-align:center; "/>
  325. <col ref="testcdnm" style="text-align:center; "/>
  326. <col ref="rsltval" style="text-align:center; "/>
  327. <col ref="prcpdd" format="yyyy-mm-dd"/>
  328. <col ref="smssenddd" format="yyyy-mm-dd" style="left:1078px; top:23px; width:100px; height:23px; "/>
  329. <col ref="snssenddrnm"/>
  330. <script type="javascript" ev:event="ondblclick">
  331. <![CDATA[
  332. //var cur_row = grd_safelist.row-1;
  333. //alert("cur_row => " + cur_row);
  334. //var temp = model.getValue("/root/main/list/safe[" + cur_row + "]/acptno");
  335. //alert("acptno ===> " + temp);
  336. // setParameter("ano", model.getValue("/root/main/list/safe[" + cur_row + "]/acptno"));
  337. // modal("SMMQR00100", "1", "", "");
  338. // submit("TRMQR01000");
  339. // model.refresh();
  340. ]]>
  341. </script>
  342. <script type="javascript" ev:event="onmouseover">
  343. <![CDATA[
  344. // var iRow = grd_safelist.mouseRow;
  345. // var iCol = grd_safelist.mouseCol;
  346. // var xPath = "/root/main/list/safe";
  347. // var sSerdiaggrdenm = model.getValue(xPath+"["+(iRow-1)+"]/serdiaggrdenm");
  348. // if(iRow > 0 && iCol == 3)
  349. // {
  350. // grd_safelist.tooltipText(iRow, iCol) = sSerdiaggrdenm;
  351. // }
  352. ]]>
  353. </script>
  354. </datagrid>
  355. <button id="btn_excel" class="btn2_letter4" style="left:1122px; top:71px; width:64px; height:19px; ">
  356. <caption>엑셀저장</caption>
  357. <script type="javascript" ev:event="DOMActivate">
  358. <![CDATA[
  359. fExcel();
  360. ]]>
  361. </script>
  362. </button>
  363. <caption id="caption4" class="tit_2" style="left:5px; top:78px; width:113px; height:13px; ">PSCI목록</caption>
  364. <button id="button1" class="btn4_letter3" style="left:1124px; top:718px; width:68px; height:22px; ">
  365. <caption>초기화</caption>
  366. <script type="javascript" ev:event="DOMActivate">
  367. <![CDATA[
  368. fInitPsci();
  369. ]]>
  370. </script>
  371. </button>
  372. </group>
  373. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">PSCI</caption>
  374. </xhtml:body>
  375. </xhtml:html>