SMADC03100_NST추구관리대상자검색.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401
  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>NST추구관리대상자검색</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <nstcntrllist>
  11. <mainlist>
  12. <cnststatnm/>
  13. <epgubun/>
  14. <roomcd/>
  15. <orddeptnm/>
  16. <pid/>
  17. <hngnm/>
  18. <sna/>
  19. <orddrnm/>
  20. <firstreqdd/>
  21. <firstrepldd/>
  22. <replddilsu/>
  23. <repldd/>
  24. <prcpdd/>
  25. <prcpcd/>
  26. <cnstcnts20/>
  27. <firstsau/>
  28. <orddd/>
  29. <dschdd/>
  30. <dschyn/>
  31. <cnstkind/>
  32. <cnstseqno/>
  33. <formrecseq/>
  34. <cretno/>
  35. <prcpgenrflag/>
  36. <cnststat/>
  37. <formcd/>
  38. <rgstseqno/>
  39. <cnstcnts8/>
  40. <cnstcnts9/>
  41. <cnstcnts10/>
  42. <cnstcnts11/>
  43. </mainlist>
  44. </nstcntrllist>
  45. </main>
  46. <send>
  47. <srchdd1/>
  48. <srchdd2/>
  49. <reqdrugcd/>
  50. <pid/>
  51. <orddeptcd/>
  52. <wardcd/>
  53. <statflag/>
  54. <nutrflag>A</nutrflag>
  55. <ioflag/>
  56. <repflag>A</repflag>
  57. <deptinfo>
  58. <deptflag/>
  59. </deptinfo>
  60. <replddilsu1/>
  61. <replddilsu2/>
  62. <cnstinfolist>
  63. <data1/>
  64. </cnstinfolist>
  65. <dschyn/>
  66. </send>
  67. <init>
  68. <cmb_baseinfo>
  69. <initexecorddept>
  70. <execorddeptcdnm/>
  71. <execorddeptcdid/>
  72. </initexecorddept>
  73. <initward>
  74. <wardcd/>
  75. <wardnm/>
  76. </initward>
  77. </cmb_baseinfo>
  78. </init>
  79. <hidden>
  80. <deptlist>
  81. <dept>
  82. <deptcd/>
  83. <deptnm/>
  84. </dept>
  85. <ward>
  86. <wardcd/>
  87. <wardnm/>
  88. </ward>
  89. </deptlist>
  90. <cnststatinfo>
  91. <cnststat/>
  92. </cnststatinfo>
  93. </hidden>
  94. <temp>
  95. <cnstinfo>
  96. <formrecseq/>
  97. <pid/>
  98. <rgstseqno/>
  99. <cnstdd/>
  100. <prcpgenrflag/>
  101. <orddd/>
  102. <cretno/>
  103. <cnsttype/>
  104. <formcd/>
  105. <prcpcd/>
  106. <prcpno/>
  107. <cnstseqno/>
  108. <plusyn/>
  109. <sau/>
  110. <roomcd/>
  111. </cnstinfo>
  112. </temp>
  113. </root>
  114. </instance>
  115. <script type="javascript" ev:event="xforms-ready">
  116. <![CDATA[
  117. ipt_srchdd1.value = getCurrentDate().toDate().getAddDate(-14,"D").getDateFormat("YYYYMMDD");
  118. ipt_srchdd2.value = getCurrentDate();
  119. model.refresh();
  120. submit("TRADC00101");
  121. astfAddCombo("/root/hidden/deptlist", "dept", "deptcd,deptnm", ",");
  122. astfAddCombo("/root/hidden/deptlist", "ward", "wardcd,wardnm", ",");
  123. ]]>
  124. </script>
  125. <submission id="TRADC03101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/nstcntrllist"/>
  126. <submission id="TRADC00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptinfo" replace="instance" resultref="/root/hidden/deptlist"/>
  127. <submission id="TXADC00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/cnstinfo" replace="instance" resultref="/root/hidden/cnststatinfo"/>
  128. <submission id="TXADC02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cnstinfolist/data1" replace="instance" resultref="/root/hidden/cnstinfolist"/>
  129. </model>
  130. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  131. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  132. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  133. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  134. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  135. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  136. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  137. </xhtml:head>
  138. <xhtml:body guideline="1,1195;2,748;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  139. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  140. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">NST관리 대상자 검색화면</caption>
  141. </group>
  142. <group id="group3" scroll="auto" style="left:0px; top:0px; width:1195px; height:760px; ">
  143. <datagrid id="grd_nstmngt" nodeset="/root/main/nstcntrllist/mainlist" caption="상태^EN/PN^병실/외래^진료과^등록번호^환자명^S/A^주치의/의뢰인^의뢰일^회신일^전번회신후 일수^최근회신일^최종처방일^처방코드^비고^의뢰사유^진료/입원일^퇴원일^퇴원예고/퇴원^cnstkind^cnstseqno^formrecseq^cretno^prcpgenrflag^cnststat^formcd^rgstseqno^cnstcnts8^cnstcnts9^cnstcnts10^cnstcnts11" colsep="^" colwidth="83, 70, 64, 100, 87, 73, 40, 103, 86, 81, 100, 100, 79, 100, 208, 169, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:1px; top:105px; width:1189px; height:625px; text-align:center; ">
  144. <col ref="cnststatnm" style="text-align:left; "/>
  145. <col ref="epgubun"/>
  146. <col ref="roomcd"/>
  147. <col ref="orddeptnm"/>
  148. <col ref="pid"/>
  149. <col ref="hngnm"/>
  150. <col ref="sna"/>
  151. <col ref="orddrnm"/>
  152. <col ref="firstreqdd" format="yyyy-mm-dd"/>
  153. <col ref="firstrepldd" format="yyyy-mm-dd"/>
  154. <col ref="replddilsu"/>
  155. <col ref="repldd" format="yyyy-mm-dd"/>
  156. <col ref="prcpdd" format="yyyy-mm-dd"/>
  157. <col ref="prcpcd"/>
  158. <col ref="cnstcnts20" type="input" style="text-align:left; "/>
  159. <col ref="firstsau" style="text-align:left; "/>
  160. <col ref="orddd" format="yyyy-mm-dd"/>
  161. <col ref="dschdd" format="yyyy-mm-dd"/>
  162. <col ref="dschyn"/>
  163. <col ref="cnstkind" visibility="hidden"/>
  164. <col ref="cnstseqno" visibility="hidden"/>
  165. <col ref="formrecseq" visibility="hidden"/>
  166. <col ref="cretno" visibility="hidden"/>
  167. <col ref="prcpgenrflag" visibility="hidden"/>
  168. <col ref="cnststat" visibility="hidden"/>
  169. <col ref="formcd" visibility="hidden"/>
  170. <col ref="rgstseqno" visibility="hidden"/>
  171. <col ref="cnstcnts8" visibility="hidden"/>
  172. <col ref="cnstcnts9" visibility="hidden"/>
  173. <col ref="cnstcnts10" visibility="hidden"/>
  174. <col ref="cnstcnts11" visibility="hidden"/>
  175. <script type="javascript" ev:event="ondblclick">
  176. <![CDATA[
  177. //2010-01-06 비고란 저장 가능하도록 처리 (미회신사유등록..)
  178. //if ( grd_nstmngt.isCell(event.target) && grd_nstmngt.row >= grd_nstmngt.fixedRows ) {
  179. if ( grd_nstmngt.isCell(event.target) && grd_nstmngt.row >= grd_nstmngt.fixedRows && grd_nstmngt.colRef("cnstcnts20") != grd_nstmngt.col) {
  180. //기록된 서식
  181. var cnstseqno = model.getValue("/root/main/nstcntrllist/mainlist["+grd_nstmngt.row+"]/cnstseqno" );
  182. var formrecseq = model.getValue("/root/main/nstcntrllist/mainlist["+grd_nstmngt.row+"]/formrecseq" );
  183. var formcd = model.getValue("/root/main/nstcntrllist/mainlist["+grd_nstmngt.row+"]/formcd" );
  184. var pid = model.getValue("/root/main/nstcntrllist/mainlist["+grd_nstmngt.row+"]/pid" );
  185. var cretno = model.getValue("/root/main/nstcntrllist/mainlist["+grd_nstmngt.row+"]/cretno" );
  186. var prcpgenrflag = model.getValue("/root/main/nstcntrllist/mainlist["+grd_nstmngt.row+"]/prcpgenrflag" );
  187. var rgstseqno = model.getValue("/root/main/nstcntrllist/mainlist["+grd_nstmngt.row+"]/rgstseqno" );
  188. var reqdd = model.getValue("/root/main/nstcntrllist/mainlist["+grd_nstmngt.row+"]/reqdd" );
  189. var orddd = model.getValue("/root/main/nstcntrllist/mainlist["+grd_nstmngt.row+"]/orddd" );
  190. var prcpcd = model.getValue("/root/main/nstcntrllist/mainlist["+grd_nstmngt.row+"]/prcpcd" );
  191. var prcpno = model.getValue("/root/main/nstcntrllist/mainlist["+grd_nstmngt.row+"]/prcpno" );
  192. var plusyn = model.getValue("/root/main/nstcntrllist/mainlist["+grd_nstmngt.row+"]/plusyn" );
  193. var sau = model.getValue("/root/main/nstcntrllist/mainlist["+grd_nstmngt.row+"]/sau" ); //2009-12-03 회신서출력시 [의뢰사유] 출력요청
  194. var roomcd = model.getValue("/root/main/nstcntrllist/mainlist["+grd_nstmngt.row+"]/roomcd" ); //2009-12-03 회신서출력시 [병실] 출력요청
  195. setParameter("openmode", "reccnstform");
  196. setParameter("formrecseq", formrecseq); //서식기록테이블의 formrecseq(기록순번)
  197. setParameter("pid", pid);
  198. setParameter("rgstseqno", rgstseqno);
  199. model.setValue("/root/temp/cnstinfo/cnstseqno", cnstseqno);
  200. model.setValue("/root/temp/cnstinfo/formrecseq", formrecseq);
  201. model.setValue("/root/temp/cnstinfo/pid", pid);
  202. model.setValue("/root/temp/cnstinfo/cretno", cretno);
  203. model.setValue("/root/temp/cnstinfo/prcpgenrflag", prcpgenrflag);
  204. model.setValue("/root/temp/cnstinfo/rgstseqno", rgstseqno);
  205. model.setValue("/root/temp/cnstinfo/cnstdd", reqdd);
  206. model.setValue("/root/temp/cnstinfo/orddd", orddd);
  207. model.setValue("/root/temp/cnstinfo/cnsttype","ast"); // 약품식별회신을 위한 변수 설정
  208. model.setValue("/root/temp/cnstinfo/plusyn", plusyn); //추구관리가능여부
  209. model.setValue("/root/temp/cnstinfo/sau", sau); //2009-12-03 회신서출력시 [의뢰사유] 출력요청
  210. model.setValue("/root/temp/cnstinfo/roomcd", roomcd); //2009-12-03 회신서출력시 [병실] 출력요청
  211. //********************************* 해당 의뢰건을 의뢰확정 상태로 변경 *********************************
  212. if(formrecseq != ""){
  213. var success = submit("TXADC00101");
  214. if(success){
  215. if(model.getValue("/root/hidden/cnststatinfo/cnststat") == "04")
  216. messageBox("취소된 의뢰건","I009");
  217. }
  218. }
  219. if ( formcd =="0000000770" || formcd == "0000003019"){ //NST
  220. model.setValue("/root/temp/cnstinfo/formcd",formcd); // EN, PN구분을 위한 formcd 설정
  221. if(formrecseq == ""){
  222. model.setValue("/root/temp/cnstinfo/prcpcd",prcpcd);
  223. model.setValue("/root/temp/cnstinfo/prcpno",prcpno);
  224. }
  225. modal("SMADC02600", 1, 0, 0 ,"SMADC02600","/root/temp/cnstinfo", "/root/temp/cnstinfo");
  226. btn_sea.dispatch("DOMActivate");
  227. }
  228. }
  229. ]]>
  230. </script>
  231. <script type="javascript" ev:event="onaftersort">
  232. <![CDATA[
  233. // 소트 후 인스턴스 정리
  234. grd_nstmngt.gridToInstance(); // Sort 된 Grid 상의 Data 순서와 Instance Node 상의 Data 순서를 동일하게 맞춰준다.
  235. ]]>
  236. </script>
  237. </datagrid>
  238. <group id="group2" style="left:5px; top:15px; width:1190px; height:60px; vertical-align:top; ">
  239. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1189px; height:59px; "/>
  240. <line id="line1" class="line_4" style="x1:1111px; y1:9px; x2:1111px; y2:51px; "/>
  241. <select1 id="combo10" ref="/root/hidden/deptlist/ward" class="combo_search" appearance="minimal" cols="2" style="left:670px; top:35px; width:130px; height:19px; ">
  242. <choices>
  243. <itemset nodeset="/root/hidden/deptlist/ward">
  244. <label ref="wardnm"/>
  245. <value ref="wardcd"/>
  246. </itemset>
  247. </choices>
  248. </select1>
  249. <caption id="caption5" class="search_name" style="left:580px; top:35px; width:86px; height:17px; ">병 동 :</caption>
  250. <select1 id="radio2" ref="/root/send/ioflag" class="radio_search" appearance="full" cellspacing="3" cols="3" rows="1" overflow="visible" style="left:395px; top:10px; width:153px; height:20px; border-style:none; ">
  251. <choices>
  252. <item>
  253. <label>전체</label>
  254. <value/>
  255. </item>
  256. <item>
  257. <label>입원</label>
  258. <value>I</value>
  259. </item>
  260. <item>
  261. <label>외래</label>
  262. <value>O</value>
  263. </item>
  264. </choices>
  265. </select1>
  266. <caption id="caption7" class="search_name" style="left:305px; top:10px; width:85px; height:17px; ">구 분 :</caption>
  267. <select1 id="combo1" ref="/root/hidden/deptlist/dept" class="combo_search" appearance="minimal" style="left:671px; top:9px; width:127px; height:19px; ">
  268. <choices>
  269. <itemset nodeset="/root/hidden/deptlist/dept">
  270. <label ref="deptnm"/>
  271. <value ref="deptcd"/>
  272. </itemset>
  273. </choices>
  274. </select1>
  275. <button id="btn_sea" class="btn1_letter2" style="left:1123px; top:18px; width:56px; height:22px; ">
  276. <caption>조회</caption>
  277. <script type="javascript" ev:event="DOMActivate">
  278. <![CDATA[
  279. model.setValue( "/root/send/reqdrugcd" , model.getValue("/root/send/reqdrugcd").toUpperCase() ); //2008-11-01 의뢰약품 대문자 처리
  280. model.setValue("/root/send/orddeptcd",model.getValue("/root/hidden/deptlist/dept")); // 의뢰과 선택
  281. model.setValue("/root/send/wardcd",model.getValue("/root/hidden/deptlist/ward")); // 병동 선택
  282. submit("TRADC03101");
  283. grd_nstmngt.rebuildStyle();
  284. setRowStyle("grd_nstmngt" , "1", "Y" , "dschyn", "equal" ); //그리드 특정 컬럼값을 비교하여 로우 백컬러 변경
  285. model.refresh();
  286. ]]>
  287. </script>
  288. </button>
  289. <caption id="caption9" class="search_name" visibility="visible" style="left:860px; top:10px; width:101px; height:17px; ">등 록 번 호 :</caption>
  290. <input id="input1" ref="/root/send/pid" class="input_search" visibility="visible" style="left:970px; top:9px; width:89px; height:19px; ">
  291. <script type="javascript" ev:event="onkeydown">
  292. <![CDATA[
  293. inputEnterKey("btn_sea","DOMActivate");
  294. ]]>
  295. </script>
  296. </input>
  297. <caption id="caption10" class="search_name" style="left:580px; top:10px; width:90px; height:17px; ">의 뢰 과 :</caption>
  298. <caption id="caption2" class="search_name" style="left:6px; top:11px; width:91px; height:17px; ">조회구간 :</caption>
  299. <input id="ipt_srchdd1" ref="/root/send/srchdd1" class="input_search" inputtype="date" style="left:95px; top:10px; width:87px; height:19px; "/>
  300. <input id="ipt_srchdd2" ref="/root/send/srchdd2" class="input_search" inputtype="date" style="left:194px; top:10px; width:87px; height:19px; "/>
  301. <caption id="caption13" style="left:182px; top:12px; width:15px; height:20px; ">~</caption>
  302. <caption id="caption1" class="search_name" style="left:305px; top:35px; width:90px; height:17px; ">의뢰영역 :</caption>
  303. <select1 id="rdo_nutrflag" ref="/root/send/nutrflag" class="radio_search" appearance="full" cellspacing="3" cols="4" rows="1" overflow="visible" style="left:395px; top:35px; width:125px; height:21px; border-style:none; ">
  304. <choices>
  305. <item>
  306. <label>전체</label>
  307. <value>A</value>
  308. </item>
  309. <item>
  310. <label>EN</label>
  311. <value>E</value>
  312. </item>
  313. <item>
  314. <label>PN</label>
  315. <value>P</value>
  316. </item>
  317. </choices>
  318. <script type="javascript" ev:event="onclick">
  319. <![CDATA[
  320. inputEnterKey("rdo_reqflag","onclick");
  321. ]]>
  322. </script>
  323. </select1>
  324. <input id="input2" ref="/root/send/replddilsu1" class="input_search" visibility="visible" format="#,###" style="left:970px; top:34px; width:38px; height:19px; ">
  325. <script type="javascript" ev:event="onkeydown">
  326. <![CDATA[
  327. inputEnterKey("btn_sea","DOMActivate");
  328. ]]>
  329. </script>
  330. </input>
  331. <caption id="caption3" class="search_name" visibility="visible" style="left:860px; top:35px; width:104px; height:17px; ">회신후 일수 :</caption>
  332. <input id="input3" ref="/root/send/replddilsu2" class="input_search" visibility="visible" format="#,###" style="left:1020px; top:34px; width:38px; height:19px; ">
  333. <script type="javascript" ev:event="onkeydown">
  334. <![CDATA[
  335. inputEnterKey("btn_sea","DOMActivate");
  336. ]]>
  337. </script>
  338. </input>
  339. <caption id="caption4" style="left:1008px; top:35px; width:15px; height:20px; ">~</caption>
  340. <select id="checkbox1" ref="/root/send/dschyn" overflow="visible" appearance="full" style="left:175px; top:35px; width:100px; height:15px; border-style:none; ">
  341. <choices>
  342. <item>
  343. <label>퇴원환자포함</label>
  344. <value>Y</value>
  345. </item>
  346. </choices>
  347. </select>
  348. </group>
  349. <line id="line2" class="line_1" style="x1:2px; y1:102px; x2:1191px; y2:102px; "/>
  350. <button id="button51" class="btn2_letter4" style="left:1125px; top:80px; width:64px; height:19px; ">
  351. <caption>엑셀저장</caption>
  352. <script type="javascript" ev:event="DOMActivate">
  353. <![CDATA[
  354. var file_name = window.fileDialog("save","","true","","xls","All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  355. grd_nstmngt.saveExcel(file_name);
  356. ]]>
  357. </script>
  358. </button>
  359. <caption id="caption12" class="tit_1" style="left:0px; top:0px; width:158px; height:14px; ">NST추구관리대상자검색</caption>
  360. </group>
  361. <group id="grp_btn" scroll="auto" style="left:0px; top:740px; width:1195px; height:27px; ">
  362. <button id="btn_save" class="btn4_letter2" navindex="308" style="left:1130px; top:3px; width:56px; height:22px; ">
  363. <caption>저장</caption>
  364. <script type="javascript" ev:event="DOMActivate">
  365. <![CDATA[
  366. var update = getGridUpdateData(grd_nstmngt);
  367. // var update = model.getValue("/root/send/req/data");
  368. if(update == ""){
  369. messageBox("저장할 정보가 없습니다. 확인하여 주시기바랍니다", "I");
  370. return 0;
  371. } else {
  372. model.setValue( "/root/send/cnstinfolist/data1", grd_nstmngt.getUpdateData());
  373. submit("TXADC02501");
  374. }
  375. ]]>
  376. </script>
  377. </button>
  378. </group>
  379. </xhtml:body>
  380. </xhtml:html>