SMPIF72100_반송재청구장부(산재).xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429
  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. <send>
  10. <termflag>clamym</termflag>
  11. <fromdd/>
  12. <todd/>
  13. <ioflag>A</ioflag>
  14. <judgrid/>
  15. <endyn/>
  16. <orddeptcd/>
  17. <patunitsrch1/>
  18. </send>
  19. <main>
  20. <list01>
  21. <gridsendreclambookspec>
  22. <clamym/>
  23. <clamflag/>
  24. <clamdg/>
  25. <uncoym/>
  26. <ioflag/>
  27. <insukind/>
  28. <docuseqno/>
  29. <pid/>
  30. <patnm/>
  31. <judgrid/>
  32. <reteresn/>
  33. <reteresnrem/>
  34. <clclamamt/>
  35. <reclamyn/>
  36. <abdresncd/>
  37. <repletclamdifamt/>
  38. <difamtgenrresn/>
  39. <repletclamym/>
  40. <repletclamdg/>
  41. <repletjudgrid/>
  42. <repletacptdd/>
  43. <repletclamamt/>
  44. <resendyn/>
  45. <repletjrrealcutamt/>
  46. <rem/>
  47. </gridsendreclambookspec>
  48. </list01>
  49. </main>
  50. <init>
  51. <P0114list>
  52. <P0114>
  53. <cdid/>
  54. <cdnm/>
  55. </P0114>
  56. </P0114list>
  57. <P0425list>
  58. <P0425>
  59. <cdid/>
  60. <cdnm/>
  61. </P0425>
  62. </P0425list>
  63. </init>
  64. <hidden>
  65. <sppmc02500>
  66. <cond>
  67. <srchcond/>
  68. <pid/>
  69. <hngnm/>
  70. <rrgstno1/>
  71. <rrgstno2/>
  72. </cond>
  73. </sppmc02500>
  74. <hidbatchgrid>
  75. <ofidocno/>
  76. <ofidocarvdd/>
  77. </hidbatchgrid>
  78. </hidden>
  79. </root>
  80. </instance>
  81. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  82. <submission id="TRPIF72101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list01"/>
  83. <submission id="TXPIF72101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list02" resultref="/root/result"/>
  84. </model>
  85. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  86. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  87. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  88. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  89. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  90. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  91. <script type="javascript" ev:event="xforms-ready">
  92. <![CDATA[
  93. // 공통코드 Load작업
  94. zbcfGetCodeList(new Array("P0114"), new Array( "/root/init/P0114list")); // 청구과
  95. zbcfGetCodeList(new Array("P0242"), new Array( "/root/init/P0242list")); // 사유
  96. zbcfGetCodeList(new Array("P0121"), new Array( "/root/init/P0121list")); // 반송사유
  97. // grd_sendreclambookspec.colHidden(13) = true; // 주민번호 필드 감추기(주민보류와 자격보류인 경우만 보임)
  98. // grd_sendreclambookspec.colHidden(20) = true; // 심사보류 상세사유 감추기(심사보류인 경우만 보임)
  99. // grd_sendreclambookspec.colHidden(21) = true; // 심사보류 상세설명 감추기(심사보류인 경우만 보임)
  100. model.setFocus("ipt_fromdd");
  101. ]]>
  102. </script>
  103. <script type="javascript">
  104. <![CDATA[
  105. function fGetInAftJudgTrgtManList(){
  106. // 환자단위조회를 하는 경우
  107. var patunitsrch1 = model.getValue("/root/send/patunitsrch1").getTrim(); // (stringHelper.js) 문자열 앞뒤에 있는 공백 제거
  108. model.setValue("/root/send/patunitsrch1", patunitsrch1);
  109. if (patunitsrch1 == "") {
  110. model.setValue("/root/send/patunitsrch2", "");
  111. }
  112. else if (patunitsrch1.isNumber()) { // (numericHelper.js) 숫자가 입력된 경우 환자번호로 조회한다.
  113. model.setValue("/root/send/patunitsrch2", "pidSrch");
  114. } else { // 문자가 입력된 경우 환자이름으로 조회한다.
  115. if (patunitsrch1.length > 1) {
  116. model.setValue("/root/send/patunitsrch2", "nmSrch");
  117. } else {
  118. model.setValue("/root/send/patunitsrch2", "");
  119. model.refresh();
  120. messageBox("환자단위조회시 검색할 환자이름은 2글자 이상", "C001"); ///환자단위조회시 검색할 환자이름은 2글자 이상 입력하십시오.
  121. return;
  122. }
  123. }
  124. }
  125. function fPatTypeSrch() {
  126. var ipt_pid = model.getValue("/root/send/patunitsrch1");
  127. if (ipt_pid) {
  128. if(ipt_pid.isNumber()) {
  129. model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
  130. model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid);
  131. } else {
  132. model.setValue("/root/hidden/sppmc02500/cond/srchcond", "2"); // 검색조건 : 환자명으로 설정
  133. model.setValue("/root/hidden/sppmc02500/cond/hngnm", ipt_pid);
  134. }
  135. } else {
  136. model.resetInstanceNode("/root/hidden/sppmc02500/cond");
  137. }
  138. modal("SPPMC02500", 1,150, 150, "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send");
  139. // 환자단위조회 InputBox에 값을 입력후 팝업조회했을 때
  140. if (ipt_pid != "") {
  141. if(ipt_pid.isNumber()) {
  142. var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  143. model.setValue("/root/send/patunitsrch1", srch_pid);
  144. } else {
  145. var srch_pid = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  146. model.setValue("/root/send/patunitsrch1", srch_pid);
  147. }
  148. } else {
  149. var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  150. model.setValue("/root/send/patunitsrch1", srch_pid);
  151. }
  152. model.refresh();
  153. fGetInAftJudgTrgtManList();
  154. }
  155. ]]>
  156. </script>
  157. </xhtml:head>
  158. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  159. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  160. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">반송재청구장부(산재)</caption>
  161. </group>
  162. <group id="grp_btn" scroll="auto" style="left:0px; top:752px; width:1195px; height:27px; "/>
  163. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:737px; ">
  164. <group id="group5" style="left:0px; top:10px; width:1194px; height:60px; vertical-align:top; ">
  165. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
  166. <button id="button1" class="btn1_letter2" style="left:1123px; top:20px; width:56px; height:22px; ">
  167. <caption>조회</caption>
  168. <script type="javascript" ev:event="onclick">
  169. <![CDATA[
  170. if( model.getValue("/root/send/fromdd") == '' || model.getValue("/root/send/todd") == '' ){
  171. messageBox("시작일자 또는 종료일자를 입력해 주세요", "E999", "");
  172. return false;
  173. }
  174. // 보험유형이 보험인 경우 보호에 해당하는 필드 감추기. 보험에 해당하는 필드 보이기.
  175. submit("TRPIF72101");
  176. model.refresh();
  177. ]]>
  178. </script>
  179. </button>
  180. <line id="line26" class="line_4" style="x1:1108px; y1:12px; x2:1108px; y2:49px; border-color:#ffe4bb; border-left-style:solid; "/>
  181. <caption id="caption31" style="left:281px; top:7px; width:15px; height:15px; ">~</caption>
  182. <select1 id="rdo_termflag" ref="/root/send/termflag" overflow="visible" appearance="full" cols="3" rows="1" style="left:70px; top:6px; width:115px; height:17px; border-style:none; ">
  183. <choices>
  184. <item>
  185. <label>청구월</label>
  186. <value>clamym</value>
  187. </item>
  188. <item>
  189. <label>미수월</label>
  190. <value>uncoym</value>
  191. </item>
  192. </choices>
  193. <script type="javascript" ev:event="xforms-select">
  194. <![CDATA[
  195. model.setValue("/root/send/fromdd","");
  196. model.setValue("/root/send/todd","");
  197. if(rdo_termflag.value == "clamym" || rdo_termflag.value == "uncoym") {
  198. ipt_fromdd.attribute("format") = "yyyy-mm";
  199. ipt_todd.attribute("format") = "yyyy-mm";
  200. ipt_fromdd.attribute("maxlength") = 6;
  201. ipt_todd.attribute("maxlength") = 6;
  202. ipt_fromdd.attribute("inputtype") = "date";
  203. ipt_todd.attribute("inputtype") = "date";
  204. } else {
  205. ipt_fromdd.attribute("format") = "";
  206. ipt_todd.attribute("format") = "";
  207. ipt_fromdd.attribute("maxlength") = 8;
  208. ipt_todd.attribute("maxlength") = 8;
  209. ipt_fromdd.attribute("inputtype") = "";
  210. ipt_todd.attribute("inputtype") = "";
  211. }
  212. model.setFocus("ipt_fromdd");
  213. model.refresh();
  214. ]]>
  215. </script>
  216. </select1>
  217. <caption id="caption67" class="search_name" style="left:425px; top:5px; width:90px; height:17px; ">내원유형 :</caption>
  218. <caption id="caption22" class="search_name" style="left:780px; top:5px; width:90px; height:17px; ">완료여부 :</caption>
  219. <caption id="caption38" class="search_name" style="left:5px; top:35px; width:75px; height:17px; ">심사자 :</caption>
  220. <caption id="caption39" class="search_name" style="left:425px; top:35px; width:75px; height:17px; ">진료과 :</caption>
  221. <caption id="caption40" class="search_name" style="left:780px; top:35px; width:112px; height:17px; ">환자단위조회 :</caption>
  222. <select1 id="cmb_judgrid" ref="/root/send/judgrid" class="combo_search" appearance="minimal" style="left:85px; top:34px; width:90px; height:19px; ">
  223. <choices>
  224. <item>
  225. <label>combo2</label>
  226. <value>combo2</value>
  227. </item>
  228. </choices>
  229. </select1>
  230. <select1 id="cmb_orddeptcd" ref="/root/send/orddeptcd" class="combo_search" appearance="minimal" style="left:505px; top:34px; width:140px; height:19px; ">
  231. <choices>
  232. <itemset nodeset="/root/init/P0114list/P0114">
  233. <label ref="cdnm"/>
  234. <value ref="cdid"/>
  235. </itemset>
  236. </choices>
  237. </select1>
  238. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_search" inputtype="date" maxlength="6" format="yyyy-mm" style="left:192px; top:6px; width:85px; height:19px; ">
  239. <script type="javascript" ev:event="DOMFocusOut">
  240. <![CDATA[
  241. ipt_todd.value = ipt_fromdd.value;
  242. ]]>
  243. </script>
  244. </input>
  245. <input id="ipt_todd" ref="/root/send/todd" class="input_search" inputtype="date" maxlength="6" format="yyyy-mm" style="left:295px; top:6px; width:85px; height:19px; "/>
  246. <select1 id="rdo_ioflag" ref="/root/send/ioflag" overflow="visible" appearance="full" cols="3" rows="1" style="left:515px; top:5px; width:135px; height:17px; border-style:none; ">
  247. <choices>
  248. <item>
  249. <label>전체</label>
  250. <value>A</value>
  251. </item>
  252. <item>
  253. <label>입원</label>
  254. <value>I</value>
  255. </item>
  256. <item>
  257. <label>외래</label>
  258. <value>O</value>
  259. </item>
  260. </choices>
  261. </select1>
  262. <select1 id="rdo_endyn" ref="/root/send/endyn" overflow="visible" appearance="full" cols="3" rows="1" style="left:870px; top:5px; width:145px; height:17px; border-style:none; ">
  263. <choices>
  264. <item>
  265. <label>전체</label>
  266. <value>A</value>
  267. </item>
  268. <item>
  269. <label>완료</label>
  270. <value>Y</value>
  271. </item>
  272. <item>
  273. <label>미완료</label>
  274. <value>N</value>
  275. </item>
  276. </choices>
  277. </select1>
  278. <input id="ipt_patunitsrch" ref="/root/send/patunitsrch1" class="input_search" inputtype="button" style="left:900px; top:34px; width:90px; height:19px; ">
  279. <hint>
  280. <![CDATA[환자성명으로 검색시 2자 이상 입력하세요.]]>
  281. </hint>
  282. <script type="javascript" ev:event="onkeypress">
  283. <![CDATA[
  284. if (event.keyCode == "13") { // Enter 입력 시에
  285. if (ipt_patunitsrch.currentText.length > 1) { // 2글자 이상이면
  286. setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
  287. fPatTypeSrch();
  288. // fGetInAftJudgTrgtManList();
  289. }
  290. }
  291. ]]>
  292. </script>
  293. <script type="javascript" ev:event="onbuttonclick">
  294. <![CDATA[
  295. fPatTypeSrch();
  296. ]]>
  297. </script>
  298. </input>
  299. <caption id="caption1" class="search_name" style="left:5px; top:5px; width:60px; height:17px; ">구분 :</caption>
  300. </group>
  301. <line id="line28" class="line_1" style="x1:0px; y1:100px; x2:1194px; y2:100px; "/>
  302. <caption id="caption37" class="tit_2" style="left:5px; top:85px; width:74px; height:14px; ">반송전체</caption>
  303. <datagrid id="grd_procsendspec" nodeset="/root/main/list01/gridsendreclambookspec" class="datagrid2" caption="청구월^청구형태^청구&#xA;차수^미수월^내원&#xA;유형^산재유형^명일련^등록번호^수진자^심사자^사유^사유설명^청구액^재청구여부^부제기사유^보완청구액&#xA;-원청구차액^차액발생사유^보완&#xA;청구연월^청구&#xA;차수^보완&#xA;심사자^보완&#xA;청구일자^청구액^재반송&#xA;여부^실삭감액^비고^비고" colsep="^" colwidth="60, 60, 40, 60, 40, 70, 50, 99, 72, 59, 72, 114, 80, 82, 87, 80, 92, 85, 47, 51, 70, 80, 60, 80, 147" dataheight="23" defaultrows="2" ellipsis="true" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="35" rowsep="|" tooltip="true" style="left:0px; top:105px; width:1194px; height:630px; ">
  304. <col ref="clamym" format="yyyy-mm" style="text-align:center; "/>
  305. <col ref="clamflag" type="combo" style="text-align:center; ">
  306. <choices>
  307. <itemset nodeset="/root/init/P0121list/P0121">
  308. <label ref="cdnm"/>
  309. <value ref="cdid"/>
  310. </itemset>
  311. </choices>
  312. </col>
  313. <col ref="clamdg" style="text-align:center; "/>
  314. <col ref="uncoym" format="yyyy-mm" style="text-align:center; "/>
  315. <col ref="ioflag" style="text-align:center; "/>
  316. <col ref="insukind" style="text-align:center; "/>
  317. <col ref="docuseqno" style="text-align:center; "/>
  318. <col ref="pid" style="text-align:center; "/>
  319. <col ref="patnm" style="text-align:center; "/>
  320. <col ref="judgrid" style="text-align:center; "/>
  321. <col ref="reteresn" type="combo" style="text-align:center; ">
  322. <choices>
  323. <itemset nodeset="/root/init/P0242list/P0242">
  324. <label ref="cdnm"/>
  325. <value ref="cdid"/>
  326. </itemset>
  327. </choices>
  328. </col>
  329. <col ref="reteresnrem"/>
  330. <col ref="clclamamt" format="#,###" style="text-align:right; "/>
  331. <col ref="reclamyn" style="text-align:center; "/>
  332. <col ref="abdresncd" style="text-align:center; "/>
  333. <col ref="repletclamdifamt" format="(-)#,###" style="text-align:right; "/>
  334. <col ref="difamtgenrresn" style="text-align:center; "/>
  335. <col ref="repletclamym" format="yyyy-mm" style="text-align:center; "/>
  336. <col ref="repletclamdg" style="text-align:center; "/>
  337. <col ref="repletjudgrid" style="text-align:center; "/>
  338. <col ref="repletacptdd" format="yyyy-mm-dd"/>
  339. <col ref="repletclamamt" format="#,###" style="text-align:right; "/>
  340. <col ref="resendyn" style="text-align:center; "/>
  341. <col ref="repletjrrealcutamt" format="#,###" style="text-align:right; "/>
  342. <col ref="rem"/>
  343. </datagrid>
  344. <button id="button26" class="btn2_letter2" visibility="hidden" style="left:785px; top:80px; width:42px; height:19px; ">
  345. <caption>저장</caption>
  346. <script type="javascript" ev:event="onclick">
  347. <![CDATA[
  348. model.setValue("/root/main/list02/gridsendreclambookspec", grd_sendreclambookspec.getUpdateData());
  349. if(submit("TXPIF72101")) {
  350. submit("TRPIF72101");
  351. }
  352. ]]>
  353. </script>
  354. </button>
  355. <button id="button3" class="btn2_letter3" style="left:989px; top:80px; width:53px; height:19px; ">
  356. <caption>행카피</caption>
  357. <script type="javascript" ev:event="onclick">
  358. <![CDATA[
  359. grd_sendreclambookspec.attribute("selectionmode") = "byrow";
  360. ]]>
  361. </script>
  362. </button>
  363. <button id="button4" class="btn2_letter6" style="left:1043px; top:80px; width:86px; height:19px; ">
  364. <caption>Open Excel</caption>
  365. <script type="javascript" ev:event="DOMActivate">
  366. <![CDATA[
  367. try {
  368. window.exec("excel");
  369. } catch(e) {
  370. alert(e);
  371. }
  372. ]]>
  373. </script>
  374. </button>
  375. <button id="button5" class="btn2_letter3" style="left:935px; top:80px; width:53px; height:19px; ">
  376. <caption>열카피</caption>
  377. <script type="javascript" ev:event="onclick">
  378. <![CDATA[
  379. grd_sendreclambookspec.attribute("selectionmode") = "bycol";
  380. ]]>
  381. </script>
  382. </button>
  383. <button id="button10" class="btn2_letter3" style="left:881px; top:80px; width:53px; height:19px; ">
  384. <caption>셀카피</caption>
  385. <script type="javascript" ev:event="onclick">
  386. <![CDATA[
  387. grd_sendreclambookspec.attribute("selectionmode") = "free";
  388. ]]>
  389. </script>
  390. </button>
  391. <button id="button12" class="btn2_letter4" style="left:1130px; top:79px; width:64px; height:19px; ">
  392. <caption>엑셀저장</caption>
  393. <script type="javascript" ev:event="onclick">
  394. <![CDATA[
  395. var today = new Date();
  396. var yy = today.getYear()+"";
  397. var mm = today.getMonth()+1;
  398. var dd = today.getDate();
  399. if(mm < 10) { mm = "0"+mm; } else { mm = mm+""; }
  400. if(dd < 10) { dd = "0" + dd; } else { dd = dd + ""; }
  401. var tmp = yy+mm+dd;
  402. var title = "";
  403. if(rdo_insukind.value == "00") {
  404. title = "반송재청구장부(전체)_"+tmp;
  405. } else {
  406. title = "반송재청구장부(보험)_"+tmp;
  407. }
  408. var fileName = window.fileDialog("save", ",", false, title, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  409. if (fileName != "") {
  410. grd_sendreclambookspec.saveExcel(fileName, "SheetName", true, true, "", "", "");
  411. }
  412. ]]>
  413. </script>
  414. </button>
  415. </group>
  416. </xhtml:body>
  417. </xhtml:html>