SMPIE00500_EDI청구SAM파일생성관리.xfdl 93 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPIE00500" position="absolute 0 0 1201 805" titletext="EDI청구 SAM파일생성" oninit="SMPIE00500_oninit" onload="SMPIE00500_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 107 1201 779" id="group3" scrollbars="autoboth" anchor="all">
  8. <Layouts>
  9. <Layout width="1195" height="614">
  10. <Tab id="Tab00" taborder="17" tabindex="0" scrollbars="autoboth" position="absolute 0 5 1200 672" anchor="all">
  11. <Tabpages>
  12. <Tabpage id="tabpage1" text="청구서생성내역">
  13. <Layouts>
  14. <Layout>
  15. <Grid id="grd_saminfo" class="datagrid2" taborder="0" binddataset="ds_grd_saminfo" autoenter="select" useinputpanel="false" cellsizingtype="col" cellmovingtype="col" onkeydown="group3_grd_saminfo_onkeydown" onexpanddown="group3_grd_saminfo_onexpanddown" position="absolute 0 20 1199 640" anchor="all" oncelldblclick="group3_Tab00_tabpage1_grd_saminfo_oncelldblclick" selecttype="row" onvscroll="group3_Tab00_tabpage1_grd_saminfo_onvscroll" onhscroll="group3_Tab00_tabpage1_grd_saminfo_onhscroll">
  16. <Formats>
  17. <Format id="default">
  18. <Columns>
  19. <Column size="22" band="left"/>
  20. <Column size="25" band="left"/>
  21. <Column size="55" band="left"/>
  22. <Column size="57" band="left"/>
  23. <Column size="55" band="left"/>
  24. <Column size="80" band="left"/>
  25. <Column size="80" band="left"/>
  26. <Column size="0" band="left"/>
  27. <Column size="55" band="left"/>
  28. <Column size="55" band="left"/>
  29. <Column size="55" band="left"/>
  30. <Column size="80" band="left"/>
  31. <Column size="80" band="left"/>
  32. <Column size="46" band="left"/>
  33. <Column size="50" band="left"/>
  34. <Column size="85"/>
  35. <Column size="85"/>
  36. <Column size="85"/>
  37. <Column size="100"/>
  38. <Column size="100"/>
  39. <Column size="100"/>
  40. <Column size="66"/>
  41. <Column size="66"/>
  42. <Column size="68"/>
  43. <Column size="68"/>
  44. <Column size="68"/>
  45. <Column size="60"/>
  46. <Column size="60"/>
  47. <Column size="60"/>
  48. <Column size="85"/>
  49. <Column size="45"/>
  50. <Column size="45"/>
  51. <Column size="0"/>
  52. <Column size="60"/>
  53. <Column size="68"/>
  54. <Column size="73"/>
  55. <Column size="0"/>
  56. <Column size="0"/>
  57. <Column size="100"/>
  58. <Column size="0"/>
  59. <Column size="0"/>
  60. <Column size="0"/>
  61. <Column size="266"/>
  62. </Columns>
  63. <Rows>
  64. <Row size="32" band="head"/>
  65. <Row size="24"/>
  66. <Row size="24" band="summ"/>
  67. </Rows>
  68. <Band id="head">
  69. <Cell/>
  70. <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
  71. <Cell col="2" text="청구년월"/>
  72. <Cell col="3" text="내원&#10;유형"/>
  73. <Cell col="4" text="보험유형"/>
  74. <Cell col="5" text="보험회사"/>
  75. <Cell col="6" text="분야"/>
  76. <Cell col="7" text="분야"/>
  77. <Cell col="8" text="청구구분"/>
  78. <Cell col="9" text="청구차수"/>
  79. <Cell col="10" text="미수월"/>
  80. <Cell col="11" text="청구서생성일"/>
  81. <Cell col="12" text="청구번호"/>
  82. <Cell col="13" text="명세&#10;건수"/>
  83. <Cell col="14" text="청구&#10;건수"/>
  84. <Cell col="15" text="급여총액"/>
  85. <Cell col="16" text="본인부담액"/>
  86. <Cell col="17" text="청구액"/>
  87. <Cell col="18" text="100분의100미만&#10;총액"/>
  88. <Cell col="19" text="100분의100미만&#10;본인부담금"/>
  89. <Cell col="20" text="100분의100미만&#10;청구액"/>
  90. <Cell col="21" text="상한초과금"/>
  91. <Cell col="22" text="지원금"/>
  92. <Cell col="23" text="결핵지원금"/>
  93. <Cell col="24" text="희귀지원금"/>
  94. <Cell col="25" text="긴급지원금"/>
  95. <Cell col="26" text="장애인"/>
  96. <Cell col="27" text="약제&#10;상한차액"/>
  97. <Cell col="28" text="대불금"/>
  98. <Cell col="29" text="심사중/미심&#10;/보류"/>
  99. <Cell col="30" text="잠금"/>
  100. <Cell col="31" text="상태"/>
  101. <Cell col="32" text="insurkind"/>
  102. <Cell col="33" text="생성자ID"/>
  103. <Cell col="34" text="접수번호"/>
  104. <Cell col="35" text="접수일자"/>
  105. <Cell col="36" text="from"/>
  106. <Cell col="37" text="to"/>
  107. <Cell col="38" text="sammakeflag"/>
  108. <Cell col="39" text="caption1"/>
  109. <Cell col="40" text="workflag"/>
  110. <Cell col="41" text="seqno"/>
  111. <Cell col="42" text="참고사항"/>
  112. </Band>
  113. <Band id="body">
  114. <Cell celltype="head" expr="currow+1"/>
  115. <Cell col="1" displaytype="expr:getRowLevel(currow) == 1 ? 'none' : 'checkbox'" edittype="checkbox" style="background:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);background2:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);" text="bind:chkbox" expr="expr:chkbox == 'true' || chkbox == '1' ? 1 : 0"/>
  116. <Cell col="2" displaytype="date" style="align:center middle;background:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);background2:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);" text="bind:clamym" mask="yyyy-MM" calendardisplaynulltype="nulltext"/>
  117. <Cell col="3" displaytype="combo" edittype="none" style="align:center middle;background:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);background2:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);" text="bind:ioflag" combodataset="ds_init_cmb_ioflag" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  118. <Cell col="4" displaytype="combo" edittype="none" style="align:center middle;background:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);background2:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);" text="bind:clamtypecd" combodataset="ds_init_cmb_clamtypecd" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  119. <Cell col="5" displaytype="combo" edittype="none" style="align:left middle;background:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);background2:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);" text="bind:insucmno" combodataset="ds_PK032list" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  120. <Cell col="6" displaytype="text" edittype="none" style="align:center middle;background:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);background2:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);" text="bind:sumtypecdnm" enable="false"/>
  121. <Cell col="7" displaytype="combo" edittype="combo" style="align:center middle;background:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);background2:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);" text="bind:sumtypecd" enable="false"/>
  122. <Cell col="8" displaytype="combo" edittype="none" style="align:center middle;background:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);background2:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);" text="bind:clamflag" combodataset="ds_init_cmb_clamflag" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  123. <Cell col="9" style="align:center middle;background:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);background2:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);" text="bind:clamdg"/>
  124. <Cell col="10" displaytype="expr:getRowLevel(currow) == 0 ? &quot;date&quot; :&quot;text&quot;" style="align:center middle;background:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);background2:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);" text="bind:ordym" mask="expr:getRowLevel(currow) == 0 ? &quot;yyyy-MM&quot; :&quot;text&quot;"/>
  125. <Cell col="11" displaytype="date" style="align:center middle;background:EXPR(getRowLevel(currow) == 0 ? &quot;#ffffccff&quot; :&quot;#cefcfaff&quot;);background2:EXPR(getRowLevel(currow) == 0 ? &quot;#ffffccff&quot; :&quot;#cefcfaff&quot;);" text="bind:clamdocdd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
  126. <Cell col="12" style="align:center middle;background:EXPR(getRowLevel(currow) == 0 ? &quot;#ffff99ff&quot; :&quot;#cefcfaff&quot;);background2:EXPR(getRowLevel(currow) == 0 ? &quot;#ffff99ff&quot; :&quot;#cefcfaff&quot;);" text="bind:clamno"/>
  127. <Cell col="13" displaytype="number" style="align:right middle;background:EXPR(getRowLevel(currow) == 0 ? &quot;#ffff88ff&quot; :&quot;#cefcfaff&quot;);background2:EXPR(getRowLevel(currow) == 0 ? &quot;#ffff88ff&quot; :&quot;#cefcfaff&quot;);" text="bind:clbscnt"/>
  128. <Cell col="14" displaytype="number" style="align:right middle;background:EXPR(getRowLevel(currow) == 0 ? &quot;#ffff77ff&quot; :&quot;#cefcfaff&quot;);background2:EXPR(getRowLevel(currow) == 0 ? &quot;#ffff77ff&quot; :&quot;#cefcfaff&quot;);" text="bind:clamcnt"/>
  129. <Cell col="15" displaytype="number" style="align:right middle;background:EXPR(getRowLevel(currow) == 0 ? &quot;#ffff66ff&quot; :&quot;#cefcfaff&quot;);background2:EXPR(getRowLevel(currow) == 0 ? &quot;#ffff66ff&quot; :&quot;#cefcfaff&quot;);" text="bind:medcaretotamt"/>
  130. <Cell col="16" displaytype="number" style="align:right middle;background:EXPR(getRowLevel(currow) == 0 ? &quot;#ffff55ff&quot; :&quot;#cefcfaff&quot;);background2:EXPR(getRowLevel(currow) == 0 ? &quot;#ffff55ff&quot; :&quot;#cefcfaff&quot;);" text="bind:ownbamt"/>
  131. <Cell col="17" displaytype="number" style="align:right middle;background:EXPR(getRowLevel(currow) == 0 ? &quot;#ffff44ff&quot; :&quot;#cefcfaff&quot;);background2:EXPR(getRowLevel(currow) == 0 ? &quot;#ffff44ff&quot; :&quot;#cefcfaff&quot;);" text="bind:insuclamamt"/>
  132. <Cell col="18" displaytype="number" style="align:right middle;background:EXPR(getRowLevel(currow) == 0 ? &quot;#ffff33ff&quot; :&quot;#cefcfaff&quot;);background2:EXPR(getRowLevel(currow) == 0 ? &quot;#ffff33ff&quot; :&quot;#cefcfaff&quot;);" text="bind:blwtotownamt"/>
  133. <Cell col="19" displaytype="number" style="align:right middle;background:EXPR(getRowLevel(currow) == 0 ? &quot;#ffff33ff&quot; :&quot;#cefcfaff&quot;);background2:EXPR(getRowLevel(currow) == 0 ? &quot;#ffff33ff&quot; :&quot;#cefcfaff&quot;);" text="bind:blwownbamt"/>
  134. <Cell col="20" displaytype="number" style="align:right middle;background:EXPR(getRowLevel(currow) == 0 ? &quot;#ffff33ff&quot; :&quot;#cefcfaff&quot;);background2:EXPR(getRowLevel(currow) == 0 ? &quot;#ffff33ff&quot; :&quot;#cefcfaff&quot;);" text="bind:blwinsuclamamt"/>
  135. <Cell col="21" displaytype="number" style="align:right middle;background:EXPR(getRowLevel(currow) == 0 ? &quot;#cefcfaff&quot; :&quot;#ffff33ff&quot;);background2:EXPR(getRowLevel(currow) == 0 ? &quot;#cefcfaff&quot; :&quot;#cefcfaff&quot;);" text="bind:ownbmaxexamt"/>
  136. <Cell col="22" displaytype="number" style="align:right middle;background:EXPR(getRowLevel(currow) == 0 ? &quot;#ffccccff&quot; :&quot;#cefcfaff&quot;);background2:EXPR(getRowLevel(currow) == 0 ? &quot;#ffccccff&quot; :&quot;#cefcfaff&quot;);" text="bind:suppamt"/>
  137. <Cell col="23" displaytype="number" style="align:right middle;background:EXPR(getRowLevel(currow) == 0 ? &quot;#ffccccff&quot; :&quot;#cefcfaff&quot;);background2:EXPR(getRowLevel(currow) == 0 ? &quot;#ffccccff&quot; :&quot;#cefcfaff&quot;);" text="bind:ksuppamt"/>
  138. <Cell col="24" displaytype="number" style="align:right middle;background:EXPR(getRowLevel(currow) == 0 ? &quot;#ffccccff&quot; :&quot;#cefcfaff&quot;);background2:EXPR(getRowLevel(currow) == 0 ? &quot;#ffccccff&quot; :&quot;#cefcfaff&quot;);" text="bind:hsuppamt"/>
  139. <Cell col="25" displaytype="number" style="align:right middle;background:EXPR(getRowLevel(currow) == 0 ? &quot;#ffccccff&quot; :&quot;#cefcfaff&quot;);background2:EXPR(getRowLevel(currow) == 0 ? &quot;#ffccccff&quot; :&quot;#cefcfaff&quot;);" text="bind:gsuppamt"/>
  140. <Cell col="26" displaytype="number" style="align:right middle;background:EXPR(getRowLevel(currow) == 0 ? &quot;#ffcceeff&quot; :&quot;#cefcfaff&quot;);background2:EXPR(getRowLevel(currow) == 0 ? &quot;#ffcceeff&quot; :&quot;#cefcfaff&quot;);" text="bind:handcaprfund"/>
  141. <Cell col="27" displaytype="number" style="align:right middle;background:EXPR(getRowLevel(currow) == 0 ? &quot;#ffccddff&quot; :&quot;#cefcfaff&quot;);background2:EXPR(getRowLevel(currow) == 0 ? &quot;#ffccddff&quot; :&quot;#cefcfaff&quot;);" text="bind:totlimitdiffamt"/>
  142. <Cell col="28" displaytype="number" style="align:right middle;background:EXPR(getRowLevel(currow) == 0 ? &quot;#ffccccff&quot; :&quot;#cefcfaff&quot;);background2:EXPR(getRowLevel(currow) == 0 ? &quot;#ffccccff&quot; :&quot;#cefcfaff&quot;);" text="bind:subtamt"/>
  143. <Cell col="29" style="align:right middle;background:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);background2:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);" text="bind:clamstatcnt"/>
  144. <Cell col="30" style="align:center middle;background:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);background2:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);" text="bind:lockyn"/>
  145. <Cell col="31" style="align:center middle;background:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);background2:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);" text="bind:edistatcd"/>
  146. <Cell col="32" style="align:center middle;background:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);background2:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);" text="bind:insurkindflag"/>
  147. <Cell col="33" style="align:center middle;background:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);background2:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);" text="bind:fstrgstrid"/>
  148. <Cell col="34" style="align:center middle;background:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);background2:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);" text="bind:acptno"/>
  149. <Cell col="35" displaytype="date" style="align:center middle;background:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);background2:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);" text="bind:acptdd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
  150. <Cell col="36" style="align:center middle;background:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);background2:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);" text="bind:clamfromdd"/>
  151. <Cell col="37" style="align:center middle;background:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);background2:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);" text="bind:clamtodd"/>
  152. <Cell col="38" style="align:center middle;background:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);background2:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);" text="bind:sammakeflag"/>
  153. <Cell col="39" style="background:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);background2:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);" text="bind:totaltype"/>
  154. <Cell col="40" style="background:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);background2:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);" text="bind:workflag"/>
  155. <Cell col="41" style="background:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);background2:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);" text="bind:seqno"/>
  156. <Cell col="42" displaytype="text" edittype="text" style="background:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);background2:EXPR(getRowLevel(currow) == 0 ? &quot;&quot; :&quot;#cefcfaff&quot;);" text="bind:rem" expandshow="show" expandsize="20"/>
  157. </Band>
  158. <Band id="summary">
  159. <Cell/>
  160. <Cell col="1"/>
  161. <Cell col="2"/>
  162. <Cell col="3"/>
  163. <Cell col="4"/>
  164. <Cell col="5"/>
  165. <Cell col="6"/>
  166. <Cell col="7"/>
  167. <Cell col="8"/>
  168. <Cell col="9"/>
  169. <Cell col="10" text="총합계"/>
  170. <Cell col="11"/>
  171. <Cell col="12"/>
  172. <Cell col="13" displaytype="number" text="expr:getSum(&quot;clbscnt&quot;)"/>
  173. <Cell col="14" displaytype="number" text="expr:getSum(&quot;clamcnt&quot;)"/>
  174. <Cell col="15" displaytype="number" text="expr:getSum(&quot;medcaretotamt&quot;)"/>
  175. <Cell col="16" displaytype="number" text="expr:getSum(&quot;ownbamt&quot;)"/>
  176. <Cell col="17" displaytype="number" text="expr:getSum(&quot;insuclamamt&quot;)"/>
  177. <Cell col="18" displaytype="number" text="expr:getSum(&quot;blwtotownamt&quot;)"/>
  178. <Cell col="19" displaytype="number" text="expr:getSum(&quot;blwownbamt&quot;)"/>
  179. <Cell col="20" displaytype="number" text="expr:getSum(&quot;blwinsuclamamt&quot;)"/>
  180. <Cell col="21" displaytype="number" text="expr:getSum(&quot;ownbmaxexamt&quot;)"/>
  181. <Cell col="22" displaytype="number" text="expr:getSum(&quot;suppamt&quot;)"/>
  182. <Cell col="23" displaytype="number" text="expr:getSum(&quot;ksuppamt&quot;)"/>
  183. <Cell col="24" displaytype="number" text="expr:getSum(&quot;hsuppamt&quot;)"/>
  184. <Cell col="25" displaytype="number" text="expr:getSum(&quot;gsuppamt&quot;)"/>
  185. <Cell col="26" displaytype="number" text="expr:getSum(&quot;handcaprfund&quot;)"/>
  186. <Cell col="27" displaytype="number" text="expr:getSum(&quot;totlimitdiffamt&quot;)"/>
  187. <Cell col="28" displaytype="number" text="expr:getSum(&quot;subtamt&quot;)"/>
  188. <Cell col="29"/>
  189. <Cell col="30"/>
  190. <Cell col="31"/>
  191. <Cell col="32"/>
  192. <Cell col="33"/>
  193. <Cell col="34"/>
  194. <Cell col="35"/>
  195. <Cell col="36"/>
  196. <Cell col="37"/>
  197. <Cell col="38"/>
  198. <Cell col="39"/>
  199. <Cell col="40"/>
  200. <Cell col="41"/>
  201. <Cell col="42"/>
  202. </Band>
  203. </Format>
  204. </Formats>
  205. </Grid>
  206. <Button id="btn_inafterjudg" taborder="1" text="입원사후" onclick="group3_btn_inafterjudg_onclick" class="btn2" position="absolute 291 0 355 19" anchor="top right"/>
  207. <Button id="btn_outafterjudg" taborder="2" text="외래사후" onclick="group3_btn_outafterjudg_onclick" class="btn2" position="absolute 356 0 420 19" anchor="top right"/>
  208. <Button id="btn_locky" taborder="3" text="잠금설정" onclick="group3_btn_locky_onclick" class="btn2" position="absolute 421 0 485 19" anchor="top right"/>
  209. <Button id="btn_lockn" taborder="4" text="잠금해제" onclick="group3_btn_lockn_onclick" class="btn2" position="absolute 486 0 550 19" anchor="top right"/>
  210. <Button id="btn_makeclam" taborder="5" text="청구서생성" onclick="group3_btn_makeclam_onclick" class="btn5" position="absolute 551 0 626 19" anchor="top right"/>
  211. <Button id="button3" taborder="6" text="청구서배치로그" onclick="group3_button3_onclick" class="btn5" position="absolute 627 0 728 19" anchor="top right"/>
  212. <Button id="button2" taborder="7" text="변경검사" onclick="group3_button2_onclick" class="btn5" position="absolute 729 0 793 19" anchor="top right"/>
  213. <Button id="btn_makesam" taborder="8" text="SAM생성" onclick="group3_btn_makesam_onclick" class="btn5" position="absolute 794 0 863 19" anchor="top right"/>
  214. <Button id="button7" taborder="9" text="SAM 생성_ur" onclick="group3_button7_onclick" class="btn5" position="absolute 864 0 958 19" anchor="top right"/>
  215. <Button id="btn_batchlog" taborder="10" text="SAM배치로그" onclick="group3_btn_batchlog_onclick" class="btn5" position="absolute 959 0 1053 19" anchor="top right"/>
  216. <Button id="btn_urscope" taborder="11" text="UR용샘생성" onclick="group3_btn_urscope_onclick" class="btn2" position="absolute 1054 0 1135 19" anchor="top right"/>
  217. <Button id="btn_trcompletion" taborder="12" text="송신완료" onclick="group3_btn_trcompletion_onclick" class="btn2" position="absolute 1136 0 1200 19" anchor="top right"/>
  218. <Button id="button4" taborder="13" text="셀카피" onclick="group3_button4_onclick" class="btn2" position="absolute 129 0 182 19" anchor="top right"/>
  219. <Button id="button5" taborder="14" text="열카피" onclick="group3_button5_onclick" class="btn2" position="absolute 183 0 236 19" anchor="top right"/>
  220. <Button id="button6" taborder="15" text="행카피" onclick="group3_button6_onclick" class="btn2" position="absolute 237 0 290 19" anchor="top right"/>
  221. <Button id="btn_exel" taborder="16" text="엑셀저장" onclick="btn_exel_onclick" class="btn7" position="absolute 53 0 128 19" anchor="top right"/>
  222. </Layout>
  223. </Layouts>
  224. </Tabpage>
  225. <Tabpage id="tabpage2" text="명세서내역">
  226. <Layouts>
  227. <Layout>
  228. <Grid id="Grid00" taborder="0" useinputpanel="false" position="absolute 0 20 1199 640" binddataset="ds_grd_pidmclbs" selecttype="multiarea" onkeydown="group3_Tab00_tabpage2_Grid00_onkeydown" anchor="all">
  229. <Formats>
  230. <Format id="default">
  231. <Columns>
  232. <Column size="34"/>
  233. <Column size="60"/>
  234. <Column size="40"/>
  235. <Column size="65"/>
  236. <Column size="116"/>
  237. <Column size="65"/>
  238. <Column size="40"/>
  239. <Column size="74"/>
  240. <Column size="79"/>
  241. <Column size="75"/>
  242. <Column size="75"/>
  243. <Column size="56"/>
  244. <Column size="40"/>
  245. <Column size="59"/>
  246. <Column size="80"/>
  247. <Column size="80"/>
  248. <Column size="94"/>
  249. </Columns>
  250. <Rows>
  251. <Row size="48" band="head"/>
  252. <Row size="24"/>
  253. </Rows>
  254. <Band id="head">
  255. <Cell/>
  256. <Cell col="1" text="청구년월"/>
  257. <Cell col="2" text="내원&#13;&#10;유형"/>
  258. <Cell col="3" text="심사자"/>
  259. <Cell col="4" text="진료과"/>
  260. <Cell col="5" text="환자번호"/>
  261. <Cell col="6" text="순번"/>
  262. <Cell col="7" text="환자명"/>
  263. <Cell col="8" text="보험유형"/>
  264. <Cell col="9" text="진료개실일"/>
  265. <Cell col="10" text="진료종료일"/>
  266. <Cell col="11" text="청구구분"/>
  267. <Cell col="12" text="청구&#13;&#10;차수"/>
  268. <Cell col="13" text="심사상태"/>
  269. <Cell col="14" text="청구번호"/>
  270. <Cell col="15" text="명일련"/>
  271. <Cell col="16" text="청구분야"/>
  272. </Band>
  273. <Band id="body">
  274. <Cell celltype="head" expr="expr:currow + 1"/>
  275. <Cell col="1" displaytype="date" style="align:center middle;" text="bind:clamym" mask="yyyy-MM"/>
  276. <Cell col="2" displaytype="combo" style="align:center middle;" text="bind:ioflag" combodataset="ds_init_cmb_ioflag" combocodecol="cdid" combodatacol="cdnm"/>
  277. <Cell col="3" displaytype="combo" style="align:center middle;" text="bind:judgrid" combodataset="ds_init_judgrid" combocodecol="judgrid" combodatacol="judgrnm"/>
  278. <Cell col="4" displaytype="combo" style="align:center middle;" text="bind:orddeptcd" combodataset="ds_init_orddeptcd" combocodecol="cd" combodatacol="nm"/>
  279. <Cell col="5" style="align:center middle;" text="bind:pid"/>
  280. <Cell col="6" text="bind:pidsn"/>
  281. <Cell col="7" style="align:center middle;" text="bind:patnm"/>
  282. <Cell col="8" displaytype="combo" style="align:center middle;" text="bind:insukind" combodataset="ds_init_P0008" combocodecol="cdid" combodatacol="cdnm"/>
  283. <Cell col="9" displaytype="date" style="align:center middle;" text="bind:ordfromdd" mask="yyyy-MM-dd"/>
  284. <Cell col="10" displaytype="date" style="align:center middle;" text="bind:ordtodd" mask="yyyy-MM-dd"/>
  285. <Cell col="11" displaytype="combo" style="align:center middle;" text="bind:clamflag" combodataset="ds_init_cmb_clamflag" combocodecol="cdid" combodatacol="cdnm"/>
  286. <Cell col="12" displaytype="text" style="align:center middle;" text="bind:clamdg"/>
  287. <Cell col="13" displaytype="combo" style="align:center middle;" text="bind:judgendyn" combodataset="ds_init_P0151" combocodecol="cdid" combodatacol="cdnm"/>
  288. <Cell col="14" text="bind:clamno"/>
  289. <Cell col="15" text="bind:docuseqno"/>
  290. <Cell col="16" displaytype="normal" text="bind:sumtypecdnm"/>
  291. </Band>
  292. </Format>
  293. </Formats>
  294. </Grid>
  295. <Button id="button4" taborder="1" text="엑셀저장" class="btn7" position="absolute 1119 0 1199 19" anchor="top right" onclick="group3_Tab00_tabpage2_button4_onclick"/>
  296. </Layout>
  297. </Layouts>
  298. </Tabpage>
  299. </Tabpages>
  300. </Tab>
  301. <Button id="btn_renamefile" taborder="18" text="파일명 일괄수정" onclick="btn_renamefile_onclick" class="btn3" position="absolute 1070 7 1200 27" anchor="top right"/>
  302. </Layout>
  303. </Layouts>
  304. </Div>
  305. <Div position="absolute 0 784 1200 804" id="grp_btn" scrollbars="autoboth" anchor="left right bottom">
  306. <Layouts>
  307. <Layout>
  308. <Static id="caption1" text="[보류, 삭제, 자동삭제 건수는 명세건수와 청구건수에서 제외됨]" position="absolute 5 0 528 20" anchor="left bottom" style="color:red;font:Dotum,11,bold;"/>
  309. <Static id="caption4" text="[청구차수] 원:1 보완:1001 추가:2001 누락:9001" position="absolute 528 0 835 20" anchor="left bottom"/>
  310. <Button id="button10" taborder="1" text="생성" class="btn4" visible="false" position="absolute 1143 0 1199 20" anchor="top right" onclick="grp_btn_button10_onclick"/>
  311. </Layout>
  312. </Layouts>
  313. </Div>
  314. <Div position="absolute 395 230 810 405" id="grp_rem" visible="false">
  315. <Layouts>
  316. <Layout>
  317. <Shape position="absolute 2 2 415 175" id="roundrect5" type="roundrectangle"/>
  318. <TextArea position="absolute 6 24 410 144" id="ipt_rem" oneditclick="grp_rem_ipt_rem_oneditclick" scrollbars="autovert" wordwrap="word"/>
  319. <Static text="참고사항" position="absolute 6 5 160 22" id="caption14" class="search_name"/>
  320. <Button position="absolute 295 150 351 172" id="btn_confirm2" class="btn4" text="확인" onclick="grp_rem_btn_confirm2_onclick"/>
  321. <Button position="absolute 354 150 410 172" id="btn_cancel2" class="btn4" text="취소" onclick="grp_rem_btn_cancel2_onclick"/>
  322. </Layout>
  323. </Layouts>
  324. </Div>
  325. <Static id="caption6" text="EDI청구SAM파일생성" class="tit_1" position="absolute 0 0 186 26"/>
  326. <Div id="group2" taborder="1" position="absolute 0 26 1200 109" anchor="left top right" class="div_SA">
  327. <Layouts>
  328. <Layout>
  329. <Button id="button1" taborder="6" text="조회" class="btn1" position="absolute 1132 26 1188 48" anchor="top right" onclick="group2_button1_onclick"/>
  330. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1121 12 1127 65" anchor="top right"/>
  331. <Radio id="rdo_numflag" taborder="7" columncount="2" rowcount="2" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 99 30 235 48" anchor="left top" onitemchanged="group2_rdo_numflag_onitemchanged">
  332. <Dataset id="innerdataset">
  333. <ColumnInfo>
  334. <Column id="codecolumn"/>
  335. <Column id="datacolumn"/>
  336. </ColumnInfo>
  337. <Rows>
  338. <Row>
  339. <Col id="codecolumn">1</Col>
  340. <Col id="datacolumn">청구번호</Col>
  341. </Row>
  342. <Row>
  343. <Col id="codecolumn">2</Col>
  344. <Col id="datacolumn">접수번호</Col>
  345. </Row>
  346. </Rows>
  347. </Dataset>
  348. </Radio>
  349. <Edit id="ipt_srchnum" taborder="8" class="input_search" position="absolute 240 30 340 49" anchor="left top" oneditclick="group2_ipt_srchnum_oneditclick" onkeydown="group2_ipt_srchnum_onkeydown"/>
  350. <Static id="caption10" text="내원유형 :" class="search_name" position="absolute 350 5 423 24" anchor="left top"/>
  351. <Radio id="rdo_ioflag" taborder="9" columncount="3" rowcount="1" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 426 5 553 24" anchor="left top">
  352. <Dataset id="innerdataset">
  353. <ColumnInfo>
  354. <Column id="codecolumn"/>
  355. <Column id="datacolumn"/>
  356. </ColumnInfo>
  357. <Rows>
  358. <Row>
  359. <Col id="codecolumn">1</Col>
  360. <Col id="datacolumn">전체</Col>
  361. </Row>
  362. <Row>
  363. <Col id="codecolumn">2</Col>
  364. <Col id="datacolumn">입원</Col>
  365. </Row>
  366. <Row>
  367. <Col id="codecolumn">3</Col>
  368. <Col id="datacolumn">외래</Col>
  369. </Row>
  370. </Rows>
  371. </Dataset>
  372. </Radio>
  373. <Static id="caption19" text="보험유형 :" class="search_name" position="absolute 10 5 96 24" anchor="left top"/>
  374. <Static id="caption7" text="~" position="absolute 978 5 993 24" anchor="top right"/>
  375. <Static id="caption2" text="청구구분 :" class="search_name" position="absolute 350 30 424 47" anchor="left top"/>
  376. <Static id="caption3" text="청구분야 :" class="search_name" position="absolute 350 53 424 70" anchor="left top"/>
  377. <Calendar id="ipt_fromcretdd" taborder="10" class="input_search" position="absolute 865 5 973 24" mask="yyyy-MM" anchor="top right" editformat="yyyy-MM" dateformat="yyyy-MM" value="null" oneditclick="group2_ipt_fromcretdd_oneditclick" onchanged="group2_ipt_fromcretdd_onchanged"/>
  378. <Calendar id="ipt_tocretdd" taborder="11" class="input_search" position="absolute 992 5 1099 24" mask="yyyy-mm-dd" anchor="top right" editformat="yyyy-MM" dateformat="yyyy-MM" value="null" onchanged="group2_ipt_tocretdd_onchanged" oneditclick="group2_ipt_tocretdd_oneditclick"/>
  379. <Combo id="cmb_clamflag" taborder="12" innerdataset="ds_init_cmb_clamflag" codecolumn="cdid" datacolumn="cdnm" class="combo_search" position="absolute 426 30 556 49" anchor="left top"/>
  380. <Combo id="cmb_ordfildcd" taborder="13" innerdataset="ds_init_cmb_ordfildcd" codecolumn="cdid" datacolumn="cdnm" class="combo_search" position="absolute 426 53 556 72" anchor="left top"/>
  381. <Radio id="rdo_termflag" taborder="14" columncount="-1" rowcount="-1" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 601 5 836 24" anchor="top right" onitemchanged="group2_rdo_termflag_onitemchanged" onitemclick="group2_rdo_termflag_onitemclick">
  382. <Dataset id="innerdataset">
  383. <ColumnInfo>
  384. <Column id="codecolumn"/>
  385. <Column id="datacolumn"/>
  386. </ColumnInfo>
  387. <Rows>
  388. <Row>
  389. <Col id="codecolumn">1</Col>
  390. <Col id="datacolumn">청구월</Col>
  391. </Row>
  392. <Row>
  393. <Col id="codecolumn">3</Col>
  394. <Col id="datacolumn">청구서 생성일</Col>
  395. </Row>
  396. <Row>
  397. <Col id="codecolumn">4</Col>
  398. <Col id="datacolumn">접수일자</Col>
  399. </Row>
  400. </Rows>
  401. </Dataset>
  402. </Radio>
  403. <CheckBox id="chk_insukindAll" taborder="15" position="absolute 99 5 144 24" anchor="left top" text="전체" truevalue="Y" onchanged="group2_chk_insukindAll_onchanged" value="Y"/>
  404. <CheckBox id="chk_insukind1" taborder="16" position="absolute 147 5 192 24" anchor="left top" text="보험" truevalue="Y" onchanged="chk_insukind1_onchanged"/>
  405. <CheckBox id="chk_insukind2" taborder="17" position="absolute 195 5 240 24" anchor="left top" text="급여" truevalue="Y" onchanged="chk_insukind1_onchanged"/>
  406. <CheckBox id="chk_insukind3" taborder="18" position="absolute 243 5 288 24" anchor="left top" text="산재" truevalue="Y" onchanged="chk_insukind1_onchanged"/>
  407. <CheckBox id="chk_insukind4" taborder="19" position="absolute 291 5 336 24" anchor="left top" text="자보" truevalue="Y" onchanged="chk_insukind1_onchanged"/>
  408. <Static id="caption8" text="청구차수 :" class="search_name" position="absolute 9 53 99 70" anchor="left top"/>
  409. <Combo id="cmb_clamdg" taborder="20" innerdataset="ds_init_cmb_clamdg" codecolumn="cdnm" datacolumn="cdid" class="combo_search" position="absolute 104 53 203 72" anchor="left top"/>
  410. <Shape id="roundrect4" type="roundrectangle" class="roundrect_btnset" position="absolute 595 29 1100 79" anchor="top right" onclick="group2_roundrect4_onclick"/>
  411. <CheckBox id="bool1" taborder="21" position="absolute 603 31 690 51" anchor="top right" text="지원금보기" truevalue="Y"/>
  412. <CheckBox id="bool2" taborder="22" position="absolute 698 31 780 51" anchor="top right" text="미생성만" truevalue="Y"/>
  413. <CheckBox id="bool3" taborder="23" position="absolute 788 31 857 51" anchor="top right" text="미청구만" truevalue="Y"/>
  414. <CheckBox id="bool4" taborder="24" position="absolute 603 55 784 75" anchor="top right" text="명세서건수/청구건수 불일치" truevalue="Y"/>
  415. <CheckBox id="dtlclbsyn" taborder="25" text="상세현황" truevalue="Y" position="absolute 788 55 864 75" anchor="top right" falsevalue="N"/>
  416. <CheckBox id="bool00" taborder="26" text="미심결만" truevalue="Y" position="absolute 873 31 944 51" anchor="top right"/>
  417. </Layout>
  418. </Layouts>
  419. </Div>
  420. <Button id="btn_delclam" taborder="2" text="청구서삭제" class="btn2" enable="false" visible="false" position="absolute 1020 85 1095 104" anchor="top right" onclick="btn_delclam_onclick"/>
  421. <Grid id="grd_saminfoinducs" class="datagrid2" taborder="4" binddataset="ds_grd_saminfoinducs" useinputpanel="false" visible="false" position="absolute 1212 240 1832 447" cellsizingtype="col">
  422. <Formats>
  423. <Format id="default">
  424. <Columns>
  425. <Column size="25"/>
  426. <Column size="55"/>
  427. <Column size="55"/>
  428. <Column size="55"/>
  429. <Column size="55"/>
  430. <Column size="55"/>
  431. <Column size="55"/>
  432. <Column size="83"/>
  433. <Column size="80"/>
  434. <Column size="80"/>
  435. <Column size="50"/>
  436. <Column size="85"/>
  437. <Column size="85"/>
  438. <Column size="85"/>
  439. <Column size="66"/>
  440. <Column size="99"/>
  441. <Column size="98"/>
  442. <Column size="60"/>
  443. <Column size="94"/>
  444. </Columns>
  445. <Rows>
  446. <Row size="24" band="head"/>
  447. <Row size="24"/>
  448. </Rows>
  449. <Band id="head">
  450. <Cell/>
  451. <Cell col="1" text="분야"/>
  452. <Cell col="2" text="내원유형"/>
  453. <Cell col="3" text="청구년월"/>
  454. <Cell col="4" text="청구구분"/>
  455. <Cell col="5" text="청구차수"/>
  456. <Cell col="6" text="진료월"/>
  457. <Cell col="7" text="청구서생성일"/>
  458. <Cell col="8" text="청구번호"/>
  459. <Cell col="9" text="청구건수"/>
  460. <Cell col="10" text="건수"/>
  461. <Cell col="11" text="청구액계"/>
  462. <Cell col="12" text="청구액"/>
  463. <Cell col="13" text="상태"/>
  464. <Cell col="14" text="접수번호"/>
  465. <Cell col="15" text="명세서시작일자"/>
  466. <Cell col="16" text="명세서종료일자"/>
  467. <Cell col="17" text="잠금상태"/>
  468. <Cell col="18" text="청구서생성자"/>
  469. </Band>
  470. <Band id="body">
  471. <Cell text="bind:chkbox" edittype="checkbox" displaytype="checkbox"/>
  472. <Cell col="1" enable="false" text="bind:ordfildcd" edittype="combo" displaytype="combo"/>
  473. <Cell col="2" enable="false" text="bind:ioflag" edittype="combo" displaytype="combo"/>
  474. <Cell col="3" text="bind:clamym" mask="yyyy-mm"/>
  475. <Cell col="4" enable="false" text="bind:clamflag" edittype="combo" displaytype="combo"/>
  476. <Cell col="5" text="bind:clamdg"/>
  477. <Cell col="6" text="bind:ordym" mask="yyyy-mm"/>
  478. <Cell col="7" text="bind:clamdocdd" mask="yyyy-mm-dd"/>
  479. <Cell col="8" text="bind:clamno"/>
  480. <Cell col="9" text="bind:sumcnt"/>
  481. <Cell col="10" text="bind:cnt" mask="#,###"/>
  482. <Cell col="11" text="bind:sumamt" mask="#,###"/>
  483. <Cell col="12" text="bind:amt" mask="#,###"/>
  484. <Cell col="13" text="bind:edistatcd"/>
  485. <Cell col="14" text="bind:acptno"/>
  486. <Cell col="15" text="bind:clamfromdd"/>
  487. <Cell col="16" text="bind:clamtodd"/>
  488. <Cell col="17" text="bind:lockyn"/>
  489. <Cell col="18" text="bind:fstrgstrid"/>
  490. </Band>
  491. </Format>
  492. </Formats>
  493. </Grid>
  494. </Layout>
  495. </Layouts>
  496. <Objects>
  497. <Dataset id="ds_init_cmb_clamflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  498. <ColumnInfo>
  499. <Column id="cdnm" type="STRING"/>
  500. <Column id="cdid" type="STRING"/>
  501. </ColumnInfo>
  502. </Dataset>
  503. <Dataset id="ds_init_cmb_ordfildcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  504. <ColumnInfo>
  505. <Column id="cdnm" type="STRING"/>
  506. <Column id="cdid" type="STRING"/>
  507. </ColumnInfo>
  508. </Dataset>
  509. <Dataset id="ds_init_cmb_clamdg" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  510. <ColumnInfo>
  511. <Column id="cdid" type="STRING"/>
  512. <Column id="cdnm" type="STRING"/>
  513. </ColumnInfo>
  514. </Dataset>
  515. <Dataset id="ds_grd_saminfoinducs" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  516. <ColumnInfo>
  517. <Column id="chkbox" type="STRING"/>
  518. <Column id="ordfildcd" type="STRING"/>
  519. <Column id="ioflag" type="STRING"/>
  520. <Column id="clamym" type="STRING"/>
  521. <Column id="clamflag" type="STRING"/>
  522. <Column id="clamdg" type="STRING"/>
  523. <Column id="ordym" type="STRING"/>
  524. <Column id="clamdocdd" type="STRING"/>
  525. <Column id="clamno" type="STRING"/>
  526. <Column id="sumcnt" type="STRING"/>
  527. <Column id="cnt" type="STRING"/>
  528. <Column id="sumamt" type="STRING"/>
  529. <Column id="amt" type="STRING"/>
  530. <Column id="edistatcd" type="STRING"/>
  531. <Column id="acptno" type="STRING"/>
  532. <Column id="clamfromdd" type="STRING"/>
  533. <Column id="clamtodd" type="STRING"/>
  534. <Column id="lockyn" type="STRING"/>
  535. <Column id="fstrgstrid" type="STRING"/>
  536. </ColumnInfo>
  537. </Dataset>
  538. <Dataset id="ds_grd_saminfo" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_grd_saminfo_oncolumnchanged">
  539. <ColumnInfo>
  540. <Column id="chkbox" type="STRING" size="5"/>
  541. <Column id="clamym" type="STRING" prop="NONE"/>
  542. <Column id="ioflag" type="STRING" prop="NONE"/>
  543. <Column id="clamtypecd" type="STRING"/>
  544. <Column id="insucmno" type="STRING"/>
  545. <Column id="sumtypecdnm" type="STRING"/>
  546. <Column id="sumtypecd" type="STRING"/>
  547. <Column id="clamflag" type="STRING"/>
  548. <Column id="clamdg" type="STRING"/>
  549. <Column id="ordym" type="STRING" prop="TEXT" sumtext="소계"/>
  550. <Column id="clamno" type="STRING"/>
  551. <Column id="clbscnt" type="BIGDECIMAL" prop="SUM"/>
  552. <Column id="clamcnt" type="BIGDECIMAL" prop="SUM"/>
  553. <Column id="medcaretotamt" type="BIGDECIMAL" prop="SUM"/>
  554. <Column id="ownbamt" type="BIGDECIMAL" prop="SUM" size="255"/>
  555. <Column id="insuclamamt" type="BIGDECIMAL" prop="SUM"/>
  556. <Column id="blwtotownamt" type="BIGDECIMAL" prop="SUM"/>
  557. <Column id="blwownbamt" type="BIGDECIMAL" prop="SUM"/>
  558. <Column id="blwinsuclamamt" type="BIGDECIMAL" prop="SUM"/>
  559. <Column id="ownbmaxexamt" type="BIGDECIMAL" prop="SUM"/>
  560. <Column id="suppamt" type="BIGDECIMAL" prop="SUM"/>
  561. <Column id="ksuppamt" type="BIGDECIMAL" prop="SUM"/>
  562. <Column id="hsuppamt" type="BIGDECIMAL" prop="SUM"/>
  563. <Column id="gsuppamt" type="BIGDECIMAL" prop="SUM"/>
  564. <Column id="handcaprfund" type="BIGDECIMAL" prop="SUM"/>
  565. <Column id="totlimitdiffamt" type="BIGDECIMAL" prop="SUM"/>
  566. <Column id="subtamt" type="BIGDECIMAL" prop="SUM"/>
  567. <Column id="clamstatcnt" type="STRING" prop="SUM"/>
  568. <Column id="lockyn" type="STRING"/>
  569. <Column id="edistatcd" type="STRING"/>
  570. <Column id="insurkindflag" type="STRING"/>
  571. <Column id="fstrgstrid" type="STRING"/>
  572. <Column id="acptno" type="STRING"/>
  573. <Column id="acptdd" type="STRING"/>
  574. <Column id="clamfromdd" type="STRING"/>
  575. <Column id="clamtodd" type="STRING"/>
  576. <Column id="sammakeflag" type="STRING"/>
  577. <Column id="totaltype" type="STRING"/>
  578. <Column id="workflag" type="STRING"/>
  579. <Column id="seqno" type="STRING"/>
  580. <Column id="rem" type="STRING"/>
  581. <Column id="flag" type="STRING" size="256"/>
  582. <Column id="ordfildcd" type="STRING" size="256"/>
  583. <Column id="clamdd" type="STRING" size="256"/>
  584. <Column id="clamdocdd" type="STRING" size="256"/>
  585. <Column id="clbsordfildcd" type="STRING" size="256"/>
  586. </ColumnInfo>
  587. </Dataset>
  588. <Dataset id="ds_send_clamdg" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  589. <ColumnInfo>
  590. <Column id="dateflag" type="STRING" size="256"/>
  591. <Column id="fromdd" type="STRING" size="256"/>
  592. <Column id="todd" type="STRING" size="256"/>
  593. <Column id="ioflag" type="STRING" size="256"/>
  594. <Column id="insukind" type="STRING" size="256"/>
  595. <Column id="clamflag" type="STRING" size="256"/>
  596. <Column id="ordfildcd" type="STRING" size="256"/>
  597. </ColumnInfo>
  598. <Rows>
  599. <Row>
  600. <Col id="dateflag">1</Col>
  601. </Row>
  602. </Rows>
  603. </Dataset>
  604. <Dataset id="ds_PK032list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  605. <Dataset id="ds_init_cmb_clamtypecd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  606. <Dataset id="ds_init_cmb_ioflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  607. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  608. <ColumnInfo>
  609. <Column id="insurkindflag" type="STRING" size="256" sumtext="보험유형"/>
  610. <Column id="insurkindAll" type="STRING" size="256" sumtext="보험유형"/>
  611. <Column id="insurkind1" type="STRING" size="256" sumtext="보험유형"/>
  612. <Column id="insurkind2" type="STRING" size="256" sumtext="보험유형"/>
  613. <Column id="insurkind3" type="STRING" size="256" sumtext="보험유형"/>
  614. <Column id="insurkind4" type="STRING" size="256" sumtext="보험유형"/>
  615. <Column id="ioflag" type="STRING" size="256" sumtext="내원구분"/>
  616. <Column id="fromcretdd" type="STRING" size="256" sumtext="청구생성시작일"/>
  617. <Column id="tocretdd" type="STRING" size="256" sumtext="청구생성종료일"/>
  618. <Column id="clamflag" type="STRING" size="256" sumtext="청구구분"/>
  619. <Column id="ordfildcd" type="STRING" size="256" sumtext="청구분야"/>
  620. <Column id="srchnum" type="STRING" size="256" sumtext="조회번호"/>
  621. <Column id="numflag" type="STRING" size="256" sumtext="조회번호구분"/>
  622. <Column id="termflag" type="STRING" size="256" sumtext="기간구분"/>
  623. <Column id="clamfromdd" type="STRING" size="256" sumtext="명세서시작일자"/>
  624. <Column id="clamtodd" type="STRING" size="256" sumtext="명세서종료일자"/>
  625. <Column id="clamdg" type="STRING" size="256" sumtext="심사차수"/>
  626. <Column id="insucmno" type="STRING" size="256" sumtext="보험회사"/>
  627. <Column id="suppamtyn" type="STRING" size="256" sumtext="보험회사"/>
  628. <Column id="clamexistsyn" type="STRING" size="256" sumtext="미생성만"/>
  629. <Column id="acptnoexistsyn" type="STRING" size="256" sumtext="미청구만"/>
  630. <Column id="clamcntdfyn" type="STRING" size="256" sumtext="청구건수다른건만"/>
  631. <Column id="insukindcd" type="STRING" size="256"/>
  632. <Column id="dtlclbsyn" type="STRING" size="256"/>
  633. <Column id="edistatyn" type="STRING" size="256"/>
  634. </ColumnInfo>
  635. <Rows>
  636. <Row/>
  637. </Rows>
  638. </Dataset>
  639. <Dataset id="ds_return" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  640. <Dataset id="ds_send_clam" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  641. <ColumnInfo>
  642. <Column id="ioflag" type="STRING" size="256" sumtext="내원구분"/>
  643. <Column id="insurkindflag" type="STRING" size="256" sumtext="보험유형"/>
  644. <Column id="clamflag" type="STRING" size="256" sumtext="청구구분"/>
  645. <Column id="clamfromdd" type="STRING" size="256" sumtext="명세서시작일"/>
  646. <Column id="clamtodd" type="STRING" size="256" sumtext="명세서종료일"/>
  647. <Column id="clamcretdd" type="STRING" size="256" sumtext="청구서생성일"/>
  648. <Column id="ordfildcd" type="STRING" size="256" sumtext="진료분야"/>
  649. <Column id="clamym" type="STRING" size="256" sumtext="청구년월"/>
  650. <Column id="clamdg" type="STRING" size="256" sumtext="청구차수"/>
  651. <Column id="sumtypecd" type="STRING" size="256" sumtext="집계형태"/>
  652. <Column id="clamtypecd" type="STRING" size="256" sumtext="유형"/>
  653. <Column id="flag" type="STRING" size="256" sumtext="생성구분자"/>
  654. <Column id="insucmno" type="STRING" size="256" sumtext="보험회사"/>
  655. <Column id="clbsordfildcd" type="STRING" size="256"/>
  656. </ColumnInfo>
  657. </Dataset>
  658. <Dataset id="ds_send_rem" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  659. <ColumnInfo>
  660. <Column id="clamym" type="STRING" size="256"/>
  661. <Column id="clamdg" type="STRING" size="256"/>
  662. <Column id="workflag" type="STRING" size="256"/>
  663. <Column id="seqno" type="STRING" size="256"/>
  664. <Column id="rem" type="STRING" size="256"/>
  665. </ColumnInfo>
  666. <Rows>
  667. <Row/>
  668. </Rows>
  669. </Dataset>
  670. <Dataset id="ds_grd_pidmclbs" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  671. <Dataset id="ds_send_clbs" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  672. <ColumnInfo>
  673. <Column id="chkbox" type="STRING" size="5"/>
  674. <Column id="clamym" type="STRING" prop="NONE"/>
  675. <Column id="ioflag" type="STRING" prop="NONE"/>
  676. <Column id="clamtypecd" type="STRING"/>
  677. <Column id="insucmno" type="STRING"/>
  678. <Column id="sumtypecdnm" type="STRING"/>
  679. <Column id="sumtypecd" type="STRING"/>
  680. <Column id="clamflag" type="STRING"/>
  681. <Column id="clamdg" type="STRING"/>
  682. <Column id="ordym" type="STRING" prop="TEXT" sumtext="소계"/>
  683. <Column id="clamno" type="STRING"/>
  684. <Column id="clbscnt" type="BIGDECIMAL" prop="SUM"/>
  685. <Column id="clamcnt" type="BIGDECIMAL" prop="SUM"/>
  686. <Column id="medcaretotamt" type="BIGDECIMAL" prop="SUM"/>
  687. <Column id="ownbamt" type="BIGDECIMAL" prop="SUM" size="255"/>
  688. <Column id="insuclamamt" type="BIGDECIMAL" prop="SUM"/>
  689. <Column id="blwtotownamt" type="BIGDECIMAL" prop="SUM"/>
  690. <Column id="blwownbamt" type="BIGDECIMAL" prop="SUM"/>
  691. <Column id="blwinsuclamamt" type="BIGDECIMAL" prop="SUM"/>
  692. <Column id="ownbmaxexamt" type="BIGDECIMAL" prop="SUM"/>
  693. <Column id="suppamt" type="BIGDECIMAL" prop="SUM"/>
  694. <Column id="ksuppamt" type="BIGDECIMAL" prop="SUM"/>
  695. <Column id="hsuppamt" type="BIGDECIMAL" prop="SUM"/>
  696. <Column id="gsuppamt" type="BIGDECIMAL" prop="SUM"/>
  697. <Column id="handcaprfund" type="BIGDECIMAL" prop="SUM"/>
  698. <Column id="totlimitdiffamt" type="BIGDECIMAL" prop="SUM"/>
  699. <Column id="subtamt" type="BIGDECIMAL" prop="SUM"/>
  700. <Column id="clamstatcnt" type="STRING" prop="SUM"/>
  701. <Column id="lockyn" type="STRING"/>
  702. <Column id="edistatcd" type="STRING"/>
  703. <Column id="insurkindflag" type="STRING"/>
  704. <Column id="fstrgstrid" type="STRING"/>
  705. <Column id="acptno" type="STRING"/>
  706. <Column id="acptdd" type="STRING"/>
  707. <Column id="clamfromdd" type="STRING"/>
  708. <Column id="clamtodd" type="STRING"/>
  709. <Column id="sammakeflag" type="STRING"/>
  710. <Column id="totaltype" type="STRING"/>
  711. <Column id="workflag" type="STRING"/>
  712. <Column id="seqno" type="STRING"/>
  713. <Column id="rem" type="STRING"/>
  714. <Column id="flag" type="STRING" size="256"/>
  715. <Column id="ordfildcd" type="STRING" size="256"/>
  716. <Column id="clamdd" type="STRING" size="256"/>
  717. <Column id="clamdocdd" type="STRING" size="256"/>
  718. <Column id="dtlclbsyn" type="STRING" size="256"/>
  719. <Column id="clbsordfildcd" type="STRING" size="256"/>
  720. </ColumnInfo>
  721. <Rows>
  722. <Row/>
  723. </Rows>
  724. </Dataset>
  725. <Dataset id="ds_init_P0008" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  726. <Dataset id="ds_init_P0010" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  727. <Dataset id="ds_init_judgrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  728. <Dataset id="ds_init_suppkind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  729. <Dataset id="ds_init_orddrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  730. <Dataset id="ds_init_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  731. <Dataset id="ds_init_P0151" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  732. <Dataset id="ds_temp_saminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  733. </Objects>
  734. <Bind>
  735. <BindItem id="item0" compid="group2.chk_insukindAll" propid="value" datasetid="ds_send" columnid="insurkindAll"/>
  736. <BindItem id="item1" compid="group2.chk_insukind1" propid="value" datasetid="ds_send" columnid="insurkind1"/>
  737. <BindItem id="item2" compid="group2.chk_insukind2" propid="value" datasetid="ds_send" columnid="insurkind2"/>
  738. <BindItem id="item3" compid="group2.chk_insukind3" propid="value" datasetid="ds_send" columnid="insurkind3"/>
  739. <BindItem id="item4" compid="group2.chk_insukind4" propid="value" datasetid="ds_send" columnid="insurkind4"/>
  740. <BindItem id="item5" compid="group2.rdo_ioflag" propid="value" datasetid="ds_send" columnid="ioflag"/>
  741. <BindItem id="item6" compid="group2.rdo_termflag" propid="value" datasetid="ds_send" columnid="termflag"/>
  742. <BindItem id="item7" compid="group2.ipt_fromcretdd" propid="value" datasetid="ds_send" columnid="clamfromdd"/>
  743. <BindItem id="item8" compid="group2.ipt_tocretdd" propid="value" datasetid="ds_send" columnid="clamtodd"/>
  744. <BindItem id="item9" compid="group2.rdo_numflag" propid="value" datasetid="ds_send" columnid="numflag"/>
  745. <BindItem id="item10" compid="group2.ipt_srchnum" propid="value" datasetid="ds_send" columnid="srchnum"/>
  746. <BindItem id="item11" compid="group2.cmb_clamflag" propid="value" datasetid="ds_send" columnid="clamflag"/>
  747. <BindItem id="item12" compid="group2.cmb_ordfildcd" propid="value" datasetid="ds_send" columnid="ordfildcd"/>
  748. <BindItem id="item13" compid="group2.bool1" propid="value" datasetid="ds_send" columnid="suppamtyn"/>
  749. <BindItem id="item14" compid="group2.bool2" propid="value" datasetid="ds_send" columnid="clamexistsyn"/>
  750. <BindItem id="item15" compid="group2.bool3" propid="value" datasetid="ds_send" columnid="acptnoexistsyn"/>
  751. <BindItem id="item16" compid="group2.bool4" propid="value" datasetid="ds_send" columnid="clamcntdfyn"/>
  752. <BindItem id="item17" compid="group2.cmb_clamdg" propid="value" datasetid="ds_send" columnid="clamdg"/>
  753. <BindItem id="item18" compid="grp_rem.ipt_rem" propid="value" datasetid="ds_send_rem" columnid="rem"/>
  754. <BindItem id="item19" compid="group2.dtlclbsyn" propid="value" datasetid="ds_send" columnid="dtlclbsyn"/>
  755. <BindItem id="item20" compid="group2.bool00" propid="value" datasetid="ds_send" columnid="edistatyn"/>
  756. </Bind>
  757. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  758. * System Name :
  759. * Job Name :
  760. * Creator :
  761. * Make Date : 2016-10-07
  762. * Description :
  763. *---------------------------------------------------------------------------------------
  764. * Modify Date Modifier Modify Description
  765. *---------------------------------------------------------------------------------------
  766. * 2016-10-07 Live Converter TF->XP
  767. *
  768. *---------------------------------------------------------------------------------------
  769. ****************************************************************************************/
  770. include "com_commonxp::comm_main.xjs";
  771. include "pam_pamcomnxp::PAM001.xjs";
  772. var lgv_hscroll_pos = 0;
  773. var lgv_vscroll_pos = 0;
  774. var todd = utlf_getCurrentDate();
  775. todd = todd.toDate().getAddDate(1, "D").getDateFormat();
  776. var objArg = new Object();
  777. objArg.todd = todd;
  778. objArg.execrid = sysf_getUserId();
  779. objArg.prgmid = "EDISamFileBatch";
  780. function SMPIE00500_oninit(obj:Form, e:InitEventInfo)
  781. {
  782. frmf_initForm(obj);
  783. }
  784. function SMPIE00500_onload(obj:Form, e:LoadEventInfo)
  785. {
  786. grdf_initGrid(group3.Tab00.tabpage1.grd_saminfo);
  787. grdf_initGrid(group3.Tab00.tabpage2.Grid00);
  788. var clamym = utlf_getCurrentDate().substr(0,6);
  789. ds_send.setColumn(0, "insurkindAll", "Y");
  790. ds_send.setColumn(0, "ioflag", "1");
  791. ds_send.setColumn(0, "termflag", "1");
  792. ds_send.setColumn(0, "numflag", "1");
  793. ds_send.setColumn(0, "clamfromdd", clamym);
  794. ds_send.setColumn(0, "clamtodd", clamym);
  795. ds_send_clamdg.setColumn(0,"dateflag","1");
  796. ds_send_clamdg.setColumn(0,"fromdd",clamym);
  797. ds_send_clamdg.setColumn(0,"todd",clamym);
  798. var oParam = {};
  799. oParam.id = "TRPIE00509";
  800. oParam.service = "edimngtapp.EdiMngt";
  801. oParam.method = "reqGetAllSpecClamDg";
  802. oParam.inds = "req=ds_send_clamdg";
  803. oParam.outds = "ds_init_cmb_clamdg=clamdg";
  804. oParam.async = true;
  805. oParam.progress = false;
  806. oParam.callback = "cf_TRPIE00509";
  807. tranf_submit(oParam);
  808. group2.ipt_fromcretdd.dateformat = "yyyy-MM";
  809. group2.ipt_fromcretdd.editformat = "yyyy-MM";
  810. group2.ipt_tocretdd.dateformat = "yyyy-MM";
  811. group2.ipt_tocretdd.editformat = "yyyy-MM";
  812. CommCode_Load();
  813. ds_grd_saminfo.keystring = "G:+clamym+ioflag+clamtypecd+totaltype"
  814. // 2020.03.31 본원도 적용 : 김성자 과장님 요청
  815. //if(sysf_getUserInfo("dutplceinstcd") == "031") {
  816. // group2.bool00.visible = false;
  817. //}
  818. }
  819. function cf_TRPIE00509(sSvcId, nErrorCode, sErrorMsg)
  820. {
  821. if(nErrorCode < 0)
  822. {
  823. return;
  824. }
  825. if( ds_init_cmb_clamdg.rowcount < 1 )
  826. {
  827. sysf_messageBox("청구된 차수가 없습니다. 미수년월을 확인 해 주세요!.", "E999", "");
  828. }
  829. frmf_addComboItem("group2.cmb_clamdg","전체","","above");
  830. }
  831. function CommCode_Load()
  832. {
  833. var objParam = [ {cdGrpId: "P0426", dsNm: "ds_init_cmb_clamflag"} // 청구구분
  834. ,{cdGrpId: "P0103", dsNm: "ds_init_cmb_clamtypecd"} //
  835. ,{cdGrpId: "P0028", dsNm: "ds_init_cmb_ioflag"} //
  836. ,{cdGrpId: "P0458", dsNm: "ds_init_cmb_ordfildcd"}
  837. ,{bizFlag: "Z", cdGrpId: "P0008", dsNm: "ds_init_P0008", sortField: "", sortMethod: ""}// 보험유형
  838. ,{bizFlag: "Z", cdGrpId: "P0010", dsNm: "ds_init_P0010", sortField: "", sortMethod: ""}// 보조유형
  839. ,{bizFlag: "Z", cdGrpId: "P0151", dsNm: "ds_init_P0151", sortField: "", sortMethod: ""}// 심사상태 / 심사완료여부
  840. ]; // 진료분야
  841. appf_getCodeList(objParam);
  842. objParam = [{dsNm: "ds_PK032list", cdGrpId: "PK032", showValue: true}];
  843. pamfGetCodeList(objParam, true, ""); //비동기
  844. // 심사자, 보조유형, 진료의사, 청구과, 진료과, 심사자유무정보 조회
  845. var oParam = {};
  846. oParam.id = "TRPID20201";
  847. oParam.service = "aftjudgapp.InAftJudgTrgtMan";
  848. oParam.method = "reqGetInitComCd";
  849. oParam.inds = "req=ds_send";
  850. oParam.outds = "ds_init_judgrid=judgrid ds_init_suppkind=suppkind ds_init_orddrid=orddrid ds_init_orddrid2=orddrid2 ds_init_clamdept=clamdept ds_init_orddeptcd=orddeptcd ds_init_orddeptcd2=orddeptcd2 ds_init_item3=item3 ds_init_aftjudgerlist=aftjudgerr";
  851. oParam.async = false;
  852. //oParam.callback = "cf_TRPID20201";
  853. tranf_submit(oParam);
  854. }
  855. function group2_button1_onclick(obj:Button, e:ClickEventInfo)
  856. {
  857. lgv_hscroll_pos = group3.Tab00.tabpage1.grd_saminfo.hscrollbar.pos;
  858. lgv_vscroll_pos = group3.Tab00.tabpage1.grd_saminfo.vscrollbar.pos;
  859. if (!utlf_isNull(group2.ipt_srchnum.value) && group2.rdo_numflag.value == "2"){
  860. } else {
  861. if(group2.rdo_termflag.value == 1 || group2.rdo_termflag.value == 2)
  862. {
  863. ds_send.setColumn(0,"clamfromdd", utlf_transNullToEmpty(String(group2.ipt_fromcretdd.value)).substr(0,6));
  864. ds_send.setColumn(0,"clamtodd", utlf_transNullToEmpty(String(group2.ipt_tocretdd.value)).substr(0,6));
  865. }
  866. else if (group2.rdo_termflag.value == 3)
  867. {
  868. ds_send.setColumn(0,"clamfromdd", utlf_transNullToEmpty(String(group2.ipt_fromcretdd.value)).substr(0,8));
  869. ds_send.setColumn(0,"clamtodd", utlf_transNullToEmpty(String(group2.ipt_tocretdd.value)).substr(0,8));
  870. }
  871. }
  872. if (group2.dtlclbsyn.value == "Y") {
  873. ds_grd_pidmclbs.clearData();
  874. var oParam = {};
  875. oParam.id = "TRPIE00501";
  876. oParam.service = "edimngtapp.EdiMngt";
  877. oParam.method = "reqGetPidmclbsList";
  878. oParam.inds = "req=ds_send";
  879. oParam.outds = "ds_grd_pidmclbs=gridclbs";
  880. oParam.async = false;
  881. oParam.callback = "cf_TRPIE00501";
  882. tranf_submit(oParam);
  883. } else {
  884. var oParam = {};
  885. oParam.id = "TRPIE00500";
  886. oParam.service = "edimngtapp.EdiMngt";
  887. oParam.method = "reqGetSamInfo";
  888. oParam.inds = "req=ds_send";
  889. oParam.outds = "ds_grd_saminfo=gridsaminfo";
  890. oParam.async = false;
  891. oParam.callback = "cf_TRPIE00500";
  892. tranf_submit(oParam);
  893. dsf_setDefaultVal(ds_grd_saminfo, "clbscnt:0,clamcnt:0,medcaretotamt:0,ownbamt:0,ownbmaxexamt:0,suppamt:0,gsuppamt:0,ksuppamt:0,hsuppamt:0,insuclamamt:0,handcaprfund:0,totlimitdiffamt:0,subtamt:0,clamstatcnt:0,blwtotownamt:0,blwownbamt:0,blwinsuclamamt:0");
  894. }
  895. }
  896. function group2_ipt_fromcretdd_onchanged(obj:Calendar, e:ChangeEventInfo)
  897. {
  898. fDateChk("f");
  899. }
  900. function group2_rdo_numflag_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  901. {
  902. if(obj.value == "2")
  903. {
  904. ds_send.setColumn(0,"clamfromdd", "");
  905. ds_send.setColumn(0,"clamtodd", "");
  906. }
  907. else
  908. {
  909. ds_send.setColumn(0,"clamfromdd", utlf_getCurrentDate().substr(0,6));
  910. ds_send.setColumn(0,"clamtodd", utlf_getCurrentDate().substr(0,6));
  911. }
  912. }
  913. function chk_insukind1_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
  914. {
  915. ds_send.setColumn(0,"insurkindAll","");
  916. }
  917. function group2_chk_insukindAll_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
  918. {
  919. ds_send.setColumn(0,"insurkind1","");
  920. ds_send.setColumn(0,"insurkind2","");
  921. ds_send.setColumn(0,"insurkind3","");
  922. ds_send.setColumn(0,"insurkind4","");
  923. }
  924. function fDateChk(flag){
  925. var dateflag;
  926. group2.ipt_fromcretdd.updateToDataset();
  927. group2.ipt_tocretdd.updateToDataset();
  928. var fromdd = String(group2.ipt_fromcretdd.value);
  929. var todd = String(group2.ipt_tocretdd.value);
  930. var ioflag = group2.rdo_ioflag.value;
  931. var insukind = ds_send.getColumn(0,"insukindcd");
  932. var clamflag = ds_send.getColumn(0,"clamflag");
  933. var ordfildcd = ds_send.getColumn(0,"ordfildcd");
  934. if(utlf_isNull(fromdd)){
  935. sysf_messageBox("기간의 시작일자를","C001");
  936. group2.ipt_fromcretdd.setFocus();
  937. return;
  938. }else{
  939. if (flag == "f") {
  940. group2.ipt_tocretdd.value = fromdd.substr(0,6);
  941. todd = String(group2.ipt_tocretdd.value);
  942. }
  943. ds_send_clamdg.setColumn(0,"fromdd", fromdd.substr(0,6));
  944. ds_send_clamdg.setColumn(0,"todd", todd.substr(0,6));
  945. if(ioflag == "1")
  946. {
  947. ds_send_clamdg.setColumn(0,"ioflag","");
  948. }
  949. else if(ioflag == "2")
  950. {
  951. ds_send_clamdg.setColumn(0,"ioflag","I");
  952. }
  953. else if(ioflag == "3")
  954. {
  955. ds_send_clamdg.setColumn(0,"ioflag","O");
  956. }
  957. else
  958. {
  959. sysf_messageBox("내원유형이 선택되지 않았습니다!.", "E999", "");
  960. }
  961. if(insukind == "21")
  962. {
  963. ds_send_clamdg.setColumn(0,"insukind","21','22");
  964. }
  965. else
  966. {
  967. ds_send_clamdg.setColumn(0,"insukind",insukind);
  968. }
  969. ds_send_clamdg.setColumn(0,"clamflag",clamflag);
  970. ds_send_clamdg.setColumn(0,"ordfildcd",ordfildcd);
  971. ds_send_clamdg.setColumn(0,"dateflag","1");
  972. // 청구차수가져오기
  973. var oParam = {};
  974. oParam.id = "TRPIE00509";
  975. oParam.service = "edimngtapp.EdiMngt";
  976. oParam.method = "reqGetAllSpecClamDg";
  977. oParam.inds = "req=ds_send_clamdg";
  978. oParam.outds = "ds_init_cmb_clamdg=clamdg";
  979. oParam.async = false;
  980. oParam.callback = "cf_TRPIE00509";
  981. tranf_submit(oParam);
  982. }
  983. }
  984. function group2_ipt_tocretdd_onchanged(obj:Calendar, e:ChangeEventInfo)
  985. {
  986. fDateChk("t");
  987. }
  988. function group2_rdo_termflag_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  989. {
  990. if (obj.value == 1 || obj.value == 2)
  991. {
  992. group2.ipt_fromcretdd.dateformat = "yyyy-MM";
  993. group2.ipt_fromcretdd.editformat = "yyyy-MM";
  994. group2.ipt_tocretdd.dateformat = "yyyy-MM";
  995. group2.ipt_tocretdd.editformat = "yyyy-MM";
  996. group2.cmb_clamdg.enable = true;
  997. }
  998. else
  999. {
  1000. group2.ipt_fromcretdd.dateformat = "yyyy-MM-dd";
  1001. group2.ipt_fromcretdd.editformat = "yyyy-MM-dd";
  1002. group2.ipt_tocretdd.dateformat = "yyyy-MM-dd";
  1003. group2.ipt_tocretdd.editformat = "yyyy-MM-dd";
  1004. group2.cmb_clamdg.enable = false;
  1005. }
  1006. group2.ipt_fromcretdd.setFocus();
  1007. }
  1008. function group3_button4_onclick(obj:Button, e:ClickEventInfo)
  1009. {
  1010. group3.Tab00.tabpage1.grd_saminfo.selecttype = "multiarea";
  1011. }
  1012. function group3_grd_saminfo_onkeydown(obj:Grid, e:KeyEventInfo)
  1013. {
  1014. if (e.ctrlKey && e.keycode == 67)
  1015. {
  1016. grdf_clipboardCopy(obj, "PAM");
  1017. }
  1018. }
  1019. function group3_button5_onclick(obj:Button, e:ClickEventInfo)
  1020. {
  1021. group3.Tab00.tabpage1.grd_saminfo.selecttype = "multiarea";
  1022. }
  1023. function group3_button6_onclick(obj:Button, e:ClickEventInfo)
  1024. {
  1025. group3.Tab00.tabpage1.grd_saminfo.selecttype = "multirow";
  1026. }
  1027. function group3_btn_inafterjudg_onclick(obj:Button, e:ClickEventInfo)
  1028. {
  1029. frmf_modal("SMPID20300","SMPID20300","","","","","","","","","","","M");
  1030. }
  1031. function group3_btn_outafterjudg_onclick(obj:Button, e:ClickEventInfo)
  1032. {
  1033. frmf_modal("SMPID20500","SMPID20500","","","","","","","","","","","M");
  1034. }
  1035. function group3_btn_makesam_onclick(obj:Button, e:ClickEventInfo)
  1036. {
  1037. ds_temp_saminfo.clearData();
  1038. var cnt = ds_grd_saminfo.getCaseCount("chkbox == 'true'");
  1039. var clamym = ds_grd_saminfo.lookupExpr("chkbox=='true'","clamym");
  1040. var clamdg = ds_grd_saminfo.lookupExpr("chkbox=='true'","clamdg");
  1041. var ioflag = ds_grd_saminfo.lookupExpr("chkbox=='true'","ioflag");
  1042. var clamtypecd = ds_grd_saminfo.lookupExpr("chkbox=='true'","clamtypecd");
  1043. var clamflag = ds_grd_saminfo.lookupExpr("chkbox=='true'","clamflag");
  1044. var sumtypecd = ds_grd_saminfo.lookupExpr("chkbox=='true'","sumtypecd");
  1045. var clbsordfildcd = ds_grd_saminfo.lookupExpr("chkbox=='true'","clbsordfildcd");
  1046. var chkRowno = ds_grd_saminfo.findRowExpr("clamym == '"+clamym+"' && clamdg == '"+clamdg+"' && ioflag == '"+ioflag+"' && clamtypecd == '"+clamtypecd+"' && clamflag == '"+clamflag+"' && sumtypecd == '"+sumtypecd+"' && clbsordfildcd == '"+clbsordfildcd+"' ");
  1047. var endcnt = ds_grd_saminfo.getCaseCount("chkbox == 'true' && (edistatcd == '송신' || edistatcd == '반송' || edistatcd == '접수' || edistatcd == '심결')");
  1048. if (endcnt > 0)
  1049. {
  1050. sysf_messageBox("송신된 데이터는 SAM 생성 할 수", "I004");
  1051. return;
  1052. }
  1053. if(cnt == 0)
  1054. {
  1055. sysf_messageBox("선택된 항목이", "I004");
  1056. }
  1057. else
  1058. {
  1059. group2_button1_onclick();
  1060. ds_grd_saminfo.setColumn(chkRowno,"chkbox","true")
  1061. if(sysf_messageBox("저장","S001") == 6)
  1062. {
  1063. var CSV = dsf_getDsCSV(ds_grd_saminfo, "", "Y", "chkbox:true", "");
  1064. dsf_setCSVToDs("ds_temp_saminfo",CSV);
  1065. if (ds_temp_saminfo.getColumn(0,"clamflag") == "3")
  1066. {
  1067. ds_temp_saminfo.setColumn(0,"clamflag", "0");
  1068. }
  1069. ds_temp_saminfo.setColumn(0,"sammakeflag", "OR");
  1070. if(ds_temp_saminfo.getColumn(0,"clamtypecd") == 6)
  1071. {
  1072. var select = sysf_messageBox(" :: 산재 SAM파일 071ver 생성(예_Yes) :: \n :: 이전 산재 SAM파일 생성(아니오_No) :: \n :: 취소(취소_Cancel) :: \n\n\n071ver으로 진행 ","S001");
  1073. if(select == 6)
  1074. {
  1075. ds_temp_saminfo.setColumn(0,"flag", "N");
  1076. var oParam = {};
  1077. oParam.id = "TXPIE00502";
  1078. oParam.service = "edimngtapp.EdiMngt";
  1079. oParam.method = "reqExeMakeSamFile";
  1080. oParam.inds = "req=ds_temp_saminfo";
  1081. oParam.async = false;
  1082. //oParam.callback = "cf_TXPIE00502";
  1083. tranf_submit(oParam);
  1084. }
  1085. else if(select == 7)
  1086. {
  1087. ds_temp_saminfo.setColumn(0,"flag", "B");
  1088. var oParam = {};
  1089. oParam.id = "TXPIE00502";
  1090. oParam.service = "edimngtapp.EdiMngt";
  1091. oParam.method = "reqExeMakeSamFile";
  1092. oParam.inds = "req=ds_temp_saminfo";
  1093. oParam.async = false;
  1094. //oParam.callback = "cf_TXPIE00502";
  1095. tranf_submit(oParam);
  1096. }
  1097. else
  1098. {
  1099. return;
  1100. }
  1101. }
  1102. else
  1103. {
  1104. ds_temp_saminfo.setColumn(0,"flag", "N");
  1105. var oParam = {};
  1106. oParam.id = "TXPIE00502";
  1107. oParam.service = "edimngtapp.EdiMngt";
  1108. oParam.method = "reqExeMakeSamFile";
  1109. oParam.inds = "req=ds_temp_saminfo";
  1110. oParam.async = false;
  1111. //oParam.callback = "cf_TXPIE00502";
  1112. tranf_submit(oParam);
  1113. }
  1114. objArg.prgmid = "EDISamFileBatch";
  1115. var trgtManWindow = frmf_getChildWindow("SPZSB00301");
  1116. if (utlf_isNull(trgtManWindow))
  1117. {
  1118. frmf_open("SPZSB00301", "SPZSB00301", objArg, "","","","","","","","","","M");
  1119. } else {
  1120. trgtManWindow.reload();
  1121. }
  1122. }
  1123. else
  1124. {
  1125. }
  1126. }
  1127. }
  1128. function group3_button3_onclick(obj:Button, e:ClickEventInfo)
  1129. {
  1130. objArg.prgmid = "EdiMakeClamBatch";
  1131. var trgtManWindow = frmf_getChildWindow("SPZSB00301");
  1132. if (utlf_isNull(trgtManWindow))
  1133. {
  1134. frmf_open("SPZSB00301", "SPZSB00301", objArg, "","","","","","","","","","M");
  1135. } else {
  1136. trgtManWindow.reload();
  1137. }
  1138. }
  1139. function group3_btn_locky_onclick(obj:Button, e:ClickEventInfo)
  1140. {
  1141. var cnt = ds_grd_saminfo.getCaseCount("chkbox == 'true'");
  1142. if (cnt == 0)
  1143. {
  1144. sysf_messageBox("선택된 항목이", "I004");
  1145. }
  1146. else if (cnt > 1)
  1147. {
  1148. sysf_messageBox("단일 항목만 선택하여주십시오.", "C009");
  1149. }
  1150. else
  1151. {
  1152. if(sysf_messageBox("저장","S001") == 6)
  1153. {
  1154. var CSV = dsf_getDsCSV(ds_grd_saminfo, "", "Y", "chkbox:true", "");
  1155. dsf_setCSVToDs("ds_temp_saminfo",CSV);
  1156. var oParam = {};
  1157. oParam.id = "TRPIE00508";
  1158. oParam.service = "edimngtapp.EdiMngt";
  1159. oParam.method = "reqGetJudgInfo";
  1160. oParam.inds = "req=ds_temp_saminfo";
  1161. oParam.outds = "ds_return=return";
  1162. oParam.async = false;
  1163. oParam.callback = "cf_TRPIE00508";
  1164. tranf_submit(oParam);
  1165. }
  1166. else
  1167. {
  1168. }
  1169. }
  1170. }
  1171. function cf_TRPIE00508(sSvcId, nErrorCode, sErrorMsg)
  1172. {
  1173. if(nErrorCode < 0)
  1174. {
  1175. return;
  1176. }
  1177. if(ds_return.getColumn(0,"judgyn") == "Y")
  1178. {
  1179. sysf_messageBox("심사중이거나 미심인 명세서가 존재합니다..","C009");
  1180. }
  1181. else if(ds_return.getColumn(0,"judgyn") == "N")
  1182. {
  1183. // 마감설정 요청
  1184. var oParam = {};
  1185. oParam.id = "TXPIE00504";
  1186. oParam.service = "edimngtapp.EdiMngt";
  1187. oParam.method = "reqExeSetLockY";
  1188. oParam.inds = "req=ds_temp_saminfo";
  1189. oParam.async = false;
  1190. oParam.callback = "cf_TXPIE00504";
  1191. tranf_submit(oParam);
  1192. }
  1193. }
  1194. function cf_TXPIE00504(sSvcId, nErrorCode, sErrorMsg)
  1195. {
  1196. if(nErrorCode < 0)
  1197. {
  1198. return;
  1199. }
  1200. else
  1201. {
  1202. objArg.prgmid = "EdiMakeClamBatch";
  1203. var trgtManWindow = frmf_getChildWindow("SPZSB00301");
  1204. if (utlf_isNull(trgtManWindow))
  1205. {
  1206. frmf_open("SPZSB00301", "SPZSB00301", objArg, "","","","","","","","","","M");
  1207. } else {
  1208. trgtManWindow.reload();
  1209. }
  1210. }
  1211. }
  1212. function group3_btn_lockn_onclick(obj:Button, e:ClickEventInfo)
  1213. {
  1214. var cnt = ds_grd_saminfo.getCaseCount("chkbox=='true'");
  1215. var lockcnt = ds_grd_saminfo.getCaseCount("chkbox=='true' && (edistatcd == '송신' || edistatcd == '반송' || edistatcd == '접수' || edistatcd == '심결')");
  1216. if (cnt == 0)
  1217. {
  1218. sysf_messageBox("선택된 항목이", "I004");
  1219. }
  1220. else
  1221. {
  1222. if (lockcnt > 0)
  1223. {
  1224. sysf_messageBox("잠금해제가 불가능한 접수상태가 있습니다.", "");
  1225. return false;
  1226. }
  1227. }
  1228. if(sysf_messageBox("저장","S001") == 6)
  1229. {
  1230. var CSV = dsf_getDsCSV(ds_grd_saminfo, "", "Y", "chkbox:true", "");
  1231. dsf_setCSVToDs("ds_temp_saminfo",CSV);
  1232. var oParam = {};
  1233. oParam.id = "TXPIE00505";
  1234. oParam.service = "edimngtapp.EdiMngt";
  1235. oParam.method = "reqExeSetLockN";
  1236. oParam.inds = "req=ds_temp_saminfo";
  1237. oParam.outds = "";
  1238. oParam.async = false;
  1239. oParam.callback = "cf_TXPIE00504";
  1240. tranf_submit(oParam);
  1241. var oParam = {};
  1242. oParam.id = "TRPIE00500";
  1243. oParam.service = "edimngtapp.EdiMngt";
  1244. oParam.method = "reqGetSamInfo";
  1245. oParam.inds = "req=ds_send";
  1246. oParam.outds = "ds_grd_saminfo=gridsaminfo";
  1247. oParam.async = false;
  1248. oParam.callback = "cf_TRPIE00500";
  1249. tranf_submit(oParam);
  1250. }
  1251. else
  1252. {
  1253. }
  1254. }
  1255. function group3_btn_makeclam_onclick(obj:Button, e:ClickEventInfo)
  1256. {
  1257. var rows = ds_grd_saminfo.rowcount;
  1258. var icount = 0;
  1259. ds_send_clam.clearData();
  1260. ds_send_clam.setColumn(0, "insucmno", "");
  1261. for ( var i = 0; i < rows; i++ )
  1262. {
  1263. if(ds_grd_saminfo.getColumn(i, "chkbox") == "true")
  1264. {
  1265. icount = ds_send_clam.addRow();
  1266. if (ds_grd_saminfo.getColumn(i, "ioflag") == "I")
  1267. {
  1268. ds_send_clam.setColumn(icount, "ioflag", "1");
  1269. // if(ds_grd_saminfo.getColumn(i, "clamflag") == "0")
  1270. // {
  1271. // if(ds_grd_saminfo.getColumn(i, "clamdg") > "2")
  1272. // {
  1273. // sysf_messageBox("입원 원청구는 2차수 초과 대상은 허용" , "E001");
  1274. // return;
  1275. // }
  1276. // }
  1277. }
  1278. else if (ds_grd_saminfo.getColumn(i, "ioflag") == "O")
  1279. {
  1280. ds_send_clam.setColumn(icount, "ioflag", "2");
  1281. if(ds_grd_saminfo.getColumn(i, "clamflag") == "0")
  1282. {
  1283. if(ds_grd_saminfo.getColumn(i, "clamdg") > "1")
  1284. {
  1285. sysf_messageBox("외래원청구는 1차수 초과 대상은 허용" , "E001");
  1286. return;
  1287. }
  1288. }
  1289. }
  1290. ds_send_clam.setColumn(icount, "clamflag", ds_grd_saminfo.getColumn(i, "clamflag"));
  1291. if (ds_grd_saminfo.getColumn(i, "clamflag") == "3")
  1292. {
  1293. ds_send_clam.setColumn(icount, "clamflag", "0");
  1294. }
  1295. if (ds_grd_saminfo.getColumn(i, "clamtypecd") == "1")
  1296. {
  1297. ds_send_clam.setColumn(icount, "insurkindflag", "1");
  1298. }
  1299. else if (ds_grd_saminfo.getColumn(i, "clamtypecd") == "4" || ds_grd_saminfo.getColumn(i, "clamtypecd") == "5" || ds_grd_saminfo.getColumn(i, "clamtypecd") == "9")
  1300. {
  1301. ds_send_clam.setColumn(icount, "insurkindflag", "2");
  1302. }
  1303. else if (ds_grd_saminfo.getColumn(i, "clamtypecd") == "6")
  1304. {
  1305. ds_send_clam.setColumn(icount, "insurkindflag", "3");
  1306. }
  1307. else if (ds_grd_saminfo.getColumn(i, "clamtypecd") == "8")
  1308. {
  1309. ds_send_clam.setColumn(icount, "insurkindflag", "4");
  1310. ds_send_clam.setColumn(icount, "insucmno", ds_grd_saminfo.getColumn(i, "insucmno"));
  1311. }
  1312. ds_send_clam.setColumn(icount, "ordfildcd" , ds_grd_saminfo.getColumn(i, "sumtypecd"));
  1313. ds_send_clam.setColumn(icount, "clamym" , ds_grd_saminfo.getColumn(i, "clamym"));
  1314. ds_send_clam.setColumn(icount, "clamdg" , ds_grd_saminfo.getColumn(i, "clamdg"));
  1315. ds_send_clam.setColumn(icount, "clamfromdd" , utlf_getCurrentDate());
  1316. ds_send_clam.setColumn(icount, "clamtodd" , utlf_getCurrentDate());
  1317. ds_send_clam.setColumn(icount, "clamcretdd" , utlf_getCurrentDate());
  1318. ds_send_clam.setColumn(icount, "sumtypecd" , ds_grd_saminfo.getColumn(i, "sumtypecd"));
  1319. ds_send_clam.setColumn(icount, "clamtypecd" , ds_grd_saminfo.getColumn(i, "clamtypecd"));
  1320. ds_send_clam.setColumn(icount, "clbsordfildcd" , ds_grd_saminfo.getColumn(i, "clbsordfildcd"));
  1321. }
  1322. }
  1323. icount = ds_send_clam.rowcount;
  1324. if (icount != 1)
  1325. {
  1326. sysf_messageBox("선택하지 않았거나 2건 이상이 선택되어 생성" , "E001");
  1327. return;
  1328. }
  1329. if (ds_send_clam.rowcount < 1)
  1330. {
  1331. sysf_messageBox("선택하지 않아 생성" , "E001");
  1332. return;
  1333. }
  1334. if(sysf_messageBox("청구서 생성 ","S001") == 6)
  1335. {
  1336. var CSV = dsf_getDsCSV(ds_grd_saminfo, "", "Y", "chkbox:true", "");
  1337. dsf_setCSVToDs("ds_temp_saminfo",CSV);
  1338. var oParam = {};
  1339. oParam.id = "TRPIE00508";
  1340. oParam.service = "edimngtapp.EdiMngt";
  1341. oParam.method = "reqGetJudgInfo";
  1342. oParam.inds = "req=ds_temp_saminfo";
  1343. oParam.outds = "ds_return=return";
  1344. oParam.async = false;
  1345. oParam.callback = "cf_TRPIE00508_1";
  1346. tranf_submit(oParam);
  1347. }
  1348. }
  1349. function cf_TRPIE00508_1(sSvcId, nErrorCode, sErrorMsg)
  1350. {
  1351. if(nErrorCode < 0)
  1352. {
  1353. return;
  1354. }
  1355. if(ds_return.getColumn(0,"judgyn") == "Y")
  1356. {
  1357. sysf_messageBox("심사중이거나 미심인 명세서가 존재합니다..","C009");
  1358. }
  1359. else if(ds_return.getColumn(0,"judgyn") == "N")
  1360. {
  1361. if(ds_send_clam.getColumn(0,"clamtypecd") == 6)
  1362. {
  1363. var select = sysf_messageBox(" :: 산재 청구서를 070ver 생성(예_Yes) :: \n :: 이전 산재 청구서파일 생성(아니오_No) :: \n :: 취소(취소_Cancel) :: \n\n\n070ver으로 진행 ","S001");
  1364. if(select == 6)
  1365. {
  1366. ds_send_clam.setColumn(0,"flag","N");
  1367. var oParam = {};
  1368. oParam.id = "TXPIE00520";
  1369. oParam.service = "edimngtapp.EdiMngt";
  1370. oParam.method = "reqExeMakeCLAM";
  1371. oParam.inds = "req=ds_send_clam";
  1372. oParam.async = false;
  1373. tranf_submit(oParam);
  1374. }
  1375. else if(select == 7)
  1376. {
  1377. ds_send_clam.setColumn(0,"flag","B");
  1378. var oParam = {};
  1379. oParam.id = "TXPIE00520";
  1380. oParam.service = "edimngtapp.EdiMngt";
  1381. oParam.method = "reqExeMakeCLAM";
  1382. oParam.inds = "req=ds_send_clam";
  1383. oParam.async = false;
  1384. tranf_submit(oParam);
  1385. }
  1386. else
  1387. {
  1388. return;
  1389. }
  1390. }
  1391. else
  1392. {
  1393. ds_send_clam.setColumn(0,"flag","N");
  1394. var oParam = {};
  1395. oParam.id = "TXPIE00520";
  1396. oParam.service = "edimngtapp.EdiMngt";
  1397. oParam.method = "reqExeMakeCLAM";
  1398. oParam.inds = "req=ds_send_clam";
  1399. oParam.async = false;
  1400. tranf_submit(oParam);
  1401. }
  1402. group3.Tab00.tabpage1.button3.click();
  1403. }
  1404. }
  1405. function group3_button2_onclick(obj:Button, e:ClickEventInfo)
  1406. {
  1407. var cnt = ds_grd_saminfo.getCaseCount("chkbox == 'true'");
  1408. var lockcnt = ds_grd_saminfo.getCaseCount("chkbox == 'true' && (edistatcd == '송신' || edistatcd == '반송' || edistatcd == '접수' || edistatcd == '심결')");
  1409. if (cnt == 0)
  1410. {
  1411. sysf_messageBox("선택된 항목이", "I004");
  1412. }
  1413. else
  1414. {
  1415. var CSV = dsf_getDsCSV(ds_grd_saminfo, "", "Y", "chkbox:true", "");
  1416. dsf_setCSVToDs("ds_temp_saminfo",CSV);
  1417. var oParam = {};
  1418. oParam.id = "TRPIE00507";
  1419. oParam.service = "edimngtapp.EdiMngt";
  1420. oParam.method = "reqGetDifferInfo";
  1421. oParam.inds = "req=ds_temp_saminfo";
  1422. oParam.outds = "ds_return=return";
  1423. oParam.async = false;
  1424. oParam.callback = "cf_TRPIE00507";
  1425. tranf_submit(oParam);
  1426. }
  1427. }
  1428. function cf_TRPIE00507(sSvcId, nErrorCode, sErrorMsg)
  1429. {
  1430. if(nErrorCode < 0)
  1431. {
  1432. return;
  1433. }
  1434. if(ds_return.getColumn(0,"differyn") == "Y")
  1435. {
  1436. sysf_messageBox("명세서 건수와 금액이 청구서와 서로 다릅니다.","C009");
  1437. }
  1438. else if(ds_return.getColumn(0,"differyn") == "N")
  1439. {
  1440. sysf_messageBox("명세서 건수와 금액이 청구서와 서로 일치합니다.","I000");
  1441. }
  1442. }
  1443. function group3_button7_onclick(obj:Button, e:ClickEventInfo)
  1444. {
  1445. var cnt = ds_grd_saminfo.getCaseCount("chkbox == 'true'");
  1446. var lockcnt = ds_grd_saminfo.getCaseCount("chkbox == 'true' && (edistatcd == '송신' || edistatcd == '반송' || edistatcd == '접수' || edistatcd == '심결')");
  1447. if (cnt == 0)
  1448. {
  1449. sysf_messageBox("선택된 항목이", "I004");
  1450. }
  1451. else
  1452. {
  1453. if(sysf_messageBox("저장","S001") == 6)
  1454. {
  1455. var CSV = dsf_getDsCSV(ds_grd_saminfo, "", "Y", "chkbox:true", "");
  1456. dsf_setCSVToDs("ds_temp_saminfo",CSV);
  1457. if (ds_temp_saminfo.getColumn(0,"clamflag") == "3")
  1458. {
  1459. ds_temp_saminfo.setColumn(0,"clamflag", "0");
  1460. }
  1461. ds_temp_saminfo.setColumn(0,"sammakeflag", "UR");
  1462. var oParam = {};
  1463. oParam.id = "TXPIE00502";
  1464. oParam.service = "edimngtapp.EdiMngt";
  1465. oParam.method = "reqExeMakeSamFile";
  1466. oParam.inds = "req=ds_temp_saminfo";
  1467. oParam.async = false;
  1468. //oParam.callback = "cf_TXPIE00502";
  1469. tranf_submit(oParam);
  1470. }
  1471. else
  1472. {
  1473. }
  1474. }
  1475. }
  1476. function group3_btn_batchlog_onclick(obj:Button, e:ClickEventInfo)
  1477. {
  1478. objArg.prgmid = "EDISamFileBatch";
  1479. var trgtManWindow = frmf_getChildWindow("SPZSB00301");
  1480. if (utlf_isNull(trgtManWindow))
  1481. {
  1482. frmf_open("SPZSB00301", "SPZSB00301", objArg, "","","","","","","","","","M");
  1483. } else {
  1484. trgtManWindow.reload();
  1485. }
  1486. }
  1487. function group3_btn_urscope_onclick(obj:Button, e:ClickEventInfo)
  1488. {
  1489. frmf_open("SMPIS00800","SMPIS00800","","","","","","","","","","","M");
  1490. }
  1491. function grp_rem_btn_confirm2_onclick(obj:Button, e:ClickEventInfo)
  1492. {
  1493. var oParam = {};
  1494. oParam.id = "TXPIE00507";
  1495. oParam.service = "edimngtapp.EdiMngt";
  1496. oParam.method = "reqExeClamRem";
  1497. oParam.inds = "req=ds_send_rem";
  1498. oParam.async = false;
  1499. oParam.callback = "cf_TXPIE00507";
  1500. tranf_submit(oParam);
  1501. }
  1502. function cf_TXPIE00507(sSvcId, nErrorCode, sErrorMsg)
  1503. {
  1504. if(nErrorCode < 0)
  1505. {
  1506. return;
  1507. }
  1508. else
  1509. {
  1510. ds_grd_saminfo.setColumn(ds_grd_saminfo.rowposition,"rem", grp_rem.ipt_rem.value);
  1511. ds_send_rem.clearData();
  1512. ds_send_rem.addRow();
  1513. grp_rem.visible = false;
  1514. }
  1515. }
  1516. function grp_rem_btn_cancel2_onclick(obj:Button, e:ClickEventInfo)
  1517. {
  1518. ds_send_rem.clearData();
  1519. ds_send_rem.addRow();
  1520. grp_rem.visible = false;
  1521. }
  1522. function group3_grd_saminfo_onexpanddown(obj:Grid, e:GridMouseEventInfo)
  1523. {
  1524. if (obj.currentcol == obj.getBindCellIndex("body","rem"))
  1525. {
  1526. if (utlf_isNull(ds_grd_saminfo.getColumn(ds_grd_saminfo.rowposition, "seqno")))
  1527. {
  1528. sysf_messageBox("청구생성 후 사용하세요.","");
  1529. return;
  1530. }
  1531. ds_send_rem.copyRow(0,ds_grd_saminfo, ds_grd_saminfo.rowposition);
  1532. grp_rem.visible = true;
  1533. }
  1534. }
  1535. function ds_grd_saminfo_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  1536. {
  1537. if(e.columnid == "chkbox")
  1538. {
  1539. obj.setColumn(e.row, "chkbox", (e.newvalue == "true" || e.newvalue == 1) ? "true" : "false");
  1540. }
  1541. }
  1542. function group3_btn_trcompletion_onclick(obj:Button, e:ClickEventInfo)
  1543. {
  1544. var cnt = ds_grd_saminfo.getCaseCount("chkbox == 'true'");
  1545. var lockcnt = ds_grd_saminfo.getCaseCount("chkbox == 'true' && (edistatcd == '송신' || edistatcd == '반송' || edistatcd == '접수' || edistatcd == '심결' || lockyn!='Y')");
  1546. if (cnt == 0)
  1547. {
  1548. sysf_messageBox("선택된 항목이", "I004");
  1549. }
  1550. else
  1551. {
  1552. if (lockcnt > 0)
  1553. {
  1554. sysf_messageBox("선택된 항목중 접수 혹은 심결 상태 혹은 잠금생태(N)이 존재 합니다. 확인 후 다시 시도해 주세요 ", "E999");
  1555. return false;
  1556. }
  1557. if(sysf_messageBox("저장","S001") == 6)
  1558. {
  1559. var CSV = dsf_getDsCSV(ds_grd_saminfo, "", "Y", "chkbox:true", "");
  1560. dsf_setCSVToDs("ds_temp_saminfo",CSV);
  1561. var oParam = {};
  1562. oParam.id = "TXPIE00506";
  1563. oParam.service = "edimngtapp.EdiMngt";
  1564. oParam.method = "reqExeSetTrCompletion";
  1565. oParam.inds = "req=ds_temp_saminfo";
  1566. oParam.outds = "";
  1567. oParam.async = false;
  1568. //oParam.callback = "cf_TXPIE00506";
  1569. tranf_submit(oParam);
  1570. var oParam = {};
  1571. oParam.id = "TRPIE00500";
  1572. oParam.service = "edimngtapp.EdiMngt";
  1573. oParam.method = "reqGetSamInfo";
  1574. oParam.inds = "req=ds_send";
  1575. oParam.outds = "ds_grd_saminfo=gridsaminfo";
  1576. oParam.async = false;
  1577. oParam.callback = "cf_TRPIE00500";
  1578. tranf_submit(oParam);
  1579. }
  1580. else
  1581. {
  1582. }
  1583. }
  1584. }
  1585. function btn_exel_onclick(obj:Button, e:ClickEventInfo)
  1586. {
  1587. var insukind = ds_send.getColumn(0, "insurkindflag");
  1588. var today = utlf_getCurrentDate();
  1589. grdf_exportExcel(group3.Tab00.tabpage1.grd_saminfo, "EDI청구SAM파일생성_"+today, "see");
  1590. }
  1591. function group3_Tab00_tabpage1_grd_saminfo_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  1592. {
  1593. if (utlf_transNull(obj.getCellValue(e.row, obj.getBindCellIndex("body","clbscnt"),0) > 30000 )) {
  1594. sysf_messageBox("30,000건이 넘는 데이터는 조회 할 수 없습니다.","E");
  1595. return;
  1596. }
  1597. ds_send_clbs.clearData();
  1598. var nrow = ds_send_clbs.addRow();
  1599. ds_send_clbs.copyRow(nrow, ds_grd_saminfo, ds_grd_saminfo.rowposition);
  1600. ds_grd_pidmclbs.clearData();
  1601. var oParam = {};
  1602. oParam.id = "TRPIE00501";
  1603. oParam.service = "edimngtapp.EdiMngt";
  1604. oParam.method = "reqGetPidmclbsList";
  1605. oParam.inds = "req=ds_send_clbs";
  1606. oParam.outds = "ds_grd_pidmclbs=gridclbs";
  1607. oParam.async = false;
  1608. oParam.callback = "cf_TRPIE00501";
  1609. tranf_submit(oParam);
  1610. }
  1611. function cf_TRPIE00501(sSvcId, nErrorCode, sErrorMsg)
  1612. {
  1613. if(nErrorCode < 0)
  1614. {
  1615. return;
  1616. }
  1617. group3.Tab00.tabindex = 1;
  1618. }
  1619. function cf_TRPIE00500(sSvcId, nErrorCode, sErrorMsg)
  1620. {
  1621. if(nErrorCode < 0)
  1622. {
  1623. return;
  1624. }
  1625. group3.Tab00.tabpage1.grd_saminfo.hscrollbar.pos = lgv_hscroll_pos;
  1626. group3.Tab00.tabpage1.grd_saminfo.vscrollbar.pos = lgv_vscroll_pos;
  1627. group3.Tab00.tabindex = 0;
  1628. }
  1629. function group3_Tab00_tabpage2_button4_onclick(obj:Button, e:ClickEventInfo)
  1630. {
  1631. var today = utlf_getCurrentDate();
  1632. grdf_exportExcel(group3.Tab00.tabpage2.Grid00, "EDI청구SAM파일생성_명세서_"+today, "see");
  1633. }
  1634. function btn_delclam_onclick(obj:Button, e:ClickEventInfo)
  1635. {
  1636. }
  1637. function group2_ipt_tocretdd_oneditclick(obj:Calendar, e:EditClickEventInfo)
  1638. {
  1639. }
  1640. function group3_Tab00_tabpage2_Grid00_onkeydown(obj:Grid, e:KeyEventInfo)
  1641. {
  1642. if (e.ctrlKey && e.keycode == 67)
  1643. {
  1644. grdf_clipboardCopy(obj, "PAM");
  1645. }
  1646. }
  1647. function grp_btn_button10_onclick(obj:Button, e:ClickEventInfo)
  1648. {
  1649. }
  1650. function group2_ipt_fromcretdd_onmonthchange(obj:Calendar, e:CalendarMonthChangeEventInfo)
  1651. {
  1652. }
  1653. function group2_ipt_tocretdd_onmonthchange(obj:Calendar, e:CalendarMonthChangeEventInfo)
  1654. {
  1655. fDateChk("t");
  1656. }
  1657. function group2_ipt_srchnum_onkeydown(obj:Edit, e:KeyEventInfo)
  1658. {
  1659. if (e.keycode == 13){
  1660. obj.updateToDataset();
  1661. group2.button1.click();
  1662. }
  1663. }
  1664. function group3_Tab00_tabpage1_grd_saminfo_onvscroll(obj:Grid, e:ScrollEventInfo)
  1665. {
  1666. lgv_vscroll_pos = group3.Tab00.tabpage1.grd_saminfo.vscrollbar.pos;
  1667. }
  1668. function group3_Tab00_tabpage1_grd_saminfo_onhscroll(obj:Grid, e:ScrollEventInfo)
  1669. {
  1670. lgv_hscroll_pos = group3.Tab00.tabpage1.grd_saminfo.hscrollbar.pos;
  1671. }
  1672. function btn_renamefile_onclick(obj:Button, e:ClickEventInfo)
  1673. {
  1674. var fd = new FileDialog;
  1675. var objfldnm = fd.open("선택한 하위폴더 내 파일명을 일괄변경 할 폴더를 선택하여 주십시오.", FileDialog.SELFOLDER, "C:\\hira\\DDMD\\sam\\in");
  1676. if(!utlf_isNull(objfldnm)){
  1677. var objExtCommon = new ExtCommon();
  1678. var objVFile = objExtCommon.getFileList(objfldnm, "F");
  1679. var filenm = "";
  1680. var lstundrbarCount = 0;
  1681. for (var i = 0; i < objVFile.length; i++)
  1682. {
  1683. filenm = String(objVFile[i]);
  1684. lstundrbarCount = filenm.lastIndexOf("_")+1;
  1685. objExtCommon.fileReName(objfldnm + "\\" + objVFile[i], objfldnm + "\\" + filenm.substr(lstundrbarCount, filenm.length));
  1686. }
  1687. }
  1688. }]]></Script>
  1689. </Form>
  1690. </FDL>