SMPID23100_외래추가청구대상자조회.xrw 53 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271
  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>외래추가청구대상자조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list1>
  11. <addacnt>
  12. </addacnt>
  13. </list1>
  14. <list2>
  15. <summary/>
  16. </list2>
  17. <list3>
  18. <code/>
  19. </list3>
  20. </main>
  21. <send>
  22. <!-- <calcscorcdflag/>
  23. <past/>
  24. <cretno/>-->
  25. <!-- <ordlist/>-->
  26. <fromdd/>
  27. <todd/>
  28. <pid/>
  29. <aftacntyn/>
  30. <preinsukind/>
  31. <presuppkind/>
  32. <aftsuppkind/>
  33. <orddeptcd/>
  34. <orddrid/>
  35. <aftinsukind/>
  36. <histstat/>
  37. <updatedata/>
  38. <clamym/>
  39. <clamdg/>
  40. <reqfild/>
  41. <allchk/>
  42. <clammode/>
  43. <judgrid/>
  44. <orddd/>
  45. <acting/>
  46. <clamym2/>
  47. </send>
  48. <init>
  49. <!-- <sppid21600>
  50. <cond>
  51. <pid/>
  52. <indd/>
  53. <fromdd/>
  54. <todd/>
  55. <calcscorcd/>
  56. <insukindcd/>
  57. <insukind/>
  58. <suppkindcd/>
  59. <suppkind/>
  60. <ownbrate/>
  61. </cond>
  62. </sppid21600>-->
  63. <preinsukindlist>
  64. <insukindnm/>
  65. <insukindcd/>
  66. </preinsukindlist>
  67. <presuppkindlist>
  68. <insukind/>
  69. <suppkindnm/>
  70. <suppkindcd/>
  71. </presuppkindlist>
  72. <aftinsukindlist>
  73. <insukindcd/>
  74. <insukindnm/>
  75. </aftinsukindlist>
  76. <aftsuppkindlist>
  77. <insukind/>
  78. <suppkindnm/>
  79. <suppkindcd/>
  80. </aftsuppkindlist>
  81. <init_pam/>
  82. <judgrid/>
  83. </init>
  84. <hidden>
  85. <popupmenu>
  86. <addlist>
  87. <item>
  88. <name>선택</name>
  89. <func>fselectchktrue</func>
  90. </item>
  91. <item>
  92. <name>선택해제</name>
  93. <func>fselectchkfalse</func>
  94. </item>
  95. </addlist>
  96. </popupmenu>
  97. </hidden>
  98. <temp>
  99. <pid/>
  100. <fromdd/>
  101. <todd/>
  102. <orddeptcd/>
  103. <orddrid/>
  104. <preinsukind/>
  105. <presuppkind/>
  106. <aftinsukind/>
  107. <aftsuppkind/>
  108. <histstat/>
  109. <judgrid/>
  110. <clamym/>
  111. <clamdg/>
  112. <reqfild/>
  113. <allchk/>
  114. <clammode/>
  115. <acting/>
  116. <clamymchk>Y</clamymchk>
  117. <clamym2/>
  118. </temp>
  119. <init_pam>
  120. <init>
  121. <orddeptcd>
  122. <cd/>
  123. <nm/>
  124. <deptengabbr/>
  125. <reqdeptno/>
  126. </orddeptcd>
  127. <orddrid>
  128. <cd/>
  129. <nm/>
  130. <dp/>
  131. <sp/>
  132. </orddrid>
  133. </init>
  134. </init_pam>
  135. </root>
  136. </instance>
  137. <script type="javascript" ev:event="xforms-ready">
  138. <![CDATA[
  139. fInitialize();
  140. submit("TRPID23101");
  141. submit("TRPID23102");
  142. submit("TRPID23103");
  143. submit("TRPID23104");
  144. submit("TRPID23105");
  145. submit("TRPAMCOM01");
  146. addComboItem("cmb_orddeptcd","전체","","above");
  147. addComboItem("cmb_preinsukind","전체","","above");
  148. addComboItem("cmb_aftinsukind","급여전체","2","above");
  149. addComboItem("cmb_aftinsukind","보험+급여","1","above");
  150. addComboItem("cmb_aftinsukind","전체","","above");
  151. cmb_aftinsukind.select(1);
  152. /*
  153. addComboItem("cmb_orddeptcd","전체","","above");
  154. addComboItem("cmb_preinsukind","전체","","above");
  155. addComboItem("cmb_aftinsukind","전체","","above");
  156. //ipt_clamym.disabled = true; //청구년월
  157. //button_up.disabled = true;
  158. //button_down.disabled = true;
  159. //ipt_clamdg.disabled = true; //차수
  160. //cmb_judgrid.disabled = true; //심사자
  161. ipt_fromdd.disabled = true;
  162. ipt_todd.disabled = true;
  163. ipt_fromdd.value = "";
  164. ipt_todd.value = "";
  165. model.removeNode("/root/main/list1");
  166. //chk_all.value = true; //전체
  167. ipt_clamym.disabled = true; //청구년월
  168. button_up.disabled = true;
  169. button_down.disabled = true;
  170. ipt_clamdg.disabled = true; //차수
  171. cmb_judgrid.disabled = true; //심사자
  172. cmb_reqfild.disabled = true; //청구분야
  173. button3.visible = false;
  174. button4.visible = false;
  175. btn_choi.disabled = true;
  176. btn_del.disabled = true;
  177. opt_histstat.value = "T";
  178. ipt_clamym.value = "";
  179. ipt_clamdg.value = "";
  180. cmb_judgrid.value = "";
  181. cmb_reqfild.value = "";
  182. */
  183. ]]>
  184. </script>
  185. <submission id="TRPID23101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/preinsukindlist"/>
  186. <submission id="TRPID23100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list1"/>
  187. <submission id="TRPID23102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/presuppkindlist"/>
  188. <submission id="TRPID23103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/aftinsukindlist"/>
  189. <submission id="TRPID23104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/aftsuppkindlist"/>
  190. <submission id="TRPAMCOM01" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init_pam/init"/>
  191. <submission id="TXPID23100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updatedata" resultref="/root/hidden"/>
  192. <submission id="TRPID23105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/judgrid"/>
  193. <submission id="TRPID23106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list2"/>
  194. <submission id="TRPID23107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list3"/>
  195. <submission id="TXPID23101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp" resultref="/root/main/list1"/>
  196. </model>
  197. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  198. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  199. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  200. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  201. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  202. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  203. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  204. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  205. <script type="javascript" src="../../../pam/calcscormngtweb/js/PIC001.js"/>
  206. <script type="javascript">
  207. <![CDATA[
  208. function fInitialize(){
  209. //var curDate = getCurrentDate();
  210. model.removeNodeset("/root/main/list1/addacnt");
  211. model.setvalue("/root/init/preinsukindlist", "");
  212. model.setvalue("/root/init/aftinsukindlist", "");
  213. //model.setValue("/root/temp/fromdd", curDate);
  214. //model.setValue( "/root/temp/todd", curDate);
  215. //model.resetInstanceNode("/root/temp");
  216. //model.removeNodeset("/root/init");
  217. //ipt_clamym.disabled = true; //청구년월
  218. //button_up.disabled = true;
  219. //button_down.disabled = true;
  220. //ipt_clamdg.disabled = true; //차수
  221. //cmb_judgrid.disabled = true; //심사자
  222. ipt_fromdd.disabled = false;
  223. ipt_todd.disabled = false;
  224. ipt_fromdd.value = "";
  225. ipt_todd.value = "";
  226. model.setValue("/root/temp/fromdd",getCurrentDate());
  227. model.setValue("/root/temp/todd",getCurrentDate());
  228. model.removeNode("/root/main/list1");
  229. //chk_all.value = true; //전체
  230. btn_srch.disabled = false;
  231. ipt_clamym.disabled = true; //청구년월
  232. ipt_clamym2.disabled = true; //청구년월
  233. button_up.disabled = true;
  234. button_down.disabled = true;
  235. ipt_clamdg.disabled = true; //차수
  236. cmb_judgrid.disabled = false; //심사자
  237. cmb_reqfild.disabled = true; //청구분야
  238. button3.visible = false;
  239. button4.visible = false;
  240. //btn_choi.disabled = true;
  241. //btn_del.disabled = true;
  242. opt_histstat.value = "T";
  243. ipt_clamym.value = "";
  244. ipt_clamym2.value = "";
  245. ipt_clamdg.value = "";
  246. cmb_judgrid.value = "";
  247. cmb_reqfild.value = "";
  248. btn_pat.selected= true;
  249. model.toggle("case_code");
  250. model.refresh();
  251. }
  252. function fSave(flag) {
  253. //alert(flag);
  254. model.makeValue("/root/send/updatedata/histstat", flag);
  255. if (submit("TXPID23100") == true) {
  256. //btn_srch.dispatch("onclick"); //저장처리 후, 내역 재조회(조회 이벤트 호출)
  257. }
  258. }
  259. // 청구년월 증감 함수
  260. function CalMonth(idc, av_date)
  261. {
  262. var lv_date = av_date.toDate("YYYYMM" + "01");
  263. lv_date = lv_date.getAddDate(idc, "M")
  264. return lv_date.getDateFormat("YYYYMM");
  265. }
  266. function fselectchktrue()
  267. {
  268. var selectCnt = 0;
  269. selectCnt = grd_addacntlist.selectedRows;
  270. for( var i = 0; i < selectCnt; i++ ){
  271. model.setValue(("/root/main/list1/addacnt[" + (grd_addacntlist.selectedRow(i) - grd_addacntlist.fixedRows + 1) + "]/chck"),"true");
  272. }
  273. //model.refresh();
  274. }
  275. function fselectchkfalse()
  276. {
  277. var selectCnt = 0;
  278. selectCnt = grd_addacntlist.selectedRows;
  279. for( var i = 0; i < selectCnt; i++ ){
  280. model.setValue(("/root/main/list1/addacnt[" + (grd_addacntlist.selectedRow(i) - grd_addacntlist.fixedRows + 1) + "]/chck"),"false");
  281. }
  282. //model.refresh();
  283. }
  284. ]]>
  285. </script>
  286. </xhtml:head>
  287. <xhtml:body pagewidth="1210" pageheight="752" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  288. <group id="group3" scroll="auto" style="left:0px; top:0px; width:1160px; height:700px; ">
  289. <caption id="caption10" class="tit_2" style="left:5px; top:5px; width:170px; height:13px; ">외래추가청구대상자조회</caption>
  290. <group id="group2" style="left:5px; top:24px; width:1150px; height:91px; vertical-align:top; ">
  291. <shape id="roundrect1" class="roundrerct_search" appearance="roundrect" style="left:5px; top:0px; width:1145px; height:85px; "/>
  292. <button id="btn_srch" class="btn1_letter2" style="left:1080px; top:30px; width:56px; height:22px; ">
  293. <caption>조회</caption>
  294. <script type="javascript" ev:event="onclick">
  295. <![CDATA[
  296. // if(chk_clamym.value == "Y") {
  297. // if(messageBox(" 청구년월의 조회조건을 전체로 주셨습니다.전체로 조건을 주시면 조회속도에 많은 영향이 있습니다. 계속 ", "Q004") == 7){
  298. // return;
  299. // }
  300. // }
  301. //alert(model.getValue("/root/temp/fromdd"));
  302. //alert(model.getValue("/root/temp/todd"));
  303. model.setValue("/root/send/fromdd",model.getValue("/root/temp/fromdd").removeMask('\n'));
  304. model.setValue("/root/send/todd",model.getValue("/root/temp/todd").removeMask('\n'));
  305. model.setValue("/root/send/pid",model.getValue("/root/temp/pid"));
  306. model.setValue("/root/send/aftacntyn",model.getValue("/root/temp/aftacntyn"));
  307. model.setValue("/root/send/preinsukind",model.getValue("/root/temp/preinsukind"));
  308. model.setValue("/root/send/presuppkind",model.getValue("/root/temp/presuppkind"));
  309. model.setValue("/root/send/aftinsukind",model.getValue("/root/temp/aftinsukind"));
  310. model.setValue("/root/send/aftsuppkind",model.getValue("/root/temp/aftsuppkind"));
  311. model.setValue("/root/send/orddeptcd",model.getValue("/root/temp/orddeptcd"));
  312. model.setValue("/root/send/orddrid",model.getValue("/root/temp/orddrid"));
  313. model.setValue("/root/send/histstat",model.getValue("/root/temp/histstat"));
  314. model.setValue("/root/send/clamym",model.getValue("/root/temp/clamym"));
  315. model.setValue("/root/send/clamdg",model.getValue("/root/temp/clamdg"));
  316. model.setValue("/root/send/reqfild",model.getValue("/root/temp/reqfild"));
  317. model.setValue("/root/send/clammode",model.getValue("/root/temp/clammode"));
  318. model.setValue("/root/send/judgrid",model.getValue("/root/temp/judgrid"));
  319. model.setValue("/root/send/acting",model.getValue("/root/temp/acting"));
  320. model.setValue("/root/send/clamym2",model.getValue("/root/temp/clamym2"));
  321. if (swt_add.selectedIndex == 0 ) { //요약탭
  322. model.removeNodeset("/root/main/list2/summary");
  323. submit("TRPID23106");
  324. } else if(swt_add.selectedIndex == 1 ) { //명단탭
  325. model.removeNodeset("/root/main/list1/addacnt");
  326. submit("TRPID23100");
  327. } else if(swt_add.selectedIndex == 2 ) { //코드탭
  328. model.setValue("/root/send/orddd","");
  329. model.removeNodeset("/root/main/list3/code");
  330. submit("TRPID23107");
  331. }
  332. /*
  333. if (opt_histstat.value == "T"){
  334. btn_choi.disabled = false;
  335. btn_del.disabled = false;
  336. }
  337. else if(opt_histstat.value == "N" || opt_histstat.value == "Y" || opt_histstat.value == "C" || opt_histstat.value == ""){
  338. btn_choi.disabled = true;
  339. btn_del.disabled = true;
  340. }
  341. */
  342. ]]>
  343. </script>
  344. </button>
  345. <caption id="caption5" class="search_name" style="left:15px; top:6px; width:80px; height:17px; ">정산일 :</caption>
  346. <input id="ipt_fromdd" ref="/root/temp/fromdd" class="input_search" inputtype="date" style="left:148px; top:5px; width:85px; height:19px; "/>
  347. <caption id="caption6" style="left:240px; top:5px; width:11px; height:18px; ">~</caption>
  348. <input id="ipt_todd" ref="/root/temp/todd" class="input_search" inputtype="date" style="left:260px; top:5px; width:85px; height:19px; "/>
  349. <caption id="caption2" class="search_name" style="left:370px; top:32px; width:86px; height:17px; ">등록번호 :</caption>
  350. <!-- rdo_mchrgcode : 세부계산내역 조회용이 아닌 "코드조회" 에 사용될 수가코드 검색용 Radio 구분임 -->
  351. <line id="line1" class="line_4" style="x1:1060px; y1:9px; x2:1060px; y2:71px; "/>
  352. <caption id="caption9" class="search_name" style="left:610px; top:32px; width:80px; height:17px; ">진료의 :</caption>
  353. <caption id="caption11" class="search_name" style="left:842px; top:5px; width:77px; height:17px; ">진료과 :</caption>
  354. <input id="ipt_pid" ref="/root/temp/pid" class="input_s_essential" _chartype="upper" style="left:465px; top:32px; width:100px; height:19px; ">
  355. <script type="javascript" ev:event="onkeyup">
  356. <![CDATA[
  357. if (event.keyCode == '13') {
  358. setInputNodeCurText();
  359. btn_srch.dispatch("onclick");
  360. }
  361. ]]>
  362. </script>
  363. </input>
  364. <select1 id="cmb_orddeptcd" ref="/root/temp/orddeptcd" class="combo_search" appearance="minimal" style="left:926px; top:5px; width:120px; height:19px; ">
  365. <choices>
  366. <itemset nodeset="/root/init_pam/init/orddeptcd">
  367. <label ref="nm"/>
  368. <value ref="cd"/>
  369. </itemset>
  370. </choices>
  371. <script type="javascript" ev:event="xforms-value-changed">
  372. <![CDATA[
  373. var varorddeptcd= cmb_orddeptcd.value;
  374. cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init_pam/init/orddrid[dp = '" + cmb_orddeptcd.value + "']";
  375. if (varorddeptcd == null || varorddeptcd == "" || varorddeptcd == " " || varorddeptcd == "-"){
  376. model.setValue("/root/temp/orddrid", "");
  377. }
  378. model.refresh();
  379. ]]>
  380. </script>
  381. </select1>
  382. <select1 id="cmb_aftinsukind" ref="/root/temp/aftinsukind" class="combo_search" visibility="visible" appearance="minimal" style="left:710px; top:5px; width:100px; height:19px; ">
  383. <choices>
  384. <itemset nodeset="/root/init/aftinsukindlist">
  385. <label ref="insukindnm"/>
  386. <value ref="insukindcd"/>
  387. </itemset>
  388. </choices>
  389. <script type="javascript" ev:event="xforms-value-changed">
  390. <![CDATA[
  391. var varaftinsukind= cmb_aftinsukind.value;
  392. cmb_aftsuppkind.choices.itemset.attribute("nodeset") = "/root/init/aftsuppkindlist[insukind = '"+varaftinsukind+"']";
  393. if (varaftinsukind == null || varaftinsukind == "" || varaftinsukind == " " || varaftinsukind == "-"){
  394. model.setValue("/root/temp/aftsuppkind","");
  395. }
  396. cmb_aftsuppkind.refresh();
  397. ]]>
  398. </script>
  399. </select1>
  400. <select1 id="cmb_judgrid" ref="/root/temp/judgrid" class="combo_search" visibility="visible" appearance="minimal" style="left:926px; top:32px; width:90px; height:19px; ">
  401. <choices>
  402. <itemset nodeset="/root/temp/judgrid">
  403. <label ref="nm"/>
  404. <value ref="cd"/>
  405. </itemset>
  406. </choices>
  407. </select1>
  408. <select1 id="cmb_orddrid" ref="/root/temp/orddrid" class="combo_search" appearance="minimal" style="left:710px; top:32px; width:100px; height:19px; ">
  409. <choices>
  410. <itemset nodeset="/root/init_pam/init/orddrid">
  411. <label ref="nm"/>
  412. <value ref="cd"/>
  413. </itemset>
  414. </choices>
  415. <script type="javascript" ev:event="xforms-value-changed">
  416. <![CDATA[
  417. var orddeptcd = model.getValue("/root/temp/orddeptcd");
  418. if (orddeptcd == null || orddeptcd == "" || orddeptcd == " " || orddeptcd == "-")
  419. {
  420. messageBox("진료과 선택을 먼저 하십시요!","E999","");
  421. model.setValue("/root/temp/orddrid","");
  422. //cmb_orddrid.dispatch("xforms-value-changed");
  423. model.refresh();
  424. model.setFocus("cmb_orddeptcd");
  425. return;
  426. }
  427. ]]>
  428. </script>
  429. </select1>
  430. <caption id="caption12" class="search_name" style="left:370px; top:5px; width:95px; height:17px; ">청구분야 :</caption>
  431. <button id="button_down" class="icon_down" disabled="false" style="left:237px; top:72px; width:10px; height:9px; ">
  432. <caption/>
  433. <script type="javascript" ev:event="onclick">
  434. <![CDATA[
  435. var clamym = ipt_clamym.value;
  436. ipt_clamym.value = CalMonth(-1, clamym);
  437. ]]>
  438. </script>
  439. </button>
  440. <button id="button_up" class="icon_up" disabled="false" style="left:237px; top:62px; width:10px; height:9px; ">
  441. <caption/>
  442. <script type="javascript" ev:event="onclick">
  443. <![CDATA[
  444. var clamym = ipt_clamym.value;
  445. ipt_clamym.value = CalMonth(1, clamym);
  446. ]]>
  447. </script>
  448. </button>
  449. <input id="ipt_clamdg" ref="/root/temp/clamdg" class="input_default" disabled="false" visibility="hidden" inputtype="spin" step="1" min="0" max="9" style="left:366px; top:61px; width:66px; height:19px; text-align:center; "/>
  450. <input id="ipt_clamym" ref="/root/temp/clamym" class="input_default" disabled="false" visibility="visible" inputtype="date" format="yyyy-mm" style="left:148px; top:61px; width:89px; height:19px; text-align:center; "/>
  451. <caption id="caption13" class="search_name" style="left:15px; top:60px; width:86px; height:17px; ">청구년월 :</caption>
  452. <select1 id="cmb_reqfild" ref="/root/temp/reqfild" class="combo_default" appearance="minimal" style="left:465px; top:5px; width:100px; height:19px; ">
  453. <choices>
  454. <item>
  455. <label>-.전체</label>
  456. <value/>
  457. </item>
  458. <item>
  459. <label>0.의과</label>
  460. <value>0</value>
  461. </item>
  462. <item>
  463. <label>1.내과</label>
  464. <value>1</value>
  465. </item>
  466. <item>
  467. <label>2.외과</label>
  468. <value>2</value>
  469. </item>
  470. <item>
  471. <label>3.산,소아과</label>
  472. <value>3</value>
  473. </item>
  474. <item>
  475. <label>4.안,이비인후과</label>
  476. <value>4</value>
  477. </item>
  478. <item>
  479. <label>5.피부,비뇨기과</label>
  480. <value>5</value>
  481. </item>
  482. <item>
  483. <label>6.치과</label>
  484. <value>6</value>
  485. </item>
  486. </choices>
  487. <script type="javascript" ev:event="xforms-value-changed">
  488. <![CDATA[
  489. /*cmb_orddeptcd.value = "";
  490. var ordfildcd = model.getValue("/root/main/ordfildcd");
  491. if (ordfildcd == "-") {
  492. cmb_orddeptcd.choices.itemset.attribute("nodeset") = "/root/hidden/list1/dept";
  493. }
  494. else if (ordfildcd == "0") {
  495. cmb_orddeptcd.choices.itemset.attribute("nodeset") = "/root/hidden/list1/dept[reqfild !='6']";
  496. }
  497. else {
  498. cmb_orddeptcd.choices.itemset.attribute("nodeset") = "/root/hidden/list1/dept[reqfild = '" + ordfildcd + "' or reqfild = '']";
  499. }
  500. model.refresh();*/
  501. ]]>
  502. </script>
  503. </select1>
  504. <select id="chk_all" ref="/root/temp/allchk" disabled="true" overflow="visible" appearance="full" style="left:105px; top:5px; width:45px; height:15px; border-style:none; ">
  505. <choices>
  506. <item>
  507. <label>전체</label>
  508. <value>Y</value>
  509. </item>
  510. </choices>
  511. <script type="javascript" ev:event="xforms-deselect">
  512. <![CDATA[
  513. ipt_fromdd.disabled = false;
  514. ipt_todd.disabled = false;
  515. model.setValue("/root/temp/fromdd",getCurrentDate());
  516. model.setValue("/root/temp/todd",getCurrentDate());
  517. //alert(model.getValue("/root/temp/fromdd"));
  518. //alert(model.getValue("/root/temp/todd"));
  519. model.refresh();
  520. ]]>
  521. </script>
  522. <script type="javascript" ev:event="xforms-select">
  523. <![CDATA[
  524. ipt_fromdd.disabled = true;
  525. ipt_todd.disabled = true;
  526. model.setValue("/root/temp/fromdd","");
  527. model.setValue("/root/temp/todd","");
  528. model.refresh();
  529. ]]>
  530. </script>
  531. </select>
  532. <select1 id="opt_clammode" ref="/root/temp/clammode" appearance="full" cols="5" rows="1" overflow="visible" style="left:200px; top:32px; width:150px; height:15px; font-weight:bold; border-style:none; ">
  533. <choices>
  534. <item>
  535. <label>전체</label>
  536. <value/>
  537. </item>
  538. <item>
  539. <label>추가</label>
  540. <value>A</value>
  541. </item>
  542. <item>
  543. <label>누락</label>
  544. <value>B</value>
  545. </item>
  546. </choices>
  547. </select1>
  548. <caption id="caption14" class="search_name" style="left:15px; top:32px; width:86px; height:17px; ">진행상태 :</caption>
  549. <select1 id="opt_histstat" ref="/root/temp/histstat" appearance="minimal" style="left:105px; top:32px; width:90px; height:19px; ">
  550. <choices>
  551. <item>
  552. <label>전체</label>
  553. <value>A</value>
  554. </item>
  555. <item>
  556. <label>청구대상</label>
  557. <value>T</value>
  558. </item>
  559. <item>
  560. <label>수집대기</label>
  561. <value>N</value>
  562. </item>
  563. <item>
  564. <label>수집제외</label>
  565. <value>C</value>
  566. </item>
  567. <item>
  568. <label>수집완료</label>
  569. <value>Y</value>
  570. </item>
  571. </choices>
  572. <script type="javascript" ev:event="xforms-select">
  573. <![CDATA[
  574. var to_date = (((new Date().getDateFormat("YYYYMM")) + "01").toDate("YYYYMMDD")).getAddDate(-1, "D");
  575. if(opt_histstat.value == "Y"){ //수집일경우
  576. // ipt_clamym.disabled = false; //청구년월
  577. button_up.disabled = false;
  578. button_down.disabled = false;
  579. ipt_clamdg.disabled = false; //차수
  580. ipt_clamdg.value = ""; // 청구차수 : 1
  581. cmb_reqfild.value = "";
  582. //cmb_judgrid.disabled = false; //심사자
  583. cmb_reqfild.disabled = false; //청구분야
  584. //전체선택/해제버튼
  585. button3.visible = false;
  586. button4.visible = false;
  587. grd_addacntlist.colDisabled(1) = true;
  588. btn_choi.disabled = true;
  589. btn_del.disabled = true;
  590. }else if(opt_histstat.value == "A"){//전체일경우
  591. // ipt_clamym.disabled = false; //청구년월
  592. button_up.disabled = true;
  593. button_down.disabled = true;
  594. ipt_clamdg.disabled = true; //차수
  595. ipt_clamym.value = "";
  596. ipt_clamym2.value = "";
  597. ipt_clamdg.value = "";
  598. //cmb_judgrid.value = "";
  599. //cmb_judgrid.disabled = true; //심사자
  600. cmb_reqfild.disabled = true; //청구분야
  601. //전체선택/해제버튼
  602. button3.visible = true;
  603. button4.visible = true;
  604. grd_addacntlist.colDisabled(1) = true;
  605. btn_choi.disabled = false;
  606. btn_del.disabled = false;
  607. }else if(opt_histstat.value == "T"){//청구대상일경우
  608. // ipt_clamym.disabled = true; //청구년월
  609. ipt_clamym.disabled = false; //청구년월
  610. ipt_clamym2.disabled = false; //청구년월
  611. button_up.disabled = true;
  612. button_down.disabled = true;
  613. ipt_clamdg.disabled = true; //차수
  614. // ipt_clamym.value = "";
  615. ipt_clamdg.value = "";
  616. //cmb_judgrid.value = "";
  617. //cmb_judgrid.disabled = true; //심사자
  618. cmb_reqfild.disabled = true; //청구분야
  619. //전체선택/해제버튼
  620. button3.visible = true;
  621. button4.visible = true;
  622. grd_addacntlist.colDisabled(1) = false;
  623. btn_choi.disabled = false;
  624. btn_del.disabled = false;
  625. }else if(opt_histstat.value == "N"){//수집대기일경우
  626. // ipt_clamym.disabled = true; //청구년월
  627. ipt_clamym.disabled = false; //청구년월
  628. ipt_clamym2.disabled = false; //청구년월
  629. button_up.disabled = false;
  630. button_down.disabled = false;
  631. ipt_clamdg.disabled = true; //차수
  632. // ipt_clamym.value = "";
  633. ipt_clamdg.value = "";
  634. //cmb_judgrid.value = "";
  635. //cmb_judgrid.disabled = true; //심사자
  636. cmb_reqfild.disabled = true; //청구분야
  637. //전체선택/해제버튼
  638. button3.visible = false;
  639. button4.visible = false;
  640. grd_addacntlist.colDisabled(1) = false;
  641. btn_choi.disabled = true;
  642. btn_del.disabled = true;
  643. }else if(opt_histstat.value == "C"){//수집대기일경우
  644. // ipt_clamym.disabled = true; //청구년월
  645. ipt_clamym.disabled = false; //청구년월
  646. ipt_clamym2.disabled = false; //청구년월
  647. button_up.disabled = true;
  648. button_down.disabled = false;
  649. ipt_clamdg.disabled = false; //차수
  650. // ipt_clamym.value = "";
  651. ipt_clamdg.value = "";
  652. //cmb_judgrid.value = "";
  653. //cmb_judgrid.disabled = true; //심사자
  654. cmb_reqfild.disabled = true; //청구분야
  655. //전체선택/해제버튼
  656. button3.visible = false;
  657. button4.visible = false;
  658. grd_addacntlist.colDisabled(1) = false;
  659. btn_choi.disabled = true;
  660. btn_del.disabled = true;
  661. }
  662. ]]>
  663. </script>
  664. </select1>
  665. <caption id="caption16" class="search_name" visibility="hidden" style="left:610px; top:59px; width:171px; height:17px; ">Acting 정리작업 Data :</caption>
  666. <select1 id="opt_acting" ref="/root/temp/acting" visibility="hidden" appearance="full" cols="5" rows="1" overflow="visible" style="left:785px; top:60px; width:150px; height:15px; font-weight:bold; border-style:none; ">
  667. <choices>
  668. <item>
  669. <label>포함</label>
  670. <value/>
  671. </item>
  672. <item>
  673. <label>미포함</label>
  674. <value>N</value>
  675. </item>
  676. <item>
  677. <label>only</label>
  678. <value>O</value>
  679. </item>
  680. </choices>
  681. </select1>
  682. <select id="chk_clamym" ref="/root/temp/clamymchk" overflow="visible" appearance="full" style="left:105px; top:62px; width:45px; height:15px; border-style:none; ">
  683. <choices>
  684. <item>
  685. <label>전체</label>
  686. <value>Y</value>
  687. </item>
  688. </choices>
  689. <script type="javascript" ev:event="xforms-deselect">
  690. <![CDATA[
  691. ipt_clamym.disabled = false;
  692. ipt_clamym2.disabled = false;
  693. button_down.disabled = false;
  694. button_up.disabled = false;
  695. model.setValue("/root/temp/clamym",CalMonth(-3,getCurrentDate()));
  696. // model.setValue("/root/temp/clamym2",getCurrentDate());
  697. model.setValue("/root/temp/clamym2",CalMonth(0,getCurrentDate()));
  698. model.refresh();
  699. ]]>
  700. </script>
  701. <script type="javascript" ev:event="xforms-select">
  702. <![CDATA[
  703. ipt_clamym.disabled = true;
  704. ipt_clamym2.disabled = true;
  705. button_down.disabled = true;
  706. button_up.disabled = true;
  707. model.setValue("/root/temp/clamym","");
  708. model.setValue("/root/temp/clamym2","");
  709. model.refresh();
  710. ]]>
  711. </script>
  712. </select>
  713. <caption id="caption17" style="left:250px; top:64px; width:11px; height:18px; ">~</caption>
  714. <input id="ipt_clamym2" ref="/root/temp/clamym2" class="input_default" disabled="false" visibility="visible" inputtype="date" format="yyyy-mm" style="left:260px; top:61px; width:89px; height:19px; text-align:center; "/>
  715. <button id="button5" class="icon_down" disabled="false" style="left:350px; top:71px; width:10px; height:9px; ">
  716. <caption/>
  717. <script type="javascript" ev:event="onclick">
  718. <![CDATA[
  719. var clamym = ipt_clamym2.value;
  720. ipt_clamym2.value = CalMonth(-1, clamym);
  721. ]]>
  722. </script>
  723. </button>
  724. <button id="button6" class="icon_up" disabled="false" style="left:350px; top:61px; width:10px; height:9px; ">
  725. <caption/>
  726. <script type="javascript" ev:event="onclick">
  727. <![CDATA[
  728. var clamym = ipt_clamym2.value;
  729. ipt_clamym2.value = CalMonth(1, clamym);
  730. ]]>
  731. </script>
  732. </button>
  733. <caption id="caption18" class="search_name" style="left:610px; top:5px; width:95px; height:17px; ">보험유형 :</caption>
  734. <caption id="caption19" class="search_name" style="left:842px; top:32px; width:77px; height:17px; ">심사자 :</caption>
  735. </group>
  736. <switch id="swt_add" style="left:10px; top:135px; width:1150px; height:555px; border-color:#c7a3cf; border-style:solid; ">
  737. <case id="case_summary" selected="true" style="left:0px; top:0px; width:1148px; height:528px; ">
  738. <caption id="caption8" class="search_name" visibility="hidden" style="left:454px; top:80px; width:105px; height:17px; ">후보험유형 :</caption>
  739. <caption id="caption7" class="search_name" visibility="hidden" style="left:15px; top:80px; width:100px; height:17px; ">전보험유형 :</caption>
  740. <caption id="caption4" class="search_name" visibility="hidden" style="left:231px; top:80px; width:105px; height:17px; ">전보조유형 :</caption>
  741. <caption id="caption3" class="search_name" visibility="hidden" style="left:880px; top:80px; width:91px; height:17px; ">심사자 :</caption>
  742. <caption id="caption1" class="search_name" visibility="hidden" style="left:674px; top:80px; width:105px; height:17px; ">후보조유형 :</caption>
  743. <select1 id="cmb_aftsuppkind" ref="/root/temp/aftsuppkind" class="combo_search" visibility="hidden" appearance="minimal" style="left:775px; top:80px; width:99px; height:19px; ">
  744. <choices>
  745. <itemset nodeset="/root/init/aftsuppkindlist">
  746. <label ref="suppkindnm"/>
  747. <value ref="suppkindcd"/>
  748. </itemset>
  749. </choices>
  750. <script type="javascript" ev:event="xforms-value-changed">
  751. <![CDATA[
  752. var aftinsukind = model.getValue("/root/temp/aftinsukind");
  753. if (aftinsukind == null || aftinsukind == "" || aftinsukind == " " || aftinsukind == "-")
  754. {
  755. messageBox("후보험유형 선택을 먼저 하십시요!","E999","");
  756. model.setValue("/root/temp/aftsuppkind","");
  757. model.refresh();
  758. model.setFocus("cmb_aftinsukind");
  759. return;
  760. }
  761. ]]>
  762. </script>
  763. </select1>
  764. <select1 id="cmb_preinsukind" ref="/root/temp/preinsukind" class="combo_search" visibility="hidden" appearance="minimal" style="left:115px; top:80px; width:105px; height:19px; ">
  765. <choices>
  766. <itemset nodeset="/root/init/preinsukindlist">
  767. <label ref="insukindnm"/>
  768. <value ref="insukindcd"/>
  769. </itemset>
  770. </choices>
  771. <script type="javascript" ev:event="xforms-value-changed">
  772. <![CDATA[
  773. var varpreinsukind= cmb_preinsukind.value;
  774. cmb_presuppkind.choices.itemset.attribute("nodeset") = "/root/init/presuppkindlist[insukind = '"+varpreinsukind+"']";
  775. if (varpreinsukind == null || varpreinsukind == "" || varpreinsukind == " " || varpreinsukind == "-"){
  776. model.setValue("/root/temp/presuppkind","");
  777. }
  778. cmb_presuppkind.refresh();
  779. ]]>
  780. </script>
  781. </select1>
  782. <select1 id="cmb_presuppkind" ref="/root/temp/presuppkind" class="combo_search" visibility="hidden" appearance="minimal" style="left:339px; top:80px; width:105px; height:19px; ">
  783. <choices>
  784. <itemset nodeset="/root/init/presuppkindlist">
  785. <label ref="suppkindnm"/>
  786. <value ref="suppkindcd"/>
  787. </itemset>
  788. </choices>
  789. <script type="javascript" ev:event="xforms-value-changed">
  790. <![CDATA[
  791. var preinsukind = model.getValue("/root/temp/preinsukind");
  792. if (preinsukind == null || preinsukind == "" || preinsukind == " " || preinsukind == "-")
  793. {
  794. messageBox("전보험유형 선택을 먼저 하십시요!","E999","");
  795. model.setValue("/root/temp/presuppkind","");
  796. model.refresh();
  797. model.setFocus("cmb_preinsukind");
  798. return;
  799. }
  800. ]]>
  801. </script>
  802. </select1>
  803. <line id="line17" class="line_1" style="x1:0px; y1:25px; x2:1135px; y2:25px; "/>
  804. <button id="btn_cnclexcel" class="btn2_letter4" style="left:1065px; top:5px; width:64px; height:19px; ">
  805. <caption>엑셀저장</caption>
  806. <script type="javascript" ev:event="DOMActivate">
  807. <![CDATA[
  808. if (grd_summary.rows > 1) {
  809. var fileName = window.fileDialog("save", "", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  810. if (fileName != "") {
  811. grd_summary.saveExcel(fileName, "sheetname:;colhiddenextend:false;rowhiddenextend:false;", true, true, "", "", true);
  812. }
  813. } else {
  814. messageBox("엑셀저장할 대상자가", "I004"); ///엑셀저장할 대상자가 없습니다.
  815. }
  816. ]]>
  817. </script>
  818. </button>
  819. <datagrid id="grd_summary" nodeset="/root/main/list2/summary" caption="청구구분^청구연월^차수^청구분야^처방건수^명세서건수^급여총액^청구액^clammode_1^clamym_1^clamdg_1^reqfild_1" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshowmove" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:10px; top:35px; width:1130px; height:490px; ">
  820. <col ref="clammode" style="text-align:center; "/>
  821. <col ref="clamym" style="text-align:center; "/>
  822. <col ref="clamdg" style="text-align:center; "/>
  823. <col ref="reqfild" style="text-align:center; "/>
  824. <col ref="cnt" style="text-align:center; "/>
  825. <col ref="cnt2" style="text-align:center; "/>
  826. <col ref="payamt" format="#,###" style="text-align:right; "/>
  827. <col ref="payinsubamt" format="#,###" style="text-align:right; "/>
  828. <col ref="clammode_1" visibility="hidden"/>
  829. <col ref="clamym_1" visibility="hidden"/>
  830. <col ref="clamdg_1" visibility="hidden"/>
  831. <col ref="reqfild_1" visibility="hidden"/>
  832. <script type="javascript" ev:event="ondblclick">
  833. <![CDATA[
  834. var row = grd_summary.row;
  835. if( isDataCell() && row > 0 ){
  836. model.setValue("/root/send/fromdd",model.getValue("/root/temp/fromdd").removeMask('\n'));
  837. model.setValue("/root/send/todd",model.getValue("/root/temp/todd").removeMask('\n'));
  838. model.setValue("/root/send/pid",model.getValue("/root/temp/pid"));
  839. model.setValue("/root/send/aftacntyn",model.getValue("/root/temp/aftacntyn"));
  840. model.setValue("/root/send/preinsukind",model.getValue("/root/temp/preinsukind"));
  841. model.setValue("/root/send/presuppkind",model.getValue("/root/temp/presuppkind"));
  842. model.setValue("/root/send/aftinsukind",model.getValue("/root/temp/aftinsukind"));
  843. model.setValue("/root/send/aftsuppkind",model.getValue("/root/temp/aftsuppkind"));
  844. model.setValue("/root/send/orddeptcd",model.getValue("/root/temp/orddeptcd"));
  845. model.setValue("/root/send/orddrid",model.getValue("/root/temp/orddrid"));
  846. model.setValue("/root/send/histstat",model.getValue("/root/temp/histstat"));
  847. model.setValue("/root/send/clamym",model.getValue("/root/main/list2/summary[" + row + "]/clamym_1"));//
  848. model.setValue("/root/send/clamdg",model.getValue("/root/main/list2/summary[" + row + "]/clamdg_1"));//
  849. model.setValue("/root/send/reqfild",model.getValue("/root/main/list2/summary[" + row + "]/reqfild_1"));//
  850. model.setValue("/root/send/clammode",model.getValue("/root/main/list2/summary[" + row + "]/clammode_1")); //
  851. model.setValue("/root/send/judgrid",model.getValue("/root/temp/judgrid"));
  852. model.setValue("/root/send/acting",model.getValue("/root/temp/acting"));
  853. submit("TRPID23100");
  854. swt_add.selectedIndex = 1;
  855. btn_summary.selected = false;
  856. btn_pat.selected = true;
  857. btn_code.selected = false;
  858. button3.visible = true;
  859. button4.visible = true;
  860. btn_choi.disabled = false;
  861. btn_del.disabled = false;
  862. btn_srch.disabled = true;
  863. }
  864. ]]>
  865. </script>
  866. </datagrid>
  867. </case>
  868. <case id="case_code">
  869. <datagrid id="grd_addacntlist" nodeset="/root/main/list1/addacnt" class="datagrid2" visibility="visible" caption="시행일자^청구구분^청구연월^차수^청구분야^진료과^진료의^등록번호^환자명^주상병^처방코드^처방명^선택^진행상태^총진료비^청구액^1회&#xA;량^횟수^일투&#xA;량^일수^심사자^진료일자^보험유형^보조유형^전명세서&#xA;명일련^이전&#xA;보험^이전&#xA;보조^이전&#xA;급비^자료수집일자(생성일자)^심사일자^접수번호^cretno^수혜자^공여자^이식일자^수혜자&#xA;주민번호^구분" colsep="^" colwidth="75, 55, 57, 36, 55, 80, 55, 60, 50, 50, 70, 170, 35, 60, 70, 70, 35, 35, 35, 35, 50, 70, 55, 55, 60, 30, 30, 30, 76, 60, 55, 40, 60, 60, 70, 95, 60" explorerbar="sortshowmove" frozencols="10" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:30px; width:1145px; height:495px; vertical-align:middle; ">
  870. <col ref="execdd" format="yyyy-mm-dd" style="text-align:center; vertical-align:middle; "/>
  871. <col ref="clammode" style="text-align:center; vertical-align:middle; "/>
  872. <col ref="clamym" format="yyyy-mm" style="text-align:center; vertical-align:middle; "/>
  873. <col ref="clamdg" style="text-align:center; vertical-align:middle; "/>
  874. <col ref="reqfild" visibility="hidden" style="text-align:center; vertical-align:middle; "/>
  875. <col ref="orddeptcd" style="text-align:center; vertical-align:middle; "/>
  876. <col ref="orddrid" style="text-align:center; vertical-align:middle; "/>
  877. <col ref="pid" style="text-align:center; vertical-align:middle; "/>
  878. <col ref="hngnm" style="text-align:center; vertical-align:middle; "/>
  879. <col ref="diag" style="text-align:center; vertical-align:middle; "/>
  880. <col ref="snglcalcscorcd" style="text-align:center; vertical-align:middle; "/>
  881. <col ref="snglcalcscornm" style="text-align:left; "/>
  882. <col ref="chck" type="checkbox" style="text-align:center; vertical-align:middle; "/>
  883. <script type="javascript" ev:event="xforms-value-changed">
  884. <![CDATA[
  885. var cur_row = grd_addacntlist.row;
  886. if(model.getValue("/root/main/list1/addacnt[" + cur_row + "]/chck") == "true"){
  887. //if ( grd_addacntlist.valueMatrix(grd_addacntlist.row, grd_addacntlist.colRef("chck")) == "true" ) {
  888. //if ( grd_addacntlist.valueMatrix(grd_addacntlist.row, grd_addacntlist.colRef("histstat")) != "T" ) {
  889. if(model.getValue("/root/main/list1/addacnt[" + cur_row + "]/histstat") == "Y"){
  890. messageBox("수집완료상태입니다. 수집완료 상태에서는 선택할 수 없습니다.", "E999");
  891. //if ( grd_addacntlist.valueMatrix(grd_addacntlist.row, grd_addacntlist.colRef("histstat")) != "T" ) {
  892. model.setValue("/root/main/list1/addacnt[" + cur_row + "]/chck","false");
  893. return;
  894. }
  895. }
  896. model.refresh();
  897. ]]>
  898. </script>
  899. <col disabled="true" ref="histstat" type="combo" style="text-align:center; vertical-align:middle; ">
  900. <choices>
  901. <item>
  902. <label>전체</label>
  903. <value>A</value>
  904. </item>
  905. <item>
  906. <label>청구대상</label>
  907. <value>T</value>
  908. </item>
  909. <item>
  910. <label>수집대기</label>
  911. <value>N</value>
  912. </item>
  913. <item>
  914. <label>수집제외</label>
  915. <value>C</value>
  916. </item>
  917. <item>
  918. <label>수집완료</label>
  919. <value>Y</value>
  920. </item>
  921. </choices>
  922. </col>
  923. <col ref="totalfee" format="#,###" style="text-align:right; "/>
  924. <col ref="payinsubamt" format="#,###" style="text-align:right; "/>
  925. <col ref="calcqty" style="text-align:center; "/>
  926. <col ref="calctims" style="text-align:center; "/>
  927. <col ref="calc" style="text-align:center; "/>
  928. <col ref="calcdays" style="text-align:center; "/>
  929. <col ref="judgrid" style="text-align:center; vertical-align:middle; "/>
  930. <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
  931. <col ref="aftinsukind" style="text-align:center; "/>
  932. <col ref="aftsuppkind" style="text-align:center; "/>
  933. <col ref="docuseqno" style="text-align:center; "/>
  934. <col ref="preinsukind" style="text-align:center; "/>
  935. <col ref="presuppkind" style="text-align:center; "/>
  936. <col ref="preprcppayflag" style="text-align:center; "/>
  937. <col ref="clamdd" visibility="hidden" style="text-align:center; "/>
  938. <col ref="judgenddd" visibility="hidden" style="text-align:center; "/>
  939. <col ref="acptno" visibility="hidden" style="text-align:center; "/>
  940. <col ref="cretno" visibility="hidden"/>
  941. <col ref="rsvpid" style="text-align:center; "/>
  942. <col ref="givpid" style="text-align:center; "/>
  943. <col ref="trnptdd" format="yyyy-mm-dd" style="text-align:center; "/>
  944. <col ref="rsvrgstno" format="999999-9999999" style="text-align:center; "/>
  945. <col ref="rsvgbn" style="text-align:center; "/>
  946. <script type="javascript" ev:event="ondblclick">
  947. <![CDATA[
  948. /* var row = grd_addacntlist.row;
  949. if( isDataCell() && row > 0 ){
  950. model.setValue("/root/send/fromdd",model.getValue("/root/temp/fromdd").removeMask('\n'));
  951. model.setValue("/root/send/todd",model.getValue("/root/temp/todd").removeMask('\n'));
  952. model.setValue("/root/send/pid",model.getValue("/root/main/list1/addacnt[" + row + "]/pid"));
  953. model.setValue("/root/send/orddd",model.getValue("/root/main/list1/addacnt[" + row + "]/orddd"));
  954. model.setValue("/root/send/aftacntyn",model.getValue("/root/temp/aftacntyn"));
  955. model.setValue("/root/send/preinsukind",model.getValue("/root/temp/preinsukind"));
  956. model.setValue("/root/send/presuppkind",model.getValue("/root/temp/presuppkind"));
  957. model.setValue("/root/send/aftinsukind",model.getValue("/root/temp/aftinsukind"));
  958. model.setValue("/root/send/aftsuppkind",model.getValue("/root/temp/aftsuppkind"));
  959. model.setValue("/root/send/orddeptcd",model.getValue("/root/temp/orddeptcd"));
  960. model.setValue("/root/send/orddrid",model.getValue("/root/temp/orddrid"));
  961. model.setValue("/root/send/histstat",model.getValue("/root/temp/histstat"));
  962. model.setValue("/root/send/clamym",model.getValue("/root/temp/clamym"));
  963. model.setValue("/root/send/clamdg",model.getValue("/root/temp/clamdg"));
  964. model.setValue("/root/send/reqfild",model.getValue("/root/temp/reqfild"));
  965. model.setValue("/root/send/clammode",model.getValue("/root/temp/clammode"));
  966. model.setValue("/root/send/judgrid",model.getValue("/root/temp/judgrid"));
  967. submit("TRPID23107");
  968. swt_add.selectedIndex = 2;
  969. btn_summary.selected = false;
  970. btn_pat.selected = false;
  971. btn_code.selected = true;
  972. } */
  973. ]]>
  974. </script>
  975. <script type="javascript" ev:event="onmousedown">
  976. <![CDATA[
  977. if (event.button == 3) { //오른쪽버튼
  978. if (grd_addacntlist.isCell(event.target) && grd_addacntlist.mouseRow >= grd_addacntlist.fixedrows) {
  979. var rowstatus = grd_addacntlist.rowstatus(grd_addacntlist.mouseRow);
  980. window.setPopupMenu(true, "/root/hidden/popupmenu/addlist/item", "name", "func", false);
  981. } else {
  982. window.setPopupMenu(false);
  983. }
  984. }
  985. ]]>
  986. </script>
  987. </datagrid>
  988. <line id="line3" class="line_1" style="x1:0px; y1:25px; x2:1145px; y2:25px; "/>
  989. <button id="button1" class="btn2_letter4" style="left:1075px; top:5px; width:64px; height:19px; ">
  990. <caption>엑셀저장</caption>
  991. <script type="javascript" ev:event="DOMActivate">
  992. <![CDATA[
  993. if (grd_addacntlist.rows > 1) {
  994. var fileName = window.fileDialog("save", "", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  995. if (fileName != "") {
  996. grd_addacntlist.saveExcel(fileName, "sheetname:;colhiddenextend:false;rowhiddenextend:false;", true, true, "", "", true);
  997. }
  998. } else {
  999. messageBox("엑셀저장할 대상자가", "I004"); ///엑셀저장할 대상자가 없습니다.
  1000. }
  1001. ]]>
  1002. </script>
  1003. </button>
  1004. <button id="button3" class="btn2_letter4" style="left:1008px; top:5px; width:64px; height:19px; ">
  1005. <caption>전체해제</caption>
  1006. <script type="javascript" ev:event="DOMActivate">
  1007. <![CDATA[
  1008. for(var i=1; i < grd_addacntlist.rows; i++) {
  1009. model.setValue("/root/main/list1/addacnt[" + i + "]/chck","false");
  1010. grd_addacntlist.rowstatus(i) = 0;
  1011. }
  1012. ]]>
  1013. </script>
  1014. </button>
  1015. <button id="button4" class="btn2_letter4" style="left:941px; top:5px; width:64px; height:19px; ">
  1016. <caption>전체선택</caption>
  1017. <script type="javascript" ev:event="DOMActivate">
  1018. <![CDATA[
  1019. var row_cnt = 0;
  1020. for(var i=1; i < grd_addacntlist.rows; i++) {
  1021. if(model.getValue("/root/main/list1/addacnt[" + i + "]/histstat") == "T"){
  1022. model.setValue("/root/main/list1/addacnt[" + i + "]/chck","true");
  1023. }else{
  1024. model.setValue("/root/main/list1/addacnt[" + i + "]/chck","false");
  1025. }
  1026. row_cnt ++;
  1027. }
  1028. model.refresh();
  1029. ]]>
  1030. </script>
  1031. </button>
  1032. <caption id="caption15" style="left:5px; top:535px; width:356px; height:15px; ">[참고] 총금액 = 단가*수량*횟수*일수(행위의 경우 병원가산포함)</caption>
  1033. </case>
  1034. <case id="case_pat">
  1035. <line id="line4" class="line_1" style="x1:5px; y1:25px; x2:1140px; y2:25px; "/>
  1036. <button id="button2" class="btn2_letter4" style="left:1075px; top:5px; width:64px; height:19px; ">
  1037. <caption>엑셀저장</caption>
  1038. <script type="javascript" ev:event="DOMActivate">
  1039. <![CDATA[
  1040. if (grd_code.rows > 1) {
  1041. var fileName = window.fileDialog("save", "", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1042. if (fileName != "") {
  1043. grd_code.saveExcel(fileName, "sheetname:;colhiddenextend:false;rowhiddenextend:false;", true, true, "", "", true);
  1044. }
  1045. } else {
  1046. messageBox("엑셀저장할 대상자가", "I004"); ///엑셀저장할 대상자가 없습니다.
  1047. }
  1048. ]]>
  1049. </script>
  1050. </button>
  1051. <datagrid id="grd_code" nodeset="/root/main/list3/code" class="datagrid2" visibility="visible" caption="청구구분^청구연월^차수^청구분야^진료과^등록번호^환자명^주상병^진료의^심사자^실시일자^그룹코드^수가코드^한글명^단가^1회량^횟수^1일량^일수^금액^전급비^후급비" colsep="^" colwidth="60, 61, 43, 72, 67, 65, 58, 77, 53, 53, 69, 90, 90, 271, 80, 39, 39, 39, 39, 63, 63, 63" frozencols="7" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:30px; width:1135px; height:470px; ">
  1052. <col ref="clammode" style="text-align:center; "/>
  1053. <col ref="clamym" format="yyyy-mm" style="text-align:center; "/>
  1054. <col ref="clamdg" style="text-align:center; "/>
  1055. <col ref="reqfild" style="text-align:center; "/>
  1056. <col ref="orddeptcd" style="text-align:center; "/>
  1057. <col ref="pid" style="text-align:center; "/>
  1058. <col ref="hngnm" style="text-align:center; "/>
  1059. <col ref="diag" style="text-align:center; "/>
  1060. <col ref="drnm" style="text-align:center; "/>
  1061. <col ref="judgrid" style="text-align:center; "/>
  1062. <col ref="execdd" format="yyyy-mm-dd" style="text-align:center; "/>
  1063. <col ref="grupcalcscorcd" style="text-align:left; "/>
  1064. <col ref="snglcalcscorcd" style="text-align:left; "/>
  1065. <col ref="ordhngnm" style="text-align:left; "/>
  1066. <col ref="appunitcost" format="#,###" style="text-align:center; "/>
  1067. <col ref="calcqty" style="text-align:center; "/>
  1068. <col ref="calctims" style="text-align:center; "/>
  1069. <col ref="calc" style="text-align:center; "/>
  1070. <col ref="calcdays" style="text-align:center; "/>
  1071. <col ref="codeamt" format="#,###" style="text-align:center; "/>
  1072. <col ref="preprcppayflag" style="text-align:center; "/>
  1073. <col ref="aftprcppayflag" style="text-align:center; "/>
  1074. </datagrid>
  1075. </case>
  1076. </switch>
  1077. <button id="btn_summary" class="btn_sw" group="tab" selected="true" style="left:11px; top:115px; width:64px; height:22px; ">
  1078. <caption>요약</caption>
  1079. <toggle case="case_outrgst" ev:event="onclick"/>
  1080. <script type="javascript" ev:event="DOMActivate">
  1081. <![CDATA[
  1082. swt_add.selectedIndex = 0;
  1083. btn_summary.selected = true;
  1084. btn_pat.selected = false;
  1085. btn_code.selected = false;
  1086. // btn_srch.dispatch("onclick");
  1087. button3.visible = false;
  1088. button4.visible = false;
  1089. btn_choi.disabled = true;
  1090. btn_del.disabled = true;
  1091. btn_srch.disabled = false;
  1092. ]]>
  1093. </script>
  1094. </button>
  1095. <button id="btn_pat" class="btn_sw" group="tab" selected="false" style="left:78px; top:115px; width:65px; height:22px; ">
  1096. <caption>명단</caption>
  1097. <toggle case="case_outupdt" ev:event="onclick"/>
  1098. <script type="javascript" ev:event="DOMActivate">
  1099. <![CDATA[
  1100. swt_add.selectedIndex = 1;
  1101. btn_summary.selected = false;
  1102. btn_pat.selected = true;
  1103. btn_code.selected = false;
  1104. //btn_srch.dispatch("onclick");
  1105. button3.visible = true;
  1106. button4.visible = true;
  1107. btn_choi.disabled = false;
  1108. btn_del.disabled = false;
  1109. btn_srch.disabled = false;
  1110. ]]>
  1111. </script>
  1112. </button>
  1113. <button id="btn_code" class="btn_sw" visibility="hidden" group="tab" selected="false" style="left:145px; top:115px; width:65px; height:22px; ">
  1114. <caption>코드</caption>
  1115. <toggle case="case_outcncl" ev:event="onclick"/>
  1116. <script type="javascript" ev:event="DOMActivate">
  1117. <![CDATA[
  1118. swt_add.selectedIndex = 2;
  1119. btn_summary.selected = false;
  1120. btn_pat.selected = false;
  1121. btn_code.selected = true;
  1122. btn_srch.dispatch("onclick");
  1123. button3.visible = false;
  1124. button4.visible = false;
  1125. ]]>
  1126. </script>
  1127. </button>
  1128. </group>
  1129. <group id="group1" scroll="auto" style="left:10px; top:705px; width:1150px; height:35px; ">
  1130. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1099px; y2:0px; "/>
  1131. <button id="btn_close" class="btn4_letter2" style="left:1085px; top:5px; width:56px; height:22px; ">
  1132. <caption>닫기</caption>
  1133. <script type="javascript" ev:event="DOMActivate">
  1134. <![CDATA[
  1135. window.close(); // F5 실행시 IE를 종료시킨다.
  1136. ]]>
  1137. </script>
  1138. </button>
  1139. <button id="btn_choi" accesskey="f9" class="btn4_letter7" style="left:764px; top:5px; width:104px; height:22px; ">
  1140. <caption>자료수집 대기</caption>
  1141. <script type="javascript" ev:event="DOMActivate">
  1142. <![CDATA[
  1143. var row_cnt = 0;
  1144. for(var i=1; i < grd_addacntlist.rows; i++) {
  1145. if (model.getValue("/root/main/list1/addacnt[" + i + "]/chck") == "true"){
  1146. model.makeValue("/root/send/updatedata/pid",model.getValue("/root/main/list1/addacnt[" + i + "]/pid"));
  1147. model.makeValue("/root/send/updatedata/orddd",model.getValue("/root/main/list1/addacnt[" + i + "]/orddd"));
  1148. model.makeValue("/root/send/updatedata/cretno",model.getValue("/root/main/list1/addacnt[" + i + "]/cretno"));
  1149. fSave("N");
  1150. }
  1151. row_cnt ++;
  1152. }
  1153. btn_srch.dispatch("onclick");
  1154. model.refresh();
  1155. ]]>
  1156. </script>
  1157. </button>
  1158. <button id="btn_del" accesskey="f9" class="btn4_letter7" style="left:880px; top:5px; width:116px; height:22px; ">
  1159. <caption>자료수집 제외</caption>
  1160. <script type="javascript" ev:event="DOMActivate">
  1161. <![CDATA[
  1162. var row_cnt = 0;
  1163. for(var i=1; i < grd_addacntlist.rows; i++) {
  1164. if (model.getValue("/root/main/list1/addacnt[" + i + "]/chck") == "true"){
  1165. model.makeValue("/root/send/updatedata/pid",model.getValue("/root/main/list1/addacnt[" + i + "]/pid"));
  1166. model.makeValue("/root/send/updatedata/orddd",model.getValue("/root/main/list1/addacnt[" + i + "]/orddd"));
  1167. model.makeValue("/root/send/updatedata/cretno",model.getValue("/root/main/list1/addacnt[" + i + "]/cretno"));
  1168. fSave("C");
  1169. }
  1170. row_cnt ++;
  1171. }
  1172. btn_srch.dispatch("onclick");
  1173. model.refresh();
  1174. ]]>
  1175. </script>
  1176. </button>
  1177. <button id="btn_collect" accesskey="f9" class="btn4_letter9" style="left:15px; top:5px; width:116px; height:22px; ">
  1178. <caption>추가청구 대상 수집</caption>
  1179. <script type="javascript" ev:event="DOMActivate">
  1180. <![CDATA[
  1181. var fromdd = model.getValue("/root/temp/fromdd");
  1182. var todd = model.getValue("/root/temp/todd");
  1183. var chk_diff = getDateInterval(fromdd, todd, "dd");
  1184. if ( chk_diff > "31" )
  1185. {
  1186. alert("한 달 이내만 수집 가능합니다!! 조회 기간을 다시 설정하세요!!!");
  1187. model.setFocus("ipt_fromdd");
  1188. }
  1189. else
  1190. {
  1191. submit("TXPID23101");
  1192. }
  1193. ]]>
  1194. </script>
  1195. </button>
  1196. </group>
  1197. </xhtml:body>
  1198. </xhtml:html>