SMAEA04900_치료대상자관리.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551
  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. <cureexamlist>
  11. <mainlist>
  12. <prcpdd/>
  13. <excuexectodd/>
  14. <pid/>
  15. <hngnm/>
  16. <sex/>
  17. <tel/>
  18. <examgoal/>
  19. <remfact/>
  20. </mainlist>
  21. </cureexamlist>
  22. <curersrvinfo>
  23. <mainlist>
  24. <choi/>
  25. <curecfrmyn/>
  26. <drugqty/>
  27. <statcd/>
  28. <curedg5/>
  29. <roomcd/>
  30. <remfact/>
  31. <genrdd/>
  32. <genrno/>
  33. </mainlist>
  34. </curersrvinfo>
  35. <curersrvlist>
  36. <mainlist>
  37. <flag/>
  38. <pid/>
  39. <hngnm/>
  40. <rrgstno1/>
  41. <rrgstno2/>
  42. <sex/>
  43. <age/>
  44. <hometel/>
  45. <mpphontel/>
  46. <curersrvdd/>
  47. <genrdd/>
  48. <genrno/>
  49. <suppdeptcd/>
  50. <statcd/>
  51. <cntctel/>
  52. <orddeptcd/>
  53. <orddrid/>
  54. <curedg1/>
  55. <curedgseq1/>
  56. <curedg2/>
  57. <curedgseq2/>
  58. <curedg3/>
  59. <curedgseq3/>
  60. <curedg4/>
  61. <curedgseq4/>
  62. <curedg5/>
  63. <curedgseq5/>
  64. <curedg6/>
  65. <curedgseq6/>
  66. <remfact/>
  67. <startdd/>
  68. <endcnts/>
  69. <curecfrmyn/>
  70. <drugqty/>
  71. <wardcd/>
  72. <roomcd/>
  73. </mainlist>
  74. </curersrvlist>
  75. <popupendflag/>
  76. <patinfo>
  77. <patinfolist/>
  78. </patinfo>
  79. </main>
  80. <send>
  81. <data>
  82. <srchlfag/>
  83. <srchdate1/>
  84. <srchdate2/>
  85. <srchdate3/>
  86. <srchdate4/>
  87. <srchpid/>
  88. <hngnm/>
  89. <srchcnfmyn/>
  90. <pid/>
  91. <srchioflag/>
  92. <excuroomgrpcdid>치료,투약실</excuroomgrpcdid>
  93. </data>
  94. <savedata/>
  95. <data2>
  96. <srchcond/>
  97. <pid/>
  98. <hngnm/>
  99. <rrgstno1/>
  100. <rrgstno2/>
  101. <acptdd/>
  102. </data2>
  103. <globalinstance>
  104. <instance1/>
  105. </globalinstance>
  106. <data3>
  107. <newElement/>
  108. </data3>
  109. </send>
  110. <hidden>
  111. <srchcond/>
  112. <pid/>
  113. <hngnm/>
  114. <rrgstno1/>
  115. <rrgstno2/>
  116. <session/>
  117. </hidden>
  118. <init>
  119. <today/>
  120. <roomlist/>
  121. <orddeptcd>
  122. <cd/>
  123. <nm/>
  124. <deptengabbr/>
  125. <reqdeptno/>
  126. </orddeptcd>
  127. <orddrid>
  128. <cd/>
  129. <nm/>
  130. <dp/>
  131. <sp/>
  132. </orddrid>
  133. <item>
  134. <roomlist>
  135. <roomnm/>
  136. </roomlist>
  137. </item>
  138. </init>
  139. </root>
  140. </instance>
  141. <script type="javascript" ev:event="xforms-ready">
  142. <![CDATA[
  143. // 부서코드 설정
  144. aezfSetSuppDeptcd();
  145. fInit();
  146. ]]>
  147. </script>
  148. <submission id="TRPMOCOM01" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/session" replace="instance" resultref="/root/init"/>
  149. <submission id="TRAEB02802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/item"/>
  150. <submission id="TRAEA04901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/cureexamlist"/>
  151. <submission id="TRAEA04902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/curersrvinfo"/>
  152. <submission id="TRAEA04903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/curersrvlist"/>
  153. <submission id="TXAEA04901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/curescheinfo/maininfo" resultref="/root/temp"/>
  154. <submission id="TXAEA04902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/curescheinfo/maininfo/list" resultref="/root/temp"/>
  155. <submission id="TRAEA04904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/item"/>
  156. </model>
  157. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  158. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  159. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  160. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  161. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  162. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  163. <script type="javascript">
  164. <![CDATA[
  165. function fInit() {
  166. // 진료과/진료의 조회
  167. submit("TRPMOCOM01", false);
  168. model.removenode("/root/main/cureexamlist");
  169. model.removenode("/root/main/curersrvinfo");
  170. model.removenode("/root/main/curersrvlist");
  171. var baseDate = getCurrentDate().toDate("YYYYMMDD");
  172. var nowDay = baseDate.getDayOfWeek("N");
  173. var dayCnt = - (eval(nowDay) - 1) ;
  174. model.setValue("/root/send/data/srchdate1", ((getCurrentDate()).toDate()).getAddDate(dayCnt).getDateFormat());
  175. model.setValue("/root/send/data/srchdate2", ((getCurrentDate()).toDate()).getAddDate(dayCnt+6).getDateFormat());
  176. model.setValue("/root/send/data/srchdate3", getCurrentDate());
  177. model.setValue("/root/send/data/srchdate4", ((getCurrentDate()).toDate()).getAddDate(30).getDateFormat());
  178. model.makeValue("/root/send/wardcd","3050135000");
  179. model.makeValue("/root/send/newoldyb","1");
  180. model.setValue("/root/send/data/srchioflag", "I");
  181. submit("TRAEB02802");
  182. model.refresh();
  183. }
  184. // 검사예약대상자현황
  185. function fGetExamRsrvList() {
  186. var srchpid = model.getValue("/root/send/data/srchpid");
  187. if (srchpid == "") {
  188. var srchdate1 = model.getValue("/root/send/data/srchdate1");
  189. if (srchdate1 == "") {
  190. messageBox("조회시작일자를 선택해 주십시오.","I999");
  191. return "0";
  192. }
  193. var srchdate2 = model.getValue("/root/send/data/srchdate2");
  194. if (srchdate2 == "") {
  195. messageBox("조회종료일자를 선택해 주십시오.","I999");
  196. return "0";
  197. }
  198. }
  199. model.removenode("/root/main/cureexamlist");
  200. model.removenode("/root/main/curersrvinfo");
  201. submit("TRAEA04901");
  202. submit("TRAEA04903");
  203. model.refresh();
  204. }
  205. // 치료예약대상자현황
  206. function fGetCureScheList() {
  207. var srchdate1 = model.getValue("/root/send/data/srchdate3");
  208. if (srchdate1 == "") {
  209. messageBox("조회시작일자를 선택해 주십시오.","I999");
  210. return "0";
  211. }
  212. var srchdate2 = model.getValue("/root/send/data/srchdate4");
  213. if (srchdate2 == "") {
  214. messageBox("조회종료일자를 선택해 주십시오.","I999");
  215. return "0";
  216. }
  217. model.removenode("/root/main/curersrvlist");
  218. submit("TRAEA04903");
  219. model.refresh();
  220. }
  221. ]]>
  222. </script>
  223. </xhtml:head>
  224. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  225. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:5px; top:16px; width:1185px; height:34px; background-color:#fffbf2; border-color:#ffd799; "/>
  226. <button id="button6" class="icon_search" style="left:543px; top:24px; width:16px; height:16px; ">
  227. <caption/>
  228. <script type="javascript" ev:event="onclick">
  229. <![CDATA[
  230. fGetPopInfo();
  231. ]]>
  232. </script>
  233. </button>
  234. <caption id="caption3" class="search_name" style="left:10px; top:25px; width:120px; height:17px; ">검사조회일자 :</caption>
  235. <button id="btn_req" class="btn1_letter2" style="left:1125px; top:22px; width:56px; height:22px; ">
  236. <caption>조회</caption>
  237. <script type="javascript" ev:event="DOMActivate">
  238. <![CDATA[
  239. fGetExamRsrvList();
  240. // 치료 대상자 현황 병실
  241. submit("TRAEA04904");
  242. ]]>
  243. </script>
  244. </button>
  245. <input id="input36" ref="/root/send/data/srchdate2" class="input_s_essential" inputtype="date" style="left:230px; top:24px; width:100px; height:19px; "/>
  246. <input id="input37" ref="/root/send/data/srchdate1" class="input_s_essential" inputtype="date" style="left:127px; top:24px; width:100px; height:19px; "/>
  247. <caption id="caption58" class="search_name" style="left:349px; top:25px; width:86px; height:17px; ">등록번호 :</caption>
  248. <input id="input19" ref="/root/send/data/srchpid" class="input_search" style="left:440px; top:24px; width:100px; height:19px; ">
  249. <script type="javascript" ev:event="onkeypress">
  250. <![CDATA[
  251. if(event.keyCode == "13"){
  252. setInputNodeCurText();
  253. fGetExamRsrvList();
  254. // 치료 대상자 현황 병실
  255. submit("TRAEA04904");
  256. }
  257. ]]>
  258. </script>
  259. </input>
  260. <group id="grp_btn" style="left:0px; top:722px; width:1190px; height:27px; ">
  261. <button id="btn_close" class="btn4_letter2" style="left:1130px; top:5px; width:56px; height:22px; ">
  262. <caption>닫기</caption>
  263. <script type="javascript" ev:event="DOMActivate">
  264. <![CDATA[
  265. window.close();
  266. ]]>
  267. </script>
  268. </button>
  269. </group>
  270. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:142px; height:14px; ">치료대상자관리</caption>
  271. <output id="ipt_patnm" ref="/root/send/data/hngnm" class="output_fix" style="left:560px; top:25px; width:85px; height:19px; "/>
  272. <caption id="caption23" class="tit_2" style="left:5px; top:60px; width:181px; height:14px; ">검사예약대상자현황</caption>
  273. <line id="line1" class="line_1" style="x1:5px; y1:75px; x2:595px; y2:75px; "/>
  274. <datagrid id="grd_cureexamlist" nodeset="/root/main/cureexamlist/mainlist" caption="처방일자^실시일자^등록번호^성명^나이/성^연락처^목적" colsep="^" colwidth="85, 85, 80, 80, 70, 85, 70" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:80px; width:590px; height:420px; ">
  275. <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
  276. <col ref="excuexectodd" format="yyyy-mm-dd" style="text-align:center; "/>
  277. <col ref="pid"/>
  278. <col ref="hngnm"/>
  279. <col ref="sex"/>
  280. <col ref="tel"/>
  281. <col disabled="true" ref="examgoal" type="combo">
  282. <choices>
  283. <item>
  284. <label>진단</label>
  285. <value>A</value>
  286. </item>
  287. <item>
  288. <label>치료준비</label>
  289. <value>B</value>
  290. </item>
  291. <item>
  292. <label>치료 후</label>
  293. <value>C</value>
  294. </item>
  295. </choices>
  296. </col>
  297. <script type="javascript" ev:event="onclick">
  298. <![CDATA[
  299. if ( grd_cureexamlist.row == 0 ) return;
  300. if ( grd_cureexamlist.isCell(event.target) && grd_cureexamlist.row >= grd_cureexamlist.fixedRows ) {
  301. var colidx = grd_cureexamlist.col;
  302. var rowidx = grd_cureexamlist.row;
  303. var pid = grd_cureexamlist.valueMatrix(rowidx, grd_cureexamlist.colRef("pid"));
  304. model.setValue("/root/send/data/pid", pid);
  305. model.removenode("/root/main/curersrvinfo");
  306. submit("TRAEA04902");
  307. var rowcnt = getNodesetCount("/root/main/curersrvinfo/mainlist");
  308. if (rowcnt > 0) {
  309. model.setValue("/root/main/curersrvinfo/mainlist[ " + 1 + "]/choi", "Y");
  310. }
  311. model.refresh();
  312. }
  313. ]]>
  314. </script>
  315. </datagrid>
  316. <datagrid id="datagrid1" nodeset="/root/main/curersrvinfo/mainlist" caption="선택^치료&#xA;확정&#xA;여부^용량^상태^치료일자^병실^참고사항|선택^치료&#xA;확정&#xA;여부^용량^상태^치료일자^병실^참고사항" colsep="^" colwidth="40, 60, 60, 60, 90, 60, 181" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:535px; width:590px; height:185px; ">
  317. <col checkvalue="Y,N" ref="choi" type="radio"/>
  318. <col ref="curecfrmyn" type="combo">
  319. <choices>
  320. <item>
  321. <label>확정</label>
  322. <value>Y</value>
  323. </item>
  324. <item>
  325. <label>미확정</label>
  326. <value>N</value>
  327. </item>
  328. <item>
  329. <label>취소</label>
  330. <value>C</value>
  331. </item>
  332. </choices>
  333. </col>
  334. <col ref="drugqty" type="input" format="#,###" style="text-align:right; "/>
  335. <col ref="statcd" type="combo">
  336. <choices>
  337. <item>
  338. <label>입원</label>
  339. <value>I</value>
  340. </item>
  341. <item>
  342. <label>입원예정</label>
  343. <value>R</value>
  344. </item>
  345. <item>
  346. <label>대기</label>
  347. <value>D</value>
  348. </item>
  349. <item>
  350. <label>외래</label>
  351. <value>O</value>
  352. </item>
  353. </choices>
  354. </col>
  355. <col ref="curedg5" type="inputdate"/>
  356. <col ref="roomcd" type="combo">
  357. <choices>
  358. <itemset nodeset="/root/init/item/roomlist">
  359. <label ref="roomnm"/>
  360. <value ref="roomnm"/>
  361. </itemset>
  362. </choices>
  363. </col>
  364. <col ref="remfact" type="input"/>
  365. </datagrid>
  366. <caption id="caption4" class="tit_2" style="left:5px; top:515px; width:181px; height:13px; ">치료 대상자 현황</caption>
  367. <line id="line2" class="line_1" style="x1:5px; y1:530px; x2:595px; y2:530px; "/>
  368. <button id="button1" class="btn2_letter2" style="left:553px; top:510px; width:42px; height:19px; ">
  369. <caption>저장</caption>
  370. <script type="javascript" ev:event="DOMActivate">
  371. <![CDATA[
  372. var rowcnt = getNodesetCount("/root/main/curersrvinfo/mainlist[choi='Y' ]");
  373. if (rowcnt < 1) {
  374. messageBox("저장할 내역을", "C002");
  375. return;
  376. }
  377. model.makeNode("/root/send/curescheinfo/maininfo");
  378. copyNodeType("/root/send/curescheinfo/maininfo","/root/main/curersrvinfo/mainlist[choi='Y' ]", "replace");
  379. submit("TXAEA04901");
  380. submit("TRAEA04902");
  381. var rowcnt = getNodesetCount("/root/main/curersrvinfo/mainlist");
  382. if (rowcnt > 0) {
  383. model.setValue("/root/main/curersrvinfo/mainlist[ " + rowcnt + "]/choi", "Y");
  384. fGetCureScheList();
  385. }
  386. model.refresh();
  387. ]]>
  388. </script>
  389. </button>
  390. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:600px; top:75px; width:590px; height:34px; background-color:#fffbf2; border-color:#ffd799; "/>
  391. <button id="button2" class="btn1_letter2" style="left:1130px; top:82px; width:56px; height:22px; ">
  392. <caption>조회</caption>
  393. <script type="javascript" ev:event="DOMActivate">
  394. <![CDATA[
  395. fGetCureScheList();
  396. ]]>
  397. </script>
  398. </button>
  399. <caption id="caption1" class="tit_2" style="left:600px; top:115px; width:181px; height:14px; ">치료예약대상자현황</caption>
  400. <line id="line3" class="line_1" style="x1:600px; y1:130px; x2:1190px; y2:130px; "/>
  401. <datagrid id="grd_curersrvlist" nodeset="/root/main/curersrvlist/mainlist" caption="치료일자^등록번호^성명^상태^진료과^진료의^치료&#xA;확정유무^용량^병실|치료일자^등록번호^성명^상태^진료과^진료의^치료&#xA;확정유무^용량^병실" colsep="^" colwidth="90, 60, 55, 55, 95, 55, 60, 40, 40" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:600px; top:135px; width:590px; height:585px; ">
  402. <col ref="curedg5" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  403. <col ref="pid"/>
  404. <col ref="hngnm"/>
  405. <col disabled="true" ref="statcd" type="combo" style="text-align:center; ">
  406. <choices>
  407. <item>
  408. <label>입원</label>
  409. <value>I</value>
  410. </item>
  411. <item>
  412. <label>입원예정</label>
  413. <value>R</value>
  414. </item>
  415. <item>
  416. <label>대기</label>
  417. <value>D</value>
  418. </item>
  419. <item>
  420. <label>외래</label>
  421. <value>O</value>
  422. </item>
  423. </choices>
  424. </col>
  425. <col disabled="true" ref="orddeptcd" type="combo">
  426. <choices>
  427. <itemset nodeset="/root/init/orddeptcd">
  428. <label ref="nm"/>
  429. <value ref="cd"/>
  430. </itemset>
  431. </choices>
  432. </col>
  433. <col disabled="true" ref="orddrid" type="combo">
  434. <choices>
  435. <itemset nodeset="/root/init/orddrid">
  436. <label ref="nm"/>
  437. <value ref="cd"/>
  438. </itemset>
  439. </choices>
  440. </col>
  441. <col disabled="true" ref="curecfrmyn" type="combo" style="text-align:center; ">
  442. <choices>
  443. <item>
  444. <label>확정</label>
  445. <value>Y</value>
  446. </item>
  447. <item>
  448. <label>미확정</label>
  449. <value>N</value>
  450. </item>
  451. <item>
  452. <label>취소</label>
  453. <value>C</value>
  454. </item>
  455. </choices>
  456. </col>
  457. <col ref="drugqty" style="text-align:right; "/>
  458. <col ref="roomcd" type="combo">
  459. <choices>
  460. <itemset nodeset="/root/init/item/roomlist">
  461. <label ref="roomnm"/>
  462. <value ref="roomnm"/>
  463. </itemset>
  464. </choices>
  465. </col>
  466. <script type="javascript" ev:event="xforms-value-changed">
  467. <![CDATA[
  468. var row = grd_curersrvlist.row;
  469. row = row - 1;
  470. model.setValue("/root/main/curersrvlist/mainlist[" + row + "]/flag","Y");
  471. ]]>
  472. </script>
  473. </datagrid>
  474. <caption id="caption2" class="search_name" style="left:610px; top:85px; width:90px; height:17px; ">치료일자 :</caption>
  475. <input id="input2" ref="/root/send/data/srchdate3" class="input_s_essential" inputtype="date" style="left:702px; top:83px; width:100px; height:19px; "/>
  476. <input id="input1" ref="/root/send/data/srchdate4" class="input_s_essential" inputtype="date" style="left:805px; top:83px; width:100px; height:19px; "/>
  477. <select1 id="rdo_srchioflag" ref="/root/send/data/srchioflag" appearance="full" cols="2" overflow="visible" style="left:990px; top:85px; width:95px; height:15px; border-style:none; ">
  478. <choices>
  479. <item>
  480. <label>입원</label>
  481. <value>I</value>
  482. </item>
  483. <item>
  484. <label>외래</label>
  485. <value>O</value>
  486. </item>
  487. </choices>
  488. <script type="javascript" ev:event="xforms-value-changed">
  489. <![CDATA[
  490. fGetCureScheList();
  491. ]]>
  492. </script>
  493. </select1>
  494. <caption id="caption5" class="search_name" style="left:925px; top:85px; width:60px; height:17px; ">구분 :</caption>
  495. <button id="button3" class="btn2_letter2" style="left:1148px; top:110px; width:42px; height:19px; ">
  496. <caption>저장</caption>
  497. <script type="javascript" ev:event="DOMActivate">
  498. <![CDATA[
  499. var rowcnt = getNodesetCount("/root/main/curersrvlist/mainlist[flag='Y' ]");
  500. if (rowcnt < 1) {
  501. messageBox("저장할 내역이", "I004");
  502. return;
  503. }
  504. model.makeNode("/root/send/curescheinfo/maininfo");
  505. copyNodeType("/root/send/curescheinfo/maininfo","/root/main/curersrvlist/mainlist[flag='Y' ]", "replace");
  506. submit("TXAEA04901");
  507. fGetCureScheList();
  508. ]]>
  509. </script>
  510. </button>
  511. </xhtml:body>
  512. </xhtml:html>