SPAHR00602_청구관리.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  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. <main>
  10. <acptlst>
  11. <item>
  12. <sel/>
  13. <pid/>
  14. <hngnm/>
  15. <orddd/>
  16. <rsrvdd/>
  17. <rsrvno/>
  18. <insutrgtflag/>
  19. <dgflag/>
  20. <insuid/>
  21. <rrgstno/>
  22. <telno/>
  23. <mpphon/>
  24. <email/>
  25. </item>
  26. </acptlst>
  27. </main>
  28. <send>
  29. <srchfromdd/>
  30. <srchtodd/>
  31. <srchhealexamflag/>
  32. <srchhealexamdetlflag/>
  33. <srchinstcd/>
  34. <srchbizyear/>
  35. <srchonetwotype/>
  36. <srchasktype/>
  37. <srchcmpycd/>
  38. <srchcmpynm/>
  39. <indata/>
  40. </send>
  41. <init>
  42. <baseinfo>
  43. <hedetlflaglst/>
  44. <asktype/>
  45. </baseinfo>
  46. </init>
  47. <temp/>
  48. <temp2/>
  49. </root>
  50. </instance>
  51. <script type="javascript" ev:event="xforms-ready">
  52. <![CDATA[
  53. fGetBaseInfo();
  54. fInitCtrl(true);
  55. ]]>
  56. </script>
  57. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  58. <submission id="TRAHR00604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/acptlst"/>
  59. <submission id="TRAHR00605" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp"/>
  60. <submission id="TRAHR00606" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp"/>
  61. <submission id="TRAHR00607" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp2"/>
  62. <submission id="TRAHR00608" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp3"/>
  63. <submission id="TRAHR00609" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp4"/>
  64. </model>
  65. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  67. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  68. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  69. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  70. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  71. <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
  72. <script type="javascript" src="../../../ast/healexamweb/js/AHA010.js"/>
  73. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  74. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  75. <script type="javascript">
  76. <![CDATA[
  77. function fGetBaseInfo(){
  78. var healexamfg = fGetHealExamFlag();
  79. zbcfGetCodeList( new Array( "A0070","A0108"),
  80. new Array("/root/init/baseinfo/hedetlflaglst"
  81. ,"/root/init/baseinfo/asktype"
  82. ) );
  83. submit("TRZBC00101");
  84. model.setValue("/root/send/srchinstcd", getUserInfo("dutplceinstcd") );
  85. model.setValue("/root/send/srchhealexamflag", healexamfg);
  86. cmb_healexamdetlflag.select(6);
  87. }
  88. /**===================================================================================
  89. *대상자 가져오기
  90. *건진구분/건진일자/검사실/환자id/단체코드/패키지코드별 조회
  91. =====================================================================================*/
  92. function fGetRsltPatList(){
  93. openLoadingBar("건진자 대상 리스트를 가져오는 중 입니다..") ;//처리중 화면을 오픈한다.
  94. model.removeNodeset(grd_acptlst.nodeset);
  95. model.setValue("/root/send/srchinstcd" , getUserInfo("dutplceinstcd") );
  96. model.setValue("/root/send/srchhealexamflag", "G");
  97. // model.setValue("/root/send/srchhealexamflag", fGetHealExamFlag());
  98. submit("TRAHR00604");
  99. closeLoadingBar() ;//처리중 화면을 close한다.
  100. }
  101. function fExeAskFile(){
  102. openLoadingBar("처리중 입니다..") ;//처리중 화면을 오픈한다.
  103. // 파일명 가져오기
  104. submit("TRAHR00606");
  105. model.setValue("/root/send/indata", grd_acptlst.getUpdateData("update"));
  106. var filenm = model.getValue("/root/temp/item/filename");
  107. var file = window.fileDialog("save",",",false, filenm,"txt","Text Files(*.txt)|*.txt|All Files (*.*)|*.*");
  108. // 건강검진비 청구서/추가지급 청구서
  109. model.makeNode("/root/send/filenm");
  110. model.setValue("/root/send/filenm", filenm);
  111. // alert(model.getValue("/root/send/filenm"));
  112. // submit("TRAHR00609");
  113. //1차건진자
  114. submit("TRAHR00605");
  115. //2차건진자
  116. submit("TRAHR00607");
  117. //문진표
  118. submit("TRAHR00608");
  119. var nodeList = instance1.selectNodes(grd_acptlst.nodeset + "[sel='Y']");
  120. for( var i = 0 ; i <= nodeList.length ; i++){
  121. copyNodeListType("/root/temp", "/root/temp2/item["+ i +"]", "after");
  122. }
  123. for( var i = 0 ; i <= nodeList.length ; i++){
  124. copyNodeListType("/root/temp", "/root/temp3/item["+ i +"]", "after");
  125. }
  126. model.refresh();
  127. if (file != "")
  128. {
  129. grd_hidden.saveText(file);
  130. }
  131. closeLoadingBar() ;//처리중 화면을 close한다.
  132. }
  133. function fInitCtrl(bAll){
  134. if( bAll == true ){
  135. var curDt = getCurrentDate();
  136. model.setValue(ipt_rsvfrdd.attribute("ref") , curDt);
  137. model.setValue(ipt_rsvtodd.attribute("ref") , curDt);
  138. }
  139. }
  140. ]]>
  141. </script>
  142. </xhtml:head>
  143. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  144. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  145. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; 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:60px; vertical-align:top; ">
  149. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:59px; "/>
  150. <caption id="caption7" class="search_name" style="left:245px; top:9px; width:94px; height:17px; ">1/2차구분 :</caption>
  151. <button id="button1" class="btn1_letter2" style="left:1044px; top:19px; width:56px; height:22px; ">
  152. <caption>실행</caption>
  153. <script type="javascript" ev:event="DOMActivate">
  154. <![CDATA[
  155. fExeAskFile();
  156. ]]>
  157. </script>
  158. </button>
  159. <select1 id="combo3" ref="/root/send/srchasktype" class="combo_search" appearance="minimal" style="left:551px; top:32px; width:139px; height:19px; ">
  160. <choices>
  161. <itemset nodeset="/root/init/baseinfo/asktype/A0108">
  162. <label ref="cdnm"/>
  163. <value ref="cdid"/>
  164. </itemset>
  165. </choices>
  166. </select1>
  167. <line id="line1" class="line_4" style="x1:1028px; y1:8px; x2:1028px; y2:51px; "/>
  168. <caption id="caption10" class="search_name" style="left:15px; top:33px; width:91px; height:17px; ">건진일자 :</caption>
  169. <caption id="caption11" class="search_n_b" style="left:216px; top:33px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  170. <caption id="caption14" class="search_name" style="left:455px; top:33px; width:86px; height:17px; ">청구구분 :</caption>
  171. <caption id="caption4" class="search_name" style="left:455px; top:9px; width:86px; height:17px; ">사업장 :</caption>
  172. <caption id="caption5" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">건진구분 :</caption>
  173. <select1 id="combo2" ref="/root/send/srchonetwotype" class="combo_search" appearance="minimal" style="left:345px; top:8px; width:90px; height:19px; ">
  174. <choices>
  175. <item>
  176. <label>1차</label>
  177. <value>0</value>
  178. </item>
  179. <item>
  180. <label>2차</label>
  181. <value>2</value>
  182. </item>
  183. </choices>
  184. </select1>
  185. <button id="btn_selcmpy" class="icon_search" style="left:635px; top:11px; width:16px; height:16px; ">
  186. <caption/>
  187. <script type="javascript" ev:event="DOMActivate">
  188. <![CDATA[
  189. fGetComnCd("SMAHA00400", "08" , "nm", ipt_srchcmpycd.currentText ,ipt_srchcmpycd.attribute("ref"), opt_srchcmpynm.attribute("ref"));
  190. ]]>
  191. </script>
  192. </button>
  193. <input id="ipt_srchcmpycd" ref="/root/send/srchcmpycd" class="input_search" style="left:550px; top:8px; width:80px; height:19px; ">
  194. <script type="javascript" ev:event="onkeyup">
  195. <![CDATA[
  196. inputEnterKey("btn_selcmpy", "DOMActivate");
  197. ]]>
  198. </script>
  199. </input>
  200. <output id="opt_srchcmpynm" ref="/root/send/srchcmpynm" class="output_fix" style="left:655px; top:8px; width:140px; height:19px; "/>
  201. <button id="button2" class="btn1_letter2" style="left:1109px; top:19px; width:56px; height:22px; ">
  202. <caption>조회</caption>
  203. <script type="javascript" ev:event="DOMActivate">
  204. <![CDATA[
  205. fGetRsltPatList();
  206. ]]>
  207. </script>
  208. </button>
  209. </group>
  210. <caption id="caption3" class="tit_2" style="left:5px; top:75px; width:111px; height:14px; ">건진대상자</caption>
  211. <line id="line2" class="line_1" style="x1:0px; y1:90px; x2:1194px; y2:90px; "/>
  212. <datagrid id="grd_acptlst" nodeset="/root/main/acptlst/item" caption="^등록번호^성명^검진일자^예약일자^예약번호^직역구분^1/2차구분^증번호^주민번호^전화번호^핸드폰번호^이메일" colsep="^" colwidth="24, 89, 131, 142, 109, 100, 100, 100,1,1,1,1,1" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:95px; width:1194px; height:645px; ">
  213. <col checkvalue="Y,N" ref="sel" type="checkbox"/>
  214. <col ref="pid"/>
  215. <col ref="hngnm"/>
  216. <col ref="orddd" format="yyyy-mm-dd" style="left:264px; top:23px; width:142px; height:23px; "/>
  217. <col ref="rsrvdd" format="yyyy-mm-dd" style="left:264px; top:23px; width:142px; height:23px; "/>
  218. <col ref="rsrvno"/>
  219. <col ref="insutrgtflag"/>
  220. <col ref="dgflag"/>
  221. <col ref="insuid" visibility="hidden"/>
  222. <col ref="rrgstno" visibility="hidden"/>
  223. <col ref="telno" visibility="hidden"/>
  224. <col ref="mpphon" visibility="hidden"/>
  225. <col ref="email" visibility="hidden"/>
  226. </datagrid>
  227. <line id="line3" class="line_2" style="x1:0px; y1:118px; x2:1194px; y2:118px; "/>
  228. <input id="ipt_rsvfrdd" ref="/root/send/srchfromdd" class="input_s_essential" inputtype="date" style="left:110px; top:43px; width:105px; height:19px; "/>
  229. <input id="ipt_rsvtodd" ref="/root/send/srchtodd" class="input_s_essential" inputtype="date" style="left:232px; top:43px; width:100px; height:19px; "/>
  230. <select1 id="cmb_healexamdetlflag" ref="/root/send/srchhealexamdetlflag" class="combo_search" appearance="minimal" style="left:110px; top:18px; width:105px; height:19px; ">
  231. <choices>
  232. <itemset nodeset="/root/init/baseinfo/hedetlflaglst/A0070">
  233. <label ref="cdnm"/>
  234. <value ref="cdid"/>
  235. </itemset>
  236. </choices>
  237. </select1>
  238. <datagrid id="grd_hidden" nodeset="/root/temp/item" visibility="hidden" caption="환자결과" colwidth="815" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:440px; width:1175px; height:85px; ">
  239. <col ref="rslt"/>
  240. </datagrid>
  241. </group>
  242. </xhtml:body>
  243. </xhtml:html>