SMPAS00700_미수금관리.xrw 175 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830
  1. <?xml version="1.0" encoding="UTF-16"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>미수금 현황</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <send>
  10. <pid/>
  11. <ioflag/>
  12. <updatedata>
  13. <datalist/>
  14. </updatedata>
  15. <orddd/>
  16. <rcptno/>
  17. <rcptdd/>
  18. <quarflag/>
  19. <seqno/>
  20. <sendflag/>
  21. <data1>
  22. <checkfnexam/>
  23. <srchcond/>
  24. <pid/>
  25. <autoflag/>
  26. </data1>s
  27. <uncocd/>
  28. <hngnm/>
  29. <phoneflag/>
  30. </send>
  31. <main>
  32. <patinfo>
  33. <patinfolist>
  34. <pid/>
  35. <hngnm/>
  36. <rrgstno1/>
  37. <rrgstno2/>
  38. <addr/>
  39. <detladdr/>
  40. <hometel/>
  41. </patinfolist>
  42. </patinfo>
  43. </main>
  44. <list>
  45. <unco>
  46. <uncolist>
  47. <check/>
  48. <pid/>
  49. <hngnm/>
  50. <insukind/>
  51. <suppkind/>
  52. <rcptdd/>
  53. <rcptno/>
  54. <instcd/>
  55. <ordtype/>
  56. <orddd/>
  57. <cretno/>
  58. <uncocls/>
  59. <uncocd/>
  60. <unconm/>
  61. <rrgstno/>
  62. <uncoamt/>
  63. <rcptamt/>
  64. <debtamt/>
  65. <uncorem/>
  66. <insukindnm/>
  67. <suppkindnm/>
  68. <guarcount/>
  69. <acptcount/>
  70. <lawcount/>
  71. <ordpaycount/>
  72. <zipcd/>
  73. <zipaddr/>
  74. <uncono/>
  75. <shortdd/>
  76. <longdd/>
  77. </uncolist>
  78. </unco>
  79. <detail>
  80. <guarlist>
  81. <check/>
  82. <printyn/>
  83. <grntornm/>
  84. <grntorrrgstno1/>
  85. <grntorrrgstno2/>
  86. <grntorsex/>
  87. <grntorrel/>
  88. <grntorhometel/>
  89. <grntorofficetel/>
  90. <grntormpphontel/>
  91. <grntorzipcd1/>
  92. <grntorzipcd2/>
  93. <grntorzipcdseq/>
  94. <grntordetladdr/>
  95. <grntorzipcdaddr/>
  96. <uncodescyn/>
  97. <pid/>
  98. <rcptdd/>
  99. <rcptno/>
  100. <orddd/>
  101. <cretno/>
  102. <seqno/>
  103. </guarlist>
  104. <acptlist>
  105. <check/>
  106. <uncorcptflag/>
  107. <uncoflag/>
  108. <rcpttm/>
  109. <uncoamt/>
  110. <intrfromdd/>
  111. <intrtodd/>
  112. <intramt/>
  113. <intrrate/>
  114. <cashamt/>
  115. <debtamt/>
  116. <acptuncorem/>
  117. <remfact/>
  118. <pid/>
  119. <rcptdd/>
  120. <rcptno/>
  121. <orddd/>
  122. <cretno/>
  123. <seqno/>
  124. <rcptstat/>
  125. <insukind/>
  126. <suppkind/>
  127. <uncorem/>
  128. <ordtype/>
  129. <uncocd/>
  130. <cardamt/>
  131. <onlineamt/>
  132. <rcptamt/>
  133. </acptlist>
  134. <lawsulist>
  135. <check/>
  136. <uncorcptflag/>
  137. <uncoflag/>
  138. <rcpttm/>
  139. <uncoamt/>
  140. <cashamt/>
  141. <debtamt/>
  142. <intrrate/>
  143. <remfact/>
  144. <pid/>
  145. <rcptdd/>
  146. <rcptno/>
  147. <orddd/>
  148. <cretno/>
  149. <seqno/>
  150. <rcptstat/>
  151. <insukind/>
  152. <suppkind/>
  153. <uncorem/>
  154. <ordtype/>
  155. <uncocd/>
  156. <cardamt/>
  157. <onlineamt/>
  158. <rcptamt/>
  159. </lawsulist>
  160. <ordpaydemand>
  161. <check/>
  162. <issflag/>
  163. <issdt/>
  164. <remfact/>
  165. <pid/>
  166. <rcptdd/>
  167. <rcptno/>
  168. <orddd/>
  169. <cretno/>
  170. <endyn/>
  171. <seqno/>
  172. <isscnt/>
  173. <sendflag/>
  174. <subremfact/>
  175. <phone/>
  176. <bankno/>
  177. <koraddr/>
  178. <engaddr/>
  179. <hospno/>
  180. </ordpaydemand>
  181. </detail>
  182. </list>
  183. <source>
  184. <srchcond/>
  185. <pid/>
  186. <hngnm/>
  187. <rrgstno1/>
  188. <rrgstno2/>
  189. <autoflag/>
  190. <checkfnexam/>
  191. </source>
  192. <result/>
  193. <temp>
  194. <post/>
  195. <printinfo>
  196. <pid/>
  197. <hngnm/>
  198. <addr/>
  199. <detladdr/>
  200. <uncoamt/>
  201. <intramt/>
  202. <grntornm/>
  203. <grntorzipcdaddr/>
  204. <grntordetladdr/>
  205. <uncorem/>
  206. <totamt/>
  207. <totamtkor/>
  208. <yyyy/>
  209. <mm/>
  210. <dd/>
  211. <orddd/>
  212. <orddeptnm/>
  213. </printinfo>
  214. <acptdd/>
  215. <checkall/>
  216. <printpat>N</printpat>
  217. <detail>
  218. <ordpaydemand>
  219. <instcd/>
  220. <phone/>
  221. <bankno/>
  222. <koraddr/>
  223. <engaddr/>
  224. <hospnm/>
  225. <remfact/>
  226. <subremfact/>
  227. </ordpaydemand>
  228. </detail>
  229. </temp>
  230. <hidden>
  231. <urgereport/>
  232. </hidden>
  233. <init>
  234. <uncocd/>
  235. </init>
  236. <phone>
  237. <phdata>
  238. <pnum/>
  239. <bankno/>
  240. <koraddr/>
  241. <engaddr/>
  242. <hospnm/>
  243. <subremfact/>
  244. </phdata>
  245. </phone>
  246. <temp1/>
  247. <paminit>
  248. <P6584list/>
  249. </paminit>
  250. </root>
  251. </instance>
  252. <script type="javascript" ev:event="xforms-model-construct-done">
  253. <![CDATA[
  254. ]]>
  255. </script>
  256. <bind id="bind1" ref="/root/main/outreceivamtlist/receivamtstats" calculate="now() + ."/>
  257. <bind id="bind2" ref="/root/main/outreceivamtsumlist/receivamtsumstats/uncocnt" calculate="sum(/root/main/outreceivamtlist/receivamtstats/uncocnt);"/>
  258. <bind id="bind3" ref="/root/main/outreceivamtsumlist/receivamtsumstats/uncoamt" calculate="sum(/root/main/outreceivamtlist/receivamtstats/uncoamt);"/>
  259. <bind id="bind4" ref="/root/main/inreceivamtlist/receivamtstats" calculate="now() + ."/>
  260. <bind id="bind5" ref="/root/main/inreceivamtsumlist/receivamtsumstats/uncocnt" calculate="sum(/root/main/inreceivamtlist/receivamtstats/uncocnt);"/>
  261. <bind id="bind6" ref="/root/main/inreceivamtsumlist/receivamtsumstats/uncoamt" calculate="sum(/root/main/inreceivamtlist/receivamtstats/uncoamt);"/>
  262. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  263. <submission id="TRPAMCOM01" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden" resultref="/root/init"/>
  264. <submission id="TRPAS00700" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/list/unco"/>
  265. <submission id="TRPAS00710" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/list/detail"/>
  266. <submission id="TRPAS00720" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden"/>
  267. <submission id="TRPAS00721" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/phone"/>
  268. <submission id="TXPAS00710" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/list/detail"/>
  269. <submission id="TXPAS00720" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/list/detail"/>
  270. <submission id="TXPAS00730" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp1"/>
  271. <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  272. <submission id="TRPAO00005" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/magm/magminfo" resultref="/root/magm/aprvinfo"/>
  273. <submission id="TRPAO00006" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/rcptuser/rcptuserinfosend" resultref="/root/rcptuser/rcptuserinfo"/>
  274. </model>
  275. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  276. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  277. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  278. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  279. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  280. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  281. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  282. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  283. <script type="javascript" src="../../../pam/outordamtmngtweb/js/SMPAO00100.js"/>
  284. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  285. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
  286. <script type="javascript" ev:event="xforms-ready">
  287. <![CDATA[
  288. //기초코드 조회(보험,감면,진료과,공통코드)
  289. fSetCodeList();
  290. addComboItem( "cmd_uncocd" , "", "", "above" );
  291. model.removeNodeset("/root/list/unco/uncolist");
  292. model.removeNodeset("/root/list/detail/guarlist");
  293. model.removeNodeset("/root/list/detail/acptlist");
  294. model.removeNodeset("/root/list/detail/lawsulist");
  295. model.removeNodeset("/root/list/detail/ordpaydemand");
  296. // model.makeNode("/root/list/unco/uncolist");
  297. // model.makeNode("/root/list/detail/guarlist");
  298. // model.makeNode("/root/list/detail/acptlist");
  299. // model.makeNode("/root/list/detail/lawsulist");
  300. // model.makeNode("/root/list/detail/ordpaydemand");
  301. model.refresh();
  302. ]]>
  303. </script>
  304. <script type="javascript">
  305. <![CDATA[
  306. function fsaveResult() {
  307. var quarrow = grd_quar.row;
  308. var acptlist = grd_acptlist.row;
  309. if(model.getValue("/root/list/detail/guarlist[" + quarrow +"]/grntornm") == "" ||
  310. model.getValue("/root/list/detail/guarlist[" + quarrow +"]/grntorrrgstno1") == "" ||
  311. model.getValue("/root/list/detail/guarlist[" + quarrow +"]/grntorrrgstno2") == "" ||
  312. model.getValue("/root/list/detail/guarlist[" + quarrow +"]/grntorsex") == "" ){
  313. messageBox("보증인정보를", "C001");
  314. return;
  315. }
  316. }
  317. function fsaveResult2(){
  318. if(model.getValue("/root/list/detail/acptlist[" + acptlist + "]/uncoflag") == "") {
  319. messageBox("정산구분을" , "C001");
  320. }else if(model.getValue("/root/list/detail/acptlist[" + acptlist + "]/intrfromdd") == "") {
  321. messageBox("이자시작일자를" , "C001");
  322. }else if(model.getValue("/root/list/detail/acptlist[" + acptlist + "]/intrtodd") == ""){
  323. messageBox("이자종료일자를" , "C001");
  324. }
  325. }
  326. //초기화 시키기
  327. function fClear(){
  328. model.removeNodeset("/root/source/pid");
  329. model.removeNodeset("/root/send/pid");
  330. model.removeNodeset("/root/send/hngnm");
  331. model.removeNodeset("/root/send/uncocd");
  332. model.removeNodeset("/root/main/patinfo/patinfolist");
  333. model.removeNodeset("/root/list/unco/uncolist");
  334. model.removeNodeset("/root/list/detail/guarlist");
  335. model.removeNodeset("/root/list/detail/acptlist");
  336. model.removeNodeset("/root/list/detail/lawsulist");
  337. model.removeNodeset("/root/list/detail/ordpaydemand");
  338. model.makeNode("/root/source/pid");
  339. model.makeNode("/root/send/pid");
  340. model.makeNode("/root/send/hngnm");
  341. model.makeNode("/root/send/uncocd");
  342. model.makeNode("/root/main/patinfo/patinfolist/pid");
  343. model.makeNode("/root/main/patinfo/patinfolist/hngnm");
  344. model.makeNode("/root/main/patinfo/patinfolist/rrgstno1");
  345. model.makeNode("/root/main/patinfo/patinfolist/rrgstno2");
  346. model.makeNode("/root/main/patinfo/patinfolist/addr");
  347. model.makeNode("/root/main/patinfo/patinfolist/detladdr");
  348. model.makeNode("/root/main/patinfo/patinfolist/hometel");
  349. // model.makeNode("/root/list/unco/uncolist");
  350. // model.makeNode("/root/list/detail/guarlist");
  351. // model.makeNode("/root/list/detail/acptlist");
  352. // model.makeNode("/root/list/detail/lawsulist");
  353. // model.makeNode("/root/list/detail/ordpaydemand");
  354. model.refresh();
  355. }
  356. function fSetCodeList(){
  357. //공통코드
  358. zbcfGetCodeList( new Array("P0072","P0001","P0311"),
  359. new Array("/root/init_com/comncdlist/P0072list" //미수분류(개인,계약처)
  360. ,"/root/init_com/comncdlist/P0001list" //진료형태(입원,외래,응급)
  361. ,"/root/init_com/comncdlist/P0311list" //납부자정보
  362. ) );
  363. if (instance1.selectSingleNode("/root/init_com/comncdlist/P0072list") != null)
  364. {
  365. model.setValue("/root/init_com/comncdlist/P0072list/P0072/cdnm","-");
  366. model.setValue("/root/init_com/comncdlist/P0072list/P0072/cdid","-");
  367. }
  368. if (instance1.selectSingleNode("/root/init_com/comncdlist/P0001list") != null)
  369. {
  370. model.setValue("/root/init_com/comncdlist/P0001list/P0001/cdnm","전체");
  371. model.setValue("/root/init_com/comncdlist/P0001list/P0001/cdid","-");
  372. }
  373. //원무사용 기초코드 조회(진료과,의사,할인,미수코드)
  374. submit("TRPAMCOM01");
  375. // 원무 공통코드 조회
  376. pamfGetCodeList(new Array("P6584"), new Array("/root/paminit/P6584list"));
  377. }
  378. function fPrintordpaydemand() {
  379. var row = grd_uncolist.row;
  380. var cur_row = grd_ordpaydemand.row;
  381. var quarrow = grd_quar.rows;
  382. //이자금액 , 소송금액 , 이자종료일 받아오기
  383. submit("TRPAS00720");
  384. model.setValue("/root/temp/printinfo/pid" , model.getValue("/root/list/unco/uncolist["+row+"]/pid"));
  385. model.setValue("/root/temp/printinfo/hngnm" , model.getValue("/root/list/unco/uncolist["+row+"]/hngnm"));
  386. model.setValue("/root/temp/printinfo/addr" , model.getValue("/root/list/unco/uncolist["+row+"]/zipaddr"));
  387. model.setValue("/root/temp/printinfo/detladdr" , model.getValue("/root/list/unco/uncolist["+row+"]/zipcd"));
  388. model.setValue("/root/temp/printinfo/orddd" , model.getValue("/root/list/unco/uncolist["+row+"]/orddd"));
  389. model.setValue("/root/temp/printinfo/orddeptnm" , model.getValue("/root/list/unco/uncolist["+row+"]/orddeptnm"));
  390. //model.setValue("/root/temp/printinfo/uncoamt" , model.getValue("/root/list/unco/uncolist[" + row + "]/uncorem"));
  391. //총진료비 구하기
  392. var totamt = parseInt(model.getValue("/root/hidden/urgereport/law")) +
  393. parseInt(model.getValue("/root/hidden/urgereport/intr")) +
  394. parseInt(model.getValue("/root/temp/printinfo/uncoamt"));
  395. model.setValue("/root/temp/printinfo/totamt" , totamt);
  396. model.setValue("/root/temp/printinfo/totamtkor" , model.getValue("/root/temp/printinfo/totamt").setAmountToKorean()+"원");
  397. //진료비 독촉 보고서
  398. if( grd_ordpaydemand.row >= grd_ordpaydemand.fixedRows && grd_ordpaydemand.col >= grd_ordpaydemand.fixedCols) {
  399. //독촉장
  400. if(model.getValue("/root/list/detail/ordpaydemand[" + cur_row + "]/issflag") == "A"){
  401. model.setValue("/root/send/phoneflag", "A");
  402. submit("TRPAS00721");
  403. model.setValue("/root/temp/detail/ordpaydemand/instcd", getUserInfo("dutplceinstcd"));
  404. model.setValue("/root/temp/detail/ordpaydemand/phone", model.getValue("/root/phone/phdata/pnum") );
  405. model.setValue("/root/temp/detail/ordpaydemand/bankno", model.getValue("/root/phone/phdata/bankno") );
  406. model.setValue("/root/temp/detail/ordpaydemand/koraddr", model.getValue("/root/phone/phdata/koraddr") );
  407. model.setValue("/root/temp/detail/ordpaydemand/engaddr", model.getValue("/root/phone/phdata/engaddr") );
  408. model.setValue("/root/temp/detail/ordpaydemand/hospnm", model.getValue("/root/phone/phdata/hospnm") );
  409. model.setValue("/root/temp/detail/ordpaydemand/remfact", model.getValue("/root/list/detail/ordpaydemand[" + cur_row + "]/remfact") );
  410. if(model.getValue("/root/temp/printpat") == "N"){ //환자용 독촉장 출력
  411. exeReportPreview("RPPAS00710", "XMLSTR", "","", "true","","","","","true");
  412. exeReportPreview("RPPAS00710", "XMLSTR", "","", "true","","","","","true");
  413. }
  414. for(var i = 1; i <= quarrow; i++){
  415. if(model.getValue("/root/list/detail/guarlist["+i+"]/printyn") == "Y"){ //출력여부가 "Y"일때만 출력
  416. //보증인 이름, 주소, 상세주소 가져오기
  417. model.setValue("/root/temp/printinfo/grntornm" , model.getValue("/root/list/detail/guarlist["+i+"]/grntornm"));
  418. model.setValue("/root/temp/printinfo/grntorzipcdaddr" , model.getValue("/root/list/detail/guarlist["+i+"]/grntorzipcdaddr") +" "+ model.getValue("/root/list/detail/guarlist["+i+"]/grntordetladdr"));
  419. // 신우편번호 적용
  420. if (model.getValue("/root/list/detail/guarlist["+i+"]/grntorzipcd2").length == 2) {
  421. model.setValue("/root/temp/printinfo/grntordetladdr" , model.getValue("/root/list/detail/guarlist["+i+"]/grntorzipcd1") + model.getValue("/root/list/detail/guarlist["+i+"]/grntorzipcd2"));
  422. } else {
  423. model.setValue("/root/temp/printinfo/grntordetladdr" , model.getValue("/root/list/detail/guarlist["+i+"]/grntorzipcd1") +"-"+ model.getValue("/root/list/detail/guarlist["+i+"]/grntorzipcd2"));
  424. }
  425. exeReportPreview("RPPAS00711", "XMLSTR", "","", "true","","","","","true");
  426. exeReportPreview("RPPAS00711", "XMLSTR", "","", "true","","","","","true");
  427. }
  428. }
  429. //최고장
  430. }else if(model.getValue("/root/list/detail/ordpaydemand[" + cur_row + "]/issflag") == "B") {
  431. model.setValue("/root/send/phoneflag", "B");
  432. submit("TRPAS00721");
  433. model.setValue("/root/temp/detail/ordpaydemand/instcd", getUserInfo("dutplceinstcd"));
  434. model.setValue("/root/temp/detail/ordpaydemand/phone", model.getValue("/root/phone/phdata/pnum") );
  435. model.setValue("/root/temp/detail/ordpaydemand/bankno", model.getValue("/root/phone/phdata/bankno") );
  436. model.setValue("/root/temp/detail/ordpaydemand/koraddr", model.getValue("/root/phone/phdata/koraddr") );
  437. model.setValue("/root/temp/detail/ordpaydemand/engaddr", model.getValue("/root/phone/phdata/engaddr") );
  438. model.setValue("/root/temp/detail/ordpaydemand/hospnm", model.getValue("/root/phone/phdata/hospnm") );
  439. model.setValue("/root/temp/detail/ordpaydemand/remfact", model.getValue("/root/list/detail/ordpaydemand[" + cur_row + "]/remfact") );
  440. if(model.getValue("/root/temp/printpat") == "N"){
  441. exeReportPreview("RPPAS00740", "XMLSTR", "","", "true","","","","","true");
  442. exeReportPreview("RPPAS00740", "XMLSTR", "","", "true","","","","","true");
  443. }
  444. for(var i = 1; i <= quarrow; i++){
  445. if(model.getValue("/root/list/detail/guarlist["+i+"]/printyn") == "Y"){
  446. model.setValue("/root/temp/printinfo/grntornm" , model.getValue("/root/list/detail/guarlist["+i+"]/grntornm"));
  447. model.setValue("/root/temp/printinfo/grntorzipcdaddr" , model.getValue("/root/list/detail/guarlist["+i+"]/grntorzipcdaddr") +" "+ model.getValue("/root/list/detail/guarlist["+i+"]/grntordetladdr"));
  448. model.setValue("/root/temp/printinfo/grntordetladdr" , model.getValue("/root/list/detail/guarlist["+i+"]/grntorzipcd1") +"-"+ model.getValue("/root/list/detail/guarlist["+i+"]/grntorzipcd2"));
  449. exeReportPreview("RPPAS00741", "XMLSTR", "","", "true","","","","","true");
  450. exeReportPreview("RPPAS00741", "XMLSTR", "","", "true","","","","","true");
  451. }
  452. }
  453. //진료비 납부 통지서(1)
  454. }else if(model.getValue("/root/list/detail/ordpaydemand[" + cur_row + "]/issflag") == "C") {
  455. model.setValue("/root/send/phoneflag", "C");
  456. submit("TRPAS00721");
  457. model.setValue("/root/temp/detail/ordpaydemand/instcd", getUserInfo("dutplceinstcd"));
  458. model.setValue("/root/temp/detail/ordpaydemand/phone", model.getValue("/root/phone/phdata/pnum") );
  459. model.setValue("/root/temp/detail/ordpaydemand/bankno", model.getValue("/root/phone/phdata/bankno") );
  460. model.setValue("/root/temp/detail/ordpaydemand/koraddr", model.getValue("/root/phone/phdata/koraddr") );
  461. model.setValue("/root/temp/detail/ordpaydemand/engaddr", model.getValue("/root/phone/phdata/engaddr") );
  462. model.setValue("/root/temp/detail/ordpaydemand/hospnm", model.getValue("/root/phone/phdata/hospnm") );
  463. model.setValue("/root/temp/detail/ordpaydemand/remfact", model.getValue("/root/list/detail/ordpaydemand[" + cur_row + "]/remfact") );
  464. model.setValue("/root/temp/detail/ordpaydemand/subremfact", model.getValue("/root/phone/phdata/subremfact") );
  465. if(model.getValue("/root/temp/printpat") == "N"){
  466. exeReportPreview("RPPAS00730", "XMLSTR", "","", "true","","","","","true");
  467. exeReportPreview("RPPAS00730", "XMLSTR", "","", "true","","","","","true");
  468. }
  469. for(var i = 1; i <= quarrow; i++){
  470. if(model.getValue("/root/list/detail/guarlist["+i+"]/printyn") == "Y"){
  471. model.setValue("/root/temp/printinfo/grntornm" , model.getValue("/root/list/detail/guarlist["+i+"]/grntornm"));
  472. model.setValue("/root/temp/printinfo/grntorzipcdaddr" , model.getValue("/root/list/detail/guarlist["+i+"]/grntorzipcdaddr") +" "+ model.getValue("/root/list/detail/guarlist["+i+"]/grntordetladdr"));
  473. model.setValue("/root/temp/printinfo/grntordetladdr" , model.getValue("/root/list/detail/guarlist["+i+"]/grntorzipcd1") +"-"+ model.getValue("/root/list/detail/guarlist["+i+"]/grntorzipcd2"));
  474. exeReportPreview("RPPAS00731", "XMLSTR", "","", "true","","","","","true");
  475. exeReportPreview("RPPAS00731", "XMLSTR", "","", "true","","","","","true");
  476. }
  477. }
  478. //진료비 납부 통지서(2)
  479. }else if(model.getValue("/root/list/detail/ordpaydemand[" + cur_row + "]/issflag") == "D") {
  480. model.setValue("/root/send/phoneflag", "D");
  481. submit("TRPAS00721");
  482. model.setValue("/root/temp/detail/ordpaydemand/instcd", getUserInfo("dutplceinstcd"));
  483. model.setValue("/root/temp/detail/ordpaydemand/phone", model.getValue("/root/phone/phdata/pnum") );
  484. model.setValue("/root/temp/detail/ordpaydemand/bankno", model.getValue("/root/phone/phdata/bankno") );
  485. model.setValue("/root/temp/detail/ordpaydemand/koraddr", model.getValue("/root/phone/phdata/koraddr") );
  486. model.setValue("/root/temp/detail/ordpaydemand/engaddr", model.getValue("/root/phone/phdata/engaddr") );
  487. model.setValue("/root/temp/detail/ordpaydemand/hospnm", model.getValue("/root/phone/phdata/hospnm") );
  488. model.setValue("/root/temp/detail/ordpaydemand/remfact", model.getValue("/root/list/detail/ordpaydemand[" + cur_row + "]/remfact") );
  489. model.setValue("/root/temp/detail/ordpaydemand/subremfact", model.getValue("/root/list/detail/ordpaydemand[" + cur_row + "]/subremfact") );
  490. if(model.getValue("/root/temp/printpat") == "N"){
  491. exeReportPreview("RPPAS00700", "XMLSTR", "","", "true","","","","","true");
  492. exeReportPreview("RPPAS00700", "XMLSTR", "","", "true","","","","","true");
  493. }
  494. for(var i = 1; i <= quarrow; i++){
  495. if(model.getValue("/root/list/detail/guarlist["+i+"]/printyn") == "Y"){
  496. model.setValue("/root/temp/printinfo/grntornm" , model.getValue("/root/list/detail/guarlist["+i+"]/grntornm"));
  497. model.setValue("/root/temp/printinfo/grntorzipcdaddr" , model.getValue("/root/list/detail/guarlist["+i+"]/grntorzipcdaddr") +" "+ model.getValue("/root/list/detail/guarlist["+i+"]/grntordetladdr"));
  498. model.setValue("/root/temp/printinfo/grntordetladdr" , model.getValue("/root/list/detail/guarlist["+i+"]/grntorzipcd1") +"-"+ model.getValue("/root/list/detail/guarlist["+i+"]/grntorzipcd2"));
  499. exeReportPreview("RPPAS00701", "XMLSTR", "","", "true","","","","","true");
  500. exeReportPreview("RPPAS00701", "XMLSTR", "","", "true","","","","","true");
  501. }
  502. }
  503. //진료비 납부 안내서(1)
  504. }else if(model.getValue("/root/list/detail/ordpaydemand[" + cur_row + "]/issflag") == "E") {
  505. if(model.getValue("/root/list/unco/uncolist["+row+"]/unconm") != "치과미수"){
  506. model.setValue("/root/send/phoneflag", "E");
  507. submit("TRPAS00721");
  508. model.setValue("/root/temp/detail/ordpaydemand/instcd", getUserInfo("dutplceinstcd"));
  509. model.setValue("/root/temp/detail/ordpaydemand/phone", model.getValue("/root/phone/phdata/pnum") );
  510. model.setValue("/root/temp/detail/ordpaydemand/bankno", model.getValue("/root/phone/phdata/bankno") );
  511. model.setValue("/root/temp/detail/ordpaydemand/koraddr", model.getValue("/root/phone/phdata/koraddr") );
  512. model.setValue("/root/temp/detail/ordpaydemand/engaddr", model.getValue("/root/phone/phdata/engaddr") );
  513. model.setValue("/root/temp/detail/ordpaydemand/hospnm", model.getValue("/root/phone/phdata/hospnm") );
  514. model.setValue("/root/temp/detail/ordpaydemand/remfact", model.getValue("/root/list/detail/ordpaydemand[" + cur_row + "]/remfact") );
  515. if(model.getValue("/root/temp/printpat") == "N"){
  516. exeReportPreview("RPPAS00720", "XMLSTR", "","", "true","","","","","true");
  517. exeReportPreview("RPPAS00720", "XMLSTR", "","", "true","","","","","true");
  518. }
  519. }else if(model.getValue("/root/list/unco/uncolist["+row+"]/unconm") == "치과미수"){
  520. model.setValue("/root/send/phoneflag", "Z");
  521. submit("TRPAS00721");
  522. model.setValue("/root/temp/detail/ordpaydemand/instcd", getUserInfo("dutplceinstcd"));
  523. model.setValue("/root/temp/detail/ordpaydemand/phone", model.getValue("/root/phone/phdata/pnum") );
  524. model.setValue("/root/temp/detail/ordpaydemand/bankno", model.getValue("/root/phone/phdata/bankno") );
  525. model.setValue("/root/temp/detail/ordpaydemand/koraddr", model.getValue("/root/phone/phdata/koraddr") );
  526. model.setValue("/root/temp/detail/ordpaydemand/engaddr", model.getValue("/root/phone/phdata/engaddr") );
  527. model.setValue("/root/temp/detail/ordpaydemand/hospnm", model.getValue("/root/phone/phdata/hospnm") );
  528. model.setValue("/root/temp/detail/ordpaydemand/remfact", model.getValue("/root/list/detail/ordpaydemand[" + cur_row + "]/remfact") );
  529. if(model.getValue("/root/temp/printpat") == "N"){
  530. exeReportPreview("RPPAS00725", "XMLSTR", "","", "true","","","","","true");
  531. exeReportPreview("RPPAS00725", "XMLSTR", "","", "true","","","","","true");
  532. }
  533. }
  534. for(var i = 1; i <= quarrow; i++){
  535. if(model.getValue("/root/list/detail/guarlist["+i+"]/printyn") == "Y"){
  536. model.setValue("/root/temp/printinfo/grntornm" , model.getValue("/root/list/detail/guarlist["+i+"]/grntornm"));
  537. model.setValue("/root/temp/printinfo/grntorzipcdaddr" , model.getValue("/root/list/detail/guarlist["+i+"]/grntorzipcdaddr") +" "+ model.getValue("/root/list/detail/guarlist["+i+"]/grntordetladdr"));
  538. model.setValue("/root/temp/printinfo/grntordetladdr" , model.getValue("/root/list/detail/guarlist["+i+"]/grntorzipcd1") +"-"+ model.getValue("/root/list/detail/guarlist["+i+"]/grntorzipcd2"));
  539. if(model.getValue("/root/list/unco/uncolist["+row+"]/unconm") != "치과미수"){
  540. exeReportPreview("RPPAS00721", "XMLSTR", "","", "true","","","","","true");
  541. exeReportPreview("RPPAS00721", "XMLSTR", "","", "true","","","","","true");
  542. }else if(model.getValue("/root/list/unco/uncolist["+row+"]/unconm") == "치과미수"){
  543. exeReportPreview("RPPAS00726", "XMLSTR", "","", "true","","","","","true");
  544. exeReportPreview("RPPAS00726", "XMLSTR", "","", "true","","","","","true");
  545. }
  546. }
  547. }
  548. //진료비 납부 안내서(2)
  549. }else if(model.getValue("/root/list/detail/ordpaydemand[" + cur_row + "]/issflag") == "H") {
  550. if(model.getValue("/root/list/unco/uncolist["+row+"]/unconm") != "치과미수"){
  551. model.setValue("/root/send/phoneflag", "H");
  552. submit("TRPAS00721");
  553. model.setValue("/root/temp/detail/ordpaydemand/instcd" , getUserInfo("dutplceinstcd"));
  554. model.setValue("/root/temp/detail/ordpaydemand/phone" , model.getValue("/root/phone/phdata/pnum") );
  555. model.setValue("/root/temp/detail/ordpaydemand/bankno" , model.getValue("/root/phone/phdata/bankno") );
  556. model.setValue("/root/temp/detail/ordpaydemand/koraddr" , model.getValue("/root/phone/phdata/koraddr") );
  557. model.setValue("/root/temp/detail/ordpaydemand/engaddr" , model.getValue("/root/phone/phdata/engaddr") );
  558. model.setValue("/root/temp/detail/ordpaydemand/hospnm" , model.getValue("/root/phone/phdata/hospnm") );
  559. model.setValue("/root/temp/detail/ordpaydemand/remfact" , model.getValue("/root/list/detail/ordpaydemand[" + cur_row + "]/remfact") );
  560. if(model.getValue("/root/temp/printpat") == "N"){
  561. exeReportPreview("RPPAS00722", "XMLSTR", "","", "true","","","","","true");
  562. exeReportPreview("RPPAS00722", "XMLSTR", "","", "true","","","","","true");
  563. }
  564. }else if(model.getValue("/root/list/unco/uncolist["+row+"]/unconm") == "치과미수"){
  565. model.setValue("/root/send/phoneflag", "Z");
  566. submit("TRPAS00721");
  567. model.setValue("/root/temp/detail/ordpaydemand/instcd" , getUserInfo("dutplceinstcd"));
  568. model.setValue("/root/temp/detail/ordpaydemand/phone" , model.getValue("/root/phone/phdata/pnum") );
  569. model.setValue("/root/temp/detail/ordpaydemand/bankno" , model.getValue("/root/phone/phdata/bankno") );
  570. model.setValue("/root/temp/detail/ordpaydemand/koraddr" , model.getValue("/root/phone/phdata/koraddr") );
  571. model.setValue("/root/temp/detail/ordpaydemand/engaddr" , model.getValue("/root/phone/phdata/engaddr") );
  572. model.setValue("/root/temp/detail/ordpaydemand/hospnm" , model.getValue("/root/phone/phdata/hospnm") );
  573. model.setValue("/root/temp/detail/ordpaydemand/remfact" , model.getValue("/root/list/detail/ordpaydemand[" + cur_row + "]/remfact") );
  574. if(model.getValue("/root/temp/printpat") == "N"){
  575. exeReportPreview("RPPAS00722", "XMLSTR", "","", "true","","","","","true");
  576. exeReportPreview("RPPAS00722", "XMLSTR", "","", "true","","","","","true");
  577. }
  578. }
  579. for(var i = 1; i <= quarrow; i++){
  580. if(model.getValue("/root/list/detail/guarlist["+i+"]/printyn") == "Y"){
  581. model.setValue("/root/temp/printinfo/grntornm" , model.getValue("/root/list/detail/guarlist["+i+"]/grntornm"));
  582. model.setValue("/root/temp/printinfo/grntorzipcdaddr" , model.getValue("/root/list/detail/guarlist["+i+"]/grntorzipcdaddr") +" "+ model.getValue("/root/list/detail/guarlist["+i+"]/grntordetladdr"));
  583. model.setValue("/root/temp/printinfo/grntordetladdr" , model.getValue("/root/list/detail/guarlist["+i+"]/grntorzipcd1") +"-"+ model.getValue("/root/list/detail/guarlist["+i+"]/grntorzipcd2"));
  584. // if(model.getValue("/root/list/unco/uncolist["+row+"]/unconm") != "치과미수"){
  585. exeReportPreview("RPPAS00723", "XMLSTR", "","", "true","","","","","true");
  586. exeReportPreview("RPPAS00723", "XMLSTR", "","", "true","","","","","true");
  587. // }else if(model.getValue("/root/list/unco/uncolist["+row+"]/unconm") == "치과미수"){
  588. // exeReportPreview("RPPAS00726", "XMLSTR", "","", "true","","","","","true");
  589. // exeReportPreview("RPPAS00726", "XMLSTR", "","", "true","","","","","true");
  590. // }
  591. }
  592. }
  593. }
  594. //model.setValue("/root/list/detail/ordpaydemand["+cur_row+"]/sendflag", "upOrdPayDemand");
  595. }
  596. }
  597. ]]>
  598. </script>
  599. </xhtml:head>
  600. <xhtml:body pagewidth="1211" pageheight="784" style="color:#000000; ">
  601. <group id="group2" style="left:0px; top:23px; width:1200px; height:37px; ">
  602. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:5px; top:0px; width:1190px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  603. <button id="btn_search" class="btn1_letter2" style="left:1135px; top:5px; width:56px; height:22px; ">
  604. <caption>조회</caption>
  605. <script type="javascript" ev:event="DOMActivate">
  606. <![CDATA[
  607. if( model.getValue("/root/source/pid") == "" ){
  608. messageBox("환자번호를 입력하세요!!", "E999", "");
  609. return false;
  610. }
  611. model.setValue("/root/send/pid" , model.getValue("/root/source/pid"));
  612. model.setValue("/root/send/hngnm" , model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  613. model.setValue("/root/temp/checkall" , "N");
  614. submit("TRPAS00700");
  615. grd_uncolist.rebuildStyle();
  616. for(var i=0; i <= getNodesetCount("/root/list/unco/uncolist/uncorem"); i++){
  617. if(model.getValue("/root/list/unco/uncolist["+ i +"]/suppkindnm") == "소계"){
  618. grd_uncolist.rowStyle(i,"data","background-color") = "#99ff99";
  619. }
  620. }
  621. model.refresh();
  622. ]]>
  623. </script>
  624. </button>
  625. <line id="line1" class="line_4" visibility="visible" style="x1:1125px; y1:5px; x2:1125px; y2:27px; border-color:#ffe4bb; border-left-style:solid; "/>
  626. <caption id="caption4" class="search_name" style="left:10px; top:10px; width:78px; height:17px; ">등록번호</caption>
  627. <input id="ipt_pid" ref="/root/source/pid" style="left:90px; top:9px; width:100px; height:19px; ">
  628. <script type="javascript" ev:event="onkeypress">
  629. <![CDATA[
  630. inputEnterKey("btn_pid" , "DOMActivate");
  631. ]]>
  632. </script>
  633. </input>
  634. <button id="btn_pid" class="icon_search" style="left:375px; top:10px; width:16px; height:16px; ">
  635. <caption/>
  636. <script type="javascript" ev:event="DOMActivate">
  637. <![CDATA[
  638. model.setValue("/root/main/patinfo/patinfolist/pid" , model.getValue("/root/source/pid"));
  639. var ptbs_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  640. var hometel = model.getValue("/root/main/patinfo/patinfolist/hometel");
  641. var row = grd_uncolist.row;
  642. // 화면 초기화
  643. //fInitialize();
  644. model.removeNodeset("/root/send/orddd");
  645. model.removeNodeset("/root/send/uncocd");
  646. model.removeNodeset("/root/list/detail/guarlist");
  647. model.removeNodeset("/root/list/detail/acptlist");
  648. model.removeNodeset("/root/list/detail/lawsulist");
  649. model.removeNodeset("/root/list/detail/ordpaydemand");
  650. model.makeNode("/root/send/orddd");
  651. model.makeNode("/root/send/uncocd");
  652. if (ptbs_pid == null || ptbs_pid ==" " || ptbs_pid == "") {
  653. model.resetInstanceNode("/root/send/data1");
  654. } else {
  655. model.setValue("/root/send/data1/pid", ptbs_pid);
  656. model.setValue("/root/send/data1/srchcond", "1");
  657. }
  658. model.setValue("/root/send/data1/checkfnexam", "1");
  659. //model.setValue("/root/send/data1/autoflag", "NON"); //조회내역 없을경우 자동 화면 닫기
  660. modal("../../../pam/commonweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/send/data1", "/root/send");
  661. //modal("../../../pam/patinfomngtweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/send/data9", "/root/send");
  662. model.resetInstanceNode("/root/send/data1");
  663. btn_search.dispatch("DOMActivate");
  664. //model.setValue("/root/list/unco/uncolist[" + row + "]/hometel" , hometel);
  665. ]]>
  666. </script>
  667. </button>
  668. <output id="output2" ref="/root/main/patinfo/patinfolist/rrgstno1" class="output_fix" style="left:269px; top:9px; width:45px; height:19px; "/>
  669. <output id="output3" ref="/root/main/patinfo/patinfolist/rrgstno2" class="output_fix" style="left:316px; top:9px; width:55px; height:19px; "/>
  670. <caption id="caption2" class="search_name" style="left:420px; top:10px; width:90px; height:17px; ">미수구분</caption>
  671. <input id="input1" ref="/root/temp/acptdd" inputtype="date" style="left:735px; top:9px; width:85px; height:19px; ">
  672. <script type="javascript" ev:event="xforms-value-changed">
  673. <![CDATA[
  674. model.setValue("/root/temp/printinfo/yyyy" , model.getValue("/root/temp/acptdd").substr(0,4));
  675. model.setValue("/root/temp/printinfo/mm" , model.getValue("/root/temp/acptdd").substr(4,2));
  676. model.setValue("/root/temp/printinfo/dd" , model.getValue("/root/temp/acptdd").substr(6,2));
  677. model.refresh();
  678. ]]>
  679. </script>
  680. </input>
  681. <caption id="caption1" class="search_name" style="left:630px; top:10px; width:102px; height:17px; ">납부기간입력</caption>
  682. <select1 id="cmd_uncocd" ref="/root/send/uncocd" appearance="minimal" style="left:500px; top:9px; width:100px; height:19px; ">
  683. <choices>
  684. <itemset nodeset="/root/init/uncocd">
  685. <label ref="nm"/>
  686. <value ref="cd"/>
  687. </itemset>
  688. </choices>
  689. <script type="javascript" ev:event="xforms-select">
  690. <![CDATA[
  691. if(model.getValue("/root/source/pid") == "" || model.getValue("/root/send/hngnm") == ""){
  692. return;
  693. }else{
  694. if(model.getValue("/root/source/pid") == ""){
  695. btn_hngnm.dispatch("DOMActivate");
  696. }else{
  697. btn_search.dispatch("DOMActivate");
  698. }
  699. }
  700. ]]>
  701. </script>
  702. </select1>
  703. <input id="input2" ref="/root/send/hngnm" style="left:204px; top:9px; width:62px; height:19px; ">
  704. <script type="javascript" ev:event="onkeypress">
  705. <![CDATA[
  706. inputEnterKey("btn_hngnm" , "DOMActivate");
  707. ]]>
  708. </script>
  709. </input>
  710. </group>
  711. <group id="group3" style="left:0px; top:0px; width:1211px; height:13px; ">
  712. <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:183px; height:14px; font-family:돋움; vertical-align:middle; ">미수금관리</caption>
  713. </group>
  714. <line id="line3" class="line_1" style="x1:6px; y1:80px; x2:1194px; y2:80px; "/>
  715. <caption id="caption6" class="tit_2" style="left:10px; top:65px; width:160px; height:13px; ">미수내역</caption>
  716. <datagrid id="grd_uncolist" nodeset="/root/list/unco/uncolist" caption="^등록번호^미수경로^미수코드^미수구분^성명^진료과명^유형^보조유형^입원일자^단기시효^장기시효^발생일자^미수번호^미수분류^미수금액^미수입금액^미수잔액^보증^이자^소송^독려^전화번호^휴대전화^우편번호^주소^참고사항" colsep="^" colwidth="20, 85, 60, 65, 100, 70, 100, 80, 80, 85, 85, 85, 85, 85, 100, 80, 80, 80, 50, 50, 50, 50, 100, 100, 74, 245, 100" mergecellsfixedrows="bycolrec" rowsep="|" subtotalposition="below" style="left:5px; top:85px; width:1190px; height:210px; text-align:center; ">
  717. <col checkvalue="Y,N" ref="check" type="checkbox" visibility="hidden"/>
  718. <col ref="pid"/>
  719. <col disabled="true" ref="ordtype" type="combo">
  720. <choices>
  721. <item>
  722. <label>외래</label>
  723. <value>O</value>
  724. </item>
  725. <item>
  726. <label>입원</label>
  727. <value>I</value>
  728. </item>
  729. <item>
  730. <label>응급</label>
  731. <value>E</value>
  732. </item>
  733. </choices>
  734. </col>
  735. <col ref="uncocd" visibility="hidden"/>
  736. <col ref="unconm"/>
  737. <col ref="hngnm"/>
  738. <col ref="orddeptnm" visibility="visible"/>
  739. <col ref="insukindnm"/>
  740. <col ref="suppkindnm"/>
  741. <col ref="orddd" format="9999-99-99"/>
  742. <col ref="shortdd" format="9999-99-99"/>
  743. <col ref="longdd" format="9999-99-99"/>
  744. <col ref="rcptdd" format="9999-99-99"/>
  745. <col ref="uncono"/>
  746. <col ref="uncocls" visibility="hidden"/>
  747. <col ref="uncoamt" format="(-)#,###" style="text-align:right; "/>
  748. <col ref="rcptamt" format="(-)#,###" style="text-align:right; "/>
  749. <col ref="uncorem" format="(-)#,###" style="text-align:right; "/>
  750. <col ref="guarcount" format="#,###"/>
  751. <col ref="acptcount" visibility="visible"/>
  752. <col ref="lawcount"/>
  753. <col ref="ordpaycount"/>
  754. <col ref="hometel"/>
  755. <col ref="mpphontel"/>
  756. <col ref="zipcd"/>
  757. <col ref="zipaddr"/>
  758. <col ref="remfact"/>
  759. <script type="javascript" ev:event="onclick">
  760. <![CDATA[
  761. if(grd_uncolist.col == grd_uncolist.colRef("rcptdd") && grd_uncolist.isCell(event.target) && grd_uncolist.mouseRow >= grd_uncolist.fixedrows && model.getValue("/root/list/unco/uncolist["+grd_uncolist.row+"]/suppkindnm") != "소계") {
  762. setParameter("pid", grd_uncolist.valueMatrix(grd_uncolist.row, grd_uncolist.colRef("pid")));
  763. setParameter("rcptdd", grd_uncolist.valueMatrix(grd_uncolist.row, grd_uncolist.colRef("rcptdd")));
  764. open("../../../pam/rcptteamstatsweb/xrw/SPPAS00701_미수입금내역", "", "20", "80" ,"SPPAS00701_미수입금내역", "", "");
  765. }else if(isDataCell()){
  766. /** 추가 요청 사항
  767. 발생일자가 동일할시에는 체크상태의
  768. 미수잔액금을 모두 더해 출력물에 표시한다
  769. **/
  770. var uncomoney = 0;
  771. var row = grd_uncolist.row;
  772. var rcptdd = model.getValue("/root/list/unco/uncolist[check = 'Y']/rcptdd");
  773. var uncorem = model.getValue("/root/list/unco/uncolist[" + row + "]/uncorem");
  774. model.setValue("/root/source/pid" , model.getValue("/root/list/unco/uncolist["+row+"]/pid"));
  775. model.setValue("/root/send/pid" , model.getValue("/root/list/unco/uncolist["+row+"]/pid"));
  776. model.refresh();
  777. //소계만 찍을수 있도록 요청함
  778. if(model.getValue("/root/list/unco/uncolist["+row+"]/suppkindnm") == "소계"){
  779. //클릭시 체크 "Y" or "N"
  780. if(model.getValue("/root/list/unco/uncolist[" + row + "]/check") == ""){
  781. model.setValue("/root/list/unco/uncolist[" + row + "]/check" , "Y");
  782. }else if(model.getValue("/root/list/unco/uncolist[" + row + "]/check") == "Y") {
  783. model.setValue("/root/list/unco/uncolist[" + row + "]/check" , "N");
  784. model.removeNodeset("/root/list/detail/guarlist");
  785. model.removeNodeset("/root/list/detail/acptlist");
  786. model.removeNodeset("/root/list/detail/lawsulist");
  787. model.removeNodeset("/root/list/detail/ordpaydemand");
  788. model.refresh();
  789. model.setValue("/root/list/unco/uncolist[" + row + "]/check" , "");
  790. }
  791. //선택된 미수금 더하고 빼기
  792. if(model.getValue("/root/temp/checkall") == "N") {
  793. for(var i = 0; i <= getNodesetCount("/root/list/unco/uncolist/uncorem"); i++){
  794. if(model.getValue("/root/list/unco/uncolist["+i+"]/check") == "Y"){
  795. uncomoney += parseInt(model.getValue("/root/list/unco/uncolist["+i+"]/uncorem"));
  796. }
  797. if(model.getValue("/root/list/unco/uncolist["+i+"]/check") == "N"){
  798. uncomoney -= parseInt(model.getValue("/root/list/unco/uncolist["+i+"]/uncorem"));
  799. }
  800. }
  801. }
  802. }else{
  803. messageBox("소계만 선택이" , "I006");
  804. return;
  805. }
  806. //필수 컬럼
  807. model.setValue("/root/send/quarflag" , "quar");
  808. model.setValue("/root/send/pid" , model.getValue("/root/list/unco/uncolist[" + row + "]/pid"));
  809. model.setValue("/root/send/orddd" , model.getValue("/root/list/unco/uncolist[" + row + "]/orddd"));
  810. model.setValue("/root/send/rcptno" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptno"));
  811. model.setValue("/root/send/rcptdd" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptdd"));
  812. model.setValue("/root/send/uncocd" , model.getValue("/root/list/unco/uncolist[" + row + "]/uncocd"));
  813. //submit("TRPAS00700");
  814. submit("TRPAS00710");
  815. submit("TRPAS00720");
  816. // if(submit("TRPAS00720")){
  817. model.makeNode("/root/temp/printinfo/pid");
  818. model.makeNode("/root/temp/printinfo/hngnm");
  819. model.makeNode("/root/temp/printinfo/addr");
  820. model.makeNode("/root/temp/printinfo/detladdr");
  821. model.makeNode("/root/temp/printinfo/uncoamt");
  822. model.makeNode("/root/temp/printinfo/intramt");
  823. model.makeNode("/root/temp/printinfo/grntornm");
  824. model.makeNode("/root/temp/printinfo/grntorzipcdaddr");
  825. model.makeNode("/root/temp/printinfo/grntordetladdr");
  826. model.makeNode("/root/temp/printinfo/uncorem");
  827. model.makeNode("/root/temp/printinfo/totamt");
  828. model.makeNode("/root/temp/printinfo/totamtkor");
  829. // if(uncomoney != "0"){
  830. model.setValue("/root/temp/printinfo/uncoamt" , uncomoney);
  831. // }
  832. model.setValue("/root/temp/printinfo/uncorem" , model.getValue("/root/temp/printinfo/uncoamt").setAmountToKorean()+"원");
  833. // }
  834. setParameter("SMPAM00100_PID_PARM" , model.getValue("/root/list/unco/uncolist[" + row + "]/pid"));
  835. //model.setValue("/root/send/updatedata/datalist" , model.getValue("/root/list/uncolist/pid"));
  836. //model.copyNode("/root/send/updatedata/datalist" , "/root/list/uncolist");
  837. model.refresh();
  838. }
  839. ]]>
  840. </script>
  841. </datagrid>
  842. <line id="line4" class="line_1" style="x1:5px; y1:550px; x2:595px; y2:550px; "/>
  843. <caption id="caption8" class="tit_2" style="left:5px; top:535px; width:160px; height:14px; ">이자내역</caption>
  844. <datagrid id="grd_ordpaydemand" nodeset="/root/list/detail/ordpaydemand" caption="^구분^시행일자^발행부수^비고^pid^rcptdd^rcptno^orddd^cretno^endyn^seqno^sendflag^instcd^bankno^koraddr^engaddr^hospnm^subremfact" colsep="^" colwidth="20, 158, 131, 58, 199, 37, 33, 35, 29, 38, 46, 36, 45, 50, 39, 38, 41, 40, 41" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:605px; top:555px; width:590px; height:200px; text-align:center; ">
  845. <col checkvalue="Y,N" ref="check" type="checkbox" visibility="hidden"/>
  846. <col disabled="true" ref="issflag" type="combo">
  847. <choices>
  848. <item>
  849. <label>독촉장</label>
  850. <value>A</value>
  851. </item>
  852. <item>
  853. <label>최고장</label>
  854. <value>B</value>
  855. </item>
  856. <item>
  857. <label>진료비 납부 통지서(1)</label>
  858. <value>C</value>
  859. </item>
  860. <item>
  861. <label>진료비 납부 통지서(2)</label>
  862. <value>D</value>
  863. </item>
  864. <item>
  865. <label>진료비 납부 안내서(1)</label>
  866. <value>E</value>
  867. </item>
  868. <item>
  869. <label>진료비 납부 안내서(2)</label>
  870. <value>H</value>
  871. </item>
  872. <item>
  873. <label>안내서 저장용</label>
  874. <value>F</value>
  875. </item>
  876. <item>
  877. <label>기타</label>
  878. <value>G</value>
  879. </item>
  880. </choices>
  881. <script type="javascript" ev:event="ondblclick">
  882. <![CDATA[
  883. fPrintordpaydemand();
  884. ]]>
  885. </script>
  886. </col>
  887. <col ref="issdt" type="output" format="9999-99-99 99:99:99"/>
  888. <col ref="isscnt" visibility="hidden"/>
  889. <col ref="remfact" type="input">
  890. <script type="javascript" ev:evnet="ondblclick">
  891. <![CDATA[
  892. var cur_row = grd_ordpaydemand.row;
  893. if(model.getValue("/root/list/detail/ordpaydemand[" + cur_row + "]/issflag") != "C") {
  894. grd_ordpaydemand.disabled = false;
  895. }
  896. ]]>
  897. </script>
  898. </col>
  899. <col ref="pid" visibility="hidden"/>
  900. <col ref="rcptdd" visibility="hidden"/>
  901. <col ref="rcptno" visibility="hidden"/>
  902. <col ref="orddd" visibility="hidden"/>
  903. <col ref="cretno" visibility="hidden"/>
  904. <col ref="endyn" visibility="hidden"/>
  905. <col ref="seqno" visibility="hidden"/>
  906. <col ref="sendflag" visibility="hidden"/>
  907. <col ref="instcd" visibility="hidden"/>
  908. <col ref="bankno" visibility="hidden"/>
  909. <col ref="koraddr" visibility="hidden"/>
  910. <col ref="engaddr" visibility="hidden"/>
  911. <col ref="hospnm" visibility="hidden"/>
  912. <col ref="subremfact" visibility="hidden"/>
  913. <col ref="phone" visibility="hidden"/>
  914. </datagrid>
  915. <line id="line5" class="line_1" style="x1:605px; y1:320px; x2:1195px; y2:320px; "/>
  916. <caption id="caption9" class="tit_2" style="left:10px; top:306px; width:160px; height:13px; ">보증인내역</caption>
  917. <caption id="caption10" class="tit_2" style="left:605px; top:305px; width:160px; height:14px; ">소송내역</caption>
  918. <line id="line6" class="line_1" style="x1:5px; y1:321px; x2:595px; y2:321px; "/>
  919. <caption id="caption11" class="tit_2" style="left:605px; top:535px; width:160px; height:14px; ">진료비독촉내역</caption>
  920. <line id="line7" class="line_1" style="x1:605px; y1:550px; x2:1195px; y2:550px; "/>
  921. <datagrid id="grd_acptlist" nodeset="/root/list/detail/acptlist" caption="^정산구분^미수구분^수납일자^수납시간^이자대상금액^이자시작일자^이자종료일자^이자율^이자금액^수납금액^대손금액^이자미수잔액^비고^pid^rcptdd^rcptno^seqno^orddd^cretno^insukind^suppkind^rcptstat^uncorem^ordtype^uncoamt^uncocd^cashamt^cardamt^onlineamt" colsep="^" colwidth="20, 55, 55, 100, 100, 80, 88, 88, 48, 80, 80, 87, 100, 132, 60, 41, 45, 39, 46, 40, 55, 39, 49, -13, 42, 41, 47, 48, 46, 43" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:5px; top:555px; width:590px; height:200px; text-align:center; ">
  922. <col checkvalue="Y,N" ref="check" type="checkbox" visibility="hidden"/>
  923. <col disabled="true" ref="uncorcptflag" type="combo">
  924. <choices>
  925. <item>
  926. <label>발생</label>
  927. <value>1</value>
  928. </item>
  929. <item>
  930. <label>입금</label>
  931. <value>2</value>
  932. </item>
  933. <item>
  934. <label>대손</label>
  935. <value>3</value>
  936. </item>
  937. </choices>
  938. </col>
  939. <col disabled="true" ref="uncoflag" type="combo">
  940. <choices>
  941. <item>
  942. <label>이자</label>
  943. <value>10</value>
  944. </item>
  945. </choices>
  946. </col>
  947. <col ref="rcptexecdd" format="yyyy-mm-dd"/>
  948. <col ref="rcpttm" visibility="visible" format="99:99:99"/>
  949. <col ref="intramt" type="input" format="(-)#,###" style="text-align:right; "/>
  950. <col disabled="true" ref="intrfromdd" type="inputdate"/>
  951. <col ref="intrtodd" type="inputdate">
  952. <script type="javascript" ev:event="ondblclick">
  953. <![CDATA[
  954. /*
  955. 이자종료일자을 수정가능하게 해달라는 요청
  956. 이자종료일자를 수정하면 금액이 변동됨
  957. 계산을 위해 이자대상금액을 끌고 와야 해서 이자종료일자 더블클릭시
  958. 이자대상금액을 끌고 오게 만듬
  959. */
  960. if(isDataCell()){
  961. var urow = grd_uncolist.row;
  962. var arow = grd_acptlist.row;
  963. model.makeNode("/root/list/detail/acptlist["+arow+"]/intramt");
  964. var intramt = model.getValue("/root/list/unco/uncolist["+urow+"]/uncorem");
  965. model.setValue("/root/list/detail/acptlist["+arow+"]/intramt" , intramt);
  966. grd_acptlist.refresh();
  967. model.refresh();
  968. }
  969. ]]>
  970. </script>
  971. </col>
  972. <col disabled="true" ref="intrrate" type="combo">
  973. <choices>
  974. <itemset nodeset="/root/paminit/P6584list/P6584">
  975. <label ref="cdnm"/>
  976. <value ref="cdid"/>
  977. </itemset>
  978. </choices>
  979. </col>
  980. <col ref="uncoamt" format="(-)#,###" style="text-align:right; "/>
  981. <col ref="rcptamt" format="(-)#,###" style="text-align:right; "/>
  982. <col ref="debtamt" format="(-)#,###" style="text-align:right; "/>
  983. <col ref="acptuncorem" format="(-)#,###" style="text-align:right; "/>
  984. <col/>
  985. <col ref="pid" visibility="hidden"/>
  986. <col ref="rcptdd" visibility="hidden"/>
  987. <col ref="rcptno" visibility="hidden"/>
  988. <col ref="seqno" visibility="hidden"/>
  989. <col ref="orddd" visibility="hidden"/>
  990. <col ref="cretno" visibility="hidden"/>
  991. <col ref="insukind" visibility="hidden"/>
  992. <col ref="suppkind" visibility="hidden"/>
  993. <col ref="rcptstat" visibility="hidden"/>
  994. <col ref="uncorem" visibility="hidden"/>
  995. <col ref="ordtype" visibility="hidden"/>
  996. <col ref="uncoamt" visibility="hidden"/>
  997. <col ref="uncocd" visibility="hidden"/>
  998. <col ref="cashamt" visibility="hidden"/>
  999. <col ref="cardamt" visibility="hidden"/>
  1000. <col ref="onlineamt" visibility="hidden"/>
  1001. <script type="javascript" ev:event="xforms-value-changed">
  1002. <![CDATA[
  1003. //이자 구하기
  1004. var cur_row = grd_acptlist.row;
  1005. var uncorcptflag = model.getValue("/root/list/detail/acptlist[" + cur_row + "]/uncorcptflag");
  1006. var intramt = parseInt(model.getValue("/root/list/detail/acptlist[" + cur_row + "]/intramt"));
  1007. var fromdd = model.getValue("/root/list/detail/acptlist[" + cur_row + "]/intrfromdd");
  1008. var todd = model.getValue("/root/list/detail/acptlist[" + cur_row + "]/intrtodd");
  1009. var gigan = parseInt(getDateInterval(fromdd, todd));
  1010. var intryul = parseInt(model.getValue("/root/list/detail/acptlist[" + cur_row + "]/intrrate"))/100;
  1011. //이자구하기 (이자대상금액 X 기간 X 이자율) / 365 - 1원단위 절삭
  1012. var intramt = (intramt * gigan * intryul) /365 - ((intramt * gigan * intryul) /365)%10;
  1013. if(uncorcptflag == "1") {
  1014. //이자종료일이 99991231 일시에는 이자율 구하지 않음
  1015. if(todd == "99991231"){
  1016. model.setValue("/root/list/detail/acptlist[" + cur_row + "]/debtamt" , "0");
  1017. model.setValue("/root/list/detail/acptlist[" + cur_row + "]/cashamt" , "0");
  1018. model.setValue("/root/list/detail/acptlist[" + cur_row + "]/uncoamt" , "0");
  1019. }else{
  1020. model.setValue("/root/list/detail/acptlist[" + cur_row + "]/debtamt" , "0");
  1021. model.setValue("/root/list/detail/acptlist[" + cur_row + "]/cashamt" , "0");
  1022. model.setValue("/root/list/detail/acptlist[" + cur_row + "]/uncoamt" , intramt);
  1023. }
  1024. }
  1025. else if(uncorcptflag == "2") {
  1026. model.setValue("/root/list/detail/acptlist[" + cur_row + "]/uncoamt" , "0");
  1027. model.setValue("/root/list/detail/acptlist[" + cur_row + "]/debtamt" , "0");
  1028. model.setValue("/root/list/detail/acptlist[" + cur_row + "]/cashamt" , intramt);
  1029. }
  1030. else if(uncorcptflag == "3") {
  1031. model.setValue("/root/list/detail/acptlist[" + cur_row + "]/uncoamt" , "0");
  1032. model.setValue("/root/list/detail/acptlist[" + cur_row + "]/cashamt" , "0");
  1033. model.setValue("/root/list/detail/acptlist[" + cur_row + "]/debtamt" , intramt);
  1034. }
  1035. model.refresh();
  1036. ]]>
  1037. </script>
  1038. <script type="javascript" ev:event="ondblclick">
  1039. <![CDATA[
  1040. /* var cur_row = grd_acptlist.row;
  1041. var uncorcptflag = model.getValue("/root/list/detail/acptlist[" + cur_row + "]/uncorcptflag");
  1042. var intrtodd = model.getValue("/root/list/detail/acptlist[" + cur_row + "]/intrtodd");
  1043. var uncoamt = model.getValue("/root/list/detail/acptlist[" + cur_row + "]/uncoamt");
  1044. if(uncorcptflag == "1" && intrtodd != "" && uncoamt != "") {
  1045. model.makeNode("/root/hidden/urgereport/intrtodd");
  1046. if(model.getValue("/root/hidden/urgereport/intrtodd") == "") {
  1047. model.setValue("/root/hidden/urgereport/intrtodd" , intrtodd);
  1048. }
  1049. }
  1050. */
  1051. ]]>
  1052. </script>
  1053. </datagrid>
  1054. <datagrid id="grd_quar" nodeset="/root/list/detail/guarlist" caption="^출력^보증인명^주민번호^주민번호^성별^관계^집전화^사무실전화^휴대폰번호^우편번호^우편번호^우편일련번호^우편주소^상세주소^미수설명여부^pid^rcptdd^rcptno^orddd^crentno^seqno^rcptstat" colsep="^" colwidth="20, 40, 100, 55, 55, 39, 80, 80, 80, 85, 39, 39, 79, 150, 200, 100, 40, 35, 33, 33, 38, 36, 45" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:5px; top:326px; width:590px; height:200px; text-align:center; ">
  1055. <col checkvalue="Y,N" ref="check" type="checkbox" visibility="hidden"/>
  1056. <col ref="printyn" type="combo">
  1057. <choices>
  1058. <item>
  1059. <label>Y</label>
  1060. <value>Y</value>
  1061. </item>
  1062. <item>
  1063. <label>N</label>
  1064. <value>N</value>
  1065. </item>
  1066. </choices>
  1067. </col>
  1068. <col ref="grntornm" type="input"/>
  1069. <col ref="grntorrrgstno1" type="input" format="999999" maxlength="6"/>
  1070. <col ref="grntorrrgstno2" type="input" format="9999999" maxlength="7"/>
  1071. <col disabled="true" ref="grntorsex" type="combo" visibility="hidden">
  1072. <choices>
  1073. <item>
  1074. <label>남</label>
  1075. <value>M</value>
  1076. </item>
  1077. <item>
  1078. <label>여</label>
  1079. <value>F</value>
  1080. </item>
  1081. </choices>
  1082. </col>
  1083. <col disabled="true" ref="grntorrel" type="input"/>
  1084. <col ref="grntorhometel" type="input" visibility="visible" format="999-999-9999"/>
  1085. <col ref="grntorofficetel" type="input" format="999-999-9999"/>
  1086. <col ref="grntormpphontel" type="input" visibility="visible" format="999-9999-9999"/>
  1087. <col ref="grntorzipcd1">
  1088. <script type="javascript" ev:event="ondblclick">
  1089. <![CDATA[
  1090. if(isDataCell()){
  1091. //우편번호 창 더블클릭시 주소검색 팝업창 띄우기
  1092. zbcfOpenZipCodeList("combination", "", "/root/main/ptbs/ptbs_zipcd1", "/root/main/ptbs/ptbs_zipcd2", "/root/main/ptbs/ptbs_zipcdseq", "/root/main/ptbs/ptbs_highaddr", "hangul", "/root/main/ptbs/ptbs_detladdr");
  1093. model.setFocus("ipt_detladdr");
  1094. var row = grd_quar.row;
  1095. var post1 = model.getValue("/root/main/ptbs/ptbs_zipcd1");
  1096. var post2 = model.getValue("/root/main/ptbs/ptbs_zipcd2");
  1097. var grntorzipcdseq = model.getValue("/root/main/ptbs/ptbs_zipcdseq");
  1098. var grntorzipcdaddr = model.getValue("/root/main/ptbs/ptbs_highaddr");
  1099. var grntordetladdr = model.getValue("/root/main/ptbs/ptbs_detladdr");
  1100. model.setValue("/root/list/detail/guarlist["+ row +"]/grntorzipcd1" , post1);
  1101. model.setValue("/root/list/detail/guarlist["+ row +"]/grntorzipcd2" , post2);
  1102. model.setValue("/root/list/detail/guarlist["+ row +"]/grntorzipcdseq" , grntorzipcdseq);
  1103. model.setValue("/root/list/detail/guarlist["+ row +"]/grntorzipcdaddr" , grntorzipcdaddr);
  1104. model.setValue("/root/list/detail/guarlist["+ row +"]/grntordetladdr" , grntordetladdr);
  1105. model.setValue("/root/list/detail/guarlist["+ row +"]/uncodescyn" , "Y");
  1106. }
  1107. ]]>
  1108. </script>
  1109. </col>
  1110. <col ref="grntorzipcd2"/>
  1111. <col ref="grntorzipcdseq" visibility="hidden"/>
  1112. <col ref="grntorzipcdaddr" type="input"/>
  1113. <col ref="grntordetladdr" type="input"/>
  1114. <col ref="uncodescyn" visibility="hidden"/>
  1115. <col ref="pid" visibility="hidden"/>
  1116. <col ref="rcptdd" visibility="hidden"/>
  1117. <col ref="rcptno" visibility="hidden"/>
  1118. <col ref="orddd" visibility="hidden"/>
  1119. <col ref="cretno" visibility="hidden"/>
  1120. <col ref="seqno" visibility="hidden"/>
  1121. <col ref="rcptstat" visibility="hidden"/>
  1122. </datagrid>
  1123. <button id="button3" class="btn2_letter3" style="left:452px; top:301px; width:53px; height:19px; ">
  1124. <caption>행추가</caption>
  1125. <script type="javascript" ev:event="DOMActivate">
  1126. <![CDATA[
  1127. if(model.getValue("/root/send/pid") == "" || model.getValue("/root/send/orddd") == ""){
  1128. messageBox("미수내역을","C002");
  1129. return;
  1130. }
  1131. grd_quar.addItem();
  1132. var cur_row = grd_quar.rows - 1;
  1133. var row = grd_uncolist.row;
  1134. //var bottom = grd_quar.rows - grd_quar.fixedRows -1;
  1135. model.setValue("/root/list/detail/guarlist[" + cur_row + "]/pid" , model.getValue("/root/list/unco/uncolist[" + row + "]/pid"));
  1136. model.setValue("/root/list/detail/guarlist[" + cur_row + "]/rcptdd" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptdd"));
  1137. model.setValue("/root/list/detail/guarlist[" + cur_row + "]/rcptno" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptno"));
  1138. model.setValue("/root/list/detail/guarlist[" + cur_row + "]/orddd" , model.getValue("/root/list/unco/uncolist[" + row + "]/orddd"));
  1139. model.setValue("/root/list/detail/guarlist[" + cur_row + "]/cretno" , model.getValue("/root/list/unco/uncolist[" + row + "]/cretno"));
  1140. model.setValue("/root/list/detail/guarlist[" + cur_row + "]/printyn" , "Y");
  1141. model.refresh();
  1142. ]]>
  1143. </script>
  1144. </button>
  1145. <button id="button4" class="btn5_letter2" style="left:508px; top:301px; width:42px; height:19px; ">
  1146. <caption>삭제</caption>
  1147. <script type="javascript" ev:event="DOMActivate">
  1148. <![CDATA[
  1149. var i = grd_quar.row;
  1150. //디비에 입력되지 않은 데이터는 그리드에서만 삭제한다.
  1151. if (grd_quar.rowStatus(i) == "1" || grd_quar.rowStatus(i) == "3"){
  1152. grd_quar.deleteItem( i );
  1153. }else{
  1154. grd_quar.addStatus( i, "delete");
  1155. if(messageBox("선택된 행의 보증인내역을", "Q001") != 6) return;
  1156. }
  1157. //삭제할 행의 정보를 send에 넣는다.
  1158. model.resetInstanceNode("/root/send/updatedata");
  1159. model.setValue("root/send/updatedata/datalist", grd_quar.getUpdateData("delete"));
  1160. if ( submit("TXPAS00710") ) {
  1161. var row = grd_uncolist.row;
  1162. model.setValue("/root/send/quarflag" , "quar");
  1163. model.setValue("/root/send/pid" , model.getValue("/root/list/unco/uncolist[" + row + "]/pid"));
  1164. model.setValue("/root/send/orddd" , model.getValue("/root/list/unco/uncolist[" + row + "]/orddd"));
  1165. model.setValue("/root/send/rcptno" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptno"));
  1166. model.setValue("/root/send/rcptdd" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptdd"));
  1167. submit("TRPAS00710");
  1168. }
  1169. model.removeNodeset("/root/send/updatedata/datalist");
  1170. model.makeNode("/root/send/updatedata/datalist");
  1171. model.refresh();
  1172. ]]>
  1173. </script>
  1174. </button>
  1175. <button id="button5" class="btn5_letter2" style="left:553px; top:301px; width:42px; height:19px; ">
  1176. <caption>저장</caption>
  1177. <script type="javascript" ev:event="DOMActivate">
  1178. <![CDATA[
  1179. var cur_row = grd_quar.rows - grd_quar.fixedRows;
  1180. if( cur_row > 0 ){
  1181. if(messageBox("보증인내역을 저장 하시겠습니까?", "Q999") != 6) return;
  1182. model.setValue("/root/send/updatedata/datalist",grd_quar.getUpdateData());
  1183. if ( submit("TXPAS00710") ) {
  1184. grd_quar.clearStatus();
  1185. var row = grd_uncolist.row;
  1186. model.setValue("/root/send/pid" , model.getValue("/root/list/unco/uncolist[" + row + "]/pid"));
  1187. model.setValue("/root/send/orddd" , model.getValue("/root/list/unco/uncolist[" + row + "]/orddd"));
  1188. model.setValue("/root/send/rcptno" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptno"));
  1189. model.setValue("/root/send/rcptdd" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptdd"));
  1190. submit("TRPAS00710");
  1191. }
  1192. model.removeNodeset("/root/send/updatedata/datalist");
  1193. model.makeNode("/root/send/updatedata/datalist");
  1194. model.refresh();
  1195. }else{
  1196. return false;
  1197. }
  1198. return true;
  1199. ]]>
  1200. </script>
  1201. </button>
  1202. <button id="button15" class="btn2_letter3" style="left:1051px; top:530px; width:53px; height:19px; ">
  1203. <caption>행추가</caption>
  1204. <script type="javascript" ev:event="DOMActivate">
  1205. <![CDATA[
  1206. if(model.getValue("/root/send/pid") == "" || model.getValue("/root/send/orddd") == ""){
  1207. messageBox("미수내역을","C002");
  1208. return;
  1209. }
  1210. // 2011.12.15 L.E.J 첫 행에 행추가
  1211. // grd_ordpaydemand.addItem();
  1212. // var cur_row = grd_ordpaydemand.row;
  1213. grd_ordpaydemand.insertitem(0,"after");
  1214. var cur_row = grd_ordpaydemand.row;
  1215. var row = grd_uncolist.row;
  1216. //var bottom = grd_quar.rows - grd_quar.fixedRows -1;
  1217. model.setValue("/root/list/detail/ordpaydemand[" + cur_row + "]/pid" , model.getValue("/root/list/unco/uncolist[" + row + "]/pid"));
  1218. model.setValue("/root/list/detail/ordpaydemand[" + cur_row + "]/rcptdd" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptdd"));
  1219. model.setValue("/root/list/detail/ordpaydemand[" + cur_row + "]/rcptno" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptno"));
  1220. model.setValue("/root/list/detail/ordpaydemand[" + cur_row + "]/orddd" , model.getValue("/root/list/unco/uncolist[" + row + "]/orddd"));
  1221. model.setValue("/root/list/detail/ordpaydemand[" + cur_row + "]/cretno" , model.getValue("/root/list/unco/uncolist[" + row + "]/cretno"));
  1222. model.setValue("/root/list/detail/ordpaydemand[" + cur_row + "]/seqno" , model.getValue("/root/list/unco/uncolist[" + row + "]/seqno"));
  1223. model.setValue("/root/list/detail/ordpaydemand[" + cur_row + "]/issdt" , getCurrentDate() + getCurrentTime());
  1224. model.setValue("/root/list/detail/ordpaydemand[" + cur_row + "]/endyn" , "N");
  1225. model.refresh();
  1226. ]]>
  1227. </script>
  1228. </button>
  1229. <button id="button16" class="btn5_letter2" style="left:1107px; top:530px; width:42px; height:19px; ">
  1230. <caption>삭제</caption>
  1231. <script type="javascript" ev:event="DOMActivate">
  1232. <![CDATA[
  1233. var i = grd_ordpaydemand.row;
  1234. //디비에 입력되지 않은 데이터는 그리드에서만 삭제한다.
  1235. if (grd_ordpaydemand.rowStatus(i) == "1" || grd_ordpaydemand.rowStatus(i) == "3"){
  1236. grd_ordpaydemand.deleteItem( i );
  1237. }else{
  1238. grd_ordpaydemand.addStatus( i, "delete");
  1239. if(messageBox("선택된 행의 독촉내역을", "Q001") != 6) return;
  1240. }
  1241. //삭제할 행의 정보를 send에 넣는다.
  1242. model.resetInstanceNode("/root/send/updatedata");
  1243. model.setValue("root/send/updatedata/datalist", grd_ordpaydemand.getUpdateData("delete"));
  1244. if ( submit("TXPAS00730") ) {
  1245. var row = grd_uncolist.row;
  1246. model.setValue("/root/send/pid" , model.getValue("/root/list/unco/uncolist[" + row + "]/pid"));
  1247. model.setValue("/root/send/orddd" , model.getValue("/root/list/unco/uncolist[" + row + "]/orddd"));
  1248. model.setValue("/root/send/rcptno" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptno"));
  1249. model.setValue("/root/send/rcptdd" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptdd"));
  1250. submit("TRPAS00710");
  1251. }
  1252. model.removeNodeset("/root/send/updatedata/datalist");
  1253. model.makeNode("/root/send/updatedata/datalist");
  1254. model.refresh();
  1255. ]]>
  1256. </script>
  1257. </button>
  1258. <button id="button17" class="btn5_letter2" style="left:1152px; top:530px; width:42px; height:19px; ">
  1259. <caption>저장</caption>
  1260. <script type="javascript" ev:event="DOMActivate">
  1261. <![CDATA[
  1262. var cur_row = grd_ordpaydemand.rows - grd_ordpaydemand.fixedRows;
  1263. if( cur_row > 0 ){
  1264. if(messageBox("해당 독촉내역을 출력 하시겠습니까?", "Q999") == 6) {
  1265. model.setValue("/root/send/updatedata/datalist",grd_ordpaydemand.getUpdateData());
  1266. model.setValue("/root/list/detail/ordpaydemand[" + cur_row + "]/isscnt" , 1);
  1267. if ( submit("TXPAS00730", "TRUE") ) {
  1268. fPrintordpaydemand();
  1269. grd_ordpaydemand.clearStatus();
  1270. var row = grd_uncolist.row;
  1271. model.setValue("/root/send/pid" , model.getValue("/root/list/unco/uncolist[" + row + "]/pid"));
  1272. model.setValue("/root/send/orddd" , model.getValue("/root/list/unco/uncolist[" + row + "]/orddd"));
  1273. model.setValue("/root/send/rcptno" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptno"));
  1274. model.setValue("/root/send/rcptdd" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptdd"));
  1275. submit("TRPAS00710");
  1276. }
  1277. }else {
  1278. model.setValue("/root/send/updatedata/datalist",grd_ordpaydemand.getUpdateData());
  1279. model.setValue("/root/list/detail/ordpaydemand[" + cur_row + "]/isscnt" , 0);
  1280. if ( submit("TXPAS00730", "TRUE") ) {
  1281. grd_ordpaydemand.clearStatus();
  1282. var row = grd_uncolist.row;
  1283. model.setValue("/root/send/pid" , model.getValue("/root/list/unco/uncolist[" + row + "]/pid"));
  1284. model.setValue("/root/send/orddd" , model.getValue("/root/list/unco/uncolist[" + row + "]/orddd"));
  1285. model.setValue("/root/send/rcptno" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptno"));
  1286. model.setValue("/root/send/rcptdd" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptdd"));
  1287. submit("TRPAS00710");
  1288. }
  1289. }
  1290. model.removeNodeset("/root/send/updatedata/datalist");
  1291. model.makeNode("/root/send/updatedata/datalist");
  1292. model.refresh();
  1293. }else{
  1294. return false;
  1295. }
  1296. return true;
  1297. ]]>
  1298. </script>
  1299. </button>
  1300. <button id="button2" class="btn2_letter3" style="left:451px; top:530px; width:53px; height:19px; ">
  1301. <caption>행추가</caption>
  1302. <script type="javascript" ev:event="DOMActivate">
  1303. <![CDATA[
  1304. if(model.getValue("/root/send/pid") == "" || model.getValue("/root/send/orddd") == ""){
  1305. messageBox("미수내역을","C002");
  1306. return;
  1307. }
  1308. grd_acptlist.addItem();
  1309. var cur_row = grd_acptlist.rows - 1;
  1310. var row = grd_uncolist.row;
  1311. //var bottom = grd_quar.rows - grd_quar.fixedRows -1;
  1312. model.setValue("/root/list/detail/acptlist[" + cur_row + "]/pid" , model.getValue("/root/list/unco/uncolist[" + row + "]/pid"));
  1313. model.setValue("/root/list/detail/acptlist[" + cur_row + "]/rcptdd" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptdd"));
  1314. model.setValue("/root/list/detail/acptlist[" + cur_row + "]/rcptno" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptno"));
  1315. model.setValue("/root/list/detail/acptlist[" + cur_row + "]/orddd" , model.getValue("/root/list/unco/uncolist[" + row + "]/orddd"));
  1316. model.setValue("/root/list/detail/acptlist[" + cur_row + "]/cretno" , model.getValue("/root/list/unco/uncolist[" + row + "]/cretno"));
  1317. model.setValue("/root/list/detail/acptlist[" + cur_row + "]/insukind" , model.getValue("/root/list/unco/uncolist[" + row + "]/insukind"));
  1318. model.setValue("/root/list/detail/acptlist[" + cur_row + "]/suppkind" , model.getValue("/root/list/unco/uncolist[" + row + "]/suppkind"));
  1319. model.setValue("/root/list/detail/acptlist[" + cur_row + "]/uncocd" , model.getValue("/root/list/unco/uncolist[" + row + "]/uncocd"));
  1320. model.setValue("/root/list/detail/acptlist[" + cur_row + "]/uncoamt" , "0");
  1321. model.setValue("/root/list/detail/acptlist[" + cur_row + "]/uncorcptflag" , "1");
  1322. model.setValue("/root/list/detail/acptlist[" + cur_row + "]/cashamt" , "0");
  1323. model.setValue("/root/list/detail/acptlist[" + cur_row + "]/cardamt" , "0");
  1324. model.setValue("/root/list/detail/acptlist[" + cur_row + "]/onlineamt" , "0");
  1325. model.setValue("/root/list/detail/acptlist[" + cur_row + "]/intramt" , model.getValue("/root/temp/printinfo/uncoamt"));
  1326. model.setValue("/root/list/detail/acptlist[" + cur_row + "]/ordtype" , model.getValue("/root/list/unco/uncolist[" + row + "]/ordtype"));
  1327. model.setValue("/root/list/detail/acptlist[" + cur_row + "]/debtamt" , "0");
  1328. model.setValue("/root/list/detail/acptlist[" + cur_row + "]/rcptstat" , "Y");
  1329. model.setValue("/root/list/detail/acptlist[" + cur_row + "]/uncoflag" , "10");
  1330. model.refresh();
  1331. ]]>
  1332. </script>
  1333. </button>
  1334. <button id="button6" class="btn5_letter2" style="left:507px; top:530px; width:42px; height:19px; ">
  1335. <caption>삭제</caption>
  1336. <script type="javascript" ev:event="DOMActivate">
  1337. <![CDATA[
  1338. var i = grd_acptlist.row;
  1339. //디비에 입력되지 않은 데이터는 그리드에서만 삭제한다.
  1340. if (grd_acptlist.rowStatus(i) == "1" || grd_acptlist.rowStatus(i) == "3"){
  1341. grd_acptlist.deleteItem( i );
  1342. }else{
  1343. grd_acptlist.addStatus( i, "delete");
  1344. if(messageBox("선택된 행의 수납내역을", "Q001") != 6) return;
  1345. }
  1346. //삭제할 행의 정보를 send에 넣는다.
  1347. model.resetInstanceNode("/root/send/updatedata");
  1348. model.setValue("root/send/updatedata/datalist", grd_acptlist.getUpdateData("delete"));
  1349. if ( submit("TXPAS00720") ) {
  1350. var row = grd_uncolist.row;
  1351. model.setValue("/root/send/pid" , model.getValue("/root/list/unco/uncolist[" + row + "]/pid"));
  1352. model.setValue("/root/send/orddd" , model.getValue("/root/list/unco/uncolist[" + row + "]/orddd"));
  1353. model.setValue("/root/send/rcptno" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptno"));
  1354. model.setValue("/root/send/rcptdd" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptdd"));
  1355. submit("TRPAS00710");
  1356. }
  1357. model.removeNodeset("/root/send/updatedata/datalist");
  1358. model.makeNode("/root/send/updatedata/datalist");
  1359. model.refresh();
  1360. ]]>
  1361. </script>
  1362. </button>
  1363. <button id="button7" class="btn5_letter2" style="left:552px; top:530px; width:42px; height:19px; ">
  1364. <caption>저장</caption>
  1365. <script type="javascript" ev:event="DOMActivate">
  1366. <![CDATA[
  1367. // 수납자 마감여부 체크하여 처리
  1368. if (isMagmAprv()) {
  1369. return false; // 마감결제 완료되어있으므로 더이상 진행하지 않음
  1370. }
  1371. var cur_row = grd_acptlist.rows - grd_acptlist.fixedRows;
  1372. if( cur_row > 0 ){
  1373. if(messageBox("수납내역을 저장 하시겠습니까?", "Q999") != 6) return;
  1374. model.setValue("/root/send/updatedata/datalist",grd_acptlist.getUpdateData());
  1375. if ( submit("TXPAS00720") ) {
  1376. grd_acptlist.clearStatus();
  1377. var row = grd_uncolist.row;
  1378. model.setValue("/root/send/pid" , model.getValue("/root/list/unco/uncolist[" + row + "]/pid"));
  1379. model.setValue("/root/send/orddd" , model.getValue("/root/list/unco/uncolist[" + row + "]/orddd"));
  1380. model.setValue("/root/send/rcptno" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptno"));
  1381. model.setValue("/root/send/rcptdd" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptdd"));
  1382. submit("TRPAS00710");
  1383. }
  1384. model.removeNodeset("/root/send/updatedata/datalist");
  1385. model.makeNode("/root/send/updatedata/datalist");
  1386. model.refresh();
  1387. }else{
  1388. return false;
  1389. }
  1390. return true;
  1391. ]]>
  1392. </script>
  1393. </button>
  1394. <datagrid id="grd_lawsulist" nodeset="/root/list/detail/lawsulist" caption="^정산구분^미수구분^수납시간^소송비용^수납금액^대손금액^비고^intrrate^pid^rcptdd^rcptno^seqno^orddd^cretno^insukind^suppkind^rcptstat^uncorem^ordtype^uncoamt^uncocd^cashamt^cardamt^onlineamt" colsep="^" colwidth="20, 55, 80, 100, 80, 80, 80, 218, 48, 60, 41, 45, 39, 46, 40, 55, 39, 49, 44, 42, 41, 46, 41, 37, 39" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:605px; top:325px; width:590px; height:200px; text-align:center; ">
  1395. <col checkvalue="Y,N" ref="check" type="checkbox" visibility="hidden"/>
  1396. <col disabled="true" ref="uncorcptflag" type="combo">
  1397. <choices>
  1398. <item>
  1399. <label>발생</label>
  1400. <value>1</value>
  1401. </item>
  1402. <item>
  1403. <label>입금</label>
  1404. <value>2</value>
  1405. </item>
  1406. <item>
  1407. <label>대손</label>
  1408. <value>3</value>
  1409. </item>
  1410. </choices>
  1411. </col>
  1412. <col disabled="true" ref="uncoflag" type="combo">
  1413. <choices>
  1414. <item>
  1415. <label>소송</label>
  1416. <value>20</value>
  1417. </item>
  1418. <item>
  1419. <label>가압류</label>
  1420. <value>30</value>
  1421. </item>
  1422. <item>
  1423. <label>강제집행</label>
  1424. <value>40</value>
  1425. </item>
  1426. <item>
  1427. <label>재산관계명시</label>
  1428. <value>50</value>
  1429. </item>
  1430. <item>
  1431. <label>기타</label>
  1432. <value>60</value>
  1433. </item>
  1434. </choices>
  1435. </col>
  1436. <col ref="rcpttm" visibility="hidden"/>
  1437. <col disabled="true" ref="uncoamt" type="input" format="(-)#,###" style="text-align:right; "/>
  1438. <col disabled="true" ref="rcptamt" type="input" format="(-)#,###" style="text-align:right; "/>
  1439. <col disabled="true" ref="debtamt" type="input" format="(-)#,###" style="text-align:right; "/>
  1440. <col ref="remfact" type="input"/>
  1441. <col ref="intrrate" visibility="hidden"/>
  1442. <col ref="pid" visibility="hidden"/>
  1443. <col ref="rcptdd" visibility="hidden"/>
  1444. <col ref="rcptno" visibility="hidden"/>
  1445. <col ref="seqno" visibility="hidden"/>
  1446. <col ref="orddd" visibility="hidden"/>
  1447. <col ref="cretno" visibility="hidden"/>
  1448. <col ref="insukind" visibility="hidden"/>
  1449. <col ref="suppkind" visibility="hidden"/>
  1450. <col ref="rcptstat" visibility="hidden"/>
  1451. <col ref="uncorem" visibility="hidden"/>
  1452. <col ref="ordtype" visibility="hidden"/>
  1453. <col ref="uncoamt" visibility="hidden"/>
  1454. <col ref="uncocd" visibility="hidden"/>
  1455. <col ref="cashamt" visibility="hidden"/>
  1456. <col ref="cardamt" visibility="hidden"/>
  1457. <col ref="onlineamt" visibility="hidden"/>
  1458. <script type="javascript" ev:event="xforms-value-changed">
  1459. <![CDATA[
  1460. var row = grd_uncolist.row;
  1461. var cur_row = grd_lawsulist.row;
  1462. var uncorcptflag = model.getValue("/root/list/detail/lawsulist[" + cur_row + "]/uncorcptflag");
  1463. var rcptamt = model.getValue("/root/list/detail/lawsulist[" + cur_row + "]/rcptamt");
  1464. if(uncorcptflag == "1") {
  1465. //model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/uncoamt" , model.getValue("/root/list/unco/uncolist[" + row + "]/uncoamt"));
  1466. model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/cashamt" , "0");
  1467. model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/debtamt" , "0");
  1468. }else if(uncorcptflag == "2") {
  1469. model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/uncoamt" , "0");
  1470. //model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/cashamt" , model.getValue("/root/list/unco/uncolist[" + row + "]/uncoamt"));
  1471. model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/debtamt" , "0");
  1472. if ( rcptamt != 0 || rcptamt != "" ) {
  1473. model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/cashamt" , rcptamt);
  1474. }
  1475. }else if(uncorcptflag == "3") {
  1476. model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/uncoamt" , "0");
  1477. model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/cashamt" , "0");
  1478. //model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/debtamt" , model.getValue("/root/list/unco/uncolist[" + row + "]/uncoamt"));
  1479. }
  1480. model.refresh();
  1481. ]]>
  1482. </script>
  1483. </datagrid>
  1484. <button id="button8" class="btn2_letter3" style="left:1052px; top:300px; width:53px; height:19px; ">
  1485. <caption>행추가</caption>
  1486. <script type="javascript" ev:event="DOMActivate">
  1487. <![CDATA[
  1488. if(model.getValue("/root/send/pid") == "" || model.getValue("/root/send/orddd") == ""){
  1489. messageBox("미수내역을","C002");
  1490. return;
  1491. }
  1492. grd_lawsulist.addItem();
  1493. var cur_row = grd_lawsulist.rows - 1;
  1494. var row = grd_uncolist.row;
  1495. //var bottom = grd_quar.rows - grd_quar.fixedRows -1;
  1496. model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/pid" , model.getValue("/root/list/unco/uncolist[" + row + "]/pid"));
  1497. model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/rcptdd" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptdd"));
  1498. model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/rcptno" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptno"));
  1499. model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/orddd" , model.getValue("/root/list/unco/uncolist[" + row + "]/orddd"));
  1500. model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/cretno" , model.getValue("/root/list/unco/uncolist[" + row + "]/cretno"));
  1501. model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/insukind" , model.getValue("/root/list/unco/uncolist[" + row + "]/insukind"));
  1502. model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/suppkind" , model.getValue("/root/list/unco/uncolist[" + row + "]/suppkind"));
  1503. //model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/cashamt" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptamt"));
  1504. model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/cashamt" , "0");
  1505. model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/cardamt" , "0");
  1506. model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/onlineamt" , "0");
  1507. model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/uncorem" , model.getValue("/root/list/unco/uncolist[" + row + "]/uncorem"));
  1508. model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/ordtype" , model.getValue("/root/list/unco/uncolist[" + row + "]/ordtype"));
  1509. model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/uncoamt" , model.getValue("/root/temp/printinfo/uncoamt"));
  1510. model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/debtamt" , model.getValue("/root/list/unco/uncolist[" + row + "]/debtamt"));
  1511. model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/uncocd" , model.getValue("/root/list/unco/uncolist[" + row + "]/uncocd"));
  1512. model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/uncorcptflag" , "1");
  1513. model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/intrrate" , "0");
  1514. model.setValue("/root/list/detail/lawsulist[" + cur_row + "]/rcptstat" , "Y");
  1515. model.refresh();
  1516. ]]>
  1517. </script>
  1518. </button>
  1519. <button id="button9" class="btn5_letter2" style="left:1108px; top:300px; width:42px; height:19px; ">
  1520. <caption>삭제</caption>
  1521. <script type="javascript" ev:event="DOMActivate">
  1522. <![CDATA[
  1523. var i = grd_lawsulist.row;
  1524. //디비에 입력되지 않은 데이터는 그리드에서만 삭제한다.
  1525. if (grd_lawsulist.rowStatus(i) == "1" || grd_lawsulist.rowStatus(i) == "3"){
  1526. grd_lawsulist.deleteItem( i );
  1527. }else{
  1528. grd_lawsulist.addStatus( i, "delete");
  1529. if(messageBox("선택된 행의 소송내역을", "Q001") != 6) return;
  1530. }
  1531. //삭제할 행의 정보를 send에 넣는다.
  1532. model.resetInstanceNode("/root/send/updatedata");
  1533. model.setValue("root/send/updatedata/datalist", grd_lawsulist.getUpdateData("delete"));
  1534. if ( submit("TXPAS00720") ) {
  1535. var row = grd_uncolist.row;
  1536. model.setValue("/root/send/pid" , model.getValue("/root/list/unco/uncolist[" + row + "]/pid"));
  1537. model.setValue("/root/send/orddd" , model.getValue("/root/list/unco/uncolist[" + row + "]/orddd"));
  1538. model.setValue("/root/send/rcptno" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptno"));
  1539. model.setValue("/root/send/rcptdd" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptdd"));
  1540. submit("TRPAS00710");
  1541. }
  1542. model.removeNodeset("/root/send/updatedata/datalist");
  1543. model.makeNode("/root/send/updatedata/datalist");
  1544. model.refresh();
  1545. ]]>
  1546. </script>
  1547. </button>
  1548. <button id="button10" class="btn5_letter2" style="left:1153px; top:300px; width:42px; height:19px; ">
  1549. <caption>저장</caption>
  1550. <script type="javascript" ev:event="DOMActivate">
  1551. <![CDATA[
  1552. // 수납자 마감여부 체크하여 처리
  1553. if (isMagmAprv()) {
  1554. return false; // 마감결제 완료되어있으므로 더이상 진행하지 않음
  1555. }
  1556. var cur_row = grd_lawsulist.rows - grd_lawsulist.fixedRows;
  1557. if( cur_row > 0 ){
  1558. if(messageBox("소송내역을 저장 하시겠습니까?", "Q999") != 6) return;
  1559. model.setValue("/root/send/updatedata/datalist",grd_lawsulist.getUpdateData());
  1560. if ( submit("TXPAS00720") ) {
  1561. grd_lawsulist.clearStatus();
  1562. var row = grd_uncolist.row;
  1563. model.setValue("/root/send/pid" , model.getValue("/root/list/unco/uncolist[" + row + "]/pid"));
  1564. model.setValue("/root/send/orddd" , model.getValue("/root/list/unco/uncolist[" + row + "]/orddd"));
  1565. model.setValue("/root/send/rcptno" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptno"));
  1566. model.setValue("/root/send/rcptdd" , model.getValue("/root/list/unco/uncolist[" + row + "]/rcptdd"));
  1567. submit("TRPAS00710");
  1568. }
  1569. model.removeNodeset("/root/send/updatedata/datalist");
  1570. model.makeNode("/root/send/updatedata/datalist");
  1571. model.refresh();
  1572. }else{
  1573. return false;
  1574. }
  1575. return true;
  1576. ]]>
  1577. </script>
  1578. </button>
  1579. <button id="button11" class="btn3_letter6" style="left:5px; top:757px; width:80px; height:22px; ">
  1580. <caption>미수입금내역</caption>
  1581. <script type="javascript" ev:event="DOMActivate">
  1582. <![CDATA[
  1583. modal("SPPAS00710", "1","", "", "SPPAS00710", "", "");
  1584. ]]>
  1585. </script>
  1586. </button>
  1587. <button id="button12" class="btn3_letter7" style="left:113px; top:757px; width:108px; height:22px; ">
  1588. <caption>기간별미수조회</caption>
  1589. <script type="javascript" ev:event="DOMActivate">
  1590. <![CDATA[
  1591. modal("SPPAS00722", "1","", "", "SPPAS00722", "", "");
  1592. var pid = getParameter("SMPAS00700_PID");
  1593. model.setValue("/root/source/pid" , pid);
  1594. ipt_pid.refresh();
  1595. ]]>
  1596. </script>
  1597. </button>
  1598. <button id="button13" class="btn3_letter7" visibility="hidden" style="left:655px; top:758px; width:116px; height:22px; ">
  1599. <caption>년도별미수조회</caption>
  1600. <script type="javascript" ev:event="DOMActivate">
  1601. <![CDATA[
  1602. modal("SPPAS00730", "1","", "", "SPPAS00730", "", "");
  1603. ]]>
  1604. </script>
  1605. </button>
  1606. <button id="button14" class="btn3_letter6" visibility="hidden" style="left:545px; top:758px; width:104px; height:22px; ">
  1607. <caption>승인미수내역</caption>
  1608. <script type="javascript" ev:event="DOMActivate">
  1609. <![CDATA[
  1610. modal("SPPAS00740", "1","", "", "SPPAS00740", "", "");
  1611. ]]>
  1612. </script>
  1613. </button>
  1614. <button id="button18" class="btn4_letter4" style="left:1030px; top:758px; width:80px; height:22px; ">
  1615. <caption>미수수납</caption>
  1616. <script type="javascript" ev:event="DOMActivate">
  1617. <![CDATA[
  1618. var row = grd_uncolist.row;
  1619. setParameter("SMPAM00100_PID_PARM" , model.getValue("/root/list/unco/uncolist[" + row + "]/pid"));
  1620. modal("SMPAS00800", "1","", "", "SMPAS00800", "", "");
  1621. ]]>
  1622. </script>
  1623. </button>
  1624. <datagrid id="datagrid1" nodeset="/root/temp/printinfo" visibility="hidden" caption="pid^hngnm^addr^detladdr^uncoamt^intramt^grntornm^grntorzipcdaddr^grntordetladdr^uncorem^totamt^totamtkor^yyyy^mm^dd" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 53, 30, 25" mergecellsfixedrows="bycolrec" rowsep="|" style="left:815px; top:245px; width:380px; height:50px; ">
  1625. <col ref="pid"/>
  1626. <col ref="hngnm"/>
  1627. <col ref="addr"/>
  1628. <col ref="detladdr"/>
  1629. <col ref="uncoamt"/>
  1630. <col ref="intramt"/>
  1631. <col ref="grntornm"/>
  1632. <col ref="grntorzipcdaddr"/>
  1633. <col ref="grntordetladdr"/>
  1634. <col ref="uncorem"/>
  1635. <col ref="totamt"/>
  1636. <col ref="totamtkor"/>
  1637. <col ref="yyyy"/>
  1638. <col ref="mm"/>
  1639. <col ref="dd"/>
  1640. </datagrid>
  1641. <datagrid id="datagrid2" nodeset="/root/hidden/urgereport" visibility="hidden" caption="intr^law^intrtodd" colsep="^" colwidth="100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:1015px; top:195px; width:180px; height:50px; ">
  1642. <col ref="law"/>
  1643. <col ref="intr"/>
  1644. <col ref="intrtodd"/>
  1645. </datagrid>
  1646. <button id="button1" class="btn3_letter6" style="left:233px; top:758px; width:104px; height:22px; ">
  1647. <caption>일일미수현황</caption>
  1648. <script type="javascript" ev:event="DOMActivate">
  1649. <![CDATA[
  1650. modal("SPPAS00750", "1","", "", "SPPAS00750", "", "");
  1651. ]]>
  1652. </script>
  1653. </button>
  1654. <button id="btn_clear" class="btn4_letter3" style="left:1125px; top:758px; width:68px; height:22px; ">
  1655. <caption>초기화</caption>
  1656. <script type="javascript" ev:event="DOMActivate">
  1657. <![CDATA[
  1658. fClear();
  1659. ]]>
  1660. </script>
  1661. </button>
  1662. <bool id="checkall" visibility="hidden" checkvalue="Y,N" ref="/root/temp/checkall" style="left:8px; top:90px; width:15px; height:15px; ">
  1663. <script type="javascript" ev:event="xforms-value-changed">
  1664. <![CDATA[
  1665. /*
  1666. 소계만 찍을 수 있게 요청 하면서 앞에 체크기능을 지움
  1667. 하지만 진료일자가 다르면 소계가 2줄 이상 발생하고
  1668. 독촉장을 보낼시 남은 진료비 합산 금액을 보내야함
  1669. 해당 체크를 하면 화면상의 남은 미수잔액이 모두 더해짐
  1670. */
  1671. /* var uncoamt = 0;
  1672. var row = grd_uncolist.row;
  1673. var rows = grd_uncolist.rows;
  1674. if(model.getValue("/root/temp/checkall") == "Y"){
  1675. for(var i = 0; i <= getNodesetCount("/root/list/unco/uncolist/uncorem"); i++){
  1676. if(model.getValue("/root/list/unco/uncolist["+i+"]/suppkindnm") == "소계" ){
  1677. uncoamt += parseInt(model.getValue("/root/list/unco/uncolist["+i+"]/uncorem"));
  1678. }
  1679. }
  1680. }else if(model.getValue("/root/temp/checkall") == "N"){
  1681. uncoamt = 0;
  1682. }
  1683. model.setValue("/root/temp/printinfo/uncoamt" , uncoamt);
  1684. model.refresh();
  1685. */
  1686. ]]>
  1687. </script>
  1688. </bool>
  1689. <button id="button19" class="btn3_letter5" style="left:341px; top:758px; width:92px; height:22px; ">
  1690. <caption>보증인조회</caption>
  1691. <script type="javascript" ev:event="DOMActivate">
  1692. <![CDATA[
  1693. modal("SPPAS00760", "1","", "", "SPPAS00760", "", "");
  1694. ]]>
  1695. </script>
  1696. </button>
  1697. <button id="btn_hngnm" class="btn2_letter2" visibility="hidden" style="left:225px; top:30px; width:42px; height:19px; ">
  1698. <caption>11</caption>
  1699. <script type="javascript" ev:event="DOMActivate">
  1700. <![CDATA[
  1701. submit("TRPAS00700");
  1702. grd_uncolist.rebuildStyle();
  1703. for(var i=0; i <= getNodesetCount("/root/list/unco/uncolist/uncorem"); i++){
  1704. if(model.getValue("/root/list/unco/uncolist["+ i +"]/suppkindnm") == "소계"){
  1705. grd_uncolist.rowStyle(i,"data","background-color") = "#99ff99";
  1706. }
  1707. }
  1708. model.refresh();
  1709. ]]>
  1710. </script>
  1711. </button>
  1712. <button id="button20" class="btn3_letter5" visibility="hidden" style="left:825px; top:760px; width:92px; height:22px; ">
  1713. <caption>미수총괄표</caption>
  1714. <script type="javascript" ev:event="DOMActivate">
  1715. <![CDATA[
  1716. modal("SPPAS00770", "1","", "", "SPPAS00770", "", "");
  1717. ]]>
  1718. </script>
  1719. </button>
  1720. <button id="button21" class="btn4_letter4" style="left:945px; top:758px; width:80px; height:22px; ">
  1721. <caption>미수안내</caption>
  1722. <script type="javascript" ev:event="DOMActivate">
  1723. <![CDATA[
  1724. var row = grd_uncolist.row;
  1725. setParameter("SMPAM00100_PID_PARM" , model.getValue("/root/list/unco/uncolist[" + row + "]/pid"));
  1726. modal("SPPAS00780", "1","", "", "SPPAS00780", "", "");
  1727. ]]>
  1728. </script>
  1729. </button>
  1730. <bool id="bool1" checkvalue="Y,N" ref="/root/temp/printpat" style="left:717px; top:533px; width:20px; height:15px; "/>
  1731. <caption id="caption3" style="left:735px; top:531px; width:313px; height:20px; color:#ff0000; ">※체크시 환자독촉장을 출력하지 않습니다(보증인만출력)</caption>
  1732. <button id="button22" class="btn3_letter5" style="left:433px; top:758px; width:128px; height:22px; ">
  1733. <caption>미수총괄표</caption>
  1734. <script type="javascript" ev:event="DOMActivate">
  1735. <![CDATA[
  1736. modal("SPPAS00772", "1","", "", "SPPAS00772", "", "");
  1737. ]]>
  1738. </script>
  1739. </button>
  1740. </xhtml:body>
  1741. </xhtml:html>