SMPIF71200_청구현황(자보).xrw 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739
  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>B</termflag>
  11. <fromdd/>
  12. <todd/>
  13. <clamym/>
  14. <clamdgfrom/>
  15. <clamdgto/>
  16. <ioflag>A</ioflag>
  17. <endyn>A</endyn>
  18. <patunitsrch1/>
  19. <patunitsrch2/>
  20. <certno/>
  21. <acdacptno/>
  22. <clamflag/>
  23. <insukind/>
  24. </send>
  25. <main>
  26. <list>
  27. <datagrid1>
  28. <insucd/>
  29. <insucmpymark/>
  30. <acptdd/>
  31. <ioflag/>
  32. <pid/>
  33. <patnm/>
  34. <patrrgstno/>
  35. <clamym/>
  36. <clamdg/>
  37. <orddeptcd/>
  38. <orddrid/>
  39. <indd/>
  40. <dschdd/>
  41. <interm/>
  42. <acdacptno/>
  43. <clamamt/>
  44. </datagrid1>
  45. <datagrid2>
  46. <ioflag/>
  47. <insucmpymark/>
  48. <ordym/>
  49. <clamdg/>
  50. <clamno/>
  51. <acptdd/>
  52. <acptno/>
  53. <clamcnt/>
  54. <clamamt/>
  55. </datagrid2>
  56. <datagrid3>
  57. <uncoym/>
  58. <clamym/>
  59. <ioflag/>
  60. <clamdg/>
  61. <orddeptcd/>
  62. <clamcnt/>
  63. <clamamt/>
  64. <avgordamt/>
  65. </datagrid3>
  66. <datagrid4>
  67. <insucd/>
  68. <clamym/>
  69. <insucmpymark/>
  70. <clamcnt/>
  71. <clamamt/>
  72. <acptdd/>
  73. </datagrid4>
  74. </list>
  75. <patinfo>
  76. <patinfolist/>
  77. </patinfo>
  78. </main>
  79. <init>
  80. <U0001list>
  81. <U0001>
  82. <cd/>
  83. <nm/>
  84. </U0001>
  85. </U0001list>
  86. <P0028list>
  87. <P0028>
  88. <cdid/>
  89. <cdnm/>
  90. </P0028>
  91. </P0028list>
  92. <P0155list>
  93. <P0155>
  94. <cdid/>
  95. <cdnm/>
  96. </P0155>
  97. </P0155list>
  98. </init>
  99. <hidden>
  100. <U0001>
  101. <cd/>
  102. <nm>전체</nm>
  103. </U0001>
  104. <U0002list>
  105. <U0002>
  106. <cdid/>
  107. <cdnm/>
  108. </U0002>
  109. </U0002list>
  110. <sppmc02500>
  111. <cond>
  112. <srchcond/>
  113. <pid/>
  114. <hngnm/>
  115. <rrgstno1/>
  116. <rrgstno2/>
  117. <insukind/>
  118. </cond>
  119. </sppmc02500>
  120. <excel>
  121. <seqno/>
  122. <printno/>
  123. </excel>
  124. </hidden>
  125. </root>
  126. </instance>
  127. <script type="javascript" ev:event="xforms-ready">
  128. <![CDATA[
  129. CommCode_Load();
  130. // 그리드 초기화(행을 모두 삭제한다.)
  131. model.removeNodeset("/root/main/list/datagrid1");
  132. model.removeNodeset("/root/main/list/datagrid2");
  133. model.removeNodeset("/root/main/list/datagrid3");
  134. model.refresh();
  135. //model.setValue("/root/send/fromdd", getCurrentDate().toDate().getAddDate(-90).getDateFormat("YYYYMM"));
  136. //cmb_clamtype.select(1);
  137. model.refresh();
  138. model.setValue("/root/send/fromdd", getCurrentDate().substr(0, 6));
  139. model.setValue("/root/send/todd", getCurrentDate().substr(0, 6));
  140. fGetClamdg();
  141. // 손보사 코드 조회
  142. // submit("TRPIF70305");
  143. ]]>
  144. </script>
  145. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  146. <submission id="TRPIF30903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/U0002list"/>
  147. <!-- 손보사 리스트 조회 -->
  148. <submission id="TRPIF70305" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/U0001list"/>
  149. <!-- 손보사별/월별/과별 청구현황 -->
  150. <submission id="TRPIF71201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
  151. <submission id="TRPID20407" mediatype="application/x-www-form-urlencoded" method="post" ref="root/send" resultref="/root/init/clamdg"/>
  152. </model>
  153. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  154. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  155. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  156. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  157. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  158. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  159. <script type="javascript">
  160. <![CDATA[
  161. // 공통코드 Load작업
  162. function CommCode_Load() {
  163. // 관련 Control 초기화
  164. zbcfGetCodeList(new Array("P0028", "P0155"), new Array("/root/init/P0028list", "/root/init/P0155list"));
  165. //손보사 콤보 data 조회(자보미수관리 참조)
  166. submit("TRPIF70305");
  167. // 손보자 조회 조건에 전체가없어서 추가 해달라고 했는데 해당 조회 쿼리는 공통으로 쓰는거라
  168. // 임의로 추가함.
  169. // 20090108. JHP
  170. var node = root.init.U0001list;
  171. var addnode = root.hidden.U0001;
  172. var refnode = root.init.U0001list.U0001;
  173. node.insertbefore(addnode,refnode);
  174. }
  175. function fGetInAftJudgTrgtManList(){
  176. // 환자단위조회를 하는 경우
  177. var patunitsrch1 = model.getValue("/root/send/patunitsrch1").getTrim(); // (stringHelper.js) 문자열 앞뒤에 있는 공백 제거
  178. model.setValue("/root/send/patunitsrch1", patunitsrch1);
  179. if (patunitsrch1 == "") {
  180. model.setValue("/root/send/patunitsrch2", "");
  181. }
  182. else if (patunitsrch1.isNumber()) { // (numericHelper.js) 숫자가 입력된 경우 환자번호로 조회한다.
  183. /** [2007.03.23 jumi]
  184. Table Layout 상에는 pid가 VARCHAR(10) 이지만, 테스트용 data에서는 VARCHAR(8) 이므로 8자리로 구현함
  185. */
  186. // if (patunitsrch1.length < 8) {
  187. // model.setValue("/root/send/patunitsrch1", patunitsrch1.getLeftPad(8, "0")); // (stringHelper.js) 저장된 숫자 값에 원하는 길이만큼 '0'을 붙여 표현
  188. // }
  189. model.setValue("/root/send/patunitsrch2", "pidSrch");
  190. } else { // 문자가 입력된 경우 환자이름으로 조회한다.
  191. if (patunitsrch1.length > 1) {
  192. model.setValue("/root/send/patunitsrch2", "nmSrch");
  193. } else {
  194. model.setValue("/root/send/patunitsrch2", "");
  195. model.refresh();
  196. messageBox("환자단위조회시 검색할 환자이름은 2글자 이상", "C001"); ///환자단위조회시 검색할 환자이름은 2글자 이상 입력하십시오.
  197. return;
  198. }
  199. }
  200. }
  201. // 청구차수 함수
  202. function fGetClamdg() {
  203. var check = model.getValue("/root/send/termflag");
  204. if ( model.getValue("/root/send/fromdd") > model.getValue("/root/send/todd") ) {
  205. messageBox("종료일은 시작일보다 클 수 ", "I004");
  206. model.setValue("/root/send/todd","")
  207. }
  208. // 청구월일 경우
  209. if(check == "B"){
  210. if(model.getValue("/root/send/fromdd") != "" || model.getValue("/root/send/todd") != ""){
  211. model.removeNodeset("/root/init/clamdg");
  212. model.removenode("/root/init/clamdgfrom");
  213. model.removenode("/root/init/clamdgto");
  214. model.makeNode("/root/init/clamdg");
  215. model.setValue("/root/send/clamym",model.getValue("/root/send/fromdd"));
  216. model.setValue("/root/send/insukind","31");
  217. submit("TRPID20407");
  218. model.makeNode("/root/init/clamdgfrom");
  219. model.copyNode("/root/init/clamdgfrom","/root/init/clamdg");
  220. cmb_clamdgfrom.refresh();
  221. model.setValue("/root/send/clamym",model.getValue("/root/send/todd"));
  222. model.setValue("/root/send/insukind","31");
  223. submit("TRPID20407");
  224. model.makeNode("/root/init/clamdgto");
  225. model.copyNode("/root/init/clamdgto","/root/init/clamdg");
  226. addComboItem("cmb_clamdgfrom","전체","","above");
  227. addComboItem("cmb_clamdgto","전체","","above");
  228. cmb_clamdgto.refresh();
  229. }
  230. }
  231. }
  232. // 청구년월 차수 기간 체크, 동일한 월에 한에서만 차수로 검색이 가능하다.
  233. function fChkClamym() {
  234. var fromym = model.getValue("/root/send/fromacptym");
  235. var toym = model.getValue("/root/send/toacptym");
  236. var check = model.getValue("/root/send/termflag");
  237. if(check == "2"){
  238. if ( fromym != toym ){
  239. cmb_clamdgfrom.value = "";
  240. cmb_clamdgto.value = "";
  241. cmb_clamdgfrom.disabled = true;
  242. cmb_clamdgto.disabled = true;
  243. }else{
  244. cmb_clamdgfrom.disabled = false;
  245. cmb_clamdgto.disabled = false;
  246. cmb_clamdgfrom.select(0);
  247. cmb_clamdgto.select(0);
  248. }
  249. cmb_clamdgto.refresh();
  250. cmb_clamdgfrom.refresh();
  251. }
  252. }
  253. ]]>
  254. </script>
  255. </xhtml:head>
  256. <xhtml:body class="datagrid2" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  257. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  258. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:311px; height:14px; ">청구현황(자보)</caption>
  259. </group>
  260. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  261. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:64px; vertical-align:top; ">
  262. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:64px; background-color:#fffbf2; border-color:#ffd799; "/>
  263. <button id="button1" class="btn1_letter2" style="left:1118px; top:22px; width:56px; height:22px; ">
  264. <caption>조회</caption>
  265. <script type="javascript" ev:event="DOMActivate">
  266. <![CDATA[
  267. /*
  268. if(model.getValue("/root/send/clamdgfrom") == "") {
  269. messageBox("청구차수를","C002");
  270. model.setFocus("cmb_clamdgfrom");
  271. return false;
  272. }
  273. */
  274. /*
  275. if(model.getValue("/root/send/clamflag") == "") {
  276. messageBox("청구구분을","C002");
  277. model.setFocus("cmb_clamtype");
  278. return false;
  279. }
  280. */
  281. submit("TRPIF71201");
  282. if( getNodesetCount("/root/main/list/datagrid1/insucmpymark") > 0 ){
  283. datagrid1.multiTotals = true;
  284. datagrid1.subtotal("sum", datagrid1.colRef("insucmpymark"), datagrid1.colRef("clamamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", datagrid1.colRef("dschdd"), "기관별소계", true);
  285. //datagrid1.subtotal("count", datagrid1.colRef("insucmpymark"), datagrid1.colRef("interm"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", datagrid1.colRef("dschdd"), "기관별소계", true);
  286. datagrid1.subtotal("sum", -1, datagrid1.colRef("clamamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", datagrid1.colRef("dschdd"), "총합계", true);
  287. datagrid1.subtotal("count", -1, datagrid1.colRef("interm"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", datagrid1.colRef("dschdd"), "총합계", true);
  288. /*
  289. for(var i = 1; datagrid1.rows; i++) {
  290. if (datagrid1.valueMatrix(i, datagrid1.colRef("dschdd")) == "총합계" || datagrid1.valueMatrix(i, datagrid1.colRef("dschdd")) == "기관별소계") {
  291. datagrid1.valueMatrix(i, datagrid1.colRef("dschdd")) = datagrid1.valueMatrix(i, datagrid1.colRef("dschdd")) || '건';
  292. }
  293. }
  294. */
  295. }
  296. if( getNodesetCount("/root/main/list/datagrid2/insucmpymark") > 0 ){
  297. //datagrid1.subtotal("sum", datagrid1.colRef("insucmpymark"), datagrid1.colRef("clamamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", datagrid1.colRef("acdacptno"), "기관별소계 : ", true);
  298. datagrid2.multiTotals = true;
  299. datagrid2.subtotalPosition = "below";
  300. datagrid2.subtotal("sum", -1, datagrid2.colRef("clamcnt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", datagrid2.colRef("insucmpymark"), "총합계", true);
  301. datagrid2.subtotal("sum", -1, datagrid2.colRef("clamamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", datagrid2.colRef("insucmpymark"), "총합계", true);
  302. datagrid2.subtotal("sum", -1, datagrid2.colRef("depoamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", datagrid2.colRef("insucmpymark"), "총합계", true);
  303. datagrid2.subtotal("sum", -1, datagrid2.colRef("fstcutamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", datagrid2.colRef("insucmpymark"), "총합계", true);
  304. datagrid2.subtotal("sum", -1, datagrid2.colRef("orgcutamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", datagrid2.colRef("insucmpymark"), "총합계", true);
  305. datagrid2.subtotal("sum", -1, datagrid2.colRef("uncoamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", datagrid2.colRef("insucmpymark"), "총합계", true);
  306. }
  307. if( getNodesetCount("/root/main/list/datagrid3/orddeptcd") > 0 ){
  308. datagrid3.multiTotals = true;
  309. datagrid3.subtotalPosition = "below";
  310. datagrid3.subtotal("sum", -1, datagrid3.colRef("clamcnt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", datagrid3.colRef("orddeptcd"), "총합계", true);
  311. datagrid3.subtotal("sum", -1, datagrid3.colRef("clamamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", datagrid3.colRef("orddeptcd"), "총합계", true);
  312. datagrid3.subtotal("sum", -1, datagrid3.colRef("depoamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", datagrid3.colRef("orddeptcd"), "총합계", true);
  313. datagrid3.subtotal("sum", -1, datagrid3.colRef("fstcutamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", datagrid3.colRef("orddeptcd"), "총합계", true);
  314. datagrid3.subtotal("sum", -1, datagrid3.colRef("orgcutamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", datagrid3.colRef("orddeptcd"), "총합계", true);
  315. }
  316. ]]>
  317. </script>
  318. </button>
  319. <line id="line13" class="line_4" style="x1:1093px; y1:22px; x2:1093px; y2:44px; "/>
  320. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_search" inputtype="date" format="yyyy-mm" style="left:140px; top:21px; width:85px; height:19px; ">
  321. <script type="javascript" ev:event="xforms-value-changed">
  322. <![CDATA[
  323. ipt_todd.value = ipt_fromdd.value;
  324. model.refreshpart("/root/send/todd");
  325. fGetClamdg();
  326. fChkClamym();
  327. ]]>
  328. </script>
  329. </input>
  330. <select1 id="radio1" ref="/root/send/ioflag" class="radio_search" appearance="full" cellspacing="5" cols="3" overflow="visible" style="left:727px; top:23px; width:145px; height:15px; border-style:none; ">
  331. <choices>
  332. <item>
  333. <label>전체</label>
  334. <value>A</value>
  335. </item>
  336. <item>
  337. <label>입원</label>
  338. <value>I</value>
  339. </item>
  340. <item>
  341. <label>외래</label>
  342. <value>O</value>
  343. </item>
  344. </choices>
  345. </select1>
  346. <caption id="caption7" class="search_name" style="left:640px; top:22px; width:86px; height:17px; ">내원유형 :</caption>
  347. <caption id="caption8" class="search_name" visibility="visible" style="left:890px; top:22px; width:87px; height:17px; ">손 보 사 :</caption>
  348. <select1 id="cmb_insucmpymark" ref="/root/send/certno" class="combo_search" visibility="visible" appearance="minimal" style="left:977px; top:21px; width:100px; height:19px; ">
  349. <choices>
  350. <itemset nodeset="/root/init/U0001list/U0001">
  351. <label ref="nm"/>
  352. <value ref="cd"/>
  353. </itemset>
  354. </choices>
  355. </select1>
  356. <select1 id="rdo_endyn" ref="/root/send/endyn" class="radio_search" visibility="hidden" appearance="full" cols="3" overflow="visible" style="left:1015px; top:5px; width:149px; height:20px; border-style:none; ">
  357. <choices>
  358. <item>
  359. <label>전체</label>
  360. <value>A</value>
  361. </item>
  362. <item>
  363. <label>완료</label>
  364. <value>Y</value>
  365. </item>
  366. <item>
  367. <label>미완료</label>
  368. <value>N</value>
  369. </item>
  370. </choices>
  371. </select1>
  372. <caption id="caption11" class="search_name" visibility="hidden" style="left:910px; top:4px; width:116px; height:17px; ">완 료 여 부 :</caption>
  373. <caption id="caption13" class="search_name" style="left:5px; top:22px; width:71px; height:17px; ">기간 :</caption>
  374. <input id="input11" ref="/root/send/acdacptno" class="input_search" visibility="hidden" style="left:255px; top:39px; width:78px; height:19px; "/>
  375. <caption id="caption17" class="search_name" visibility="hidden" style="left:150px; top:40px; width:112px; height:17px; ">사 고 번 호 :</caption>
  376. <select1 id="radio2" ref="/root/send/termflag" appearance="full" overflow="visible" style="left:65px; top:16px; width:65px; height:42px; border-style:none; ">
  377. <choices>
  378. <item>
  379. <label>청구월</label>
  380. <value>B</value>
  381. </item>
  382. <item>
  383. <label>청구일자</label>
  384. <value>C</value>
  385. </item>
  386. </choices>
  387. <script type="javascript" ev:event="xforms-value-changed">
  388. <![CDATA[
  389. if( model.getValue("/root/send/termflag") != 'C' ){
  390. model.setValue("/root/send/fromdd", "");
  391. model.setValue("/root/send/todd", "");
  392. ipt_fromdd.attribute("format") = "yyyy-mm";
  393. ipt_todd.attribute("format") = "yyyy-mm";
  394. ipt_fromdd.refresh();
  395. ipt_todd.refresh();
  396. }else{
  397. model.setValue("/root/send/fromdd", "");
  398. model.setValue("/root/send/todd", "");
  399. ipt_fromdd.attribute("format") = "yyyy-mm-dd";
  400. ipt_todd.attribute("format") = "yyyy-mm-dd";
  401. ipt_fromdd.refresh();
  402. ipt_todd.refresh();
  403. }
  404. // 청구월일때 차수콤보 활성화 그외는 비활성화
  405. if ( model.getValue("/root/send/termflag") == 'B' ){
  406. cmb_clamdgfrom.disabled = false;
  407. cmb_clamdgto.disabled = false;
  408. cmb_clamdgfrom.select(0);
  409. cmb_clamdgto.select(0);
  410. } else {
  411. cmb_clamdgfrom.value = "";
  412. cmb_clamdgto.value = "";
  413. cmb_clamdgfrom.disabled = true;
  414. cmb_clamdgto.disabled = true;
  415. }
  416. ]]>
  417. </script>
  418. </select1>
  419. <select1 id="cmb_clamdgfrom" ref="/root/send/clamdgfrom" class="combo_search" appearance="minimal" style="left:230px; top:21px; width:50px; height:19px; ">
  420. <choices>
  421. <itemset nodeset="/root/init/clamdgfrom/clamdglist">
  422. <label ref="clamdgnm"/>
  423. <value ref="clamdgcd"/>
  424. </itemset>
  425. </choices>
  426. <script type="javascript" ev:event="xforms-value-changed">
  427. <![CDATA[
  428. cmb_clamdgto.value = cmb_clamdgfrom.value;
  429. model.refreshpart("/root/send/clamdgto");
  430. ]]>
  431. </script>
  432. </select1>
  433. <select1 id="cmb_clamtype" ref="/root/send/clamflag" class="combo_search" appearance="minimal" style="left:539px; top:20px; width:85px; height:19px; ">
  434. <choices>
  435. <itemset nodeset="/root/init/P0155list/P0155">
  436. <label ref="cdnm"/>
  437. <value ref="cdid"/>
  438. </itemset>
  439. </choices>
  440. </select1>
  441. <caption id="caption14" class="search_name" style="left:449px; top:21px; width:93px; height:17px; ">청구구분 :</caption>
  442. <select1 id="cmb_clamdgto" ref="/root/send/clamdgto" class="combo_search" appearance="minimal" style="left:386px; top:21px; width:50px; height:19px; ">
  443. <choices>
  444. <itemset nodeset="/root/init/clamdgto/clamdglist">
  445. <label ref="clamdgnm"/>
  446. <value ref="clamdgcd"/>
  447. </itemset>
  448. </choices>
  449. </select1>
  450. <caption id="caption3" style="left:283px; top:22px; width:15px; height:20px; ">~</caption>
  451. <input id="ipt_todd" ref="/root/send/todd" class="input_search" inputtype="date" format="yyyy-mm" style="left:297px; top:21px; width:85px; height:19px; ">
  452. <script type="javascript" ev:event="DOMFocusOut">
  453. <![CDATA[
  454. fGetClamdg();
  455. fChkClamym();
  456. ]]>
  457. </script>
  458. </input>
  459. </group>
  460. <switch id="switch1" class="sw_box" style="left:0px; top:104px; width:1194px; height:635px; ">
  461. <case id="case1" selected="true">
  462. <datagrid id="datagrid1" nodeset="/root/main/list/datagrid1" caption="코드^손보사^입/외^접수번호^등록번호^수진자명^주민번호^청구년월^차수^진료과^진료의^입원일^퇴원일^재원기간^청구액^사고접수번호^청구일자" colsep="^" colwidth="62, 140, 46, 72, 76, 70, 108, 80, 52, 100, 60, 78, 78, 62, 90, 134, 86" dataheight="25" defaultrows="2" ellipsis="true" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" subtotalposition="below" tooltip="true" style="left:4px; top:13px; width:1183px; height:613px; ">
  463. <col ref="insucd" style="text-align:center; "/>
  464. <col ref="insucmpymark" style="text-align:center; "/>
  465. <col ref="ioflag" style="text-align:center; "/>
  466. <col ref="acptno" style="text-align:center;"/>
  467. <col ref="pid" style="text-align:center; "/>
  468. <col ref="patnm" style="text-align:center; "/>
  469. <col ref="patrrgstno" style="text-align:center; "/>
  470. <col ref="clamym" format="yyyy-mm" style="text-align:center; "/>
  471. <col ref="clamdg" style="text-align:center; "/>
  472. <col ref="orddeptcd" style="text-align:left; "/>
  473. <col ref="orddrid" style="text-align:left; "/>
  474. <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
  475. <col ref="dschdd" format="yyyy-mm-dd" style="text-align:center; "/>
  476. <col ref="interm" style="text-align:right; "/>
  477. <col ref="clamamt" format="#,###" style="text-align:right; "/>
  478. <col ref="acdacptno" style="text-align:left; "/>
  479. <col ref="acptdd" visibility="visible" format="yyyy-mm-dd" style="text-align:center; "/>
  480. <script type="javascript" ev:event="oncopy">
  481. <![CDATA[
  482. grid_oncopy();
  483. ]]>
  484. </script>
  485. </datagrid>
  486. </case>
  487. <case id="case2">
  488. <datagrid id="datagrid2" nodeset="/root/main/list/datagrid2" caption="청구월^차수^내원유형^코드^손보사^청구일자^청구건수^청구액" colsep="^" colwidth="80, 48, 60, 72, 124, 80, 66, 110" dataheight="25" defaultrows="2" ellipsis="true" explorerbar="sortshow" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" tooltip="true" style="left:4px; top:13px; width:1183px; height:613px; ">
  489. <col ref="clamym" format="yyyy-mm" style="text-align:center; "/>
  490. <col ref="clamdg" style="text-align:center; "/>
  491. <col ref="ioflag" style="text-align:center; "/>
  492. <col ref="insucd" style="text-align:center; "/>
  493. <col ref="insucmpymark" style="text-align:left; "/>
  494. <col ref="acptdd" format="yyyy-mm-dd" style="text-align:center; "/>
  495. <col ref="clamcnt" format="#,###" style="text-align:right; "/>
  496. <col ref="clamamt" format="#,###" style="text-align:right; "/>
  497. <script type="javascript" ev:event="oncopy">
  498. <![CDATA[
  499. grid_oncopy();
  500. ]]>
  501. </script>
  502. </datagrid>
  503. <datagrid id="datagrid4" nodeset="/root/main/list/datagrid4" visibility="hidden" caption="코드^청구월^주소^손보사^일련번호^청구건수^청구액^청구일자" colsep="^" colwidth="68, 80, 100, 154, 80, 66, 110, 108" dataheight="25" defaultrows="2" ellipsis="true" explorerbar="sortshow" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" tooltip="true" style="left:165px; top:70px; width:777px; height:451px; ">
  504. <col ref="insucd" style="text-align:left; "/>
  505. <col ref="clamym" format="yyyy-mm" style="text-align:center; "/>
  506. <col ref="insucmpymarkaddr" style="text-align:left; "/>
  507. <col ref="insucmpymark" style="text-align:left; "/>
  508. <col ref="seqno" style="text-align:left; "/>
  509. <col ref="clamcnt" format="#,###" style="text-align:right; "/>
  510. <col ref="clamamt" format="#,###" style="text-align:right; "/>
  511. <col ref="acptdd" format="yyyy-mm-dd" style="text-align:center; "/>
  512. <script type="javascript" ev:event="oncopy">
  513. <![CDATA[
  514. grid_oncopy();
  515. ]]>
  516. </script>
  517. </datagrid>
  518. </case>
  519. <case id="case3">
  520. <datagrid id="datagrid3" nodeset="/root/main/list/datagrid3" caption="청구월^청구차수^내원유형^진료과^청구건수^청구액^건당평균진료비" colsep="^" colwidth="80, 70, 68, 140, 70, 110, 110" dataheight="25" defaultrows="2" ellipsis="true" explorerbar="sortshow" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" tooltip="true" style="left:4px; top:13px; width:1183px; height:613px; ">
  521. <col ref="clamym"/>
  522. <col ref="clamdg" style="text-align:center; "/>
  523. <col ref="ioflag" style="text-align:center; "/>
  524. <col ref="orddeptcd" style="text-align:left; "/>
  525. <col ref="clamcnt" format="#,###" style="text-align:right; "/>
  526. <col ref="clamamt" format="#,###" style="text-align:right; "/>
  527. <col ref="avgordamt" format="#,###" style="text-align:right; "/>
  528. <script type="javascript" ev:event="oncopy">
  529. <![CDATA[
  530. grid_oncopy();
  531. ]]>
  532. </script>
  533. </datagrid>
  534. </case>
  535. </switch>
  536. <button id="btn_rtndetl1" class="btn_sw" group="tab" selected="true" style="left:0px; top:83px; width:137px; height:22px; ">
  537. <caption>손보사별청구현황</caption>
  538. <toggle case="case1" ev:event="onclick"/>
  539. <script type="javascript" ev:event="DOMActivate">
  540. <![CDATA[
  541. btn_carlist.visible = true;
  542. cap_seqno.visible = false;
  543. ipt_seqno.visible = false;
  544. btn_insulist.visible = false;
  545. ]]>
  546. </script>
  547. </button>
  548. <button id="btn_rtndetl2" class="btn_sw" group="tab" style="left:137px; top:83px; width:137px; height:22px; ">
  549. <caption>월별청구현황</caption>
  550. <toggle case="case2" ev:event="onclick"/>
  551. <script type="javascript" ev:event="DOMActivate">
  552. <![CDATA[
  553. btn_carlist.visible = false;
  554. cap_seqno.visible = true;
  555. ipt_seqno.visible = true;
  556. btn_insulist.visible = true;
  557. ]]>
  558. </script>
  559. </button>
  560. <button id="btn_rtndetl3" class="btn_sw" group="tab" style="left:274px; top:83px; width:137px; height:22px; ">
  561. <caption>과별청구현황</caption>
  562. <toggle case="case3" ev:event="onclick"/>
  563. <script type="javascript" ev:event="DOMActivate">
  564. <![CDATA[
  565. btn_carlist.visible = false;
  566. cap_seqno.visible = false;
  567. ipt_seqno.visible = false;
  568. btn_insulist.visible = false;
  569. ]]>
  570. </script>
  571. </button>
  572. <button id="button10" class="btn2_letter3" visibility="hidden" style="left:489px; top:85px; width:53px; height:19px; ">
  573. <caption>열카피</caption>
  574. <script type="javascript" ev:event="onclick">
  575. <![CDATA[
  576. datagrid1.attribute("selectionmode") = "bycol";
  577. datagrid2.attribute("selectionmode") = "bycol";
  578. datagrid3.attribute("selectionmode") = "bycol";
  579. ]]>
  580. </script>
  581. </button>
  582. <button id="button11" class="btn2_letter3" visibility="hidden" style="left:543px; top:85px; width:53px; height:19px; ">
  583. <caption>행카피</caption>
  584. <script type="javascript" ev:event="onclick">
  585. <![CDATA[
  586. datagrid1.attribute("selectionmode") = "byrow";
  587. datagrid2.attribute("selectionmode") = "byrow";
  588. datagrid3.attribute("selectionmode") = "byrow";
  589. ]]>
  590. </script>
  591. </button>
  592. <button id="button12" class="btn2_letter4" style="left:1129px; top:84px; width:64px; height:19px; ">
  593. <caption>액셀저장</caption>
  594. <script type="javascript" ev:event="onclick">
  595. <![CDATA[
  596. if(btn_rtndetl1.selected == true){
  597. var fileName = window.fileDialog("save", ",", false, '청구현황_손보사별청구현황', "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  598. if (fileName != "") {
  599. datagrid1.saveExcel(fileName, "SheetName", true, true, "", "", "");
  600. }
  601. }else if(btn_rtndetl2.selected == true){
  602. var fileName = window.fileDialog("save", ",", false, '청구현황_월별청구현황', "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  603. if (fileName != "") {
  604. datagrid2.saveExcel(fileName, "SheetName", true, true, "", "", "");
  605. }
  606. }else if(btn_rtndetl3.selected == true){
  607. var fileName = window.fileDialog("save", ",", false, '청구현황_과별청구현황', "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  608. if (fileName != "") {
  609. datagrid3.saveExcel(fileName, "SheetName", true, true, "", "", "");
  610. }
  611. }
  612. ]]>
  613. </script>
  614. </button>
  615. <button id="button13" class="btn2_letter3" visibility="hidden" style="left:435px; top:85px; width:53px; height:19px; ">
  616. <caption>셀카피</caption>
  617. <script type="javascript" ev:event="onclick">
  618. <![CDATA[
  619. datagrid1.attribute("selectionmode") = "free";
  620. datagrid2.attribute("selectionmode") = "free";
  621. datagrid3.attribute("selectionmode") = "free";
  622. ]]>
  623. </script>
  624. </button>
  625. <button id="btn_carlist" class="btn2_letter9" visibility="hidden" style="left:964px; top:84px; width:119px; height:19px; ">
  626. <caption>자보명단 액셀저장</caption>
  627. <script type="javascript" ev:event="onclick">
  628. <![CDATA[
  629. if(btn_rtndetl1.selected == true){
  630. for(var i =1; i < datagrid1.rows; i++) {
  631. if (datagrid1.valueMatrix(i, datagrid1.colRef("pid")) == "")
  632. datagrid1.rowHidden(i) = true;
  633. }
  634. var fileName = window.fileDialog("save", ",", false, '자동차보험청구명단', "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  635. if (fileName != "") {
  636. datagrid1.saveExcel(fileName, "SheetName;rowhiddenextend:false;exportfalsecols:2,6,7,10,11,12,15");
  637. }
  638. for(var i =1; i < datagrid1.rows; i++) {
  639. if (datagrid1.rowHidden(i) == true)
  640. datagrid1.rowHidden(i) = false;
  641. }
  642. }
  643. ]]>
  644. </script>
  645. </button>
  646. <button id="btn_insulist" class="btn2_letter11" visibility="hidden" style="left:790px; top:83px; width:140px; height:19px; ">
  647. <caption>손보사별청구액 액셀저장</caption>
  648. <script type="javascript" ev:event="onclick">
  649. <![CDATA[
  650. if(btn_rtndetl2.selected == true){
  651. if (model.getValue("/root/hidden/excel/seqno") == "") {
  652. alert("일련번호를 입력하세요");
  653. model.setFocus("ipt_seqno");
  654. return false;
  655. } else {
  656. for(var i =1; i < datagrid4.rows; i++) {
  657. datagrid4.valueMatrix(i, datagrid4.colRef("seqno")) = model.getValue("/root/hidden/excel/seqno");
  658. }
  659. datagrid4.refresh();
  660. }
  661. var fileName = window.fileDialog("save", ",", false, '손보사별청구현황', "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  662. if (fileName != "") {
  663. datagrid4.saveExcel(fileName, "SheetName;rowhiddenextend:false");
  664. }
  665. }
  666. ]]>
  667. </script>
  668. </button>
  669. <input id="ipt_seqno" ref="/root/hidden/excel/seqno" class="input_search" visibility="hidden" style="left:707px; top:82px; width:78px; height:19px; "/>
  670. <caption id="cap_seqno" style="left:644px; top:84px; width:60px; height:17px; ">일련번호 :</caption>
  671. <button id="button2" class="btn2_letter2" style="left:1085px; top:84px; width:42px; height:19px; ">
  672. <caption>출력</caption>
  673. <script type="javascript" ev:event="DOMActivate">
  674. <![CDATA[
  675. if(btn_rtndetl1.selected == true) {
  676. exeReportPreview("RPPIF71200", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
  677. }else if(btn_rtndetl2.selected == true) {
  678. model.setValue("/root/hidden/excel/printno" , model.getValue("/root/hidden/excel/seqno"));
  679. model.refresh();
  680. exeReportPreview("RPPIF80300", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
  681. }
  682. ]]>
  683. </script>
  684. </button>
  685. </group>
  686. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; "/>
  687. <group id="group1" scroll="auto" style="left:0px; top:752px; width:1195px; height:28px; ">
  688. <button id="button45" class="btn4_letter2" style="left:1138px; top:5px; width:56px; height:22px; ">
  689. <caption>닫기</caption>
  690. <script type="javascript" ev:event="onclick">
  691. <![CDATA[
  692. window.close();
  693. ]]>
  694. </script>
  695. </button>
  696. </group>
  697. </xhtml:body>
  698. </xhtml:html>