SMPAS00700_미수금관리.xfdl 145 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPAS00700" position="absolute 0 0 1211 787" titletext="미수금 현황" onload="SMPAS00700_onload" oninit="SMPAS00700_oninit">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 25 1195 65" id="grp" class="div_SA" anchor="left top right">
  8. <Layouts>
  9. <Layout width="1200" height="37">
  10. <Button position="absolute 1125 9 1181 31" id="btn_search" class="btn1" text="조회" onclick="grp_btn_search_onclick" anchor="top right"/>
  11. <Shape position="absolute 1112 9 1118 31" linetype="vertical" id="line1" class="line_4" visible="true" anchor="top right"/>
  12. <Static text="등록번호" position="absolute 10 12 88 29" id="caption4" class="search_name"/>
  13. <Edit position="absolute 90 11 190 30" id="ipt_pid" onkeydown="grp_ipt_pid_onkeydown" autoselect="true"/>
  14. <Button position="absolute 375 12 391 28" id="btn_pid" class="icon_search" text="" onclick="grp_btn_pid_onclick"/>
  15. <Edit readonly="true" position="absolute 269 11 314 30" id="output2" style="background:URL('theme://images/bg_edit_R.png') stretch 5,5;" enable="false"/>
  16. <Edit readonly="true" position="absolute 316 11 371 30" id="output3" style="background:URL('theme://images/bg_edit_R.png') stretch 5,5;" enable="false"/>
  17. <Static text="미수구분" position="absolute 420 12 510 29" id="caption2" class="search_name"/>
  18. <Calendar position="absolute 735 11 820 30" id="input1" dateformat="yyyy-MM-dd" value="null" autoselect="true" autoskip="true" onchanged="grp_input1_onchanged"/>
  19. <Static text="납부기간입력" position="absolute 630 12 732 29" id="caption1" class="search_name"/>
  20. <Combo position="absolute 500 11 600 30" id="cmd_uncocd" innerdataset="@ds_init_uncocd" datacolumn="nm" codecolumn="cd" onitemchanged="grp_cmd_uncocd_onitemchanged"/>
  21. <Edit position="absolute 204 11 266 30" id="input2" onkeydown="grp_input2_onkeydown" autoselect="true"/>
  22. <Button id="btn_hngnm" taborder="1" text="11" class="btn2_letter2" visible="false" position="absolute 843 11 885 30" onclick="grp_btn_hngnm_onclick"/>
  23. </Layout>
  24. </Layouts>
  25. </Div>
  26. <Shape position="absolute 0 85 1195 91" linetype="horizontal" id="line3" class="line_1" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  27. <Static text="미수내역" position="absolute 0 69 160 85" id="caption6" class="tit_2"/>
  28. <Grid position="absolute 0 90 1195 300" align="align:center middle;" id="grd_uncolist" binddataset="ds_list_unco_uncolist" oncellclick="grd_uncolist_oncellclick" anchor="all" autoenter="select" cellsizingtype="col">
  29. <Formats>
  30. <Format id="default">
  31. <Columns>
  32. <Column size="0"/>
  33. <Column size="85"/>
  34. <Column size="60"/>
  35. <Column size="0"/>
  36. <Column size="100"/>
  37. <Column size="70"/>
  38. <Column size="100"/>
  39. <Column size="80"/>
  40. <Column size="80"/>
  41. <Column size="85"/>
  42. <Column size="85"/>
  43. <Column size="85"/>
  44. <Column size="85"/>
  45. <Column size="85"/>
  46. <Column size="0"/>
  47. <Column size="80"/>
  48. <Column size="80"/>
  49. <Column size="80"/>
  50. <Column size="50"/>
  51. <Column size="50"/>
  52. <Column size="50"/>
  53. <Column size="50"/>
  54. <Column size="100"/>
  55. <Column size="100"/>
  56. <Column size="74"/>
  57. <Column size="245"/>
  58. <Column size="100"/>
  59. </Columns>
  60. <Rows>
  61. <Row size="24" band="head"/>
  62. <Row size="24"/>
  63. </Rows>
  64. <Band id="head">
  65. <Cell/>
  66. <Cell col="1" text="등록번호"/>
  67. <Cell col="2" text="미수경로"/>
  68. <Cell col="3" text="미수코드"/>
  69. <Cell col="4" text="미수구분"/>
  70. <Cell col="5" text="성명"/>
  71. <Cell col="6" text="진료과명"/>
  72. <Cell col="7" text="유형"/>
  73. <Cell col="8" text="보조유형"/>
  74. <Cell col="9" text="입원일자"/>
  75. <Cell col="10" text="단기시효"/>
  76. <Cell col="11" text="장기시효"/>
  77. <Cell col="12" text="발생일자"/>
  78. <Cell col="13" text="미수번호"/>
  79. <Cell col="14" text="미수분류"/>
  80. <Cell col="15" text="미수금액"/>
  81. <Cell col="16" text="미수입금액"/>
  82. <Cell col="17" text="미수잔액"/>
  83. <Cell col="18" text="보증"/>
  84. <Cell col="19" text="이자"/>
  85. <Cell col="20" text="소송"/>
  86. <Cell col="21" text="독려"/>
  87. <Cell col="22" text="전화번호"/>
  88. <Cell col="23" text="휴대전화"/>
  89. <Cell col="24" text="우편번호"/>
  90. <Cell col="25" text="주소"/>
  91. <Cell col="26" text="참고사항"/>
  92. </Band>
  93. <Band id="body">
  94. <Cell displaytype="checkbox" edittype="checkbox" text="bind:check"/>
  95. <Cell col="1" style="background:EXPR(suppkindnm == '소계' ? '#99ff99' : '');background2:EXPR(suppkindnm == '소계' ? '#99ff99' : '');" text="bind:pid"/>
  96. <Cell col="2" displaytype="combo" style="align:center middle;background:EXPR(suppkindnm == '소계' ? '#99ff99' : '');background2:EXPR(suppkindnm == '소계' ? '#99ff99' : '');" text="bind:ordtype" combodataset="ds_cmb_ordtype" combocodecol="value" combodatacol="label" enable="false"/>
  97. <Cell col="3" style="background:EXPR(suppkindnm == '소계' ? '#99ff99' : '');background2:EXPR(suppkindnm == '소계' ? '#99ff99' : '');" text="bind:uncocd"/>
  98. <Cell col="4" style="background:EXPR(suppkindnm == '소계' ? '#99ff99' : '');background2:EXPR(suppkindnm == '소계' ? '#99ff99' : '');" text="bind:unconm"/>
  99. <Cell col="5" style="background:EXPR(suppkindnm == '소계' ? '#99ff99' : '');background2:EXPR(suppkindnm == '소계' ? '#99ff99' : '');" text="bind:hngnm"/>
  100. <Cell col="6" style="background:EXPR(suppkindnm == '소계' ? '#99ff99' : '');background2:EXPR(suppkindnm == '소계' ? '#99ff99' : '');" text="bind:orddeptnm"/>
  101. <Cell col="7" style="background:EXPR(suppkindnm == '소계' ? '#99ff99' : '');background2:EXPR(suppkindnm == '소계' ? '#99ff99' : '');" text="bind:insukindnm"/>
  102. <Cell col="8" style="background:EXPR(suppkindnm == '소계' ? '#99ff99' : '');background2:EXPR(suppkindnm == '소계' ? '#99ff99' : '');" text="bind:suppkindnm"/>
  103. <Cell col="9" style="background:EXPR(suppkindnm == '소계' ? '#99ff99' : '');background2:EXPR(suppkindnm == '소계' ? '#99ff99' : '');" text="bind:orddd" mask="####-##-##" maskchar=" "/>
  104. <Cell col="10" displaytype="date" style="background:EXPR(suppkindnm == '소계' ? '#99ff99' : '');background2:EXPR(suppkindnm == '소계' ? '#99ff99' : '');" text="bind:dangi" calendardisplaynulltype="none"/>
  105. <Cell col="11" displaytype="date" style="background:EXPR(suppkindnm == '소계' ? '#99ff99' : '');background2:EXPR(suppkindnm == '소계' ? '#99ff99' : '');" text="bind:janggi" calendardisplaynulltype="none"/>
  106. <Cell col="12" style="background:EXPR(suppkindnm == '소계' ? '#99ff99' : '');background2:EXPR(suppkindnm == '소계' ? '#99ff99' : '');" text="bind:rcptdd" mask="####-##-##" maskchar=" "/>
  107. <Cell col="13" style="background:EXPR(suppkindnm == '소계' ? '#99ff99' : '');background2:EXPR(suppkindnm == '소계' ? '#99ff99' : '');" text="bind:uncono"/>
  108. <Cell col="14" style="background:EXPR(suppkindnm == '소계' ? '#99ff99' : '');background2:EXPR(suppkindnm == '소계' ? '#99ff99' : '');" text="bind:uncocls"/>
  109. <Cell col="15" displaytype="number" style="align:right middle;background:EXPR(suppkindnm == '소계' ? '#99ff99' : '');background2:EXPR(suppkindnm == '소계' ? '#99ff99' : '');" text="bind:uncoamt"/>
  110. <Cell col="16" displaytype="number" style="align:right middle;background:EXPR(suppkindnm == '소계' ? '#99ff99' : '');background2:EXPR(suppkindnm == '소계' ? '#99ff99' : '');" text="bind:rcptamt"/>
  111. <Cell col="17" displaytype="number" style="align:right middle;background:EXPR(suppkindnm == '소계' ? '#99ff99' : '');background2:EXPR(suppkindnm == '소계' ? '#99ff99' : '');" text="bind:uncorem"/>
  112. <Cell col="18" displaytype="number" style="background:EXPR(suppkindnm == '소계' ? '#99ff99' : '');background2:EXPR(suppkindnm == '소계' ? '#99ff99' : '');" text="bind:guarcount"/>
  113. <Cell col="19" style="background:EXPR(suppkindnm == '소계' ? '#99ff99' : '');background2:EXPR(suppkindnm == '소계' ? '#99ff99' : '');" text="bind:acptcount"/>
  114. <Cell col="20" style="background:EXPR(suppkindnm == '소계' ? '#99ff99' : '');background2:EXPR(suppkindnm == '소계' ? '#99ff99' : '');" text="bind:lawcount"/>
  115. <Cell col="21" style="background:EXPR(suppkindnm == '소계' ? '#99ff99' : '');background2:EXPR(suppkindnm == '소계' ? '#99ff99' : '');" text="bind:ordpaycount"/>
  116. <Cell col="22" style="background:EXPR(suppkindnm == '소계' ? '#99ff99' : '');background2:EXPR(suppkindnm == '소계' ? '#99ff99' : '');" text="bind:hometel"/>
  117. <Cell col="23" style="background:EXPR(suppkindnm == '소계' ? '#99ff99' : '');background2:EXPR(suppkindnm == '소계' ? '#99ff99' : '');" text="bind:mpphontel"/>
  118. <Cell col="24" style="background:EXPR(suppkindnm == '소계' ? '#99ff99' : '');background2:EXPR(suppkindnm == '소계' ? '#99ff99' : '');" text="bind:zipcd"/>
  119. <Cell col="25" style="align:left top;padding:5 2 3 2;background:EXPR(suppkindnm == '소계' ? '#99ff99' : '');background2:EXPR(suppkindnm == '소계' ? '#99ff99' : '');" text="bind:zipaddr" wordwrap="word"/>
  120. <Cell col="26" style="background:EXPR(suppkindnm == '소계' ? '#99ff99' : '');background2:EXPR(suppkindnm == '소계' ? '#99ff99' : '');" text="bind:remfact"/>
  121. </Band>
  122. </Format>
  123. </Formats>
  124. </Grid>
  125. <Shape position="absolute 0 553 595 559" linetype="horizontal" id="line4" class="line_1" style="strokepen:3 solid #33bbbbff;" anchor="left bottom"/>
  126. <Static text="이자내역" position="absolute 0 537 160 553" id="caption8" class="tit_2" anchor="left bottom"/>
  127. <Grid position="absolute 605 558 1195 758" align="align:center middle;" id="grd_ordpaydemand" binddataset="ds_list_detail_ordpaydemand" oncelldblclick="grd_ordpaydemand_oncelldblclick" autoenter="select" anchor="left right bottom" cellsizingtype="col">
  128. <Formats>
  129. <Format id="default">
  130. <Columns>
  131. <Column size="25"/>
  132. <Column size="158"/>
  133. <Column size="131"/>
  134. <Column size="0"/>
  135. <Column size="199"/>
  136. <Column size="0"/>
  137. <Column size="0"/>
  138. <Column size="0"/>
  139. <Column size="0"/>
  140. <Column size="0"/>
  141. <Column size="0"/>
  142. <Column size="0"/>
  143. <Column size="0"/>
  144. <Column size="0"/>
  145. <Column size="0"/>
  146. <Column size="0"/>
  147. <Column size="0"/>
  148. <Column size="0"/>
  149. <Column size="0"/>
  150. <Column size="0"/>
  151. </Columns>
  152. <Rows>
  153. <Row size="24" band="head"/>
  154. <Row size="24"/>
  155. </Rows>
  156. <Band id="head">
  157. <Cell/>
  158. <Cell col="1" text="구분"/>
  159. <Cell col="2" text="시행일자"/>
  160. <Cell col="3" text="발행부수"/>
  161. <Cell col="4" text="비고"/>
  162. <Cell col="5" text="pid"/>
  163. <Cell col="6" text="rcptdd"/>
  164. <Cell col="7" text="rcptno"/>
  165. <Cell col="8" text="orddd"/>
  166. <Cell col="9" text="cretno"/>
  167. <Cell col="10" text="endyn"/>
  168. <Cell col="11" text="seqno"/>
  169. <Cell col="12" text="sendflag"/>
  170. <Cell col="13" text="instcd"/>
  171. <Cell col="14" text="bankno"/>
  172. <Cell col="15" text="koraddr"/>
  173. <Cell col="16" text="engaddr"/>
  174. <Cell col="17" text="hospnm"/>
  175. <Cell col="18" text="subremfact"/>
  176. <Cell col="19"/>
  177. </Band>
  178. <Band id="body">
  179. <Cell celltype="head"/>
  180. <Cell col="1" displaytype="combo" edittype="expr:getRowType(currow) == 2 ? 'combo' : 'none'" style="align:center middle;" text="bind:issflag" combodataset="ds_cmb_issflag" combocodecol="value" combodatacol="label" combodisplayrowcount="8" enable="false"/>
  181. <Cell col="2" displaytype="expr:utlf_isNull(issdt) ? &quot;none&quot; : &quot;text&quot;" edittype="none" text="bind:issdt" mask="####-##-## ##:##:##" maskchar=" "/>
  182. <Cell col="3" text="bind:isscnt"/>
  183. <Cell col="4" displaytype="text" edittype="text" editfilter="lower,number,char" text="bind:remfact" editimemode="hangul"/>
  184. <Cell col="5" text="bind:pid"/>
  185. <Cell col="6" text="bind:rcptdd"/>
  186. <Cell col="7" text="bind:rcptno"/>
  187. <Cell col="8" text="bind:orddd"/>
  188. <Cell col="9" text="bind:cretno"/>
  189. <Cell col="10" text="bind:endyn"/>
  190. <Cell col="11" text="bind:seqno"/>
  191. <Cell col="12" text="bind:sendflag"/>
  192. <Cell col="13" text="bind:instcd"/>
  193. <Cell col="14" text="bind:bankno"/>
  194. <Cell col="15" text="bind:koraddr"/>
  195. <Cell col="16" text="bind:engaddr"/>
  196. <Cell col="17" text="bind:hospnm"/>
  197. <Cell col="18" text="bind:subremfact"/>
  198. <Cell col="19" text="bind:phone"/>
  199. </Band>
  200. </Format>
  201. </Formats>
  202. </Grid>
  203. <Shape position="absolute 605 323 1195 329" linetype="horizontal" id="line5" class="line_1" style="strokepen:3 solid #33bbbbff;" anchor="left right bottom"/>
  204. <Static text="보증인내역" position="absolute 0 308 160 324" id="caption9" class="tit_2" anchor="left bottom"/>
  205. <Static text="소송내역" position="absolute 605 307 765 323" id="caption10" class="tit_2" anchor="left bottom"/>
  206. <Shape position="absolute 0 324 595 330" linetype="horizontal" id="line6" class="line_1" style="strokepen:3 solid #33bbbbff;" anchor="left bottom"/>
  207. <Static text="진료비독촉내역" position="absolute 605 537 765 553" id="caption11" class="tit_2" anchor="left bottom"/>
  208. <Shape position="absolute 605 553 1195 559" linetype="horizontal" id="line7" class="line_1" style="strokepen:3 solid #33bbbbff;" anchor="left right bottom"/>
  209. <Grid position="absolute 0 558 595 758" align="align:center middle;" id="grd_acptlist" binddataset="ds_list_detail_acptlist" ontextchanged="grd_acptlist_ontextchanged" autoenter="select" anchor="left bottom" cellsizingtype="col">
  210. <Formats>
  211. <Format id="default">
  212. <Columns>
  213. <Column size="25" band="left"/>
  214. <Column size="55"/>
  215. <Column size="55"/>
  216. <Column size="100"/>
  217. <Column size="100"/>
  218. <Column size="80"/>
  219. <Column size="88"/>
  220. <Column size="88"/>
  221. <Column size="48"/>
  222. <Column size="80"/>
  223. <Column size="80"/>
  224. <Column size="87"/>
  225. <Column size="100"/>
  226. <Column size="132"/>
  227. <Column size="0"/>
  228. <Column size="0"/>
  229. <Column size="0"/>
  230. <Column size="0"/>
  231. <Column size="0"/>
  232. <Column size="0"/>
  233. <Column size="0"/>
  234. <Column size="0"/>
  235. <Column size="0"/>
  236. <Column size="0"/>
  237. <Column size="0"/>
  238. <Column size="0"/>
  239. <Column size="0"/>
  240. <Column size="0"/>
  241. <Column size="0"/>
  242. <Column size="0"/>
  243. </Columns>
  244. <Rows>
  245. <Row size="24" band="head"/>
  246. <Row size="24"/>
  247. </Rows>
  248. <Band id="head">
  249. <Cell/>
  250. <Cell col="1" text="정산구분"/>
  251. <Cell col="2" text="미수구분"/>
  252. <Cell col="3" text="수납일자"/>
  253. <Cell col="4" text="수납시간"/>
  254. <Cell col="5" text="이자대상금액"/>
  255. <Cell col="6" text="이자시작일자"/>
  256. <Cell col="7" text="이자종료일자"/>
  257. <Cell col="8" text="이자율"/>
  258. <Cell col="9" text="이자금액"/>
  259. <Cell col="10" text="수납금액"/>
  260. <Cell col="11" text="대손금액"/>
  261. <Cell col="12" text="이자미수잔액"/>
  262. <Cell col="13" text="비고"/>
  263. <Cell col="14" text="pid"/>
  264. <Cell col="15" text="rcptdd"/>
  265. <Cell col="16" text="rcptno"/>
  266. <Cell col="17" text="seqno"/>
  267. <Cell col="18" text="orddd"/>
  268. <Cell col="19" text="cretno"/>
  269. <Cell col="20" text="insukind"/>
  270. <Cell col="21" text="suppkind"/>
  271. <Cell col="22" text="rcptstat"/>
  272. <Cell col="23" text="uncorem"/>
  273. <Cell col="24" text="ordtype"/>
  274. <Cell col="25" text="uncoamt"/>
  275. <Cell col="26" text="uncocd"/>
  276. <Cell col="27" text="cashamt"/>
  277. <Cell col="28" text="cardamt"/>
  278. <Cell col="29" text="onlineamt"/>
  279. </Band>
  280. <Band id="body">
  281. <Cell celltype="head"/>
  282. <Cell col="1" displaytype="combo" edittype="expr:getRowType(currow) == 2 ? 'combo' : 'none'" style="align:center middle;" text="bind:uncorcptflag" combodataset="ds_cmb_uncorcptflag" combocodecol="value" combodatacol="label" enable="false"/>
  283. <Cell col="2" displaytype="combo" edittype="expr:getRowType(currow) == 2 ? 'combo' : 'none'" style="align:center middle;" text="bind:uncoflag" combodataset="ds_cmb_uncoflag2" combocodecol="value" combodatacol="label" enable="false"/>
  284. <Cell col="3" displaytype="date" text="bind:rcptexecdd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  285. <Cell col="4" displaytype="expr:utlf_isNull(rcpttm) ? &quot;none&quot; : &quot;text&quot;" text="bind:rcpttm" mask="##:##:##" maskchar=" "/>
  286. <Cell col="5" displaytype="number" edittype="text" style="align:right middle;" text="bind:intramt"/>
  287. <Cell col="6" displaytype="date" edittype="date" text="bind:intrfromdd" calendardisplaynulltype="none" enable="false"/>
  288. <Cell col="7" displaytype="date" edittype="date" text="bind:intrtodd" calendardisplaynulltype="none"/>
  289. <Cell col="8" displaytype="combo" edittype="expr:getRowType(currow) == 2 ? 'combo' : 'none'" style="align:center middle;" text="bind:intrrate" combodataset="ds_paminit_P6584list_P6584" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  290. <Cell col="9" displaytype="number" style="align:right middle;padding:0 4 0 0;" text="bind:uncoamt"/>
  291. <Cell col="10" displaytype="number" style="align:right middle;padding:0 4 0 0;" text="bind:rcptamt"/>
  292. <Cell col="11" displaytype="number" style="align:right middle;padding:0 4 0 0;" text="bind:debtamt"/>
  293. <Cell col="12" displaytype="number" style="align:right middle;padding:0 4 0 0;" text="bind:acptuncorem"/>
  294. <Cell col="13"/>
  295. <Cell col="14" text="bind:pid"/>
  296. <Cell col="15" text="bind:rcptdd"/>
  297. <Cell col="16" text="bind:rcptno"/>
  298. <Cell col="17" text="bind:seqno"/>
  299. <Cell col="18" text="bind:orddd"/>
  300. <Cell col="19" text="bind:cretno"/>
  301. <Cell col="20" text="bind:insukind"/>
  302. <Cell col="21" text="bind:suppkind"/>
  303. <Cell col="22" text="bind:rcptstat"/>
  304. <Cell col="23" text="bind:uncorem"/>
  305. <Cell col="24" text="bind:ordtype"/>
  306. <Cell col="25" text="bind:uncoamt"/>
  307. <Cell col="26" text="bind:uncocd"/>
  308. <Cell col="27" text="bind:cashamt"/>
  309. <Cell col="28" text="bind:cardamt"/>
  310. <Cell col="29" text="bind:onlineamt"/>
  311. </Band>
  312. </Format>
  313. </Formats>
  314. </Grid>
  315. <Grid position="absolute 0 329 595 529" align="align:center middle;" id="grd_quar" binddataset="ds_list_detail_guarlist" oncelldblclick="grd_quar_oncelldblclick" autoenter="select" anchor="left bottom" cellsizingtype="col">
  316. <Formats>
  317. <Format id="default">
  318. <Columns>
  319. <Column size="25" band="left"/>
  320. <Column size="40"/>
  321. <Column size="100"/>
  322. <Column size="55"/>
  323. <Column size="55"/>
  324. <Column size="0"/>
  325. <Column size="80"/>
  326. <Column size="80"/>
  327. <Column size="80"/>
  328. <Column size="85"/>
  329. <Column size="39"/>
  330. <Column size="39"/>
  331. <Column size="0"/>
  332. <Column size="150"/>
  333. <Column size="200"/>
  334. <Column size="0"/>
  335. <Column size="0"/>
  336. <Column size="0"/>
  337. <Column size="0"/>
  338. <Column size="0"/>
  339. <Column size="0"/>
  340. <Column size="0"/>
  341. <Column size="0"/>
  342. </Columns>
  343. <Rows>
  344. <Row size="24" band="head"/>
  345. <Row size="24"/>
  346. </Rows>
  347. <Band id="head">
  348. <Cell/>
  349. <Cell col="1" text="출력"/>
  350. <Cell col="2" text="보증인명"/>
  351. <Cell col="3" colspan="2" text="주민번호" taborder="undefined"/>
  352. <Cell col="5" text="성별"/>
  353. <Cell col="6" text="관계"/>
  354. <Cell col="7" text="집전화"/>
  355. <Cell col="8" text="사무실전화"/>
  356. <Cell col="9" text="휴대폰번호"/>
  357. <Cell col="10" colspan="2" text="우편번호" taborder="undefined"/>
  358. <Cell col="12" text="우편일련번호"/>
  359. <Cell col="13" text="우편주소"/>
  360. <Cell col="14" text="상세주소"/>
  361. <Cell col="15" text="미수설명여부"/>
  362. <Cell col="16" text="pid"/>
  363. <Cell col="17" text="rcptdd"/>
  364. <Cell col="18" text="rcptno"/>
  365. <Cell col="19" text="orddd"/>
  366. <Cell col="20" text="crentno"/>
  367. <Cell col="21" text="seqno"/>
  368. <Cell col="22" text="rcptstat"/>
  369. </Band>
  370. <Band id="body">
  371. <Cell celltype="head"/>
  372. <Cell col="1" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:printyn" combodataset="ds_cmb_printyn" combocodecol="label" combodatacol="value"/>
  373. <Cell col="2" displaytype="text" edittype="text" text="bind:grntornm"/>
  374. <Cell col="3" displaytype="text" edittype="text" text="bind:grntorrrgstno1" mask="999999" maskchar=" " editlimit="6"/>
  375. <Cell col="4" displaytype="text" edittype="text" text="bind:grntorrrgstno2" mask="9999999" maskchar=" " editlimit="7"/>
  376. <Cell col="5" displaytype="combo" edittype="combo" text="bind:grntorsex" enable="false"/>
  377. <Cell col="6" displaytype="text" edittype="text" text="bind:grntorrel" enable="false"/>
  378. <Cell col="7" displaytype="expr:utlf_isNull(grntorhometel) ? &quot;none&quot; : &quot;text&quot;" edittype="text" style="align:center middle;" text="bind:grntorhometel" mask="###-###-####" maskchar=" "/>
  379. <Cell col="8" displaytype="expr:utlf_isNull(grntorofficetel) ? &quot;none&quot; : &quot;text&quot;" edittype="text" style="align:center middle;" text="bind:grntorofficetel" mask="###-###-####" maskchar=" "/>
  380. <Cell col="9" displaytype="expr:utlf_isNull(grntormpphontel) ? &quot;none&quot; : &quot;text&quot;" edittype="text" style="align:center middle;" text="bind:grntormpphontel" mask="###-####-####" maskchar=" "/>
  381. <Cell col="10" text="bind:grntorzipcd1"/>
  382. <Cell col="11" text="bind:grntorzipcd2"/>
  383. <Cell col="12" text="bind:grntorzipcdseq"/>
  384. <Cell col="13" displaytype="text" edittype="text" text="bind:grntorzipcdaddr"/>
  385. <Cell col="14" displaytype="text" edittype="text" text="bind:grntordetladdr"/>
  386. <Cell col="15" text="bind:uncodescyn"/>
  387. <Cell col="16" text="bind:pid"/>
  388. <Cell col="17" text="bind:rcptdd"/>
  389. <Cell col="18" text="bind:rcptno"/>
  390. <Cell col="19" text="bind:orddd"/>
  391. <Cell col="20" text="bind:cretno"/>
  392. <Cell col="21" text="bind:seqno"/>
  393. <Cell col="22" text="bind:rcptstat"/>
  394. </Band>
  395. </Format>
  396. </Formats>
  397. </Grid>
  398. <Button position="absolute 452 305 505 324" id="button3" class="btn2" text="행추가" onclick="button3_onclick" anchor="left bottom"/>
  399. <Button position="absolute 508 305 550 324" id="button4" class="btn5" text="삭제" onclick="button4_onclick" anchor="left bottom"/>
  400. <Button position="absolute 553 305 595 324" id="button5" class="btn5" text="저장" onclick="button5_onclick" anchor="left bottom"/>
  401. <Button position="absolute 1051 534 1104 553" id="button15" class="btn2" text="행추가" onclick="button15_onclick" anchor="right bottom"/>
  402. <Button position="absolute 1107 534 1149 553" id="button16" class="btn5" text="삭제" onclick="button16_onclick" anchor="right bottom"/>
  403. <Button position="absolute 1152 534 1194 553" id="button17" class="btn5" text="저장" onclick="button17_onclick" anchor="right bottom"/>
  404. <Button position="absolute 451 534 504 553" id="button2" class="btn2" text="행추가" onclick="button2_onclick" anchor="left bottom"/>
  405. <Button position="absolute 507 534 549 553" id="button6" class="btn5" text="삭제" onclick="button6_onclick" anchor="left bottom"/>
  406. <Button position="absolute 552 534 594 553" id="button7" class="btn5" text="저장" onclick="button7_onclick" anchor="left bottom"/>
  407. <Grid position="absolute 605 328 1195 528" align="align:center middle;" id="grd_lawsulist" binddataset="ds_list_detail_lawsulist" ontextchanged="grd_lawsulist_ontextchanged" autoenter="select" anchor="left right bottom">
  408. <Formats>
  409. <Format id="default">
  410. <Columns>
  411. <Column size="25" band="left"/>
  412. <Column size="55"/>
  413. <Column size="80"/>
  414. <Column size="0"/>
  415. <Column size="80"/>
  416. <Column size="80"/>
  417. <Column size="80"/>
  418. <Column size="218"/>
  419. <Column size="0"/>
  420. <Column size="0"/>
  421. <Column size="0"/>
  422. <Column size="0"/>
  423. <Column size="0"/>
  424. <Column size="0"/>
  425. <Column size="0"/>
  426. <Column size="0"/>
  427. <Column size="0"/>
  428. <Column size="0"/>
  429. <Column size="0"/>
  430. <Column size="0"/>
  431. <Column size="0"/>
  432. <Column size="0"/>
  433. <Column size="0"/>
  434. <Column size="0"/>
  435. <Column size="0"/>
  436. </Columns>
  437. <Rows>
  438. <Row size="24" band="head"/>
  439. <Row size="24"/>
  440. </Rows>
  441. <Band id="head">
  442. <Cell/>
  443. <Cell col="1" text="정산구분"/>
  444. <Cell col="2" text="미수구분"/>
  445. <Cell col="3" text="수납시간"/>
  446. <Cell col="4" text="소송비용"/>
  447. <Cell col="5" text="수납금액"/>
  448. <Cell col="6" text="대손금액"/>
  449. <Cell col="7" text="비고"/>
  450. <Cell col="8" text="intrrate"/>
  451. <Cell col="9" text="pid"/>
  452. <Cell col="10" text="rcptdd"/>
  453. <Cell col="11" text="rcptno"/>
  454. <Cell col="12" text="seqno"/>
  455. <Cell col="13" text="orddd"/>
  456. <Cell col="14" text="cretno"/>
  457. <Cell col="15" text="insukind"/>
  458. <Cell col="16" text="suppkind"/>
  459. <Cell col="17" text="rcptstat"/>
  460. <Cell col="18" text="uncorem"/>
  461. <Cell col="19" text="ordtype"/>
  462. <Cell col="20" text="uncoamt"/>
  463. <Cell col="21" text="uncocd"/>
  464. <Cell col="22" text="cashamt"/>
  465. <Cell col="23" text="cardamt"/>
  466. <Cell col="24" text="onlineamt"/>
  467. </Band>
  468. <Band id="body">
  469. <Cell celltype="head"/>
  470. <Cell col="1" displaytype="combo" edittype="expr:getRowType(currow) == 2 ? 'combo' : 'none'" style="align:center middle;" text="bind:uncorcptflag" combodataset="ds_cmb_uncorcptflag" combocodecol="value" combodatacol="label" enable="false"/>
  471. <Cell col="2" displaytype="combo" edittype="expr:getRowType(currow) == 2 ? 'combo' : 'none'" style="align:center middle;" text="bind:uncoflag" combodataset="ds_cmb_uncoflag" combocodecol="value" combodatacol="label" enable="false"/>
  472. <Cell col="3" text="bind:rcpttm"/>
  473. <Cell col="4" displaytype="expr:utlf_isnull(uncoamt) ? &quot;none&quot; : &quot;text&quot;" edittype="text" style="align:right middle;padding:0 4 0 0;" text="bind:uncoamt" enable="false"/>
  474. <Cell col="5" displaytype="expr:utlf_isnull(rcptamt) ? &quot;none&quot; : &quot;text&quot;" edittype="text" style="align:right middle;padding:0 4 0 0;" text="bind:rcptamt" enable="false"/>
  475. <Cell col="6" displaytype="expr:utlf_isnull(debtamt) ? &quot;none&quot; : &quot;text&quot;" edittype="text" style="align:right middle;padding:0 4 0 0;" text="bind:debtamt" enable="false"/>
  476. <Cell col="7" displaytype="text" edittype="text" editfilter="lower,number,char" text="bind:remfact" editimemode="hangul"/>
  477. <Cell col="8" text="bind:intrrate"/>
  478. <Cell col="9" text="bind:pid"/>
  479. <Cell col="10" text="bind:rcptdd"/>
  480. <Cell col="11" text="bind:rcptno"/>
  481. <Cell col="12" text="bind:seqno"/>
  482. <Cell col="13" text="bind:orddd"/>
  483. <Cell col="14" text="bind:cretno"/>
  484. <Cell col="15" text="bind:insukind"/>
  485. <Cell col="16" text="bind:suppkind"/>
  486. <Cell col="17" text="bind:rcptstat"/>
  487. <Cell col="18" text="bind:uncorem"/>
  488. <Cell col="19" text="bind:ordtype"/>
  489. <Cell col="20" text="bind:uncoamt"/>
  490. <Cell col="21" text="bind:uncocd"/>
  491. <Cell col="22" text="bind:cashamt"/>
  492. <Cell col="23" text="bind:cardamt"/>
  493. <Cell col="24" text="bind:onlineamt"/>
  494. </Band>
  495. </Format>
  496. </Formats>
  497. </Grid>
  498. <Button position="absolute 1052 304 1105 323" id="button8" class="btn2" text="행추가" onclick="button8_onclick" anchor="right bottom"/>
  499. <Button position="absolute 1108 304 1150 323" id="button9" class="btn5" text="삭제" onclick="button9_onclick" anchor="right bottom"/>
  500. <Button position="absolute 1153 304 1195 323" id="button10" class="btn5" text="저장" onclick="button10_onclick" anchor="right bottom"/>
  501. <Button position="absolute 0 760 99 782" id="button11" class="btn3" text="미수입금내역" onclick="button11_onclick" anchor="left bottom"/>
  502. <Button position="absolute 102 760 216 782" id="button12" class="btn3" text="기간별미수조회" onclick="button12_onclick" anchor="left bottom"/>
  503. <Button position="absolute 655 760 771 782" id="button13" class="btn3" visible="false" text="년도별미수조회" onclick="button13_onclick" anchor="left bottom"/>
  504. <Button position="absolute 545 760 649 782" id="button14" class="btn3" visible="false" text="승인미수내역" onclick="button14_onclick" anchor="left bottom"/>
  505. <Button position="absolute 1030 760 1110 782" id="button18" class="btn4" text="미수수납" onclick="button18_onclick" anchor="right bottom"/>
  506. <Grid position="absolute 815 247 1195 297" id="datagrid1" visible="false" binddataset="ds_datagrid1">
  507. <Formats>
  508. <Format id="default">
  509. <Columns>
  510. <Column size="100"/>
  511. <Column size="100"/>
  512. <Column size="100"/>
  513. <Column size="100"/>
  514. <Column size="100"/>
  515. <Column size="100"/>
  516. <Column size="100"/>
  517. <Column size="100"/>
  518. <Column size="100"/>
  519. <Column size="100"/>
  520. <Column size="100"/>
  521. <Column size="100"/>
  522. <Column size="53"/>
  523. <Column size="30"/>
  524. <Column size="25"/>
  525. </Columns>
  526. <Rows>
  527. <Row size="24" band="head"/>
  528. <Row size="24"/>
  529. </Rows>
  530. <Band id="head">
  531. <Cell text="pid"/>
  532. <Cell col="1" text="hngnm"/>
  533. <Cell col="2" text="addr"/>
  534. <Cell col="3" text="detladdr"/>
  535. <Cell col="4" text="uncoamt"/>
  536. <Cell col="5" text="intramt"/>
  537. <Cell col="6" text="grntornm"/>
  538. <Cell col="7" text="grntorzipcdaddr"/>
  539. <Cell col="8" text="grntordetladdr"/>
  540. <Cell col="9" text="uncorem"/>
  541. <Cell col="10" text="totamt"/>
  542. <Cell col="11" text="totamtkor"/>
  543. <Cell col="12" text="yyyy"/>
  544. <Cell col="13" text="mm"/>
  545. <Cell col="14" text="dd"/>
  546. </Band>
  547. <Band id="body">
  548. <Cell text="bind:pid"/>
  549. <Cell col="1" text="bind:hngnm"/>
  550. <Cell col="2" text="bind:addr"/>
  551. <Cell col="3" text="bind:detladdr"/>
  552. <Cell col="4" text="bind:uncoamt"/>
  553. <Cell col="5" text="bind:intramt"/>
  554. <Cell col="6" text="bind:grntornm"/>
  555. <Cell col="7" text="bind:grntorzipcdaddr"/>
  556. <Cell col="8" text="bind:grntordetladdr"/>
  557. <Cell col="9" text="bind:uncorem"/>
  558. <Cell col="10" text="bind:totamt"/>
  559. <Cell col="11" text="bind:totamtkor"/>
  560. <Cell col="12" text="bind:yyyy"/>
  561. <Cell col="13" text="bind:mm"/>
  562. <Cell col="14" text="bind:dd"/>
  563. </Band>
  564. </Format>
  565. </Formats>
  566. </Grid>
  567. <Grid position="absolute 1015 197 1195 247" id="datagrid2" visible="false" binddataset="ds_datagrid2">
  568. <Formats>
  569. <Format id="default">
  570. <Columns>
  571. <Column size="100"/>
  572. <Column size="100"/>
  573. <Column size="100"/>
  574. </Columns>
  575. <Rows>
  576. <Row size="24" band="head"/>
  577. <Row size="24"/>
  578. </Rows>
  579. <Band id="head">
  580. <Cell text="intr"/>
  581. <Cell col="1" text="law"/>
  582. <Cell col="2" text="intrtodd"/>
  583. </Band>
  584. <Band id="body">
  585. <Cell text="bind:law"/>
  586. <Cell col="1" text="bind:intr"/>
  587. <Cell col="2" text="bind:intrtodd"/>
  588. </Band>
  589. </Format>
  590. </Formats>
  591. </Grid>
  592. <Button position="absolute 219 760 323 782" id="button1" class="btn3" text="일일미수현황" onclick="button1_onclick" anchor="left bottom"/>
  593. <Button position="absolute 1125 760 1193 782" id="btn_clear" class="btn4" text="초기화" onclick="btn_clear_onclick" anchor="right bottom"/>
  594. <Button position="absolute 326 760 418 782" id="button19" class="btn3" text="보증인조회" onclick="button19_onclick" anchor="left bottom"/>
  595. <Button position="absolute 825 760 917 782" id="button20" class="btn3" visible="false" text="미수총괄표" onclick="button20_onclick" anchor="left bottom"/>
  596. <Button position="absolute 945 760 1025 782" id="button21" class="btn4" text="미수안내" onclick="button21_onclick" anchor="right bottom"/>
  597. <CheckBox position="absolute 717 537 737 552" id="bool1" falsevalue="N" truevalue="Y" onclick="bool1_onclick" anchor="right bottom"/>
  598. <Static text="※체크시 환자독촉장을 출력하지 않습니다(보증인만출력)" position="absolute 735 535 1048 555" id="caption3" style="color:red;" anchor="right bottom"/>
  599. <Button position="absolute 421 760 518 782" id="button22" class="btn3" text="미수총괄표" onclick="button22_onclick" anchor="left bottom"/>
  600. <Static id="caption60" text="미수금관리" class="tit_1" position="absolute 0 0 140 25"/>
  601. </Layout>
  602. </Layouts>
  603. <Objects>
  604. <Dataset id="ds_source" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  605. <ColumnInfo>
  606. <Column id="srchcond" type="STRING" size="256"/>
  607. <Column id="pid" type="STRING" size="256"/>
  608. <Column id="hngnm" type="STRING" size="256"/>
  609. <Column id="rrgstno1" type="STRING" size="256"/>
  610. <Column id="rrgstno2" type="STRING" size="256"/>
  611. <Column id="autoflag" type="STRING" size="256"/>
  612. <Column id="checkfnexam" type="STRING" size="256"/>
  613. </ColumnInfo>
  614. <Rows>
  615. <Row>
  616. <Col id="srchcond"/>
  617. <Col id="pid"/>
  618. <Col id="hngnm"/>
  619. <Col id="rrgstno1"/>
  620. <Col id="rrgstno2"/>
  621. <Col id="autoflag"/>
  622. <Col id="checkfnexam"/>
  623. </Row>
  624. </Rows>
  625. </Dataset>
  626. <Dataset id="ds_list_unco_uncolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  627. <ColumnInfo>
  628. <Column id="check" type="STRING" size="256" sumtext="체크하기"/>
  629. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  630. <Column id="hngnm" type="STRING" size="256" sumtext="환자이름"/>
  631. <Column id="hometel" type="STRING" size="256" sumtext="집전화"/>
  632. <Column id="mpphontel" type="STRING" size="256" sumtext="휴대전화"/>
  633. <Column id="zipcd" type="STRING" size="256" sumtext="우편번호"/>
  634. <Column id="zipaddr" type="STRING" size="256" sumtext="주소"/>
  635. <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과명"/>
  636. <Column id="insukind" type="STRING" size="256" sumtext="보험유형"/>
  637. <Column id="insukindnm" type="STRING" size="256" sumtext="보험유형"/>
  638. <Column id="suppkind" type="STRING" size="256" sumtext="보조유형"/>
  639. <Column id="suppkindnm" type="STRING" size="256" sumtext="보조유형"/>
  640. <Column id="rcptdd" type="STRING" size="256" sumtext="발생일자"/>
  641. <Column id="rcptno" type="STRING" size="256" sumtext="발생번호"/>
  642. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  643. <Column id="ordtype" type="STRING" size="256" sumtext="진료형태"/>
  644. <Column id="orddd" type="STRING" size="256" sumtext="접수일"/>
  645. <Column id="cretno" type="STRING" size="256" sumtext=""/>
  646. <Column id="uncocls" type="STRING" size="256" sumtext="미수분류"/>
  647. <Column id="uncocd" type="STRING" size="256" sumtext="미수코드"/>
  648. <Column id="unconm" type="STRING" size="256" sumtext="미수코드"/>
  649. <Column id="rrgstno" type="STRING" size="256" sumtext="주민번호"/>
  650. <Column id="uncoamt" type="STRING" size="256" sumtext="미수금액"/>
  651. <Column id="rcptamt" type="STRING" size="256" sumtext=""/>
  652. <Column id="debtamt" type="STRING" size="256" sumtext="입급액"/>
  653. <Column id="uncorem" type="STRING" size="256" sumtext="미수잔액"/>
  654. <Column id="guarcount" type="STRING" size="256" sumtext="보증인수"/>
  655. <Column id="acptcount" type="STRING" size="256" sumtext="이자발생수"/>
  656. <Column id="lawcount" type="STRING" size="256" sumtext="소송건수"/>
  657. <Column id="ordpaycount" type="STRING" size="256" sumtext="독촉발생수"/>
  658. <Column id="remfact" type="STRING" size="256" sumtext="수납에대한참고사항"/>
  659. <Column id="uncono" type="STRING" size="256" sumtext="미수번호"/>
  660. <Column id="shortdd" type="STRING" size="256" sumtext="단기시효일자"/>
  661. <Column id="longdd" type="STRING" size="256" sumtext="장기시효일자"/>
  662. </ColumnInfo>
  663. </Dataset>
  664. <Dataset id="ds_list_detail_guarlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_list_detail_guarlist_oncolumnchanged">
  665. <ColumnInfo>
  666. <Column id="check" type="STRING" size="256" sumtext="체크"/>
  667. <Column id="printyn" type="STRING" size="256" sumtext="출력여부"/>
  668. <Column id="grntornm" type="STRING" size="256" sumtext="보증인명"/>
  669. <Column id="grntorrrgstno1" type="STRING" size="256" sumtext="주민번호"/>
  670. <Column id="grntorrrgstno2" type="STRING" size="256" sumtext="주민번호"/>
  671. <Column id="grntorsex" type="STRING" size="256" sumtext="성별"/>
  672. <Column id="grntorrel" type="STRING" size="256" sumtext="관계"/>
  673. <Column id="grntorhometel" type="STRING" size="256" sumtext="집전화"/>
  674. <Column id="grntorofficetel" type="STRING" size="256" sumtext="사무실전화"/>
  675. <Column id="grntormpphontel" type="STRING" size="256" sumtext="휴대폰번호"/>
  676. <Column id="grntorzipcd1" type="STRING" size="256" sumtext="우편번호"/>
  677. <Column id="grntorzipcd2" type="STRING" size="256" sumtext="우편번호"/>
  678. <Column id="grntorzipcdseq" type="STRING" size="256" sumtext="우편일련번호"/>
  679. <Column id="grntordetladdr" type="STRING" size="256" sumtext="상세주소"/>
  680. <Column id="grntorzipcdaddr" type="STRING" size="256" sumtext="우편주소"/>
  681. <Column id="uncodescyn" type="STRING" size="256" sumtext="미수설명여부"/>
  682. <Column id="pid" type="STRING" size="256" sumtext="환자번호"/>
  683. <Column id="rcptdd" type="STRING" size="256" sumtext="발생일자"/>
  684. <Column id="rcptno" type="STRING" size="256" sumtext="발생순서"/>
  685. <Column id="orddd" type="STRING" size="256" sumtext="등록일자"/>
  686. <Column id="cretno" type="STRING" size="256" sumtext="순서"/>
  687. <Column id="seqno" type="STRING" size="256" sumtext="순서"/>
  688. </ColumnInfo>
  689. </Dataset>
  690. <Dataset id="ds_list_detail_lawsulist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_list_detail_lawsulist_oncolumnchanged">
  691. <ColumnInfo>
  692. <Column id="check" type="STRING" size="256" sumtext="처리구분"/>
  693. <Column id="uncorcptflag" type="STRING" size="256" sumtext="정산구분"/>
  694. <Column id="uncoflag" type="STRING" size="256" sumtext="미수구분"/>
  695. <Column id="rcpttm" type="STRING" size="256" sumtext="수납시간"/>
  696. <Column id="uncoamt" type="STRING" size="256" sumtext="금액"/>
  697. <Column id="intrfromdd" type="STRING" size="256" sumtext="이자시작일자"/>
  698. <Column id="intrtodd" type="STRING" size="256" sumtext="이자종료일자"/>
  699. <Column id="intrrate" type="STRING" size="256" sumtext="이자율"/>
  700. <Column id="remfact" type="STRING" size="256" sumtext="비고"/>
  701. <Column id="pid" type="STRING" size="256" sumtext="환자번호"/>
  702. <Column id="rcptdd" type="STRING" size="256" sumtext="발생일자"/>
  703. <Column id="rcptno" type="STRING" size="256" sumtext="발생순서"/>
  704. <Column id="orddd" type="STRING" size="256" sumtext="등록일자"/>
  705. <Column id="cretno" type="STRING" size="256" sumtext="순서"/>
  706. <Column id="seqno" type="STRING" size="256" sumtext="순서"/>
  707. <Column id="rcptstat" type="STRING" size="256" sumtext=""/>
  708. <Column id="insukind" type="STRING" size="256" sumtext="보험유형"/>
  709. <Column id="suppkind" type="STRING" size="256" sumtext="보조유형"/>
  710. <Column id="rcptamt" type="STRING" size="256" sumtext="대금"/>
  711. <Column id="cashamt" type="STRING" size="256" sumtext="대금"/>
  712. <Column id="cardamt" type="STRING" size="256" sumtext="대금"/>
  713. <Column id="onlineamt" type="STRING" size="256" sumtext="대금"/>
  714. <Column id="ordtype" type="STRING" size="256" sumtext="진료형태"/>
  715. <Column id="uncorem" type="STRING" size="256" sumtext="미수잔액"/>
  716. <Column id="debtamt" type="STRING" size="256" sumtext="대손처리액"/>
  717. <Column id="uncocd" type="STRING" size="256" sumtext="미수구분"/>
  718. </ColumnInfo>
  719. </Dataset>
  720. <Dataset id="ds_list_detail_acptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_list_detail_acptlist_oncolumnchanged">
  721. <ColumnInfo>
  722. <Column id="check" type="STRING" size="256" sumtext="처리구분"/>
  723. <Column id="uncorcptflag" type="STRING" size="256" sumtext="정산구분"/>
  724. <Column id="uncoflag" type="STRING" size="256" sumtext="미수구분"/>
  725. <Column id="rcpttm" type="STRING" size="256" sumtext="수납시간"/>
  726. <Column id="uncoamt" type="STRING" size="256" sumtext="금액"/>
  727. <Column id="acptuncorem" type="STRING" size="256" sumtext="이자미수잔액"/>
  728. <Column id="intrfromdd" type="STRING" size="256" sumtext="이자시작일자"/>
  729. <Column id="intrtodd" type="STRING" size="256" sumtext="이자종료일자"/>
  730. <Column id="intrrate" type="STRING" size="256" sumtext="이자율"/>
  731. <Column id="remfact" type="STRING" size="256" sumtext="비고"/>
  732. <Column id="pid" type="STRING" size="256" sumtext="환자번호"/>
  733. <Column id="rcptdd" type="STRING" size="256" sumtext="발생일자"/>
  734. <Column id="rcptno" type="STRING" size="256" sumtext="발생순서"/>
  735. <Column id="orddd" type="STRING" size="256" sumtext="등록일자"/>
  736. <Column id="cretno" type="STRING" size="256" sumtext="순서"/>
  737. <Column id="seqno" type="STRING" size="256" sumtext="순서"/>
  738. <Column id="rcptstat" type="STRING" size="256" sumtext=""/>
  739. <Column id="insukind" type="STRING" size="256" sumtext="보험유형"/>
  740. <Column id="suppkind" type="STRING" size="256" sumtext="보조유형"/>
  741. <Column id="rcptamt" type="STRING" size="256" sumtext="대금"/>
  742. <Column id="cashamt" type="STRING" size="256" sumtext="대금"/>
  743. <Column id="cardamt" type="STRING" size="256" sumtext="대금"/>
  744. <Column id="onlineamt" type="STRING" size="256" sumtext="대금"/>
  745. <Column id="ordtype" type="STRING" size="256" sumtext="진료형태"/>
  746. <Column id="uncorem" type="STRING" size="256" sumtext="미수잔액"/>
  747. <Column id="debtamt" type="STRING" size="256" sumtext="대손처리액"/>
  748. <Column id="uncocd" type="STRING" size="256" sumtext="미수구분"/>
  749. <Column id="rcptexecdd" type="STRING" size="256" sumtext="수납일자"/>
  750. </ColumnInfo>
  751. </Dataset>
  752. <Dataset id="ds_list_detail_ordpaydemand" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_list_detail_ordpaydemand_oncolumnchanged">
  753. <ColumnInfo>
  754. <Column id="check" type="STRING" size="256" sumtext="체크"/>
  755. <Column id="issflag" type="STRING" size="256" sumtext="출력구분"/>
  756. <Column id="issdt" type="STRING" size="256" sumtext="시행일자"/>
  757. <Column id="isscnt" type="STRING" size="256" sumtext="시행일자"/>
  758. <Column id="remfact" type="STRING" size="256" sumtext="비고"/>
  759. <Column id="pid" type="STRING" size="256" sumtext="비고"/>
  760. <Column id="rcptdd" type="STRING" size="256" sumtext="비고"/>
  761. <Column id="rcptno" type="STRING" size="256" sumtext="비고"/>
  762. <Column id="orddd" type="STRING" size="256" sumtext="비고"/>
  763. <Column id="cretno" type="STRING" size="256" sumtext="비고"/>
  764. <Column id="endyn" type="STRING" size="256" sumtext="비고"/>
  765. <Column id="seqno" type="STRING" size="256" sumtext="비고"/>
  766. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  767. <Column id="bankno" type="STRING" size="256" sumtext="계좌번호"/>
  768. <Column id="koraddr" type="STRING" size="256" sumtext="한글주소"/>
  769. <Column id="engaddr" type="STRING" size="256" sumtext="영문주소"/>
  770. <Column id="hospnm" type="STRING" size="256" sumtext="병원명"/>
  771. <Column id="subremfact" type="STRING" size="256" sumtext="비고2"/>
  772. <Column id="phone" type="STRING" size="256" sumtext="전화번호"/>
  773. </ColumnInfo>
  774. </Dataset>
  775. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  776. <ColumnInfo>
  777. <Column id="post" type="STRING" size="256"/>
  778. <Column id="acptdd" type="STRING" size="256"/>
  779. <Column id="checkall" type="STRING" size="256"/>
  780. <Column id="printpat" type="STRING" size="256"/>
  781. </ColumnInfo>
  782. <Rows>
  783. <Row>
  784. <Col id="post"/>
  785. <Col id="acptdd"/>
  786. <Col id="checkall"/>
  787. <Col id="printpat">N</Col>
  788. </Row>
  789. </Rows>
  790. </Dataset>
  791. <Dataset id="ds_init_uncocd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  792. <Dataset id="ds_cmb_printyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  793. <ColumnInfo>
  794. <Column id="label" type="STRING" size="256"/>
  795. <Column id="value" type="STRING" size="256"/>
  796. </ColumnInfo>
  797. <Rows>
  798. <Row>
  799. <Col id="label">Y</Col>
  800. <Col id="value">Y</Col>
  801. </Row>
  802. <Row>
  803. <Col id="label">N</Col>
  804. <Col id="value">N</Col>
  805. </Row>
  806. </Rows>
  807. </Dataset>
  808. <Dataset id="ds_cmb_grntorsex" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  809. <ColumnInfo>
  810. <Column id="label" type="STRING" size="256"/>
  811. <Column id="value" type="STRING" size="256"/>
  812. </ColumnInfo>
  813. <Rows>
  814. <Row>
  815. <Col id="label">남</Col>
  816. <Col id="value">M</Col>
  817. </Row>
  818. <Row>
  819. <Col id="label">여</Col>
  820. <Col id="value">F</Col>
  821. </Row>
  822. </Rows>
  823. </Dataset>
  824. <Dataset id="ds_cmb_uncorcptflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  825. <ColumnInfo>
  826. <Column id="label" type="STRING" size="256"/>
  827. <Column id="value" type="STRING" size="256"/>
  828. </ColumnInfo>
  829. <Rows>
  830. <Row>
  831. <Col id="label">발생</Col>
  832. <Col id="value">1</Col>
  833. </Row>
  834. <Row>
  835. <Col id="label">입금</Col>
  836. <Col id="value">2</Col>
  837. </Row>
  838. <Row>
  839. <Col id="label">대손</Col>
  840. <Col id="value">3</Col>
  841. </Row>
  842. </Rows>
  843. </Dataset>
  844. <Dataset id="ds_cmb_uncoflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  845. <ColumnInfo>
  846. <Column id="label" type="STRING" size="256"/>
  847. <Column id="value" type="STRING" size="256"/>
  848. </ColumnInfo>
  849. <Rows>
  850. <Row>
  851. <Col id="label">소송</Col>
  852. <Col id="value">20</Col>
  853. </Row>
  854. <Row>
  855. <Col id="label">가압류</Col>
  856. <Col id="value">30</Col>
  857. </Row>
  858. <Row>
  859. <Col id="label">강제집행</Col>
  860. <Col id="value">40</Col>
  861. </Row>
  862. <Row>
  863. <Col id="label">재산관계명시</Col>
  864. <Col id="value">50</Col>
  865. </Row>
  866. <Row>
  867. <Col id="label">기타</Col>
  868. <Col id="value">60</Col>
  869. </Row>
  870. </Rows>
  871. </Dataset>
  872. <Dataset id="ds_cmb_uncoflag2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  873. <ColumnInfo>
  874. <Column id="label" type="STRING" size="256"/>
  875. <Column id="value" type="STRING" size="256"/>
  876. </ColumnInfo>
  877. <Rows>
  878. <Row>
  879. <Col id="label">이자</Col>
  880. <Col id="value">10</Col>
  881. </Row>
  882. </Rows>
  883. </Dataset>
  884. <Dataset id="ds_paminit_P6584list_P6584" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  885. <Dataset id="ds_init_issflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  886. <ColumnInfo>
  887. <Column id="label" type="STRING" size="256"/>
  888. <Column id="value" type="STRING" size="256"/>
  889. </ColumnInfo>
  890. <Rows>
  891. <Row>
  892. <Col id="label">독촉장</Col>
  893. <Col id="value">A</Col>
  894. </Row>
  895. <Row>
  896. <Col id="label">최고장</Col>
  897. <Col id="value">B</Col>
  898. </Row>
  899. <Row>
  900. <Col id="label">진료비 납부 통지서(1)</Col>
  901. <Col id="value">C</Col>
  902. </Row>
  903. <Row>
  904. <Col id="label">진료비 납부 통지서(2)</Col>
  905. <Col id="value">D</Col>
  906. </Row>
  907. <Row>
  908. <Col id="label">진료비 납부 안내서(1)</Col>
  909. <Col id="value">E</Col>
  910. </Row>
  911. <Row>
  912. <Col id="label">진료비 납부 안내서(2)</Col>
  913. <Col id="value">H</Col>
  914. </Row>
  915. <Row>
  916. <Col id="label">안내서 저장용</Col>
  917. <Col id="value">F</Col>
  918. </Row>
  919. <Row>
  920. <Col id="label">기타</Col>
  921. <Col id="value">G</Col>
  922. </Row>
  923. </Rows>
  924. </Dataset>
  925. <Dataset id="ds_init_com_comncdlist_P0072list_P0072" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  926. <Dataset id="ds_init_com_comncdlist_P0001list_P0001" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  927. <Dataset id="ds_init_com_comncdlist_P0311list_P0311" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  928. <Dataset id="ds_send_data1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  929. <ColumnInfo>
  930. <Column id="checkfnexam" type="STRING" size="256"/>
  931. <Column id="srchcond" type="STRING" size="256"/>
  932. <Column id="pid" type="STRING" size="256"/>
  933. <Column id="autoflag" type="STRING" size="256"/>
  934. </ColumnInfo>
  935. <Rows>
  936. <Row>
  937. <Col id="checkfnexam"/>
  938. <Col id="srchcond"/>
  939. <Col id="pid"/>
  940. <Col id="autoflag"/>
  941. </Row>
  942. </Rows>
  943. </Dataset>
  944. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  945. <ColumnInfo>
  946. <Column id="pid" type="STRING" size="256"/>
  947. <Column id="ioflag" type="STRING" size="256"/>
  948. <Column id="orddd" type="STRING" size="256"/>
  949. <Column id="rcptno" type="STRING" size="256"/>
  950. <Column id="rcptdd" type="STRING" size="256"/>
  951. <Column id="quarflag" type="STRING" size="256"/>
  952. <Column id="seqno" type="STRING" size="256"/>
  953. <Column id="sendflag" type="STRING" size="256"/>
  954. <Column id="uncocd" type="STRING" size="256"/>
  955. <Column id="hngnm" type="STRING" size="256"/>
  956. <Column id="phoneflag" type="STRING" size="256"/>
  957. </ColumnInfo>
  958. <Rows>
  959. <Row>
  960. <Col id="pid"/>
  961. <Col id="ioflag"/>
  962. <Col id="orddd"/>
  963. <Col id="rcptno"/>
  964. <Col id="rcptdd"/>
  965. <Col id="quarflag"/>
  966. <Col id="seqno"/>
  967. <Col id="sendflag"/>
  968. <Col id="uncocd"/>
  969. <Col id="hngnm"/>
  970. <Col id="phoneflag"/>
  971. </Row>
  972. </Rows>
  973. </Dataset>
  974. <Dataset id="ds_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  975. <ColumnInfo>
  976. <Column id="pid" type="STRING" size="256"/>
  977. <Column id="hngnm" type="STRING" size="256"/>
  978. <Column id="rrgstno1" type="STRING" size="256"/>
  979. <Column id="rrgstno2" type="STRING" size="256"/>
  980. <Column id="addr" type="STRING" size="256"/>
  981. <Column id="detladdr" type="STRING" size="256"/>
  982. <Column id="hometel" type="STRING" size="256"/>
  983. </ColumnInfo>
  984. <Rows>
  985. <Row>
  986. <Col id="pid"/>
  987. <Col id="hngnm"/>
  988. <Col id="rrgstno1"/>
  989. <Col id="rrgstno2"/>
  990. <Col id="addr"/>
  991. <Col id="detladdr"/>
  992. <Col id="hometel"/>
  993. </Row>
  994. </Rows>
  995. </Dataset>
  996. <Dataset id="ds_cmb_ordtype" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  997. <ColumnInfo>
  998. <Column id="label" type="STRING" size="256"/>
  999. <Column id="value" type="STRING" size="256"/>
  1000. </ColumnInfo>
  1001. <Rows>
  1002. <Row>
  1003. <Col id="label">외래</Col>
  1004. <Col id="value">O</Col>
  1005. </Row>
  1006. <Row>
  1007. <Col id="label">입원</Col>
  1008. <Col id="value">I</Col>
  1009. </Row>
  1010. <Row>
  1011. <Col id="label">응급</Col>
  1012. <Col id="value">E</Col>
  1013. </Row>
  1014. </Rows>
  1015. </Dataset>
  1016. <Dataset id="ds_hidden_urgereport" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1017. <ColumnInfo>
  1018. <Column id="law" type="STRING" size="256" sumtext="소송비"/>
  1019. <Column id="intr" type="STRING" size="256" sumtext="이자"/>
  1020. <Column id="intrtodd" type="STRING" size="256" sumtext="이자종료일"/>
  1021. <Column id="intrtodd" type="STRING" size="256" sumtext="병원계좌"/>
  1022. <Column id="intrtodd" type="STRING" size="256" sumtext="한글주소"/>
  1023. <Column id="intrtodd" type="STRING" size="256" sumtext="영문주소"/>
  1024. <Column id="intrtodd" type="STRING" size="256" sumtext="병원명"/>
  1025. <Column id="intrtodd" type="STRING" size="256" sumtext="전화번호"/>
  1026. </ColumnInfo>
  1027. </Dataset>
  1028. <Dataset id="ds_temp_printinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1029. <ColumnInfo>
  1030. <Column id="pid" type="STRING" size="256"/>
  1031. <Column id="hngnm" type="STRING" size="256"/>
  1032. <Column id="addr" type="STRING" size="256"/>
  1033. <Column id="orddd" type="STRING" size="256"/>
  1034. <Column id="detladdr" type="STRING" size="256"/>
  1035. <Column id="orddeptnm" type="STRING" size="256"/>
  1036. <Column id="yyyy" type="STRING" size="256"/>
  1037. <Column id="mm" type="STRING" size="256"/>
  1038. <Column id="dd" type="STRING" size="256"/>
  1039. </ColumnInfo>
  1040. <Rows>
  1041. <Row/>
  1042. </Rows>
  1043. </Dataset>
  1044. <Dataset id="ds_cmb_issflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1045. <ColumnInfo>
  1046. <Column id="label" type="STRING" size="256"/>
  1047. <Column id="value" type="STRING" size="256"/>
  1048. </ColumnInfo>
  1049. <Rows>
  1050. <Row>
  1051. <Col id="label">독촉장</Col>
  1052. <Col id="value">A</Col>
  1053. </Row>
  1054. <Row>
  1055. <Col id="label">최고장</Col>
  1056. <Col id="value">B</Col>
  1057. </Row>
  1058. <Row>
  1059. <Col id="label">진료비 납부 통지서(1)</Col>
  1060. <Col id="value">C</Col>
  1061. </Row>
  1062. <Row>
  1063. <Col id="label">진료비 납부 통지서(2)</Col>
  1064. <Col id="value">D</Col>
  1065. </Row>
  1066. <Row>
  1067. <Col id="label">진료비 납부 안내서(1)</Col>
  1068. <Col id="value">E</Col>
  1069. </Row>
  1070. <Row>
  1071. <Col id="label">진료비 납부 안내서(2)</Col>
  1072. <Col id="value">H</Col>
  1073. </Row>
  1074. <Row>
  1075. <Col id="label">안내서 저장용</Col>
  1076. <Col id="value">F</Col>
  1077. </Row>
  1078. <Row>
  1079. <Col id="label">기타</Col>
  1080. <Col id="value">G</Col>
  1081. </Row>
  1082. </Rows>
  1083. </Dataset>
  1084. <Dataset id="ds_phone_phdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1085. <ColumnInfo>
  1086. <Column id="pnum" type="STRING" size="256" sumtext="전화번호"/>
  1087. <Column id="bankno" type="STRING" size="256" sumtext="전화번호"/>
  1088. <Column id="koraddr" type="STRING" size="256" sumtext="전화번호"/>
  1089. <Column id="engaddr" type="STRING" size="256" sumtext="전화번호"/>
  1090. <Column id="hospnm" type="STRING" size="256" sumtext="전화번호"/>
  1091. <Column id="pnum" type="STRING" size="256" sumtext="전화번호"/>
  1092. <Column id="subremfact" type="STRING" size="256" sumtext="전화번호"/>
  1093. </ColumnInfo>
  1094. </Dataset>
  1095. <Dataset id="ds_temp_detail_ordpaydemand" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1096. <ColumnInfo>
  1097. <Column id="instcd" type="STRING" size="256"/>
  1098. <Column id="phone" type="STRING" size="256"/>
  1099. <Column id="bankno" type="STRING" size="256"/>
  1100. <Column id="koraddr" type="STRING" size="256"/>
  1101. <Column id="engaddr" type="STRING" size="256"/>
  1102. <Column id="hospnm" type="STRING" size="256"/>
  1103. <Column id="remfact" type="STRING" size="256"/>
  1104. <Column id="subremfact" type="STRING" size="256"/>
  1105. </ColumnInfo>
  1106. <Rows>
  1107. <Row>
  1108. <Col id="instcd"/>
  1109. <Col id="phone"/>
  1110. <Col id="bankno"/>
  1111. <Col id="koraddr"/>
  1112. <Col id="engaddr"/>
  1113. <Col id="hospnm"/>
  1114. <Col id="remfact"/>
  1115. <Col id="subremfact"/>
  1116. </Row>
  1117. </Rows>
  1118. </Dataset>
  1119. <Dataset id="ds_send_updatedata_datalist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1120. </Objects>
  1121. <Bind>
  1122. <BindItem id="item0" compid="grp.ipt_pid" propid="value" datasetid="ds_source" columnid="pid"/>
  1123. <BindItem id="item1" compid="grp.input2" propid="value" datasetid="ds_send" columnid="hngnm"/>
  1124. <BindItem id="item2" compid="grp.cmd_uncocd" propid="value" datasetid="ds_send" columnid="uncocd"/>
  1125. <BindItem id="item3" compid="grp.output2" propid="value" datasetid="ds_patinfolist" columnid="rrgstno1"/>
  1126. <BindItem id="item4" compid="grp.output3" propid="value" datasetid="ds_patinfolist" columnid="rrgstno2"/>
  1127. <BindItem id="item5" compid="bool1" propid="value" datasetid="ds_temp" columnid="printpat"/>
  1128. <BindItem id="item6" compid="grp.input1" propid="value" datasetid="ds_temp" columnid="acptdd"/>
  1129. </Bind>
  1130. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  1131. * System Name :
  1132. * Job Name :
  1133. * Creator :
  1134. * Make Date : 2016-05-24
  1135. * Description :
  1136. *---------------------------------------------------------------------------------------
  1137. * Modify Date Modifier Modify Description
  1138. *---------------------------------------------------------------------------------------
  1139. * 2016-05-24 Live Converter TF->XP
  1140. *
  1141. *---------------------------------------------------------------------------------------
  1142. ****************************************************************************************/
  1143. include 'com_commonxp::comm_main.xjs';
  1144. include 'pam_pamcomnxp::PAM.xjs';
  1145. include 'pam_pamcomnxp::PAM001.xjs';
  1146. var arErrorCode = new HashArray();
  1147. var checkall = 'N';
  1148. var printpat = '';
  1149. //=======================================================================================
  1150. // callback
  1151. //---------------------------------------------------------------------------------------
  1152. function cf_callback(sSvcId, nErrorCode, sErrorMsg)
  1153. {
  1154. arErrorCode.push(sSvcId, nErrorCode);
  1155. }
  1156. function SMPAS00700_oninit(obj:Form, e:InitEventInfo)
  1157. {
  1158. // 폼 초기화
  1159. frmf_initForm(obj);
  1160. }
  1161. function SMPAS00700_onload(obj:Form, e:LoadEventInfo)
  1162. {
  1163. grdf_initGrid(grd_uncolist);
  1164. grdf_initGrid(grd_quar);
  1165. grdf_initGrid(grd_lawsulist);
  1166. grdf_initGrid(grd_acptlist);
  1167. grdf_initGrid(grd_ordpaydemand);
  1168. grdf_setRowTypeIcon(grd_quar, 0);
  1169. grdf_setRowTypeIcon(grd_lawsulist, 0);
  1170. grdf_setRowTypeIcon(grd_acptlist, 0);
  1171. grdf_setRowTypeIcon(grd_ordpaydemand, 0);
  1172. // 기초코드 조회(보험,감면,진료과,공통코드)
  1173. fSetCodeList();
  1174. frmf_addComboItem('grp.cmd_uncocd', '- 전 체 -', '', 'above');
  1175. }
  1176. function fSetCodeList()
  1177. {
  1178. // 공통코드
  1179. var arrParam = [{dsNm: "ds_init_com_comncdlist_P0072list_P0072", cdGrpId: "P0072"}
  1180. ,{dsNm: "ds_init_com_comncdlist_P0001list_P0001", cdGrpId: "P0001"}
  1181. ,{dsNm: "ds_init_com_comncdlist_P0311list_P0311", cdGrpId: "P0311"}]
  1182. appf_getCodeList(arrParam);
  1183. if (ds_init_com_comncdlist_P0072list_P0072.rowcount == 0)
  1184. {
  1185. ds_init_com_comncdlist_P0072list_P0072.addRow();
  1186. ds_init_com_comncdlist_P0072list_P0072.setColumn(0, "cdnm","-");
  1187. ds_init_com_comncdlist_P0072list_P0072.setColumn(0, "cdid","-");
  1188. }
  1189. if (ds_init_com_comncdlist_P0001list_P0001.rowcount == 0)
  1190. {
  1191. ds_init_com_comncdlist_P0001list_P0001.addRow();
  1192. ds_init_com_comncdlist_P0001list_P0001.setColumn(0, "cdnm","전체");
  1193. ds_init_com_comncdlist_P0001list_P0001.setColumn(0, "cdid","-");
  1194. }
  1195. //원무사용 기초코드 조회(진료과,의사,할인,미수코드)
  1196. dsf_createDs("ds_req");
  1197. ds_req.addColumn("sess_posinstcd", "string");
  1198. var oParam = {};
  1199. oParam.id = "TRPAMCOM01";
  1200. oParam.service = "pamcomnapp.PamComn";
  1201. oParam.method = "reqGetComCD";
  1202. oParam.inds = "req=ds_req";
  1203. oParam.outds = "ds_=disccd ds_=insukind ds_=suppkind ds_=orddeptcd ds_=orddrid ds_=reducd ds_init_uncocd=uncocd ds_=proccd ds_=subjno ds_=rcptflag";
  1204. oParam.async = false;
  1205. //oParam.callback = "cf_TRPAMCOM01";
  1206. tranf_submit(oParam);
  1207. // 원무 공통코드 조회
  1208. var arrParam = new Array();
  1209. arrParam = [{dsNm: "ds_paminit_P6584list_P6584", cdGrpId: "P6584", showValue: false}];
  1210. pamfGetCodeList(arrParam, true, "");
  1211. }
  1212. /****************************************************************************************
  1213. * Argument :
  1214. * Description : 등록번호 키보드 입력 이벤트
  1215. ****************************************************************************************/
  1216. function grp_ipt_pid_onkeydown(obj:Edit, e:KeyEventInfo)
  1217. {
  1218. if(e.keycode == 13)
  1219. {
  1220. obj.updateToDataset();
  1221. grp.btn_pid.click();
  1222. }
  1223. }
  1224. /****************************************************************************************
  1225. * Argument :
  1226. * Description : 한글이름 입력 이벤트
  1227. ****************************************************************************************/
  1228. function grp_input2_onkeydown(obj:Edit, e:KeyEventInfo)
  1229. {
  1230. if(e.keycode == 13)
  1231. {
  1232. obj.updateToDataset();
  1233. grp.btn_hngnm.click();
  1234. }
  1235. }
  1236. /****************************************************************************************
  1237. * Argument :
  1238. * Description : 환자 검색 아이콘 클릭 이벤트
  1239. ****************************************************************************************/
  1240. function grp_btn_pid_onclick(obj:Button, e:ClickEventInfo)
  1241. {
  1242. ds_patinfolist.setColumn(0, "pid", ds_source.getColumn(0, "pid"));
  1243. var ptbs_pid = ds_patinfolist.getColumn(0, 'pid');
  1244. var hometel = ds_patinfolist.getColumn(0, 'hometel');
  1245. var row = ds_list_unco_uncolist.rowposition;
  1246. ds_send.setColumn(0, "orddd", "");
  1247. ds_send.setColumn(0, "uncocd", "");
  1248. ds_list_detail_acptlist.clearData();
  1249. ds_list_detail_guarlist.clearData();
  1250. ds_list_detail_lawsulist.clearData();
  1251. ds_list_detail_ordpaydemand.clearData();
  1252. var srchcond = '';
  1253. if(utlf_isNull(ptbs_pid) || ptbs_pid == '' || ptbs_pid == ' ')
  1254. {
  1255. ds_send_data1.clearData();
  1256. }
  1257. else
  1258. {
  1259. ds_send_data1.setColumn(0, "pid", ptbs_pid);
  1260. ds_send_data1.setColumn(0, "srchcond", "1");
  1261. }
  1262. ds_send_data1.setColumn(0, "checkfnexam", "1");
  1263. var objArg = new Object();
  1264. objArg.arg_ds_send = ds_send_data1;
  1265. frmf_modal("SPPMC02500", "SPPMC02500", objArg, "", "", "", "", "", "", "", "", "", "M");
  1266. grp.btn_search.click();
  1267. }
  1268. /****************************************************************************************
  1269. * Argument :
  1270. * Description : 미수구분 콤보 아이템 변경 후 이벤트
  1271. ****************************************************************************************/
  1272. function grp_cmd_uncocd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  1273. {
  1274. if(utlf_transNullToEmpty(ds_source.getColumn(0, 'pid')) == '' || utlf_transNullToEmpty(ds_send.getColumn(0, 'hngnm')) == '')
  1275. {
  1276. return;
  1277. }
  1278. if(utlf_transNullToEmpty(ds_source.getColumn(0, 'pid')) == '')
  1279. {
  1280. grp.btn_hngnm.click();
  1281. }
  1282. else
  1283. {
  1284. grp.btn_search.click();
  1285. }
  1286. }
  1287. /****************************************************************************************
  1288. * Argument :
  1289. * Description : 한글이름 검색 버튼 클릭 이벤트(hidden 이라 UX상 클릭할 수 없으나소스 상 클릭)
  1290. ****************************************************************************************/
  1291. function grp_btn_hngnm_onclick(obj:Button, e:ClickEventInfo)
  1292. {
  1293. var oParam = {};
  1294. oParam.id = "TRPAS00700";
  1295. oParam.service = "rcptteamstatsapp.rcptTeamOrdStats";
  1296. oParam.method = "reqGetUncoManage";
  1297. oParam.inds = "req=ds_send";
  1298. oParam.outds = "ds_list_unco_uncolist=uncolist";
  1299. oParam.async = false;
  1300. //oParam.callback = "cf_callback";
  1301. tranf_submit(oParam);
  1302. ds_list_unco_uncolist.addColumn("check", "string");
  1303. ds_list_unco_uncolist.rowposition = -1;
  1304. }
  1305. /****************************************************************************************
  1306. * Argument :
  1307. * Description : 조회 버튼 클릭 이벤트
  1308. ****************************************************************************************/
  1309. function grp_btn_search_onclick(obj:Button, e:ClickEventInfo)
  1310. {
  1311. if(utlf_transNullToEmpty(ds_source.getColumn(0, 'pid')) == '')
  1312. {
  1313. sysf_messageBox('환자번호를 입력하세요!!', 'E999');
  1314. return false;
  1315. }
  1316. ds_send.setColumn(0, 'pid', ds_source.getColumn(0, 'pid'));
  1317. ds_send.setColumn(0, 'hngnm', ds_patinfolist.getColumn(0, 'hngnm'));
  1318. ds_temp.setColumn(0, "checkall", "N");
  1319. var oParam = {};
  1320. oParam.id = "TRPAS00700";
  1321. oParam.service = "rcptteamstatsapp.rcptTeamOrdStats";
  1322. oParam.method = "reqGetUncoManage";
  1323. oParam.inds = "req=ds_send";
  1324. oParam.outds = "ds_list_unco_uncolist=uncolist";
  1325. oParam.async = false;
  1326. //oParam.callback = "callback";
  1327. tranf_submit(oParam);
  1328. ds_list_unco_uncolist.addColumn("check", "string");
  1329. ds_list_unco_uncolist.rowposition = -1;
  1330. }
  1331. /****************************************************************************************
  1332. * Argument :
  1333. * Description : 미수내역 그리드 클릭 이벤트
  1334. ****************************************************************************************/
  1335. function grd_uncolist_oncellclick(obj:Grid, e:GridClickEventInfo)
  1336. {
  1337. if(e.cell == obj.getBindCellIndex("Body", "rcptdd") && e.row >= 0 && ds_list_unco_uncolist.getColumn(ds_list_unco_uncolist.rowposition, "suppkindnm") != "소계")
  1338. {
  1339. frmf_setParameter("pid", ds_list_unco_uncolist.getColumn(ds_list_unco_uncolist.rowposition, "pid"));
  1340. frmf_setParameter("rcptdd", ds_list_unco_uncolist.getColumn(ds_list_unco_uncolist.rowposition, "rcptdd"));
  1341. frmf_open("SPPAS00701", "SPPAS00701", "", "", "", "", "", "", "", "", "", "", "M");
  1342. }
  1343. else if(e.row >= 0)
  1344. {
  1345. /** 추가 요청 사항
  1346. 발생일자가 동일할시에는 체크상태의
  1347. 미수잔액금을 모두 더해 출력물에 표시한다
  1348. **/
  1349. var uncomoney = 0;
  1350. var row = ds_list_unco_uncolist.rowposition;
  1351. var rcptdd = ds_list_unco_uncolist.lookup("check", "Y", "rcptdd");
  1352. var uncorem = ds_list_unco_uncolist.getColumn(row, "uncorem");
  1353. ds_source.setColumn(0, "pid" , ds_list_unco_uncolist.getColumn(row, "pid"));
  1354. ds_send.setColumn(0, "pid" , ds_list_unco_uncolist.getColumn(row, "pid"));
  1355. //소계만 찍을수 있도록 요청함
  1356. if(ds_list_unco_uncolist.getColumn(row, "suppkindnm") == "소계")
  1357. {
  1358. //클릭시 체크 "Y" or "N"
  1359. if(utlf_isNull(ds_list_unco_uncolist.getColumn(row, "check")))
  1360. {
  1361. ds_list_unco_uncolist.setColumn(row, "check" , "Y");
  1362. }
  1363. else if(ds_list_unco_uncolist.getColumn(row, "check") == "Y")
  1364. {
  1365. ds_list_unco_uncolist.setColumn(row, "check", "N");
  1366. ds_list_detail_guarlist.clearData();
  1367. ds_list_detail_acptlist.clearData();
  1368. ds_list_detail_lawsulist.clearData();
  1369. ds_list_detail_ordpaydemand.clearData();
  1370. ds_list_unco_uncolist.setColumn(row, "check" , "");
  1371. }
  1372. //선택된 미수금 더하고 빼기
  1373. if(ds_temp.getColumn(0, "checkall") == "N")
  1374. {
  1375. for(var i = 0; i < ds_list_unco_uncolist.rowcount; i++)
  1376. {
  1377. if(ds_list_unco_uncolist.getColumn(i, "check") == "Y")
  1378. {
  1379. uncomoney += parseInt(ds_list_unco_uncolist.getColumn(i, "uncorem"));
  1380. }
  1381. if(ds_list_unco_uncolist.getColumn(i, "check") == "N")
  1382. {
  1383. uncomoney -= parseInt(ds_list_unco_uncolist.getColumn(i, "uncorem"));
  1384. }
  1385. }
  1386. }
  1387. }
  1388. else
  1389. {
  1390. sysf_messageBox("소계만 선택이" , "I006");
  1391. return;
  1392. }
  1393. //필수 컬럼
  1394. ds_send.setColumn(0, "quarflag" , "quar");
  1395. ds_send.setColumn(0, "pid" , ds_list_unco_uncolist.getColumn(row, "pid"));
  1396. ds_send.setColumn(0, "orddd" , ds_list_unco_uncolist.getColumn(row, "orddd"));
  1397. ds_send.setColumn(0, "rcptno" , ds_list_unco_uncolist.getColumn(row, "rcptno"));
  1398. ds_send.setColumn(0, "uncocd" , ds_list_unco_uncolist.getColumn(row, "uncocd"));
  1399. var oParam = {};
  1400. oParam.id = "TRPAS00710";
  1401. oParam.service = "rcptteamstatsapp.rcptTeamOrdStats";
  1402. oParam.method = "reqGetGuarList";
  1403. oParam.inds = "req=ds_send";
  1404. oParam.outds = "ds_list_detail_guarlist=guarlist ds_list_detail_acptlist=acptlist "
  1405. +"ds_list_detail_lawsulist=lawsulist ds_list_detail_ordpaydemand=ordpaydemand";
  1406. oParam.async = false;
  1407. //oParam.callback = "cf_TRPAS00710";
  1408. tranf_submit(oParam);
  1409. ds_list_detail_acptlist.addColumn("intramt", "string");
  1410. var oParam = {};
  1411. oParam.id = "TRPAS00720";
  1412. oParam.service = "rcptteamstatsapp.rcptTeamOrdStats";
  1413. oParam.method = "reqGetUrgeReport";
  1414. oParam.inds = "req=ds_send";
  1415. oParam.outds = "ds_hidden_urgereport=urgereport";
  1416. oParam.async = false;
  1417. //oParam.callback = "cf_TRPAS00720";
  1418. tranf_submit(oParam);
  1419. ds_temp_printinfo.addColumn("pid", "string");
  1420. ds_temp_printinfo.addColumn("hngnm", "string");
  1421. ds_temp_printinfo.addColumn("addr", "string");
  1422. ds_temp_printinfo.addColumn("detladdr", "string");
  1423. ds_temp_printinfo.addColumn("uncoamt", "string");
  1424. ds_temp_printinfo.addColumn("intramt", "string");
  1425. ds_temp_printinfo.addColumn("grntornm", "string");
  1426. ds_temp_printinfo.addColumn("grntorzipcdaddr", "string");
  1427. ds_temp_printinfo.addColumn("grntordetladdr", "string");
  1428. ds_temp_printinfo.addColumn("uncorem", "string");
  1429. ds_temp_printinfo.addColumn("totamt", "string");
  1430. ds_temp_printinfo.addColumn("totamtkor", "string");
  1431. dsf_makeValue(ds_temp_printinfo, "uncoamt", "string", uncomoney);
  1432. dsf_makeValue(ds_temp_printinfo, "uncorem", "string", ds_temp_printinfo.getColumn(0, "uncoamt").setAmountToKorean()+"원");
  1433. frmf_setParameter("SMPAM00100_PID_PARM" , ds_list_unco_uncolist.getColumn(row, "pid"));
  1434. }
  1435. }
  1436. function ds_list_detail_lawsulist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  1437. {
  1438. var row = ds_list_unco_uncolist.rowposition;
  1439. var cur_row = e.row;
  1440. var uncorcptflag = obj.getColumn(cur_row, "uncorcptflag");
  1441. var rcptamt = obj.getColumn(cur_row, "rcptamt");
  1442. if(uncorcptflag == "1")
  1443. {
  1444. obj.setColumn(cur_row, "cashamt" , "0");
  1445. obj.setColumn(cur_row, "debtamt" , "0");
  1446. }
  1447. else if(uncorcptflag == "2")
  1448. {
  1449. obj.setColumn(cur_row, "uncoamt" , "0");
  1450. obj.setColumn(cur_row, "debtamt" , "0");
  1451. if ( rcptamt != 0 || !utlf_isNull(rcptamt))
  1452. {
  1453. obj.setColumn(cur_row, "cashamt" , rcptamt);
  1454. }
  1455. }
  1456. else if(uncorcptflag == "3")
  1457. {
  1458. obj.setColumn(cur_row, "uncoamt" , "0");
  1459. obj.setColumn(cur_row, "cashamt" , "0");
  1460. }
  1461. }
  1462. function ds_list_detail_acptlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  1463. {
  1464. //이자 구하기
  1465. var cur_row = e.row;
  1466. var uncorcptflag = obj.getColumn(cur_row, "uncorcptflag");
  1467. var intramt = parseInt(obj.getColumn(cur_row, "intramt"));
  1468. var fromdd = obj.getColumn(cur_row, "intrfromdd");
  1469. var todd = obj.getColumn(cur_row, "intrtodd");
  1470. var gigan = parseInt(utlf_getDateInterval(fromdd, todd));
  1471. var intryul = parseInt(obj.getColumn(cur_row, "intrrate"))/100;
  1472. //이자구하기 (이자대상금액 X 기간 X 이자율) / 365 - 1원단위 절삭
  1473. var intramt = (intramt * gigan * intryul) /365 - ((intramt * gigan * intryul) /365)%10;
  1474. if(uncorcptflag == "1")
  1475. {
  1476. //이자종료일이 99991231 일시에는 이자율 구하지 않음
  1477. if(todd == "99991231")
  1478. {
  1479. obj.setColumn(cur_row, "debtamt" , "0");
  1480. obj.setColumn(cur_row, "cashamt" , "0");
  1481. obj.setColumn(cur_row, "uncoamt" , "0");
  1482. }
  1483. else
  1484. {
  1485. obj.setColumn(cur_row, "debtamt" , "0");
  1486. obj.setColumn(cur_row, "cashamt" , "0");
  1487. obj.setColumn(cur_row, "uncoamt" , intramt);
  1488. }
  1489. }
  1490. else if(uncorcptflag == "2")
  1491. {
  1492. obj.setColumn(cur_row, "uncoamt" , "0");
  1493. obj.setColumn(cur_row, "debtamt" , "0");
  1494. obj.setColumn(cur_row, "cashamt" , intramt);
  1495. }
  1496. else if(uncorcptflag == "3")
  1497. {
  1498. obj.setColumn(cur_row, "uncoamt" , "0");
  1499. obj.setColumn(cur_row, "cashamt" , "0");
  1500. obj.setColumn(cur_row, "debtamt" , intramt);
  1501. }
  1502. }
  1503. /****************************************************************************************
  1504. * Argument :
  1505. * Description : 보증인내역 그리드 더블 클릭 이벤트
  1506. ****************************************************************************************/
  1507. function grd_quar_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  1508. {
  1509. var retValue = appf_getZipCodeList("combination");
  1510. var row = ds_list_detail_guarlist.rowposition
  1511. ds_list_detail_guarlist.setColumn(row, "grntorzipcd1", retValue.zipcdhead);
  1512. ds_list_detail_guarlist.setColumn(row, "grntorzipcd2", retValue.zipcdfoot);
  1513. ds_list_detail_guarlist.setColumn(row, "grntorzipcdseq", retValue.seqno);
  1514. ds_list_detail_guarlist.setColumn(row, "grntorzipcdaddr", retValue.address);
  1515. ds_list_detail_guarlist.setColumn(row, "grntordetladdr", retValue.address_detail);
  1516. ds_list_detail_guarlist.setColumn(row, "uncodescyn", "Y");
  1517. }
  1518. /****************************************************************************************
  1519. * Argument :
  1520. * Description : 진료비독촉내역 그리드 셀 더블 클릭 이벤트
  1521. ****************************************************************************************/
  1522. function grd_ordpaydemand_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  1523. {
  1524. var colName = obj.getCellProperty('Body', obj.currentcell, 'text');
  1525. colName = colName.substr(5, colName.length);
  1526. if(colName == 'issflag')
  1527. {
  1528. fPrintordpaydemand();
  1529. }
  1530. }
  1531. /****************************************************************************************
  1532. * Argument :
  1533. * Description :
  1534. ****************************************************************************************/
  1535. function fPrintordpaydemand()
  1536. {
  1537. var row = ds_list_unco_uncolist.rowposition;
  1538. var cur_row = ds_list_detail_ordpaydemand.rowposition;
  1539. var quarrow = ds_list_detail_guarlist.rowcount;
  1540. // 이자금액, 소송금액, 이자종료일 받아오기
  1541. var oParam = {};
  1542. oParam.id = "TRPAS00720";
  1543. oParam.service = "rcptteamstatsapp.rcptTeamOrdStats";
  1544. oParam.method = "reqGetUrgeReport";
  1545. oParam.inds = "req=ds_send";
  1546. oParam.outds = "ds_hidden_urgereport=urgereport";
  1547. oParam.async = false;
  1548. //oParam.callback = "cf_TRPAS00720";
  1549. tranf_submit(oParam);
  1550. ds_temp_printinfo.setColumn(0, 'pid', ds_list_unco_uncolist.getColumn(row, 'pid'));
  1551. ds_temp_printinfo.setColumn(0, 'hngnm', ds_list_unco_uncolist.getColumn(row, 'hngnm'));
  1552. ds_temp_printinfo.setColumn(0, 'addr', ds_list_unco_uncolist.getColumn(row, 'zipaddr'));
  1553. ds_temp_printinfo.setColumn(0, 'detladdr', ds_list_unco_uncolist.getColumn(row, 'zipcd'));
  1554. ds_temp_printinfo.setColumn(0, 'orddd', ds_list_unco_uncolist.getColumn(row, 'orddd'));
  1555. ds_temp_printinfo.setColumn(0, 'orddeptnm', ds_list_unco_uncolist.getColumn(row, 'orddeptnm'));
  1556. // 총진료비 구하기
  1557. var totamt = parseInt(ds_hidden_urgereport.getColumn(0, 'law'))
  1558. + parseInt(ds_hidden_urgereport.getColumn(0, 'intr'))
  1559. + parseInt(ds_temp_printinfo.getColumn(0, 'uncoamt'));
  1560. ds_temp_printinfo.setColumn(0, 'totamt', totamt);
  1561. ds_temp_printinfo.setColumn(0, 'totamtkor', String(totamt).setAmountToKorean() + '원');
  1562. trace("issflag==="+ds_list_detail_ordpaydemand.getColumn(cur_row, 'issflag'))
  1563. trace("quarrow==="+quarrow)
  1564. // 진료비 독촉 보고서
  1565. if( ds_list_detail_ordpaydemand.rowposition >= 0)
  1566. {
  1567. // 독촉장
  1568. if(ds_list_detail_ordpaydemand.getColumn(cur_row, 'issflag') == 'A')
  1569. {
  1570. ds_send.setColumn(0, 'phoneflag', 'A');
  1571. var oParam = {};
  1572. oParam.id = "TRPAS00721";
  1573. oParam.service = "rcptteamstatsapp.rcptTeamOrdStats";
  1574. oParam.method = "reqGetUncoPhoneInfo";
  1575. oParam.inds = "req=ds_send";
  1576. oParam.outds = "ds_phone_phdata=phdata";
  1577. oParam.async = false;
  1578. //oParam.callback = "cf_TRPAS00721";
  1579. tranf_submit(oParam);
  1580. ds_temp_detail_ordpaydemand.clearData();
  1581. ds_temp_detail_ordpaydemand.addRow();
  1582. ds_temp_detail_ordpaydemand.setColumn(0, 'instcd', sysf_getUserInfo('dutplceinstcd'));
  1583. ds_temp_detail_ordpaydemand.setColumn(0, 'phone', ds_phone_phdata.getColumn(0, 'pnum'));
  1584. ds_temp_detail_ordpaydemand.setColumn(0, 'bankno', ds_phone_phdata.getColumn(0, 'bankno'));
  1585. ds_temp_detail_ordpaydemand.setColumn(0, 'koraddr', ds_phone_phdata.getColumn(0, 'koraddr'));
  1586. ds_temp_detail_ordpaydemand.setColumn(0, 'engaddr', ds_phone_phdata.getColumn(0, 'engaddr'));
  1587. ds_temp_detail_ordpaydemand.setColumn(0, 'hospnm', ds_phone_phdata.getColumn(0, 'hospnm'));
  1588. ds_temp_detail_ordpaydemand.setColumn(0, 'remfact', ds_list_detail_ordpaydemand.getColumn(cur_row, 'remfact'));
  1589. if(ds_temp.getColumn(0, "printpat") == "N")
  1590. { //환자용 독촉장 출력
  1591. var objDOM = rptf_createDOM();
  1592. rptf_setNodeListToDOM(objDOM, "/root/temp/printinfo", ds_temp_printinfo);
  1593. rptf_setNodeListToDOM(objDOM, "/root/temp/detail/ordpaydemand", ds_temp_detail_ordpaydemand);
  1594. var objParam = new Object();
  1595. objParam.xml_data_XML1 = objDOM.documentElement.source;
  1596. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
  1597. rptf_exeReportPreview30(["RPPAS00710"],[objParam], option);
  1598. var objDOM = rptf_createDOM();
  1599. rptf_setNodeListToDOM(objDOM, "/root/temp/printinfo", ds_temp_printinfo);
  1600. rptf_setNodeListToDOM(objDOM, "/root/temp/detail/ordpaydemand", ds_temp_detail_ordpaydemand);
  1601. var objParam = new Object();
  1602. objParam.xml_data_XML1 = objDOM.documentElement.source;
  1603. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
  1604. rptf_exeReportPreview30(["RPPAS00710"],[objParam], option);
  1605. }
  1606. for(var i = 0; i < quarrow; i++)
  1607. {
  1608. if(ds_list_detail_guarlist.getColumn(i, 'printyn') == 'Y')
  1609. {
  1610. // 보증인 이름, 주소, 상세주소 가져오기
  1611. ds_temp_printinfo.setColumn(0, 'grntornm', ds_list_detail_guarlist.getColumn(i, 'grntornm'));
  1612. ds_temp_printinfo.setColumn(0, 'grntorzipcdaddr', ds_list_detail_guarlist.getColumn(i, 'grntorzipcdaddr') + ' ' +
  1613. ds_list_detail_guarlist.getColumn(i, 'grntordetladdr'));
  1614. // 신우편번호 적용
  1615. if (String(ds_list_detail_guarlist.getColumn(i, "grntorzipcd2")).length == 2)
  1616. {
  1617. ds_temp_printinfo.setColumn(0, "grntordetladdr" , ds_list_detail_guarlist.getColumn(i, "grntorzipcd1") + ds_list_detail_guarlist.getColumn(i, "grntorzipcd2"));
  1618. }
  1619. else
  1620. {
  1621. ds_temp_printinfo.setColumn(0, "grntordetladdr" , ds_list_detail_guarlist.getColumn(i, "grntorzipcd1")+"-"+ds_list_detail_guarlist.getColumn(i, "grntorzipcd2"));
  1622. }
  1623. var objDOM = rptf_createDOM();
  1624. rptf_setNodeListToDOM(objDOM, "/root/temp/printinfo", ds_temp_printinfo);
  1625. rptf_setNodeListToDOM(objDOM, "/root/temp/detail/ordpaydemand", ds_temp_detail_ordpaydemand);
  1626. var objParam = new Object();
  1627. objParam.xml_data_XML1 = objDOM.documentElement.source;
  1628. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
  1629. rptf_exeReportPreview30(["RPPAS00711"],[objParam], option);
  1630. var objDOM = rptf_createDOM();
  1631. rptf_setNodeListToDOM(objDOM, "/root/temp/printinfo", ds_temp_printinfo);
  1632. rptf_setNodeListToDOM(objDOM, "/root/temp/detail/ordpaydemand", ds_temp_detail_ordpaydemand);
  1633. var objParam = new Object();
  1634. objParam.xml_data_XML1 = objDOM.documentElement.source;
  1635. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
  1636. rptf_exeReportPreview30(["RPPAS00711"],[objParam], option);
  1637. }
  1638. }
  1639. }
  1640. // 최고장
  1641. else if(ds_list_detail_ordpaydemand.getColumn(cur_row, 'issflag') == 'B')
  1642. {
  1643. ds_send.setColumn(0, 'phoneflag', 'B');
  1644. var oParam = {};
  1645. oParam.id = "TRPAS00721";
  1646. oParam.service = "rcptteamstatsapp.rcptTeamOrdStats";
  1647. oParam.method = "reqGetUncoPhoneInfo";
  1648. oParam.inds = "req=ds_send";
  1649. oParam.outds = "ds_phone_phdata=phdata";
  1650. oParam.async = false;
  1651. //oParam.callback = "cf_TRPAS00721";
  1652. tranf_submit(oParam);
  1653. ds_temp_detail_ordpaydemand.clearData();
  1654. ds_temp_detail_ordpaydemand.addRow();
  1655. ds_temp_detail_ordpaydemand.setColumn(0, 'instcd', sysf_getUserInfo('dutplceinstcd'));
  1656. ds_temp_detail_ordpaydemand.setColumn(0, 'phone', ds_phone_phdata.getColumn(0, 'pnum'));
  1657. ds_temp_detail_ordpaydemand.setColumn(0, 'bankno', ds_phone_phdata.getColumn(0, 'bankno'));
  1658. ds_temp_detail_ordpaydemand.setColumn(0, 'koraddr', ds_phone_phdata.getColumn(0, 'koraddr'));
  1659. ds_temp_detail_ordpaydemand.setColumn(0, 'engaddr', ds_phone_phdata.getColumn(0, 'engaddr'));
  1660. ds_temp_detail_ordpaydemand.setColumn(0, 'hospnm', ds_phone_phdata.getColumn(0, 'hospnm'));
  1661. ds_temp_detail_ordpaydemand.setColumn(0, 'remfact', ds_list_detail_ordpaydemand.getColumn(cur_row, 'remfact'));
  1662. if(ds_temp.getColumn(0, "printpat") == "N")
  1663. {
  1664. var objDOM = rptf_createDOM();
  1665. rptf_setNodeListToDOM(objDOM, "/root/temp/printinfo", ds_temp_printinfo);
  1666. rptf_setNodeListToDOM(objDOM, "/root/temp/detail/ordpaydemand", ds_temp_detail_ordpaydemand);
  1667. var objParam = new Object();
  1668. objParam.xml_data_XML1 = objDOM.documentElement.source;
  1669. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
  1670. rptf_exeReportPreview30(["RPPAS00740"],[objParam], option);
  1671. var objDOM = rptf_createDOM();
  1672. rptf_setNodeListToDOM(objDOM, "/root/temp/printinfo", ds_temp_printinfo);
  1673. rptf_setNodeListToDOM(objDOM, "/root/temp/detail/ordpaydemand", ds_temp_detail_ordpaydemand);
  1674. var objParam = new Object();
  1675. objParam.xml_data_XML1 = objDOM.documentElement.source;
  1676. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
  1677. rptf_exeReportPreview30(["RPPAS00740"],[objParam], option);
  1678. }
  1679. for(var i = 0; i < quarrow; i++)
  1680. {
  1681. if(ds_list_detail_guarlist.getColumn(i, 'printyn') == 'Y')
  1682. {
  1683. ds_temp_printinfo.setColumn(0, 'grntornm', ds_list_detail_guarlist.getColumn(i, 'grntornm'));
  1684. ds_temp_printinfo.setColumn(0, 'grntorzipcdaddr', ds_list_detail_guarlist.getColumn(i, 'grntorzipcdaddr') + ' ' + ds_list_detail_guarlist.getColumn(i, 'grntordetladdr'));
  1685. ds_temp_printinfo.setColumn(0, 'grntordetladdr', ds_list_detail_guarlist.getColumn(i, 'grntorzipcd1') + '-' +ds_list_detail_guarlist.getColumn(i, 'grntorzipcd2'));
  1686. var objDOM = rptf_createDOM();
  1687. rptf_setNodeListToDOM(objDOM, "/root/temp/printinfo", ds_temp_printinfo);
  1688. rptf_setNodeListToDOM(objDOM, "/root/temp/detail/ordpaydemand", ds_temp_detail_ordpaydemand);
  1689. var objParam = new Object();
  1690. objParam.xml_data_XML1 = objDOM.documentElement.source;
  1691. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
  1692. rptf_exeReportPreview30(["RPPAS00741"],[objParam], option);
  1693. var objDOM = rptf_createDOM();
  1694. rptf_setNodeListToDOM(objDOM, "/root/temp/printinfo", ds_temp_printinfo);
  1695. rptf_setNodeListToDOM(objDOM, "/root/temp/detail/ordpaydemand", ds_temp_detail_ordpaydemand);
  1696. var objParam = new Object();
  1697. objParam.xml_data_XML1 = objDOM.documentElement.source;
  1698. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
  1699. rptf_exeReportPreview30(["RPPAS00741"],[objParam], option);
  1700. }
  1701. }
  1702. }
  1703. // 진료비 납부 통지서(1)
  1704. else if(ds_list_detail_ordpaydemand.getColumn(cur_row, 'issflag') == 'C')
  1705. {
  1706. ds_send.setColumn(0, 'phoneflag', 'C');
  1707. var oParam = {};
  1708. oParam.id = "TRPAS00721";
  1709. oParam.service = "rcptteamstatsapp.rcptTeamOrdStats";
  1710. oParam.method = "reqGetUncoPhoneInfo";
  1711. oParam.inds = "req=ds_send";
  1712. oParam.outds = "ds_phone_phdata=phdata";
  1713. oParam.async = false;
  1714. //oParam.callback = "cf_TRPAS00721";
  1715. tranf_submit(oParam);
  1716. ds_temp_detail_ordpaydemand.clearData();
  1717. ds_temp_detail_ordpaydemand.addRow();
  1718. ds_temp_detail_ordpaydemand.setColumn(0, 'instcd', sysf_getUserInfo('dutplceinstcd'));
  1719. ds_temp_detail_ordpaydemand.setColumn(0, 'phone', ds_phone_phdata.getColumn(0, 'pnum'));
  1720. ds_temp_detail_ordpaydemand.setColumn(0, 'bankno', ds_phone_phdata.getColumn(0, 'bankno'));
  1721. ds_temp_detail_ordpaydemand.setColumn(0, 'koraddr', ds_phone_phdata.getColumn(0, 'koraddr'));
  1722. ds_temp_detail_ordpaydemand.setColumn(0, 'engaddr', ds_phone_phdata.getColumn(0, 'engaddr'));
  1723. ds_temp_detail_ordpaydemand.setColumn(0, 'hospnm', ds_phone_phdata.getColumn(0, 'hospnm'));
  1724. ds_temp_detail_ordpaydemand.setColumn(0, 'remfact', ds_list_detail_ordpaydemand.getColumn(cur_row, 'remfact'));
  1725. ds_temp_detail_ordpaydemand.setColumn(0, 'subremfact', ds_phone_phdata.getColumn(0, 'subremface'));
  1726. if(ds_temp.getColumn(0, "printpat") == "N")
  1727. {
  1728. var objDOM = rptf_createDOM();
  1729. rptf_setNodeListToDOM(objDOM, "/root/temp/printinfo", ds_temp_printinfo);
  1730. rptf_setNodeListToDOM(objDOM, "/root/temp/detail/ordpaydemand", ds_temp_detail_ordpaydemand);
  1731. var objParam = new Object();
  1732. objParam.xml_data_XML1 = objDOM.documentElement.source;
  1733. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
  1734. rptf_exeReportPreview30(["RPPAS00730"],[objParam], option);
  1735. var objDOM = rptf_createDOM();
  1736. rptf_setNodeListToDOM(objDOM, "/root/temp/printinfo", ds_temp_printinfo);
  1737. rptf_setNodeListToDOM(objDOM, "/root/temp/detail/ordpaydemand", ds_temp_detail_ordpaydemand);
  1738. var objParam = new Object();
  1739. objParam.xml_data_XML1 = objDOM.documentElement.source;
  1740. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
  1741. rptf_exeReportPreview30(["RPPAS00730"],[objParam], option);
  1742. }
  1743. for(var i = 0; i < quarrow; i++)
  1744. {
  1745. if(ds_list_detail_guarlist.getColumn(i, 'printyn') == 'Y')
  1746. {
  1747. ds_temp_printinfo.setColumn(0, 'grntornm', ds_list_detail_guarlist.getColumn(i, 'grntornm'));
  1748. ds_temp_printinfo.setColumn(0, 'grntorzipcdaddr', ds_list_detail_guarlist.getColumn(i, 'grntorzipcdaddr') + ' ' +ds_list_detail_guarlist.getColumn(i, 'grntordetladdr'));
  1749. ds_temp_printinfo.setColumn(0, 'grntordetladdr', ds_list_detail_guarlist.getColumn(i, 'grntorzipcd1') + '-' +ds_list_detail_guarlist.getColumn(i, 'grntorzipcd2'));
  1750. var objDOM = rptf_createDOM();
  1751. rptf_setNodeListToDOM(objDOM, "/root/temp/printinfo", ds_temp_printinfo);
  1752. rptf_setNodeListToDOM(objDOM, "/root/temp/detail/ordpaydemand", ds_temp_detail_ordpaydemand);
  1753. var objParam = new Object();
  1754. objParam.xml_data_XML1 = objDOM.documentElement.source;
  1755. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
  1756. rptf_exeReportPreview30(["RPPAS00731"],[objParam], option);
  1757. var objDOM = rptf_createDOM();
  1758. rptf_setNodeListToDOM(objDOM, "/root/temp/printinfo", ds_temp_printinfo);
  1759. rptf_setNodeListToDOM(objDOM, "/root/temp/detail/ordpaydemand", ds_temp_detail_ordpaydemand);
  1760. var objParam = new Object();
  1761. objParam.xml_data_XML1 = objDOM.documentElement.source;
  1762. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
  1763. rptf_exeReportPreview30(["RPPAS00731"],[objParam], option);
  1764. }
  1765. }
  1766. }
  1767. // 진료비 납부 통지서(2)
  1768. else if(ds_list_detail_ordpaydemand.getColumn(cur_row, 'issflag') == 'D')
  1769. {
  1770. ds_send.setColumn(0, 'phoneflag', 'D');
  1771. var oParam = {};
  1772. oParam.id = "TRPAS00721";
  1773. oParam.service = "rcptteamstatsapp.rcptTeamOrdStats";
  1774. oParam.method = "reqGetUncoPhoneInfo";
  1775. oParam.inds = "req=ds_send";
  1776. oParam.outds = "ds_phone_phdata=phdata";
  1777. oParam.async = false;
  1778. //oParam.callback = "cf_TRPAS00721";
  1779. tranf_submit(oParam);
  1780. ds_temp_detail_ordpaydemand.clearData();
  1781. ds_temp_detail_ordpaydemand.addRow();
  1782. ds_temp_detail_ordpaydemand.setColumn(0, 'instcd', sysf_getUserInfo('dutplceinstcd'));
  1783. ds_temp_detail_ordpaydemand.setColumn(0, 'phone', ds_phone_phdata.getColumn(0, 'pnum'));
  1784. ds_temp_detail_ordpaydemand.setColumn(0, 'bankno', ds_phone_phdata.getColumn(0, 'bankno'));
  1785. ds_temp_detail_ordpaydemand.setColumn(0, 'koraddr', ds_phone_phdata.getColumn(0, 'koraddr'));
  1786. ds_temp_detail_ordpaydemand.setColumn(0, 'engaddr', ds_phone_phdata.getColumn(0, 'engaddr'));
  1787. ds_temp_detail_ordpaydemand.setColumn(0, 'hospnm', ds_phone_phdata.getColumn(0, 'hospnm'));
  1788. ds_temp_detail_ordpaydemand.setColumn(0, 'remfact', ds_list_detail_ordpaydemand.getColumn(cur_row, 'remfact'));
  1789. ds_temp_detail_ordpaydemand.setColumn(0, 'subremfact', ds_list_detail_ordpaydemand.getColumn(cur_row, 'subremface'));
  1790. if(ds_temp.getColumn(0, "printpat") == "N")
  1791. {
  1792. var objDOM = rptf_createDOM();
  1793. rptf_setNodeListToDOM(objDOM, "/root/temp/printinfo", ds_temp_printinfo);
  1794. rptf_setNodeListToDOM(objDOM, "/root/hidden/urgereport", ds_hidden_urgereport);
  1795. rptf_setNodeListToDOM(objDOM, "/root/temp/detail/ordpaydemand", ds_temp_detail_ordpaydemand);
  1796. var objParam = new Object();
  1797. objParam.xml_data_XML1 = objDOM.documentElement.source;
  1798. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
  1799. rptf_exeReportPreview30(["RPPAS00700"],[objParam], option);
  1800. var objDOM = rptf_createDOM();
  1801. rptf_setNodeListToDOM(objDOM, "/root/temp/printinfo", ds_temp_printinfo);
  1802. rptf_setNodeListToDOM(objDOM, "/root/hidden/urgereport", ds_hidden_urgereport);
  1803. rptf_setNodeListToDOM(objDOM, "/root/temp/detail/ordpaydemand", ds_temp_detail_ordpaydemand);
  1804. var objParam = new Object();
  1805. objParam.xml_data_XML1 = objDOM.documentElement.source;
  1806. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
  1807. rptf_exeReportPreview30(["RPPAS00700"],[objParam], option);
  1808. }
  1809. for(var i = 0; i < quarrow; i++)
  1810. {
  1811. if(ds_list_detail_guarlist.getColumn(i, 'printyn') == 'Y')
  1812. {
  1813. ds_temp_printinfo.setColumn(0, 'grntornm', ds_list_detail_guarlist.getColumn(i, 'grntornm'));
  1814. ds_temp_printinfo.setColumn(0, 'grntorzipcdaddr', ds_list_detail_guarlist.getColumn(i, 'grntorzipcdaddr') + ' ' +ds_list_detail_guarlist.getColumn(i, 'grntordetladdr'));
  1815. ds_temp_printinfo.setColumn(0, 'grntordetladdr', ds_list_detail_guarlist.getColumn(i, 'grntorzipcd1') + '-' +ds_list_detail_guarlist.getColumn(i, 'grntorzipcd2'));
  1816. var objDOM = rptf_createDOM();
  1817. rptf_setNodeListToDOM(objDOM, "/root/temp/printinfo", ds_temp_printinfo);
  1818. rptf_setNodeListToDOM(objDOM, "/root/hidden/urgereport", ds_hidden_urgereport);
  1819. rptf_setNodeListToDOM(objDOM, "/root/temp/detail/ordpaydemand", ds_temp_detail_ordpaydemand);
  1820. var objParam = new Object();
  1821. objParam.xml_data_XML1 = objDOM.documentElement.source;
  1822. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
  1823. rptf_exeReportPreview30(["RPPAS00701"],[objParam], option);
  1824. var objDOM = rptf_createDOM();
  1825. rptf_setNodeListToDOM(objDOM, "/root/temp/printinfo", ds_temp_printinfo);
  1826. rptf_setNodeListToDOM(objDOM, "/root/hidden/urgereport", ds_hidden_urgereport);
  1827. rptf_setNodeListToDOM(objDOM, "/root/temp/detail/ordpaydemand", ds_temp_detail_ordpaydemand);
  1828. var objParam = new Object();
  1829. objParam.xml_data_XML1 = objDOM.documentElement.source;
  1830. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
  1831. rptf_exeReportPreview30(["RPPAS00701"],[objParam], option);
  1832. }
  1833. }
  1834. }
  1835. // 진료비 납부 안내서(1)
  1836. else if(ds_list_detail_ordpaydemand.getColumn(cur_row, 'issflag') == 'E')
  1837. {
  1838. if(ds_list_unco_uncolist.getColumn(row, 'unconm') != '치과미수')
  1839. {
  1840. ds_send.setColumn(0, 'phoneflag', 'E');
  1841. var oParam = {};
  1842. oParam.id = "TRPAS00721";
  1843. oParam.service = "rcptteamstatsapp.rcptTeamOrdStats";
  1844. oParam.method = "reqGetUncoPhoneInfo";
  1845. oParam.inds = "req=ds_send";
  1846. oParam.outds = "ds_phone_phdata=phdata";
  1847. oParam.async = false;
  1848. //oParam.callback = "cf_TRPAS00721";
  1849. tranf_submit(oParam);
  1850. ds_temp_detail_ordpaydemand.clearData();
  1851. ds_temp_detail_ordpaydemand.addRow();
  1852. ds_temp_detail_ordpaydemand.setColumn(0, 'instcd', sysf_getUserInfo('dutplceinstcd'));
  1853. ds_temp_detail_ordpaydemand.setColumn(0, 'phone', ds_phone_phdata.getColumn(0, 'pnum'));
  1854. ds_temp_detail_ordpaydemand.setColumn(0, 'bankno', ds_phone_phdata.getColumn(0, 'bankno'));
  1855. ds_temp_detail_ordpaydemand.setColumn(0, 'koraddr', ds_phone_phdata.getColumn(0, 'koraddr'));
  1856. ds_temp_detail_ordpaydemand.setColumn(0, 'engaddr', ds_phone_phdata.getColumn(0, 'engaddr'));
  1857. ds_temp_detail_ordpaydemand.setColumn(0, 'hospnm', ds_phone_phdata.getColumn(0, 'hospnm'));
  1858. ds_temp_detail_ordpaydemand.setColumn(0, 'remfact', ds_list_detail_ordpaydemand.getColumn(cur_row, 'remfact'));
  1859. if(ds_temp.getColumn(0, "printpat") == "N")
  1860. {
  1861. var objDOM = rptf_createDOM();
  1862. rptf_setNodeListToDOM(objDOM, "/root/temp/printinfo", ds_temp_printinfo);
  1863. rptf_setNodeListToDOM(objDOM, "/root/temp/detail/ordpaydemand", ds_temp_detail_ordpaydemand);
  1864. var objParam = new Object();
  1865. objParam.xml_data_XML1 = objDOM.documentElement.source;
  1866. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
  1867. rptf_exeReportPreview30(["RPPAS00720"],[objParam], option);
  1868. var objDOM = rptf_createDOM();
  1869. rptf_setNodeListToDOM(objDOM, "/root/temp/printinfo", ds_temp_printinfo);
  1870. rptf_setNodeListToDOM(objDOM, "/root/temp/detail/ordpaydemand", ds_temp_detail_ordpaydemand);
  1871. var objParam = new Object();
  1872. objParam.xml_data_XML1 = objDOM.documentElement.source;
  1873. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
  1874. rptf_exeReportPreview30(["RPPAS00720"],[objParam], option);
  1875. }
  1876. }
  1877. else if(ds_list_unco_uncolist.getColumn(row, 'unconm') == '치과미수')
  1878. {
  1879. ds_send.setColumn(0, 'phoneflag', 'Z');
  1880. var oParam = {};
  1881. oParam.id = "TRPAS00721";
  1882. oParam.service = "rcptteamstatsapp.rcptTeamOrdStats";
  1883. oParam.method = "reqGetUncoPhoneInfo";
  1884. oParam.inds = "req=ds_send";
  1885. oParam.outds = "ds_phone_phdata=phdata";
  1886. oParam.async = false;
  1887. //oParam.callback = "cf_TRPAS00721";
  1888. tranf_submit(oParam);
  1889. ds_temp_detail_ordpaydemand.clearData();
  1890. ds_temp_detail_ordpaydemand.addRow();
  1891. ds_temp_detail_ordpaydemand.setColumn(0, 'instcd', sysf_getUserInfo('dutplceinstcd'));
  1892. ds_temp_detail_ordpaydemand.setColumn(0, 'phone', ds_phone_phdata.getColumn(0, 'pnum'));
  1893. ds_temp_detail_ordpaydemand.setColumn(0, 'bankno', ds_phone_phdata.getColumn(0, 'bankno'));
  1894. ds_temp_detail_ordpaydemand.setColumn(0, 'koraddr', ds_phone_phdata.getColumn(0, 'koraddr'));
  1895. ds_temp_detail_ordpaydemand.setColumn(0, 'engaddr', ds_phone_phdata.getColumn(0, 'engaddr'));
  1896. ds_temp_detail_ordpaydemand.setColumn(0, 'hospnm', ds_phone_phdata.getColumn(0, 'hospnm'));
  1897. ds_temp_detail_ordpaydemand.setColumn(0, 'remfact', ds_list_detail_ordpaydemand.getColumn(cur_row, 'remfact'));
  1898. if(ds_temp.getColumn(0, "printpat") == "N")
  1899. {
  1900. var objDOM = rptf_createDOM();
  1901. rptf_setNodeListToDOM(objDOM, "/root/temp/printinfo", ds_temp_printinfo);
  1902. rptf_setNodeListToDOM(objDOM, "/root/temp/detail/ordpaydemand", ds_temp_detail_ordpaydemand);
  1903. var objParam = new Object();
  1904. objParam.xml_data_XML1 = objDOM.documentElement.source;
  1905. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
  1906. rptf_exeReportPreview30(["RPPAS00725"],[objParam], option);
  1907. var objDOM = rptf_createDOM();
  1908. rptf_setNodeListToDOM(objDOM, "/root/temp/printinfo", ds_temp_printinfo);
  1909. rptf_setNodeListToDOM(objDOM, "/root/temp/detail/ordpaydemand", ds_temp_detail_ordpaydemand);
  1910. var objParam = new Object();
  1911. objParam.xml_data_XML1 = objDOM.documentElement.source;
  1912. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
  1913. rptf_exeReportPreview30(["RPPAS00725"],[objParam], option);
  1914. }
  1915. }
  1916. for(var i = 0; i < quarrow; i++)
  1917. {
  1918. if(ds_list_detail_guarlist.getColumn(i, 'printyn') == 'Y')
  1919. {
  1920. ds_temp_printinfo.setColumn(0, 'grntornm', ds_list_detail_guarlist.getColumn(i, 'grntornm'));
  1921. ds_temp_printinfo.setColumn(0, 'grntorzipcdaddr', ds_list_detail_guarlist.getColumn(i, 'grntorzipcdaddr') + ' ' +ds_list_detail_guarlist.getColumn(i, 'grntordetladdr'));
  1922. ds_temp_printinfo.setColumn(0, 'grntordetladdr', ds_list_detail_guarlist.getColumn(i, 'grntorzipcd1') + '-' +ds_list_detail_guarlist.getColumn(i, 'grntorzipcd2'));
  1923. if(ds_list_unco_uncolist.getColumn(row, 'unconm') != '치과미수')
  1924. {
  1925. var objDOM = rptf_createDOM();
  1926. rptf_setNodeListToDOM(objDOM, "/root/temp/printinfo", ds_temp_printinfo);
  1927. rptf_setNodeListToDOM(objDOM, "/root/temp/detail/ordpaydemand", ds_temp_detail_ordpaydemand);
  1928. var objParam = new Object();
  1929. objParam.xml_data_XML1 = objDOM.documentElement.source;
  1930. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
  1931. rptf_exeReportPreview30(["RPPAS00721"],[objParam], option);
  1932. var objDOM = rptf_createDOM();
  1933. rptf_setNodeListToDOM(objDOM, "/root/temp/printinfo", ds_temp_printinfo);
  1934. rptf_setNodeListToDOM(objDOM, "/root/temp/detail/ordpaydemand", ds_temp_detail_ordpaydemand);
  1935. var objParam = new Object();
  1936. objParam.xml_data_XML1 = objDOM.documentElement.source;
  1937. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
  1938. rptf_exeReportPreview30(["RPPAS00721"],[objParam], option);
  1939. }
  1940. else if(ds_list_unco_uncolist.getColumn(row, 'unconm') == '치과미수')
  1941. {
  1942. var objDOM = rptf_createDOM();
  1943. rptf_setNodeListToDOM(objDOM, "/root/temp/printinfo", ds_temp_printinfo);
  1944. rptf_setNodeListToDOM(objDOM, "/root/temp/detail/ordpaydemand", ds_temp_detail_ordpaydemand);
  1945. var objParam = new Object();
  1946. objParam.xml_data_XML1 = objDOM.documentElement.source;
  1947. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
  1948. rptf_exeReportPreview30(["RPPAS00726"],[objParam], option);
  1949. var objDOM = rptf_createDOM();
  1950. rptf_setNodeListToDOM(objDOM, "/root/temp/printinfo", ds_temp_printinfo);
  1951. rptf_setNodeListToDOM(objDOM, "/root/temp/detail/ordpaydemand", ds_temp_detail_ordpaydemand);
  1952. var objParam = new Object();
  1953. objParam.xml_data_XML1 = objDOM.documentElement.source;
  1954. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
  1955. rptf_exeReportPreview30(["RPPAS00726"],[objParam], option);
  1956. }
  1957. }
  1958. }
  1959. }
  1960. //진료비 납부 안내서(2)
  1961. else if(ds_list_detail_ordpaydemand.getColumn(cur_row, 'issflag') == 'H')
  1962. {
  1963. if(ds_list_unco_uncolist.getColumn(row, 'unconm') != '치과미수')
  1964. {
  1965. ds_send.setColumn(0, 'phoneflag', 'H');
  1966. var oParam = {};
  1967. oParam.id = "TRPAS00721";
  1968. oParam.service = "rcptteamstatsapp.rcptTeamOrdStats";
  1969. oParam.method = "reqGetUncoPhoneInfo";
  1970. oParam.inds = "req=ds_send";
  1971. oParam.outds = "ds_phone_phdata=phdata";
  1972. oParam.async = false;
  1973. //oParam.callback = "cf_TRPAS00721";
  1974. tranf_submit(oParam);
  1975. ds_temp_detail_ordpaydemand.clearData();
  1976. ds_temp_detail_ordpaydemand.addRow();
  1977. ds_temp_detail_ordpaydemand.setColumn(0, 'instcd', sysf_getUserInfo('dutplceinstcd'));
  1978. ds_temp_detail_ordpaydemand.setColumn(0, 'phone', ds_phone_phdata.getColumn(0, 'pnum'));
  1979. ds_temp_detail_ordpaydemand.setColumn(0, 'bankno', ds_phone_phdata.getColumn(0, 'bankno'));
  1980. ds_temp_detail_ordpaydemand.setColumn(0, 'koraddr', ds_phone_phdata.getColumn(0, 'koraddr'));
  1981. ds_temp_detail_ordpaydemand.setColumn(0, 'engaddr', ds_phone_phdata.getColumn(0, 'engaddr'));
  1982. ds_temp_detail_ordpaydemand.setColumn(0, 'hospnm', ds_phone_phdata.getColumn(0, 'hospnm'));
  1983. ds_temp_detail_ordpaydemand.setColumn(0, 'remfact', ds_list_detail_ordpaydemand.getColumn(cur_row, 'remfact'));
  1984. if(ds_temp.getColumn(0, "printpat") == "N")
  1985. {
  1986. var objDOM = rptf_createDOM();
  1987. rptf_setNodeListToDOM(objDOM, "/root/temp", ds_temp);
  1988. rptf_setNodeListToDOM(objDOM, "/root/temp/printinfo", ds_temp_printinfo);
  1989. rptf_setNodeListToDOM(objDOM, "/root/temp/detail/ordpaydemand", ds_temp_detail_ordpaydemand);
  1990. var objParam = new Object();
  1991. objParam.xml_data_XML1 = objDOM.documentElement.source;
  1992. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
  1993. rptf_exeReportPreview30(["RPPAS00722"],[objParam], option);
  1994. var objDOM = rptf_createDOM();
  1995. rptf_setNodeListToDOM(objDOM, "/root/temp", ds_temp);
  1996. rptf_setNodeListToDOM(objDOM, "/root/temp/printinfo", ds_temp_printinfo);
  1997. rptf_setNodeListToDOM(objDOM, "/root/temp/detail/ordpaydemand", ds_temp_detail_ordpaydemand);
  1998. var objParam = new Object();
  1999. objParam.xml_data_XML1 = objDOM.documentElement.source;
  2000. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
  2001. rptf_exeReportPreview30(["RPPAS00722"],[objParam], option);
  2002. }
  2003. }
  2004. else if(ds_list_unco_uncolist.getColumn(row, 'unconm') == '치과미수')
  2005. {
  2006. ds_send.setColumn(0, 'phoneflag', 'Z');
  2007. var oParam = {};
  2008. oParam.id = "TRPAS00721";
  2009. oParam.service = "rcptteamstatsapp.rcptTeamOrdStats";
  2010. oParam.method = "reqGetUncoPhoneInfo";
  2011. oParam.inds = "req=ds_send";
  2012. oParam.outds = "ds_phone=phdata";
  2013. oParam.async = false;
  2014. //oParam.callback = "cf_TRPAS00721";
  2015. tranf_submit(oParam);
  2016. ds_temp_detail_ordpaydemand.clearData();
  2017. ds_temp_detail_ordpaydemand.addRow();
  2018. ds_temp_detail_ordpaydemand.setColumn(0, 'instcd', sysf_getUserInfo('dutplceinstcd'));
  2019. ds_temp_detail_ordpaydemand.setColumn(0, 'phone', ds_phone_phdata.getColumn(0, 'pnum'));
  2020. ds_temp_detail_ordpaydemand.setColumn(0, 'bankno', ds_phone_phdata.getColumn(0, 'bankno'));
  2021. ds_temp_detail_ordpaydemand.setColumn(0, 'koraddr', ds_phone_phdata.getColumn(0, 'koraddr'));
  2022. ds_temp_detail_ordpaydemand.setColumn(0, 'engaddr', ds_phone_phdata.getColumn(0, 'engaddr'));
  2023. ds_temp_detail_ordpaydemand.setColumn(0, 'hospnm', ds_phone_phdata.getColumn(0, 'hospnm'));
  2024. ds_temp_detail_ordpaydemand.setColumn(0, 'remfact', ds_list_detail_ordpaydemand.getColumn(cur_row, 'remfact'));
  2025. if(ds_temp.getColumn(0, "printpat") == "N")
  2026. {
  2027. var objDOM = rptf_createDOM();
  2028. rptf_setNodeListToDOM(objDOM, "/root/temp", ds_temp);
  2029. rptf_setNodeListToDOM(objDOM, "/root/temp/printinfo", ds_temp_printinfo);
  2030. rptf_setNodeListToDOM(objDOM, "/root/temp/detail/ordpaydemand", ds_temp_detail_ordpaydemand);
  2031. var objParam = new Object();
  2032. objParam.xml_data_XML1 = objDOM.documentElement.source;
  2033. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
  2034. rptf_exeReportPreview30(["RPPAS00722"],[objParam], option);
  2035. var objDOM = rptf_createDOM();
  2036. rptf_setNodeListToDOM(objDOM, "/root/temp", ds_temp);
  2037. rptf_setNodeListToDOM(objDOM, "/root/temp/printinfo", ds_temp_printinfo);
  2038. rptf_setNodeListToDOM(objDOM, "/root/temp/detail/ordpaydemand", ds_temp_detail_ordpaydemand);
  2039. var objParam = new Object();
  2040. objParam.xml_data_XML1 = objDOM.documentElement.source;
  2041. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
  2042. rptf_exeReportPreview30(["RPPAS00722"],[objParam], option);
  2043. }
  2044. }
  2045. for(var i = 0; i < quarrow; i++)
  2046. {
  2047. if(ds_list_detail_guarlist.getColumn(i, 'printyn') == 'Y')
  2048. {
  2049. ds_temp_printinfo.setColumn(0, 'grntornm', ds_list_detail_guarlist.getColumn(i, 'grntornm'));
  2050. ds_temp_printinfo.setColumn(0, 'grntorzipcdaddr', ds_list_detail_guarlist.getColumn(i, 'grntorzipcdaddr') + ' ' +ds_list_detail_guarlist.getColumn(i, 'grntordetladdr'));
  2051. ds_temp_printinfo.setColumn(0, 'grntordetladdr', ds_list_detail_guarlist.getColumn(i, 'grntorzipcd1') + '-' +ds_list_detail_guarlist.getColumn(i, 'grntorzipcd2'));
  2052. var objDOM = rptf_createDOM();
  2053. rptf_setNodeListToDOM(objDOM, "/root/temp/printinfo", ds_temp_printinfo);
  2054. rptf_setNodeListToDOM(objDOM, "/root/temp/detail/ordpaydemand", ds_temp_detail_ordpaydemand);
  2055. var objParam = new Object();
  2056. objParam.xml_data_XML1 = objDOM.documentElement.source;
  2057. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
  2058. rptf_exeReportPreview30(["RPPAS00723"],[objParam], option);
  2059. var objDOM = rptf_createDOM();
  2060. rptf_setNodeListToDOM(objDOM, "/root/temp/printinfo", ds_temp_printinfo);
  2061. rptf_setNodeListToDOM(objDOM, "/root/temp/detail/ordpaydemand", ds_temp_detail_ordpaydemand);
  2062. var objParam = new Object();
  2063. objParam.xml_data_XML1 = objDOM.documentElement.source;
  2064. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
  2065. rptf_exeReportPreview30(["RPPAS00723"],[objParam], option);
  2066. }
  2067. }
  2068. }
  2069. }
  2070. }
  2071. /****************************************************************************************
  2072. * Argument :
  2073. * Description : 보증인내역 행추가 클릭 이벤트
  2074. ****************************************************************************************/
  2075. function button3_onclick(obj:Button, e:ClickEventInfo)
  2076. {
  2077. if(utlf_transNullToEmpty(ds_send.getColumn(0, 'pid')) == '' || utlf_transNullToEmpty(ds_send.getColumn(0, 'orddd')) == '')
  2078. {
  2079. sysf_messageBox('미수내역을', 'C002');
  2080. return;
  2081. }
  2082. var cur_row = ds_list_detail_guarlist.addRow();
  2083. var row = ds_list_unco_uncolist.rowposition;
  2084. ds_list_detail_guarlist.setColumn(cur_row, "pid" , ds_list_unco_uncolist.getColumn(row, "pid"));
  2085. ds_list_detail_guarlist.setColumn(cur_row, "rcptdd", ds_list_unco_uncolist.getColumn(row, "rcptdd"));
  2086. ds_list_detail_guarlist.setColumn(cur_row, "rcptno" , ds_list_unco_uncolist.getColumn(row, "rcptno"));
  2087. ds_list_detail_guarlist.setColumn(cur_row, "orddd" , ds_list_unco_uncolist.getColumn(row, "orddd"));
  2088. ds_list_detail_guarlist.setColumn(cur_row, "cretno" , ds_list_unco_uncolist.getColumn(row, "cretno"));
  2089. ds_list_detail_guarlist.setColumn(cur_row, "printyn" , "Y");
  2090. }
  2091. /****************************************************************************************
  2092. * Argument :
  2093. * Description : 보증인내역 행삭제 클릭 이벤트
  2094. ****************************************************************************************/
  2095. function button4_onclick(obj:Button, e:ClickEventInfo)
  2096. {
  2097. var i = ds_list_detail_guarlist.rowposition;
  2098. // 디비에 입력되지 않은 데이터는 그리드에서만 삭제한다.
  2099. if(ds_list_detail_guarlist.getRowType(i) == 2)
  2100. {
  2101. ds_list_detail_guarlist.deleteRow(i);
  2102. }
  2103. else
  2104. {
  2105. ds_list_detail_guarlist.updatecontrol = false
  2106. ds_list_detail_guarlist.setRowType(i, "d");
  2107. ds_list_detail_guarlist.updatecontrol = true;
  2108. if(sysf_messageBox('선택된 행의 보증인내역을', 'Q001') != 6)
  2109. {
  2110. return;
  2111. }
  2112. }
  2113. var updated = grdf_getGridUpdateData(grd_quar, 'd');
  2114. grdf_setStatusColumn(updated, 'status');
  2115. ds_send_updatedata_datalist.copyData(updated, true);
  2116. // 삭제할 행의 정보를 send 에 넣는다
  2117. var oParam = {};
  2118. oParam.id = "TXPAS00710";
  2119. oParam.service = "rcptteamstatsapp.rcptTeamOrdStats";
  2120. oParam.method = "reqDelQuarList";
  2121. oParam.inds = "req=ds_send_updatedata_datalist";
  2122. oParam.async = false;
  2123. oParam.callback = "cf_callback";
  2124. tranf_submit(oParam);
  2125. if(arErrorCode.pop("TXPAS00710") > -1)
  2126. {
  2127. var row = ds_list_unco_uncolist.rowposition;
  2128. ds_send.setColumn(0, 'quarflag', 'quar');
  2129. ds_send.setColumn(0, 'pid', ds_list_unco_uncolist.getColumn(row, 'pid'));
  2130. ds_send.setColumn(0, 'orddd', ds_list_unco_uncolist.getColumn(row, 'orddd'));
  2131. ds_send.setColumn(0, 'rcptno', ds_list_unco_uncolist.getColumn(row, 'rcptno'));
  2132. ds_send.setColumn(0, 'rcptdd', ds_list_unco_uncolist.getColumn(row, 'rcptdd'));
  2133. var oParam = {};
  2134. oParam.id = "TRPAS00710";
  2135. oParam.service = "rcptteamstatsapp.rcptTeamOrdStats";
  2136. oParam.method = "reqGetGuarList";
  2137. oParam.inds = "req=ds_send";
  2138. oParam.outds = "ds_list_detail_guarlist=guarlist ds_list_detail_acptlist=acptlist "
  2139. +"ds_list_detail_lawsulist=lawsulist ds_list_detail_ordpaydemand=ordpaydemand";
  2140. oParam.async = false;
  2141. //oParam.callback = "cf_TRPAS00710";
  2142. tranf_submit(oParam);
  2143. ds_list_detail_acptlist.addColumn("intramt", "string");
  2144. }
  2145. ds_send_updatedata_datalist.clearData();
  2146. }
  2147. /****************************************************************************************
  2148. * Argument :
  2149. * Description : 보증인내역 행저장 클릭 이벤트
  2150. ****************************************************************************************/
  2151. function button5_onclick(obj:Button, e:ClickEventInfo)
  2152. {
  2153. var cur_row = ds_list_detail_guarlist.rowposition;
  2154. if( cur_row >= 0 )
  2155. {
  2156. if(sysf_messageBox("보증인내역을 저장 하시겠습니까?", "Q999") != 6) return;
  2157. var updated = grdf_getGridUpdateData(grd_quar);
  2158. grdf_setStatusColumn(updated, 'status');
  2159. ds_send_updatedata_datalist.copyData(updated, true);
  2160. var oParam = {};
  2161. oParam.id = "TXPAS00710";
  2162. oParam.service = "rcptteamstatsapp.rcptTeamOrdStats";
  2163. oParam.method = "reqDelQuarList";
  2164. oParam.inds = "req=ds_send_updatedata_datalist";
  2165. oParam.async = false;
  2166. oParam.callback = "cf_callback";
  2167. tranf_submit(oParam);
  2168. if(arErrorCode.pop("TXPAS00710") > -1)
  2169. {
  2170. ds_list_detail_guarlist.applyChange();
  2171. var row = ds_list_unco_uncolist.rowposition;
  2172. ds_send.setColumn(0, 'pid', ds_list_unco_uncolist.getColumn(row, 'pid'));
  2173. ds_send.setColumn(0, 'orddd', ds_list_unco_uncolist.getColumn(row, 'orddd'));
  2174. ds_send.setColumn(0, 'rcptno', ds_list_unco_uncolist.getColumn(row, 'rcptno'));
  2175. ds_send.setColumn(0, 'rcptdd', ds_list_unco_uncolist.getColumn(row, 'rcptdd'));
  2176. var oParam = {};
  2177. oParam.id = "TRPAS00710";
  2178. oParam.service = "rcptteamstatsapp.rcptTeamOrdStats";
  2179. oParam.method = "reqGetGuarList";
  2180. oParam.inds = "req=ds_send";
  2181. oParam.outds = "ds_list_detail_guarlist=guarlist ds_list_detail_acptlist=acptlist "
  2182. +"ds_list_detail_lawsulist=lawsulist ds_list_detail_ordpaydemand=ordpaydemand";
  2183. oParam.async = false;
  2184. //oParam.callback = "cf_TRPAS00710";
  2185. tranf_submit(oParam);
  2186. ds_list_detail_acptlist.addColumn("intramt", "string");
  2187. }
  2188. ds_send_updatedata_datalist.clearData();
  2189. }
  2190. }
  2191. /****************************************************************************************
  2192. * Argument :
  2193. * Description : 소송내역 행추가 클릭 이벤트
  2194. ****************************************************************************************/
  2195. function button8_onclick(obj:Button, e:ClickEventInfo)
  2196. {
  2197. if(utlf_transNullToEmpty(ds_send.getColumn(0, 'pid')) == '' || utlf_transNullToEmpty(ds_send.getColumn(0, 'orddd')) == '')
  2198. {
  2199. sysf_messageBox('미수내역을', 'C002');
  2200. return;
  2201. }
  2202. var cur_row = ds_list_detail_lawsulist.addRow();
  2203. var row = ds_list_unco_uncolist.rowposition;
  2204. ds_list_detail_lawsulist.setColumn(cur_row, "pid" , ds_list_unco_uncolist.getColumn(row, "pid"));
  2205. ds_list_detail_lawsulist.setColumn(cur_row, "rcptdd" , ds_list_unco_uncolist.getColumn(row, "rcptdd"));
  2206. ds_list_detail_lawsulist.setColumn(cur_row, "rcptno" , ds_list_unco_uncolist.getColumn(row, "rcptno"));
  2207. ds_list_detail_lawsulist.setColumn(cur_row, "orddd" , ds_list_unco_uncolist.getColumn(row, "orddd"));
  2208. ds_list_detail_lawsulist.setColumn(cur_row, "cretno" , ds_list_unco_uncolist.getColumn(row, "cretno"));
  2209. ds_list_detail_lawsulist.setColumn(cur_row, "insukind" , ds_list_unco_uncolist.getColumn(row, "insukind"));
  2210. ds_list_detail_lawsulist.setColumn(cur_row, "suppkind" , ds_list_unco_uncolist.getColumn(row, "suppkind"));
  2211. ds_list_detail_lawsulist.setColumn(cur_row, "cashamt" , "0");
  2212. ds_list_detail_lawsulist.setColumn(cur_row, "cardamt" , "0");
  2213. ds_list_detail_lawsulist.setColumn(cur_row, "onlineamt" , "0");
  2214. ds_list_detail_lawsulist.setColumn(cur_row, "uncorem" , ds_list_unco_uncolist.getColumn(row, "uncorem"));
  2215. ds_list_detail_lawsulist.setColumn(cur_row, "ordtype" , ds_list_unco_uncolist.getColumn(row, "ordtype"));
  2216. ds_list_detail_lawsulist.setColumn(cur_row, "uncoamt" , ds_temp_printinfo.getColumn(0, "uncoamt"));
  2217. ds_list_detail_lawsulist.setColumn(cur_row, "debtamt" , ds_list_unco_uncolist.getColumn(row, "debtamt"));
  2218. ds_list_detail_lawsulist.setColumn(cur_row, "uncocd" , ds_list_unco_uncolist.getColumn(row, "uncocd"));
  2219. ds_list_detail_lawsulist.setColumn(cur_row, "uncorcptflag" , "1");
  2220. ds_list_detail_lawsulist.setColumn(cur_row, "intrrate" , "0");
  2221. ds_list_detail_lawsulist.setColumn(cur_row, "rcptstat" , "Y");
  2222. }
  2223. /****************************************************************************************
  2224. * Argument :
  2225. * Description : 소송내역 삭제 클릭 이벤트
  2226. ****************************************************************************************/
  2227. function button9_onclick(obj:Button, e:ClickEventInfo)
  2228. {
  2229. var i = ds_list_detail_lawsulist.rowposition;
  2230. // 디비에 입력되지 않은 데이터는 그리드에서만 삭제한다.
  2231. if(ds_list_detail_lawsulist.getRowType(i) == 2)
  2232. {
  2233. ds_list_detail_lawsulist.deleteRow(i);
  2234. }
  2235. else
  2236. {
  2237. ds_list_detail_lawsulist.updatecontrol = false;
  2238. ds_list_detail_lawsulist.setRowType(i, "d");
  2239. ds_list_detail_lawsulist.updatecontrol = true;
  2240. if(sysf_messageBox('선택된 행의 소송내역을', 'Q001') != 6)
  2241. {
  2242. return;
  2243. }
  2244. }
  2245. // 삭제할 행의 정보를 send에 넣는다
  2246. var updated = grdf_getGridUpdateData(grd_lawsulist, 'd');
  2247. grdf_setStatusColumn(updated, 'status');
  2248. ds_send_updatedata_datalist.copyData(updated, true);
  2249. var oParam = {};
  2250. oParam.id = "TXPAS00720";
  2251. oParam.service = "rcptteamstatsapp.rcptTeamOrdStats";
  2252. oParam.method = "reqGetAcptList";
  2253. oParam.inds = "req=ds_send_updatedata_datalist";
  2254. oParam.async = false;
  2255. oParam.callback = "cf_callback";
  2256. tranf_submit(oParam);
  2257. if(arErrorCode.pop("TXPAS00720") > -1)
  2258. {
  2259. var currow = ds_list_unco_uncolist.rowposition;
  2260. ds_send.setColumn(0, 'pid', ds_list_unco_uncolist.getColumn(currow, 'pid'));
  2261. ds_send.setColumn(0, 'orddd', ds_list_unco_uncolist.getColumn(currow, 'orddd'));
  2262. ds_send.setColumn(0, 'rcptno', ds_list_unco_uncolist.getColumn(currow, 'rcptno'));
  2263. ds_send.setColumn(0, 'rcptdd', ds_list_unco_uncolist.getColumn(currow, 'rcptdd'));
  2264. var oParam = {};
  2265. oParam.id = "TRPAS00710";
  2266. oParam.service = "rcptteamstatsapp.rcptTeamOrdStats";
  2267. oParam.method = "reqGetGuarList";
  2268. oParam.inds = "req=ds_send";
  2269. oParam.outds = "ds_list_detail_guarlist=guarlist ds_list_detail_acptlist=acptlist "
  2270. +"ds_list_detail_lawsulist=lawsulist ds_list_detail_ordpaydemand=ordpaydemand";
  2271. oParam.async = false;
  2272. //oParam.callback = "cf_TRPAS00710";
  2273. tranf_submit(oParam);
  2274. ds_list_detail_acptlist.addColumn("intramt", "string");
  2275. }
  2276. ds_send_updatedata_datalist.clearData();
  2277. }
  2278. /****************************************************************************************
  2279. * Argument :
  2280. * Description : 소송내역 저장 클릭 이벤트
  2281. ****************************************************************************************/
  2282. function button10_onclick(obj:Button, e:ClickEventInfo)
  2283. {
  2284. // 수납자 마감여부 체크하여 처리
  2285. if(isMagmAprv())
  2286. {
  2287. // 마감결제 완료되어있으므로 더이상 진행하지 않음
  2288. return false;
  2289. }
  2290. var cur_row = ds_list_detail_lawsulist.rowcount;
  2291. if( cur_row > 0 )
  2292. {
  2293. var updated = grdf_getGridUpdateData(grd_lawsulist);
  2294. grdf_setStatusColumn(updated, 'status');
  2295. ds_send_updatedata_datalist.copyData(updated, true);
  2296. var oParam = {};
  2297. oParam.id = "TXPAS00720";
  2298. oParam.service = "rcptteamstatsapp.rcptTeamOrdStats";
  2299. oParam.method = "reqGetAcptList";
  2300. oParam.inds = "req=ds_send_updatedata_datalist";
  2301. oParam.async = false;
  2302. oParam.callback = "cf_callback";
  2303. tranf_submit(oParam);
  2304. if(arErrorCode.pop("TXPAS00720") > -1)
  2305. {
  2306. ds_list_detail_lawsulist.applyChange();
  2307. var row = ds_list_unco_uncolist.rowposition;
  2308. ds_send.setColumn(0, 'pid', ds_list_unco_uncolist.getColumn(row, 'pid'));
  2309. ds_send.setColumn(0, 'orddd', ds_list_unco_uncolist.getColumn(row, 'orddd'));
  2310. ds_send.setColumn(0, 'rcptno', ds_list_unco_uncolist.getColumn(row, 'rcptno'));
  2311. ds_send.setColumn(0, 'rcptdd', ds_list_unco_uncolist.getColumn(row, 'rcptdd'));
  2312. var oParam = {};
  2313. oParam.id = "TRPAS00710";
  2314. oParam.service = "rcptteamstatsapp.rcptTeamOrdStats";
  2315. oParam.method = "reqGetGuarList";
  2316. oParam.inds = "req=ds_send";
  2317. oParam.outds = "ds_list_detail_guarlist=guarlist ds_list_detail_acptlist=acptlist "
  2318. +"ds_list_detail_lawsulist=lawsulist ds_list_detail_ordpaydemand=ordpaydemand";
  2319. oParam.async = false;
  2320. //oParam.callback = "cf_TRPAS00710";
  2321. tranf_submit(oParam);
  2322. ds_list_detail_acptlist.addColumn("intramt", "string");
  2323. }
  2324. }
  2325. ds_send_updatedata_datalist.clearData();
  2326. }
  2327. /****************************************************************************************
  2328. * Argument :
  2329. * Description : 이자내역 행추가 버튼 클릭 이벤트
  2330. ****************************************************************************************/
  2331. function button2_onclick(obj:Button, e:ClickEventInfo)
  2332. {
  2333. if(utlf_transNullToEmpty(ds_send.getColumn(0, 'pid')) == '' || utlf_transNullToEmpty(ds_send.getColumn(0, 'orddd')) == '')
  2334. {
  2335. sysf_messageBox('미수내역을', 'C002');
  2336. return;
  2337. }
  2338. var cur_row = ds_list_detail_acptlist.addRow();
  2339. var row = ds_list_unco_uncolist.rowposition;
  2340. ds_list_detail_acptlist.setColumn(cur_row, "pid", ds_list_unco_uncolist.getColumn(row, "pid"));
  2341. ds_list_detail_acptlist.setColumn(cur_row, "rcptdd", ds_list_unco_uncolist.getColumn(row, "rcptdd"));
  2342. ds_list_detail_acptlist.setColumn(cur_row, "rcptno", ds_list_unco_uncolist.getColumn(row, "rcptno"));
  2343. ds_list_detail_acptlist.setColumn(cur_row, "orddd", ds_list_unco_uncolist.getColumn(row, "orddd"));
  2344. ds_list_detail_acptlist.setColumn(cur_row, "cretno", ds_list_unco_uncolist.getColumn(row, "cretno"));
  2345. ds_list_detail_acptlist.setColumn(cur_row, "insukind", ds_list_unco_uncolist.getColumn(row, "insukind"));
  2346. ds_list_detail_acptlist.setColumn(cur_row, "suppkind", ds_list_unco_uncolist.getColumn(row, "suppkind"));
  2347. ds_list_detail_acptlist.setColumn(cur_row, "uncocd", ds_list_unco_uncolist.getColumn(row, "uncocd"));
  2348. ds_list_detail_acptlist.setColumn(cur_row, "uncoamt", "0");
  2349. ds_list_detail_acptlist.setColumn(cur_row, "uncorcptflag", "1");
  2350. ds_list_detail_acptlist.setColumn(cur_row, "cashamt", "0");
  2351. ds_list_detail_acptlist.setColumn(cur_row, "cardamt", "0");
  2352. ds_list_detail_acptlist.setColumn(cur_row, "onlineamt", "0");
  2353. ds_list_detail_acptlist.setColumn(cur_row, "intramt", ds_temp_printinfo.getColumn(0, "uncoamt"));
  2354. ds_list_detail_acptlist.setColumn(cur_row, "ordtype", ds_list_unco_uncolist.getColumn(row, "ordtype"));
  2355. ds_list_detail_acptlist.setColumn(cur_row, "debtamt", "0");
  2356. ds_list_detail_acptlist.setColumn(cur_row, "rcptstat", "Y");
  2357. ds_list_detail_acptlist.setColumn(cur_row, "uncoflag", "10");
  2358. }
  2359. /****************************************************************************************
  2360. * Argument :
  2361. * Description : 이자내역 삭제 버튼 클릭 이벤트
  2362. ****************************************************************************************/
  2363. function button6_onclick(obj:Button, e:ClickEventInfo)
  2364. {
  2365. var i = ds_list_detail_acptlist.rowposition;
  2366. //디비에 입력되지 않은 데이터는 그리드에서만 삭제한다.
  2367. if (ds_list_detail_acptlist.getRowType(i) == 2)
  2368. {
  2369. ds_list_detail_acptlist.deleteRow(i);
  2370. }
  2371. else
  2372. {
  2373. ds_list_detail_acptlist.updatecontrol = false;
  2374. ds_list_detail_acptlist.setRowType(i, "d");
  2375. ds_list_detail_acptlist.updatecontrol = true;
  2376. if(sysf_messageBox("선택된 행의 보증인내역을", "Q001") != 6) return;
  2377. }
  2378. // 삭제할 행의 정보를 send에 넣는다
  2379. var updated = grdf_getGridUpdateData(grd_acptlist, 'd');
  2380. grdf_setStatusColumn(updated, 'status');
  2381. ds_send_updatedata_datalist.copyData(updated, true);
  2382. var oParam = {};
  2383. oParam.id = "TXPAS00720";
  2384. oParam.service = "rcptteamstatsapp.rcptTeamOrdStats";
  2385. oParam.method = "reqGetAcptList";
  2386. oParam.inds = "req=ds_send_updatedata_datalist";
  2387. oParam.async = false;
  2388. oParam.callback = "cf_callback";
  2389. tranf_submit(oParam);
  2390. if(arErrorCode.pop("TXPAS00720") > -1)
  2391. {
  2392. var currow = ds_list_unco_uncolist.rowposition;
  2393. ds_send.setColumn(0, 'pid', ds_list_unco_uncolist.getColumn(currow, 'pid'));
  2394. ds_send.setColumn(0, 'orddd', ds_list_unco_uncolist.getColumn(currow, 'orddd'));
  2395. ds_send.setColumn(0, 'rcptno', ds_list_unco_uncolist.getColumn(currow, 'rcptno'));
  2396. ds_send.setColumn(0, 'rcptdd', ds_list_unco_uncolist.getColumn(currow, 'rcptdd'));
  2397. var oParam = {};
  2398. oParam.id = "TRPAS00710";
  2399. oParam.service = "rcptteamstatsapp.rcptTeamOrdStats";
  2400. oParam.method = "reqGetGuarList";
  2401. oParam.inds = "req=ds_send";
  2402. oParam.outds = "ds_list_detail_guarlist=guarlist ds_list_detail_acptlist=acptlist "
  2403. +"ds_list_detail_lawsulist=lawsulist ds_list_detail_ordpaydemand=ordpaydemand";
  2404. oParam.async = false;
  2405. //oParam.callback = "cf_TRPAS00710";
  2406. tranf_submit(oParam);
  2407. ds_list_detail_acptlist.addColumn("intramt", "string");
  2408. }
  2409. ds_send_updatedata_datalist.clearData();
  2410. }
  2411. /****************************************************************************************
  2412. * Argument :
  2413. * Description : 이자내역 저장 버튼 클릭 이벤트
  2414. ****************************************************************************************/
  2415. function button7_onclick(obj:Button, e:ClickEventInfo)
  2416. {
  2417. // 수납자 마감여부 체크하여 처리
  2418. if(isMagmAprv())
  2419. {
  2420. // 마감결제 완료되어있으므로 더이상 진행하지 않음
  2421. return false;
  2422. }
  2423. var cur_row = ds_list_detail_acptlist.rowcount;
  2424. if( cur_row > 0 )
  2425. {
  2426. if(sysf_messageBox("보증인내역을 저장 하시겠습니까?", "Q999") != 6) return;
  2427. var updated = grdf_getGridUpdateData(grd_acptlist);
  2428. grdf_setStatusColumn(updated, 'status');
  2429. ds_send_updatedata_datalist.copyData(updated, true);
  2430. var oParam = {};
  2431. oParam.id = "TXPAS00720";
  2432. oParam.service = "rcptteamstatsapp.rcptTeamOrdStats";
  2433. oParam.method = "reqGetAcptList";
  2434. oParam.inds = "req=ds_send_updatedata_datalist";
  2435. oParam.async = false;
  2436. oParam.callback = "cf_callback";
  2437. tranf_submit(oParam);
  2438. if(arErrorCode.pop("TXPAS00720") > -1)
  2439. {
  2440. ds_list_detail_acptlist.applyChange();
  2441. var currow = ds_list_unco_uncolist.rowposition;
  2442. ds_send.setColumn(0, 'pid', ds_list_unco_uncolist.getColumn(currow, 'pid'));
  2443. ds_send.setColumn(0, 'orddd', ds_list_unco_uncolist.getColumn(currow, 'orddd'));
  2444. ds_send.setColumn(0, 'rcptno', ds_list_unco_uncolist.getColumn(currow, 'rcptno'));
  2445. ds_send.setColumn(0, 'rcptdd', ds_list_unco_uncolist.getColumn(currow, 'rcptdd'));
  2446. var oParam = {};
  2447. oParam.id = "TRPAS00710";
  2448. oParam.service = "rcptteamstatsapp.rcptTeamOrdStats";
  2449. oParam.method = "reqGetGuarList";
  2450. oParam.inds = "req=ds_send";
  2451. oParam.outds = "ds_list_detail_guarlist=guarlist ds_list_detail_acptlist=acptlist "
  2452. +"ds_list_detail_lawsulist=lawsulist ds_list_detail_ordpaydemand=ordpaydemand";
  2453. oParam.async = false;
  2454. //oParam.callback = "cf_TRPAS00710";
  2455. tranf_submit(oParam);
  2456. }
  2457. ds_send_updatedata_datalist.clearData();
  2458. }
  2459. }
  2460. /****************************************************************************************
  2461. * Argument :
  2462. * Description : 진료비독촉내역 행추가 버튼 클릭 이벤트
  2463. ****************************************************************************************/
  2464. function button15_onclick(obj:Button, e:ClickEventInfo)
  2465. {
  2466. if(utlf_transNullToEmpty(ds_send.getColumn(0, 'pid')) == '' || utlf_transNullToEmpty(ds_send.getColumn(0, 'orddd')) == '')
  2467. {
  2468. sysf_messageBox('미수내역을', 'C002');
  2469. return;
  2470. }
  2471. var cur_row = ds_list_detail_ordpaydemand.insertRow(0);
  2472. var row = ds_list_unco_uncolist.rowposition;
  2473. ds_list_detail_ordpaydemand.setColumn(cur_row, "pid" , ds_list_unco_uncolist.getColumn(row, "pid"));
  2474. ds_list_detail_ordpaydemand.setColumn(cur_row, "rcptdd" , ds_list_unco_uncolist.getColumn(row, "rcptdd"));
  2475. ds_list_detail_ordpaydemand.setColumn(cur_row, "rcptno" , ds_list_unco_uncolist.getColumn(row, "rcptno"));
  2476. ds_list_detail_ordpaydemand.setColumn(cur_row, "orddd" , ds_list_unco_uncolist.getColumn(row, "orddd"));
  2477. ds_list_detail_ordpaydemand.setColumn(cur_row, "cretno" , ds_list_unco_uncolist.getColumn(row, "cretno"));
  2478. dsf_makeValue(ds_list_detail_ordpaydemand, "seqno", "string", ds_list_unco_uncolist.getColumn(row, "seqno"), cur_row);
  2479. ds_list_detail_ordpaydemand.setColumn(cur_row, "issdt" , utlf_getCurrentDate() + utlf_getCurrentTime());
  2480. ds_list_detail_ordpaydemand.setColumn(cur_row, "endyn" , "N");
  2481. }
  2482. /****************************************************************************************
  2483. * Argument :
  2484. * Description : 진료비독촉내역 행삭제 버튼 클릭 이벤트
  2485. ****************************************************************************************/
  2486. function button16_onclick(obj:Button, e:ClickEventInfo)
  2487. {
  2488. var i = ds_list_detail_ordpaydemand.rowposition;
  2489. // 디비에 입력되지 않은 데이터는 그리드에서만 삭제한다
  2490. if (ds_list_detail_ordpaydemand.getRowType(i) == 2)
  2491. {
  2492. ds_list_detail_ordpaydemand.deleteRow(i);
  2493. }
  2494. else
  2495. {
  2496. ds_list_detail_ordpaydemand.updatecontrol = false
  2497. ds_list_detail_ordpaydemand.setRowType(i, "d");
  2498. ds_list_detail_ordpaydemand.updatecontrol = true;
  2499. if(sysf_messageBox("선택된 행의 독촉내역을", "Q001") != 6) return;
  2500. }
  2501. // 삭제할 행의 정보를 send에 넣는다
  2502. var updated = grdf_getGridUpdateData(grd_ordpaydemand, 'd');
  2503. grdf_setStatusColumn(updated, 'status');
  2504. ds_send_updatedata_datalist.copyData(updated, true);
  2505. var oParam = {};
  2506. oParam.id = "TXPAS00730";
  2507. oParam.service = "rcptteamstatsapp.rcptTeamOrdStats";
  2508. oParam.method = "reqSetOrdPayDemand";
  2509. oParam.inds = "req=ds_send_updatedata_datalist";
  2510. oParam.async = false;
  2511. oParam.callback = "cf_callback";
  2512. tranf_submit(oParam);
  2513. if(arErrorCode.pop("TXPAS00730") > -1)
  2514. {
  2515. var currow = ds_list_unco_uncolist.rowposition;
  2516. ds_send.setColumn(0, 'pid', ds_list_unco_uncolist.getColumn(currow, 'pid'));
  2517. ds_send.setColumn(0, 'orddd', ds_list_unco_uncolist.getColumn(currow, 'orddd'));
  2518. ds_send.setColumn(0, 'rcptno', ds_list_unco_uncolist.getColumn(currow, 'rcptno'));
  2519. ds_send.setColumn(0, 'rcptdd', ds_list_unco_uncolist.getColumn(currow, 'rcptdd'));
  2520. var oParam = {};
  2521. oParam.id = "TRPAS00710";
  2522. oParam.service = "rcptteamstatsapp.rcptTeamOrdStats";
  2523. oParam.method = "reqGetGuarList";
  2524. oParam.inds = "req=ds_send";
  2525. oParam.outds = "ds_list_detail_guarlist=guarlist ds_list_detail_acptlist=acptlist "
  2526. +"ds_list_detail_lawsulist=lawsulist ds_list_detail_ordpaydemand=ordpaydemand";
  2527. oParam.async = false;
  2528. //oParam.callback = "cf_TRPAS00710";
  2529. tranf_submit(oParam);
  2530. }
  2531. ds_send_updatedata_datalist.clearData();
  2532. }
  2533. /****************************************************************************************
  2534. * Argument :
  2535. * Description : 진료비독촉내역 행저장 버튼 클릭 이벤트
  2536. ****************************************************************************************/
  2537. function button17_onclick(obj:Button, e:ClickEventInfo)
  2538. {
  2539. var cur_row = ds_list_detail_ordpaydemand.rowcount;
  2540. if(cur_row > 0)
  2541. {
  2542. if(sysf_messageBox('해당 독촉내역을 출력 하시겠습니까?', 'Q999') == 6)
  2543. {
  2544. var updated = grdf_getGridUpdateData(grd_ordpaydemand);
  2545. grdf_setStatusColumn(updated, 'status');
  2546. ds_send_updatedata_datalist.copyData(updated, true);
  2547. ds_list_detail_ordpaydemand.setColumn(cur_row, "isscnt" , 1);
  2548. var oParam = {};
  2549. oParam.id = "TXPAS00730";
  2550. oParam.service = "rcptteamstatsapp.rcptTeamOrdStats";
  2551. oParam.method = "reqSetOrdPayDemand";
  2552. oParam.inds = "req=ds_send_updatedata_datalist";
  2553. oParam.async = false;
  2554. oParam.callback = "cf_callback";
  2555. tranf_submit(oParam);
  2556. if(arErrorCode.pop("TXPAS00730") > -1)
  2557. {
  2558. fPrintordpaydemand();
  2559. ds_list_detail_ordpaydemand.applyChange();
  2560. var row = ds_list_unco_uncolist.rowposition;
  2561. ds_send.setColumn(0, 'pid', ds_list_unco_uncolist.getColumn(row, 'pid'));
  2562. ds_send.setColumn(0, 'orddd', ds_list_unco_uncolist.getColumn(row, 'orddd'));
  2563. ds_send.setColumn(0, 'rcptno', ds_list_unco_uncolist.getColumn(row, 'rcptno'));
  2564. ds_send.setColumn(0, 'rcptdd', ds_list_unco_uncolist.getColumn(row, 'rcptdd'));
  2565. var oParam = {};
  2566. oParam.id = "TRPAS00710";
  2567. oParam.service = "rcptteamstatsapp.rcptTeamOrdStats";
  2568. oParam.method = "reqGetGuarList";
  2569. oParam.inds = "req=ds_send";
  2570. oParam.outds = "ds_list_detail_guarlist=guarlist ds_list_detail_acptlist=acptlist "
  2571. +"ds_list_detail_lawsulist=lawsulist ds_list_detail_ordpaydemand=ordpaydemand";
  2572. oParam.async = false;
  2573. //oParam.callback = "cf_TRPAS00710";
  2574. tranf_submit(oParam);
  2575. }
  2576. }
  2577. else
  2578. {
  2579. var updated = grdf_getGridUpdateData(grd_ordpaydemand);
  2580. grdf_setStatusColumn(updated, 'status');
  2581. ds_send_updatedata_datalist.copyData(updated, true);
  2582. ds_list_detail_ordpaydemand.setColumn(cur_row, "isscnt" , 0);
  2583. var oParam = {};
  2584. oParam.id = "TXPAS00730";
  2585. oParam.service = "rcptteamstatsapp.rcptTeamOrdStats";
  2586. oParam.method = "reqSetOrdPayDemand";
  2587. oParam.inds = "req=ds_send_updatedata_datalist";
  2588. oParam.async = false;
  2589. oParam.callback = "cf_callback";
  2590. tranf_submit(oParam);
  2591. if(arErrorCode.pop("TXPAS00730") > -1)
  2592. {
  2593. ds_list_detail_ordpaydemand.applyChange();
  2594. var row = ds_list_unco_uncolist.rowposition;
  2595. ds_send.setColumn(0, 'pid', ds_list_unco_uncolist.getColumn(row, 'pid'));
  2596. ds_send.setColumn(0, 'orddd', ds_list_unco_uncolist.getColumn(row, 'orddd'));
  2597. ds_send.setColumn(0, 'rcptno', ds_list_unco_uncolist.getColumn(row, 'rcptno'));
  2598. ds_send.setColumn(0, 'rcptdd', ds_list_unco_uncolist.getColumn(row, 'rcptdd'));
  2599. var oParam = {};
  2600. oParam.id = "TRPAS00710";
  2601. oParam.service = "rcptteamstatsapp.rcptTeamOrdStats";
  2602. oParam.method = "reqGetGuarList";
  2603. oParam.inds = "req=ds_send";
  2604. oParam.outds = "ds_list_detail_guarlist=guarlist ds_list_detail_acptlist=acptlist "
  2605. +"ds_list_detail_lawsulist=lawsulist ds_list_detail_ordpaydemand=ordpaydemand";
  2606. oParam.async = false;
  2607. //oParam.callback = "cf_TRPAS00710";
  2608. tranf_submit(oParam);
  2609. }
  2610. }
  2611. ds_send_updatedata_datalist.clearData();
  2612. }
  2613. return true;
  2614. }
  2615. /****************************************************************************************
  2616. * Argument :
  2617. * Description : 미수입금내역 버튼 클릭 이벤트
  2618. ****************************************************************************************/
  2619. function button11_onclick(obj:Button, e:ClickEventInfo)
  2620. {
  2621. frmf_modal("SPPAS00710", "SPPAS00710", null, null, null, null, null, null, null, null, null, null, "M");
  2622. }
  2623. /****************************************************************************************
  2624. * Argument :
  2625. * Description : 기간별미수조회 버튼 클릭 이벤트
  2626. ****************************************************************************************/
  2627. function button12_onclick(obj:Button, e:ClickEventInfo)
  2628. {
  2629. frmf_modal("SPPAS00722", "SPPAS00722", null, null, null, null, null, null, null, null, null, null, "M");
  2630. var pid = utlf_transNullToEmpty(frmf_getParameter('SMPAS00700_PID'));
  2631. ds_source.setColumn(0, 'pid', pid);
  2632. }
  2633. /****************************************************************************************
  2634. * Argument :
  2635. * Description : 일일미수현황 버튼 클릭 이벤트
  2636. ****************************************************************************************/
  2637. function button1_onclick(obj:Button, e:ClickEventInfo)
  2638. {
  2639. frmf_modal("SPPAS00750", "SPPAS00750", null, null, null, null, null, null, null, null, null, null, "M");
  2640. }
  2641. /****************************************************************************************
  2642. * Argument :
  2643. * Description : 보증인조회 버튼 클릭 이벤트
  2644. ****************************************************************************************/
  2645. function button19_onclick(obj:Button, e:ClickEventInfo)
  2646. {
  2647. frmf_modal("SPPAS00760", "SPPAS00760", null, null, null, null, null, null, null, null, null, null, "M");
  2648. }
  2649. /****************************************************************************************
  2650. * Argument :
  2651. * Description : 미수총괄표 버튼 클릭 이벤트
  2652. ****************************************************************************************/
  2653. function button22_onclick(obj:Button, e:ClickEventInfo)
  2654. {
  2655. frmf_modal("SPPAS00772", "SPPAS00772", null, null, null, null, null, null, null, null, null, null, "M");
  2656. }
  2657. /****************************************************************************************
  2658. * Argument :
  2659. * Description : 승인미수내역 버튼 클릭 이벤트
  2660. ****************************************************************************************/
  2661. function button14_onclick(obj:Button, e:ClickEventInfo)
  2662. {
  2663. frmf_modal("SPPAS00740", "SPPAS00740", null, null, null, null, null, null, null, null, null, null, "M");
  2664. }
  2665. /****************************************************************************************
  2666. * Argument :
  2667. * Description : 년도별미수조회 버튼 클릭 이벤트
  2668. ****************************************************************************************/
  2669. function button13_onclick(obj:Button, e:ClickEventInfo)
  2670. {
  2671. frmf_modal("SPPAS00730", "SPPAS00730", null, null, null, null, null, null, null, null, null, null, "M");
  2672. }
  2673. /****************************************************************************************
  2674. * Argument :
  2675. * Description : 미수총괄표 버튼 클릭 이벤트
  2676. ****************************************************************************************/
  2677. function button20_onclick(obj:Button, e:ClickEventInfo)
  2678. {
  2679. frmf_modal("SPPAS00770", "SPPAS00770", null, null, null, null, null, null, null, null, null, null, "M");
  2680. }
  2681. /****************************************************************************************
  2682. * Argument :
  2683. * Description : 미수안내 버튼 클릭 이벤트
  2684. ****************************************************************************************/
  2685. function button21_onclick(obj:Button, e:ClickEventInfo)
  2686. {
  2687. var row = ds_list_unco_uncolist.rowposition;
  2688. frmf_setParameter('SMPAM00100_PID_PARM', ds_list_unco_uncolist.getColumn(row, 'pid'));
  2689. frmf_modal("SPPAS00780", "SPPAS00780", null, null, null, null, null, null, null, null, null, null, "M");
  2690. }
  2691. /****************************************************************************************
  2692. * Argument :
  2693. * Description : 미수수납 버튼 클릭 이벤트
  2694. ****************************************************************************************/
  2695. function button18_onclick(obj:Button, e:ClickEventInfo)
  2696. {
  2697. var row = ds_list_unco_uncolist.rowposition;
  2698. frmf_setParameter('SMPAM00100_PID_PARM', ds_list_unco_uncolist.getColumn(row, 'pid'));
  2699. frmf_modal("SMPAS00800", "SMPAS00800", null, null, null, null, null, null, null, null, null, null, "M");
  2700. }
  2701. /****************************************************************************************
  2702. * Argument :
  2703. * Description : 초기화 버튼 클릭 이벤트
  2704. ****************************************************************************************/
  2705. function btn_clear_onclick(obj:Button, e:ClickEventInfo)
  2706. {
  2707. fClear();
  2708. }
  2709. function fClear()
  2710. {
  2711. ds_source.setColumn(0, "pid", "");
  2712. ds_send.setColumn(0, "pid", "");
  2713. ds_send.setColumn(0, "hngnm", "");
  2714. ds_send.setColumn(0, "uncocd", "");
  2715. ds_patinfolist.clearData();
  2716. ds_patinfolist.addRow();
  2717. ds_list_unco_uncolist.clearData();
  2718. ds_list_detail_acptlist.clearData();
  2719. ds_list_detail_guarlist.clearData();
  2720. ds_list_detail_lawsulist.clearData();
  2721. ds_list_detail_ordpaydemand.clearData();
  2722. }
  2723. /****************************************************************************************
  2724. * Argument :
  2725. * Description : 납부기간입력
  2726. ****************************************************************************************/
  2727. function grp_input1_onchanged(obj:Calendar, e:ChangeEventInfo)
  2728. {
  2729. ds_temp_printinfo.setColumn(0, "yyyy" , String(ds_temp.getColumn(0, "acptdd")).substr(0,4));
  2730. ds_temp_printinfo.setColumn(0, "mm" , String(ds_temp.getColumn(0, "acptdd")).substr(4,2));
  2731. ds_temp_printinfo.setColumn(0, "dd" , String(ds_temp.getColumn(0, "acptdd")).substr(6,2));
  2732. }
  2733. ]]></Script>
  2734. </Form>
  2735. </FDL>