SMPIF71800_동의및삭감현황(자보).xrw 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424
  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. <fromdd/>
  11. <todd/>
  12. <certno/>
  13. <ioflag>A</ioflag>
  14. <endyn>A</endyn>
  15. <aprvamt>1000</aprvamt>
  16. <selectflag/>
  17. </send>
  18. <main>
  19. <list>
  20. <datagrid1>
  21. <clamym/>
  22. <clamdg/>
  23. <instcmpymark/>
  24. <orddeptcd/>
  25. <orddrid/>
  26. <usernm/>
  27. <pid/>
  28. <patnm/>
  29. <ioflag/>
  30. <patrrgstno/>
  31. <clamamt/>
  32. <adjtamt/>
  33. <aprvamt/>
  34. <depoamt/>
  35. <deciamt/>
  36. <uncoamt/>
  37. <rem/>
  38. <instcmpymarknm/>
  39. </datagrid1>
  40. <datagrid2>
  41. <depodd/>
  42. <clamym/>
  43. <clamdg/>
  44. <instcmpymark/>
  45. <orddeptcd/>
  46. <orddrid/>
  47. <usernm/>
  48. <pid/>
  49. <patnm/>
  50. <ioflag/>
  51. <clamamt/>
  52. <depoamt/>
  53. <orgcutamt/>
  54. <instcmpymarknm/>
  55. <orddeptnm/>
  56. </datagrid2>
  57. </list>
  58. <patinfo>
  59. <patinfolist/>
  60. </patinfo>
  61. </main>
  62. <init>
  63. <U0001list>
  64. <U0001>
  65. <cd/>
  66. <nm/>
  67. </U0001>
  68. </U0001list>
  69. <P0268list>
  70. <P0268>
  71. <cdid/>
  72. <cdnm/>
  73. </P0268>
  74. </P0268list>
  75. </init>
  76. <hidden>
  77. <sppmc02500>
  78. <cond>
  79. <srchcond/>
  80. <pid/>
  81. <hngnm/>
  82. <rrgstno1/>
  83. <rrgstno2/>
  84. <insukind/>
  85. </cond>
  86. </sppmc02500>
  87. </hidden>
  88. </root>
  89. </instance>
  90. <script type="javascript" ev:event="xforms-ready">
  91. <![CDATA[
  92. zbcfGetCodeList(new Array("P0268"), new Array("/root/init/P0268list"));
  93. model.setValue("/root/send/fromdd" , getCurrentDate());
  94. model.setValue("/root/send/todd" , getCurrentDate());
  95. // 기본값셋팅
  96. // cap_uncoamtyn.visible = false;
  97. // chk_uncoamtyn.visible = false;
  98. btn_rtndetl1.dispatch("DOMActivate");
  99. btn_rtndetl1.dispatch("onclick");
  100. // 손보사 코드 조회
  101. if(submit("TRPIF70305")){
  102. addComboItem("cmb_insucmpymark", "전체", "", "above");
  103. }
  104. // 진료과, 진료의조회
  105. submit("TRPID20309", false);
  106. model.removeNodeset("/root/main/list");
  107. model.refresh();
  108. ]]>
  109. </script>
  110. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  111. <submission id="TRPID20309" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/ioflag" resultref="root/hidden/tmp"/>
  112. <!-- 손보사 리스트 조회 -->
  113. <submission id="TRPIF70305" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/U0001list"/>
  114. <!-- 동의및삭감현황 -->
  115. <submission id="TRPIF71801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
  116. </model>
  117. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  118. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  119. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  120. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  121. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  122. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  123. <script type="javascript">
  124. <![CDATA[
  125. function fGetInAftJudgTrgtManList(){
  126. // 환자단위조회를 하는 경우
  127. var patunitsrch1 = model.getValue("/root/send/patunitsrch1").getTrim(); // (stringHelper.js) 문자열 앞뒤에 있는 공백 제거
  128. model.setValue("/root/send/patunitsrch1", patunitsrch1);
  129. if (patunitsrch1 == "") {
  130. model.setValue("/root/send/patunitsrch2", "");
  131. }
  132. else if (patunitsrch1.isNumber()) { // (numericHelper.js) 숫자가 입력된 경우 환자번호로 조회한다.
  133. /** [2007.03.23 jumi]
  134. Table Layout 상에는 pid가 VARCHAR(10) 이지만, 테스트용 data에서는 VARCHAR(8) 이므로 8자리로 구현함
  135. */
  136. // if (patunitsrch1.length < 8) {
  137. // model.setValue("/root/send/patunitsrch1", patunitsrch1.getLeftPad(8, "0")); // (stringHelper.js) 저장된 숫자 값에 원하는 길이만큼 '0'을 붙여 표현
  138. // }
  139. model.setValue("/root/send/patunitsrch2", "pidSrch");
  140. } else { // 문자가 입력된 경우 환자이름으로 조회한다.
  141. if (patunitsrch1.length > 1) {
  142. model.setValue("/root/send/patunitsrch2", "nmSrch");
  143. } else {
  144. model.setValue("/root/send/patunitsrch2", "");
  145. model.refresh();
  146. messageBox("환자단위조회시 검색할 환자이름은 2글자 이상", "C001"); ///환자단위조회시 검색할 환자이름은 2글자 이상 입력하십시오.
  147. return;
  148. }
  149. }
  150. }
  151. ]]>
  152. </script>
  153. </xhtml:head>
  154. <xhtml:body class="datagrid2" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  155. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  156. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:311px; height:14px; ">동의및삭감현황(자보)</caption>
  157. </group>
  158. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:737px; ">
  159. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:64px; vertical-align:top; ">
  160. <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; "/>
  161. <button id="button1" class="btn1_letter2" style="left:1115px; top:23px; width:56px; height:22px; ">
  162. <caption>조회</caption>
  163. <script type="javascript" ev:event="DOMActivate">
  164. <![CDATA[
  165. // 조회구분
  166. model.setValue("/root/send/selectflag", switch1.selectedIndex);
  167. submit("TRPIF71801");
  168. // 조정,동의금액 현황
  169. if (switch1.selectedIndex == 0) {
  170. datagrid1.subtotalposition= "below";
  171. datagrid1.subtotal("sum",-1, datagrid1.colRef("clamamt"),"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#f4f4f4; color:#0000ff; ", datagrid1.colRef("patrrgstno"), "총합계", false);
  172. datagrid1.subtotal("sum",-1, datagrid1.colRef("adjtamt"),"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#f4f4f4; color:#0000ff; ", datagrid1.colRef("patrrgstno"), "총합계", false);
  173. datagrid1.subtotal("sum",-1, datagrid1.colRef("aprvamt"),"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#f4f4f4; color:#0000ff; ", datagrid1.colRef("patrrgstno"), "총합계", false);
  174. datagrid1.subtotal("sum",-1, datagrid1.colRef("depoamt"),"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#f4f4f4; color:#0000ff; ", datagrid1.colRef("patrrgstno"), "총합계", false);
  175. datagrid1.subtotal("sum",-1, datagrid1.colRef("uncoamt"),"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#f4f4f4; color:#0000ff; ", datagrid1.colRef("patrrgstno"), "총합계", false);
  176. datagrid1.subtotal("sum",-1, datagrid1.colRef("deciamt"),"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#f4f4f4; color:#0000ff; ", datagrid1.colRef("patrrgstno"), "총합계", false);
  177. }
  178. // 진료과별 입금및삭감현황
  179. if (switch1.selectedIndex == 1) {
  180. datagrid2.subtotalposition= "below";
  181. datagrid2.subtotal("sum", datagrid2.colRef("depodd"), datagrid2.colRef("depoamt"),"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#f4f4f4; color:#0000ff; ", datagrid2.colRef("clamamt"), "일자별소계", false);
  182. datagrid2.subtotal("sum", datagrid2.colRef("instcmpymark"), datagrid2.colRef("depoamt"),"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#f4f4f4; color:#0000ff; ", datagrid2.colRef("clamamt"), "기관별소계", false);
  183. //datagrid2.subtotal("sum",-1, datagrid2.colRef("clamamt"),"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#f4f4f4; color:#0000ff; ", datagrid2.colRef("depodd"), "총합계", false);
  184. datagrid2.subtotal("sum",-1, datagrid2.colRef("depoamt"),"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#f4f4f4; color:#0000ff; ", datagrid2.colRef("clamamt"), "총합계", false);
  185. //datagrid2.subtotal("sum",-1, datagrid2.colRef("orgcutamt"),"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#f4f4f4; color:#0000ff; ", datagrid2.colRef("clamamt"), "총합계", false);
  186. }
  187. ]]>
  188. </script>
  189. </button>
  190. <line id="line13" class="line_4" style="x1:1095px; y1:22px; x2:1095px; y2:44px; "/>
  191. <caption id="caption3" style="left:201px; top:10px; width:15px; height:20px; ">~</caption>
  192. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_search" inputtype="date" format="yyyy-mm-dd" style="left:110px; top:9px; width:86px; height:19px; "/>
  193. <input id="ipt_todd" ref="/root/send/todd" class="input_search" inputtype="date" format="yyyy-mm-dd" style="left:216px; top:9px; width:85px; height:19px; "/>
  194. <select1 id="radio1" ref="/root/send/ioflag" class="radio_search" overflow="visible" appearance="full" cellspacing="5" cols="3" style="left:431px; top:10px; width:145px; height:15px; border-style:none; ">
  195. <choices>
  196. <item>
  197. <label>전체</label>
  198. <value>A</value>
  199. </item>
  200. <item>
  201. <label>입원</label>
  202. <value>I</value>
  203. </item>
  204. <item>
  205. <label>외래</label>
  206. <value>O</value>
  207. </item>
  208. </choices>
  209. </select1>
  210. <caption id="caption7" class="search_name" style="left:341px; top:9px; width:86px; height:17px; ">내원 유형</caption>
  211. <caption id="caption8" class="search_name" style="left:24px; top:35px; width:88px; height:17px; ">손보사</caption>
  212. <select1 id="cmb_insucmpymark" ref="/root/send/certno" class="combo_search" appearance="minimal" style="left:109px; top:35px; width:166px; height:19px; ">
  213. <choices>
  214. <itemset nodeset="/root/init/U0001list/U0001">
  215. <label ref="nm"/>
  216. <value ref="cd"/>
  217. </itemset>
  218. </choices>
  219. </select1>
  220. <select1 id="rdo_endyn" ref="/root/send/endyn" class="radio_search" overflow="visible" appearance="full" cols="3" style="left:705px; top:10px; width:149px; height:20px; border-style:none; ">
  221. <choices>
  222. <item>
  223. <label>전체</label>
  224. <value>A</value>
  225. </item>
  226. <item>
  227. <label>완료</label>
  228. <value>Y</value>
  229. </item>
  230. <item>
  231. <label>미완료</label>
  232. <value>N</value>
  233. </item>
  234. </choices>
  235. </select1>
  236. <caption id="caption11" class="search_name" style="left:612px; top:9px; width:116px; height:17px; ">종결 여부</caption>
  237. <caption id="cap_depodd" class="search_name" style="left:24px; top:9px; width:111px; height:17px; ">입금일자</caption>
  238. <caption id="cap_aprvamt" class="search_name" visibility="visible" style="left:341px; top:35px; width:84px; height:17px; ">동의금액</caption>
  239. <input id="ipt_aprvamt" ref="/root/send/aprvamt" class="input_search" navindex="20" visibility="visible" imemode="alpha" maxlength="10" format="#,###" style="left:431px; top:35px; width:89px; height:19px; ">
  240. <hint>
  241. <![CDATA[끝번호]]>
  242. </hint>
  243. <script type="javascript" ev:event="onkeypress">
  244. <![CDATA[
  245. if (event.keyCode == "13") { // Enter 입력 시에
  246. setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
  247. fGetOutAftJudgTrgtManList("docuSrch");
  248. }
  249. ]]>
  250. </script>
  251. </input>
  252. <caption id="cap_aprvamt2" visibility="visible" style="left:525px; top:35px; width:45px; height:17px; font-weight:bold; ">이상</caption>
  253. </group>
  254. <switch id="switch1" class="sw_box" style="left:0px; top:104px; width:1194px; height:631px; ">
  255. <case id="case1">
  256. <datagrid id="datagrid1" nodeset="/root/main/list/datagrid1" caption="청구월^차수^손보사^진료과^의사ID^진료의^등록번호^수진자명^입/외^주민번호^청구금액^조정금액^최종동의일자^동의금액^입금액^이의신청회수액^미납금액^비고^종결형태" colsep="^" colwidth="72, 44, 146, 102, 67, 62, 90, 64, 36, 114, 80, 80, 94, 80, 80, 96, 80, 150" dataheight="25" defaultrows="2" ellipsis="true" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" tooltip="true" style="left:4px; top:13px; width:1183px; height:613px; ">
  257. <col ref="clamym" format="yyyy-mm" style="text-align:center; "/>
  258. <col ref="clamdg" style="text-align:center; "/>
  259. <col disabled="true" ref="instcmpymark" type="combo" style="text-align:center; ">
  260. <choices>
  261. <itemset nodeset="/root/init/U0001list/U0001">
  262. <label ref="nm"/>
  263. <value ref="cd"/>
  264. </itemset>
  265. </choices>
  266. </col>
  267. <col ref="orddeptcd" type="combo" style="text-align:left; ">
  268. <choices>
  269. <itemset nodeset="/root/hidden/tmp/orddeptcd/orddeptcdlist">
  270. <label ref="nm"/>
  271. <value ref="cd"/>
  272. </itemset>
  273. </choices>
  274. </col>
  275. <col ref="orddrid" style="text-align:center; "/>
  276. <col ref="usernm" style="text-align:center; "/>
  277. <col ref="pid" style="text-align:center; "/>
  278. <col ref="patnm" style="text-align:center; "/>
  279. <col ref="ioflag" style="text-align:center; "/>
  280. <col ref="patrrgstno" style="text-align:center; "/>
  281. <col ref="clamamt" format="#,###" style="text-align:right; "/>
  282. <col ref="adjtamt" format="#,###" style="text-align:right; "/>
  283. <col ref="lastdepodd" format="yyyy-mm-dd" style="text-align:center; "/>
  284. <col ref="aprvamt" format="#,###" style="text-align:right; "/>
  285. <col ref="depoamt" format="#,###" style="text-align:right; "/>
  286. <col ref="deciamt" format="#,###" style="text-align:right; "/>
  287. <col ref="uncoamt" format="#,###" style="text-align:right; "/>
  288. <col ref="rem" style="text-align:left; "/>
  289. </datagrid>
  290. </case>
  291. <case id="case2" selected="true">
  292. <datagrid id="datagrid2" nodeset="/root/main/list/datagrid2" caption="입금일자^손보사^등록번호^수진자명^내원유형^진료과^의사ID^진료의^청구월^차수^청구금액^동의액^입금액^삭감액^종결형태" colsep="^" colwidth="82, 146, 90, 64, 60, 114, 70, 74, 74, 48, 100, 100, 100, 100" dataheight="25" defaultrows="2" ellipsis="true" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" tooltip="true" style="left:4px; top:13px; width:1183px; height:613px; ">
  293. <col ref="depodd" format="yyyy-mm-dd" style="text-align:center; "/>
  294. <col disabled="true" ref="instcmpymark" type="combo" style="text-align:center; ">
  295. <choices>
  296. <itemset nodeset="/root/init/U0001list/U0001">
  297. <label ref="nm"/>
  298. <value ref="cd"/>
  299. </itemset>
  300. </choices>
  301. </col>
  302. <col ref="pid" style="text-align:center; "/>
  303. <col ref="patnm" style="text-align:center; "/>
  304. <col ref="ioflag" style="text-align:center; "/>
  305. <col ref="orddeptcd" type="combo" style="text-align:left; ">
  306. <choices>
  307. <itemset nodeset="/root/hidden/tmp/orddeptcd/orddeptcdlist">
  308. <label ref="nm"/>
  309. <value ref="cd"/>
  310. </itemset>
  311. </choices>
  312. </col>
  313. <col ref="orddrid" style="text-align:center; "/>
  314. <col ref="usernm" style="text-align:center; "/>
  315. <col ref="clamym" format="yyyy-mm" style="text-align:center; "/>
  316. <col ref="clamdg" style="text-align:center; "/>
  317. <col ref="clamamt" format="#,###" style="text-align:right; "/>
  318. <col ref="aprvamt" format="#,###" style="text-align:right; "/>
  319. <col ref="depoamt" format="#,###" style="text-align:right; "/>
  320. <col ref="orgcutamt" format="#,###" style="text-align:right; "/>
  321. </datagrid>
  322. </case>
  323. </switch>
  324. <button id="btn_rtndetl1" class="btn_sw" group="tab" selected="true" style="left:0px; top:83px; width:170px; height:22px; ">
  325. <caption>자보 조정, 동의금액 현황</caption>
  326. <toggle case="case1" ev:event="onclick"/>
  327. <script type="javascript" ev:event="DOMActivate">
  328. <![CDATA[
  329. cap_depodd.attribute("text") = "입금일자";
  330. ipt_fromdd.attribute("format") = "yyyy-mm-dd";
  331. ipt_todd.attribute("format") = "yyyy-mm-dd";
  332. model.setValue("/root/send/fromdd", getCurrentDate());
  333. model.setValue("/root/send/todd", getCurrentDate());
  334. cap_aprvamt.visible = true;
  335. cap_aprvamt2.visible = true;
  336. ipt_aprvamt.visible = true;
  337. ]]>
  338. </script>
  339. </button>
  340. <button id="btn_rtndetl2" class="btn_sw" group="tab" style="left:171px; top:83px; width:170px; height:22px; ">
  341. <caption>진료과별 입금 및 삭감현황</caption>
  342. <toggle case="case2" ev:event="onclick"/>
  343. <script type="javascript" ev:event="DOMActivate">
  344. <![CDATA[
  345. cap_depodd.attribute("text") = "입금일자";
  346. ipt_fromdd.attribute("format") = "yyyy-mm-dd";
  347. ipt_todd.attribute("format") = "yyyy-mm-dd";
  348. model.setValue("/root/send/fromdd", getCurrentDate());
  349. model.setValue("/root/send/todd", getCurrentDate());
  350. cap_aprvamt.visible = false;
  351. cap_aprvamt2.visible = false;
  352. ipt_aprvamt.visible = false;
  353. model.refresh();
  354. ]]>
  355. </script>
  356. </button>
  357. <button id="button93" class="btn6_letter2" style="left:1138px; top:80px; width:56px; height:22px; ">
  358. <caption>출력</caption>
  359. <script type="javascript" ev:event="onclick">
  360. <![CDATA[
  361. window.print();
  362. ]]>
  363. </script>
  364. </button>
  365. <button id="button12" class="btn2_letter4" style="left:1070px; top:82px; width:64px; height:19px; ">
  366. <caption>액셀저장</caption>
  367. <script type="javascript" ev:event="onclick">
  368. <![CDATA[
  369. if(btn_rtndetl1.selected == true){
  370. var fileName = window.fileDialog("save", ",", false, '청구월별 미수현황', "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  371. if (fileName != "") {
  372. datagrid1.saveExcel(fileName, "SheetName", true, true, "", "", "");
  373. }
  374. }else if(btn_rtndetl2.selected == true){
  375. var fileName = window.fileDialog("save", ",", false, '자보 미납현황', "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  376. if (fileName != "") {
  377. datagrid2.saveExcel(fileName, "SheetName", true, true, "", "", "");
  378. }
  379. }
  380. ]]>
  381. </script>
  382. </button>
  383. <button id="button2" class="btn2_letter2" style="left:1025px; top:82px; width:42px; height:19px; ">
  384. <caption>출력</caption>
  385. <script type="javascript" ev:event="DOMActivate">
  386. <![CDATA[
  387. if(btn_rtndetl1.selected == true) {
  388. exeReportPreview("RPPIF71800", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
  389. }else if(btn_rtndetl2.selected == true) {
  390. exeReportPreview("RPPIF71810", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
  391. }
  392. ]]>
  393. </script>
  394. </button>
  395. </group>
  396. <group id="group1" scroll="auto" style="left:0px; top:752px; width:1195px; height:28px; ">
  397. <button id="button45" class="btn4_letter2" style="left:1138px; top:5px; width:56px; height:22px; ">
  398. <caption>닫기</caption>
  399. <script type="javascript" ev:event="onclick">
  400. <![CDATA[
  401. window.close();
  402. ]]>
  403. </script>
  404. </button>
  405. </group>
  406. </xhtml:body>
  407. </xhtml:html>