SPAEA02601_검사내역조회(사이버나이프).xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  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. <examlist>
  11. <grdexam1>
  12. <excuexectodt/>
  13. <modality/>
  14. <excucdnm/>
  15. </grdexam1>
  16. <grdexam2>
  17. <excuexectodt/>
  18. <modality/>
  19. <excucdnm/>
  20. </grdexam2>
  21. </examlist>
  22. <patpsn>
  23. <patpsninfo>
  24. <index/>
  25. <pid/>
  26. <hngnm/>
  27. <instcd/>
  28. <iogb/>
  29. <mpphon/>
  30. <sex/>
  31. <age/>
  32. <rrgstno/>
  33. <homedetladdr/>
  34. <temptext/>
  35. </patpsninfo>
  36. </patpsn>
  37. </main>
  38. <send>
  39. <popdata>
  40. <pid/>
  41. <ckno/>
  42. <cknoseq/>
  43. <suppdeptcd/>
  44. <orddeptcd/>
  45. </popdata>
  46. <data>
  47. <pid/>
  48. <srchdate1/>
  49. <srchdate2/>
  50. <basecdcnts/>
  51. <selectbasecdflag/>
  52. <suppdeptcd/>
  53. </data>
  54. <basesuppdeptcd/>
  55. <exam>
  56. <excuexectodt/>
  57. <modality/>
  58. </exam>
  59. </send>
  60. <init>
  61. <cmb_info>
  62. <suppdeptlist>
  63. </suppdeptlist>
  64. <excuroomcdlist>
  65. <excuroom>
  66. <basecd/>
  67. <basecdflagdesc/>
  68. </excuroom>
  69. </excuroomcdlist>
  70. <initexecprcpstatcd/>
  71. <rsrvflaglist/>
  72. <initbasecdcnts>
  73. <basecdcntsid/>
  74. <basecdcnts/>
  75. <selectbasecdflag/>
  76. </initbasecdcnts>
  77. </cmb_info>
  78. </init>
  79. </root>
  80. </instance>
  81. <script type="javascript" ev:event="xforms-ready">
  82. <![CDATA[
  83. // 그리드의 기초 행을 초기화 한다.
  84. model.removenode("/root/main/examlist/grdexam1");
  85. model.removenode("/root/main/examlist/grdexam2");
  86. // 조회기간, Combo Box 초기화
  87. ipt_date1.value = getCurrentDate();
  88. var vRsrvdd = ipt_date1.value ;
  89. vRsrvdd = vRsrvdd.toDate("YYYYMMDD");
  90. vRsrvdd = vRsrvdd.getAddDate(-30);
  91. ipt_date1.value = vRsrvdd.getDateFormat();
  92. ipt_date2.value = getCurrentDate();
  93. // 사용할때는 common.js 파일이 필요
  94. if (checkOpener()) { //opener 검사
  95. var param = opener.javascript.getParameter("opener_parameter_id"); //opener parameter value를 get
  96. if(param != "") { // opener parameter value가 있는 경우
  97. // 첫번째 방법
  98. // model.setValue("/root/patpsn/patpsninfo/pid",param);
  99. // model.refresh();
  100. // 두번째 방법 parameter value를 이용하여 프로그램 수행
  101. condarray = param.split("▦");
  102. model.setValue("/root/main/patpsn/patpsninfo/index", condarray[0]);
  103. model.setValue("/root/main/patpsn/patpsninfo/pid", condarray[1]);
  104. model.setValue("/root/main/patpsn/patpsninfo/hngnm", condarray[2]);
  105. model.setValue("/root/main/patpsn/patpsninfo/temptext",condarray[3]);
  106. model.refresh();
  107. }
  108. }
  109. // model.setValue("/root/main/patpsn/patpsninfo/pid", "11650371"); //상준 테스트
  110. // model.setValue("/root/send/data/srchdate1","19980807")
  111. // model.setValue("/root/send/data/srchdate2","19980808")
  112. ]]>
  113. </script>
  114. <submission id="TRAEA02606" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/cmb_info/initbasecdcnts"/>
  115. <submission id="TRAEA02607" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" resultref="/root/main/examlist/grdexam1"/>
  116. </model>
  117. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  118. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  119. </xhtml:head>
  120. <xhtml:body pagewidth="630" pageheight="470">
  121. <group id="group1" style="left:7px; top:5px; width:615px; height:460px; ">
  122. <line id="line1" class="line_1" style="x1:0px; y1:105px; x2:615px; y2:105px; "/>
  123. <caption id="caption4" class="tit_2" style="left:0px; top:90px; width:100px; height:14px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">검색결과</caption>
  124. <datagrid id="gridexam1" nodeset="/root/main/examlist/grdexam1" caption="검사일자^구분^검사명" colsep="^" colwidth="100, 100, 321" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:110px; width:610px; height:140px; ">
  125. <col ref="excuexectodt" style="text-align:center; "/>
  126. <col ref="modality" style="text-align:center; "/>
  127. <col ref="excucdnm" style="text-align:left; "/>
  128. <script type="javascript" ev:event="ondblclick">
  129. <![CDATA[
  130. gridexam2.addRow();
  131. // 원본 그리드에 있는 선택된 로우의 값을 복사할 그리드의 마지막 로우에 넣는다.
  132. model.setValue("/root/main/examlist/grdexam2[" + gridexam2.bottomRow + "]/excuexectodt", model.getValue("/root/main/examlist/grdexam1["+gridexam1.row+"]/excuexectodt"));
  133. model.setValue("/root/main/examlist/grdexam2[" + gridexam2.bottomRow + "]/modality", model.getValue("/root/main/examlist/grdexam1["+gridexam1.row+"]/modality"));
  134. model.setValue("/root/main/examlist/grdexam2[" + gridexam2.bottomRow + "]/excucdnm", model.getValue("/root/main/examlist/grdexam1["+gridexam1.row+"]/excucdnm"));
  135. gridexam2.refresh();
  136. ]]>
  137. </script>
  138. </datagrid>
  139. <line id="line2" class="line_1" style="x1:0px; y1:285px; x2:615px; y2:285px; "/>
  140. <caption id="caption6" class="tit_2" style="left:5px; top:270px; width:100px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">적용대상</caption>
  141. <datagrid id="gridexam2" nodeset="/root/main/examlist/grdexam2" caption="검사일자^구분^검사명" colsep="^" colwidth="100, 100, 270" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:290px; width:610px; height:130px; ">
  142. <col ref="excuexectodt" style="text-align:center; "/>
  143. <col ref="modality" style="text-align:center; "/>
  144. <col ref="excucdnm" style="text-align:left; "/>
  145. <script type="javascript" ev:event="ondblclick">
  146. <![CDATA[
  147. // 선택된 행을 삭제한다
  148. gridexam2.deleteItem(gridexam2.row);
  149. ]]>
  150. </script>
  151. </datagrid>
  152. <caption id="caption7" class="tit_1" style="left:10px; top:0px; width:102px; height:13px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">검사내역 조회하기</caption>
  153. <shape id="roundrect1" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:5px; top:20px; width:605px; height:55px; "/>
  154. <button id="button1" class="btn1_letter2" style="left:505px; top:30px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  155. <caption>조회</caption>
  156. <script type="javascript" ev:event="DOMActivate">
  157. <![CDATA[
  158. if(model.getValue("/root/send/data/basecdcnts") == ""){
  159. messageBox("분류를 선택하세요", "E999", "");
  160. return false;
  161. }
  162. if(model.getValue("") != "/root/send/data/basecdcnts") {
  163. // 조회버튼 선택시에 분류창에 선택한 리스트 보여주기
  164. opt_basecdcnts.value = model.getValue("/root/send/data/basecdcnts");
  165. // alert(model.getValue("/root/send/data/basecdcnts"));
  166. //조회를 선택하면 Modal 체크박스 감추기
  167. chk_basecdcnts.visible = false;
  168. // model.setValue("/root/send/data/dateflag","anotherday"); //적용일자 기준
  169. // model.setValue("/root/send/data/rsrvdate",model.getValue("/root/send/data/srchdate1"));
  170. // model.setValue("/root/send/data/rsrvdate",model.getValue("/root/send/data/srchdate2"));
  171. //환자 검사내역 정보 조회
  172. model.setValue("/root/send/data/pid",model.getValue("/root/main/patpsn/patpsninfo/pid"));
  173. model.setValue("/root/send/data/suppdeptcd",model.getValue("/root/send/basesuppdeptcd"));
  174. submit("TRAEA02607");
  175. }
  176. model.refresh();
  177. ]]>
  178. </script>
  179. </button>
  180. <input id="ipt_pid" ref="/root/main/patpsn/patpsninfo/pid" class="input_search" style="left:100px; top:25px; width:100px; height:19px; ">
  181. <script type="javascript" ev:event="onkeydown">
  182. <![CDATA[
  183. // inputEnterKey("btn_sea","DOMActivate");
  184. ]]>
  185. </script>
  186. </input>
  187. <caption id="caption1" class="search_name" style="left:10px; top:45px; width:100px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">부서명 :</caption>
  188. <select1 id="combo1" ref="/root/init/cmb_info/suppdeptlist" appearance="minimal" style="left:100px; top:45px; width:100px; height:19px; ">
  189. <choices>
  190. <item>
  191. <label>영상의학과</label>
  192. <value>2160000000</value>
  193. </item>
  194. <item>
  195. <label>핵의학과</label>
  196. <value>2180000000</value>
  197. </item>
  198. </choices>
  199. <script type="javascript" ev:event="xforms-value-changed">
  200. <![CDATA[
  201. model.setValue("/root/send/basesuppdeptcd",combo1.value);
  202. // alert(model.getValue("/root/send/basesuppdeptcd"));
  203. submit("TRAEA02606");
  204. btn_excuroom.dispatch("DOMActivate");
  205. ]]>
  206. </script>
  207. </select1>
  208. <caption id="caption2" class="search_name" style="left:205px; top:45px; width:100px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">분류 :</caption>
  209. <caption id="caption3" class="search_name" style="left:9px; top:25px; width:91px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">등록번호 :</caption>
  210. <caption id="caption5" class="search_name" style="left:204px; top:25px; width:99px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">검사일자 :</caption>
  211. <caption id="caption14" style="left:388px; top:28px; width:15px; height:15px; ">~</caption>
  212. <line id="line3" class="line_4" style="x1:500px; y1:25px; x2:500px; y2:60px; "/>
  213. <input id="ipt_date1" ref="/root/send/data/srchdate1" class="input_default" inputtype="date" style="left:294px; top:25px; width:90px; height:19px; ">
  214. <script type="javascript" ev:event="xforms-value-changed">
  215. <![CDATA[
  216. window.modelesstopmost = true;
  217. ]]>
  218. </script>
  219. </input>
  220. <input id="ipt_date2" ref="/root/send/data/srchdate2" class="input_default" inputtype="date" style="left:405px; top:25px; width:90px; height:19px; ">
  221. <script type="javascript" ev:event="xforms-value-changed">
  222. <![CDATA[
  223. window.modelesstopmost = true;
  224. ]]>
  225. </script>
  226. </input>
  227. <button id="button2" class="btn1_letter2" style="left:550px; top:425px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  228. <caption>닫기</caption>
  229. <script type="javascript" ev:event="DOMActivate">
  230. <![CDATA[
  231. window.close();
  232. ]]>
  233. </script>
  234. </button>
  235. <output id="opt_basecdcnts" class="output_search" style="left:294px; top:45px; width:181px; height:19px; "/>
  236. <select id="chk_basecdcnts" ref="/root/send/data/basecdcnts" class="checkbox_search" visibility="hidden" overflow="visible" appearance="full" style="left:295px; top:65px; width:195px; height:20px; background-color:#e5eae9; border-style:none; ">
  237. <choices>
  238. <itemset nodeset="/root/init/cmb_info/initbasecdcnts">
  239. <label ref="basecdcnts"/>
  240. <value ref="basecdcnts"/>
  241. </itemset>
  242. </choices>
  243. </select>
  244. <button id="btn_excuroom" class="icon_search" style="left:479px; top:46px; width:16px; height:16px; ">
  245. <caption/>
  246. <script type="javascript" ev:event="DOMActivate">
  247. <![CDATA[
  248. if(chk_basecdcnts.visible == "" ||chk_basecdcnts.visible == "false" ){
  249. chk_basecdcnts.visible = true;
  250. }else {
  251. chk_basecdcnts.visible = false;
  252. }
  253. ]]>
  254. </script>
  255. </button>
  256. <button id="button3" class="btn1_letter2" style="left:490px; top:425px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  257. <caption>적용</caption>
  258. <script type="javascript" ev:event="onclick">
  259. <![CDATA[
  260. // 하나의 값만 넘겨준다 (test)
  261. // opener.model.makeValue("/root/main/carerecinfo/carerecmat/rayphodd1", model.getValue("/root/main/examlist/grdexam2/excuexectodt" ));
  262. // 컬럼을 조합해서 넘겨줘야 하기 때문에 변수에 넣어서 조합니다.
  263. var data1 = "";
  264. var data2 = "";
  265. var sum ="";
  266. // 적용할 대상이 없다면 이벤트 중단
  267. if(gridexam2.rows == 1){
  268. messageBox("적용대상 자료가 없습니다", "E999", "");
  269. return false;
  270. }
  271. // 기존에 저장된 값이 있을 경우 원본 자료의 뒤에다 추가로 붙여주기 위해 데이터 존재 여부 체크하여 반영
  272. if (model.getValue("/root/main/patpsn/patpsninfo/temptext") =="") {
  273. sum ="";
  274. }else{
  275. // sum = model.getValue("/root/main/patpsn/patpsninfo/temptext") + ","+"\n";
  276. sum = model.getValue("/root/main/patpsn/patpsninfo/temptext") + "\n";
  277. }
  278. // opener.model.makeValue("/root/main/carerecinfo/carerecmat/rayphodd1",sum);
  279. // 적용대상에 선택된 리스트를 대상으로 저장하였다가 한번에 보여주기 위함
  280. for( i =1; i < gridexam2.rows ; i++) {
  281. data1 = model.getValue("/root/main/examlist/grdexam2["+ i +"]/excuexectodt");
  282. data2 = model.getValue("/root/main/examlist/grdexam2["+ i +"]/modality");
  283. // Display시에 창의 종류가 달라서 구분하여 설정 함.
  284. if (model.getValue("/root/main/patpsn/patpsninfo/index") == '1'){
  285. sum += data2+ " - " + data1 + " ";
  286. }else{
  287. sum += data2+ " - " + data1 +"\n";
  288. }
  289. }
  290. // 어떤 창에서 검색버튼을 눌렀는지에 따라 반영해주는 대상을 결정해준다
  291. if (model.getValue("/root/main/patpsn/patpsninfo/index") == '1'){
  292. opener.model.makeValue("/root/main/carerecinfo/carerecmat/fiducialdd",sum);
  293. }else{
  294. opener.model.makeValue("/root/main/carerecinfo/carerecmat/rayphodd1",sum);
  295. }
  296. // 값을 넘겨주고 갱신을 해줘야 자료가 보인다.
  297. opener.textarea1.refresh();
  298. opener.input1.refresh();
  299. window.close();
  300. ]]>
  301. </script>
  302. </button>
  303. </group>
  304. </xhtml:body>
  305. </xhtml:html>