SMPID22900_동일진료일명세서조회.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * @(#)SMPID22900_동일진료일명세서조회.xrw
  4. * 수정이력
  5. * - 2008.11.05 / 최초작성 / 김상진
  6. -->
  7. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  8. <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">
  9. <xhtml:head>
  10. <xhtml:title>동일진료일명세서조회</xhtml:title>
  11. <model id="model1">
  12. <instance id="instance1">
  13. <root xmlns="">
  14. <main>
  15. <list1>
  16. <clbs/>
  17. </list1>
  18. </main>
  19. <send>
  20. <item1>
  21. <clamym/>
  22. <clamdg/>
  23. <pid/>
  24. <pidsn/>
  25. <ordym/>
  26. <judgrid/>
  27. <ioflag>O</ioflag>
  28. <ordfildcdyn/>
  29. </item1>
  30. <list1>
  31. <clbs>
  32. </clbs>
  33. </list1>
  34. </send>
  35. <init>
  36. <!-- 진료분야 -->
  37. <P0291list>
  38. <P0291>
  39. <cdnm/>
  40. <cdid/>
  41. </P0291>
  42. </P0291list>
  43. <!-- 청구구분 -->
  44. <P0155list>
  45. <P0155>
  46. <cdnm/>
  47. <cdid/>
  48. </P0155>
  49. </P0155list>
  50. </init>
  51. <hidden>
  52. <item1>
  53. <clamym/>
  54. <clamdg/>
  55. <pid/>
  56. <pidsn/>
  57. <ordym/>
  58. </item1>
  59. <sppmc02500>
  60. <cond>
  61. <!-- SPPMC02500_환자조회 화면으로 검색조건을 보내는 경로임 -->
  62. <srchcond/>
  63. <pid/>
  64. <hngnm/>
  65. <rrgstno1/>
  66. <rrgstno2/>
  67. </cond>
  68. </sppmc02500>
  69. <item1>
  70. <maxclamdg/>
  71. </item1>
  72. </hidden>
  73. </root>
  74. </instance>
  75. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  76. <submission id="TRPID20309" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1/ioflag" resultref="root/hidden/tmp"/>
  77. <submission id="TRPID20201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1" resultref="/root/init/tmp"/>
  78. <submission id="TRPID20407" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1" resultref="/root/init/clamdg"/>
  79. <script type="javascript" ev:event="xforms-ready">
  80. <![CDATA[
  81. // 화면을 초기화한다.
  82. fInitialize();
  83. // 팝업으로 호출되었으면...
  84. if (model.getValue("/root/hidden/item1/pid") != "") {
  85. model.setValue("/root/send/item1/clamym", model.getValue("/root/hidden/item1/clamym"));
  86. //model.setValue("/root/send/item1/clamdg", model.getValue("/root/hidden/item1/clamdg"));
  87. addComboItem("cmb_clamdg", model.getValue("/root/hidden/item1/clamdg"), model.getValue("/root/hidden/item1/clamdg"), "init");
  88. cmb_clamdg.select(0);
  89. model.setValue("/root/send/item1/pid", model.getValue("/root/hidden/item1/pid"));
  90. model.setValue("/root/send/item1/pidsn", model.getValue("/root/hidden/item1/pidsn"));
  91. model.setValue("/root/send/item1/ordym", model.getValue("/root/hidden/item1/ordym"));
  92. // 동일진료일 명세서 조회
  93. fGetDocuList();
  94. }
  95. ]]>
  96. </script>
  97. <submission id="TRPID22901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1" resultref="/root/main"/>
  98. </model>
  99. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  100. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  101. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  102. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  103. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  104. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  105. <script type="javascript" src="../../../pam/aftjudgweb/js/SMPID20000.js"/>
  106. <script type="javascript">
  107. <![CDATA[
  108. var gToday = new Date();
  109. var gBaseyear = gToday.getDateFormat("YYYY"); // (dateHelper.js)에서 제공하는 함수를 사용하여 해당 년를 구한다.
  110. var gBasemonth = gToday.getDateFormat("MM");
  111. var gBaseday = gToday.getDateFormat("DD");
  112. var gCurrentdd = gBaseyear + gBasemonth + gBaseday;
  113. var gCurrentym = gBaseyear + gBasemonth;
  114. // -----------------------
  115. // ▶ 화면초기화
  116. // -----------------------
  117. function fInitialize() {
  118. // ---------------------------------------------------------------
  119. // 공통코드를 조회한다.
  120. // (ZBC001.js) com.ZBCMCODE 에서 기초코드 값 Get
  121. // ---------------------------------------------------------------
  122. zbcfGetCodeList(
  123. new Array("P0291" // 진료분야
  124. ,"P0155" // 청구구분
  125. ),
  126. new Array("/root/init/P0291list"
  127. ,"/root/init/P0155list"
  128. ) );
  129. // 팝업이 아니면 청구월 셋팅
  130. if (model.getValue("/root/hidden/item1/pid") == "") {
  131. var lv_date = gCurrentym.toDate("YYYYMM" + "01");
  132. lv_date = lv_date.getAddDate(-1, "M")
  133. gCurrentym = lv_date.getDateFormat("YYYYMM")
  134. model.setValue("/root/send/item1/clamym", gCurrentym);
  135. model.setValue("/root/send/item1/ordym", gCurrentym);
  136. } else {
  137. model.setValue("/root/send/item1/clamym", "");
  138. }
  139. // ---------------------------------------------------------------
  140. // 청구과, 심사자, 진료과, 주치의, 청구차수, 삼시자선택 초기화
  141. // ---------------------------------------------------------------
  142. submit("TRPID20201",false);
  143. model.removeNodeset("root/init/judgrid");
  144. model.removeNodeset("root/init/suppkind");
  145. model.removeNodeset("root/init/orddrid");
  146. model.removeNodeset("root/init/orddrid2");
  147. model.removeNodeset("root/init/clamdept");
  148. model.removeNodeset("root/init/orddeptcd");
  149. model.removeNodeset("root/init/item3");
  150. model.removeNodeset("root/init/clamdg");
  151. model.makeNode("root/init/judgrid");
  152. model.makeNode("root/init/suppkind");
  153. model.makeNode("root/init/orddrid");
  154. model.makeNode("root/init/orddrid2");
  155. model.makeNode("root/init/clamdept");
  156. model.makeNode("root/init/orddeptcd");
  157. model.makeNode("root/init/item3");
  158. model.makeNode("root/init/clamdg");
  159. model.copyNode("root/init/judgrid", "root/init/tmp/judgrid");
  160. model.copyNode("root/init/suppkind", "root/init/tmp/suppkind");
  161. model.copyNode("root/init/orddrid", "root/init/tmp/orddrid");
  162. model.copyNode("root/init/orddrid2", "root/init/tmp/orddrid2");
  163. model.copyNode("root/init/clamdept", "root/init/tmp/clamdept");
  164. model.copyNode("root/init/orddeptcd", "root/init/tmp/orddeptcd");
  165. model.copyNode("root/init/item3", "root/init/tmp/item3");
  166. model.copyNode("root/init/clamdg", "root/init/tmp/clamdg");
  167. model.removeNodeset("root/init/tmp/judgrid");
  168. model.removeNodeset("root/init/tmp/suppkind");
  169. model.removeNodeset("root/init/tmp/orddrid");
  170. model.removeNodeset("root/init/tmp/orddrid2");
  171. model.removeNodeset("root/init/tmp/clamdept");
  172. model.removeNodeset("root/init/tmp/orddeptcd");
  173. model.removeNodeset("root/init/tmp/item3");
  174. model.removeNodeset("root/init/tmp/clamdg");
  175. model.refresh();
  176. cmb_clamdg.select(0);
  177. }
  178. // ----------------------------------------------------------------------
  179. // ▶ 동일진료일 명세서조회
  180. // ----------------------------------------------------------------------
  181. function fGetDocuList() {
  182. var chk = true;
  183. if (model.getValue("/root/send/item1/clamym") == "") {
  184. chk = false;
  185. messageBox("청구년월은", "I003"); //I003=필수입력입니다.
  186. model.setFocus("ipt_clamym");
  187. } else if (model.getValue("/root/send/item1/clamdg") == "") {
  188. chk = false;
  189. messageBox("청구차수", "I003"); //I003=필수입력입니다.
  190. model.setFocus("cmb_clamdg");
  191. } else if (model.getValue("/root/send/item1/ordym") == "") {
  192. chk = false;
  193. messageBox("진료년월", "I003"); //I003=필수입력입니다.
  194. model.setFocus("ipt_ordym");
  195. }
  196. if (chk == true) {
  197. submit("TRPID22901");
  198. }
  199. }
  200. // ----------------------------------------------------------------------
  201. // ▶ 환자조회
  202. // ----------------------------------------------------------------------
  203. function fGetSrchPid() {
  204. var ipt_pid = model.getValue("/root/send/item1/pid");
  205. if (ipt_pid.charCodeAt(0) > 255) {
  206. model.setValue("/root/hidden/sppmc02500/cond/srchcond", "2"); // 검색조건 : 환자명으로 설정
  207. model.setValue("/root/hidden/sppmc02500/cond/hngnm", ipt_pid);
  208. } else {
  209. model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
  210. model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid);
  211. }
  212. // pam/commonweb/xrw/SPPMC02500_환자조회.xrw
  213. modal("SPPMC02500", "1", "150", "150", "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send", "", ""); // SPPMC02500_환자조회.xrw
  214. var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  215. if (srch_pid) { // SPPMC02500_환자조회 화면에서 조회한 경우임
  216. model.removeNodeset("/root/main/patinfo/patinfolist"); // patinfolist가 제거됨 (resetInstanceNode의 경우 값은 지우고 노드는 남아있음)
  217. model.makeNode("/root/main/patinfo/patinfolist"); // SPPMC02500_환자조회 팝업을 다시 조회할 경우를 위해 다시 노드를 추가함
  218. model.setValue("/root/send/item1/pid", srch_pid);
  219. }
  220. model.refresh();
  221. }
  222. ]]>
  223. </script>
  224. </xhtml:head>
  225. <xhtml:body pagewidth="960" pageheight="660" guideline="1,1163;2,727;2,739;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  226. <group id="grp_tle" style="left:0px; top:0px; width:865px; height:13px; ">
  227. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:163px; height:14px; ">동일진료일 명세서조회</caption>
  228. </group>
  229. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:940px; height:607px; ">
  230. <datagrid id="grd_clbsmast" nodeset="/root/main/list1/clbs" class="datagrid2" caption="명번호^청구구분^등록번호^등록번호^환자명^보험&#xA;유형^보조&#xA;유형^진료분야^진료과^진료의^주상병^심사자^진료개시일^진료종료일^동일진료일" colsep="^" colwidth="42, 56, 67, 22, 53, 30, 30, 58, 70, 60, 100, 60, 80, 80, 187" dataheight="23" ellipsis="true" extendlastcol="scroll" frozencols="8" mergecellsfixedcols="bycol" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:65px; width:935px; height:540px; ">
  231. <col ref="docuseqno" style="text-align:right; "/>
  232. <col disabled="true" ref="clamflagcd" type="combo" style="text-align:center; ">
  233. <choices>
  234. <itemset nodeset="/root/init/P0155list/P0155">
  235. <label ref="cdnm"/>
  236. <value ref="cdid"/>
  237. </itemset>
  238. </choices>
  239. </col>
  240. <col ref="pid" style="text-align:center; "/>
  241. <col ref="pidsn" style="text-align:center; "/>
  242. <col ref="patnm" style="left:332px; top:32px; width:53px; height:23px; text-align:center; "/>
  243. <col ref="insukind" type="output" style="text-align:center; "/>
  244. <col ref="suppkind" type="output" style="text-align:center; "/>
  245. <col disabled="true" ref="ordfildcd" type="combo" style="text-align:center; ">
  246. <choices>
  247. <itemset nodeset="/root/init/P0291list/P0291">
  248. <label ref="cdnm"/>
  249. <value ref="cdid"/>
  250. </itemset>
  251. </choices>
  252. </col>
  253. <col disabled="true" ref="orddeptcd" type="combo" style="text-align:left; ">
  254. <choices>
  255. <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
  256. <label ref="nm"/>
  257. <value ref="cd"/>
  258. </itemset>
  259. </choices>
  260. </col>
  261. <col disabled="true" ref="orddrid" type="combo" style="text-align:center; ">
  262. <choices>
  263. <itemset nodeset="/root/init/orddrid2/orddridlist">
  264. <label ref="nm"/>
  265. <value ref="cd"/>
  266. </itemset>
  267. </choices>
  268. </col>
  269. <col ref="diagcd" style="text-align:left; "/>
  270. <col disabled="true" ref="judgrid" type="combo" style="text-align:center; ">
  271. <choices>
  272. <itemset nodeset="/root/init/judgrid/judgridlist">
  273. <label ref="nm"/>
  274. <value ref="cd"/>
  275. </itemset>
  276. </choices>
  277. </col>
  278. <col ref="ordfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  279. <col ref="ordtodd" format="yyyy-mm-dd" style="text-align:center; "/>
  280. <col ref="samedate" format="yyyy-mm-dd"/>
  281. </datagrid>
  282. <caption id="cap_judgtrgtman" class="tit_2" style="left:4px; top:46px; width:126px; height:13px; ">대상자조회</caption>
  283. <line id="line1" class="line_1" style="x1:0px; y1:62px; x2:935px; y2:62px; "/>
  284. <group id="group1" style="left:0px; top:5px; width:935px; height:31px; vertical-align:top; ">
  285. <shape id="roundrect3" appearance="roundrect" style="left:0px; top:0px; width:935px; height:31px; "/>
  286. <caption id="caption30" class="search_name" style="left:8px; top:7px; width:85px; height:17px; ">청구년월</caption>
  287. <input id="ipt_clamym" ref="/root/send/item1/clamym" class="input_search" navindex="1" inputtype="date" format="yyyy-mm" style="left:88px; top:6px; width:69px; height:19px; text-align:center; ">
  288. <script type="javascript" ev:event="xforms-value-changed">
  289. <![CDATA[
  290. pidfGetClamdg();
  291. ]]>
  292. </script>
  293. </input>
  294. <!-- 기존 ID : 1214 => P0235 => P0291 -->
  295. <!-- 기존 : /root/InitData2/comccodem => P0287 확인해볼 것 -->
  296. <caption id="caption38" class="search_name" style="left:223px; top:7px; width:84px; height:17px; ">등록번호</caption>
  297. <input id="ipt_patunitsrch" ref="/root/send/item1/pid" class="input_search" navindex="2" inputtype="button" maxlength="10" style="left:302px; top:6px; width:97px; height:19px; ">
  298. <hint>
  299. <![CDATA[환자성명으로 검색시 2자 이상 입력하세요.]]>
  300. </hint>
  301. <script type="javascript" ev:event="onkeypress">
  302. <![CDATA[
  303. if (event.keyCode == "13") { // Enter 입력 시에
  304. if (ipt_patunitsrch.currentText.length > 1) { // 2글자 이상이면
  305. setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
  306. var srchtext = model.getValue("/root/send/item1/pid");
  307. if (srchtext.charCodeAt(0) > 255) {
  308. fGetSrchPid();
  309. } else {
  310. fGetDocuList();
  311. }
  312. }
  313. }
  314. ]]>
  315. </script>
  316. <script type="javascript" ev:event="onbuttonclick">
  317. <![CDATA[
  318. fGetSrchPid();
  319. ]]>
  320. </script>
  321. <script type="javascript" ev:event="xforms-value-changed">
  322. <![CDATA[
  323. if (model.getValue("/root/send/item1/pid") == "") {
  324. // 청구년월에 대한 청구차수 조회
  325. pidfGetClamdg();
  326. model.setValue("/root/send/item1/pidsn", "");
  327. model.refreshpart("/root/send/item1/pidsn");
  328. }
  329. ]]>
  330. </script>
  331. </input>
  332. <button id="btn_select" class="btn1_letter2" navindex="32" style="left:865px; top:5px; width:56px; height:22px; ">
  333. <caption>조회</caption>
  334. <script type="javascript" ev:event="DOMActivate">
  335. <![CDATA[
  336. fGetDocuList();
  337. ]]>
  338. </script>
  339. </button>
  340. <select1 id="cmb_clamdg" ref="/root/send/item1/clamdg" appearance="minimal" style="left:162px; top:6px; width:51px; height:19px; ">
  341. <choices>
  342. <itemset nodeset="/root/init/clamdg/clamdglist">
  343. <label ref="clamdgnm"/>
  344. <value ref="clamdgcd"/>
  345. </itemset>
  346. </choices>
  347. </select1>
  348. <line id="line3" class="line_4" style="x1:840px; y1:5px; x2:840px; y2:28px; "/>
  349. <select1 id="cmb_judgrid" ref="/root/send/item1/judgrid" class="combo_search" navindex="8" appearance="minimal" style="left:499px; top:5px; width:85px; height:19px; ">
  350. <choices>
  351. <itemset nodeset="/root/init/judgrid/judgridlist">
  352. <label ref="nm"/>
  353. <value ref="cd"/>
  354. </itemset>
  355. </choices>
  356. </select1>
  357. <caption id="caption39" class="search_name" style="left:431px; top:6px; width:65px; height:17px; ">심사자</caption>
  358. <input id="ipt_ordym" ref="/root/send/item1/ordym" class="input_default" navindex="4" maxlength="6" format="yyyy-mm" style="left:669px; top:5px; width:65px; height:19px; "/>
  359. <caption id="caption1" class="search_name" style="left:592px; top:6px; width:76px; height:17px; ">진료년월</caption>
  360. <output id="opt_gender" ref="/root/send/item1/pidsn" class="output_fix" style="left:401px; top:6px; width:18px; height:19px; ">
  361. <hint>
  362. <![CDATA[성별]]>
  363. </hint>
  364. </output>
  365. <select id="chk_ordfildcd" ref="/root/send/item1/ordfildcdyn" overflow="visible" appearance="full" style="left:748px; top:7px; width:81px; height:20px; border-style:none; ">
  366. <choices>
  367. <item>
  368. <label>타분야포함</label>
  369. <value>Y</value>
  370. </item>
  371. </choices>
  372. </select>
  373. </group>
  374. <button id="btn_excelsave" class="btn2_letter4" _auth="P" style="left:865px; top:40px; width:64px; height:19px; ">
  375. <caption>엑셀저장</caption>
  376. <script type="javascript" ev:event="DOMActivate">
  377. <![CDATA[
  378. if (grd_clbsmast.rows > 1) {
  379. var fileName = window.fileDialog("save", "", false, "동일진료일 명세서조회", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  380. if (fileName != "") {
  381. grd_clbsmast.saveExcel(fileName, "sheetname:;colhiddenextend:false;rowhiddenextend:false;", true, true, "", "", true);
  382. }
  383. } else {
  384. messageBox("엑셀저장할 내역이", "I004"); ///엑셀저장할 내역이 없습니다.
  385. }
  386. ]]>
  387. </script>
  388. </button>
  389. </group>
  390. <button id="btn_cancel" class="btn4_letter2" style="left:879px; top:622px; width:56px; height:22px; ">
  391. <caption>종료</caption>
  392. <close ev:event="DOMActivate"/>
  393. </button>
  394. </xhtml:body>
  395. </xhtml:html>