SMAEA05100_치료대상자조회.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397
  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. <curersrvlist>
  11. <mainlist>
  12. <pid/>
  13. <hngnm/>
  14. <age/>
  15. <sex/>
  16. <cntctel/>
  17. <orddeptcd/>
  18. <orddrid/>
  19. <curecfrmyn/>
  20. <curedg5/>
  21. <day/>
  22. <roomcd/>
  23. <drugqty/>
  24. <cfrmyn/>
  25. <suplcustcd/>
  26. <remfact/>
  27. <genrdd/>
  28. <genrno/>
  29. <suppdeptcd/>
  30. <orddeptnm/>
  31. <orddrnm/>
  32. </mainlist>
  33. </curersrvlist>
  34. <popupendflag/>
  35. <patinfo>
  36. <patinfolist/>
  37. </patinfo>
  38. </main>
  39. <send>
  40. <data>
  41. <srchstatcd/>
  42. <srchdate1/>
  43. <srchdate2/>
  44. <srchpid/>
  45. <hngnm/>
  46. <srchcnfmynlist/>
  47. <pid/>
  48. </data>
  49. <savedata/>
  50. <data2>
  51. <srchcond/>
  52. <pid/>
  53. <hngnm/>
  54. <rrgstno1/>
  55. <rrgstno2/>
  56. <acptdd/>
  57. </data2>
  58. <globalinstance>
  59. <instance1/>
  60. </globalinstance>
  61. <req>
  62. <data/>
  63. </req>
  64. </send>
  65. <hidden>
  66. <srchcond/>
  67. <pid/>
  68. <hngnm/>
  69. <rrgstno1/>
  70. <rrgstno2/>
  71. <session/>
  72. </hidden>
  73. <init>
  74. <cmb_info>
  75. <initsuplcustcd>
  76. <suplcustcdid/>
  77. <suplcustcdnm/>
  78. </initsuplcustcd>
  79. </cmb_info>
  80. <today/>
  81. <roomlist/>
  82. <orddeptcd>
  83. <cd/>
  84. <nm/>
  85. <deptengabbr/>
  86. <reqdeptno/>
  87. </orddeptcd>
  88. <orddrid>
  89. <cd/>
  90. <nm/>
  91. <dp/>
  92. <sp/>
  93. </orddrid>
  94. <item>
  95. <roomlist/>
  96. </item>
  97. </init>
  98. </root>
  99. </instance>
  100. <script type="javascript" ev:event="xforms-ready">
  101. <![CDATA[
  102. // 부서코드 설정
  103. aezfSetSuppDeptcd();
  104. // 진료과/진료의 조회
  105. submit("TRPMOCOM01", false);
  106. fInit();
  107. ]]>
  108. </script>
  109. <submission id="TRPMOCOM01" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/session" replace="instance" resultref="/root/init"/>
  110. <submission id="TRAEA02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_info"/>
  111. <submission id="TRAEB02802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/item"/>
  112. <submission id="TRAEA05101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/curersrvlist"/>
  113. <submission id="TXAEA05101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req/data"/>
  114. <bind id="bind1" ref="/root/main/curersrvlist/mainlist/day" type="xsd:string" script="setDayOfWeek();"/>
  115. </model>
  116. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  117. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  118. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  119. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  120. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  121. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  122. <script type="javascript">
  123. <![CDATA[
  124. function fInit() {
  125. model.removenode("/root/main/curersrvlist");
  126. var baseDate = getCurrentDate().toDate("YYYYMMDD");
  127. var nowDay = baseDate.getDayOfWeek("N");
  128. var dayCnt = - (eval(nowDay) - 1) ;
  129. model.setValue("/root/send/data/srchdate1", ((getCurrentDate()).toDate()).getAddDate(dayCnt).getDateFormat());
  130. model.setValue("/root/send/data/srchdate2", ((getCurrentDate()).toDate()).getAddDate(dayCnt+6).getDateFormat());
  131. //model.setValue("/root/send/data/srchcnfmyn", "");
  132. model.makeValue("/root/send/wardcd","3050135000");
  133. model.makeValue("/root/send/newoldyb","1");
  134. submit("TRAEB02802");
  135. submit("TRAEA02301");
  136. model.refresh();
  137. }
  138. function fGetCureScheList() {
  139. var selectcnfmyn = model.getValue("/root/send/data/srchcnfmynlist");
  140. var srchpid = model.getValue("/root/send/data/srchpid");
  141. if (selectcnfmyn != "") {
  142. selectcnfmyn = "'" + selectcnfmyn.split(" ").join("','") + "'";
  143. }
  144. model.makeValue("/root/send/data/selectcnfmyn", selectcnfmyn);
  145. if (srchpid == "") {
  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.removenode("/root/main/curersrvlist");
  158. submit("TRAEA05101");
  159. model.refresh();
  160. }
  161. //
  162. function setDayOfWeek() {
  163. var rowCnt = getNodesetCount("/root/main/curersrvlist/mainlist");
  164. var curedg5 = "";
  165. for (i=1; i<=rowCnt; i++) {
  166. curedg5 = model.getValue("/root/main/curersrvlist/mainlist[" + i +"]/curedg5");
  167. var baseDate = curedg5.toDate("YYYYMMDD");
  168. var nowDay = baseDate.getDayOfWeek("K");
  169. model.setValue("/root/main/curersrvlist/mainlist[" + i + "]/day", nowDay);
  170. }
  171. model.refresh();
  172. }
  173. // 치료대상자 변경 정보 저장
  174. function chkUpdatedData() {
  175. if ( messageBox("", "Q002") == 6 ) {
  176. var update = getGridUpdateData(grd_curersrvlist);
  177. if ( update == "" ) {
  178. messageBox("변경된 정보가 없습니다.", "I");
  179. } else {
  180. model.setValue("/root/send/req/data", update);
  181. submit("TXAEA05101");
  182. // 저장 후 재 조회
  183. submit("TRAEA05101");
  184. model.refresh();
  185. }
  186. }
  187. }
  188. ]]>
  189. </script>
  190. </xhtml:head>
  191. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  192. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:5px; top:16px; width:1185px; height:34px; background-color:#fffbf2; border-color:#ffd799; "/>
  193. <button id="button6" class="icon_search" style="left:543px; top:24px; width:16px; height:16px; ">
  194. <caption/>
  195. <script type="javascript" ev:event="onclick">
  196. <![CDATA[
  197. model.setValue("/root/send/data2/srchcond", "2");
  198. model.setValue("/root/send/data2/pid", model.getValue("/root/main/cond/pid"));
  199. modal("SPPMC02500", "", "200", "200", "SPPMC02500","/root/send/data2","/root/send");
  200. var sPid = model.getValue("/root/main/patinfo/patinfolist/pid");
  201. var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  202. model.setValue("/root/send/data/srchpid", sPid);
  203. model.setValue("/root/send/data/hngnm", sHngnm);
  204. fGetCureScheList();
  205. ]]>
  206. </script>
  207. </button>
  208. <caption id="caption3" class="search_name" style="left:10px; top:25px; width:120px; height:17px; ">치료조회일자 :</caption>
  209. <button id="btn_req" class="btn1_letter2" style="left:1125px; top:22px; width:56px; height:22px; ">
  210. <caption>조회</caption>
  211. <script type="javascript" ev:event="DOMActivate">
  212. <![CDATA[
  213. fGetCureScheList();
  214. ]]>
  215. </script>
  216. </button>
  217. <input id="input36" ref="/root/send/data/srchdate2" class="input_s_essential" inputtype="date" style="left:230px; top:24px; width:100px; height:19px; "/>
  218. <input id="input37" ref="/root/send/data/srchdate1" class="input_s_essential" inputtype="date" style="left:127px; top:24px; width:100px; height:19px; "/>
  219. <caption id="caption58" class="search_name" style="left:349px; top:25px; width:86px; height:17px; ">등록번호 :</caption>
  220. <input id="input19" ref="/root/send/data/srchpid" class="input_search" style="left:440px; top:24px; width:100px; height:19px; ">
  221. <script type="javascript" ev:event="onkeypress">
  222. <![CDATA[
  223. if(event.keyCode == "13"){
  224. setInputNodeCurText();
  225. fGetCureScheList();
  226. }
  227. ]]>
  228. </script>
  229. </input>
  230. <group id="grp_btn" style="left:0px; top:722px; width:1190px; height:27px; ">
  231. <button id="btn_save" class="btn4_letter2" style="left:1132px; top:0px; width:56px; height:22px; ">
  232. <caption>저장</caption>
  233. <script type="javascript" ev:event="DOMActivate">
  234. <![CDATA[
  235. chkUpdatedData() ;
  236. ]]>
  237. </script>
  238. </button>
  239. <button id="button1" class="btn4_letter2" style="left:1075px; top:0px; width:56px; height:22px; ">
  240. <caption>출력</caption>
  241. <script type="javascript" ev:event="DOMActivate">
  242. <![CDATA[
  243. var rowcnt = getNodesetCount("/root/main/curersrvlist/mainlist");
  244. if (rowcnt > 0) {
  245. model.makeValue("/root/main/curersrvlist/mainlist[" + 1 + "]/srchdate1", model.getValue("/root/send/data/srchdate1"));
  246. model.makeValue("/root/main/curersrvlist/mainlist[" + 1 + "]/srchdate2", model.getValue("/root/send/data/srchdate2"));
  247. exeReportPreview("RPAEA05100", "XMLSTR", "/root/main/curersrvlist/mainlist");
  248. } else {
  249. messageBox("출력할 내역이", "I004");
  250. }
  251. ]]>
  252. </script>
  253. </button>
  254. </group>
  255. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:142px; height:14px; ">치료확정대상자조회</caption>
  256. <caption id="caption1" class="search_name" style="left:660px; top:25px; width:112px; height:17px; ">치료확정유무 :</caption>
  257. <output id="ipt_patnm" ref="/root/send/data/hngnm" class="output_fix" style="left:560px; top:25px; width:85px; height:19px; "/>
  258. <line id="line1" class="line_1" style="x1:5px; y1:75px; x2:1190px; y2:75px; "/>
  259. <datagrid id="grd_curersrvlist" nodeset="/root/main/curersrvlist/mainlist" caption="등록번호^성명^나이^성별^연락처^진료과^진료의^치료확정여부^치료일자^요일^병실^용량^확인^공급처^참고사항^genrdd^genrno^suppdeptcd^진료과명^진료의명" colsep="^" colwidth="70, 70, 40, 40, 115, 100, 68, 85, 75, 35, 45, 45, 45, 110, 200, 0, 0, 0, 0, 0" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:80px; width:1185px; height:635px; ">
  260. <col ref="pid"/>
  261. <col ref="hngnm"/>
  262. <col ref="age" style="text-align:center; "/>
  263. <col ref="sex" style="text-align:center; "/>
  264. <col ref="cntctel"/>
  265. <col disabled="true" ref="orddeptcd" type="combo">
  266. <choices>
  267. <itemset nodeset="/root/init/orddeptcd">
  268. <label ref="nm"/>
  269. <value ref="cd"/>
  270. </itemset>
  271. </choices>
  272. </col>
  273. <col disabled="true" ref="orddrid" type="combo">
  274. <choices>
  275. <itemset nodeset="/root/init/orddrid">
  276. <label ref="nm"/>
  277. <value ref="cd"/>
  278. </itemset>
  279. </choices>
  280. </col>
  281. <col disabled="true" ref="curecfrmyn" type="combo">
  282. <choices>
  283. <item>
  284. <label>확정</label>
  285. <value>Y</value>
  286. </item>
  287. <item>
  288. <label>미확정</label>
  289. <value>N</value>
  290. </item>
  291. <item>
  292. <label>취소</label>
  293. <value>C</value>
  294. </item>
  295. </choices>
  296. </col>
  297. <col ref="curedg5" type="output" format="yyyy-mm-dd" style="text-align:center; "/>
  298. <col ref="day" style="text-align:center; "/>
  299. <col disabled="true" ref="roomcd" type="combo">
  300. <choices>
  301. <itemset nodeset="/root/init/item/roomlist">
  302. <label ref="roomnm"/>
  303. <value ref="roomcd"/>
  304. </itemset>
  305. </choices>
  306. </col>
  307. <col ref="drugqty" type="output" format="#,###" style="text-align:right; "/>
  308. <col ref="cfrmyn" type="combo">
  309. <choices>
  310. <item>
  311. <label>Y</label>
  312. <value>Y</value>
  313. </item>
  314. <item>
  315. <label>N</label>
  316. <value>N</value>
  317. </item>
  318. </choices>
  319. </col>
  320. <col ref="suplcustcd" type="combo">
  321. <choices>
  322. <itemset nodeset="/root/init/cmb_info/initsuplcustcd">
  323. <label ref="suplcustcdnm"/>
  324. <value ref="suplcustcdid"/>
  325. </itemset>
  326. </choices>
  327. </col>
  328. <col ref="remfact" type="output"/>
  329. <col ref="genrdd" visibility="hidden"/>
  330. <col ref="genrno" visibility="hidden"/>
  331. <col ref="suppdeptcd" visibility="hidden"/>
  332. <col ref="orddeptnm" visibility="hidden"/>
  333. <col ref="orddrnm" visibility="hidden"/>
  334. <script type="javascript" ev:event="onaftersort">
  335. <![CDATA[
  336. grd_curersrvlist.gridToInstance();
  337. ]]>
  338. </script>
  339. </datagrid>
  340. <caption id="caption4" class="tit_2" style="left:5px; top:60px; width:181px; height:13px; ">치료 대상자 현황</caption>
  341. <button id="btn_excsave" class="btn2_letter4" visibility="visible" style="left:1126px; top:55px; width:64px; height:19px; ">
  342. <caption>엑셀저장</caption>
  343. <script type="javascript" ev:event="DOMActivate">
  344. <![CDATA[
  345. var fileName = window.fileDialog("save", ",", false, "", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  346. if (fileName != "") {
  347. grd_curersrvlist.saveExcel(fileName);
  348. }
  349. ]]>
  350. </script>
  351. </button>
  352. <select id="checkbox1" ref="/root/send/data/srchcnfmynlist" overflow="visible" appearance="full" cols="3" style="left:775px; top:25px; width:155px; height:15px; border-style:none; ">
  353. <choices>
  354. <item>
  355. <label>확정</label>
  356. <value>Y</value>
  357. </item>
  358. <item>
  359. <label>미확정</label>
  360. <value>N</value>
  361. </item>
  362. <item>
  363. <label>취소</label>
  364. <value>C</value>
  365. </item>
  366. </choices>
  367. </select>
  368. </xhtml:body>
  369. </xhtml:html>