SMPIE00500_EDI청구SAM파일생성관리.xrw 72 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. [개발이력]
  4. 2007.07.02 / 최초작성 / 이종찬
  5. [개발사상]
  6. 본 업무 화면은 2007.06.25일에 배정되었다.
  7. 재배정되기 전까지 총 24일의 개발 기간이 지정되어 있었으나 2007.06.30 까지가 완료예정일이기 때문에 07월 중순까지 완료 할 예정이다.
  8. SAM파일 작성법은 심평원 고시를 참조토록 한다.
  9. 컴포넌트는 요양급여와 의료급여로 나누어져 있는데 개발담당자 재배정 직전 시점에 공정상 분리한 것이었다.(요양급여와 의료급여를 병행 개발하기 위함)
  10. [할 일]
  11. (-) EDI청구 SAM파일생성 화면 정의가 필요함(2007.07.05 인수위원회 리뷰)
  12. (-) SAM파일 생성 후 clam.edistatcd를 업데이트한다.
  13. (방법: 잠금버튼을 누르면 'SAM' 또는 '송신' 상태로 만들고 잠금해제 버튼을 누르면 이전 상태로 되돌린다. 반드시 이전 상태는 '심사'이고 잠금상태는 'SAM' 또는 '송신'으로 약속한다.)
  14. EDI상태코드 1:심사, 2:SAM, 3:송신, 4:반송, 5:접수, 6:심결
  15. (-) 그리드 표시 항목을 행별로 선택 가능하도록 할 것인지 결정해야 함
  16. (-) 이전자료 삭제를 가능하도록 할 것인지 고객과 협의 해야 함
  17. (-) 에러 메시지 정제해야 함
  18. (-) 필수입력사항에 대한 예외처리 해 주어야 함
  19. (-) 컨트롤 배치 점검
  20. [2007.08.09]
  21. (+) SAM파일생성 UI 관련 회의 진행(인수위원 윤영옥 선생님)
  22. [2007.08.13]
  23. (+) 청구생성일 / 청구일자: 청구생성일은 개인별 자료수집 마스터 테이블이 가지고 있다. 여러 일자의 자료가 수집되어 있는 상태에서 SAM을 만들기 위해 청구서를 생성하는 시점에야 비로소 청구일자가 생성된다.
  24. (+) 명세서일련번호 생성: 명세서일련번호는 청구서 집계에 포하되는 개인별 내역에 매겨지는 일련번호이다.(보험유형,심평원진료분야,유형보조가 '공상'이면 맨뒤로,보내기,청구진료과,진료과,환자번호,진료개시일 순으로 생성한다.)
  25. (+) 청구서생성: 내원유형(입/외),보험유형(보험/급여),청구구분(원청구,보완청구,추가청구),청구일자(시스템시간),작업일자(From,To),진료분야(리스트 선택하고 기본은 전체선택)
  26. (기본정보: 요양기관기호,담당자성명,대표자명,담당자주민번호)
  27. 청구서생성버튼 클릭시 청구번호가 생성되고 반드시 SAM생성시 개인별 자료수집 마스터에 청구번호와 명세서일련번호가 업데이트되어야 함
  28. [2007.08.16 최종 확정안]
  29. (+) 조회조건은 바로 청구성생성 조건으로 가져오기
  30. (+) 샘생성은 체크한 리스트를 넘기기
  31. (+) 청구서생성 조건 입력 PopUp 화면에 진료분야를 반드시 리스트로 변경하기
  32. (+) 청구번호...
  33. [2007.08.17]
  34. (+) commonweb에 존재하는 공통스크립트를 가져와 로그 결과 보기 공통화면 호출시 발생 에러 해결
  35. [2007.08.22]
  36. 조회 조건, '청구생성일'에서 '청구일자'로 변경
  37. [테스트]
  38. 필수입력: (현재 없음)
  39. 조작: 저장버튼을 누른다.
  40. -->
  41. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  42. <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">
  43. <xhtml:head>
  44. <xhtml:title>EDI청구 SAM파일생성</xhtml:title>
  45. <model id="model1">
  46. <instance id="instance1">
  47. <root xmlns="">
  48. <main>
  49. <list01>
  50. <gridsaminfo>
  51. <chkbox/>
  52. </gridsaminfo>
  53. </list01>
  54. <!-- ########## 수정추가 7 : JHP 2008.07.22 산재 청구서 그리드 인스턴스 ########## -->
  55. <list02>
  56. <gridsaminfoinducs/>
  57. </list02>
  58. <!-- ########## 수정추가 7 : 끝 ################################################# -->
  59. <rCSV/>
  60. <list02>
  61. <return>
  62. <differyn/>
  63. </return>
  64. </list02>
  65. <list03>
  66. <return>
  67. <judgyn/>
  68. </return>
  69. </list03>
  70. <tCSV/>
  71. </main>
  72. <send>
  73. <tmp>
  74. <list>
  75. <chkbox/>
  76. </list>
  77. </tmp>
  78. <insurkindflag/>
  79. <ioflag/>
  80. <clamfromdd/>
  81. <clamtodd/>
  82. <numflag/>
  83. <srchnum/>
  84. <clamflag/>
  85. <ordfildcd/>
  86. <termflag/>
  87. <insurkindAll/>
  88. <insurkind1/>
  89. <insurkind2/>
  90. <insurkind3/>
  91. <insurkind4/>
  92. <clamdg/>
  93. <send_clamdg>
  94. <fromdd/>
  95. <ioflag/>
  96. <insukind/>
  97. <clamflag/>
  98. <ordfildcd/>
  99. <todd/>
  100. <dateflag/>
  101. </send_clamdg>
  102. <suppamtyn/>
  103. <clamexistsyn/>
  104. <acptnoexistsyn/>
  105. <clamcntdfyn/>
  106. <send_rem>
  107. <rem/>
  108. <clamym/>
  109. <clamdg/>
  110. <workflag/>
  111. <seqno/>
  112. </send_rem>
  113. </send>
  114. <init>
  115. <P0426list>
  116. <P0426>
  117. <cdid/>
  118. <cdnm/>
  119. </P0426>
  120. </P0426list>
  121. <P0103list>
  122. <P0103>
  123. <cdid/>
  124. <cdnm/>
  125. </P0103>
  126. </P0103list>
  127. <P0028list>
  128. <P0028>
  129. <cdid/>
  130. <cdnm/>
  131. </P0028>
  132. </P0028list>
  133. <!-- ########## 수정추가12:JHP 2008.07.25 ########## -->
  134. <P0458list>
  135. <P0458>
  136. <cdid/>
  137. <cdnm/>
  138. </P0458>
  139. </P0458list>
  140. <P0458kindcdlist>
  141. </P0458kindcdlist>
  142. <!-- ######### 수정추가12 : 끝 ########### -->
  143. <clamdglist>
  144. <clamdg>
  145. <cdid/>
  146. <cdnm/>
  147. </clamdg>
  148. </clamdglist>
  149. <PAM>
  150. <PK032list/>
  151. </PAM>
  152. </init>
  153. <hidden/>
  154. <sendclam>
  155. <ioflag/>
  156. <clamflag/>
  157. <insurkindflag/>
  158. <ordfildcd/>
  159. <clamfromdd/>
  160. <clamtodd/>
  161. <clamcretdd/>
  162. <clamym/>
  163. <clamdg/>
  164. <sumtypecd/>
  165. <clamtypecd/>
  166. <flag/>
  167. <insucmno/>
  168. </sendclam>
  169. </root>
  170. </instance>
  171. <script type="javascript" ev:event="xforms-ready">
  172. <![CDATA[
  173. // 그리드 헤더에 체크박스를 생성한다.
  174. grd_saminfo.fixedcellcheckbox(0,1) = true;
  175. chk_insukindAll.select(0);
  176. rdo_termflag.select(0);
  177. rdo_ioflag.select(0);
  178. rdo_numflag.select(0);
  179. model.setValue("/root/send/clamfromdd",getCurrentDate().substr(0,6));
  180. model.setValue("/root/send/clamtodd",getCurrentDate().substr(0,6));
  181. // 청구차수가져오기
  182. model.setValue("/root/send/send_clamdg/dateflag", "1");
  183. model.setValue("/root/send/send_clamdg/fromdd",getCurrentDate().substr(0,6));
  184. model.setValue("/root/send/send_clamdg/todd",getCurrentDate().substr(0,6));
  185. submit("TRPIE00509");
  186. addComboItem("cmb_clamdg","전체","","above");
  187. ipt_fromcretdd.attribute("maxlength") = 6;
  188. ipt_tocretdd.attribute("maxlength") = 6;
  189. ipt_fromcretdd.attribute("format") = "yyyy-mm";
  190. ipt_tocretdd.attribute("format") = "yyyy-mm";
  191. // 공통코드를 로드한다.
  192. CommCode_Load();
  193. // 화면 실행 시 그리드 행이 하나도 안보이도록 한다.
  194. model.refresh();
  195. ]]>
  196. </script>
  197. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  198. <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post"/>
  199. <!-- ########## 수정추가 12 : JHP 2008.070.25 유형코드 불러오려면 ... 필요 ########## -->
  200. <submission id="TRZBC00104" mediatype="application/x-www-form-urlencoded" method="post"/>
  201. <submission id="TRZBC00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  202. <!-- ########## 수정추가 12 : JHP 끝 ############################################ -->
  203. <submission id="TRPIE00500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list01"/>
  204. <!-- ########## 수정추가 5 : JHP 2008.07.22 원본에 최대한 변경을 가하지 않기위해 보험유형 산재선택시 submit따로 날림 ########## -->
  205. <submission id="TRPIE00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list02"/>
  206. <!-- ########## 수정추가 5 : 끝 ############################################################################################ -->
  207. <submission id="TRPIE00507" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/tmp" resultref="/root/main/list02"/>
  208. <submission id="TXPIE00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/tmp"/>
  209. <submission id="TXPIE00502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/tmp"/>
  210. <submission id="TXPIE00503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/tmp"/>
  211. <submission id="TXPIE00504" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/tmp"/>
  212. <submission id="TXPIE00505" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/tmp"/>
  213. <submission id="TXPIE00506" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/tmp"/>
  214. <submission id="TRPIE00508" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/tmp" resultref="/root/main/list03"/>
  215. <submission id="TXPIE00520" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/sendclam"/>
  216. <submission id="TRPIE00521" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/main/list01"/>
  217. <submission id="TRPIE00509" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send_clamdg" resultref="/root/init/clamdglist/clamdg"/>
  218. <submission id="TXPIE00507" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/tmp"/>
  219. <submission id="TXPIE00521" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send_rem" resultref="/root/tmp/tmp"/>
  220. <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  221. </model>
  222. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  223. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  224. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  225. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  226. <script type="javascript" src="../../../com/batchinfoweb/js/ZSB001.js"/>
  227. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
  228. <script type="javascript">
  229. <![CDATA[
  230. // 공통코드 Load작업
  231. function CommCode_Load() {
  232. // 관련 Control 초기화
  233. zbcfGetCodeList( new Array("P0426"
  234. ,"P0103"
  235. ,"P0028"
  236. ,"P0458"
  237. ),
  238. new Array("/root/init/P0426list"
  239. ,"/root/init/P0103list"
  240. ,"/root/init/P0028list"
  241. ,"/root/init/P0458list"
  242. ) , false);
  243. // ########## 수정추가13 : 끝 ##########
  244. pamfGetCodeList(new Array(
  245. "PK032"
  246. ),
  247. new Array("/root/init/PAM/PK032list"
  248. ));
  249. model.refresh();
  250. }
  251. function fDateChk(){
  252. var dateflag;
  253. var fromdd = model.getValue("/root/send/clamfromdd");
  254. var todd = model.getValue("/root/send/clamtodd");
  255. var ioflag = model.getValue("/root/send/ioflag");
  256. var insukind = model.getValue("/root/send/insukindcd");
  257. var clamflag = model.getValue("/root/send/clamflag");
  258. var ordfildcd = model.getValue("/root/send/ordfildcd");
  259. if(fromdd == ""){
  260. messageBox("기간의 시작일자를","C001");
  261. model.setFocus("ipt_fromdd");
  262. return;
  263. }else{
  264. model.setValue("/root/send/send_clamdg/fromdd",fromdd);
  265. model.setValue("/root/send/send_clamdg/todd",todd);
  266. if(ioflag == '1'){
  267. model.setValue("/root/send/send_clamdg/ioflag", "");
  268. }else if(ioflag == '2'){
  269. model.setValue("/root/send/send_clamdg/ioflag", "I");
  270. }else if(ioflag == '3'){
  271. model.setValue("/root/send/send_clamdg/ioflag", "O");
  272. }else{
  273. messageBox("내원유형이 선택되지 않았습니다!.", "E999", "");
  274. }
  275. if(insukind == '21'){
  276. model.setValue("/root/send/send_clamdg/insukind", "21','22");
  277. }else{
  278. model.setValue("/root/send/send_clamdg/insukind", insukind);
  279. }
  280. model.setValue("/root/send/send_clamdg/clamflag",clamflag);
  281. model.setValue("/root/send/send_clamdg/ordfildcd",ordfildcd);
  282. model.setValue("/root/send/send_clamdg/dateflag", "1");
  283. // 청구차수가져오기
  284. submit("TRPIE00509");
  285. if( getNodesetCount("/root/init/clamdglist/clamdg") < 1 ){
  286. messageBox("청구된 차수가 없습니다. 미수년월을 확인 해 주세요!.", "E999", "");
  287. }
  288. // addComboItem("cmb_clamdg","전체","","above");
  289. }
  290. addComboItem("cmb_clamdg","전체","","above");
  291. }
  292. ]]>
  293. </script>
  294. </xhtml:head>
  295. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  296. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  297. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">EDI청구SAM파일생성</caption>
  298. </group>
  299. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  300. <group id="group2" style="left:0px; top:10px; width:1194px; height:75px; vertical-align:top; ">
  301. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:75px; background-color:#fffbf2; border-color:#ffd799; "/>
  302. <button id="button1" class="btn1_letter2" navindex="6" style="left:1124px; top:26px; width:56px; height:22px; ">
  303. <caption>조회</caption>
  304. <script type="javascript" ev:event="DOMActivate">
  305. <![CDATA[
  306. model.removeNodeset("/root/main/list01/gridsaminfo");
  307. model.refresh();
  308. submit("TRPIE00500");
  309. grd_saminfo.colStyle(grd_saminfo.colRef("clamdocdd"),"data","background-color") = "#ffffcc";
  310. grd_saminfo.colStyle(grd_saminfo.colRef("clamno"),"data","background-color") = "#ffff99";
  311. grd_saminfo.colStyle(grd_saminfo.colRef("clbscnt"),"data","background-color") = "#ffff88";
  312. grd_saminfo.colStyle(grd_saminfo.colRef("clamcnt"),"data","background-color") = "#ffff77";
  313. grd_saminfo.colStyle(grd_saminfo.colRef("medcaretotamt"),"data","background-color") = "#ffff66";
  314. grd_saminfo.colStyle(grd_saminfo.colRef("ownbamt"),"data","background-color") = "#ffff55";
  315. grd_saminfo.colStyle(grd_saminfo.colRef("insuclamamt"),"data","background-color") = "#ffff44";
  316. grd_saminfo.colStyle(grd_saminfo.colRef("ownbmaxexamt"),"data","background-color") = "#ffff33";
  317. grd_saminfo.colStyle(grd_saminfo.colRef("blwtotownamt"),"data","background-color") = "#ffff33";
  318. grd_saminfo.colStyle(grd_saminfo.colRef("blwownbamt"),"data","background-color") = "#ffff33";
  319. grd_saminfo.colStyle(grd_saminfo.colRef("blwinsuclamamt"),"data","background-color") = "#ffff33";
  320. grd_saminfo.colStyle(grd_saminfo.colRef("suppamt"),"data","background-color") = "#ffccff";
  321. grd_saminfo.colStyle(grd_saminfo.colRef("ksuppamt"),"data","background-color") = "#ffccff";
  322. grd_saminfo.colStyle(grd_saminfo.colRef("hsuppamt"),"data","background-color") = "#ffccff";
  323. grd_saminfo.colStyle(grd_saminfo.colRef("gsuppamt"),"data","background-color") = "#ffccff";
  324. grd_saminfo.colStyle(grd_saminfo.colRef("handcaprfund"),"data","background-color") = "#ffccee";
  325. grd_saminfo.colStyle(grd_saminfo.colRef("totlimitdiffamt"),"data","background-color") = "#ffccdd";
  326. grd_saminfo.colStyle(grd_saminfo.colRef("subtamt"),"data","background-color") = "#ffcccc";
  327. grd_saminfo.colStyle(grd_saminfo.colRef("ksuppamt"),"data","background-color") = "#ffcccc";
  328. grd_saminfo.colStyle(grd_saminfo.colRef("gsuppamt"),"data","background-color") = "#ffcccc";
  329. grd_saminfo.colStyle(grd_saminfo.colRef("hsuppamt"),"data","background-color") = "#ffcccc";
  330. grd_saminfo.colStyle(grd_saminfo.colRef("clamstatcnt"),"data","background-color") = "#ffccbb";
  331. // submit("TRPIE00500");
  332. // grd_saminfo.colStyle(11,"data","background-color") = "#ffffcc";
  333. // grd_saminfo.colStyle(12,"data","background-color") = "#ffff99";
  334. // grd_saminfo.colStyle(13,"data","background-color") = "#ffff88";
  335. // grd_saminfo.colStyle(14,"data","background-color") = "#ffff77";
  336. // grd_saminfo.colStyle(15,"data","background-color") = "#ffff66";
  337. // grd_saminfo.colStyle(16,"data","background-color") = "#ffff55";
  338. // grd_saminfo.colStyle(17,"data","background-color") = "#ffff44";
  339. //
  340. // grd_saminfo.colStyle(18,"data","background-color") = "#ffccff";
  341. // grd_saminfo.colStyle(19,"data","background-color") = "#ffccee";
  342. // grd_saminfo.colStyle(20,"data","background-color") = "#ffccdd";
  343. // grd_saminfo.colStyle(21,"data","background-color") = "#ffcccc";
  344. // grd_saminfo.colStyle(22,"data","background-color") = "#ffccbb";
  345. grd_saminfo.subtotal("sum", -1, grd_saminfo.colRef("clbscnt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", 10, "합계 : ", true);
  346. grd_saminfo.subtotal("sum", -1, grd_saminfo.colRef("clamcnt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", 10, "합계 : ", true);
  347. grd_saminfo.subtotal("sum", -1, grd_saminfo.colRef("medcaretotamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", 10, "합계 : ", true);
  348. grd_saminfo.subtotal("sum", -1, grd_saminfo.colRef("ownbamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", 10, "합계 : ", true);
  349. grd_saminfo.subtotal("sum", -1, grd_saminfo.colRef("insuclamamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", 10, "합계 : ", true);
  350. grd_saminfo.subtotal("sum", -1, grd_saminfo.colRef("blwtotownamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", 10, "합계 : ", true);
  351. grd_saminfo.subtotal("sum", -1, grd_saminfo.colRef("blwownbamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", 10, "합계 : ", true);
  352. grd_saminfo.subtotal("sum", -1, grd_saminfo.colRef("blwinsuclamamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", 10, "합계 : ", true);
  353. grd_saminfo.subtotal("sum", -1, grd_saminfo.colRef("ownbmaxexamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", 10, "합계 : ", true);
  354. grd_saminfo.subtotal("sum", -1, grd_saminfo.colRef("suppamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", 10, "합계 : ", true);
  355. grd_saminfo.subtotal("sum", -1, grd_saminfo.colRef("handcaprfund"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", 10, "합계 : ", true);
  356. grd_saminfo.subtotal("sum", -1, grd_saminfo.colRef("totlimitdiffamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", 10, "합계 : ", true);
  357. grd_saminfo.subtotal("sum", -1, grd_saminfo.colRef("subtamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", 10, "합계 : ", true);
  358. grd_saminfo.subtotal("sum", -1, grd_saminfo.colRef("ksuppamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", 10, "합계 : ", true);
  359. grd_saminfo.subtotal("sum", -1, grd_saminfo.colRef("gsuppamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", 10, "합계 : ", true);
  360. grd_saminfo.subtotal("sum", -1, grd_saminfo.colRef("hsuppamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", 10, "합계 : ", true);
  361. grd_saminfo.subtotal("sum", grd_saminfo.colRef("totaltype"), grd_saminfo.colRef("clbscnt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#cefcfa; font-weight:bold; ", 10, "소계 : ", false);
  362. grd_saminfo.subtotal("sum", grd_saminfo.colRef("totaltype"), grd_saminfo.colRef("clamcnt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#cefcfa; font-weight:bold; ", 10, "소계 : ", false);
  363. grd_saminfo.subtotal("sum", grd_saminfo.colRef("totaltype"), grd_saminfo.colRef("medcaretotamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#cefcfa; font-weight:bold; ", 10, "소계 : ", false);
  364. grd_saminfo.subtotal("sum", grd_saminfo.colRef("totaltype"), grd_saminfo.colRef("ownbamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#cefcfa; font-weight:bold; ", 10, "소계 : ", false);
  365. grd_saminfo.subtotal("sum", grd_saminfo.colRef("totaltype"), grd_saminfo.colRef("insuclamamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#cefcfa; font-weight:bold; ", 10, "소계 : ", false);
  366. grd_saminfo.subtotal("sum", grd_saminfo.colRef("totaltype"), grd_saminfo.colRef("blwtotownamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#cefcfa; font-weight:bold; ", 10, "소계 : ", false);
  367. grd_saminfo.subtotal("sum", grd_saminfo.colRef("totaltype"), grd_saminfo.colRef("blwownbamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#cefcfa; font-weight:bold; ", 10, "소계 : ", false);
  368. grd_saminfo.subtotal("sum", grd_saminfo.colRef("totaltype"), grd_saminfo.colRef("blwinsuclamamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#cefcfa; font-weight:bold; ", 10, "소계 : ", false);
  369. grd_saminfo.subtotal("sum", grd_saminfo.colRef("totaltype"), grd_saminfo.colRef("ownbmaxexamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#cefcfa; font-weight:bold; ", 10, "소계 : ", false);
  370. grd_saminfo.subtotal("sum", grd_saminfo.colRef("totaltype"), grd_saminfo.colRef("suppamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#cefcfa; font-weight:bold; ", 10, "소계 : ", false);
  371. grd_saminfo.subtotal("sum", grd_saminfo.colRef("totaltype"), grd_saminfo.colRef("handcaprfund"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#cefcfa; font-weight:bold; ", 10, "소계 : ", false);
  372. grd_saminfo.subtotal("sum", grd_saminfo.colRef("totaltype"), grd_saminfo.colRef("totlimitdiffamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#cefcfa; font-weight:bold; ", 10, "소계 : ", false);
  373. grd_saminfo.subtotal("sum", grd_saminfo.colRef("totaltype"), grd_saminfo.colRef("subtamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#cefcfa; font-weight:bold; ", 10, "소계 : ", false);
  374. grd_saminfo.subtotal("sum", grd_saminfo.colRef("totaltype"), grd_saminfo.colRef("ksuppamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#cefcfa; font-weight:bold; ", 10, "소계 : ", false);
  375. grd_saminfo.subtotal("sum", grd_saminfo.colRef("totaltype"), grd_saminfo.colRef("gsuppamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#cefcfa; font-weight:bold; ", 10, "소계 : ", false);
  376. grd_saminfo.subtotal("sum", grd_saminfo.colRef("totaltype"), grd_saminfo.colRef("hsuppamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#cefcfa; font-weight:bold; ", 10, "소계 : ", false);
  377. ]]>
  378. </script>
  379. </button>
  380. <line id="line13" class="line_4" style="x1:1108px; y1:12px; x2:1108px; y2:65px; border-color:#ffe4bb; border-left-style:solid; "/>
  381. <select1 id="rdo_numflag" ref="/root/send/numflag" class="radio_search" appearance="full" cols="2" rows="2" overflow="visible" style="left:99px; top:30px; width:136px; height:18px; border-style:none; ">
  382. <choices>
  383. <item>
  384. <label>청구번호</label>
  385. <value>1</value>
  386. </item>
  387. <item>
  388. <label>접수번호</label>
  389. <value>2</value>
  390. </item>
  391. </choices>
  392. <script type="javascript" ev:event="xforms-value-changed">
  393. <![CDATA[
  394. var numflag = model.getValue("/root/send/numflag");
  395. var clamfromdd = model.getValue("/root/send/clamfromdd");
  396. var clamtodd = model.getValue("/root/send/clamtodd");
  397. if(numflag == "2"){
  398. model.setValue("/root/send/clamfromdd", "");
  399. model.setValue("/root/send/clamtodd", "");
  400. }else{
  401. model.setValue("/root/send/clamfromdd",getCurrentDate().substr(0,6));
  402. model.setValue("/root/send/clamtodd",getCurrentDate().substr(0,6));
  403. }
  404. model.refresh();
  405. ]]>
  406. </script>
  407. </select1>
  408. <input id="ipt_srchnum" ref="/root/send/srchnum" class="input_search" navindex="3" style="left:240px; top:30px; width:100px; height:19px; ">
  409. <script type="javascript" ev:event="onkeyup">
  410. <![CDATA[
  411. // 아무 동작을 필요로 하지 않는다.
  412. //inputEnterKey("button3", "DOMActivate");
  413. ]]>
  414. </script>
  415. </input>
  416. <caption id="caption10" class="search_name" style="left:350px; top:7px; width:86px; height:17px; ">내원유형 :</caption>
  417. <select1 id="rdo_ioflag" ref="/root/send/ioflag" class="radio_search" appearance="full" cols="3" rows="1" overflow="visible" style="left:439px; top:8px; width:141px; height:16px; border-style:none; ">
  418. <choices>
  419. <item>
  420. <label>전체</label>
  421. <value>1</value>
  422. </item>
  423. <item>
  424. <label>입원</label>
  425. <value>2</value>
  426. </item>
  427. <item>
  428. <label>외래</label>
  429. <value>3</value>
  430. </item>
  431. </choices>
  432. </select1>
  433. <caption id="caption19" class="search_name" style="left:10px; top:7px; width:86px; height:17px; ">보험유형 :</caption>
  434. <caption id="caption7" style="left:954px; top:8px; width:15px; height:15px; ">~</caption>
  435. <caption id="caption2" class="search_name" style="left:350px; top:30px; width:90px; height:17px; ">청구구분 :</caption>
  436. <caption id="caption3" class="search_name" style="left:350px; top:53px; width:90px; height:17px; ">청구분야 :</caption>
  437. <input id="ipt_fromcretdd" ref="/root/send/clamfromdd" class="input_search" navindex="1" inputtype="date" format="yyyy-mm-dd" style="left:820px; top:5px; width:130px; height:19px; ">
  438. <script type="javascript" ev:event="onkeyup">
  439. <![CDATA[
  440. inputEnterKey("btn_enter1", "DOMActivate");
  441. ]]>
  442. </script>
  443. </input>
  444. <input id="ipt_tocretdd" ref="/root/send/clamtodd" class="input_search" navindex="2" inputtype="date" format="yyyy-mm-dd" style="left:968px; top:5px; width:130px; height:19px; ">
  445. <script type="javascript" ev:event="xforms-value-changed">
  446. <![CDATA[
  447. fDateChk();
  448. ]]>
  449. </script>
  450. </input>
  451. <select1 id="cmb_clamflag" ref="/root/send/clamflag" class="combo_search" navindex="4" appearance="minimal" style="left:442px; top:30px; width:130px; height:19px; ">
  452. <choices>
  453. <itemset nodeset="/root/init/P0426list/P0426">
  454. <label ref="cdnm"/>
  455. <value ref="cdid"/>
  456. </itemset>
  457. </choices>
  458. </select1>
  459. <select1 id="cmb_ordfildcd" ref="/root/send/ordfildcd" class="combo_search" navindex="5" appearance="minimal" style="left:442px; top:53px; width:130px; height:19px; ">
  460. <choices>
  461. <itemset nodeset="/root/init/P0458list/P0458">
  462. <label ref="cdnm"/>
  463. <value ref="cdid"/>
  464. </itemset>
  465. </choices>
  466. </select1>
  467. <select1 id="rdo_termflag" ref="/root/send/termflag" class="radio_search" appearance="full" cols="3" rows="1" overflow="visible" style="left:595px; top:7px; width:225px; height:16px; border-style:none; ">
  468. <choices>
  469. <item>
  470. <label>청구월</label>
  471. <value>1</value>
  472. </item>
  473. <item>
  474. <label>청구서 생성일</label>
  475. <value>3</value>
  476. </item>
  477. <item>
  478. <label>접수일자</label>
  479. <value>4</value>
  480. </item>
  481. </choices>
  482. <script type="javascript" ev:event="xforms-select">
  483. <![CDATA[
  484. // 청구월
  485. if(rdo_termflag.value == 1){
  486. ipt_fromcretdd.attribute("maxlength") = 6;
  487. ipt_tocretdd.attribute("maxlength") = 6;
  488. ipt_fromcretdd.attribute("format") = "yyyy-mm";
  489. ipt_tocretdd.attribute("format") = "yyyy-mm";
  490. model.setFocus("ipt_fromcretdd");
  491. if(ipt_fromcretdd.value.length >= 7){
  492. //messageBox("진료년월은 'YYYYMM'형식", "E008");
  493. ipt_fromcretdd.value = ipt_fromcretdd.value.substr(0,6);
  494. ipt_tocretdd.value = ipt_tocretdd.value.substr(0,6);
  495. }
  496. cmb_clamdg.disabled = false;
  497. cmb_clamdg.select(0);
  498. }
  499. // 진료월
  500. if(rdo_termflag.value == 2){
  501. ipt_fromcretdd.attribute("maxlength") = 6;
  502. ipt_tocretdd.attribute("maxlength") = 6;
  503. ipt_fromcretdd.attribute("format") = "yyyy-mm";
  504. ipt_tocretdd.attribute("format") = "yyyy-mm";
  505. model.setFocus("ipt_fromcretdd");
  506. if(ipt_fromcretdd.value.length >= 7){
  507. //messageBox("진료년월은 'YYYYMM'형식", "E008");
  508. ipt_fromcretdd.value = ipt_fromcretdd.value.substr(0,6);
  509. ipt_tocretdd.value = ipt_tocretdd.value.substr(0,6);
  510. }
  511. }
  512. // 청구생성일
  513. if(rdo_termflag.value == 3 || rdo_termflag.value == 4 ){
  514. ipt_fromcretdd.attribute("maxlength") = 8;
  515. ipt_tocretdd.attribute("maxlength") = 8;
  516. ipt_fromcretdd.attribute("format") = "yyyy-mm-dd";
  517. ipt_tocretdd.attribute("format") = "yyyy-mm-dd";
  518. model.setFocus("ipt_fromcretdd");
  519. cmb_clamdg.value = "";
  520. cmb_clamdg.disabled = true;
  521. }
  522. model.refresh();
  523. ]]>
  524. </script>
  525. </select1>
  526. <select id="chk_insukindAll" ref="/root/send/insurkindAll" overflow="visible" appearance="full" style="left:99px; top:8px; width:45px; height:16px; border-style:none; ">
  527. <choices>
  528. <item>
  529. <label>전체</label>
  530. <value>Y</value>
  531. </item>
  532. </choices>
  533. <script type="javascript" ev:event="onclick">
  534. <![CDATA[
  535. if (model.getValue("/root/send/insurkindAll") == "Y") {
  536. model.setValue("/root/send/insurkindAll","Y");
  537. chk_insukind1.value = "";
  538. model.setValue("/root/send/insurkind1","");
  539. chk_insukind2.value = "";
  540. model.setValue("/root/send/insurkind2","");
  541. chk_insukind3.value = "";
  542. model.setValue("/root/send/insurkind3","");
  543. chk_insukind4.value = "";
  544. model.setValue("/root/send/insurkind4","");
  545. }
  546. model.refresh();
  547. ]]>
  548. </script>
  549. </select>
  550. <select id="chk_insukind1" ref="/root/send/insurkind1" overflow="visible" appearance="full" style="left:147px; top:8px; width:45px; height:16px; border-style:none; ">
  551. <choices>
  552. <item>
  553. <label>보험</label>
  554. <value>Y</value>
  555. </item>
  556. </choices>
  557. <script type="javascript" ev:event="onclick">
  558. <![CDATA[
  559. chk_insukindAll.value = "";
  560. model.setValue("/root/send/insurkindAll","");
  561. ]]>
  562. </script>
  563. </select>
  564. <select id="chk_insukind2" ref="/root/send/insurkind2" overflow="visible" appearance="full" style="left:195px; top:8px; width:45px; height:16px; border-style:none; ">
  565. <choices>
  566. <item>
  567. <label>급여</label>
  568. <value>Y</value>
  569. </item>
  570. </choices>
  571. <script type="javascript" ev:event="onclick">
  572. <![CDATA[
  573. chk_insukindAll.value = "";
  574. model.setValue("/root/send/insurkindAll","");
  575. ]]>
  576. </script>
  577. </select>
  578. <select id="chk_insukind3" ref="/root/send/insurkind3" overflow="visible" appearance="full" style="left:243px; top:8px; width:45px; height:16px; border-style:none; ">
  579. <choices>
  580. <item>
  581. <label>산재</label>
  582. <value>Y</value>
  583. </item>
  584. </choices>
  585. <script type="javascript" ev:event="onclick">
  586. <![CDATA[
  587. chk_insukindAll.value = "";
  588. model.setValue("/root/send/insurkindAll","");
  589. ]]>
  590. </script>
  591. </select>
  592. <select id="chk_insukind4" ref="/root/send/insurkind4" overflow="visible" appearance="full" style="left:291px; top:8px; width:45px; height:16px; border-style:none; ">
  593. <choices>
  594. <item>
  595. <label>자보</label>
  596. <value>Y</value>
  597. </item>
  598. </choices>
  599. <script type="javascript" ev:event="onclick">
  600. <![CDATA[
  601. chk_insukindAll.value = "";
  602. model.setValue("/root/send/insurkindAll","");
  603. ]]>
  604. </script>
  605. </select>
  606. <caption id="caption8" class="search_name" style="left:9px; top:53px; width:90px; height:17px; ">청구차수 :</caption>
  607. <select1 id="cmb_clamdg" ref="/root/send/clamdg" class="combo_search" appearance="minimal" style="left:104px; top:53px; width:99px; height:19px; ">
  608. <choices>
  609. <itemset nodeset="/root/init/clamdglist/clamdg">
  610. <label ref="cdid"/>
  611. <value ref="cdnm"/>
  612. </itemset>
  613. </choices>
  614. </select1>
  615. <shape id="roundrect4" class="roundrect_btnset" appearance="roundrect" style="left:595px; top:29px; width:505px; height:41px; "/>
  616. <bool id="bool1" checkvalue="Y,N" ref="/root/send/suppamtyn" style="left:595px; top:30px; width:20px; height:20px; "/>
  617. <caption id="caption9" style="left:615px; top:30px; width:65px; height:20px; ">지원금보기</caption>
  618. <bool id="bool2" checkvalue="Y,N" ref="/root/send/clamexistsyn" style="left:690px; top:30px; width:20px; height:20px; "/>
  619. <caption id="caption11" style="left:710px; top:30px; width:65px; height:20px; ">미생성만</caption>
  620. <caption id="caption12" style="left:800px; top:30px; width:65px; height:20px; ">미청구만</caption>
  621. <bool id="bool3" checkvalue="Y,N" ref="/root/send/acptnoexistsyn" style="left:780px; top:30px; width:20px; height:20px; "/>
  622. <bool id="bool4" checkvalue="Y,N" ref="/root/send/clamcntdfyn" style="left:595px; top:49px; width:20px; height:20px; "/>
  623. <caption id="caption13" style="left:615px; top:49px; width:154px; height:20px; ">명세건수/ 청구건수 불일치</caption>
  624. </group>
  625. <line id="line3" class="line_1" style="x1:0px; y1:121px; x2:1194px; y2:121px; "/>
  626. <caption id="caption5" class="tit_2" style="left:5px; top:106px; width:203px; height:18px; ">청구서 생성 내역</caption>
  627. <shape id="roundrect3" class="roundrect_btnset" appearance="roundrect" style="left:565px; top:90px; width:627px; height:29px; "/>
  628. <shape id="roundrect2" class="roundrect_btnset" appearance="roundrect" style="left:129px; top:90px; width:431px; height:29px; "/>
  629. <button id="btn_inafterjudg" class="btn2_letter4" style="left:295px; top:95px; width:64px; height:19px; ">
  630. <caption>입원사후</caption>
  631. <script type="javascript" ev:event="DOMActivate">
  632. <![CDATA[
  633. modal("SMPID20300_입원사후심사관리", "", "400", "400" ,"SMPID20300_입원사후심사관리", "", "");
  634. ]]>
  635. </script>
  636. </button>
  637. <button id="btn_outafterjudg" class="btn2_letter4" style="left:360px; top:95px; width:64px; height:19px; ">
  638. <caption>외래사후</caption>
  639. <script type="javascript" ev:event="DOMActivate">
  640. <![CDATA[
  641. modal("SMPID20500_외래사후심사관리", "", "400", "400" ,"SMPID20500_외래사후심사관리", "", "");
  642. ]]>
  643. </script>
  644. </button>
  645. <button id="btn_locky" class="btn2_letter4" disabled="false" style="left:425px; top:95px; width:64px; height:19px; ">
  646. <caption>잠금설정</caption>
  647. <script type="javascript" ev:event="DOMActivate">
  648. <![CDATA[
  649. // 2007.08.18 샘생성 명령
  650. // 선택 항목이 아무것도 없을 경우 예외 처리한다.
  651. var chkflag;
  652. var cnt=0;
  653. int = 0;
  654. for(i = 1; i <grd_saminfo.rows; i++){
  655. chkflag = model.getValue("/root/main/list01/gridsaminfo["+ i +"]/chkbox");
  656. if (chkflag == "true") {
  657. cnt++;
  658. }
  659. }
  660. if(cnt == 0){
  661. messageBox("선택된 항목이", "I004");
  662. }else if(cnt > 1){
  663. messageBox("단일 항목만 선택하여주십시오.", "C009");
  664. }else{
  665. if(messageBox("저장","S001") == 6){
  666. // 체크된 행만 가져온다.
  667. var nodeList = instance1.selectNodes("/root/main/list01/gridsaminfo[chkbox='true']");
  668. var rCSV = getNodeListCSV(nodeList);
  669. model.setValue("/root/main/rCSV", rCSV);
  670. // rCSV에 있는 자료를 전송보낼 인스턴스에 담는댜.
  671. var CSV = model.getValue("/root/main/rCSV");
  672. // 노드 초기화(원리: 노드를 파괴하고 재생성시킴)
  673. model.destroy("/root/send/tmp");
  674. model.makeNode("/root/send/tmp");
  675. setCSVToNode("/root/send/tmp", CSV);
  676. // [단위테스트 20080823]잠금설정시 심사중 상태가 있으면 알럿 주기
  677. if(submit("TRPIE00508")){
  678. if(model.getValue("root/main/list03/return/judgyn") == "Y"){
  679. messageBox("심사중이거나 미심인 명세서가 존재합니다..","C009");
  680. }else if(model.getValue("root/main/list03/return/judgyn") == "N"){
  681. // 마감설정 요청
  682. submit("TXPIE00504");
  683. // 2007.11.26 샘생성 배치 로그 확인
  684. var todd = getCurrentDate();
  685. todd = todd.toDate().getAddDate(+1, 'D');
  686. zsbfOpenBatchLogPopup("editrsmrecvmngtmgr.EdiMakeClamBatch",getCurrentDate(),todd.getDateFormat());
  687. }
  688. }
  689. // 20080826 배치로그 조회 팝업을 띄우자 마자 실행하기 때문에 사실상 변경 내역을 조회하는 시점으로 너무 이름
  690. // 현재 조건으로 청구서 리스트
  691. // submit("TRPIE00500");
  692. }else{;}
  693. }
  694. ]]>
  695. </script>
  696. </button>
  697. <button id="btn_lockn" class="btn2_letter4" disabled="false" style="left:490px; top:95px; width:64px; height:19px; ">
  698. <caption>잠금해제</caption>
  699. <script type="javascript" ev:event="DOMActivate">
  700. <![CDATA[
  701. // 2007.08.18 샘생성 명령
  702. // 선택 항목이 아무것도 없을 경우 예외 처리한다.
  703. var chkflag;
  704. var chklockflag;
  705. var cnt=0;
  706. var lockcnt=0;
  707. int = 0;
  708. for(i = 1; i <grd_saminfo.rows; i++){
  709. chkflag = model.getValue("/root/main/list01/gridsaminfo["+ i +"]/chkbox");
  710. chklockflag = model.getValue("/root/main/list01/gridsaminfo["+ i +"]/edistatcd");
  711. if (chkflag == "true") {
  712. cnt++;
  713. //심사,SAM,송신,반송,접수,심결 심결상태 체크
  714. if (chklockflag == "송신" || chklockflag == "반송" || chklockflag == "접수" || chklockflag == "심결" ) {
  715. lockcnt++;
  716. }
  717. }
  718. }
  719. if(cnt == 0){
  720. messageBox("선택된 항목이", "I004");
  721. }else{
  722. if (lockcnt > 0) {
  723. messageBox("잠금해제가 불가능한 접수상태가 있습니다.", "");
  724. return false;
  725. }
  726. if(messageBox("저장","S001") == 6){
  727. // 체크된 행만 가져온다.
  728. var nodeList = instance1.selectNodes("/root/main/list01/gridsaminfo[chkbox='true']");
  729. var rCSV = getNodeListCSV(nodeList);
  730. model.setValue("/root/main/rCSV", rCSV);
  731. // rCSV에 있는 자료를 전송보낼 인스턴스에 담는댜.
  732. var CSV = model.getValue("/root/main/rCSV");
  733. // 노드 초기화(원리: 노드를 파괴하고 재생성시킴)
  734. model.destroy("/root/send/tmp");
  735. model.makeNode("/root/send/tmp");
  736. setCSVToNode("/root/send/tmp", CSV);
  737. // 마감해제 요청
  738. submit("TXPIE00505");
  739. // 2007.11.26 샘생성 배치 로그 확인
  740. var todd = getCurrentDate();
  741. todd = todd.toDate().getAddDate(+1, 'D');
  742. zsbfOpenBatchLogPopup("editrsmrecvmngtmgr.EdiMakeClamBatch",getCurrentDate(),todd.getDateFormat());
  743. // 현재 조건으로 청구서 리스트
  744. submit("TRPIE00500");
  745. }else{;}
  746. }
  747. ]]>
  748. </script>
  749. </button>
  750. <button id="btn_makeclam" class="btn5_letter5" style="left:569px; top:95px; width:75px; height:19px; ">
  751. <caption>청구서생성</caption>
  752. <script type="javascript" ev:event="DOMActivate">
  753. <![CDATA[
  754. /*
  755. modal("SPPIE00730", "", "400", "400" ,"", "", "");
  756. submit("TRPIE00500");
  757. */
  758. var rows = grd_saminfo.rows;
  759. var icount = 0;
  760. model.setValue("/root/sendclam/insucmno", "");
  761. for (var i = 0; i < rows; i++) {
  762. if (grd_saminfo.valueMatrix(i,grd_saminfo.colRef("chkbox")) == "true") {
  763. icount += 1;
  764. if (grd_saminfo.valueMatrix(i,grd_saminfo.colRef("ioflag")) == "I") {
  765. model.setValue("/root/sendclam/ioflag","1");
  766. if(grd_saminfo.valueMatrix(i,grd_saminfo.colRef("clamflag")) == "0")
  767. {
  768. if(grd_saminfo.valueMatrix(i,grd_saminfo.colRef("clamdg")) > "2")
  769. {
  770. messageBox("입원 원청구는 2차수 초과 대상은 허용" , "E001");
  771. return;
  772. }
  773. }
  774. } else if (grd_saminfo.valueMatrix(i,grd_saminfo.colRef("ioflag")) == "O" ) {
  775. model.setValue("/root/sendclam/ioflag","2");
  776. if(grd_saminfo.valueMatrix(i,grd_saminfo.colRef("clamflag")) == "0")
  777. {
  778. if(grd_saminfo.valueMatrix(i,grd_saminfo.colRef("clamdg")) > "1")
  779. {
  780. messageBox("외래원청구는 1차수 초과 대상은 허용" , "E001");
  781. return;
  782. }
  783. }
  784. }
  785. model.setValue("/root/sendclam/clamflag",grd_saminfo.valueMatrix(i,grd_saminfo.colRef("clamflag")));
  786. // 누락청구(3)은 원청구(0)으로 바꾼다.
  787. if (model.getValue("/root/sendclam/clamflag") == "3") {
  788. model.setValue("/root/sendclam/clamflag", "0")
  789. }
  790. if (grd_saminfo.valueMatrix(i,grd_saminfo.colRef("clamtypecd")) == "1") {
  791. model.setValue("/root/sendclam/insurkindflag","1");
  792. } else if (grd_saminfo.valueMatrix(i,grd_saminfo.colRef("clamtypecd")) == "4" ||
  793. grd_saminfo.valueMatrix(i,grd_saminfo.colRef("clamtypecd")) == "5"||
  794. grd_saminfo.valueMatrix(i,grd_saminfo.colRef("clamtypecd")) == "9") {
  795. model.setValue("/root/sendclam/insurkindflag","2");
  796. } else if (grd_saminfo.valueMatrix(i,grd_saminfo.colRef("clamtypecd")) == "6") { // 산재
  797. model.setValue("/root/sendclam/insurkindflag","3");
  798. } else if (grd_saminfo.valueMatrix(i,grd_saminfo.colRef("clamtypecd")) == "8") { // 자보
  799. model.setValue("/root/sendclam/insurkindflag","4");
  800. model.setValue("/root/sendclam/insucmno", grd_saminfo.valueMatrix(i,grd_saminfo.colRef("insucmno")));
  801. }
  802. model.setValue("/root/sendclam/ordfildcd",grd_saminfo.valueMatrix(i,grd_saminfo.colRef("sumtypecd")));
  803. model.setValue("/root/sendclam/clamym",grd_saminfo.valueMatrix(i,grd_saminfo.colRef("clamym")));
  804. model.setValue("/root/sendclam/clamdg",grd_saminfo.valueMatrix(i,grd_saminfo.colRef("clamdg")));
  805. model.setValue("/root/sendclam/clamfromdd",getCurrentDate());
  806. model.setValue("/root/sendclam/clamtodd",getCurrentDate());
  807. model.setValue("/root/sendclam/clamcretdd",getCurrentDate());
  808. model.setValue("/root/sendclam/sumtypecd",grd_saminfo.valueMatrix(i,grd_saminfo.colRef("sumtypecd")));
  809. model.setValue("/root/sendclam/clamtypecd",grd_saminfo.valueMatrix(i,grd_saminfo.colRef("clamtypecd")));
  810. }
  811. }
  812. if (icount != 1) {
  813. messageBox("선택하지 않았거나 2건 이상이 선택되어 생성" , "E001");
  814. return;
  815. }
  816. if(messageBox("청구서 생성 ","S001") == 6){
  817. var nodeList = instance1.selectNodes("/root/main/list01/gridsaminfo[chkbox='true']");
  818. var rCSV = getNodeListCSV(nodeList);
  819. model.setValue("/root/main/rCSV", rCSV);
  820. // rCSV에 있는 자료를 전송보낼 인스턴스에 담는댜.
  821. var CSV = model.getValue("/root/main/rCSV");
  822. // 노드 초기화(원리: 노드를 파괴하고 재생성시킴)
  823. model.destroy("/root/send/tmp");
  824. model.makeNode("/root/send/tmp");
  825. setCSVToNode("/root/send/tmp", CSV);
  826. // [단위테스트 20080823]잠금설정시 심사중 상태가 있으면 알럿 주기
  827. if(submit("TRPIE00508")){
  828. if(model.getValue("root/main/list03/return/judgyn") == "Y"){
  829. messageBox("심사중이거나 미심, 보류인 명세서가 존재합니다..","C009");
  830. }else if(model.getValue("root/main/list03/return/judgyn") == "N"){
  831. if(model.getValue("/root/sendclam/clamtypecd") == 6){
  832. var select = messageBox(" :: 산재 청구서를 070ver 생성(예_Yes) :: \n :: 이전 산재 청구서파일 생성(아니오_No) :: \n :: 취소(취소_Cancel) :: \n\n\n070ver으로 진행 ","S001");
  833. if(select == 6){
  834. //산재 070ver 생성
  835. model.setValue("/root/sendclam/flag", "N")
  836. submit("TXPIE00520");
  837. }else if(select == 7){
  838. model.setValue("/root/sendclam/flag", "B")
  839. //이전버전 생성
  840. submit("TXPIE00520");
  841. }else{
  842. return;
  843. }
  844. }else{
  845. model.setValue("/root/sendclam/flag", "N")
  846. submit("TXPIE00520");
  847. }
  848. var todd = getCurrentDate();
  849. todd = todd.toDate().getAddDate(+1, 'D');
  850. zsbfOpenBatchLogPopup("editrsmrecvmngtmgr.EdiMakeClamBatch",getCurrentDate(),todd.getDateFormat());
  851. }
  852. }
  853. }
  854. ]]>
  855. </script>
  856. </button>
  857. <button id="btn_makesam" class="btn5_letter4" style="left:808px; top:95px; width:64px; height:19px; ">
  858. <caption>SAM생성</caption>
  859. <script type="javascript" ev:event="DOMActivate">
  860. <![CDATA[
  861. // 선택 항목이 아무것도 없을 경우 예외 처리한다.
  862. var chkflag;
  863. var cnt=0;
  864. var endcnt = 0;
  865. int = 0;
  866. for(i = 1; i <grd_saminfo.rows; i++){
  867. chkflag = model.getValue("/root/main/list01/gridsaminfo["+ i +"]/chkbox");
  868. if (chkflag == "true") {
  869. if (model.getValue("/root/main/list01/gridsaminfo["+ i +"]/edistatcd") == "송신" ||
  870. model.getValue("/root/main/list01/gridsaminfo["+ i +"]/edistatcd") == "접수" ||
  871. model.getValue("/root/main/list01/gridsaminfo["+ i +"]/edistatcd") == "심결") {
  872. endcnt++;
  873. }
  874. cnt++;
  875. }
  876. }
  877. if (endcnt > 0) {
  878. messageBox("송신된 데이터는 SAM 생성 할 수", "I004");
  879. return;
  880. }
  881. if(cnt == 0){
  882. messageBox("선택된 항목이", "I004");
  883. }else{
  884. if(messageBox("저장","S001") == 6){
  885. model.removenode("/root/main/tCSV/list");
  886. var nodeList = instance1.selectNodes("/root/main/list01/gridsaminfo[chkbox='true']");
  887. var rCSV = getNodeListCSV(nodeList);
  888. setCSVToNode("/root/main/tCSV", rCSV);
  889. submit("TRPIE00500");
  890. var tontcnt = getNodesetCount("/root/main/tCSV/list");
  891. for (i=1; i <= tontcnt; i++){
  892. var ioflag = model.getValue("/root/main/tCSV/list["+i+"]/ioflag");
  893. var clamym = model.getValue("/root/main/tCSV/list["+i+"]/clamym");
  894. var clamdg = model.getValue("/root/main/tCSV/list["+i+"]/clamdg");
  895. var clamtypecd = model.getValue("/root/main/tCSV/list["+i+"]/clamtypecd");
  896. var sumtypecd = model.getValue("/root/main/tCSV/list["+i+"]/sumtypecd");
  897. var clamflag = model.getValue("/root/main/tCSV/list["+i+"]/clamflag");
  898. var ordym = model.getValue("/root/main/tCSV/list["+i+"]/ordym");
  899. var clbscnt = model.getValue("/root/main/tCSV/list["+i+"]/clbscnt");
  900. var insucmno = model.getValue("/root/main/tCSV/list["+i+"]/insucmno");
  901. model.setValue("/root/main/list01/gridsaminfo[ioflag='"+ioflag+
  902. "' and clamym='"+clamym+
  903. "' and clamdg='"+clamdg+
  904. "' and clamtypecd='"+clamtypecd+
  905. "' and sumtypecd='"+sumtypecd+
  906. "' and clamflag='"+clamflag+
  907. "' and clbscnt='"+clbscnt+
  908. "' and insucmno='"+insucmno+
  909. "']/chkbox","true");
  910. }
  911. model.refresh();
  912. // // ## 기존 수정 전 ##
  913. // // 체크된 행만 가져온다.
  914. var nodeList = instance1.selectNodes("/root/main/list01/gridsaminfo[chkbox='true']");
  915. var rCSV = getNodeListCSV(nodeList);
  916. model.setValue("/root/main/rCSV", rCSV);
  917. // rCSV에 있는 자료를 전송보낼 인스턴스에 담는댜.
  918. var CSV = model.getValue("/root/main/rCSV");
  919. // 노드 초기화(원리: 노드를 파괴하고 재생성시킴)
  920. model.destroy("/root/send/tmp");
  921. model.makeNode("/root/send/tmp");
  922. setCSVToNode("/root/send/tmp", CSV);
  923. // 2007.08.18 샘생성 팝업 화면이 사용했던 submit을 사용하였다.
  924. // 현재 싱글건 처리 -> 멀티건 처리가 가능하도록 코드 수정해야 한다.
  925. // 누락청구(3)은 원청구(0)으로 바꾼다.
  926. if (model.getValue("/root/send/tmp/list/clamflag") == "3") {
  927. model.setValue("/root/send/tmp/list/clamflag", "0")
  928. }
  929. //심평원용 샘파일 생성 구분자 2010-09-15추가
  930. model.setValue("/root/send/tmp/list/sammakeflag", "OR");
  931. if(model.getValue("/root/send/tmp/list/clamtypecd") == 6){
  932. model.makeNode("/root/send/tmp/list/flag");
  933. var select = messageBox(" :: 산재 SAM파일 071ver 생성(예_Yes) :: \n :: 이전 산재 SAM파일 생성(아니오_No) :: \n :: 취소(취소_Cancel) :: \n\n\n071ver으로 진행 ","S001");
  934. if(select == 6){
  935. //SAM파일 생성을 요청한다.
  936. model.setValue("/root/send/tmp/list/flag", "N");
  937. submit("TXPIE00502");
  938. }else if(select == 7){
  939. model.setValue("/root/send/tmp/list/flag", "B");
  940. //SAM파일 생성을 요청한다.
  941. submit("TXPIE00502");
  942. }else{
  943. return;
  944. }
  945. }else{
  946. model.setValue("/root/sendclam/flag", "N")
  947. submit("TXPIE00502");
  948. }
  949. // 2007.11.26 샘생성 배치 로그 확인
  950. var todd = getCurrentDate();
  951. todd = todd.toDate().getAddDate(+1, 'D');
  952. zsbfOpenBatchLogPopup("samfilemngtmgr.EDISamFileBatch",getCurrentDate(),todd.getDateFormat());
  953. // ## 기존 수정전 ##
  954. // 현재 조건으로 청구서 리스트 조회
  955. button1.dispatch("DOMActivate");
  956. // 여기에서 체크를 해제한다.
  957. //######## 수정전9 #######
  958. // 현재 조건으로 청구서 리스트 조회
  959. //submit("TRPIE00500");
  960. //#######################
  961. }else{;}
  962. }
  963. ]]>
  964. </script>
  965. </button>
  966. <button id="btn_batchlog" class="btn5_letter6" style="left:960px; top:95px; width:86px; height:19px; ">
  967. <caption>SAM배치로그</caption>
  968. <script type="javascript" ev:event="DOMActivate">
  969. <![CDATA[
  970. // modal("SPZSB00301", "", "400", "400" ,"SPZSB00301", "", "");
  971. // 2007.11.26 샘생성 배치 로그 확인
  972. var todd = getCurrentDate();
  973. todd = todd.toDate().getAddDate(+1, 'D');
  974. zsbfOpenBatchLogPopup("samfilemngtmgr.EDISamFileBatch",getCurrentDate(),todd.getDateFormat());
  975. ]]>
  976. </script>
  977. </button>
  978. <button id="btn_exel" class="btn2_letter4" disabled="false" style="left:1033px; top:41px; width:64px; height:19px; ">
  979. <caption>엑셀저장</caption>
  980. <script type="javascript" ev:event="DOMActivate">
  981. <![CDATA[
  982. var insukind = model.getValue("/root/send/insurkindflag");
  983. var today = getCurrentDate();
  984. var fileName = window.fileDialog("save", ",", false, "EDI청구SAM파일생성_ "+today, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  985. if (fileName != "")
  986. {
  987. //var exportfalsecols = grd_saminfo.colRef("") + ",1,22,23,24,25,26,31";
  988. grd_saminfo.saveExcel(fileName, "sheetname:청구서생성내역;col_2:label;col_3:label;col_4:label;col_5:label;col_6:label;col_7:label;col_8:label;col_9:label;col_10:label;");
  989. }
  990. ]]>
  991. </script>
  992. </button>
  993. <button id="btn_urscope" class="btn2_letter5" style="left:1047px; top:95px; width:75px; height:19px; ">
  994. <caption>UR용샘생성</caption>
  995. <script type="javascript" ev:event="DOMActivate">
  996. <![CDATA[
  997. open("SMPIS00800_유알스코프", "", "100", "100" ,"SMPIS00800_유알스코프", "", "");
  998. ]]>
  999. </script>
  1000. </button>
  1001. <button id="btn_delclam" class="btn2_letter5" disabled="true" visibility="hidden" style="left:1023px; top:61px; width:75px; height:19px; ">
  1002. <caption>청구서삭제</caption>
  1003. <script type="javascript" ev:event="DOMActivate">
  1004. <![CDATA[
  1005. // 선택 항목이 아무것도 없을 경우 예외 처리한다.
  1006. var chkflag;
  1007. var cnt=0;
  1008. int = 0;
  1009. for(i = 1; i <grd_saminfo.rows; i++){
  1010. chkflag = model.getValue("/root/main/list01/gridsaminfo["+ i +"]/chkbox");
  1011. if (chkflag == "true") {
  1012. cnt++;
  1013. }
  1014. }
  1015. if(cnt == 0){
  1016. messageBox("선택된 항목이", "I004");
  1017. }else{
  1018. if(messageBox("삭제","S001") == 6){
  1019. // 체크된 행만 가져온다.
  1020. var nodeList = instance1.selectNodes("/root/main/list01/gridsaminfo[chkbox='true']");
  1021. var rCSV = getNodeListCSV(nodeList);
  1022. model.setValue("/root/main/rCSV", rCSV);
  1023. // rCSV에 있는 자료를 전송보낼 인스턴스에 담는댜.
  1024. var CSV = model.getValue("/root/main/rCSV");
  1025. // 노드 초기화(원리: 노드를 파괴하고 재생성시킴)
  1026. model.destroy("/root/send/tmp");
  1027. model.makeNode("/root/send/tmp");
  1028. setCSVToNode("/root/send/tmp", CSV);
  1029. // 2007.10.10 청구서 삭제를 요청한다.
  1030. submit("TXPIE00503");
  1031. // 현재 조건으로 SAM파일 생성 대상 조회
  1032. submit("TRPIE00500");
  1033. }else{;}
  1034. }
  1035. ]]>
  1036. </script>
  1037. </button>
  1038. <button id="btn_trcompletion" class="btn2_letter4" disabled="false" style="left:1123px; top:95px; width:64px; height:19px; ">
  1039. <caption>송신완료</caption>
  1040. <script type="javascript" ev:event="DOMActivate">
  1041. <![CDATA[
  1042. // 2007.08.18 샘생성 명령
  1043. // 선택 항목이 아무것도 없을 경우 예외 처리한다.
  1044. var chkflag;
  1045. var cnt=0;
  1046. var edistatcdcnt =0;
  1047. int = 0;
  1048. for(i = 1; i <grd_saminfo.rows; i++){
  1049. chkflag = model.getValue("/root/main/list01/gridsaminfo["+ i +"]/chkbox");
  1050. if (chkflag == "true") {
  1051. cnt++;
  1052. if(model.getValue("/root/main/list01/gridsaminfo["+ i +"]/edistatcd") == "접수" || model.getValue("/root/main/list01/gridsaminfo["+ i +"]/edistatcd") == "심결" || model.getValue("/root/main/list01/gridsaminfo["+ i +"]/edistatcd") == "반송"){
  1053. edistatcdcnt++;
  1054. }
  1055. }
  1056. }
  1057. if(cnt == 0){
  1058. messageBox("선택된 항목이", "I004");
  1059. }else if(edistatcdcnt > 0){
  1060. messageBox("선택된 항목중 접수 혹은 심결 상태가 존재 합니다. 확인 후 다시 시도해 주세요 ", "E999");
  1061. return;
  1062. }else{
  1063. if(messageBox("저장","S001") == 6){
  1064. // 체크된 행만 가져온다.
  1065. var nodeList = instance1.selectNodes("/root/main/list01/gridsaminfo[chkbox='true']");
  1066. var rCSV = getNodeListCSV(nodeList);
  1067. model.setValue("/root/main/rCSV", rCSV);
  1068. // rCSV에 있는 자료를 전송보낼 인스턴스에 담는댜.
  1069. var CSV = model.getValue("/root/main/rCSV");
  1070. // 노드 초기화(원리: 노드를 파괴하고 재생성시킴)
  1071. model.destroy("/root/send/tmp");
  1072. model.makeNode("/root/send/tmp");
  1073. setCSVToNode("/root/send/tmp", CSV);
  1074. // 송신완료 요청
  1075. submit("TXPIE00506");
  1076. // 2007.11.26 샘생성 배치 로그 확인
  1077. // var todd = getCurrentDate();
  1078. // todd = todd.toDate().getAddDate(+1, 'D');
  1079. // zsbfOpenBatchLogPopup("editrsmrecvmngtmgr.EdiMakeClamBatch",getCurrentDate(),todd.getDateFormat());
  1080. // 현재 조건으로 청구서 리스트
  1081. submit("TRPIE00500");
  1082. }else{;}
  1083. }
  1084. ]]>
  1085. </script>
  1086. </button>
  1087. <button id="button2" class="btn5_letter4" style="left:743px; top:95px; width:64px; height:19px; ">
  1088. <caption>변경검사</caption>
  1089. <script type="javascript" ev:event="DOMActivate">
  1090. <![CDATA[
  1091. var chkflag;
  1092. var cnt=0;
  1093. int = 0;
  1094. for(i = 1; i <grd_saminfo.rows; i++){
  1095. chkflag = model.getValue("/root/main/list01/gridsaminfo["+ i +"]/chkbox");
  1096. if (chkflag == "true") {
  1097. cnt++;
  1098. }
  1099. }
  1100. if(cnt == 0){
  1101. messageBox("선택된 항목이", "I004");
  1102. }else if(cnt > 1){
  1103. messageBox("단일 항목만 선택하여주십시오.", "C009");
  1104. }else{
  1105. var nodeList = instance1.selectNodes("/root/main/list01/gridsaminfo[chkbox='true']");
  1106. var rCSV = getNodeListCSV(nodeList);
  1107. model.setValue("/root/main/rCSV", rCSV);
  1108. // rCSV에 있는 자료를 전송보낼 인스턴스에 담는댜.
  1109. var CSV = model.getValue("/root/main/rCSV");
  1110. // 노드 초기화(원리: 노드를 파괴하고 재생성시킴)
  1111. model.destroy("/root/send/tmp");
  1112. model.makeNode("/root/send/tmp");
  1113. setCSVToNode("/root/send/tmp", CSV);
  1114. if(submit("TRPIE00507")){
  1115. if(model.getValue("root/main/list02/return/differyn") == "Y"){
  1116. messageBox("명세서 건수와 금액이 청구서와 서로 다릅니다.","C009");
  1117. }else if(model.getValue("root/main/list02/return/differyn") == "N"){
  1118. messageBox("명세서 건수와 금액이 청구서와 서로 일치합니다.","I000");
  1119. }
  1120. }
  1121. }
  1122. ]]>
  1123. </script>
  1124. </button>
  1125. <!--########## 수정추가 6 : JHP 2008.07.22 산재 청구서 조회 ########## -->
  1126. <datagrid id="grd_saminfoinducs" nodeset="/root/main/list02/gridsaminfoinducs" class="datagrid2" visibility="hidden" caption="^분야^내원유형^청구년월^청구구분^청구차수^진료월^청구서생성일^청구번호^청구건수^건수^청구액계^청구액^상태^접수번호^명세서시작일자^명세서종료일자^잠금상태^청구서생성자" colsep="^" colwidth="25, 55, 55, 55, 55, 55, 55, 83, 80, 80, 50, 85, 85, 85, 66, 99, 98, 60, 94" dataheight="23" ellipsis="true" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="35" rowsep="|" style="left:0px; top:490px; width:1195px; height:207px; text-align:center; ">
  1127. <col ref="chkbox" type="checkbox" style="text-align:center; "/>
  1128. <!-- 분야는 기존에 P0458였는데. 산재 와 자보 추가되면서. 추가되는 공통코드 적용해야함 -->
  1129. <col disabled="true" ref="ordfildcd" type="combo">
  1130. <choices>
  1131. <itemset nodeset="/root/init/P0458list/P0458">
  1132. <label ref="cdnm"/>
  1133. <value ref="cdid"/>
  1134. </itemset>
  1135. </choices>
  1136. </col>
  1137. <!-- 산재의 내원유형은 입원, 통원(외래) 참고-->
  1138. <col disabled="true" ref="ioflag" type="combo" style="text-align:center; ">
  1139. <choices>
  1140. <itemset nodeset="/root/init/P0028list/P0028">
  1141. <label ref="cdnm"/>
  1142. <value ref="cdid"/>
  1143. </itemset>
  1144. </choices>
  1145. </col>
  1146. <col ref="clamym" format="yyyy-mm" style="text-align:center; "/>
  1147. <col disabled="true" ref="clamflag" type="combo" style="text-align:center; ">
  1148. <choices>
  1149. <itemset nodeset="/root/init/P0426list/P0426">
  1150. <label ref="cdnm"/>
  1151. <value ref="cdid"/>
  1152. </itemset>
  1153. </choices>
  1154. </col>
  1155. <col ref="clamdg"/>
  1156. <col ref="ordym" format="yyyy-mm"/>
  1157. <col ref="clamdocdd" format="yyyy-mm-dd" style="text-align:center; "/>
  1158. <col ref="clamno" style="text-align:center; "/>
  1159. <col ref="sumcnt" style="text-align:center; "/>
  1160. <col ref="cnt" format="#,###" style="text-align:right; "/>
  1161. <col ref="sumamt" format="#,###" style="text-align:right; "/>
  1162. <col ref="amt" format="#,###"/>
  1163. <col ref="edistatcd" style="text-align:center; "/>
  1164. <col ref="acptno" style="text-align:center; "/>
  1165. <col ref="clamfromdd"/>
  1166. <col ref="clamtodd"/>
  1167. <col ref="lockyn" style="text-align:center; "/>
  1168. <col ref="fstrgstrid"/>
  1169. </datagrid>
  1170. <!--########## 수정추가 6 : 끝 ############################### -->
  1171. <button id="button3" class="btn5_letter7" style="left:645px; top:95px; width:97px; height:19px; ">
  1172. <caption>청구서배치로그</caption>
  1173. <script type="javascript" ev:event="DOMActivate">
  1174. <![CDATA[
  1175. var todd = getCurrentDate();
  1176. todd = todd.toDate().getAddDate(+1, 'D');
  1177. zsbfOpenBatchLogPopup("editrsmrecvmngtmgr.EdiMakeClamBatch",getCurrentDate(),todd.getDateFormat());
  1178. ]]>
  1179. </script>
  1180. </button>
  1181. <button id="button4" class="btn2_letter3" style="left:133px; top:95px; width:53px; height:19px; ">
  1182. <caption>셀카피</caption>
  1183. <script type="javascript" ev:event="onclick">
  1184. <![CDATA[
  1185. grd_saminfo.attribute("selectionmode") = "free";
  1186. ]]>
  1187. </script>
  1188. </button>
  1189. <button id="button5" class="btn2_letter3" style="left:187px; top:95px; width:53px; height:19px; ">
  1190. <caption>열카피</caption>
  1191. <script type="javascript" ev:event="onclick">
  1192. <![CDATA[
  1193. grd_saminfo.attribute("selectionmode") = "bycol";
  1194. ]]>
  1195. </script>
  1196. </button>
  1197. <button id="button6" class="btn2_letter3" style="left:241px; top:95px; width:53px; height:19px; ">
  1198. <caption>행카피</caption>
  1199. <script type="javascript" ev:event="onclick">
  1200. <![CDATA[
  1201. grd_saminfo.attribute("selectionmode") = "byrow";
  1202. ]]>
  1203. </script>
  1204. </button>
  1205. <datagrid id="grd_saminfo" nodeset="/root/main/list01/gridsaminfo" class="datagrid2" caption="^청구년월^내원&#xA;유형^보험유형^보험회사^분야^분야^청구구분^청구차수^미수월^청구서생성일^청구번호^명세&#xA;건수^청구&#xA;건수^급여총액^본인부담액^청구액^100분의100미만&#xA;총액^100분의100미만&#xA;본인부담금^100분의100미만&#xA;청구액^상한초과금^지원금^결핵지원금^희귀지원금^긴급지원금^장애인^약제&#xA;상한차액^대불금^심사중/미심&#xA;/보류^잠금^상태^insurkind^생성자ID^접수번호^접수일자^from^to^sammakeflag^caption1^workflag^seqno^참고사항" colsep="^" colwidth="25, 55, 36, 55, 80, 80, 55, 55, 55, 55, 80, 80, 46, 50, 85, 85, 85, 100, 100, 100, 66, 66, 68, 68, 68, 60, 60, 60, 85, 45, 45, 50, 60, 68, 73, 100, 100, 100, 100, 100, 100, 266" dataheight="23" ellipsis="true" explorerbar="sort" focuscolor="#b9e5fb" frozencols="13" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="35" rowsep="|" subtotalposition="below" tooltip="true" style="left:0px; top:126px; width:1194px; height:613px; text-align:center; ">
  1206. <col ref="chkbox" type="checkbox" style="text-align:center; "/>
  1207. <col ref="clamym" format="yyyy-mm" style="text-align:center; "/>
  1208. <col disabled="true" ref="ioflag" type="combo" style="text-align:center; ">
  1209. <choices>
  1210. <itemset nodeset="/root/init/P0028list/P0028">
  1211. <label ref="cdnm"/>
  1212. <value ref="cdid"/>
  1213. </itemset>
  1214. </choices>
  1215. </col>
  1216. <col disabled="true" ref="clamtypecd" type="combo" style="text-align:center; background-color:transparent; ">
  1217. <choices>
  1218. <itemset nodeset="/root/init/P0103list/P0103">
  1219. <label ref="cdnm"/>
  1220. <value ref="cdid"/>
  1221. </itemset>
  1222. </choices>
  1223. </col>
  1224. <col disabled="true" ref="insucmno" type="combo">
  1225. <choices>
  1226. <itemset nodeset="/root/init/PAM/PK032list/PK032">
  1227. <label ref="cdnm"/>
  1228. <value ref="cdid"/>
  1229. </itemset>
  1230. </choices>
  1231. </col>
  1232. <col disabled="true" ref="sumtypecdnm" type="output"/>
  1233. <col disabled="true" ref="sumtypecd" type="combo" visibility="hidden"/>
  1234. <col disabled="true" ref="clamflag" type="combo" style="text-align:center; ">
  1235. <choices>
  1236. <itemset nodeset="/root/init/P0426list/P0426">
  1237. <label ref="cdnm"/>
  1238. <value ref="cdid"/>
  1239. </itemset>
  1240. </choices>
  1241. </col>
  1242. <col ref="clamdg"/>
  1243. <col ref="ordym" format="yyyy-mm"/>
  1244. <col ref="clamdocdd" format="yyyy-mm-dd" style="text-align:center; "/>
  1245. <col ref="clamno" savetype="text" style="text-align:center; "/>
  1246. <col ref="clbscnt" format="(-)#,###" style="text-align:center; "/>
  1247. <col ref="clamcnt" format="(-)#,###" style="text-align:center; "/>
  1248. <col ref="medcaretotamt" format="(-)#,###" style="text-align:right; "/>
  1249. <col ref="ownbamt" format="(-)#,###" style="text-align:right; "/>
  1250. <col ref="insuclamamt" format="(-)#,###" style="text-align:right; "/>
  1251. <col ref="blwtotownamt" format="(-)#,###" style="text-align:right; "/>
  1252. <col ref="blwownbamt" format="(-)#,###" style="text-align:right; "/>
  1253. <col ref="blwinsuclamamt" format="(-)#,###" style="text-align:right; "/>
  1254. <col ref="ownbmaxexamt" format="(-)#,###" style="text-align:right; "/>
  1255. <col ref="suppamt" format="(-)#,###" style="left:1007px; top:32px; width:66px; height:23px; text-align:right; "/>
  1256. <col ref="ksuppamt" format="(-)#,###" style="left:1007px; top:32px; width:66px; height:23px; text-align:right; "/>
  1257. <col ref="hsuppamt" format="(-)#,###" style="left:1007px; top:32px; width:66px; height:23px; text-align:right; "/>
  1258. <col ref="gsuppamt" format="(-)#,###" style="left:1007px; top:32px; width:66px; height:23px; text-align:right; "/>
  1259. <col ref="handcaprfund" format="(-)#,###" style="text-align:right; "/>
  1260. <col ref="totlimitdiffamt" format="(-)#,###" style="text-align:right; "/>
  1261. <col ref="subtamt" format="(-)#,###" style="text-align:right; "/>
  1262. <col ref="clamstatcnt" style="text-align:center; "/>
  1263. <col ref="lockyn" style="text-align:center; "/>
  1264. <col ref="edistatcd" style="text-align:center; "/>
  1265. <col ref="insurkindflag" visibility="hidden" style="text-align:center; "/>
  1266. <col ref="fstrgstrid"/>
  1267. <col ref="acptno" style="text-align:center; "/>
  1268. <col ref="acptdd" format="yyyy-mm-dd"/>
  1269. <col ref="clamfromdd" visibility="hidden"/>
  1270. <col ref="clamtodd" visibility="hidden"/>
  1271. <col ref="sammakeflag"/>
  1272. <col ref="totaltype" visibility="hidden"/>
  1273. <col ref="workflag" visibility="hidden"/>
  1274. <col ref="seqno" visibility="hidden"/>
  1275. <col ref="rem" type="inputbutton" style="text-align:left; "/>
  1276. <script type="javascript" ev:event="oncopy">
  1277. <![CDATA[
  1278. grid_oncopy();
  1279. ]]>
  1280. </script>
  1281. <script type="javascript" ev:event="onaftersort">
  1282. <![CDATA[
  1283. grd_saminfo.gridToInstance(); // Sort 된 Grid 상의 Data 순서와 Instance Node 상의 Data 순서를 동일하게 맞춰준다.
  1284. grd_saminfo.row = grd_saminfo.selectedRow(0);
  1285. ]]>
  1286. </script>
  1287. <script type="javascript" ev:event="onbuttonclick">
  1288. <![CDATA[
  1289. if (grd_saminfo.col == grd_saminfo.colRef("rem") && grd_saminfo.row >= grd_saminfo.fixedRows){
  1290. if (grd_saminfo.valueMatrix(grd_saminfo.row, grd_saminfo.colRef("seqno")) == "" ){
  1291. messageBox("청구생성 후 사용하세요.","");
  1292. return ;
  1293. }
  1294. model.setValue("/root/send/send_rem/clamym", grd_saminfo.valueMatrix(grd_saminfo.row, grd_saminfo.colRef("clamym")));
  1295. model.setValue("/root/send/send_rem/clamdg", grd_saminfo.valueMatrix(grd_saminfo.row, grd_saminfo.colRef("clamdg")));
  1296. model.setValue("/root/send/send_rem/workflag", grd_saminfo.valueMatrix(grd_saminfo.row, grd_saminfo.colRef("workflag")));
  1297. model.setValue("/root/send/send_rem/seqno", grd_saminfo.valueMatrix(grd_saminfo.row, grd_saminfo.colRef("seqno")));
  1298. model.setValue("/root/send/send_rem/rem", grd_saminfo.valueMatrix(grd_saminfo.row, grd_saminfo.colRef("rem")));
  1299. ipt_rem.refresh();
  1300. grp_rem.visible = true;
  1301. }
  1302. ]]>
  1303. </script>
  1304. </datagrid>
  1305. <button id="button7" class="btn5_letter6" style="left:873px; top:95px; width:86px; height:19px; ">
  1306. <caption>SAM 생성_ur</caption>
  1307. <script type="javascript" ev:event="DOMActivate">
  1308. <![CDATA[
  1309. // 선택 항목이 아무것도 없을 경우 예외 처리한다.
  1310. var chkflag;
  1311. var cnt=0;
  1312. var endcnt = 0;
  1313. int = 0;
  1314. for(i = 1; i <grd_saminfo.rows; i++){
  1315. chkflag = model.getValue("/root/main/list01/gridsaminfo["+ i +"]/chkbox");
  1316. if (chkflag == "true") {
  1317. if (model.getValue("/root/main/list01/gridsaminfo["+ i +"]/edistatcd") == "송신" ||
  1318. model.getValue("/root/main/list01/gridsaminfo["+ i +"]/edistatcd") == "접수" ||
  1319. model.getValue("/root/main/list01/gridsaminfo["+ i +"]/edistatcd") == "심결") {
  1320. endcnt++;
  1321. }
  1322. cnt++;
  1323. }
  1324. }
  1325. /*
  1326. if (endcnt > 0) {
  1327. messageBox("송신된 데이터는 SAM 생성 할 수", "I004");
  1328. return;
  1329. }
  1330. */
  1331. if(cnt == 0){
  1332. messageBox("선택된 항목이", "I004");
  1333. }else{
  1334. if(messageBox("저장","S001") == 6){
  1335. // ## 기존 수정 전 ##
  1336. // 체크된 행만 가져온다.
  1337. var nodeList = instance1.selectNodes("/root/main/list01/gridsaminfo[chkbox='true']");
  1338. var rCSV = getNodeListCSV(nodeList);
  1339. model.setValue("/root/main/rCSV", rCSV);
  1340. // rCSV에 있는 자료를 전송보낼 인스턴스에 담는댜.
  1341. var CSV = model.getValue("/root/main/rCSV");
  1342. // 노드 초기화(원리: 노드를 파괴하고 재생성시킴)
  1343. model.destroy("/root/send/tmp");
  1344. model.makeNode("/root/send/tmp");
  1345. setCSVToNode("/root/send/tmp", CSV);
  1346. // 2007.08.18 샘생성 팝업 화면이 사용했던 submit을 사용하였다.
  1347. // 현재 싱글건 처리 -> 멀티건 처리가 가능하도록 코드 수정해야 한다.
  1348. // 누락청구(3)은 원청구(0)으로 바꾼다.
  1349. if (model.getValue("/root/send/tmp/list/clamflag") == "3") {
  1350. model.setValue("/root/send/tmp/list/clamflag", "0")
  1351. }
  1352. //UR용 샘파일 생성 구분자 2010-09-15추가
  1353. model.setValue("/root/send/tmp/list/sammakeflag", "UR");
  1354. // SAM파일 생성을 요청한다.
  1355. submit("TXPIE00502");
  1356. // 2007.11.26 샘생성 배치 로그 확인
  1357. var todd = getCurrentDate();
  1358. todd = todd.toDate().getAddDate(+1, 'D');
  1359. zsbfOpenBatchLogPopup("samfilemngtmgr.EDISamFileBatch",getCurrentDate(),todd.getDateFormat());
  1360. // ## 기존 수정전 ##
  1361. // 현재 조건으로 청구서 리스트 조회
  1362. submit("TRPIE00500");
  1363. grd_saminfo.colStyle(11,"data","background-color") = "#ffffcc";
  1364. grd_saminfo.colStyle(12,"data","background-color") = "#ffff99";
  1365. grd_saminfo.colStyle(13,"data","background-color") = "#ffff88";
  1366. grd_saminfo.colStyle(14,"data","background-color") = "#ffff77";
  1367. grd_saminfo.colStyle(15,"data","background-color") = "#ffff66";
  1368. grd_saminfo.colStyle(16,"data","background-color") = "#ffff55";
  1369. grd_saminfo.colStyle(17,"data","background-color") = "#ffff44";
  1370. grd_saminfo.colStyle(18,"data","background-color") = "#ffff33";
  1371. grd_saminfo.colStyle(19,"data","background-color") = "#ffccff";
  1372. grd_saminfo.colStyle(20,"data","background-color") = "#ffccee";
  1373. grd_saminfo.colStyle(21,"data","background-color") = "#ffccdd";
  1374. grd_saminfo.colStyle(22,"data","background-color") = "#ffcccc";
  1375. grd_saminfo.colStyle(23,"data","background-color") = "#ffccbb";
  1376. // 여기에서 체크를 해제한다.
  1377. //######## 수정전9 #######
  1378. // 현재 조건으로 청구서 리스트 조회
  1379. //submit("TRPIE00500");
  1380. //#######################
  1381. }else{;}
  1382. }
  1383. ]]>
  1384. </script>
  1385. </button>
  1386. </group>
  1387. <group id="grp_btn" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  1388. <button id="button10" class="btn4_letter2" visibility="hidden" style="left:1138px; top:5; width:56px; height:22px; ">
  1389. <caption>생성</caption>
  1390. <script type="javascript" ev:event="DOMActivate">
  1391. <![CDATA[
  1392. // // 선택 항목이 아무것도 없을 경우 예외 처리한다.
  1393. // var chkflag;
  1394. // var cnt=0;
  1395. // int = 0;
  1396. // for(i = 1; i <grd_saminfo.rows; i++){
  1397. // chkflag = model.getValue("/root/main/list01/gridsaminfo["+ i +"]/chkbox");
  1398. // if (chkflag == "true") {
  1399. // cnt++;
  1400. // }
  1401. // }
  1402. // if(cnt == 0){
  1403. // messageBox("선택된 항목이", "I004");
  1404. // }else{
  1405. // if(messageBox("저장","S001") == 6){
  1406. // // 체크된 행만 가져온다.
  1407. // var nodeList = instance1.selectNodes("/root/main/list01/gridsaminfo[chkbox='true']");
  1408. // var rCSV = getNodeListCSV(nodeList);
  1409. //
  1410. // model.setValue("/root/main/rCSV", rCSV);
  1411. //
  1412. // // rCSV에 있는 자료를 전송보낼 인스턴스에 담는댜.
  1413. // var CSV = model.getValue("/root/main/rCSV");
  1414. //
  1415. // // 노드 초기화(원리: 노드를 파괴하고 재생성시킴)
  1416. // model.destroy("/root/send/tmp");
  1417. // model.makeNode("/root/send/tmp");
  1418. //
  1419. // setCSVToNode("/root/send/tmp", CSV);
  1420. //
  1421. // // SAM파일 생성을 요청한다.
  1422. // submit("TXPIE00501");
  1423. // // 현재 조건으로 SAM파일 생성 대상 조회
  1424. // submit("TRPIE00500");
  1425. //
  1426. // // 여기에서 체크를 해제한다.
  1427. // }else{;}
  1428. // }
  1429. // ]]>
  1430. </script>
  1431. </button>
  1432. <line id="line33" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  1433. <caption id="caption1" style="left:5px; top:4px; width:397px; height:20px; font-family:굴림체; font-size:9pt; font-weight:bold; color:#ff0000; ">[보류, 삭제, 자동삭제 건수는 명세건수와 청구건수에서 제외됨]</caption>
  1434. <caption id="caption4" style="left:420px; top:3px; width:457px; height:20px; font-family:굴림체; font-size:9pt; font-weight:bold; color:#000000; ">[청구차수] 원:1 보완:1001 추가:2001 누락:9001</caption>
  1435. </group>
  1436. <group id="grp_rem" visibility="hidden" style="left:395px; top:230px; width:415px; height:175px; ">
  1437. <shape id="roundrect5" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:2px; top:2px; width:413px; height:173px; "/>
  1438. <textarea id="ipt_rem" ref="/root/send/send_rem/rem" style="left:6px; top:24px; width:404px; height:120px; "/>
  1439. <caption id="caption14" class="search_name" style="left:6px; top:5px; width:154px; height:17px; ">참고사항</caption>
  1440. <button id="btn_confirm2" class="btn4_letter2" style="left:295px; top:150px; width:56px; height:22px; ">
  1441. <caption>확인</caption>
  1442. <script type="javascript" ev:event="DOMActivate">
  1443. <![CDATA[
  1444. submit("TXPIE00521");
  1445. grd_saminfo.valueMatrix(grd_saminfo.row, grd_saminfo.colRef("rem")) = model.getValue("/root/send/send_rem/rem");
  1446. model.resetInstanceNode("/root/send/send_rem");
  1447. ipt_rem.refresh();
  1448. grp_rem.visible = false;
  1449. ]]>
  1450. </script>
  1451. </button>
  1452. <button id="btn_cancel2" class="btn4_letter2" style="left:354px; top:150px; width:56px; height:22px; ">
  1453. <caption>취소</caption>
  1454. <script type="javascript" ev:event="DOMActivate">
  1455. <![CDATA[
  1456. model.setValue(ipt_rem.attribute("ref"), "");
  1457. ipt_rem.refresh();
  1458. grp_rem.visible = false;
  1459. ]]>
  1460. </script>
  1461. </button>
  1462. </group>
  1463. </xhtml:body>
  1464. </xhtml:html>