SMAEA04700_치료예약스케줄조회.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404
  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. <cureschelist>
  11. <mainlist>
  12. <genrdd/>
  13. <genrno/>
  14. <suppdeptcd/>
  15. <pid/>
  16. <hngnm/>
  17. <sex/>
  18. <age/>
  19. <rrgstno1/>
  20. <rrgstno2/>
  21. <tel/>
  22. <addr/>
  23. <orddeptcd/>
  24. <orddrid/>
  25. <statcd/>
  26. <cntctel/>
  27. <curedg1/>
  28. <oldcuredg1/>
  29. <curedgseq1/>
  30. <curedg2/>
  31. <oldcuredg2/>
  32. <curedgseq2/>
  33. <curedg3/>
  34. <oldcuredg3/>
  35. <curedgseq3/>
  36. <curedg4/>
  37. <oldcuredg4/>
  38. <curedgseq4/>
  39. <curedg5/>
  40. <oldcuredg5/>
  41. <curedgseq5/>
  42. <curedg6/>
  43. <oldcuredg6/>
  44. <curedgseq6/>
  45. <curecfrmyn/>
  46. <remfact/>
  47. <startdd/>
  48. <endcnts/>
  49. <inschedd/>
  50. </mainlist>
  51. </cureschelist>
  52. <popupendflag/>
  53. <patinfo>
  54. <patinfolist/>
  55. </patinfo>
  56. </main>
  57. <send>
  58. <data>
  59. <srchflag/>
  60. <srchdate1/>
  61. <srchdate2/>
  62. <srchpid/>
  63. <hngnm/>
  64. </data>
  65. <savedata/>
  66. <data2>
  67. <srchcond/>
  68. <pid/>
  69. <hngnm/>
  70. <rrgstno1/>
  71. <rrgstno2/>
  72. <acptdd/>
  73. </data2>
  74. <globalinstance>
  75. <instance1/>
  76. </globalinstance>
  77. </send>
  78. <hidden>
  79. <srchcond/>
  80. <pid/>
  81. <hngnm/>
  82. <rrgstno1/>
  83. <rrgstno2/>
  84. <session/>
  85. </hidden>
  86. <init>
  87. <today/>
  88. <roomlist/>
  89. <orddeptcd>
  90. <cd/>
  91. <nm/>
  92. <deptengabbr/>
  93. <reqdeptno/>
  94. </orddeptcd>
  95. <orddrid>
  96. <cd/>
  97. <nm/>
  98. <dp/>
  99. <sp/>
  100. </orddrid>
  101. </init>
  102. <temp>
  103. <printyn1/>
  104. <printyn2/>
  105. <printyn3/>
  106. </temp>
  107. </root>
  108. </instance>
  109. <script type="javascript" ev:event="xforms-ready">
  110. <![CDATA[
  111. // 부서코드 설정
  112. aezfSetSuppDeptcd();
  113. // 진료과/진료의 조회
  114. submit("TRPMOCOM01", false);
  115. fInit();
  116. ]]>
  117. </script>
  118. <submission id="TRPMOCOM01" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/session" replace="instance" resultref="/root/init"/>
  119. <submission id="TRMMO04105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/patnm"/>
  120. <submission id="TRAEA04701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/cureschelist"/>
  121. </model>
  122. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  123. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  124. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  125. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  126. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  127. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  128. <script type="javascript">
  129. <![CDATA[
  130. function fInit() {
  131. model.removenode("/root/main/cureschelist");
  132. model.setValue("/root/send/data/srchflag", "E");
  133. model.setValue("/root/send/data/srchdate1", getCurrentDate());
  134. model.setValue("/root/send/data/srchdate2", ((getCurrentDate()).toDate()).getAddDate(60).getDateFormat());
  135. model.refresh();
  136. }
  137. // 환자별 치료 스케줄 조회
  138. function fGetCureScheList() {
  139. var srchpid = model.getValue("/root/send/data/srchpid");
  140. if (srchpid == "") {
  141. var srchflag = model.getValue("/root/send/data/srchflag");
  142. if (srchflag == "") {
  143. messageBox("구분을 선택해 주십시오.","I999");
  144. return "0";
  145. }
  146. var srchdate1 = model.getValue("/root/send/data/srchdate1");
  147. if (srchdate1 == "") {
  148. messageBox("조회시작일자를 선택해 주십시오.","I999");
  149. return "0";
  150. }
  151. var srchdate2 = model.getValue("/root/send/data/srchdate2");
  152. if (srchdate2 == "") {
  153. messageBox("조회종료일자를 선택해 주십시오.","I999");
  154. return "0";
  155. }
  156. }
  157. model.resetInstanceNode("/root/main/curescheinfo/maininfo");
  158. model.removenode("/root/main/cureschelist");
  159. submit("TRAEA04701");
  160. model.refresh();
  161. }
  162. /**
  163. * @desc : 환자정보 조회
  164. * @
  165. * @param :
  166. * @return :
  167. * @author :
  168. * @---------------------------------------------------
  169. */
  170. function fGetPatInfo(){
  171. var pid = model.getValue("/root/main/curescheinfo/maininfo/pid");
  172. model.makeValue("/root/main/patinfo/patinfolist/pid",pid);
  173. if ( submit("TRAEB02902",false) ) {
  174. var cnt = getNodesetCount("/root/main/patinfo/patinfolist");
  175. if (cnt == 0) {
  176. model.makeValue("/root/main/curescheinfo/maininfo/suppdeptcd", "");
  177. model.makeValue("/root/main/curescheinfo/maininfo/hngnm", "");
  178. model.makeValue("/root/main/curescheinfo/maininfo/sex", "");
  179. model.makeValue("/root/main/curescheinfo/maininfo/age", "");
  180. model.makeValue("/root/main/curescheinfo/maininfo/rrgstno1", "");
  181. model.makeValue("/root/main/curescheinfo/maininfo/rrgstno2", "");
  182. model.makeValue("/root/main/curescheinfo/maininfo/tel", "");
  183. model.makeValue("/root/main/curescheinfo/maininfo/addr", "");
  184. messageBox("등록된 환자 정보가","I004");
  185. } else if (cnt == 1) {
  186. model.makeValue("/root/main/curescheinfo/maininfo/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
  187. model.makeValue("/root/main/curescheinfo/maininfo/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  188. model.makeValue("/root/main/curescheinfo/maininfo/sex", model.getValue("/root/main/patinfo/patinfolist/sex"));
  189. model.makeValue("/root/main/curescheinfo/maininfo/age", model.getValue("/root/main/patinfo/patinfolist/age"));
  190. model.makeValue("/root/main/curescheinfo/maininfo/rrgstno1", model.getValue("/root/main/patinfo/patinfolist/rrgstno1"));
  191. model.makeValue("/root/main/curescheinfo/maininfo/rrgstno2", model.getValue("/root/main/patinfo/patinfolist/rrgstno2"));
  192. model.makeValue("/root/main/curescheinfo/maininfo/tel", model.getValue("/root/main/patinfo/patinfolist/tel"));
  193. model.makeValue("/root/main/curescheinfo/maininfo/addr", "");
  194. }
  195. var suppdeptcd = model.getValue("/root/send/globalinstance/instance1");
  196. cmb_orddept.choices.itemset.attribute("nodeset") = "/root/init/orddeptcd[cd='"+ suppdeptcd + "']";
  197. cmb_orddr.choices.itemset.attribute("nodeset") = "/root/init/orddrid[dp='"+ suppdeptcd + "']";
  198. cmb_orddept.value = suppdeptcd;
  199. model.refresh();
  200. }
  201. }
  202. ]]>
  203. </script>
  204. </xhtml:head>
  205. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  206. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:5px; top:16px; width:1185px; height:34px; background-color:#fffbf2; border-color:#ffd799; "/>
  207. <button id="btn_getpatinfo" class="icon_search" style="left:783px; top:24px; width:16px; height:16px; ">
  208. <caption/>
  209. <script type="javascript" ev:event="DOMActivate">
  210. <![CDATA[
  211. model.setValue("/root/send/data2/srchcond", "2");
  212. model.setValue("/root/send/data2/pid", model.getValue("/root/main/cond/pid"));
  213. modal("SPPMC02500", "", "200", "200", "SPPMC02500","/root/send/data2","/root/send");
  214. var sPid = model.getValue("/root/main/patinfo/patinfolist/pid");
  215. var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  216. model.setValue("/root/send/data/srchpid", sPid);
  217. model.setValue("/root/send/data/hngnm", sHngnm);
  218. fGetCureScheList();
  219. ]]>
  220. </script>
  221. </button>
  222. <button id="btn_req" class="btn1_letter2" style="left:1120px; top:22px; width:56px; height:22px; ">
  223. <caption>조회</caption>
  224. <script type="javascript" ev:event="DOMActivate">
  225. <![CDATA[
  226. fGetCureScheList();
  227. ]]>
  228. </script>
  229. </button>
  230. <caption id="caption3" class="search_name" style="left:230px; top:26px; width:94px; height:17px; ">조회일자 :</caption>
  231. <input id="input36" ref="/root/send/data/srchdate2" class="input_s_essential" inputtype="date" style="left:423px; top:24px; width:100px; height:19px; "/>
  232. <caption id="caption58" class="search_name" style="left:586px; top:26px; width:86px; height:17px; ">등록번호 :</caption>
  233. <input id="input37" ref="/root/send/data/srchdate1" class="input_s_essential" inputtype="date" style="left:320px; top:24px; width:100px; height:19px; "/>
  234. <input id="input19" ref="/root/send/data/srchpid" class="input_search" style="left:680px; top:24px; width:100px; height:19px; ">
  235. <script type="javascript" ev:event="onkeypress">
  236. <![CDATA[
  237. if(event.keyCode == "13"){
  238. setInputNodeCurText();
  239. fGetCureScheList();
  240. }
  241. ]]>
  242. </script>
  243. </input>
  244. <output id="ipt_patnm" ref="/root/send/data/hngnm" class="output_fix" style="left:805px; top:24px; width:85px; height:19px; "/>
  245. <select1 id="combo1" ref="/root/send/data/srchflag" appearance="minimal" style="left:93px; top:24px; width:105px; height:14px; ">
  246. <choices>
  247. <item>
  248. <label>약물조절</label>
  249. <value>A</value>
  250. </item>
  251. <item>
  252. <label>식이요법</label>
  253. <value>B</value>
  254. </item>
  255. <item>
  256. <label>검사예약</label>
  257. <value>C</value>
  258. </item>
  259. <item>
  260. <label>촬영</label>
  261. <value>D</value>
  262. </item>
  263. <item>
  264. <label>치료일</label>
  265. <value>E</value>
  266. </item>
  267. <item>
  268. <label>치료후 촬영</label>
  269. <value>F</value>
  270. </item>
  271. </choices>
  272. </select1>
  273. <caption id="caption1" class="search_name" style="left:25px; top:26px; width:65px; height:12px; ">구분 :</caption>
  274. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:204px; height:14px; ">치료예약스케줄조회</caption>
  275. <datagrid id="grd_list" nodeset="/root/main/cureschelist/mainlist" caption="등록일자^발생번호^지원부서^등록번호^이름^성별^나이^주민번호1^주민번호2^연락처^주소^진료과^진료의^상태^연락처^악물조절^변경전 일자^임시예약 순번^식이요법^변경전 일자^임시예약 순번^검사예약^변경전 일자^임시예약 순번^촬영^변경전 일자^임시예약 순번^치료일^변경전 일자^임시예약 순번^치료후 촬영^변경전 일자^임시예약 순번^치료확정유무^참고사항^시작일자^종료내용^입원예정일" colsep="^" colwidth="0, 0, 0, 70, 60, 0, 0, 0, 0, 0, 0, 90, 85, 60, 0, 75, 0, 0, 75, 0, 0, 75, 0, 0, 75, 0, 0, 75, 0, 0, 75, 0, 0, 83, 246, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:80px; width:1185px; height:675px; ">
  276. <col ref="genrdd" visibility="hidden" format="yyyy-mm-dd"/>
  277. <col ref="genrno" visibility="hidden"/>
  278. <col ref="suppdeptcd" visibility="hidden"/>
  279. <col ref="pid" style="text-align:center; "/>
  280. <col ref="hngnm" style="text-align:center; "/>
  281. <col ref="sex" visibility="hidden" style="text-align:center; "/>
  282. <col ref="age" visibility="hidden" style="text-align:center; "/>
  283. <col ref="rrgstno1" visibility="hidden"/>
  284. <col ref="rrgstno2" visibility="hidden"/>
  285. <col ref="tel" visibility="hidden"/>
  286. <col ref="addr" visibility="hidden"/>
  287. <col disabled="true" ref="orddeptcd" type="combo">
  288. <choices>
  289. <itemset nodeset="/root/init/orddeptcd">
  290. <label ref="nm"/>
  291. <value ref="cd"/>
  292. </itemset>
  293. </choices>
  294. </col>
  295. <col disabled="true" ref="orddrid" type="combo">
  296. <choices>
  297. <itemset nodeset="/root/init/orddrid">
  298. <label ref="nm"/>
  299. <value ref="cd"/>
  300. </itemset>
  301. </choices>
  302. </col>
  303. <col disabled="true" ref="statcd" type="combo">
  304. <choices>
  305. <item>
  306. <label>입원</label>
  307. <value>I</value>
  308. </item>
  309. <item>
  310. <label>입원예정</label>
  311. <value>R</value>
  312. </item>
  313. <item>
  314. <label>대기</label>
  315. <value>D</value>
  316. </item>
  317. <item>
  318. <label>외래</label>
  319. <value>O</value>
  320. </item>
  321. </choices>
  322. </col>
  323. <col ref="cntctel" visibility="hidden"/>
  324. <col ref="curedg1" format="yyyy-mm-dd" style="text-align:center; "/>
  325. <col ref="oldcuredg1" visibility="hidden"/>
  326. <col ref="curedgseq1" visibility="hidden"/>
  327. <col ref="curedg2" format="yyyy-mm-dd" style="text-align:center; "/>
  328. <col ref="oldcuredg2" visibility="hidden"/>
  329. <col ref="curedgseq2" visibility="hidden"/>
  330. <col ref="curedg3" format="yyyy-mm-dd" style="text-align:center; "/>
  331. <col ref="oldcuredg3" visibility="hidden"/>
  332. <col ref="curedgseq3" visibility="hidden"/>
  333. <col ref="curedg4" format="yyyy-mm-dd" style="text-align:center; "/>
  334. <col ref="oldcuredg4" visibility="hidden"/>
  335. <col ref="curedgseq4" visibility="hidden"/>
  336. <col ref="curedg5" format="yyyy-mm-dd" style="text-align:center; "/>
  337. <col ref="oldcuredg5" visibility="hidden"/>
  338. <col ref="curedgseq5" visibility="hidden"/>
  339. <col ref="curedg6" format="yyyy-mm-dd" style="text-align:center; "/>
  340. <col ref="oldcuredg6" visibility="hidden"/>
  341. <col ref="curedgseq6" visibility="hidden"/>
  342. <col disabled="true" ref="curecfrmyn" type="combo" style="text-align:center; ">
  343. <choices>
  344. <item>
  345. <label>확정</label>
  346. <value>Y</value>
  347. </item>
  348. <item>
  349. <label>미확정</label>
  350. <value>N</value>
  351. </item>
  352. <item>
  353. <label>취소</label>
  354. <value>C</value>
  355. </item>
  356. </choices>
  357. </col>
  358. <col ref="remfact"/>
  359. <col ref="startdd" visibility="hidden"/>
  360. <col ref="endcnts" visibility="hidden"/>
  361. <col ref="inschedd" visibility="hidden"/>
  362. </datagrid>
  363. <caption id="caption23" class="tit_2" style="left:5px; top:60px; width:181px; height:13px; ">치료 스케줄</caption>
  364. <line id="line1" class="line_1" style="x1:5px; y1:75px; x2:1190px; y2:75px; "/>
  365. <button id="btn_excsave" class="btn2_letter4" visibility="visible" style="left:1126px; top:55px; width:64px; height:19px; ">
  366. <caption>엑셀저장</caption>
  367. <script type="javascript" ev:event="DOMActivate">
  368. <![CDATA[
  369. var fileName = window.fileDialog("save", ",", false, "", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  370. if (fileName != "")
  371. {
  372. grd_list.saveExcel(fileName);
  373. }
  374. ]]>
  375. </script>
  376. </button>
  377. </xhtml:body>
  378. </xhtml:html>