SMASB02100_격리병실신청현황조회.xrw 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <cnstpatinfo>
  11. </cnstpatinfo>
  12. <cond>
  13. <cnstdd/>
  14. <fromdd/>
  15. <todd/>
  16. <reqflag>-</reqflag>
  17. <replyn>-</replyn>
  18. <ordflag>-</ordflag>
  19. <orddeptcd/>
  20. <orddrid>-</orddrid>
  21. <pid/>
  22. <hngnm/>
  23. <wardcd/>
  24. <cnsttermengnm/>
  25. <cnstfromdd/>
  26. <cnsttodd/>
  27. <chk_wbcd3/>
  28. <cnstendpat/>
  29. <inclend/>
  30. <cnstdate>R</cnstdate>
  31. <icdr/>
  32. </cond>
  33. <patinfo>
  34. <patinfolist/>
  35. </patinfo>
  36. <insumemberlist/>
  37. <paminfo/>
  38. </main>
  39. <send>
  40. <reqdata/>
  41. </send>
  42. <hidden>
  43. <condition>
  44. <pid/>
  45. <indd/>
  46. <cretno/>
  47. <orddeptcd/>
  48. </condition>
  49. </hidden>
  50. <init>
  51. <initdate>
  52. <today/>
  53. </initdate>
  54. <deptlist>
  55. </deptlist>
  56. <userlist>
  57. <usercombo>
  58. <usernm/>
  59. <userid/>
  60. </usercombo>
  61. </userlist>
  62. <warddeptlist/>
  63. <memberlist>
  64. <instcd/>
  65. <userid/>
  66. </memberlist>
  67. <hardcd/>
  68. </init>
  69. <temp>
  70. <patinfo>
  71. <pid/>
  72. <hngnm/>
  73. </patinfo>
  74. </temp>
  75. </root>
  76. </instance>
  77. <script type="javascript" ev:event="xforms-ready">
  78. <![CDATA[
  79. fInitialize();
  80. fSetParameter();
  81. // //상단정보있는경우
  82. // var pamInfoCvs = getGlobalVariable("paminfo");
  83. // if(pamInfoCvs != ""){
  84. // model.removeNodeSet("/root/main/paminfo/list");
  85. // setCSVToNode("/root/main/paminfo", pamInfoCvs);
  86. //
  87. // model.setValue("/root/main/cond/pid", model.getValue("/root/main/paminfo/list/pid"));
  88. // model.setValue("/root/main/cond/hngnm", model.getValue("/root/main/paminfo/list/hngnm"));
  89. //
  90. // model.removenode("/root/main/cnstpatinfo/cnstpatlist")
  91. // model.makeNode("/root/send/reqdata");
  92. // model.copyNode("/root/send/reqdata", "/root/main/cond");
  93. // submit("TRASB02101");
  94. //
  95. // model.refresh();
  96. // }
  97. ]]>
  98. </script>
  99. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
  100. <submission id="TRZSU10105" mediatype="application/x-www-form-urlencoded" method="post"/>
  101. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  102. <submission id="TRASB02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/cnstpatinfo"/>
  103. <submission id="TXASB02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden"/>
  104. <submission id="TRASB02102" mediatype="application/x-www-form-urlencoded" ref="/root/init/memberlist" resultref="/root/main/insumemberlist"/>
  105. <submission id="TRASB01601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/hardcd/hardcd"/>
  106. </model>
  107. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  108. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  109. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  110. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  111. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  112. <script type="javascript" src="../../../ast/infcmngtweb/js/SMASB00100.js"/>
  113. <script type="javascript">
  114. <![CDATA[
  115. function fInitialize() {
  116. // 공통코드를 조회한다.
  117. // zbcfGetCodeList( new Array(),
  118. // new Array("/root/init/A0144list", "/root/init/A0145list", "/root/init/A0124list", "/root/init/A0358list", "/root/init/A0006list") );
  119. // 진료과
  120. var instcd = getUserInfo("dutplceinstcd");
  121. var standard_yn = "orduseyn";
  122. var ord_deptflag = 'D';
  123. var rslt_ref = "/root/init/deptlist";
  124. var sort_field = "depthngnm";
  125. var sort_method = "asc";
  126. zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_method);
  127. addComboItem("cmb_orddeptcd","","","above");
  128. //병동
  129. standard_yn = "orduseyn";
  130. ord_deptflag = "W";
  131. rslt_ref = "/root/init/warddeptlist";
  132. sort_field = "deptcd";
  133. sort_method = "asc";
  134. zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_field, sort_method);
  135. addComboItem("cmb_wardcd","","","above");
  136. // 보험팀일 경우에만 보험팀 확인여부 컬럼과 저장 버튼이 보이도록 설정
  137. var deptcd = getUserInfo("dutplcecd");
  138. var userid = getUserInfo("userid");
  139. model.removenode("/root/init/memberlist")
  140. model.makeNode("/root/init/memberlist");
  141. model.makeValue("/root/init/memberlist/instcd",instcd);
  142. model.makeValue("/root/init/memberlist/userid",userid);
  143. submit("TRASB02102");
  144. var insumember = model.getValue("/root/main/insumemberlist/insumemberlist/judgrid");
  145. //if (deptcd == "4071300000" || deptcd == "4070300000" ) {
  146. // 보험팀조직개편으로 인한 보험팀확인여부 보험심사자마스터에서 조회하여 비교
  147. if (userid == insumember) {
  148. grd_cnstpatlist.colDisabled(grd_cnstpatlist.colRef("insucnfmyn")) = false;
  149. //grd_cnstpatlist.colHidden(grd_cnstpatlist.colRef("insucnfmyn")) = false;
  150. btn_save.visible = true;
  151. }
  152. model.refresh();
  153. }
  154. function fSetParameter(){
  155. var today = getCurrentDate();
  156. var idate = new Date();
  157. var peveDate = idate.getAddDate(-1, "M");
  158. model.setValue("/root/init/initdate/today", today);
  159. model.makeValue("/root/send/cond/fromdd", peveDate.getDateFormat());
  160. model.makeValue("/root/send/cond/todd", today);
  161. model.setValue("/root/main/cond/fromdd", peveDate.getDateFormat());
  162. model.setValue("/root/main/cond/todd", today);
  163. model.refresh();
  164. }
  165. /* //상단정보설정
  166. function fUpInfo(){
  167. var sessionPID = getPatientId();
  168. if(sessionPID != model.getValue("/root/main/cnstpatinfo/cnstpatlist["+grd_cnstpatlist.row+"]/pid")){
  169. fReqOpPatPamInfo();
  170. }
  171. }
  172. function fReqOpPatPamInfo(){
  173. var tioflag=model.getValue("/root/main/cnstpatinfo/cnstpatlist["+grd_cnstpatlist.row+"]/ioflag");
  174. if(tioflag == "I") {
  175. var ioflag="I";
  176. var pid= model.getValue("/root/main/cnstpatinfo/cnstpatlist["+grd_cnstpatlist.row+"]/pid");
  177. var indd=model.getValue("/root/main/cnstpatinfo/cnstpatlist["+grd_cnstpatlist.row+"]/indd");
  178. var cretno=model.getValue("/root/main/cnstpatinfo/cnstpatlist["+grd_cnstpatlist.row+"]/cretno") ;
  179. var seqno=model.getValue("/root/main/cnstpatinfo/cnstpatlist["+grd_cnstpatlist.row+"]/seqno");
  180. var instcd=getUserInfo("dutplceinstcd");
  181. var srchdd=getCurrentDate();
  182. var param= ioflag + "▦" //입원환자
  183. + pid + "▦"
  184. + indd + "▦"
  185. + cretno + "▦"
  186. + instcd+ "▦";
  187. setParameter("condparam", param);
  188. }
  189. else if(tioflag == "O") {
  190. var ioflag="O";
  191. var pid= model.getValue("/root/main/cnstpatinfo/cnstpatlist["+grd_cnstpatlist.row+"]/pid");
  192. var orddd=model.getValue("/root/main/cnstpatinfo/cnstpatlist["+grd_cnstpatlist.row+"]/indd");
  193. var cretno=model.getValue("/root/main/cnstpatinfo/cnstpatlist["+grd_cnstpatlist.row+"]/cretno") ;
  194. var instcd=getUserInfo("dutplceinstcd");
  195. var srchdd=getCurrentDate();
  196. var param= ioflag + "▦" //외래환자
  197. + pid + "▦"
  198. + orddd + "▦"
  199. + cretno + "▦"
  200. + instcd + "▦"
  201. + srchdd;
  202. setParameter("condparam", param);
  203. }
  204. modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  205. } */
  206. /**
  207. * @desc : 환자 등록번호를 통한 환자 이름 가져오기
  208. * @
  209. * @param :
  210. * @return :
  211. * @author : 김영학
  212. * @---------------------------------------------------
  213. */
  214. function fPatSrch(s_val, flag){
  215. if(flag == "1"){
  216. model.makeValue("/root/tmp/pid", s_val);
  217. } else if(flag == "2"){
  218. model.makeValue("/root/tmp/hngnm", s_val);
  219. }
  220. model.makeValue("/root/tmp/srchcond", flag);
  221. model.makeValue("/root/tmp/autoflag","Y"); // 1건인경우 자동으로닫힘
  222. model.resetInstanceNode("/root/main/patinfo/patinfolist");
  223. modal("SPPMC02500", 1,10, 10, "SPPMC02500", "/root/tmp", "/root/send");
  224. model.refresh();
  225. }
  226. function fReqOpPatPamInfo(){
  227. var Currecdd = getCurrentDate();
  228. var currow = grd_cnstpatlist.row-1;
  229. if(currow < 1){
  230. return;
  231. }
  232. //@@@@ 상단정보 세팅 (감염관리실에서만 사용)
  233. asbfGetHardCodeInfoNm("/root/send/reqdata", "/root/init/hardcd", "C1");
  234. var usercdok = model.getValue("/root/init/hardcd/hardcd/hardcdnm");
  235. var userdeptcd = getUserInfo( "dutplcecd" );
  236. if(usercdok == userdeptcd){ //감염관리실 사용자의 경우에만,
  237. var ordtype=model.getValue("/root/main/cnstpatinfo/cnstpatlist["+currow+"]/ioflag");
  238. var pid=model.getValue("/root/main/cnstpatinfo/cnstpatlist["+currow+"]/pid");
  239. var indd=model.getValue("/root/main/cnstpatinfo/cnstpatlist["+currow+"]/indd");
  240. var cretno=model.getValue("/root/main/cnstpatinfo/cnstpatlist["+currow+"]/cretno");
  241. var recdd=model.getValue("/root/main/cnstpatinfo/cnstpatlist["+currow+"]/dschdd");
  242. if (recdd=="" || isNull(recdd)){
  243. recdd=Currecdd;
  244. }
  245. var instcd=getUserInfo("dutplceinstcd");
  246. //var recdd=Currecdd;
  247. var param=ordtype+"▦"+pid+"▦"+indd+"▦"+cretno+"▦"+instcd+"▦"+recdd;
  248. setParameter("condparam", param);
  249. modal("SPMMO08900", 1, 0, 0, "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  250. }
  251. }
  252. ]]>
  253. </script>
  254. </xhtml:head>
  255. <xhtml:body idprefix="import" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  256. <group id="group3" scroll="auto" style="left:0px; top:0px; width:1195px; height:784px; ">
  257. <group id="group2" style="left:0px; top:0px; width:1195px; height:784px; vertical-align:top; ">
  258. <line id="line4" class="line_3" style="x1:0px; y1:781px; x2:1194px; y2:781px; "/>
  259. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  260. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:145px; height:14px; ">격리병실신청현황조회</caption>
  261. </group>
  262. </group>
  263. </group>
  264. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  265. <button id="btn_print" class="btn6_letter2" visibility="hidden" style="left:5px; top:3px; width:56px; height:22px; ">
  266. <caption>출력</caption>
  267. <script type="javascript" ev:event="DOMActivate">
  268. <![CDATA[
  269. exeReportPreview("RPASB02100_격리병실신청현황조회", "XMLSTR");
  270. ]]>
  271. </script>
  272. </button>
  273. <button id="btn_init" class="btn4_letter3" style="left:1126px; top:3px; width:68px; height:22px; ">
  274. <caption>초기화</caption>
  275. <script type="javascript" ev:event="DOMActivate">
  276. <![CDATA[
  277. model.removeNodeset("/root/main/cnstpatinfo");
  278. model.refresh();
  279. ]]>
  280. </script>
  281. </button>
  282. </group>
  283. <group id="grp_biz" scroll="auto" style="left:0px; top:20px; width:1195px; height:735px; ">
  284. <group id="group6" style="left:0px; top:0px; width:1194px; height:65px; vertical-align:top; ">
  285. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:2px; width:1194px; height:61px; background-color:#fffbf2; border-color:#ffd799; "/>
  286. <input id="ipt_pid" ref="/root/main/cond/pid" class="input_search" style="left:595px; top:10px; width:100px; height:19px; ">
  287. <script type="javascript" ev:event="onkeyup">
  288. <![CDATA[
  289. inputEnterKey("btn_patsrch", "DOMActivate");
  290. ]]>
  291. </script>
  292. <script type="javascript" ev:event="onclick">
  293. <![CDATA[
  294. model.setValue("/root/main/cond/pid", "");
  295. model.setValue("/root/main/cond/hngnm", "");
  296. model.refresh();
  297. ]]>
  298. </script>
  299. <script type="javascript" ev:event="DOMFocusOut">
  300. <![CDATA[
  301. // var pidlength = model.getValue("/root/main/cond/pid");
  302. // if( pidlength.length > 0 && pidlength.length < 8) {
  303. // model.alert("등록번호는 8자리 이상입니다.");
  304. // model.setFocus("ipt_pid");
  305. // return;
  306. // }
  307. ]]>
  308. </script>
  309. </input>
  310. <caption id="cap_orddeptcd" class="search_name" style="left:261px; top:10px; width:86px; height:17px; ">신청과별 :</caption>
  311. <button id="btn_prcpclsnm" class="icon_search" style="left:879px; top:11px; width:16px; height:16px; ">
  312. <caption/>
  313. <script type="javascript" ev:event="DOMActivate">
  314. <![CDATA[
  315. modal("SPPMC02500");
  316. var sPid = model.getValue("/root/main/patinfo/patinfolist/pid");
  317. var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  318. model.setValue("/root/main/cond/pid", sPid);
  319. model.setValue("/root/main/cond/hngnm", sHngnm);
  320. model.refresh();
  321. ]]>
  322. </script>
  323. </button>
  324. <caption id="cap_pid" class="search_name" style="left:509px; top:10px; width:86px; height:17px; ">등록번호 :</caption>
  325. <input id="ipt_hngnm" ref="/root/main/cond/hngnm" class="input_search" style="left:775px; top:10px; width:100px; height:19px; ">
  326. <script type="javascript" ev:event="onkeyup">
  327. <![CDATA[
  328. inputEnterKey("btn_patsrch", "DOMActivate");
  329. ]]>
  330. </script>
  331. <script type="javascript" ev:event="onclick">
  332. <![CDATA[
  333. model.setValue("/root/main/cond/pid", "");
  334. model.setValue("/root/main/cond/hngnm", "");
  335. model.refresh();
  336. ]]>
  337. </script>
  338. </input>
  339. <input id="ipt_todd" ref="/root/main/cond/todd" class="input_s_essential" inputtype="date" style="left:318px; top:37px; width:97px; height:19px; "/>
  340. <select id="chk_wbc" ref="/root/main/cond/chk_wbcd3" disabled="true" overflow="visible" appearance="full" style="left:900px; top:10px; width:150px; height:15px; border-style:none; ">
  341. <choices>
  342. <item>
  343. <label>백혈구감소증 D3만보기</label>
  344. <value>D</value>
  345. </item>
  346. </choices>
  347. <script type="javascript" ev:event="xforms-value-changed">
  348. <![CDATA[
  349. if(model.getValue("/root/main/cond/chk_wbcd3") == 'D') {
  350. }
  351. ]]>
  352. </script>
  353. </select>
  354. <select1 id="cmb_orddeptcd" ref="/root/main/cond/orddeptcd" class="combo_default" appearance="minimal" style="left:350px; top:10px; width:150px; height:19px; ">
  355. <choices>
  356. <itemset nodeset="/root/init/deptlist/dept">
  357. <label ref="depthngnm"/>
  358. <value ref="deptcd"/>
  359. </itemset>
  360. </choices>
  361. </select1>
  362. <caption id="caption7" style="left:302px; top:38px; width:15px; height:20px; ">~</caption>
  363. <line id="line3" style="x1:1110px; y1:10px; x2:1110px; y2:58px; border-color:#ffe4bb; border-left-style:solid; "/>
  364. <caption id="cap_hngnm" class="search_name" style="left:701px; top:10px; width:83px; height:17px; ">환자명 :</caption>
  365. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:24px; width:56px; height:22px; ">
  366. <caption>조회</caption>
  367. <script type="javascript" ev:event="DOMActivate">
  368. <![CDATA[
  369. // if(!isRequiredControls(("ipt_fromdd", "ipt_todd") ||"chk_inclend")){
  370. // return;
  371. // }
  372. model.removenode("/root/main/cnstpatinfo/cnstpatlist")
  373. model.makeNode("/root/send/reqdata");
  374. model.copyNode("/root/send/reqdata", "/root/main/cond");
  375. submit("TRASB02101");
  376. ]]>
  377. </script>
  378. </button>
  379. <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_s_essential" inputtype="date" style="left:200px; top:36px; width:97px; height:19px; "/>
  380. <caption id="cap_todd" class="search_name" style="left:5px; top:36px; width:86px; height:17px; ">기간조회 :</caption>
  381. <caption id="cap_wardcd" class="search_name" style="left:5px; top:10px; width:83px; height:17px; ">병 동 별 :</caption>
  382. <select1 id="cmb_wardcd" ref="/root/main/cond/wardcd" class="combo_default" appearance="minimal" style="left:99px; top:10px; width:150px; height:19px; ">
  383. <choices>
  384. <itemset nodeset="/root/init/warddeptlist/dept">
  385. <label ref="depthngnm"/>
  386. <value ref="deptcd"/>
  387. </itemset>
  388. </choices>
  389. </select1>
  390. <caption id="cap_cnsttermengnm" class="search_name" style="left:509px; top:39px; width:104px; height:17px; ">격리진단별 :</caption>
  391. <select1 id="ipt_cnsttermengnm" ref="/root/main/cond/cnsttermengnm" class="combo_default" disabled="true" appearance="minimal" style="left:615px; top:37px; width:260px; height:19px; ">
  392. <script type="javascript" ev:event="xforms-value-changed">
  393. <![CDATA[
  394. ]]>
  395. </script>
  396. </select1>
  397. <select id="chk_incend" ref="/root/main/cond/inclend" overflow="visible" appearance="full" style="left:425px; top:40px; width:70px; height:15px; border-style:none; ">
  398. <choices>
  399. <item>
  400. <label>완료포함</label>
  401. <value>Y</value>
  402. </item>
  403. </choices>
  404. <script type="javascript" ev:event="xforms-value-changed">
  405. <![CDATA[
  406. /*
  407. var chk_inclend = model.getValue("/root/main/cond/chk_inclend");
  408. var today = getCurrentDate();
  409. var idate = new Date();
  410. var peveDate = idate.getAddDate(-1, "M");
  411. if (chk_inclend == "Y") {
  412. ipt_fromdd.disabled = true;
  413. ipt_fromdd.value = ""
  414. ipt_todd.disabled = true;
  415. ipt_todd.value = ""
  416. }
  417. else {
  418. ipt_fromdd.disabled = false;
  419. ipt_fromdd.value = peveDate.getDateFormat();
  420. ipt_todd.disabled = false;
  421. ipt_todd.value = today;
  422. }
  423. */
  424. ]]>
  425. </script>
  426. </select>
  427. <button id="importbutton1" class="icon_search" visibility="hidden" style="left:879px; top:40px; width:16px; height:16px; ">
  428. <caption/>
  429. <script type="javascript" ev:event="DOMActivate">
  430. <![CDATA[
  431. modal("SPPMC02500");
  432. var sPid = model.getValue("/root/main/patinfo/patinfolist/pid");
  433. var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  434. model.setValue("/root/main/cond/pid", sPid);
  435. model.setValue("/root/main/cond/hngnm", sHngnm);
  436. model.refresh();
  437. ]]>
  438. </script>
  439. </button>
  440. <select1 id="cmb_cnstdate" ref="/root/main/cond/cnstdate" class="combo_default" appearance="minimal" style="left:100px; top:36px; width:95px; height:19px; ">
  441. <choices>
  442. <item>
  443. <label>격리신청일</label>
  444. <value>R</value>
  445. </item>
  446. <item>
  447. <label>격리개시일</label>
  448. <value>F</value>
  449. </item>
  450. </choices>
  451. <script type="javascript" ev:event="xforms-value-changed">
  452. <![CDATA[
  453. var icdr = model.getValue("/root/main/cond/cnstendpat" );
  454. var cnstdate = model.getValue("/root/main/cond/cnstdate" );
  455. if (icdr =="Y" ||cnstdate =="F" ) {
  456. model.setValue("/root/main/cond/icdr", "I");
  457. } else {
  458. model.setValue("/root/main/cond/icdr", "");
  459. }
  460. ]]>
  461. </script>
  462. </select1>
  463. <button id="btn_patsrch" disabled="true" style="left:1045px; top:9px; width:45px; height:20px; ">
  464. <caption/>
  465. <script type="javascript" ev:event="DOMActivate">
  466. <![CDATA[
  467. var pid = model.getValue("/root/main/cond/pid");
  468. var hngnm = model.getValue("/root/main/cond/hngnm");
  469. if((pid =="")&&(hngnm !="")){
  470. fPatSrch(hngnm, "2");
  471. } else if((pid !="")&&(hngnm == "")){
  472. fPatSrch(pid, "1");
  473. } else {
  474. modal("SPPMC02500")
  475. }
  476. model.setValue("/root/main/cond/pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
  477. model.setValue("/root/main/cond/hngnm",model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  478. model.refresh();
  479. ]]>
  480. </script>
  481. </button>
  482. <bool id="chk_toendpat" checkvalue="Y,N" ref="/root/main/cond/cnstendpat" style="left:900px; top:40px; width:15px; height:15px; ">
  483. <script type="javascript" ev:event="xforms-value-changed">
  484. <![CDATA[
  485. var icdr = model.getValue("/root/main/cond/cnstendpat" );
  486. var cnstdate = model.getValue("/root/main/cond/cnstdate" );
  487. if (icdr =="Y" ||cnstdate =="F" ) {
  488. model.setValue("/root/main/cond/icdr", "I");
  489. } else {
  490. model.setValue("/root/main/cond/icdr", "");
  491. }
  492. ]]>
  493. </script>
  494. </bool>
  495. <caption id="importcaption1" style="left:915px; top:38px; width:182px; height:20px; ">금일 격리 종료환자 보기(D3포함)</caption>
  496. </group>
  497. <caption id="caption3" class="tit_2" style="left:1px; top:75px; width:126px; height:13px; vertical-align:middle; ">격리병실 신청현황</caption>
  498. <line id="line6" class="line_1" style="x1:0px; y1:90px; x2:1194px; y2:90px; "/>
  499. <datagrid id="grd_cnstpatlist" nodeset="/root/main/cnstpatinfo/cnstpatlist" caption="보험팀&#xA;확인여부^서식기록번호^등록&#xA;번호^성명^진행&#xA;상태^감염내과&#xA;승인여부^입원일^의뢰과^전문의^의뢰&#xA;의사^격리진단코드^격리진단명^기타사유^격리&#xA;신청일^의사격리&#xA;승인일^원무&#xA;승인일^격리&#xA;종료일^인실구분^재원병동^재원&#xA;병실^이전&#xA;병실^격리&#xA;병실^S/A^의뢰내용^주진단&#xA;코드^검사정보^검사정보^검사정보^퇴원&#xA;일자^cretno^보험팀&#xA;확인자^보험팀&#xA;확인시간^caption1^caption2^seqno^ioflag^instcd^orddd|보험팀&#xA;확인여부^서식기록번호^등록&#xA;번호^성명^진행&#xA;상태^감염내과&#xA;승인여부^입원일^의뢰과^전문의^의뢰&#xA;의사^격리진단코드^격리진단명^기타사유^격리&#xA;신청일^의사격리&#xA;승인일^원무&#xA;승인일^격리&#xA;종료일^인실구분^재원병동^재원&#xA;병실^이전&#xA;병실^격리&#xA;병실^S/A^의뢰내용^주진단&#xA;코드^검사일자^ANC^500이상^퇴원&#xA;일자^cretno^보험팀&#xA;확인자^보험팀&#xA;확인시간^caption1^caption2^seqno^ioflag^instcd^orddd" colsep="^" colwidth="56, 28, 65, 53, 55, 56, 70, 80, 60, 60, 11, 95, 116, 70, 70, 70, 70, 91, 87, 50, 50, 50, 52, 230, 85, 70, 50, 50, 70, 27, 52, 100, 100, 100" ellipsis="true" explorerbar="sort" extendlastcol="scroll" frozencols="13" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:95px; width:1190px; height:640px; ">
  500. <col checkvalue="Y,N" disabled="true" ref="insucnfmyn" type="checkbox"/>
  501. <col ref="formrecseq" visibility="hidden"/>
  502. <col editable="false" ref="pid" type="input" style="text-align:center; "/>
  503. <col ref="hngnm" style="text-align:center; "/>
  504. <col ref="cnststat" style="text-align:center; vertical-align:middle; "/>
  505. <col ref="cnstcnfm" style="text-align:center; "/>
  506. <col ref="indd" format="yyyy-mm-dd" style="left:235px; top:43px; width:80px; height:23px; text-align:center; "/>
  507. <col ref="reqdeptnm" style="text-align:center; "/>
  508. <col ref="medispclnm" style="text-align:center; "/>
  509. <col ref="requsernm" style="text-align:center; "/>
  510. <col ref="cnstdiagcd" visibility="hidden"/>
  511. <col ref="cnstdiagnm"/>
  512. <col ref="cnstdiagcnt"/>
  513. <col ref="reqdt" format="yyyy-mm-dd" style="text-align:center; "/>
  514. <col ref="cnstcnfmfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  515. <col ref="cnstfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  516. <col ref="cnsttodd" format="yyyy-mm-dd" style="text-align:center; "/>
  517. <col ref="roomgrdecd" style="text-align:left; "/>
  518. <col ref="wardnm" style="text-align:left; "/>
  519. <col ref="orroomcd" style="text-align:center; "/>
  520. <col ref="roomcd" style="text-align:center; "/>
  521. <col ref="cnstroomcd" style="text-align:center; "/>
  522. <col ref="sa" style="text-align:center; "/>
  523. <col ref="detreccnts"/>
  524. <col ref="diagcd" style="text-align:center; "/>
  525. <col ref="lstinsdate" format="yyyy-mm-dd" style="text-align:center; "/>
  526. <col ref="anc" style="text-align:center; "/>
  527. <col ref="overfh" style="text-align:center; "/>
  528. <col ref="dschdd" format="yyyy-mm-dd" style="text-align:center; "/>
  529. <col ref="instcd" visibility="hidden"/>
  530. <col ref="insuchknm" style="text-align:center; "/>
  531. <col ref="insucnfmtm" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  532. <col ref="ioflag" visibility="hidden"/>
  533. <col ref="cretno" visibility="hidden"/>
  534. <script type="javascript" ev:event="onmousedown">
  535. <![CDATA[
  536. setPopupMenu("grd_cnstpatlist", false, "/root/popupmenu/menu/item", "name", "func");
  537. ]]>
  538. </script>
  539. <!--
  540. <script type="javascript" ev:event="ondblclick">
  541. <![CDATA[
  542. if((grd_cnstpatlist.mouseRow > 0) && ( grd_cnstpatlist.mouseRow <= grd_cnstpatlist.rows )) {
  543. fReqCnstPatPamInfo();
  544. }
  545. ]]>
  546. </script>
  547. -->
  548. <script type="javascript" ev:event="onaftersort">
  549. <![CDATA[
  550. grd_cnstpatlist.gridToInstance();
  551. ]]>
  552. </script>
  553. <script type="javascript" ev:event="onclick">
  554. <![CDATA[
  555. var row = grd_cnstpatlist.row-1;
  556. model.makeValue("/root/temp/patinfo/pid",model.getValue("/root/main/cnstpatinfo/cnstpatlist["+row+"]/pid"));
  557. model.makeValue("/root/temp/patinfo/hngnm",model.getValue("/root/main/cnstpatinfo/cnstpatlist["+row+"]/hngnm"));
  558. ]]>
  559. </script>
  560. <script type="javascript" ev:event="ondblclick">
  561. <![CDATA[
  562. fReqOpPatPamInfo();
  563. ]]>
  564. </script>
  565. </datagrid>
  566. <line id="importline1" class="line_3" style="x1:0px; y1:735px; x2:1194px; y2:735px; "/>
  567. <button id="btn_excel" class="btn2_letter2" style="left:1149px; top:70px; width:42px; height:19px; ">
  568. <caption>엑셀</caption>
  569. <script type="javascript" ev:event="DOMActivate">
  570. <![CDATA[
  571. // var fileName = window.fileDialog("save", ",", false, "격리병실신청현황", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  572. // if (fileName != ""){
  573. // grd_cnstpatlist.saveExcel(fileName, "SheetName", false, false, "", "", false);
  574. // }
  575. var fileName = window.fileDialog("save", ",", false, "격리병실신청현황", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  576. if (fileName != ""){
  577. grd_cnstpatlist.saveExcel(fileName, "격리병실신청현황", true, true, "", "", false);
  578. var s = fileName.lastIndexOf("\\");
  579. var fileName=fileName.substring(s+1);
  580. var rmsg = messageBox("저장된 Excel을", "Q004");
  581. if( rmsg == 6 ){
  582. window.exec("excel.exe", fileName);
  583. }
  584. }
  585. ]]>
  586. </script>
  587. </button>
  588. <button id="btn_save" class="btn5_letter2" visibility="hidden" style="left:1026px; top:70px; width:42px; height:19px; ">
  589. <caption>저장</caption>
  590. <script type="javascript" ev:event="DOMActivate">
  591. <![CDATA[
  592. model.removeNodeset("/root/send/reqdata");
  593. model.makeValue("/root/send/reqdata", grd_cnstpatlist.getUpdateData());
  594. submit("TXASB02101");
  595. btn_search.dispatch("DOMActivate");
  596. ]]>
  597. </script>
  598. </button>
  599. <button id="importbutton2" class="btn2_letter5" style="left:1071px; top:70px; width:75px; height:19px; ">
  600. <caption>컨설트 조회</caption>
  601. <script type="javascript" ev:event="DOMActivate">
  602. <![CDATA[
  603. var sessionPID = getPatientId();
  604. var iRow=grd_cnstpatlist.row;
  605. if(sessionPID != model.getValue("/root/main/cnstpatinfo/cnstpatlist["+iRow+"]/pid")){
  606. fReqOpPatPamInfo();
  607. }
  608. modal("SMMMR05000");
  609. //pid▦orddd▦cretno▦ioflag▦orddeptcd▦orddrid▦
  610. // var rtnmsg_header="pid▦orddd▦cretno▦ioflag▦orddeptcd▦orddrid▩";
  611. // var rtnmsg_data="";
  612. // rtnmsg_data+=model.getValue("/root/main/cnstpatinfo/cnstpatlist["+grd_cnstpatlist.row+"]/pid") +"▦"
  613. // + model.getValue("/root/main/cnstpatinfo/cnstpatlist["+grd_cnstpatlist.row+"]/orddd") +"▦"
  614. // + model.getValue("/root/main/cnstpatinfo/cnstpatlist["+grd_cnstpatlist.row+"]/cretno") +"▦"
  615. // + model.getValue("/root/main/cnstpatinfo/cnstpatlist["+grd_cnstpatlist.row+"]/ioflag") +"▦"
  616. // + model.getValue("/root/main/cnstpatinfo/cnstpatlist["+grd_cnstpatlist.row+"]/orddeptcd") +"▦"
  617. // + model.getValue("/root/main/cnstpatinfo/cnstpatlist["+grd_cnstpatlist.row+"]/orddrid") +"▩";
  618. // setParameter("SMMMR05000_param_pinfo", rtnmsg_header+rtnmsg_data);
  619. //@@@@@@@@@@@@@@@@@여기까지
  620. // modal("SMMMR05000", 1,150,150, "SMMMR05000");
  621. ]]>
  622. </script>
  623. </button>
  624. </group>
  625. </xhtml:body>
  626. </xhtml:html>