SMPIB02500_심사자재분배관리.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440
  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. <list1>
  11. <divs/>
  12. </list1>
  13. <list2>
  14. <judg/>
  15. </list2>
  16. </main>
  17. <send>
  18. <data1>
  19. <basedd/>
  20. <judgflag/>
  21. <ioflag/>
  22. <insukindflag/>
  23. <ward/>
  24. <orddeptcd/>
  25. <atdoct/>
  26. <batchflag/>
  27. </data1>
  28. </send>
  29. <init/>
  30. <hidden/>
  31. </root>
  32. </instance>
  33. <script type="javascript" ev:event="xforms-ready">
  34. <![CDATA[
  35. // 1. 데이터 초기화
  36. fSetCommonData();
  37. // 2. 화면 초기화
  38. fInitialize();
  39. // 3. 사용자ID
  40. model.makeValue("/root/hidden/userid", getUserId());
  41. ]]>
  42. </script>
  43. <submission id="TRPIB01501" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init"/>
  44. <submission id="TRPIB02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
  45. <submission id="TXPIB02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  46. </model>
  47. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  48. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  49. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  50. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  51. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  52. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  53. <script type="javascript" src="../../../com/batchinfoweb/js/ZSB001.js"/>
  54. <script type="javascript">
  55. <![CDATA[
  56. // 화면 초기화
  57. function fInitialize() {
  58. // 1. 조회컨트롤 초기화
  59. model.setValue("/root/send/data1/judgflag", "-");
  60. model.setValue("/root/send/data1/ioflag", "I");
  61. model.setValue("/root/send/data1/insukindflag", "-");
  62. model.setValue("/root/send/data1/ward", "-");
  63. model.setValue("/root/send/data1/orddeptcd", "-");
  64. model.setValue("/root/send/data1/atdoct", "-");
  65. model.setValue("/root/send/data1/batchflag", "P"); // 프로그램에서 배치 실행 : P, 오전7시 실행되도록 한 크론 : B
  66. ipt_basedd.refresh();
  67. cmb_judgflag.refresh();
  68. cmb_ioflag.refresh();
  69. cmb_insukindflag.refresh();
  70. cmb_ward.refresh();
  71. cmb_orddeptcd.refresh();
  72. cmb_atdoct.refresh();
  73. // 2. 그리드컨트롤 초기화
  74. model.removenode("/root/main/list1");
  75. model.makeNode("/root/main/list1");
  76. model.removenode("/root/main/list2");
  77. model.makeNode("/root/main/list2");
  78. grd_divslist.refresh();
  79. grd_judglist.refresh();
  80. }
  81. // 데이터 초기화
  82. function fSetCommonData() {
  83. // 1. 진료과, 진료의, 병동 데이터 조회
  84. submit("TRPIB01501");
  85. // 2. "전체" 추가
  86. var nodelist = instance1.selectNodes("/root/init/list1/orddept");
  87. var length = nodelist.length;
  88. //length = 0;
  89. model.makeValue("/root/init/list1/orddept["+ (length+1) +"]/orddeptcd","-");
  90. model.makeValue("/root/init/list1/orddept["+ (length+1) +"]/orddeptnm","전체");
  91. var nodelist = instance1.selectNodes("/root/init/list2/atdoct");
  92. var length = nodelist.length;
  93. //length = 0;
  94. model.makeValue("/root/init/list2/atdoct["+ (length+1) +"]/atdoctid","-");
  95. model.makeValue("/root/init/list2/atdoct["+ (length+1) +"]/atdoctnm","전체");
  96. model.makeValue("/root/init/list2/atdoct["+ (length+1) +"]/orddeptcd","-");
  97. var nodelist = instance1.selectNodes("/root/init/list3/ward");
  98. var length = nodelist.length;
  99. //length = 0;
  100. model.makeValue("/root/init/list3/ward["+ (length+1) +"]/wardcd","-");
  101. model.makeValue("/root/init/list3/ward["+ (length+1) +"]/wardnm","전체");
  102. }
  103. // 재분배 리스트 조회
  104. function fGetReJudgDivsList() {
  105. // 0. 조회 데이터 검사
  106. if (model.getValue("/root/send/data1/orddeptcd") == "" || model.getValue("/root/send/data1/orddeptcd") == "-") {
  107. messageBox("진료과는 필수입력 사항", "E008");
  108. return;
  109. }
  110. // 1. 그리드컨트롤 초기화
  111. model.removenode("/root/main/list1");
  112. model.makeNode("/root/main/list1");
  113. model.removenode("/root/main/list2");
  114. model.makeNode("/root/main/list2");
  115. grd_divslist.refresh();
  116. grd_judglist.refresh();
  117. // 2. 조회
  118. submit("TRPIB02501");
  119. }
  120. ]]>
  121. </script>
  122. </xhtml:head>
  123. <xhtml:body guideline="1,1213;2,784;" style="margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
  124. <group id="group1" style="left:0px; top:0px; width:1211px; height:13px; ">
  125. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:155px; height:14px; ">심사자 재분배 관리</caption>
  126. </group>
  127. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1211px; height:732px; ">
  128. <group id="group2" style="left:0px; top:10px; width:1211px; height:60px; vertical-align:top; ">
  129. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:1211px; height:55px; "/>
  130. <button id="btn_search" class="btn1_letter2" navindex="6" style="left:939px; top:9px; width:56px; height:22px; ">
  131. <caption>조회</caption>
  132. <script type="javascript" ev:event="DOMActivate">
  133. <![CDATA[
  134. fGetReJudgDivsList();
  135. ]]>
  136. </script>
  137. </button>
  138. <line id="line13" class="line_4" style="x1:927px; y1:6px; x2:927px; y2:33px; "/>
  139. <caption id="caption16" class="search_name" style="left:245px; top:6px; width:86px; height:17px; ">심사구분 :</caption>
  140. <select1 id="cmb_judgflag" ref="/root/send/data1/judgflag" class="combo_essential" disabled="true" appearance="minimal" style="left:335px; top:6px; width:95px; height:19px; ">
  141. <choices>
  142. <item>
  143. <label>전체</label>
  144. <value>-</value>
  145. </item>
  146. <item>
  147. <label>재원</label>
  148. <value>I</value>
  149. </item>
  150. <item>
  151. <label>사후</label>
  152. <value>A</value>
  153. </item>
  154. <item>
  155. <label>이의</label>
  156. <value>O</value>
  157. </item>
  158. </choices>
  159. </select1>
  160. <caption id="caption2" class="search_name" style="left:10px; top:6px; width:86px; height:17px; ">기준일자 :</caption>
  161. <input id="ipt_basedd" ref="/root/send/data1/basedd" class="input_search" navindex="1" visibility="visible" inputtype="date" style="left:100px; top:6px; width:99px; height:19px; "/>
  162. <select1 id="cmb_ioflag" ref="/root/send/data1/ioflag" class="combo_essential" disabled="true" appearance="minimal" style="left:570px; top:6px; width:95px; height:19px; ">
  163. <choices>
  164. <item>
  165. <label>전체</label>
  166. <value>-</value>
  167. </item>
  168. <item>
  169. <label>입원</label>
  170. <value>I</value>
  171. </item>
  172. <item>
  173. <label>외래</label>
  174. <value>O</value>
  175. </item>
  176. </choices>
  177. </select1>
  178. <caption id="caption3" class="search_name" style="left:480px; top:6px; width:86px; height:17px; ">내원유형 :</caption>
  179. <select1 id="cmb_insukindflag" ref="/root/send/data1/insukindflag" navindex="2" appearance="minimal" style="left:815px; top:6px; width:95px; height:19px; ">
  180. <choices>
  181. <item>
  182. <label>전체</label>
  183. <value>-</value>
  184. </item>
  185. <item>
  186. <label>건강보험</label>
  187. <value>11</value>
  188. </item>
  189. <item>
  190. <label>의료급여1종</label>
  191. <value>21</value>
  192. </item>
  193. <item>
  194. <label>의료급여2종</label>
  195. <value>22</value>
  196. </item>
  197. <item>
  198. <label>자보</label>
  199. <value>31</value>
  200. </item>
  201. <item>
  202. <label>산재</label>
  203. <value>41</value>
  204. </item>
  205. <item>
  206. <label>공상</label>
  207. <value>42</value>
  208. </item>
  209. <item>
  210. <label>일반</label>
  211. <value>51</value>
  212. </item>
  213. <item>
  214. <label>외국인</label>
  215. <value>61</value>
  216. </item>
  217. <item>
  218. <label>임상시험</label>
  219. <value>71</value>
  220. </item>
  221. </choices>
  222. </select1>
  223. <caption id="caption4" class="search_name" style="left:725px; top:6px; width:86px; height:17px; ">보험유형 :</caption>
  224. <select1 id="cmb_ward" ref="/root/send/data1/ward" navindex="3" appearance="minimal" style="left:100px; top:30px; width:99px; height:19px; ">
  225. <choices>
  226. <itemset nodeset="/root/init/list3/ward">
  227. <label ref="wardnm"/>
  228. <value ref="wardcd"/>
  229. </itemset>
  230. </choices>
  231. </select1>
  232. <caption id="caption5" class="search_name" style="left:10px; top:30px; width:86px; height:17px; ">병동 :</caption>
  233. <select1 id="cmb_orddeptcd" ref="/root/send/data1/orddeptcd" class="combo_essential" navindex="4" appearance="minimal" style="left:335px; top:30px; width:95px; height:19px; ">
  234. <choices>
  235. <itemset nodeset="/root/init/list1/orddept">
  236. <label ref="orddeptnm"/>
  237. <value ref="orddeptcd"/>
  238. </itemset>
  239. </choices>
  240. <script type="javascript" ev:event="xforms-value-changed">
  241. <![CDATA[
  242. var orddeptcd = model.getValue("/root/send/data1/orddeptcd");
  243. if (orddeptcd != "" && orddeptcd != "-") {
  244. cmb_atdoct.choices.itemset.attribute("nodeset") = "/root/init/list2/atdoct[orddeptcd='" + orddeptcd + "' or orddeptcd='-']";
  245. cmb_atdoct.disabled = false;
  246. } else {
  247. cmb_atdoct.choices.itemset.attribute("nodeset") = "/root/init/list2/atdoct";
  248. cmb_atdoct.disabled = true;
  249. }
  250. model.setValue("/root/send/data1/atdoct", "-");
  251. cmb_atdoct.refresh();
  252. ]]>
  253. </script>
  254. </select1>
  255. <caption id="caption7" class="search_name" style="left:245px; top:30px; width:86px; height:17px; ">진료과 :</caption>
  256. <select1 id="cmb_atdoct" ref="/root/send/data1/atdoct" navindex="5" appearance="minimal" style="left:570px; top:30px; width:95px; height:19px; ">
  257. <choices>
  258. <itemset nodeset="/root/init/list2/atdoct">
  259. <label ref="atdoctnm"/>
  260. <value ref="atdoctid"/>
  261. </itemset>
  262. </choices>
  263. </select1>
  264. <caption id="caption8" class="search_name" style="left:480px; top:30px; width:86px; height:17px; ">진료의 :</caption>
  265. <button id="btn_judgdivs" class="btn1_letter6" navindex="7" style="left:1000px; top:9px; width:104px; height:22px; ">
  266. <caption>심사자재분배</caption>
  267. <script type="javascript" ev:event="DOMActivate">
  268. <![CDATA[
  269. var userid = model.getValue("/root/hidden/userid");
  270. if (userid != "DEV306") {
  271. // 0. 조회 데이터 검사
  272. if (model.getValue("/root/send/data1/orddeptcd") == "" || model.getValue("/root/send/data1/orddeptcd") == "-") {
  273. messageBox("진료과는 필수입력 사항", "E008");
  274. return;
  275. }
  276. }
  277. // 1. 심사자 재분배
  278. submit("TXPIB02501");
  279. ]]>
  280. </script>
  281. </button>
  282. <button id="btn_result" class="btn1_letter5" navindex="6" style="left:1109px; top:9px; width:92px; height:22px; ">
  283. <caption>재분배결과</caption>
  284. <script type="javascript" ev:event="DOMActivate">
  285. <![CDATA[ zsbfOpenBatchLogPopup("insubasecdmngtmgr.JudgReDivsBatch", getCurrentDate(), getCurrentDate());
  286. ]]>
  287. </script>
  288. </button>
  289. <caption id="caption10" style="left:800px; top:35px; width:402px; height:20px; ">[기준일자를 입력하시면 기준일자 이후 입원한 재원환자만 재배분됩니다.]</caption>
  290. </group>
  291. <caption id="caption1" class="tit_2" style="left:5px; top:73px; width:157px; height:13px; ">심사배분 기준정보 목록</caption>
  292. <line id="line1" class="line_1" style="x1:0px; y1:89px; x2:865px; y2:89px; "/>
  293. <datagrid id="grd_divslist" nodeset="/root/main/list1/divs" caption="심사자^심사구분^내외유형^보험유형^진료과^진료의^병동^분배율(%)^분배건수^적용개시일^적용종료일" colsep="^" colwidth="65, 55, 55, 80, 100, 65, 80, 60, 55, 100, 100" dataheight="23" defaultrows="0" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:95px; width:865px; height:632px; ">
  294. <col disabled="true" ref="judgnm"/>
  295. <col disabled="true" ref="judgflag" type="combo">
  296. <choices>
  297. <item>
  298. <label>전체</label>
  299. <value>-</value>
  300. </item>
  301. <item>
  302. <label>재원</label>
  303. <value>I</value>
  304. </item>
  305. <item>
  306. <label>사후</label>
  307. <value>A</value>
  308. </item>
  309. <item>
  310. <label>이의</label>
  311. <value>O</value>
  312. </item>
  313. </choices>
  314. </col>
  315. <col disabled="true" ref="ioflag" type="combo">
  316. <choices>
  317. <item>
  318. <label>전체</label>
  319. <value>-</value>
  320. </item>
  321. <item>
  322. <label>입원</label>
  323. <value>I</value>
  324. </item>
  325. <item>
  326. <label>외래</label>
  327. <value>O</value>
  328. </item>
  329. </choices>
  330. </col>
  331. <col disabled="true" ref="insukindflag" type="combo">
  332. <choices>
  333. <item>
  334. <label>전체</label>
  335. <value>-</value>
  336. </item>
  337. <item>
  338. <label>건강보험</label>
  339. <value>11</value>
  340. </item>
  341. <item>
  342. <label>의료급여1종</label>
  343. <value>21</value>
  344. </item>
  345. <item>
  346. <label>의료급여2종</label>
  347. <value>22</value>
  348. </item>
  349. <item>
  350. <label>자보</label>
  351. <value>31</value>
  352. </item>
  353. <item>
  354. <label>산재</label>
  355. <value>41</value>
  356. </item>
  357. <item>
  358. <label>공상</label>
  359. <value>42</value>
  360. </item>
  361. <item>
  362. <label>일반</label>
  363. <value>51</value>
  364. </item>
  365. <item>
  366. <label>외국인</label>
  367. <value>61</value>
  368. </item>
  369. <item>
  370. <label>임상시험</label>
  371. <value>71</value>
  372. </item>
  373. </choices>
  374. </col>
  375. <col disabled="true" ref="orddeptcd" type="combo" style="left:440px; top:23px; width:100px; height:23px; ">
  376. <choices>
  377. <itemset nodeset="/root/init/list1/orddept">
  378. <label ref="orddeptnm"/>
  379. <value ref="orddeptcd"/>
  380. </itemset>
  381. </choices>
  382. </col>
  383. <col disabled="true" ref="atdoct" type="combo">
  384. <choices>
  385. <itemset nodeset="/root/init/list2/atdoct">
  386. <label ref="atdoctnm"/>
  387. <value ref="atdoctid"/>
  388. </itemset>
  389. </choices>
  390. </col>
  391. <col disabled="true" ref="ward" type="combo">
  392. <choices>
  393. <itemset nodeset="/root/init/list3/ward">
  394. <label ref="wardnm"/>
  395. <value ref="wardcd"/>
  396. </itemset>
  397. </choices>
  398. </col>
  399. <col ref="divrate" style="text-align:center; "/>
  400. <col ref="divcnt" style="text-align:center; "/>
  401. <col disabled="true" ref="fromdd" type="inputdate"/>
  402. <col disabled="true" ref="todd" type="inputdate"/>
  403. </datagrid>
  404. <caption id="caption9" class="tit_2" style="left:870px; top:73px; width:180px; height:13px; ">심사자 분배율 및 분배건수</caption>
  405. <line id="line2" class="line_1" style="x1:870px; y1:89px; x2:1205px; y2:89px; "/>
  406. <datagrid id="grd_judglist" nodeset="/root/main/list2/judg" caption="심사자^분배율(%)^분배건수" colsep="^" colwidth="105, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:870px; top:95px; width:335px; height:632px; ">
  407. <col ref="judgnm"/>
  408. <col ref="divrate" format="#,##.00" style="text-align:right; "/>
  409. <col ref="divcnt" style="text-align:right; "/>
  410. </datagrid>
  411. </group>
  412. <group id="group4" scroll="auto" style="left:0px; top:744px; width:1211px; height:40px; ">
  413. <line id="line23" class="line_6" style="x1:0px; y1:3px; x2:1211px; y2:3px; "/>
  414. <button id="btn_init" class="btn4_letter3" style="left:1138px; top:10px; width:68px; height:22px; ">
  415. <caption>초기화</caption>
  416. <script type="javascript" ev:event="DOMActivate">
  417. <![CDATA[
  418. fInitialize();
  419. ]]>
  420. </script>
  421. </button>
  422. </group>
  423. </xhtml:body>
  424. </xhtml:html>