SMPIF80300_월별청구현황.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>원외처방환수조회(SMPIF60210)</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. </root>
  10. </instance>
  11. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  12. <submission id="TRPIF60211" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list01"/>
  13. <submission id="TRPIF60212" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/U0001list"/>
  14. <submission id="TRPIF60213" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/U0002list"/>
  15. </model>
  16. <script type="javascript">
  17. <![CDATA[
  18. var selectValue2 = 1;
  19. ]]>
  20. </script>
  21. <script type="javascript" ev:event="xforms-ready">
  22. <![CDATA[
  23. //grd_excel.attribute("visibility") = "hidden";
  24. CommCode_Load();
  25. ]]>
  26. </script>
  27. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  28. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  29. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  30. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  31. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  32. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  33. <script type="javascript">
  34. <![CDATA[
  35. function Node_Init() {
  36. // NodeSet 초기화
  37. model.resetInstanceNode("/root/main/list01");
  38. model.refresh();
  39. }
  40. // 공통코드 Load작업
  41. function CommCode_Load() {
  42. // 관련 Control 초기화
  43. zbcfGetCodeList(new Array("P0287"), new Array( "/root/init/P0287list"));
  44. //zbcfGetCodeList(new Array("P0247"), new Array( "/root/init/P0247list"));
  45. //zbcfGetCodeList(new Array("P0261"), new Array( "/root/init/P0261list"));
  46. //zbcfGetCodeList(new Array("P0295"), new Array( "/root/init/P0295list"));
  47. //model.refresh();
  48. ipt_srchcond1.disabled = true;
  49. cmb_srchcond2.disabled = true;
  50. cmb_clamno.disabled = true;
  51. ipt_docuseqno.disabled = true;
  52. }
  53. function fGetInAftJudgTrgtManList(){
  54. // 환자단위조회를 하는 경우
  55. var patunitsrch1 = model.getValue("/root/send/patunitsrch1").getTrim(); // (stringHelper.js) 문자열 앞뒤에 있는 공백 제거
  56. model.setValue("/root/send/patunitsrch1", patunitsrch1);
  57. if (patunitsrch1 == "") {
  58. model.setValue("/root/send/patunitsrch2", "");
  59. }
  60. else if (patunitsrch1.isNumber()) { // (numericHelper.js) 숫자가 입력된 경우 환자번호로 조회한다.
  61. /** [2007.03.23 jumi]
  62. Table Layout 상에는 pid가 VARCHAR(10) 이지만, 테스트용 data에서는 VARCHAR(8) 이므로 8자리로 구현함
  63. */
  64. // if (patunitsrch1.length < 8) {
  65. // model.setValue("/root/send/patunitsrch1", patunitsrch1.getLeftPad(8, "0")); // (stringHelper.js) 저장된 숫자 값에 원하는 길이만큼 '0'을 붙여 표현
  66. // }
  67. model.setValue("/root/send/patunitsrch2", "pidSrch");
  68. } else { // 문자가 입력된 경우 환자이름으로 조회한다.
  69. if (patunitsrch1.length > 1) {
  70. model.setValue("/root/send/patunitsrch2", "nmSrch");
  71. } else {
  72. model.setValue("/root/send/patunitsrch2", "");
  73. model.refresh();
  74. messageBox("환자단위조회시 검색할 환자이름은 2글자 이상", "C001"); ///환자단위조회시 검색할 환자이름은 2글자 이상 입력하십시오.
  75. return;
  76. }
  77. }
  78. }
  79. function search() {
  80. model.removenode("/root/main/list01");
  81. model.resetInstanceNode("/root/main/list01");
  82. // 진료월 시작일 및 종료일 체크
  83. if(rdo_termflag.value == "ordym") {
  84. if(ipt_fromdd.value == "") {
  85. messageBox("진료월 시작일을","C001");
  86. model.setFocus("ipt_fromdd");
  87. return false;
  88. }
  89. if(ipt_todd.value == "") {
  90. messageBox("진료월 종료일을","C001");
  91. model.setFocus("ipt_todd");
  92. return false;
  93. }
  94. }
  95. // 공문도착일자 시작일 및 종료일 체크
  96. if(rdo_termflag.value == "clamym") {
  97. if(ipt_fromdd.value == "") {
  98. messageBox("청구월 시작일을","C001");
  99. model.setFocus("ipt_fromdd");
  100. return false;
  101. }
  102. if(ipt_todd.value == "") {
  103. messageBox("청구월 종료일을","C001");
  104. model.setFocus("ipt_todd");
  105. return false;
  106. }
  107. }
  108. // 공문도착일자 시작일 및 종료일 체크
  109. if(rdo_termflag.value == "arvym") {
  110. if(ipt_fromdd.value == "") {
  111. messageBox("도착월 시작일을","C001");
  112. model.setFocus("ipt_fromdd");
  113. return false;
  114. }
  115. if(ipt_todd.value == "") {
  116. messageBox("도착월 종료일을","C001");
  117. model.setFocus("ipt_todd");
  118. return false;
  119. }
  120. }
  121. // 심사차수 체크
  122. /*if(ipt_judgdg.value == "") {
  123. messageBox("심사차수를","C001");
  124. model.setFocus("ipt_judgdg");
  125. return false;
  126. }*/
  127. if(rdo_insukind.value == "") {
  128. messageBox("보험유형을","C002");
  129. return false;
  130. }
  131. if(ipt_patunitsrch.value == "") {
  132. model.setValue("/root/send/patunitsrch2","");
  133. } else {
  134. fGetInAftJudgTrgtManList();
  135. }
  136. model.removenode("/root/main/list01/gridoprcprtndetl");
  137. submit("TRPIF60211");
  138. }
  139. model.copyNode("/root/main/list01/gridoprcprtndetl","/root/main/list05/gridoprcprtndetl");
  140. ]]>
  141. </script>
  142. </xhtml:head>
  143. <xhtml:body class="datagrid2" guideline="1,1197;2,831;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  144. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  145. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:281px; height:14px; ">월별청구현황</caption>
  146. </group>
  147. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  148. <group id="group2" style="left:0px; top:10px; width:1194px; height:90px; vertical-align:top; ">
  149. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:90px; background-color:#fffbf2; border-color:#ffd799; "/>
  150. <caption id="caption2" class="search_name" style="left:540px; top:10px; width:96px; height:17px; ">보험유형 :</caption>
  151. <line id="line13" class="line_4" style="x1:1108px; y1:35px; x2:1108px; y2:57px; border-color:#ffe4bb; border-left-style:solid; "/>
  152. <button id="btn_search" class="btn1_letter2" style="left:1123px; top:35px; width:56px; height:22px; ">
  153. <caption>조회</caption>
  154. <script type="javascript" ev:event="onclick">
  155. <![CDATA[
  156. search();
  157. if(rdo_insukind.value == "11") {
  158. grd_oprcprtndetl.colHidden(17) = true; // 시군구(입금보장기관기호)컬럼 숨김
  159. } else {
  160. grd_oprcprtndetl.colHidden(17) = false; // 시군구(입금보장기관기호)컬럼 보여줌
  161. }
  162. ]]>
  163. </script>
  164. </button>
  165. <caption id="caption4" class="search_name" style="left:333px; top:8px; width:108px; height:17px; ">청구분야 :</caption>
  166. <caption id="caption3" style="left:229px; top:10px; width:15px; height:15px; ">~</caption>
  167. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_search" navindex="3" inputtype="date" maxlength="6" format="yyyy-mm" style="left:140px; top:7px; width:85px; height:19px; "/>
  168. <input id="ipt_todd" ref="/root/send/todd" class="input_search" navindex="4" inputtype="date" maxlength="6" format="yyyy-mm" style="left:243px; top:7px; width:83px; height:19px; "/>
  169. <select1 id="rdo_termflag" ref="/root/send/termflag" class="radio_search" appearance="full" cols="3" rows="1" overflow="visible" style="left:15px; top:8px; width:120px; height:16px; font-weight:bold; border-style:none; ">
  170. <choices>
  171. <item>
  172. <label>청구월</label>
  173. <value>clamym</value>
  174. </item>
  175. <item>
  176. <label>송신월</label>
  177. <value>sendym</value>
  178. </item>
  179. </choices>
  180. </select1>
  181. <select1 id="cmb_clamno" ref="/root/send/clamno" class="combo_search" appearance="minimal" style="left:423px; top:8px; width:105px; height:19px; ">
  182. <choices>
  183. <itemset nodeset="/root/init/U0002list/U0002">
  184. <label ref="clamno"/>
  185. <value ref="clamno"/>
  186. </itemset>
  187. </choices>
  188. <script type="javascript" ev:event="xforms-select">
  189. <![CDATA[
  190. model.setFocus("ipt_docuseqno");
  191. ]]>
  192. </script>
  193. </select1>
  194. <select1 id="combo1" ref="/root/send/clamno" class="combo_search" appearance="minimal" style="left:423px; top:35px; width:105px; height:19px; ">
  195. <choices>
  196. <itemset nodeset="/root/init/U0002list/U0002">
  197. <label ref="clamno"/>
  198. <value ref="clamno"/>
  199. </itemset>
  200. </choices>
  201. <script type="javascript" ev:event="xforms-select">
  202. <![CDATA[
  203. model.setFocus("ipt_docuseqno");
  204. ]]>
  205. </script>
  206. </select1>
  207. <caption id="caption6" class="search_name" style="left:333px; top:35px; width:83px; height:17px; ">청 구 과 :</caption>
  208. <select1 id="combo3" ref="/root/send/clamno" class="combo_search" appearance="minimal" style="left:423px; top:60px; width:105px; height:19px; ">
  209. <choices>
  210. <itemset nodeset="/root/init/U0002list/U0002">
  211. <label ref="clamno"/>
  212. <value ref="clamno"/>
  213. </itemset>
  214. </choices>
  215. <script type="javascript" ev:event="xforms-select">
  216. <![CDATA[
  217. model.setFocus("ipt_docuseqno");
  218. ]]>
  219. </script>
  220. </select1>
  221. <caption id="caption7" class="search_name" style="left:333px; top:60px; width:108px; height:17px; ">청구구분 :</caption>
  222. <caption id="caption8" class="search_name" style="left:15px; top:35px; width:96px; height:17px; ">내원유형 :</caption>
  223. <select1 id="radio1" ref="/root/send/insukind" class="radio_search" appearance="full" cols="3" overflow="visible" style="left:105px; top:35px; width:130px; height:20px; border-style:none; ">
  224. <choices>
  225. <item>
  226. <label>전체</label>
  227. <value>A</value>
  228. </item>
  229. <item>
  230. <label>입원</label>
  231. <value>I</value>
  232. </item>
  233. <item>
  234. <label>외래</label>
  235. <value>O</value>
  236. </item>
  237. </choices>
  238. <script type="javascript" ev:event="xforms-value-changed">
  239. <![CDATA[
  240. if(rdo_insukind.value == "00" || rdo_insukind.value == "11") {
  241. cpt_cpcd.visible = false;
  242. cpt_assocd.visible = false;
  243. cmb_cpcd.visible = false;
  244. cmb_assocd.visible = false;
  245. }
  246. if(rdo_insukind.value == "21") {
  247. cpt_cpcd.visible = true;
  248. cpt_assocd.visible = true;
  249. cmb_cpcd.visible = true;
  250. cmb_assocd.visible = true;
  251. }
  252. ]]>
  253. </script>
  254. </select1>
  255. <select id="checkbox1" overflow="visible" appearance="full" cols="1" style="left:630px; top:11px; width:55px; height:69px; border-style:none; ">
  256. <choices>
  257. <item>
  258. <label>보험</label>
  259. <value>11</value>
  260. </item>
  261. <item>
  262. <label>보호</label>
  263. <value>22</value>
  264. </item>
  265. <item>
  266. <label>산재</label>
  267. <value>41</value>
  268. </item>
  269. <item>
  270. <label>자보</label>
  271. <value>31</value>
  272. </item>
  273. </choices>
  274. </select>
  275. <select id="checkbox2" overflow="visible" appearance="full" cols="1" style="left:705px; top:10px; width:95px; height:70px; border-style:none; ">
  276. <choices>
  277. <item>
  278. <label>시군구별</label>
  279. <value>22</value>
  280. </item>
  281. <item>
  282. <label>손보사별</label>
  283. <value>31</value>
  284. </item>
  285. <item>
  286. <label>산재청구처별</label>
  287. <value>41</value>
  288. </item>
  289. <item>
  290. <label>DRG</label>
  291. <value>drg</value>
  292. </item>
  293. </choices>
  294. </select>
  295. </group>
  296. <caption id="caption1" class="tit_2" style="left:5px; top:114px; width:131px; height:14px; ">월별청구현황</caption>
  297. <line id="line1" class="line_1" style="x1:0px; y1:131px; x2:1194px; y2:131px; "/>
  298. <button id="button1" class="btn2_letter4" style="left:1127px; top:108px; width:64px; height:19px; ">
  299. <caption>엑셀저장</caption>
  300. <script type="javascript" ev:event="DOMActivate">
  301. <![CDATA[
  302. var fileName = window.fileDialog("save", ",", false, cap_title.value, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  303. if (fileName != "")
  304. {
  305. grd_pirhobtspec.saveExcel(fileName, "SheetName", true, true, "", "", "");
  306. }
  307. ]]>
  308. </script>
  309. </button>
  310. </group>
  311. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  312. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  313. </group>
  314. </xhtml:body>
  315. </xhtml:html>