SMPMC00300_수진내역환자관리(백업).xrw 137 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMPMC00300_수진내역환자관리.xrw
  4. * 설 명 : 수진내역관리
  5. * 설 계 자 : 김상민
  6. * 작 성 자 : 김상민
  7. * 작 성 일 : 2009.05.25
  8. * 수정이력 :
  9. -->
  10. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  11. <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">
  12. <script type="javascript">
  13. <![CDATA[
  14. // 초기화
  15. function fInitialize(gubn)
  16. {
  17. model.resetInstanceNode("/root/send/data1");
  18. model.resetInstanceNode("/root/main/ptbs");
  19. model.resetInstanceNode("/root/main/ptpm");
  20. model.removeNodeset("/root/main/list1");
  21. model.makeNode("/root/main/list1");
  22. model.removeNodeset("/root/main/list2");
  23. model.makeNode("/root/main/list2");
  24. // 조회 구분 초기화
  25. fSrchCondChng("0");
  26. if (gubn == "all") {
  27. model.removeNodeset("/root/main/ptpmlist");
  28. model.makeNode("/root/main/ptpmlist");
  29. }
  30. model.resetInstanceNode("/root/send/data3");
  31. //model.makeNode("/root/send/data3");
  32. model.setValue("/root/hidden/currentDate", getCurrentDate());
  33. model.setValue("/root/send/data6/srchcond1","0");
  34. button6.visible = true;
  35. button7.visible = false;
  36. model.refresh();
  37. }
  38. // 환자 인정 사항 조회
  39. function fBaseInfoRef()
  40. {
  41. model.removeNodeset("/root/send/data5/ofidocacptdd");
  42. model.removeNodeset("/root/send/data5/ofidocretno");
  43. model.removeNodeset("/root/send/data3/ofidocretno");
  44. model.removeNodeset("/root/main/ptpm/ofidocretno");
  45. model.makeNode("/root/send/data5/ofidocacptdd");
  46. model.makeNode("/root/send/data5/ofidocretno");
  47. model.makeNode("/root/send/data3/ofidocretno");
  48. model.makeNode("/root/main/ptpm/ofidocretno");
  49. if ( model.getValue("/root/main/popupendflag") == "ok" ) {
  50. model.setValue("/root/send/data5/pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
  51. } else if ( model.getValue("/root/main/popupendflag") == "pass" ) {
  52. model.setValue("/root/send/data5/pid",model.getValue("/root/main/ptbs/ptbs_pid"));
  53. } else {
  54. model.resetInstanceNode("/root/main/patinfo/patinfolist");
  55. model.resetInstanceNode("/root/main/ptbs");
  56. model.resetInstanceNode("/root/main/ojpm");
  57. model.refresh();
  58. return false;
  59. }
  60. // 환자 인적 사항, 민원 사항 조회
  61. if(submit("TRPMC03001")){
  62. model.resetInstanceNode("/root/main/ptpm");
  63. model.resetInstanceNode("/root/main/ptbs");
  64. model.removeNodeset("/root/main/list1");
  65. model.makeNode("/root/main/list1");
  66. if( getNodesetCount("/root/hidden/rcv/ptbs/ptbs_pid") > 0 ) {
  67. copyNodeType("/root/main/ptbs","/root/hidden/rcv/ptbs","replace");
  68. }
  69. //model.copyNodet
  70. var ptpmcnt = getNodesetCount("/root/hidden/rcv/ptpm/pid");
  71. // 민원 사항이 없을 경우
  72. if( ptpmcnt == 0 ){
  73. // 내원 기록 조회
  74. /*model.setValue("/root/send/data3/pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
  75. model.setValue("/root/send/data3/flag","A");
  76. fGetChosRecRef();*/
  77. model.setValue("/root/send/data3/pid", model.getValue("/root/main/ptbs/ptbs_pid"));
  78. model.setValue("/root/send/data3/ofidocacptdd", model.getValue("/root/main/ptpm/ofidocacptdd"));
  79. model.setValue("/root/send/data3/ofidocretno", model.getValue("/root/main/ptpm/ofidocretno"));
  80. model.setValue("/root/send/data3/flag","A");
  81. // 수진 내원 내역 조회
  82. //fGetChosRecRef();
  83. // 민원 사항이 1건만 있을 경우
  84. }else if( ptpmcnt == 1 ){
  85. var rtn = messageBox("새로운 수진내역을 입력하실 경우 예(YES) 등록된 수진내역을 조회하실 경우 아니오(NO)를 선택해 주십시요!", "Q999");
  86. if (rtn == 7 ) {
  87. copyNodeType("/root/main/ptpm","/root/hidden/rcv/ptpm","replace");
  88. // 내원 기록 조회
  89. model.setValue("/root/send/data3/pid", model.getValue("/root/main/ptpm/pid"));
  90. model.setValue("/root/send/data3/ofidocacptdd", model.getValue("/root/main/ptpm/ofidocacptdd"));
  91. model.setValue("/root/send/data3/ofidocretno", model.getValue("/root/main/ptpm/ofidocretno"));
  92. model.setValue("/root/send/data3/flag","P");
  93. //model.alert(model.getValue("/root/send/data3/ofidocdocuno"));
  94. fGetChosRecRef();
  95. }else{
  96. model.removeNodeset("/root/main/list1");
  97. model.makeNode("/root/main/list1");
  98. model.removeNodeset("/root/main/list2");
  99. model.makeNode("/root/main/list2");
  100. model.setValue("/root/hidden/rcv/ptpm/ofidocretno", '');
  101. //새로입력시 전체조회할때 값을 구분하기위해 구분값 처리
  102. model.setValue("/root/temp/flag", "f");
  103. }
  104. // 민원 사항이 1건이상일 경우
  105. }else if( ptpmcnt > 1 ){
  106. // 수진 내역에 등록된 환자 조회
  107. fGetPtpmInfoRef();
  108. }
  109. }
  110. //인사정보의 직원, 직원가족정보 조회
  111. var rrgstno1 = model.getValue("/root/main/ptbs/ptbs_rrgstno1");
  112. var rrgstno2 = model.getValue("/root/main/ptbs/ptbs_rrgstno2");
  113. if( rrgstno1.length == 6 && rrgstno2.length == 7 ){
  114. var retValue = fGetPsnWorkInfo(rrgstno1 + rrgstno2);
  115. /*
  116. //선택한 직원정보 세팅
  117. if( retValue != '' && retValue != ' ' ){
  118. var arr_retValue = retValue.split("▦");
  119. model.setValue("/root/main/otpt/otpt_emplno", arr_retValue[0]);
  120. model.setValue("/root/main/otpt/otpt_emplnm", arr_retValue[1]);
  121. // model.refresh();
  122. }
  123. */
  124. }
  125. //민원환자관리 등록여부 체크
  126. submit("TRPMC03006");
  127. fCheckCampYn();
  128. model.refresh();
  129. }
  130. // 수진 내역에 등록된 환자 팝업 조회
  131. function fGetPtpmInfoRef()
  132. {
  133. var ptbs_pid = model.getValue("/root/main/ptbs/ptbs_pid");
  134. if (!ptbs_pid == null || !ptbs_pid ==" " || !ptbs_pid == "") {
  135. model.setValue("/root/send/data6/srchcond1","1");
  136. model.setValue("/root/send/data6/srchcond2",ptbs_pid);
  137. modal("../../../pam/patinfomngtweb/xrw/SMPMC00310", "1","150", "150", "SPPMC02500", "/root/send/data6", "/root/send/data1");
  138. }
  139. model.setValue("/root/send/data6/srchcond1","");
  140. model.setValue("/root/send/data6/srchcond2","");
  141. if ( model.getValue("/root/main/popupendflag") == "ok" ) {
  142. model.setValue("/root/send/data3/flag","P");
  143. // 환자 인정 사항, 민원 사항, 내원 기록 조회
  144. fGetPtpmPatInfo();
  145. //fGetChosRecRef();
  146. } else {
  147. //model.alert("aa");
  148. return false;
  149. }
  150. }
  151. // 환자 인정 사항, 민원 사항, 내원 기록 조회
  152. function fGetPtpmPatInfo()
  153. {
  154. if(submit("TRPMC03004")){
  155. model.resetInstanceNode("/root/main/ptbs");
  156. model.resetInstanceNode("/root/main/ptpm");
  157. model.removeNodeset("/root/main/list1");
  158. model.makeNode("/root/main/list1");
  159. model.removeNodeset("/root/main/list2");
  160. model.makeNode("/root/main/list2");
  161. // 인적 사항 조회
  162. var ptbscnt = getNodesetCount("/root/hidden/rcv/ptbs");
  163. if (ptbscnt > 0) {
  164. copyNodeType("/root/main/ptbs","/root/hidden/rcv/ptbs","replace");
  165. }
  166. // 민원 사항 조회
  167. if( getNodesetCount("/root/hidden/rcv/ptpm/pid") > 0 ){
  168. copyNodeType("/root/main/ptpm","/root/hidden/rcv/ptpm","replace");
  169. }
  170. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  171. // 내원 기록 조회
  172. if( getNodesetCount("/root/hidden/rcv/list1/chosreclist") > 0 ){
  173. copyNodeType("/root/main/list1","/root/hidden/rcv/list1","replace");
  174. }
  175. //청구기록 조회
  176. if( getNodesetCount("/root/hidden/rcv/list2/clamlist") > 0 ){
  177. copyNodeType("/root/main/list2","/root/hidden/rcv/list2","replace");
  178. }
  179. var chosreclistcnt = getNodesetCount("/root/hidden/rcv/list1/chosreclist");
  180. chosreclistcnt = parseInt(chosreclistcnt)+1;
  181. model.setValue("/root/temp/chosreclistcnt", chosreclistcnt);
  182. var clamlistcnt = getNodesetCount("/root/hidden/rcv/list2/clamlist");
  183. clamlistcnt = parseInt(clamlistcnt)+1;
  184. model.setValue("/root/temp/clamlistcnt", clamlistcnt);
  185. }
  186. /*
  187. if( getNodesetCount("/root/hidden/rcv/list1/chosreclist") <= 0 ){
  188. //수진 내역이 2이상이면서 수진내원내력이 없을경우 전체조회를 한다
  189. model.setValue("/root/send/data3/flag","A");
  190. if(submit("TRPMC03002")){
  191. model.removeNodeset("/root/main/list1");
  192. model.makeNode("/root/main/list1");
  193. if( getNodesetCount("/root/hidden/rcv/list1/chosreclist") > 0 ){
  194. copyNodeType("/root/main/list1","/root/hidden/rcv/list1","replace");
  195. }
  196. }
  197. }
  198. */
  199. model.toggle("case2");
  200. model.refresh();
  201. }
  202. /* */
  203. // 내원 기록 조회
  204. function fGetChosRecRef()
  205. {
  206. if(submit("TRPMC03002")){
  207. var chosreclistcnt = getNodesetCount("/root/hidden/rcv/list1/chosreclist");
  208. chosreclistcnt = parseInt(chosreclistcnt)+1;
  209. model.setValue("/root/temp/chosreclistcnt", chosreclistcnt);
  210. var clamlistcnt = getNodesetCount("/root/hidden/rcv/list2/clamlist");
  211. clamlistcnt = parseInt(clamlistcnt)+1;
  212. model.setValue("/root/temp/clamlistcnt", clamlistcnt);
  213. /*
  214. model.alert(model.getValue("/root/temp/chosreclistcnt"));
  215. model.alert(model.getValue("/root/temp/clamlistcnt"));
  216. */
  217. if( getNodesetCount("/root/hidden/rcv/list1/chosreclist") > 0 ){
  218. copyNodeType("/root/main/list1","/root/hidden/rcv/list1","replace");
  219. }
  220. if( getNodesetCount("/root/hidden/rcv/list2/clamlist") > 0 ){
  221. copyNodeType("/root/main/list2","/root/hidden/rcv/list2","replace");
  222. }
  223. }
  224. }
  225. // 저장 후 환자 인적 사항 조회
  226. function AfSafeBaseInfoRef()
  227. {
  228. model.removeNodeset("/root/send/data5/pid");
  229. model.removeNodeset("/root/send/data5/ofidocacptdd");
  230. model.removeNodeset("/root/send/data5/ofidocretno");
  231. model.makeNode("/root/send/data5/pid");
  232. model.makeNode("/root/send/data5/ofidocacptdd");
  233. model.makeNode("/root/send/data5/ofidocretno");
  234. if ( model.getValue("/root/main/popupendflag") == "ok" ) {
  235. model.setValue("/root/send/data5/pid",model.getValue("/root/main/ptbs/ptbs_pid"));
  236. model.setValue("/root/send/data5/ofidocacptdd",model.getValue("/root/main/ptpm/ofidocacptdd"));
  237. model.setValue("/root/send/data5/ofidocretno",model.getValue("/root/main/ptpm/ofidocretno"));
  238. } else if ( model.getValue("/root/main/popupendflag") == "pass" ) {
  239. model.setValue("/root/send/data5/pid",model.getValue("/root/main/ptbs/ptbs_pid"));
  240. model.setValue("/root/send/data5/ofidocacptdd",model.getValue("/root/main/ptpm/ofidocacptdd"));
  241. model.setValue("/root/send/data5/ofidocretno",model.getValue("/root/main/ptpm/ofidocretno"));
  242. } else {
  243. model.resetInstanceNode("/root/main/patinfo/patinfolist");
  244. model.resetInstanceNode("/root/main/ptbs");
  245. model.resetInstanceNode("/root/main/ojpm");
  246. model.refresh();
  247. return false;
  248. }
  249. if(submit("TRPMC03001")){
  250. model.resetInstanceNode("/root/main/ptpm");
  251. model.resetInstanceNode("/root/main/ptbs");
  252. model.removeNodeset("/root/main/list1");
  253. model.makeNode("/root/main/list1");
  254. if( getNodesetCount("/root/hidden/rcv/ptbs/ptbs_pid") > 0 ) {
  255. copyNodeType("/root/main/ptbs","/root/hidden/rcv/ptbs","replace");
  256. }
  257. //model.copyNodet
  258. var ptpmcnt = getNodesetCount("/root/hidden/rcv/ptpm/pid");
  259. copyNodeType("/root/main/ptpm","/root/hidden/rcv/ptpm","replace");
  260. // 내원 기록 조회
  261. model.setValue("/root/send/data3/pid", model.getValue("/root/main/ptpm/pid"));
  262. model.setValue("/root/send/data3/ofidocacptdd", model.getValue("/root/main/ptpm/ofidocacptdd"));
  263. model.setValue("/root/send/data3/ofidocretno", model.getValue("/root/main/ptpm/ofidocretno"));
  264. model.setValue("/root/send/data3/flag","P");
  265. //model.alert(model.getValue("/root/send/data3/ofidocdocuno"));
  266. fGetChosRecRef();
  267. model.refresh();
  268. }
  269. }
  270. function fGetColorChangeChoslist(){
  271. grd_chosrec.allStyle("all","background-color") = "#ffffff"; // 배경색을 초기화 한다.
  272. setRowStyle("grd_chosrec", "2","Y","histyn","equal"); //row의 색상을 변경한다.
  273. grd_chosrec.rebuild();
  274. datagrid1.allStyle("all","background-color") = "#ffffff"; // 배경색을 초기화 한다.
  275. setRowStyle("datagrid1", "2","Y","histyn","equal"); //row의 색상을 변경한다.
  276. datagrid1.rebuild();
  277. }
  278. function fCheckCampYn(){
  279. model.setValue("/root/send/data5/pid", model.getValue("/root/main/ptbs/ptbs_pid"));
  280. submit("TRPMC03006");
  281. if(model.getValue("/root/temp/pmchcapm/capmlist") != ""){
  282. var rtn = messageBox("재원중 민원환자입니다. 계속 진행하실 경우 예(YES) 초기화 하실 경우 아니오(NO)를 선택해 주십시요!", "Q999");
  283. if (rtn == 7 ) {
  284. fInitialize("all");
  285. }
  286. }
  287. }
  288. ]]>
  289. </script>
  290. <xhtml:head>
  291. <xhtml:title>수진내역관리</xhtml:title>
  292. <model id="model1">
  293. <instance id="instance1">
  294. <root xmlns="">
  295. <send>
  296. <data1/>
  297. <data2>
  298. <sess_posinstcd>012</sess_posinstcd>
  299. </data2>
  300. <data3>
  301. <pid/>
  302. <ofidocacptdd/>
  303. <ofidocdocuno/>
  304. <flag/>
  305. <ofidocretno/>
  306. </data3>
  307. <data4>
  308. <srchcond/>
  309. <pid/>
  310. <hngnm/>
  311. <rrgstno1/>
  312. <rrgstno2/>
  313. <autoflag/>
  314. </data4>
  315. <data5>
  316. <pid/>
  317. </data5>
  318. <data6>
  319. <srchcond1>0</srchcond1>
  320. <srchcond2/>
  321. <srchcond3/>
  322. </data6>
  323. <update>
  324. <datalist>
  325. </datalist>
  326. </update>
  327. <inhopeddfrom/>
  328. <inhopeddto/>
  329. <sendflag/>
  330. <sess_posinstcd/>
  331. </send>
  332. <main>
  333. <patinfo>
  334. <patinfolist>
  335. <pid/>
  336. </patinfolist>
  337. </patinfo>
  338. <ptbs>
  339. <ptbs_status/>
  340. <ptbs_pid/>
  341. <ptbs_hngnm/>
  342. <ptbs_engnm/>
  343. <ptbs_rrgstno1/>
  344. <ptbs_rrgstno2/>
  345. <ptbs_brthdd/>
  346. <ptbs_sex/>
  347. <ptbs_age/>
  348. <ptbs_hometel/>
  349. <ptbs_mpphontel/>
  350. <ptbs_zipcd1/>
  351. <ptbs_zipcd2/>
  352. <ptbs_zipcdseq/>
  353. <ptbs_zipnm/>
  354. <ptbs_detladdr/>
  355. <ptbs_forgeryn/>
  356. <ptbs_recmyn/>
  357. <ptbs_recmerid/>
  358. <ptbs_vipyn/>
  359. <ptbs_religncd/>
  360. <ptbs_remfact/>
  361. <ptbs_inhospyn/>
  362. <totaluncoamt/>
  363. <ptbs_dethyn/>
  364. <ptbs_dethdt/>
  365. <ptbs_insukind/>
  366. <ptbs_orddrnm/>
  367. </ptbs>
  368. <ptpm>
  369. <stat/>
  370. <pid/>
  371. <ofidocacptdd/>
  372. <ofidocdocuno/>
  373. <instcd/>
  374. <inst/>
  375. <chrgernm/>
  376. <tel/>
  377. <tretflag/>
  378. <datadelive/>
  379. <datadelivedd/>
  380. <civilapler/>
  381. <civilaplertel/>
  382. <civilapleraddr/>
  383. <civilaplflag/>
  384. <civilaplcnts/>
  385. <nonpayallamt/>
  386. <choiordamt/>
  387. <insuteamrtnfcstamt/>
  388. <choiordrtnfcstamt/>
  389. <paycalcfcstamt/>
  390. <cncldocudelivedd/>
  391. <aprvcnclrtnfcstamt/>
  392. <fcstdecidd/>
  393. <fcstdeciamt/>
  394. <roothospexpsflag/>
  395. <ordfcstamt/>
  396. <ordfcstdd/>
  397. <lastenddd/>
  398. <obtappdd/>
  399. <obtapprslt/>
  400. <obtapprsltdd/>
  401. <obtapprcogamt/>
  402. <etcrem/>
  403. <jvirem/>
  404. <totalamt/>
  405. <edimedcaretotamt/>
  406. <ediownbamt/>
  407. <ediinsuclamamt/>
  408. <ediownbmaxexamt/>
  409. <edisuppamt/>
  410. <edisubtamt/>
  411. <edihandcaprfund/>
  412. <dedutretdd/>
  413. <dedudocuno/>
  414. <rtnschenotidd/>
  415. <rtnschenotidocuno/>
  416. <rtnschenotiamt/>
  417. <ioflag/>
  418. <ordfromdd/>
  419. <ordtodd/>
  420. <judgrid/>
  421. <addclamamt/>
  422. <addclamrem/>
  423. <obtappdocuno/>
  424. <obtappamt/>
  425. <obtappdecidd/>
  426. <obtappdecidocuno/>
  427. <obtappaftrtndeciamt/>
  428. <obtapprsltrem/>
  429. <judgclamdd/>
  430. <judgclamdocuno/>
  431. <judgclamamt/>
  432. <judgclamdecidd/>
  433. <judgclamdecidocuno/>
  434. <judgclamaftrtndeciamt/>
  435. <discamt/>
  436. <uncoamt/>
  437. <rtnendyn/>
  438. <fcsteordmat/>
  439. <fcsteinamt/>
  440. <fcstechrgfood/>
  441. <fcstemedimpsamt/>
  442. <fcsteinjamt/>
  443. <fcsteanstamt/>
  444. <fcstecureopamt/>
  445. <fcstetestamt/>
  446. <fcsteimgdiagrayamt/>
  447. <fcstescitamt/>
  448. <fcstepsypamt/>
  449. <fcstectordamt/>
  450. <fcstemriordamt/>
  451. <fcstepetordamt/>
  452. <fcstechoiordamt/>
  453. <fcstenopyamt/>
  454. <fcsteetcamt/>
  455. <fcstecurematramt/>
  456. <deciordmat/>
  457. <deciinamt/>
  458. <decichrgfood/>
  459. <decimedimpsamt/>
  460. <deciinjamt/>
  461. <decianstamt/>
  462. <decicureopamt/>
  463. <decitestamt/>
  464. <deciimgdiagrayamt/>
  465. <deciscitamt/>
  466. <decipsypamt/>
  467. <decictordamt/>
  468. <decimriordamt/>
  469. <decipetordamt/>
  470. <decichoiordamt/>
  471. <decinopyamt/>
  472. <decietcamt/>
  473. <decicurematramt/>
  474. <ofidocretno/>
  475. <ofidocacptddkey/>
  476. <patowntotamt/>
  477. <docucnt/>
  478. <obtapprcamt/>
  479. <addreqdd/>
  480. <addreqdepodd/>
  481. <addreqdepoamt/>
  482. </ptpm>
  483. <ptpmlist>
  484. <grdpatspectlist>
  485. <ofidocacptdd/>
  486. <pid/>
  487. <hngnm/>
  488. <tretstat/>
  489. <insuteamrtnfcstamt/>
  490. <apntordrtnfcstamt/>
  491. <instrtnamt/>
  492. <paycalcfcstamt/>
  493. <lastenddd/>
  494. <datadelivedd/>
  495. <hospenddd/>
  496. <ofidocdocuno/>
  497. </grdpatspectlist>
  498. </ptpmlist>
  499. <list1>
  500. <chosreclist>
  501. </chosreclist>
  502. </list1>
  503. <ioflag/>
  504. <amtflag/>
  505. <list2>
  506. <clamlist/>
  507. </list2>
  508. </main>
  509. <hidden>
  510. <rcv>
  511. <ptbs>
  512. <ptbs_status/>
  513. <ptbs_pid/>
  514. <ptbs_hngnm/>
  515. <ptbs_engnm/>
  516. <ptbs_rrgstno1/>
  517. <ptbs_rrgstno2/>
  518. <ptbs_brthdd/>
  519. <ptbs_sex/>
  520. <ptbs_age/>
  521. <ptbs_hometel/>
  522. <ptbs_mpphontel/>
  523. <ptbs_zipcd1/>
  524. <ptbs_zipcd2/>
  525. <ptbs_zipcdseq/>
  526. <ptbs_zipnm/>
  527. <ptbs_detladdr/>
  528. <ptbs_forgeryn/>
  529. <ptbs_recmyn/>
  530. <ptbs_recmerid/>
  531. <ptbs_vipyn/>
  532. <ptbs_religncd/>
  533. <ptbs_remfact/>
  534. <ptbs_inhospyn/>
  535. </ptbs>
  536. <ptpm>
  537. <stat/>
  538. <pid/>
  539. <ofidocacptdd/>
  540. <ofidocdocuno/>
  541. <instcd/>
  542. <pattel/>
  543. <civilaplertel/>
  544. <inst/>
  545. <chrgernm/>
  546. <tel/>
  547. <trsmno/>
  548. <datareqdd/>
  549. <datadelivedd/>
  550. <hospenddd/>
  551. <cncldocudelivedd/>
  552. <lastenddd/>
  553. <ordflag/>
  554. <tretstat/>
  555. <insuteamrtnfcstamt/>
  556. <apntordrtnfcstamt/>
  557. <paycalcfcstamt/>
  558. <aprvcnclrtnfcstamt/>
  559. <instrtnamt/>
  560. <jvirem/>
  561. <ofidocretno/>
  562. <ofidocacptddkey/>
  563. </ptpm>
  564. <ptpmuncoyn>
  565. <uncoyn/>
  566. </ptpmuncoyn>
  567. <list1>
  568. <chosreclist>
  569. <ioflag/>
  570. <ordindd/>
  571. <orddeptnm/>
  572. <orddrnm/>
  573. <orddeptcd/>
  574. <orddrid/>
  575. <insukind/>
  576. <suppkind/>
  577. <uncototamt/>
  578. <totordamt/>
  579. <payamt/>
  580. <nopayamt/>
  581. <specordamt/>
  582. <discamt/>
  583. <judgrid/>
  584. </chosreclist>
  585. </list1>
  586. <list2>
  587. <clamlist>
  588. <ioflag/>
  589. <clamflagcd/>
  590. <insukind/>
  591. <suppkind/>
  592. <clamdeptcd/>
  593. <orddeptcd/>
  594. <orddrid/>
  595. <acptno/>
  596. <docuseqno/>
  597. <ordfromdd/>
  598. <ordtodd/>
  599. <judgyn/>
  600. <edimedcaretotamt/>
  601. <ediownbamt/>
  602. <ediinsuclamamt/>
  603. <ediownbmaxexamt/>
  604. <edisuppamt/>
  605. <edisubtamt/>
  606. <edihandcaprfund/>
  607. <judgrid/>
  608. </clamlist>
  609. </list2>
  610. </rcv>
  611. <original>
  612. </original>
  613. <flag>
  614. <rcv_flag>
  615. </rcv_flag>
  616. </flag>
  617. <init>
  618. <disccd>
  619. <cd/>
  620. <nm/>
  621. </disccd>
  622. <insukind>
  623. <cd/>
  624. <nm/>
  625. </insukind>
  626. <suppkind>
  627. <cd/>
  628. <nm/>
  629. <up/>
  630. <io/>
  631. </suppkind>
  632. <orddeptcd>
  633. <cd/>
  634. <nm/>
  635. </orddeptcd>
  636. <orddrid>
  637. <cd/>
  638. <nm/>
  639. <dp/>
  640. <sp/>
  641. </orddrid>
  642. <wardcd>
  643. <cd/>
  644. <nm/>
  645. <of/>
  646. </wardcd>
  647. <roomcd>
  648. <cd/>
  649. <nm/>
  650. <wd/>
  651. <gr/>
  652. <ty/>
  653. </roomcd>
  654. <flag>
  655. <prestdd/>
  656. <mskindflag/>
  657. </flag>
  658. </init>
  659. <source>
  660. <pid/>
  661. </source>
  662. <target/>
  663. <userpopupinfo>
  664. <param/>
  665. <flag/>
  666. <searchitem/>
  667. </userpopupinfo>
  668. <oneselect/>
  669. <currentDate/>
  670. </hidden>
  671. <init>
  672. <A0001list>
  673. <A0001>
  674. <cdid/>
  675. <cdnm/>
  676. </A0001>
  677. </A0001list>
  678. <P0001list>
  679. <P0001>
  680. <cdid/>
  681. <cdnm/>
  682. </P0001>
  683. </P0001list>
  684. <P0437list>
  685. <P0437>
  686. <cdid/>
  687. <cdnm/>
  688. </P0437>
  689. </P0437list>
  690. <P0155list>
  691. <P0155>
  692. <cdid/>
  693. <cdnm/>
  694. </P0155>
  695. </P0155list>
  696. <P0484list>
  697. <P0484>
  698. <cdid/>
  699. <cdnm/>
  700. </P0484>
  701. </P0484list>
  702. <P0485list>
  703. <P0485>
  704. <cdid/>
  705. <cdnm/>
  706. </P0485>
  707. </P0485list>
  708. </init>
  709. <init_com>
  710. <init>
  711. <P0006list/>
  712. <P0015list>
  713. <P0015>
  714. <cdid/>
  715. <cdnm/>
  716. </P0015>
  717. </P0015list>
  718. <P0016list>
  719. <P0016>
  720. <cdid/>
  721. <cdnm/>
  722. </P0016>
  723. </P0016list>
  724. <P0020list>
  725. <P0020>
  726. <cdid/>
  727. <cdnm/>
  728. </P0020>
  729. </P0020list>
  730. <P0021list>
  731. <P0021>
  732. <cdid/>
  733. <cdnm/>
  734. </P0021>
  735. </P0021list>
  736. <P0022list>
  737. <P0022>
  738. <cdid/>
  739. <cdnm/>
  740. </P0022>
  741. </P0022list>
  742. <P0032list>
  743. <P0032>
  744. <cdid/>
  745. <cdnm/>
  746. </P0032>
  747. </P0032list>
  748. <P0034list>
  749. <P0034>
  750. <cdid/>
  751. <cdnm/>
  752. </P0034>
  753. </P0034list>
  754. <P0158list>
  755. <P0158>
  756. <cdid/>
  757. <cdnm/>
  758. </P0158>
  759. </P0158list>
  760. </init>
  761. </init_com>
  762. <temp>
  763. <addclamrem/>
  764. <obtapprsltrem/>
  765. <chosreclistcnt/>
  766. <clamlistcnt/>
  767. <flag/>
  768. <pmchcapm>
  769. <capmlist/>
  770. </pmchcapm>
  771. </temp>
  772. </root>
  773. </instance>
  774. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init"/>
  775. <submission id="TRPMI00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" replace="instance" resultref="/root/hidden/init"/>
  776. <submission id="TRPMC03001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data5" replace="instance" resultref="/root/hidden/rcv"/>
  777. <submission id="TRPMC03002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" replace="instance" resultref="/root/hidden/rcv"/>
  778. <submission id="TRPMC03003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data6" replace="instance" resultref="/root/hidden/rcv"/>
  779. <submission id="TRPMC03004" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" replace="instance" resultref="/root/hidden/rcv"/>
  780. <submission id="TXPMC03001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" replace="instance" resultref="/root/hidden/rcv"/>
  781. <submission id="TXPMC03002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" replace="instance" resultref="/root/hidden/rcv"/>
  782. <submission id="TXPMC03003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/update" replace="instance" resultref="/root/hidden/rcv"/>
  783. <script type="javascript" ev:event="xforms-ready">
  784. <![CDATA[
  785. document.title = "수진환자관리";
  786. fInitialize("all"); //기본데이터 초기화
  787. zbcfGetCodeList(
  788. new Array("A0001", "P0001", "P0437", "P0155", "P0484", "P0485"),
  789. new Array("/root/init/A0001list", "/root/init/P0001list", "/root/init/P0437list", "/root/init/P0155list", "/root/init/P0484list", "/root/init/P0485list")
  790. );
  791. submit("TRPMI00106");
  792. model.setValue("/root/main/ioflag", "A");
  793. model.setValue("/root/main/amtflag", "A");
  794. model.toggle("case1");
  795. button6.visible = true;
  796. button7.visible = false;
  797. model.refresh();
  798. ]]>
  799. </script>
  800. <submission id="TRPMC03005" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/hidden/rcv/ptpmuncoyn"/>
  801. <submission id="TXPMC03005" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/update" replace="instance" resultref="/root/hidden/rcv"/>
  802. <submission id="TRPMC03802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/discpat" replace="instance" resultref="/root/temp/result"/>
  803. <submission id="TRPMC03006" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data5" resultref="/root/temp/pmchcapm"/>
  804. </model>
  805. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  806. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  807. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  808. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  809. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  810. <script type="javascript">
  811. <![CDATA[
  812. function fSrchCondChng(srchcond1)
  813. {
  814. if (srchcond1 == '1' || srchcond1 == '2') {
  815. ipt_cond1.attribute("top") = "8xp";
  816. ipt_cond1.attribute("left") = "225px";
  817. ipt_cond1.visible = true;
  818. ipt_cond2.visible = false;
  819. ipt_cond3.visible = false;
  820. caption4.visible = false;
  821. cmb_cond2.visible = false;
  822. model.setFocus("ipt_cond1");
  823. } else if (srchcond1 == '3') {
  824. cmb_cond2.attribute("top") = "8xp";
  825. cmb_cond2.attribute("left") = "225xp";
  826. ipt_cond1.visible = false;
  827. ipt_cond2.visible = false;
  828. ipt_cond3.visible = false;
  829. caption4.visible = false;
  830. cmb_cond2.visible = true;
  831. //cmb_cond2.choices.itemset.attribute("nodeset") = "/root/hidden/init/wardcd";
  832. } else if (srchcond1 == '4' || srchcond1 == '5') {
  833. ipt_cond2.attribute("top") = "8xp";
  834. ipt_cond2.attribute("left") = "225xp";
  835. ipt_cond1.visible = false;
  836. ipt_cond2.visible = true;
  837. ipt_cond3.visible = true;
  838. caption4.visible = true;
  839. cmb_cond2.visible = false;
  840. //날자 입력 항목에 오늘 날자 세팅
  841. model.setValue("/root/send/data6/srchcond2",model.getValue("/root/hidden/currentDate"));
  842. model.setValue("/root/send/data6/srchcond3",model.getValue("/root/hidden/currentDate"));
  843. } else if (srchcond1 == '0') {
  844. ipt_cond1.visible = false;
  845. ipt_cond2.visible = false;
  846. ipt_cond3.visible = false;
  847. caption4.visible = false;
  848. cmb_cond2.visible = false;
  849. }
  850. ipt_cond1.refresh();
  851. ipt_cond2.refresh();
  852. ipt_cond3.refresh();
  853. cmb_cond1.refresh();
  854. cmb_cond2.refresh();
  855. }
  856. function fOtptChk()
  857. {
  858. return true;
  859. }
  860. ]]>
  861. </script>
  862. </xhtml:head>
  863. <xhtml:body inputtype="date" guideline="1,1196;2,772;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  864. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  865. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:135px; height:13px; ">수진내역관리</caption>
  866. </group>
  867. <group id="group3" style="left:0px; top:13px; width:1195px; height:744px; ">
  868. <switch id="switch1" style="left:0px; top:31px; width:1194px; height:713px; border-color:#cc99ff; border-style:solid; ">
  869. <case id="case1">
  870. <datagrid id="grd_patspec" nodeset="/root/main/ptpmlist/grdpatspectlist" caption="공문접수일^공문접수번호^생성번호^환자번호^환자명^주민번호^처리상태^진료기간^내원구분^문서번호(환불예정통보)^공제처리일자^환불예정통보액^자료제출일^보험환불예상액^선택진료환불예상액^급여정산환불액^심사자^추가청구액^추가청구비고^이의신청액^최종환불결정일^최종환불결정액^본원지출^공제처리일^공제문서번호^환불일자^실환불액^자료제출일^환불결정일^최종종결일^진찰료^입원료^식대^투약 및 처방전료^주사료^마취료^처지 및 수술료^검사료^영상진단 및 방사선 치료료^이학요법료^정신요법료^CT진단료^MRI진단료^PET진단료^선택진료료^비급여^기타^치료재료대" colsep="^" colwidth="90, 100, 100, 90, 93, 100, 100, 175, 100, 156, 100, 100, 100, 120, 120, 120, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 120, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 149, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="23" defaultrows="0" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:10px; top:80px; width:1174px; height:609px; ">
  871. <col ref="ofidocacptdd" format="yyyy-mm-dd" style="left:20px; top:23px; width:90px; height:23px; text-align:center; "/>
  872. <col ref="ofidocdocuno" style="text-align:left; "/>
  873. <col ref="ofidocretno" visibility="hidden"/>
  874. <col ref="pid" style="text-align:center; "/>
  875. <col ref="hngnm" style="text-align:center; "/>
  876. <col ref="rrgstno"/>
  877. <col ref="tretflag"/>
  878. <col ref="orddd"/>
  879. <col disabled="true" ref="ioflag" type="combo" style="text-align:center; ">
  880. <choices>
  881. <itemset nodeset="/root/init/P0485list/P0485">
  882. <label ref="cdnm"/>
  883. <value ref="cdid"/>
  884. </itemset>
  885. </choices>
  886. </col>
  887. <col ref="rtnschenotidocuno" style="text-align:left; "/>
  888. <col ref="dedutretdd" format="yyyy-mm-dd" style="text-align:right; "/>
  889. <col ref="rtnschenotiamt" format="(-)#,###" style="text-align:right; "/>
  890. <col ref="datadelivedd" format="yyyy-mm-dd" style="text-align:right; "/>
  891. <col ref="insuteamrtnfcstamt" format="(-)#,###" style="text-align:right; "/>
  892. <col ref="choiordrtnfcstamt" format="(-)#,###" style="text-align:right; "/>
  893. <col ref="paycalcfcstamt" format="(-)#,###" style="text-align:right; "/>
  894. <col ref="judgrid"/>
  895. <col ref="addclamamt" format="(-)#,###" style="text-align:right; "/>
  896. <col ref="addclamrem"/>
  897. <col ref="obtappamt" format="(-)#,###" style="text-align:right; "/>
  898. <col ref="fcstdecidd" format="yyyy-mm-dd" style="text-align:right; "/>
  899. <col ref="fcstdeciamt" format="(-)#,###" style="text-align:right; "/>
  900. <col ref="roothospexpsflag"/>
  901. <col ref="dedutretdd" format="yyyy-mm-dd" style="text-align:right; "/>
  902. <col ref="dedudocuno"/>
  903. <col ref="ordfcstdd" format="yyyy-mm-dd" style="text-align:right; "/>
  904. <col ref="ordfcstamt" visibility="hidden" format="(-)#,###" style="text-align:right; "/>
  905. <col ref="datadelivedd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
  906. <col ref="fcstdecidd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
  907. <col ref="lastenddd" format="yyyy-mm-dd" style="text-align:center; "/>
  908. <col ref="fcstordmat" format="(-)#,###" style="text-align:right; "/>
  909. <col ref="fcstinamt" format="(-)#,###" style="text-align:right; "/>
  910. <col ref="fcstchrgfood" format="(-)#,###" style="text-align:right; "/>
  911. <col ref="fcstmedimpsamt" format="(-)#,###" style="text-align:right; "/>
  912. <col ref="fcstinjamt" format="(-)#,###" style="text-align:right; "/>
  913. <col ref="fcstanstamt" format="(-)#,###" style="text-align:right; "/>
  914. <col ref="fcstcureopamt" format="(-)#,###" style="text-align:right; "/>
  915. <col ref="fcsttestamt" format="(-)#,###" style="text-align:right; "/>
  916. <col ref="fcstimgdiagrayamt" format="(-)#,###" style="text-align:right; "/>
  917. <col ref="fcstscitamt" format="(-)#,###" style="text-align:right; "/>
  918. <col ref="fcstpsypamt" format="(-)#,###" style="text-align:right; "/>
  919. <col ref="fcstctordamt" format="(-)#,###" style="text-align:right; "/>
  920. <col ref="fcstmriordamt" format="(-)#,###" style="text-align:right; "/>
  921. <col ref="fcstpetordamt" format="(-)#,###" style="text-align:right; "/>
  922. <col ref="fcstchoiordamt" format="(-)#,###" style="text-align:right; "/>
  923. <col ref="fcstnopyamt" format="(-)#,###" style="text-align:right; "/>
  924. <col ref="fcstetcamt" format="(-)#,###" style="text-align:right; "/>
  925. <col ref="fcstcurematramt" format="(-)#,###" style="text-align:right; "/>
  926. <script type="javascript" ev:event="ondblclick">
  927. <![CDATA[
  928. if(grd_patspec.isCell(event.target) && grd_patspec.row >= grd_patspec.fixedRows) {
  929. fInitialize("");
  930. // ondblclick 후 이벤트 처리
  931. var row = grd_patspec.row ;
  932. btn_patspec.selected = true;
  933. btn_patprescond.selected = false;
  934. model.setValue("/root/send/data3/ofidocacptdd", grd_patspec.valueMatrix(row,1));
  935. model.setValue("/root/send/data3/pid", grd_patspec.valueMatrix(row,4));
  936. model.setValue("/root/send/data3/ofidocretno", grd_patspec.valueMatrix(row,3));
  937. model.setValue("/root/send/data3/flag","P");
  938. /*
  939. model.alert(model.getValue("/root/send/data3/ofidocacptdd"));
  940. model.alert(model.getValue("/root/send/data3/pid"));
  941. model.alert(model.getValue("/root/send/data3/cretno"));
  942. model.alert(model.getValue("/root/send/data3/flag"));
  943. return;
  944. if(submit("TRPMC03005")){
  945. var uncoyn = model.getValue("/root/hidden/rcv/ptpmuncoyn/uncoyn");
  946. }
  947. if(uncoyn =="Y"){
  948. messageBox("미수금 내역이 존재하는 " ,"I005");
  949. }
  950. */
  951. if(submit("TRPMC03004")){
  952. model.resetInstanceNode("/root/main/ptbs");
  953. model.resetInstanceNode("/root/main/ptpm");
  954. model.removeNodeset("/root/main/list1");
  955. model.makeNode("/root/main/list1");
  956. model.removeNodeset("/root/main/list2");
  957. model.makeNode("/root/main/list2");
  958. // 인적 사항 조회
  959. var ptbscnt = getNodesetCount("/root/hidden/rcv/ptbs");
  960. if (ptbscnt > 0) {
  961. copyNodeType("/root/main/ptbs","/root/hidden/rcv/ptbs","replace");
  962. }
  963. // 민원 사항 조회
  964. if( getNodesetCount("/root/hidden/rcv/ptpm/pid") > 0 ){
  965. copyNodeType("/root/main/ptpm","/root/hidden/rcv/ptpm","replace");
  966. }
  967. // 내원 기록 조회
  968. if( getNodesetCount("/root/hidden/rcv/list1/chosreclist") > 0 ){
  969. copyNodeType("/root/main/list1","/root/hidden/rcv/list1","replace");
  970. }
  971. // 청구 기록 조회
  972. if( getNodesetCount("/root/hidden/rcv/list2/clamlist") > 0 ){
  973. copyNodeType("/root/main/list2","/root/hidden/rcv/list2","replace");
  974. }
  975. var chosreclistcnt = getNodesetCount("/root/hidden/rcv/list1/chosreclist");
  976. chosreclistcnt = parseInt(chosreclistcnt)+1;
  977. model.setValue("/root/temp/chosreclistcnt", chosreclistcnt);
  978. var clamlistcnt = getNodesetCount("/root/hidden/rcv/list2/clamlist");
  979. clamlistcnt = parseInt(clamlistcnt)+1;
  980. model.setValue("/root/temp/clamlistcnt", clamlistcnt);
  981. /*
  982. model.alert(model.getValue("/root/temp/chosreclistcnt"));
  983. model.alert(model.getValue("/root/temp/clamlistcnt"));
  984. */
  985. }
  986. var rows = model.getValue("/root/temp/chosreclistcnt");
  987. var totordamtsum = '0';
  988. var totownbamtsum = '0';
  989. var nopyamttsum = '0';
  990. var specordamtsum = '0';
  991. var uncoamtsum = '0';
  992. var discamtsum = '0';
  993. for (i=0; i<rows; i++) {
  994. if(model.getValue("/root/main/list1/chosreclist["+ i + "]/patspecyn") == 'Y' ){
  995. var temp1 = model.getValue("/root/main/list1/chosreclist["+ i + "]/totordamt");
  996. var temp2 = model.getValue("/root/main/list1/chosreclist["+ i + "]/nopyamt");
  997. var temp3 = model.getValue("/root/main/list1/chosreclist["+ i + "]/specordamt");
  998. var temp4 = model.getValue("/root/main/list1/chosreclist["+ i + "]/uncototamt");
  999. var temp5 = model.getValue("/root/main/list1/chosreclist["+ i + "]/discamt");
  1000. var temp6 = model.getValue("/root/main/list1/chosreclist["+ i + "]/totownbamt");
  1001. totordamtsum = parseInt(totordamtsum) + parseInt(temp1);
  1002. nopyamttsum = parseInt(nopyamttsum) + parseInt(temp2);
  1003. specordamtsum = parseInt(specordamtsum) + parseInt(temp3);
  1004. uncoamtsum = parseInt(uncoamtsum) + parseInt(temp4);
  1005. discamtsum = parseInt(discamtsum) + parseInt(temp5);
  1006. totownbamtsum = parseInt(totownbamtsum) + parseInt(temp6);
  1007. }
  1008. }
  1009. model.setValue("/root/main/ptpm/totalamt", totordamtsum);
  1010. model.setValue("/root/main/ptpm/patowntotamt", totownbamtsum);
  1011. model.setValue("/root/main/ptpm/nonpayallamt", nopyamttsum);
  1012. model.setValue("/root/main/ptpm/choiordamt", specordamtsum);
  1013. model.setValue("/root/main/ptpm/uncoamt", uncoamtsum);
  1014. model.setValue("/root/main/ptpm/discamt", discamtsum);
  1015. //submit("TRPMC03004");
  1016. model.toggle("case2");
  1017. //인사정보의 직원, 직원가족정보 조회
  1018. var rrgstno1 = model.getValue("/root/main/ptbs/ptbs_rrgstno1");
  1019. var rrgstno2 = model.getValue("/root/main/ptbs/ptbs_rrgstno2");
  1020. if( rrgstno1.length == 6 && rrgstno2.length == 7 ){
  1021. var retValue = fGetPsnWorkInfo(rrgstno1 + rrgstno2);
  1022. /*
  1023. //선택한 직원정보 세팅
  1024. if( retValue != '' && retValue != ' ' ){
  1025. var arr_retValue = retValue.split("▦");
  1026. model.setValue("/root/main/otpt/otpt_emplno", arr_retValue[0]);
  1027. model.setValue("/root/main/otpt/otpt_emplnm", arr_retValue[1]);
  1028. // model.refresh();
  1029. }
  1030. */
  1031. }
  1032. //민원환자관리등록여부 체크
  1033. fCheckCampYn();
  1034. model.refresh();
  1035. //fGetPtpmPatInfo();
  1036. }
  1037. ]]>
  1038. </script>
  1039. </datagrid>
  1040. <caption id="caption45" class="tit_2" style="left:15px; top:60px; width:155px; height:13px; font-family:돋움; vertical-align:middle; ">수진내역현황</caption>
  1041. <line id="line9" class="line_1" style="x1:10px; y1:75px; x2:1184px; y2:75px; "/>
  1042. <button id="button4" class="btn2_letter2" style="left:1070px; top:50px; width:42px; height:19px; ">
  1043. <caption>츌력</caption>
  1044. <script type="javascript" ev:event="DOMActivate">
  1045. <![CDATA[
  1046. //exeReportPreview("RPPMC03000", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
  1047. exeReportPreview("RPPMC03000", "XMLSTR", "","", "false","","","","","false");
  1048. ]]>
  1049. </script>
  1050. </button>
  1051. <group id="group2" style="left:10px; top:10px; width:1174px; height:35px; ">
  1052. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1174px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  1053. <input id="ipt_cond2" ref="/root/send/data6/srchcond2" class="input_default" inputtype="date" format="yyyy-mm-dd" style="left:235px; top:8px; width:102px; height:19px; "/>
  1054. <input id="ipt_cond1" ref="/root/send/data6/srchcond2" class="input_default" visibility="visible" style="left:235px; top:8px; width:102px; height:19px; ">
  1055. <script type="javascript" ev:event="onkeypress">
  1056. <![CDATA[
  1057. inputEnterKey("btn_srch", "DOMActivate");
  1058. ]]>
  1059. </script>
  1060. </input>
  1061. <caption id="caption1" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">조회구분 :</caption>
  1062. <line id="line2" class="line_4" style="x1:1088px; y1:7px; x2:1088px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  1063. <button id="btn_srch" class="btn1_letter2" style="left:1103px; top:5px; width:56px; height:22px; ">
  1064. <caption>조회</caption>
  1065. <script type="javascript" ev:event="DOMActivate">
  1066. <![CDATA[
  1067. model.removeNodeset("/root/main/ptpmlist");
  1068. model.makeNode("/root/main/ptpmlist");
  1069. if(submit("TRPMC03003")){
  1070. if( getNodesetCount("/root/hidden/rcv/ptpmlist/grdpatspectlist") > 0 ){
  1071. copyNodeType("/root/main/ptpmlist","/root/hidden/rcv/ptpmlist","replace");
  1072. }else{
  1073. model.resetInstanceNode("/root/main/ptpmlist");
  1074. }
  1075. }
  1076. model.refresh();
  1077. ]]>
  1078. </script>
  1079. </button>
  1080. <select1 id="cmb_cond2" ref="/root/send/data6/srchcond2" class="combo_default" visibility="hidden" appearance="minimal" style="left:470px; top:8px; width:102px; height:19px; ">
  1081. <choices>
  1082. <item>
  1083. <label>진행</label>
  1084. <value>1</value>
  1085. </item>
  1086. <item>
  1087. <label>취하</label>
  1088. <value>2</value>
  1089. </item>
  1090. <item>
  1091. <label>정당</label>
  1092. <value>3</value>
  1093. </item>
  1094. <item>
  1095. <label>환불</label>
  1096. <value>4</value>
  1097. </item>
  1098. <item>
  1099. <label>환불미지급</label>
  1100. <value>5</value>
  1101. </item>
  1102. <item>
  1103. <label>상계처리</label>
  1104. <value>6</value>
  1105. </item>
  1106. </choices>
  1107. <script type="javascript" ev:event="xforms-select">
  1108. <![CDATA[
  1109. btn_srch.dispatch("DOMActivate");
  1110. ]]>
  1111. </script>
  1112. </select1>
  1113. <select1 id="cmb_cond1" ref="/root/send/data6/srchcond1" class="combo_search" appearance="minimal" style="left:113px; top:8px; width:102px; height:19px; ">
  1114. <choices>
  1115. <item>
  1116. <label>전체</label>
  1117. <value>0</value>
  1118. </item>
  1119. <item>
  1120. <label>환자번호</label>
  1121. <value>1</value>
  1122. </item>
  1123. <item>
  1124. <label>성명</label>
  1125. <value>2</value>
  1126. </item>
  1127. <item>
  1128. <label>처리상태</label>
  1129. <value>3</value>
  1130. </item>
  1131. <item>
  1132. <label>접수일자</label>
  1133. <value>4</value>
  1134. </item>
  1135. <item>
  1136. <label>종료일자</label>
  1137. <value>5</value>
  1138. </item>
  1139. </choices>
  1140. <script type="javascript" ev:event="xforms-select">
  1141. <![CDATA[
  1142. var srchcond1 = model.getValue("/root/send/data6/srchcond1");
  1143. model.resetInstanceNode("/root/send/data6/srchcond2");
  1144. model.resetInstanceNode("/root/send/data6/srchcond3");
  1145. fSrchCondChng(srchcond1);
  1146. ]]>
  1147. </script>
  1148. </select1>
  1149. <input id="ipt_cond3" ref="/root/send/data6/srchcond3" class="input_default" visibility="hidden" inputtype="date" format="yyyy-mm-dd" style="left:355px; top:8px; width:102px; height:19px; "/>
  1150. <caption id="caption4" visibility="hidden" style="left:340px; top:11px; width:12px; height:16px; vertical-align:middle; ">~</caption>
  1151. </group>
  1152. <button id="button5" class="btn2_letter4" style="left:1117px; top:50px; width:64px; height:19px; ">
  1153. <caption>엑셀저장</caption>
  1154. <script type="javascript" ev:event="DOMActivate">
  1155. <![CDATA[
  1156. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1157. if (fileName != "")
  1158. {
  1159. grd_patspec.saveExcel(fileName, "SheetName", true, true, "", "", "true");
  1160. }
  1161. ]]>
  1162. </script>
  1163. </button>
  1164. </case>
  1165. <case id="case2" selected="true">
  1166. <select1 id="cmb_inst" ref="/root/main/ptpm/inst" class="combo_default" navindex="4" appearance="minimal" style="left:5px; top:130px; width:95px; height:19px; ">
  1167. <choices>
  1168. <item>
  1169. <label>심평원</label>
  1170. <value>1</value>
  1171. </item>
  1172. <item>
  1173. <label>국민건강보험공단</label>
  1174. <value>2</value>
  1175. </item>
  1176. </choices>
  1177. </select1>
  1178. <caption id="caption3" class="tit_2" style="left:10px; top:10px; width:204px; height:13px; font-family:돋움; vertical-align:middle; ">인적사항</caption>
  1179. <caption id="caption33" class="cell_1" style="left:5px; top:54px; width:76px; height:23px; vertical-align:middle; ">성명[한글]</caption>
  1180. <caption id="caption13" class="cell_1" style="left:855px; top:54px; width:60px; height:23px; vertical-align:middle; ">하위주소</caption>
  1181. <line id="line1" class="line_1" style="x1:5px; y1:25px; x2:1186px; y2:25px; "/>
  1182. <caption id="caption8" class="cell_1" style="left:855px; top:30px; width:60px; height:23px; vertical-align:middle; ">주소</caption>
  1183. <caption id="caption14" class="cell_1" style="left:207px; top:54px; width:115px; height:23px; vertical-align:middle; ">연락처/휴대폰</caption>
  1184. <caption id="caption9" class="cell_1" style="left:5px; top:30px; width:76px; height:23px; vertical-align:middle; ">환자번호</caption>
  1185. <caption id="caption18" class="cell_1" style="left:207px; top:29px; width:115px; height:23px; vertical-align:middle; ">주민번호/성별/나이</caption>
  1186. <caption id="caption10" class="tit_2" style="left:10px; top:86px; width:204px; height:13px; font-family:돋움; vertical-align:middle; ">접수관련</caption>
  1187. <line id="line3" class="line_1" style="x1:5px; y1:101px; x2:484px; y2:101px; "/>
  1188. <caption id="caption22" class="cell_1" style="left:5px; top:106px; width:95px; height:23px; text-align:center; vertical-align:middle; ">기관</caption>
  1189. <caption id="caption23" class="cell_1" style="left:389px; top:106px; width:95px; height:23px; text-align:center; vertical-align:middle; ">연락처</caption>
  1190. <caption id="caption27" class="cell_1" style="left:316px; top:106px; width:70px; height:23px; text-align:center; vertical-align:middle; ">기관담당자</caption>
  1191. <caption id="caption29" class="cell_1" style="left:845px; top:290px; width:96px; height:29px; text-align:center; vertical-align:middle; ">추가청구비고</caption>
  1192. <caption id="caption30" class="cell_1" style="left:778px; top:290px; width:65px; height:29px; text-align:center; vertical-align:middle; ">
  1193. <![CDATA[추가청구
  1194. 입금액]]>
  1195. </caption>
  1196. <caption id="caption31" class="cell_1" style="left:512px; top:345px; width:95px; height:29px; text-align:center; vertical-align:middle; ">심사청구일</caption>
  1197. <caption id="caption32" class="cell_1" style="left:291px; top:221px; width:85px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">선택진료금액</caption>
  1198. <caption id="caption37" class="cell_1" style="left:379px; top:221px; width:85px; height:23px; text-align:center; vertical-align:middle; ">환불예상액</caption>
  1199. <caption id="caption44" class="cell_1" style="left:420px; top:345px; width:90px; height:29px; text-align:center; vertical-align:middle; ">
  1200. <![CDATA[이의신청
  1201. 결과비고]]>
  1202. </caption>
  1203. <input id="ipt_addclamrem" ref="/root/main/ptpm/addclamrem" class="input_default" inputtype="button" style="left:845px; top:321px; width:96px; height:19px; ">
  1204. <script type="javascript" ev:event="onbuttonclick">
  1205. <![CDATA[
  1206. model.makeNode("/root/temp/addclamrem");
  1207. model.setValue("/root/temp/addclamrem", model.getValue("/root/main/ptpm/addclamrem"));
  1208. //model.alert(model.getValue("/root/main/ptpm/addclamrem"));
  1209. //model.alert(model.getValue("/root/temp/addclamrem"));
  1210. grp_addclamrem.visible = true;
  1211. model.refresh();
  1212. ]]>
  1213. </script>
  1214. <script type="javascript" ev:event="onkeypress">
  1215. <![CDATA[
  1216. if (event.keyCode == "13")
  1217. {
  1218. model.setFocus("ipt_obtappdd");
  1219. }
  1220. ]]>
  1221. </script>
  1222. </input>
  1223. <input id="ipt_tel" ref="/root/main/ptpm/tel" class="input_default" navindex="7" style="left:389px; top:130px; width:95px; height:19px; ">
  1224. <script type="javascript" ev:event="onkeypress">
  1225. <![CDATA[
  1226. if (event.keyCode == "13")
  1227. {
  1228. model.setFocus("ipt_civilapler");
  1229. }
  1230. ]]>
  1231. </script>
  1232. </input>
  1233. <input id="ipt_addclamamt" ref="/root/main/ptpm/addreqdepoamt" class="input_default" format="(-)#,###" style="left:778px; top:321px; width:65px; height:19px; text-align:right; ">
  1234. <script type="javascript" ev:event="onkeypress">
  1235. <![CDATA[
  1236. if (event.keyCode == "13")
  1237. {
  1238. model.setFocus("ipt_addclamrem");
  1239. }
  1240. ]]>
  1241. </script>
  1242. </input>
  1243. <caption id="caption24" class="cell_1" style="left:92px; top:290px; width:83px; height:29px; color:#000000; text-align:center; vertical-align:middle; ">
  1244. <![CDATA[환불예정통보
  1245. 문서번호]]>
  1246. </caption>
  1247. <textarea id="tar_jvirem" ref="/root/main/ptpm/jvirem" class="input_default" appearance="textarea" style="left:5px; top:167px; width:474px; height:29px; ">
  1248. <script type="javascript" ev:event="onkeypress">
  1249. <![CDATA[
  1250. if (event.keyCode == "13")
  1251. {
  1252. model.setFocus("ipt_datadelivedd");
  1253. }
  1254. ]]>
  1255. </script>
  1256. </textarea>
  1257. <line id="line4" class="line_2" style="x1:5px; y1:52px; x2:1186px; y2:52px; "/>
  1258. <line id="line5" class="line_3" style="x1:5px; y1:76px; x2:1186px; y2:76px; "/>
  1259. <line id="line8" class="line_1" style="x1:5px; y1:494px; x2:1186px; y2:494px; "/>
  1260. <caption id="caption5" class="cell_1" style="left:102px; top:106px; width:90px; height:23px; text-align:center; vertical-align:middle; ">공문접수일</caption>
  1261. <caption id="caption16" class="cell_1" style="left:481px; top:151px; width:80px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">자료제출일</caption>
  1262. <input id="ipt_chrgernm" ref="/root/main/ptpm/chrgernm" class="input_default" style="left:316px; top:130px; width:70px; height:19px; ">
  1263. <script type="javascript" ev:event="onkeypress">
  1264. <![CDATA[
  1265. if (event.keyCode == "13")
  1266. {
  1267. model.setFocus("ipt_tel");
  1268. }
  1269. ]]>
  1270. </script>
  1271. </input>
  1272. <input id="ipt_datadelivedd" ref="/root/main/ptpm/datadelivedd" class="input_default" navindex="10" inputtype="date" style="left:481px; top:177px; width:80px; height:19px; ">
  1273. <script type="javascript" ev:event="onkeypress">
  1274. <![CDATA[
  1275. if (event.keyCode == "13")
  1276. {
  1277. model.setFocus("ipt_civilaplflag");
  1278. }
  1279. ]]>
  1280. </script>
  1281. </input>
  1282. <input id="ipt_ofidocacptdd" ref="/root/main/ptpm/ofidocacptdd" class="input_default" navindex="5" inputtype="date" style="left:102px; top:130px; width:90px; height:19px; ">
  1283. <script type="javascript" ev:event="onkeypress">
  1284. <![CDATA[
  1285. if (event.keyCode == "13")
  1286. {
  1287. model.setFocus("input1");
  1288. }
  1289. ]]>
  1290. </script>
  1291. </input>
  1292. <input id="cmb_judgclamdd" ref="/root/main/ptpm/judgclamdd" class="combo_default" navindex="36" inputtype="date" appearance="minimal" style="left:512px; top:376px; width:95px; height:19px; ">
  1293. <script type="javascript" ev:event="onkeypress">
  1294. <![CDATA[
  1295. if (event.keyCode == "13")
  1296. {
  1297. model.setFocus("ipt_judgclamdocuno");
  1298. }
  1299. ]]>
  1300. </script>
  1301. </input>
  1302. <input id="ipt_obtapprsltrem" ref="/root/main/ptpm/obtapprsltrem" class="input_default" navindex="35" inputtype="button" style="left:420px; top:376px; width:90px; height:19px; text-align:right; ">
  1303. <script type="javascript" ev:event="onbuttonclick">
  1304. <![CDATA[
  1305. model.makeNode("/root/temp/obtapprsltrem");
  1306. model.setValue("/root/temp/obtapprsltrem", model.getValue("/root/main/ptpm/obtapprsltrem"));
  1307. grp_obtapprsltrem.visible = true;
  1308. model.refresh();
  1309. ]]>
  1310. </script>
  1311. <script type="javascript" ev:event="onkeydown">
  1312. <![CDATA[
  1313. if (event.keyCode == "13")
  1314. {
  1315. model.setFocus("cmb_judgclamdd");
  1316. }
  1317. ]]>
  1318. </script>
  1319. </input>
  1320. <input id="ipt_apntordrtnfcstamt" ref="/root/main/ptpm/choiordamt" class="input_default" navindex="17" format="(-)#,###" style="left:291px; top:246px; width:85px; height:19px; text-align:right; background-color:#cc99ff; "/>
  1321. <input id="ipt_insuteamrtnfcstamt" ref="/root/main/ptpm/insuteamrtnfcstamt" class="input_default" disabled="false" navindex="18" format="(-)#,###" style="left:379px; top:246px; width:85px; height:19px; text-align:right; ">
  1322. <script type="javascript" ev:event="onkeypress">
  1323. <![CDATA[
  1324. if (event.keyCode == "13")
  1325. {
  1326. model.setFocus("ipt_choiordrtnfcstamt");
  1327. }
  1328. ]]>
  1329. </script>
  1330. </input>
  1331. <input id="ipt_rtnschenotidocuno" ref="/root/main/ptpm/rtnschenotidocuno" class="input_default" navindex="24" style="left:92px; top:321px; width:83px; height:19px; text-align:right; ">
  1332. <script type="javascript" ev:event="onkeypress">
  1333. <![CDATA[
  1334. if (event.keyCode == "13")
  1335. {
  1336. model.setFocus("ipt_rtnschenotiamt");
  1337. }
  1338. ]]>
  1339. </script>
  1340. </input>
  1341. <button id="button8" class="btn2_letter5" navindex="39" style="left:1110px; top:5px; width:75px; height:19px; ">
  1342. <caption>진료비내역</caption>
  1343. <script type="javascript" ev:event="DOMActivate">
  1344. <![CDATA[
  1345. model.setValue("/root/send/data3/pid", model.getValue("/root/main/ptbs/ptbs_pid"));
  1346. model.setValue("/root/send/data3/ofidocacptdd", model.getValue("/root/main/ptpm/ofidocacptdd"));
  1347. model.setValue("/root/send/data3/ofidocretno", model.getValue("/root/main/ptpm/ofidocretno"));
  1348. model.setValue("/root/send/data3/flag", "P");
  1349. if(model.getValue("/root/main/ptbs/ptbs_pid") =="" || model.getValue("/root/main/ptbs/ptbs_hngnm") =="" )
  1350. {
  1351. messageBox("환자가 조회되지 않았습니다!","E999","");
  1352. return;
  1353. }else{
  1354. modal("SMPMC03000", "1","150","150", "SMPMC03000", "/root/send/data3", "/root/hidden/data");
  1355. }
  1356. /*
  1357. var getreturnamt = getParameter("SMPMC03000_selectreturnamt");
  1358. var getselectreturnamt = getParameter("SMPMC03000_returnamt");
  1359. if( getreturnamt !='' && getselectreturnamt !=''){
  1360. model.setValue("/root/main/ptpm/insuteamrtnfcstamt", getselectreturnamt);
  1361. model.setValue("/root/main/ptpm/choiordrtnfcstamt", getreturnamt);
  1362. }
  1363. */
  1364. model.refresh();
  1365. ]]>
  1366. </script>
  1367. </button>
  1368. <button id="button15" class="btn2_letter2" navindex="38" style="left:1065px; top:5px; width:42px; height:19px; ">
  1369. <caption>상병</caption>
  1370. <script type="javascript" ev:event="DOMActivate">
  1371. <![CDATA[
  1372. modal("SMPIZ00100", "1","150","150", "SMPIZ00100", "/root/main/ptbs/ptbs_pid", "/root/init/pid");
  1373. ]]>
  1374. </script>
  1375. </button>
  1376. <group id="group4" style="left:5px; top:681px; width:1183px; height:27px; ">
  1377. <button id="btn_save" class="btn4_letter2" style="left:1056px; top:5px; width:56px; height:22px; ">
  1378. <caption>저장</caption>
  1379. <script type="javascript" ev:event="onclick">
  1380. <![CDATA[
  1381. //공문 접수일을 체크한다
  1382. /*if(model.getValue("/root/main/ptpm/ofidocacptdd") == ""){
  1383. messageBox("공문접수일은", "I003");
  1384. }elseif(model.getValue("/root/main/ptpm/inst")==""){
  1385. messageBox("기관 담당자는", "I003");
  1386. }elseif(model.getValue("/root/main/ptpm/tel")==""){
  1387. messageBox("연락처는", "I003");
  1388. }*/
  1389. if (model.getValue("/root/main/ptpm/ofidocacptdd") == "" || model.getValue("/root/main/ptpm/ofidocacptdd") == null)
  1390. {
  1391. messageBox("공문접수일를 입력하여 주십시요!","E999","");
  1392. return false;
  1393. }
  1394. model.setValue("/root/main/ptpm/pid", model.getValue("/root/main/ptbs/ptbs_pid"));
  1395. model.copyNode("/root/send/data1","/root/main/ptpm");
  1396. if( messageBox("수진환자 내역을 저장 하시겠습니까?", "Q999") != 6){
  1397. return;
  1398. }
  1399. if (model.getValue("/root/main/ptpm/stat") == "U") {
  1400. if (submit("TXPMC03002")) {
  1401. //내원이력
  1402. if( getNodesetCount("/root/hidden/rcv/ptpm/stat") > 0 ){
  1403. //copyNodeType("/root/main/ptpm","/root/hidden/rcv/ptpm","replace");
  1404. copyNodeType("/root/main/ptpm/stat","/root/hidden/rcv/ptpm/stat","replace");
  1405. copyNodeType("/root/main/ptpm/ofidocretno","/root/hidden/rcv/ptpm/ofidocretno","replace");
  1406. var rows = model.getValue("/root/temp/chosreclistcnt");
  1407. var flag = "";
  1408. var pid = model.getValue("/root/main/ptbs/ptbs_pid");
  1409. var ofidocacptdd = model.getValue("/root/main/ptpm/ofidocacptdd");
  1410. var ofidocretno = model.getValue("/root/main/ptpm/ofidocretno");
  1411. var cnt1 = 0;
  1412. for (i=0; i<rows; i++) {
  1413. var patspecyn= model.getValue("/root/main/list1/chosreclist["+ i + "]/patspecyn");
  1414. if (patspecyn == "Y") {
  1415. //grd_chosrec.rowStatus(i) = 1;
  1416. cnt1++;
  1417. }
  1418. }
  1419. //데이터 삭제 하기위해 그리드가 체크가 안되어 있을경우 입의로 status에 값을 세팅
  1420. if(cnt1 > 0){
  1421. var nodeList = instance1.selectNodes("/root/main/list1/chosreclist[patspecyn='Y']");
  1422. var rCSV = getNodeListCSV(nodeList);
  1423. model.resetInstanceNode("/root/send/update");
  1424. model.setValue("/root/send/update/datalist", rCSV);
  1425. }else{
  1426. grd_chosrec.rowStatus(1) = 2;
  1427. model.resetInstanceNode("/root/send/update");
  1428. model.setValue("/root/send/update/datalist",grd_chosrec.getUpdateData());
  1429. }
  1430. model.makeNode("/root/send/update/pid");
  1431. model.makeNode("/root/send/update/ofidocacptdd");
  1432. model.makeNode("/root/send/update/ofidocretno");
  1433. model.setValue("/root/send/update/pid", pid);
  1434. model.setValue("/root/send/update/ofidocacptdd", ofidocacptdd);
  1435. model.setValue("/root/send/update/ofidocretno", ofidocretno);
  1436. // 수진 내원 내역 저장 / 조회
  1437. if( submit("TXPMC03003")) {
  1438. // model.alert("aaa");
  1439. model.removeNodeset("/root/main/list1");
  1440. model.makeNode("/root/main/list1");
  1441. model.setValue("/root/send/data3/pid", model.getValue("/root/main/ptbs/ptbs_pid"));
  1442. model.setValue("/root/send/data3/ofidocacptdd", model.getValue("/root/main/ptpm/ofidocacptdd"));
  1443. model.setValue("/root/send/data3/ofidocretno", model.getValue("/root/main/ptpm/ofidocretno"));
  1444. model.setValue("/root/send/data3/flag","P");
  1445. // 수진 내원 내역 조회
  1446. // fGetChosRecRef();
  1447. /*
  1448. if( getNodesetCount("/root/hidden/rcv/list1/chosreclist") > 0 ){
  1449. copyNodeType("/root/main/list1","/root/hidden/rcv/list1","replace");
  1450. }
  1451. */
  1452. model.refresh();
  1453. }
  1454. }
  1455. //청구이력
  1456. var rows = model.getValue("/root/temp/clamlistcnt");
  1457. var cnt2 = 0;
  1458. for (i=0; i<rows; i++) {
  1459. var patspecyn= model.getValue("/root/main/list2/clamlist["+ i + "]/patspecyn");
  1460. if (patspecyn == "Y") {
  1461. cnt2++;
  1462. }
  1463. }
  1464. //데이터 삭제 하기위해 그리드가 체크가 안되어 있을경우 입의로 status에 값을 세팅
  1465. if(cnt2 > 0){
  1466. var nodeList = instance1.selectNodes("/root/main/list2/clamlist[patspecyn='Y']");
  1467. var rCSV = getNodeListCSV(nodeList);
  1468. model.resetInstanceNode("/root/send/update");
  1469. model.setValue("/root/send/update/datalist", rCSV);
  1470. }else{
  1471. datagrid1.rowStatus(1) = 2;
  1472. model.resetInstanceNode("/root/send/update");
  1473. model.setValue("/root/send/update/datalist",datagrid1.getUpdateData());
  1474. }
  1475. model.makeNode("/root/send/update/pid");
  1476. model.makeNode("/root/send/update/ofidocacptdd");
  1477. model.makeNode("/root/send/update/ofidocretno");
  1478. model.setValue("/root/send/update/pid", pid);
  1479. model.setValue("/root/send/update/ofidocacptdd", ofidocacptdd);
  1480. model.setValue("/root/send/update/ofidocretno", ofidocretno);
  1481. // 수진 내원 내역 저장 / 조회
  1482. if( submit("TXPMC03005")) {
  1483. // model.alert("aaa");
  1484. model.removeNodeset("/root/main/list2");
  1485. model.makeNode("/root/main/list2");
  1486. model.setValue("/root/send/data3/pid", model.getValue("/root/main/ptbs/ptbs_pid"));
  1487. model.setValue("/root/send/data3/ofidocacptdd", model.getValue("/root/main/ptpm/ofidocacptdd"));
  1488. model.setValue("/root/send/data3/ofidocretno", model.getValue("/root/main/ptpm/ofidocretno"));
  1489. model.setValue("/root/send/data3/flag","P");
  1490. // 수진 내원 내역 조회
  1491. // fGetChosRecRef();
  1492. /*
  1493. if( getNodesetCount("/root/hidden/rcv/list2/clamlist") > 0 ){
  1494. copyNodeType("/root/main/list2","/root/hidden/rcv/list2","replace");
  1495. }
  1496. */
  1497. model.refresh();
  1498. }
  1499. }
  1500. }else {
  1501. //신규입력
  1502. if (submit("TXPMC03001")) {
  1503. //messageBox("입력완료","E999","");
  1504. if( getNodesetCount("/root/hidden/rcv/ptpm/stat") > 0 ){
  1505. copyNodeType("/root/main/ptpm/stat","/root/hidden/rcv/ptpm/stat","replace");
  1506. copyNodeType("/root/main/ptpm/ofidocretno","/root/hidden/rcv/ptpm/ofidocretno","replace");
  1507. model.setValue("/root/main/ptpm/stat", model.getValue("/root/hidden/rcv/ptpm/stat"));
  1508. model.setValue("/root/main/ptpm/ofidocretno", model.getValue("/root/hidden/rcv/ptpm/ofidocretno"));
  1509. //copyNodeType("/root/main/ptpm/stat","/root/hidden/rcv/ptpm/stat","replace");
  1510. //copyNodeType("/root/main/ptpm/ofidocretno","/root/hidden/rcv/ptpm/ofidocretno","replace");
  1511. var rows = model.getValue("/root/temp/chosreclistcnt");
  1512. var flag = "";
  1513. var pid = model.getValue("/root/main/ptbs/ptbs_pid");
  1514. var ofidocacptdd = model.getValue("/root/main/ptpm/ofidocacptdd");
  1515. var ofidocretno = model.getValue("/root/main/ptpm/ofidocretno");
  1516. /*
  1517. for (i=0; i<rows; i++) {
  1518. var patspecyn= model.getValue("/root/main/list1/chosreclist["+ i + "]/patspecyn");
  1519. if (patspecyn == "Y") {
  1520. //grd_chosrec.rowStatus(i) = 1;
  1521. }
  1522. }
  1523. */
  1524. var nodeList = instance1.selectNodes("/root/main/list1/chosreclist[patspecyn='Y']");
  1525. var rCSV = getNodeListCSV(nodeList);
  1526. model.resetInstanceNode("/root/send/update");
  1527. model.setValue("/root/send/update/datalist", rCSV);
  1528. model.makeNode("/root/send/update/pid");
  1529. model.makeNode("/root/send/update/ofidocacptdd");
  1530. model.makeNode("/root/send/update/ofidocretno");
  1531. model.setValue("/root/send/update/pid", pid);
  1532. model.setValue("/root/send/update/ofidocacptdd", ofidocacptdd);
  1533. model.setValue("/root/send/update/ofidocretno", ofidocretno);
  1534. //model.alert(model.getValue("/root/send/update/datalist"));
  1535. // 수진 내원 내역 저장 / 조회
  1536. if( submit("TXPMC03003")) {
  1537. // model.alert("aaa");
  1538. model.removeNodeset("/root/main/list1");
  1539. model.makeNode("/root/main/list1");
  1540. model.setValue("/root/send/data3/pid", model.getValue("/root/main/ptbs/ptbs_pid"));
  1541. model.setValue("/root/send/data3/ofidocacptdd", model.getValue("/root/main/ptpm/ofidocacptdd"));
  1542. model.setValue("/root/send/data3/ofidocretno", model.getValue("/root/main/ptpm/ofidocretno"));
  1543. model.setValue("/root/send/data3/flag","P");
  1544. // 수진 내원 내역 조회
  1545. // fGetChosRecRef();
  1546. if( getNodesetCount("/root/hidden/rcv/list1/chosreclist") > 0 ){
  1547. copyNodeType("/root/main/list1","/root/hidden/rcv/list1","replace");
  1548. }
  1549. model.refresh();
  1550. }
  1551. //청구이력
  1552. var rows = model.getValue("/root/temp/clamlistcnt");
  1553. /*
  1554. for (i=0; i<rows; i++) {
  1555. var patspecyn= model.getValue("/root/main/list2/clamlist["+ i + "]/patspecyn");
  1556. if (patspecyn == "Y") {
  1557. }
  1558. }
  1559. */
  1560. var nodeList = instance1.selectNodes("/root/main/list2/clamlist[patspecyn='Y']");
  1561. var rCSV = getNodeListCSV(nodeList);
  1562. model.resetInstanceNode("/root/send/update");
  1563. model.setValue("/root/send/update/datalist", rCSV);
  1564. model.makeNode("/root/send/update/pid");
  1565. model.makeNode("/root/send/update/ofidocacptdd");
  1566. model.makeNode("/root/send/update/ofidocretno");
  1567. model.setValue("/root/send/update/pid", pid);
  1568. model.setValue("/root/send/update/ofidocacptdd", ofidocacptdd);
  1569. model.setValue("/root/send/update/ofidocretno", ofidocretno);
  1570. // model.alert(model.getValue("/root/send/update/datalist"));
  1571. //return;
  1572. // 수진 내원 내역 저장 / 조회
  1573. if( submit("TXPMC03005")) {
  1574. // model.alert("aaa");
  1575. model.removeNodeset("/root/main/list2");
  1576. model.makeNode("/root/main/list2");
  1577. model.setValue("/root/send/data3/pid", model.getValue("/root/main/ptbs/ptbs_pid"));
  1578. model.setValue("/root/send/data3/ofidocacptdd", model.getValue("/root/main/ptpm/ofidocacptdd"));
  1579. model.setValue("/root/send/data3/ofidocretno", model.getValue("/root/main/ptpm/ofidocretno"));
  1580. model.setValue("/root/send/data3/flag","P");
  1581. // 수진 내원 내역 조회
  1582. // fGetChosRecRef();
  1583. if( getNodesetCount("/root/hidden/rcv/list2/clamlist") > 0 ){
  1584. copyNodeType("/root/main/list2","/root/hidden/rcv/list2","replace");
  1585. }
  1586. model.refresh();
  1587. }
  1588. /*
  1589. model.setValue("/root/send/update/datalist",grd_chosrec.getUpdateData());
  1590. // var a = model.getValue("/root/send/update/datalist");
  1591. // alert(a);
  1592. //
  1593. // 수진 내원 내역 저장 / 조회
  1594. if( submit("TXPMC03003")) {
  1595. if( getNodesetCount("/root/hidden/rcv/list1/chosreclist") > 0 ){
  1596. model.removeNodeset("/root/main/list1");
  1597. model.makeNode("/root/main/list1");
  1598. copyNodeType("/root/main/list1","/root/hidden/rcv/list1","replace");
  1599. }
  1600. }
  1601. */
  1602. }
  1603. }
  1604. }
  1605. AfSafeBaseInfoRef();
  1606. model.refresh();
  1607. ]]>
  1608. </script>
  1609. </button>
  1610. <button id="btn_init" class="btn4_letter3" navindex="37" style="left:1115px; top:5px; width:68px; height:22px; ">
  1611. <caption>초기화</caption>
  1612. <script type="javascript" ev:event="DOMActivate">
  1613. <![CDATA[
  1614. if( messageBox("수진환자 내역을 초기화 하시겠습니까?", "Q999") != 6){
  1615. return;
  1616. }
  1617. fInitialize("all");
  1618. ]]>
  1619. </script>
  1620. </button>
  1621. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1183px; y2:0px; "/>
  1622. <button id="button1" class="btn3_letter6" style="left:2px; top:5px; width:104px; height:22px; ">
  1623. <caption>특이환자관리</caption>
  1624. <script type="javascript" ev:event="DOMActivate">
  1625. <![CDATA[
  1626. modal("SMPMC01300", "1","150","150", "SMPMC01300", "", "");
  1627. ]]>
  1628. </script>
  1629. </button>
  1630. <button id="button9" class="btn3_letter6" style="left:115px; top:5px; width:104px; height:22px; ">
  1631. <caption>민원환자관리</caption>
  1632. <script type="javascript" ev:event="DOMActivate">
  1633. <![CDATA[
  1634. modal("SMPMC00100", "1","100","100", "SMPMC00100", "", "");
  1635. ]]>
  1636. </script>
  1637. </button>
  1638. </group>
  1639. <caption id="caption2" class="cell_1" style="left:558px; top:106px; width:90px; height:23px; text-align:center; vertical-align:middle; ">민원인 연락처</caption>
  1640. <input id="ipt_civilaplertel" ref="/root/main/ptpm/civilaplertel" class="input_default" style="left:558px; top:130px; width:90px; height:19px; ">
  1641. <script type="javascript" ev:event="onkeypress">
  1642. <![CDATA[
  1643. if (event.keyCode == "13")
  1644. {
  1645. model.setFocus("ipt_civilapleraddr");
  1646. }
  1647. ]]>
  1648. </script>
  1649. </input>
  1650. <button id="btn_ptbshngnm" class="icon_search" style="left:183px; top:57px; width:16px; height:16px; ">
  1651. <caption/>
  1652. <script type="javascript" ev:event="DOMActivate">
  1653. <![CDATA[
  1654. var ptbs_hngnm = model.getValue("/root/main/ptbs/ptbs_hngnm");
  1655. if (ptbs_hngnm == null || ptbs_hngnm ==" " || ptbs_hngnm == "") {
  1656. model.resetInstanceNode("/root/send/data4");
  1657. } else {
  1658. model.setValue("/root/send/data4/hngnm",model.getValue("/root/main/ptbs/ptbs_hngnm"));
  1659. model.setValue("/root/send/data4/srchcond","2");
  1660. }
  1661. modal("../../../pam/patinfomngtweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/send/data4", "/root/send");
  1662. model.resetInstanceNode("/root/send/data4");
  1663. fBaseInfoRef();
  1664. ]]>
  1665. </script>
  1666. </button>
  1667. <button id="btn_ptbspid" class="icon_search" style="left:183px; top:33px; width:16px; height:16px; ">
  1668. <caption/>
  1669. <script type="javascript" ev:event="DOMActivate">
  1670. <![CDATA[
  1671. var ptbs_pid = model.getValue("/root/main/ptbs/ptbs_pid");
  1672. if (ptbs_pid == null || ptbs_pid ==" " || ptbs_pid == "") {
  1673. model.resetInstanceNode("/root/send/data4");
  1674. } else {
  1675. model.setValue("/root/send/data4/pid",model.getValue("/root/main/ptbs/ptbs_pid"));
  1676. model.setValue("/root/send/data4/srchcond","1");
  1677. }
  1678. modal("../../../pam/patinfomngtweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/send/data4", "/root/send");
  1679. model.resetInstanceNode("/root/send/data4");
  1680. fBaseInfoRef();
  1681. ]]>
  1682. </script>
  1683. </button>
  1684. <button id="btn_ptbsrrgstno" class="icon_search" style="left:452px; top:32px; width:16px; height:16px; ">
  1685. <caption/>
  1686. <script type="javascript" ev:event="DOMActivate">
  1687. <![CDATA[
  1688. var ptbs_rrgstno1 = model.getValue("/root/main/ptbs/ptbs_rrgstno1");
  1689. var ptbs_rrgstno2 = model.getValue("/root/main/ptbs/ptbs_rrgstno2");
  1690. if ((ptbs_rrgstno1 == null || ptbs_rrgstno1 ==" " || ptbs_rrgstno1 == "") && (ptbs_rrgstno2 == null || ptbs_rrgstno2 ==" " || ptbs_rrgstno2 == "")) {
  1691. model.resetInstanceNode("/root/send/data4");
  1692. } else {
  1693. model.setValue("/root/send/data4/rrgstno1",model.getValue("/root/main/ptbs/ptbs_rrgstno1"));
  1694. model.setValue("/root/send/data4/rrgstno2",model.getValue("/root/main/ptbs/ptbs_rrgstno2"));
  1695. model.setValue("/root/send/data4/srchcond","3")
  1696. }
  1697. modal("../../../pam/patinfomngtweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/send/data4", "/root/send");
  1698. model.resetInstanceNode("/root/send/data4");
  1699. fBaseInfoRef();
  1700. ]]>
  1701. </script>
  1702. </button>
  1703. <input id="pid" ref="/root/main/ptbs/ptbs_pid" class="input_s_essential" navindex="1" style="left:84px; top:31px; width:95px; height:19px; ">
  1704. <script type="javascript" ev:event="onkeypress">
  1705. <![CDATA[
  1706. // 구현예정 : 재원중인 환자일경우 메세지 처리한다.
  1707. if (event.keyCode=='13') {
  1708. // popup open 없이 조회
  1709. model.setFocus("btn_ptbspid");
  1710. model.makeNode("/root/main/popupendflag");
  1711. model.setValue("/root/main/popupendflag","pass");
  1712. fBaseInfoRef();
  1713. var rows = model.getValue("/root/temp/chosreclistcnt");
  1714. var totordamtsum = '0';
  1715. var totownbamtsum = '0';
  1716. var nopyamttsum = '0';
  1717. var specordamtsum = '0';
  1718. var uncoamtsum = '0';
  1719. var discamtsum = '0';
  1720. for (i=0; i<rows; i++) {
  1721. if(model.getValue("/root/main/list1/chosreclist["+ i + "]/patspecyn") == 'Y' ){
  1722. var temp1 = model.getValue("/root/main/list1/chosreclist["+ i + "]/totordamt");
  1723. var temp2 = model.getValue("/root/main/list1/chosreclist["+ i + "]/nopyamt");
  1724. var temp3 = model.getValue("/root/main/list1/chosreclist["+ i + "]/specordamt");
  1725. var temp4 = model.getValue("/root/main/list1/chosreclist["+ i + "]/uncototamt");
  1726. var temp5 = model.getValue("/root/main/list1/chosreclist["+ i + "]/discamt");
  1727. var temp6 = model.getValue("/root/main/list1/chosreclist["+ i + "]/totownbamt");
  1728. totordamtsum = parseInt(totordamtsum) + parseInt(temp1);
  1729. nopyamttsum = parseInt(nopyamttsum) + parseInt(temp2);
  1730. specordamtsum = parseInt(specordamtsum) + parseInt(temp3);
  1731. uncoamtsum = parseInt(uncoamtsum) + parseInt(temp4);
  1732. discamtsum = parseInt(discamtsum) + parseInt(temp5);
  1733. totownbamtsum = parseInt(totownbamtsum) + parseInt(temp6);
  1734. }
  1735. }
  1736. model.setValue("/root/main/ptpm/totalamt", totordamtsum);
  1737. model.setValue("/root/main/ptpm/patowntotamt", totownbamtsum);
  1738. model.setValue("/root/main/ptpm/nonpayallamt", nopyamttsum);
  1739. model.setValue("/root/main/ptpm/choiordamt", specordamtsum);
  1740. model.setValue("/root/main/ptpm/uncoamt", uncoamtsum);
  1741. model.setValue("/root/main/ptpm/discamt", discamtsum);
  1742. }
  1743. ipt_uncoamt.refresh();
  1744. ]]>
  1745. </script>
  1746. </input>
  1747. <input id="ipt_rrgstno1" ref="/root/main/ptbs/ptbs_rrgstno1" class="input_s_essential" navindex="2" style="left:325px; top:31px; width:60px; height:19px; ">
  1748. <script type="javascript" ev:event="onkeypress">
  1749. <![CDATA[
  1750. if (event.keyCode=='13') {
  1751. model.setValue("/root/send/data4/autoflag","Y");
  1752. inputEnterKey("btn_ptbsrrgstno", "DOMActivate");
  1753. }
  1754. ]]>
  1755. </script>
  1756. </input>
  1757. <output id="opt_rrgstno2" ref="/root/main/ptbs/ptbs_rrgstno2" class="output_fix" appearance="output" style="left:388px; top:31px; width:60px; height:19px; "/>
  1758. <input id="ipt_hngnm" ref="/root/main/ptbs/ptbs_hngnm" class="input_s_essential" navindex="3" style="left:84px; top:55px; width:95px; height:19px; ">
  1759. <script type="javascript" ev:event="onkeypress">
  1760. <![CDATA[
  1761. if (event.keyCode=='13') {
  1762. model.setValue("/root/send/data4/autoflag","Y");
  1763. inputEnterKey("btn_ptbshngnm", "DOMActivate");
  1764. }
  1765. ]]>
  1766. </script>
  1767. </input>
  1768. <output id="opt_mpphontel" ref="/root/main/ptbs/ptbs_mpphontel" class="output_fix" appearance="output" style="left:428px; top:55px; width:100px; height:19px; "/>
  1769. <output id="opt_sex" ref="/root/main/ptbs/ptbs_sex" class="output_fix" appearance="output" style="left:473px; top:31px; width:26px; height:19px; "/>
  1770. <output id="opt_age" ref="/root/main/ptbs/ptbs_age" class="output_fix" appearance="output" style="left:502px; top:31px; width:26px; height:19px; "/>
  1771. <output id="opt_hometel" ref="/root/main/ptbs/ptbs_hometel" class="output_fix" appearance="output" style="left:325px; top:55px; width:100px; height:19px; "/>
  1772. <output id="opt_zipcd1" ref="/root/main/ptbs/ptbs_zipcd1" class="output_fix" appearance="output" style="left:918px; top:31px; width:45px; height:19px; "/>
  1773. <output id="opt_zipcd2" ref="/root/main/ptbs/ptbs_zipcd2" class="output_fix" appearance="output" style="left:966px; top:31px; width:45px; height:19px; "/>
  1774. <output id="opt_address" ref="/root/main/ptbs/ptbs_zipnm" class="output_fix" appearance="output" style="left:1014px; top:31px; width:172px; height:19px; "/>
  1775. <output id="opt_detladdr" ref="/root/main/ptbs/ptbs_detladdr" class="output_fix" appearance="output" style="left:918px; top:55px; width:267px; height:19px; "/>
  1776. <select1 id="cmb_datadelive" ref="/root/main/ptpm/datadelive" class="combo_default" navindex="9" appearance="minimal" sstyle="left:123px; top:176px; width:115px; height:19px;">
  1777. <choices>
  1778. <item>
  1779. <label>선택진료</label>
  1780. <value>1</value>
  1781. </item>
  1782. <item>
  1783. <label>개인별내역</label>
  1784. <value>2</value>
  1785. </item>
  1786. <item>
  1787. <label>의무기록</label>
  1788. <value>3</value>
  1789. </item>
  1790. </choices>
  1791. </select1>
  1792. <caption id="caption21" class="cell_1" style="left:486px; top:106px; width:70px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">민원제기자</caption>
  1793. <input id="ipt_civilapler" ref="/root/main/ptpm/civilapler" class="input_default" style="left:486px; top:130px; width:70px; height:19px; ">
  1794. <script type="javascript" ev:event="onkeypress">
  1795. <![CDATA[
  1796. if (event.keyCode == "13")
  1797. {
  1798. model.setFocus("ipt_civilaplertel");
  1799. }
  1800. ]]>
  1801. </script>
  1802. </input>
  1803. <caption id="caption26" class="cell_1" style="left:650px; top:106px; width:288px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">주소</caption>
  1804. <input id="ipt_civilapleraddr" ref="/root/main/ptpm/civilapleraddr" class="input_default" navindex="13" style="left:650px; top:130px; width:288px; height:19px; ">
  1805. <script type="javascript" ev:event="onkeypress">
  1806. <![CDATA[
  1807. if (event.keyCode == "13")
  1808. {
  1809. model.setFocus("tar_jvirem");
  1810. }
  1811. ]]>
  1812. </script>
  1813. </input>
  1814. <caption id="caption28" class="cell_1" style="left:660px; top:151px; width:273px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">민원요지</caption>
  1815. <input id="ipt_civilaplcnts" ref="/root/main/ptpm/civilaplcnts" class="input_default" navindex="12" style="left:660px; top:177px; width:273px; height:19px; ">
  1816. <script type="javascript" ev:event="onkeypress">
  1817. <![CDATA[
  1818. if (event.keyCode == "13")
  1819. {
  1820. model.setFocus("tar_etcrem");
  1821. }
  1822. ]]>
  1823. </script>
  1824. </input>
  1825. <line id="line13" class="line_1" style="x1:5px; y1:216px; x2:582px; y2:216px; "/>
  1826. <caption id="caption36" class="cell_1" style="left:196px; top:221px; width:92px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">비급여전체금액</caption>
  1827. <input id="ipt_nonpayallamt" ref="/root/main/ptpm/nonpayallamt" class="input_default" navindex="16" format="(-)#,###" style="left:196px; top:246px; width:92px; height:19px; text-align:right; background-color:#cc99ff; "/>
  1828. <caption id="caption39" class="cell_1" style="left:467px; top:221px; width:115px; height:23px; text-align:center; vertical-align:middle; ">선택진료환불예상액</caption>
  1829. <input id="ipt_choiordrtnfcstamt" ref="/root/main/ptpm/choiordrtnfcstamt" class="input_default" disabled="false" navindex="19" format="(-)#,###" style="left:467px; top:246px; width:115px; height:19px; text-align:right; ">
  1830. <script type="javascript" ev:event="onkeypress">
  1831. <![CDATA[
  1832. if (event.keyCode == "13")
  1833. {
  1834. model.setFocus("ipt_paycalcfcstamt");
  1835. }
  1836. ]]>
  1837. </script>
  1838. </input>
  1839. <line id="line14" class="line_3" style="x1:5px; y1:196px; x2:479px; y2:196px; "/>
  1840. <line id="line17" class="line_3" style="x1:5px; y1:265px; x2:582px; y2:265px; "/>
  1841. <caption id="caption42" class="tit_2" style="left:10px; top:271px; width:204px; height:13px; font-family:돋움; vertical-align:middle; ">진행사항</caption>
  1842. <line id="line12" class="line_1" style="x1:5px; y1:287px; x2:1184px; y2:286px; "/>
  1843. <input id="ipt_rtnschenotidd" ref="/root/main/ptpm/rtnschenotidd" class="input_default" navindex="23" inputtype="date" style="left:5px; top:321px; width:85px; height:19px; ">
  1844. <script type="javascript" ev:event="onkeypress">
  1845. <![CDATA[
  1846. if (event.keyCode == "13")
  1847. {
  1848. model.setFocus("ipt_rtnschenotidocuno");
  1849. }
  1850. ]]>
  1851. </script>
  1852. </input>
  1853. <caption id="caption43" class="cell_1" style="left:5px; top:290px; width:85px; height:29px; color:#000000; text-align:center; vertical-align:middle; ">
  1854. <![CDATA[환불예정
  1855. 통보일]]>
  1856. </caption>
  1857. <input id="ipt_rtnschenotiamt" ref="/root/main/ptpm/rtnschenotiamt" class="combo_default" navindex="25" inputtype="button" format="(-)#,###" appearance="minimal" style="left:177px; top:321px; width:70px; height:19px; text-align:right; vertical-align:bottom; ">
  1858. <script type="javascript" ev:event="onbuttonclick">
  1859. <![CDATA[
  1860. setParameter("fcstordmat", model.getValue("/root/main/ptpm/fcstordmat"));
  1861. setParameter("fcstinamt", model.getValue("/root/main/ptpm/fcstinamt"));
  1862. setParameter("fcstchrgfood", model.getValue("/root/main/ptpm/fcstchrgfood"));
  1863. setParameter("fcstmedimpsamt", model.getValue("/root/main/ptpm/fcstmedimpsamt"));
  1864. setParameter("fcstinjamt", model.getValue("/root/main/ptpm/fcstinjamt"));
  1865. setParameter("fcstanstamt", model.getValue("/root/main/ptpm/fcstanstamt"));
  1866. setParameter("fcstcureopamt", model.getValue("/root/main/ptpm/fcstcureopamt"));
  1867. setParameter("fcsttestamt", model.getValue("/root/main/ptpm/fcsttestamt"));
  1868. setParameter("fcstimgdiagrayamt", model.getValue("/root/main/ptpm/fcstimgdiagrayamt"));
  1869. setParameter("fcstscitamt", model.getValue("/root/main/ptpm/fcstscitamt"));
  1870. setParameter("fcstpsypamt", model.getValue("/root/main/ptpm/fcstpsypamt"));
  1871. setParameter("fcstctordamt", model.getValue("/root/main/ptpm/fcstctordamt"));
  1872. setParameter("fcstmriordamt", model.getValue("/root/main/ptpm/fcstmriordamt"));
  1873. setParameter("fcstpetordamt", model.getValue("/root/main/ptpm/fcstpetordamt"));
  1874. setParameter("fcstchoiordamt", model.getValue("/root/main/ptpm/fcstchoiordamt"));
  1875. setParameter("fcstnopyamt", model.getValue("/root/main/ptpm/fcstnopyamt"));
  1876. setParameter("fcstetcamt", model.getValue("/root/main/ptpm/fcstetcamt"));
  1877. setParameter("fcstcurematramt", model.getValue("/root/main/ptpm/fcstcurematramt"));
  1878. setParameter("deciordmat", model.getValue("/root/main/ptpm/deciordmat"));
  1879. setParameter("deciinamt", model.getValue("/root/main/ptpm/deciinamt"));
  1880. setParameter("decichrgfood", model.getValue("/root/main/ptpm/decichrgfood"));
  1881. setParameter("decimedimpsamt", model.getValue("/root/main/ptpm/decimedimpsamt"));
  1882. setParameter("deciinjamt", model.getValue("/root/main/ptpm/deciinjamt"));
  1883. setParameter("decianstamt", model.getValue("/root/main/ptpm/decianstamt"));
  1884. setParameter("decicureopamt", model.getValue("/root/main/ptpm/decicureopamt"));
  1885. setParameter("decitestamt", model.getValue("/root/main/ptpm/decitestamt"));
  1886. setParameter("deciimgdiagrayamt", model.getValue("/root/main/ptpm/deciimgdiagrayamt"));
  1887. setParameter("deciscitamt", model.getValue("/root/main/ptpm/deciscitamt"));
  1888. setParameter("decipsypamt", model.getValue("/root/main/ptpm/decipsypamt"));
  1889. setParameter("decictordamt", model.getValue("/root/main/ptpm/decictordamt"));
  1890. setParameter("decimriordamt", model.getValue("/root/main/ptpm/decimriordamt"));
  1891. setParameter("decipetordamt", model.getValue("/root/main/ptpm/decipetordamt"));
  1892. setParameter("decichoiordamt", model.getValue("/root/main/ptpm/decichoiordamt"));
  1893. setParameter("decinopyamt", model.getValue("/root/main/ptpm/decinopyamt"));
  1894. setParameter("decietcamt", model.getValue("/root/main/ptpm/decietcamt"));
  1895. setParameter("decicurematramt", model.getValue("/root/main/ptpm/decicurematramt"));
  1896. open("SPPMC07000");
  1897. model.refresh();
  1898. ]]>
  1899. </script>
  1900. <script type="javascript" ev:event="onkeypress">
  1901. <![CDATA[
  1902. if (event.keyCode == "13")
  1903. {
  1904. model.setFocus("ipt_ioflag");
  1905. }
  1906. ]]>
  1907. </script>
  1908. </input>
  1909. <caption id="caption46" class="cell_1" style="left:177px; top:290px; width:70px; height:29px; color:#000000; text-align:center; vertical-align:middle; ">
  1910. <![CDATA[환불예정
  1911. 통보액]]>
  1912. </caption>
  1913. <select1 id="ipt_ioflag" ref="/root/main/ptpm/ioflag" navindex="26" appearance="minimal" style="left:249px; top:321px; width:55px; height:19px; ">
  1914. <choices>
  1915. <itemset nodeset="/root/init/P0485list/P0485">
  1916. <label ref="cdnm"/>
  1917. <value ref="cdid"/>
  1918. </itemset>
  1919. </choices>
  1920. <script type="javascript" ev:event="onkeypress">
  1921. <![CDATA[
  1922. if (event.keyCode == "13")
  1923. {
  1924. model.setFocus("ipt_ordfromdd");
  1925. }
  1926. ]]>
  1927. </script>
  1928. </select1>
  1929. <caption id="caption47" class="cell_1" style="left:249px; top:290px; width:55px; height:29px; color:#000000; text-align:center; vertical-align:middle; ">내원구분</caption>
  1930. <caption id="caption48" class="cell_1" style="left:306px; top:290px; width:85px; height:29px; color:#000000; text-align:center; vertical-align:middle; ">진료시작일자</caption>
  1931. <input id="ipt_ordfromdd" ref="/root/main/ptpm/ordfromdd" class="input_default" navindex="27" inputtype="date" style="left:306px; top:321px; width:85px; height:19px; ">
  1932. <script type="javascript" ev:event="onkeypress">
  1933. <![CDATA[
  1934. if (event.keyCode == "13")
  1935. {
  1936. model.setFocus("ipt_ordtodd");
  1937. }
  1938. ]]>
  1939. </script>
  1940. </input>
  1941. <caption id="caption49" class="cell_1" style="left:5px; top:345px; width:95px; height:29px; color:#000000; text-align:center; vertical-align:middle; ">
  1942. <![CDATA[이의신청
  1943. 결정일]]>
  1944. </caption>
  1945. <input id="ipt_obtappdecidd" ref="/root/main/ptpm/obtappdecidd" class="input_default" navindex="32" inputtype="date" style="left:5px; top:376px; width:95px; height:19px; ">
  1946. <script type="javascript" ev:event="onkeypress">
  1947. <![CDATA[
  1948. if (event.keyCode == "13")
  1949. {
  1950. model.setFocus("ipt_obtappdecidocuno");
  1951. }
  1952. ]]>
  1953. </script>
  1954. </input>
  1955. <caption id="caption50" class="cell_1" style="left:102px; top:345px; width:122px; height:29px; color:#000000; text-align:center; vertical-align:middle; ">
  1956. <![CDATA[이의신청결정
  1957. 문서번호]]>
  1958. </caption>
  1959. <input id="ipt_obtappdecidocuno" ref="/root/main/ptpm/obtappdecidocuno" class="input_default" navindex="33" style="left:102px; top:376px; width:122px; height:19px; ">
  1960. <script type="javascript" ev:event="onkeypress">
  1961. <![CDATA[
  1962. if (event.keyCode == "13")
  1963. {
  1964. model.setFocus("ipt_obtapprcamt");
  1965. }
  1966. ]]>
  1967. </script>
  1968. </input>
  1969. <input id="ipt_obtappaftrtndeciamt" ref="/root/main/ptpm/obtappaftrtndeciamt" class="input_default" navindex="34" format="(-)#,###" style="left:323px; top:376px; width:95px; height:19px; text-align:right; ">
  1970. <script type="javascript" ev:event="onkeypress">
  1971. <![CDATA[
  1972. if (event.keyCode == "13")
  1973. {
  1974. model.setFocus("ipt_obtapprsltrem");
  1975. }
  1976. ]]>
  1977. </script>
  1978. </input>
  1979. <caption id="caption51" class="cell_1" style="left:323px; top:345px; width:95px; height:29px; color:#000000; text-align:center; vertical-align:middle; ">
  1980. <![CDATA[이의신청후
  1981. 환불결정액]]>
  1982. </caption>
  1983. <input id="ipt_judgrid" ref="/root/main/ptpm/judgrid" class="input_default" navindex="29" style="left:480px; top:321px; width:55px; height:19px; text-align:right; ">
  1984. <script type="javascript" ev:event="onkeypress">
  1985. <![CDATA[
  1986. if (event.keyCode == "13")
  1987. {
  1988. model.setFocus("ipt_addreqdd");
  1989. }
  1990. ]]>
  1991. </script>
  1992. </input>
  1993. <caption id="caption52" class="cell_1" style="left:480px; top:290px; width:55px; height:29px; color:#000000; text-align:center; vertical-align:middle; ">심사자</caption>
  1994. <line id="line18" class="line_2" style="x1:5px; y1:342px; x2:1185px; y2:342px; "/>
  1995. <line id="line20" class="line_1" style="x1:935px; y1:164px; x2:1186px; y2:164px; "/>
  1996. <caption id="caption53" class="tit_2" style="left:935px; top:151px; width:169px; height:13px; font-family:돋움; color:#000000; vertical-align:middle; ">기타기록사항</caption>
  1997. <textarea id="tar_etcrem" ref="/root/main/ptpm/etcrem" class="input_default" appearance="textarea" style="left:935px; top:168px; width:251px; height:29px; ">
  1998. <script type="javascript" ev:event="onkeypress">
  1999. <![CDATA[
  2000. if (event.keyCode == "13")
  2001. {
  2002. model.setFocus("ipt_insuteamrtnfcstamt");
  2003. }
  2004. ]]>
  2005. </script>
  2006. </textarea>
  2007. <line id="line11" class="line_1" style="x1:6px; y1:163px; x2:479px; y2:163px; "/>
  2008. <line id="line15" class="line_2" style="x1:5px; y1:150px; x2:474px; y2:150px; "/>
  2009. <line id="line7" class="line_1" style="x1:487px; y1:103px; x2:936px; y2:102px; "/>
  2010. <line id="line22" class="line_2" style="x1:485px; y1:150px; x2:961px; y2:150px; "/>
  2011. <line id="line16" class="line_3" style="x1:482px; y1:196px; x2:1184px; y2:196px; "/>
  2012. <line id="line23" class="line_3" style="x1:587px; y1:265px; x2:1181px; y2:265px; "/>
  2013. <line id="line24" class="line_2" style="x1:481px; y1:151px; x2:596px; y2:151px; "/>
  2014. <button id="btn_all" class="btn1_letter4" style="left:1039px; top:470px; width:80px; height:22px; ">
  2015. <caption>전체조회</caption>
  2016. <script type="javascript" ev:event="DOMActivate">
  2017. <![CDATA[
  2018. model.setValue("/root/send/data3/pid", model.getValue("/root/main/ptbs/ptbs_pid"));
  2019. model.setValue("/root/send/data3/ofidocacptdd", model.getValue("/root/main/ptpm/ofidocacptdd"));
  2020. model.setValue("/root/send/data3/ofidocdocuno", model.getValue("/root/main/ptpm/ofidocdocuno"));
  2021. model.setValue("/root/send/data3/flag","A");
  2022. // 수진 내원 내역 조회
  2023. fGetChosRecRef();
  2024. var rows = model.getValue("/root/temp/chosreclistcnt");
  2025. var totordamtsum = '0'
  2026. var totownbamtsum = '0';;
  2027. var nopyamttsum = '0';
  2028. var specordamtsum = '0';
  2029. var uncoamtsum = '0';
  2030. var discamtsum = '0';
  2031. for (i=0; i<rows; i++) {
  2032. if(model.getValue("/root/main/list1/chosreclist["+ i + "]/patspecyn") == 'Y' ){
  2033. var temp1 = model.getValue("/root/main/list1/chosreclist["+ i + "]/totordamt");
  2034. var temp2 = model.getValue("/root/main/list1/chosreclist["+ i + "]/nopyamt");
  2035. var temp3 = model.getValue("/root/main/list1/chosreclist["+ i + "]/specordamt");
  2036. var temp4 = model.getValue("/root/main/list1/chosreclist["+ i + "]/uncototamt");
  2037. var temp5 = model.getValue("/root/main/list1/chosreclist["+ i + "]/discamt");
  2038. var temp6 = model.getValue("/root/main/list1/chosreclist["+ i + "]/totownbamt");
  2039. totordamtsum = parseInt(totordamtsum) + parseInt(temp1);
  2040. nopyamttsum = parseInt(nopyamttsum) + parseInt(temp2);
  2041. specordamtsum = parseInt(specordamtsum) + parseInt(temp3);
  2042. uncoamtsum = parseInt(uncoamtsum) + parseInt(temp4);
  2043. discamtsum = parseInt(discamtsum) + parseInt(temp5);
  2044. totownbamtsum = parseInt(totownbamtsum) + parseInt(temp6);
  2045. }
  2046. }
  2047. model.setValue("/root/main/ptpm/totalamt", totordamtsum);
  2048. model.setValue("/root/main/ptpm/patowntotamt", totownbamtsum);
  2049. model.setValue("/root/main/ptpm/nonpayallamt", nopyamttsum);
  2050. model.setValue("/root/main/ptpm/choiordamt", specordamtsum);
  2051. model.setValue("/root/main/ptpm/uncoamt", uncoamtsum);
  2052. model.setValue("/root/main/ptpm/discamt", discamtsum);
  2053. //수진 내역 기존 선택여부 조회
  2054. //fGetColorChangeChoslist();
  2055. model.refresh();
  2056. ]]>
  2057. </script>
  2058. </button>
  2059. <caption id="caption7" class="tit_2" style="left:5px; top:150px; width:124px; height:13px; font-family:돋움; vertical-align:middle; ">심평원참고사항</caption>
  2060. <caption id="caption11" class="tit_2" style="left:10px; top:200px; width:104px; height:14px; font-family:돋움; color:#000000; vertical-align:middle; ">분쟁대상금액</caption>
  2061. <caption id="caption12" class="cell_1" style="left:1108px; top:105px; width:77px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">할인액</caption>
  2062. <caption id="caption15" class="cell_1" style="left:1029px; top:105px; width:77px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">미수액</caption>
  2063. <input id="ipt_uncoamt" ref="/root/main/ptpm/uncoamt" class="input_default" disabled="false" navindex="19" format="(-)#,###" style="left:1029px; top:130px; width:77px; height:19px; text-align:right; background-color:#cc99ff; "/>
  2064. <input id="ipt_discamt" ref="/root/main/ptpm/discamt" class="input_default" navindex="20" format="(-)#,###" style="left:1108px; top:130px; width:77px; height:19px; text-align:right; background-color:#cc99ff; "/>
  2065. <select1 id="radio13" ref="/root/main/ioflag" appearance="full" cellspacing="8" cols="6" rows="1" overflow="visible" style="left:185px; top:475px; width:170px; height:16px; background-color:transparent; border-style:none; ">
  2066. <choices>
  2067. <item>
  2068. <label>전체</label>
  2069. <value>A</value>
  2070. </item>
  2071. <item>
  2072. <label>외래</label>
  2073. <value>O</value>
  2074. </item>
  2075. <item>
  2076. <label>입원</label>
  2077. <value>I</value>
  2078. </item>
  2079. </choices>
  2080. <script type="javascript" ev:event="xforms-value-changed">
  2081. <![CDATA[
  2082. var ioflag = radio13.value;
  2083. if( ioflag == "O" ){ //외래
  2084. grd_chosrec.attribute("nodeset") = "/root/main/list1/chosreclist[ ioflag ='O' ]";
  2085. datagrid1.attribute("nodeset") = "/root/main/list2/clamlist[ ioflag ='O' ]";
  2086. grd_chosrec.rebuild();
  2087. datagrid1.rebuild();
  2088. }else if( ioflag == "I"){ //입원
  2089. grd_chosrec.attribute("nodeset") = "/root/main/list1/chosreclist[ ioflag ='I' ]";
  2090. datagrid1.attribute("nodeset") = "/root/main/list2/clamlist[ ioflag ='I' ]";
  2091. grd_chosrec.rebuild();
  2092. datagrid1.rebuild();
  2093. }else{
  2094. grd_chosrec.attribute("nodeset") = "/root/main/list1/chosreclist";
  2095. datagrid1.attribute("nodeset") = "/root/main/list2/clamlist";
  2096. grd_chosrec.rebuild();
  2097. datagrid1.rebuild();
  2098. }
  2099. //fGetColorChangeChoslist();
  2100. ]]>
  2101. </script>
  2102. </select1>
  2103. <caption id="caption17" class="cell_1" style="left:943px; top:290px; width:85px; height:29px; text-align:center; vertical-align:middle; ">이의신청일</caption>
  2104. <input id="ipt_obtappdd" ref="/root/main/ptpm/obtappdd" class="input_default" navindex="30" inputtype="date" style="left:943px; top:321px; width:85px; height:19px; ">
  2105. <script type="javascript" ev:event="xforms-value-changed">
  2106. <![CDATA[
  2107. var value = model.getValue("/root/main/ptpm/cncldocudelivedd");
  2108. if ( value != "") {
  2109. ipt_lastenddd.value = value;
  2110. }
  2111. ]]>
  2112. </script>
  2113. <script type="javascript" ev:event="onkeypress">
  2114. <![CDATA[
  2115. if (event.keyCode == "13")
  2116. {
  2117. model.setFocus("ipt_obtappdecino");
  2118. }
  2119. ]]>
  2120. </script>
  2121. </input>
  2122. <caption id="caption19" class="cell_1" style="left:1030px; top:290px; width:83px; height:29px; text-align:center; vertical-align:middle; ">
  2123. <![CDATA[이의신청
  2124. 문서번호]]>
  2125. </caption>
  2126. <input id="ipt_obtappdecino" ref="/root/main/ptpm/obtappdocuno" class="input_default" navindex="31" style="left:1030px; top:321px; width:83px; height:19px; ">
  2127. <script type="javascript" ev:event="onkeypress">
  2128. <![CDATA[
  2129. if (event.keyCode == "13")
  2130. {
  2131. model.setFocus("ipt_obtappamt");
  2132. }
  2133. ]]>
  2134. </script>
  2135. </input>
  2136. <input id="ipt_obtappamt" ref="/root/main/ptpm/obtappamt" class="input_default" format="(-)#,###" style="left:1115px; top:321px; width:70px; height:19px; text-align:right; ">
  2137. <script type="javascript" ev:event="onkeypress">
  2138. <![CDATA[
  2139. if (event.keyCode == "13")
  2140. {
  2141. model.setFocus("ipt_obtappdecidd");
  2142. }
  2143. ]]>
  2144. </script>
  2145. </input>
  2146. <caption id="caption38" class="cell_1" style="left:1115px; top:290px; width:70px; height:29px; text-align:center; vertical-align:middle; ">이의신청액</caption>
  2147. <caption id="caption40" class="cell_1" style="left:609px; top:345px; width:131px; height:29px; color:#000000; text-align:center; vertical-align:middle; ">심사청구문서번호</caption>
  2148. <caption id="caption41" class="cell_1" style="left:742px; top:345px; width:95px; height:29px; color:#000000; text-align:center; vertical-align:middle; ">심사청구액</caption>
  2149. <caption id="caption54" class="cell_1" style="left:839px; top:345px; width:105px; height:29px; text-align:center; vertical-align:middle; ">심사청구결정일</caption>
  2150. <input id="ipt_judgclamdecidd" ref="/root/main/ptpm/judgclamdecidd" class="input_default" navindex="39" inputtype="date" style="left:839px; top:376px; width:105px; height:19px; ">
  2151. <script type="javascript" ev:event="onkeypress">
  2152. <![CDATA[
  2153. if (event.keyCode == "13")
  2154. {
  2155. model.setFocus("ipt_judgclamdecidocuno");
  2156. }
  2157. ]]>
  2158. </script>
  2159. </input>
  2160. <input id="ipt_judgclamamt" ref="/root/main/ptpm/judgclamamt" class="input_default" navindex="38" format="(-)#,###" style="left:742px; top:376px; width:95px; height:19px; text-align:right; ">
  2161. <script type="javascript" ev:event="onkeypress">
  2162. <![CDATA[
  2163. if (event.keyCode == "13")
  2164. {
  2165. model.setFocus("ipt_judgclamdecidd");
  2166. }
  2167. ]]>
  2168. </script>
  2169. </input>
  2170. <input id="ipt_judgclamdocuno" ref="/root/main/ptpm/judgclamdocuno" class="input_default" navindex="37" style="left:609px; top:376px; width:131px; height:19px; ">
  2171. <script type="javascript" ev:event="onkeypress">
  2172. <![CDATA[
  2173. if (event.keyCode == "13")
  2174. {
  2175. model.setFocus("ipt_judgclamamt");
  2176. }
  2177. ]]>
  2178. </script>
  2179. </input>
  2180. <line id="line6" class="line_3" style="x1:5px; y1:396px; x2:1187px; y2:396px; "/>
  2181. <input id="ipt_judgclamdecidocuno" ref="/root/main/ptpm/judgclamdecidocuno" class="input_default" navindex="40" style="left:946px; top:376px; width:115px; height:19px; ">
  2182. <script type="javascript" ev:event="onkeypress">
  2183. <![CDATA[
  2184. if (event.keyCode == "13")
  2185. {
  2186. model.setFocus("ipt_judgclamaftrtndeciamt");
  2187. }
  2188. ]]>
  2189. </script>
  2190. </input>
  2191. <caption id="caption55" class="cell_1" style="left:946px; top:345px; width:115px; height:29px; color:#000000; text-align:center; vertical-align:middle; ">심사청구결정문서</caption>
  2192. <caption id="caption56" class="cell_1" style="left:1063px; top:345px; width:122px; height:29px; text-align:center; vertical-align:middle; ">
  2193. <![CDATA[심사청구후
  2194. 환불결정액]]>
  2195. </caption>
  2196. <input id="ipt_judgclamaftrtndeciamt" ref="/root/main/ptpm/judgclamaftrtndeciamt" class="input_default" navindex="41" format="(-)#,###" style="left:1063px; top:376px; width:122px; height:19px; text-align:right; ">
  2197. <script type="javascript" ev:event="onkeypress">
  2198. <![CDATA[
  2199. if (event.keyCode == "13")
  2200. {
  2201. model.setFocus("ipt_tretflag");
  2202. }
  2203. ]]>
  2204. </script>
  2205. </input>
  2206. <caption id="caption57" class="tit_2" style="left:5px; top:401px; width:184px; height:13px; font-family:돋움; vertical-align:middle; ">처리사항</caption>
  2207. <line id="line19" class="line_1" style="x1:5px; y1:417px; x2:1184px; y2:416px; "/>
  2208. <line id="line21" class="line_3" style="x1:0px; y1:464px; x2:1182px; y2:464px; "/>
  2209. <select1 id="ipt_tretflag" ref="/root/main/ptpm/tretflag" navindex="42" appearance="minimal" style="left:5px; top:445px; width:85px; height:19px; ">
  2210. <choices>
  2211. <item>
  2212. <label>진행</label>
  2213. <value>1</value>
  2214. </item>
  2215. <item>
  2216. <label>취하</label>
  2217. <value>2</value>
  2218. </item>
  2219. <item>
  2220. <label>정당</label>
  2221. <value>3</value>
  2222. </item>
  2223. <item>
  2224. <label>환불</label>
  2225. <value>4</value>
  2226. </item>
  2227. <item>
  2228. <label>환불미지급</label>
  2229. <value>5</value>
  2230. </item>
  2231. <item>
  2232. <label>상계처리</label>
  2233. <value>6</value>
  2234. </item>
  2235. </choices>
  2236. <script type="javascript" ev:event="onkeypress">
  2237. <![CDATA[
  2238. if (event.keyCode == "13")
  2239. {
  2240. model.setFocus("ipt_cncldocudelivedd");
  2241. }
  2242. ]]>
  2243. </script>
  2244. </select1>
  2245. <caption id="caption58" class="cell_1" style="left:5px; top:420px; width:85px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">처리상태</caption>
  2246. <input id="ipt_cncldocudelivedd" ref="/root/main/ptpm/cncldocudelivedd" class="input_default" navindex="43" inputtype="date" style="left:92px; top:445px; width:90px; height:19px; ">
  2247. <script type="javascript" ev:event="onkeypress">
  2248. <![CDATA[
  2249. if (event.keyCode == "13")
  2250. {
  2251. model.setFocus("ipt_aprvcnclrtnfcstamt");
  2252. }
  2253. ]]>
  2254. </script>
  2255. </input>
  2256. <caption id="caption59" class="cell_1" style="left:92px; top:420px; width:90px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">취하서제출일</caption>
  2257. <input id="ipt_aprvcnclrtnfcstamt" ref="/root/main/ptpm/aprvcnclrtnfcstamt" class="input_default" navindex="44" format="(-)#,###" style="left:184px; top:445px; width:100px; height:19px; text-align:right; ">
  2258. <script type="javascript" ev:event="onkeypress">
  2259. <![CDATA[
  2260. if (event.keyCode == "13")
  2261. {
  2262. model.setFocus("ipt_fcstdecidd");
  2263. }
  2264. ]]>
  2265. </script>
  2266. </input>
  2267. <input id="ipt_fcstdecidd" ref="/root/main/ptpm/fcstdecidd" class="input_default" navindex="45" inputtype="date" style="left:286px; top:445px; width:95px; height:19px; ">
  2268. <script type="javascript" ev:event="onkeypress">
  2269. <![CDATA[
  2270. if (event.keyCode == "13")
  2271. {
  2272. model.setFocus("ipt_fcstdeciamt");
  2273. }
  2274. ]]>
  2275. </script>
  2276. </input>
  2277. <caption id="caption60" class="cell_1" style="left:184px; top:420px; width:100px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">합의취하환불액</caption>
  2278. <caption id="caption61" class="cell_1" style="left:286px; top:420px; width:95px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">최종환불결정일</caption>
  2279. <caption id="caption62" class="cell_1" style="left:687px; top:420px; width:95px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">실환불액</caption>
  2280. <caption id="caption63" class="cell_1" style="left:784px; top:420px; width:90px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">환불일자</caption>
  2281. <input id="ipt_fcstdeciamt" ref="/root/main/ptpm/fcstdeciamt" class="input_default" navindex="46" inputtype="button" format="(-)#,###" style="left:383px; top:445px; width:100px; height:19px; text-align:right; ">
  2282. <script type="javascript" ev:event="onbuttonclick">
  2283. <![CDATA[
  2284. setParameter("fcstordmat", model.getValue("/root/main/ptpm/fcstordmat"));
  2285. setParameter("fcstinamt", model.getValue("/root/main/ptpm/fcstinamt"));
  2286. setParameter("fcstchrgfood", model.getValue("/root/main/ptpm/fcstchrgfood"));
  2287. setParameter("fcstmedimpsamt", model.getValue("/root/main/ptpm/fcstmedimpsamt"));
  2288. setParameter("fcstinjamt", model.getValue("/root/main/ptpm/fcstinjamt"));
  2289. setParameter("fcstanstamt", model.getValue("/root/main/ptpm/fcstanstamt"));
  2290. setParameter("fcstcureopamt", model.getValue("/root/main/ptpm/fcstcureopamt"));
  2291. setParameter("fcsttestamt", model.getValue("/root/main/ptpm/fcsttestamt"));
  2292. setParameter("fcstimgdiagrayamt", model.getValue("/root/main/ptpm/fcstimgdiagrayamt"));
  2293. setParameter("fcstscitamt", model.getValue("/root/main/ptpm/fcstscitamt"));
  2294. setParameter("fcstpsypamt", model.getValue("/root/main/ptpm/fcstpsypamt"));
  2295. setParameter("fcstctordamt", model.getValue("/root/main/ptpm/fcstctordamt"));
  2296. setParameter("fcstmriordamt", model.getValue("/root/main/ptpm/fcstmriordamt"));
  2297. setParameter("fcstpetordamt", model.getValue("/root/main/ptpm/fcstpetordamt"));
  2298. setParameter("fcstchoiordamt", model.getValue("/root/main/ptpm/fcstchoiordamt"));
  2299. setParameter("fcstnopyamt", model.getValue("/root/main/ptpm/fcstnopyamt"));
  2300. setParameter("fcstetcamt", model.getValue("/root/main/ptpm/fcstetcamt"));
  2301. setParameter("fcstcurematramt", model.getValue("/root/main/ptpm/fcstcurematramt"));
  2302. setParameter("deciordmat", model.getValue("/root/main/ptpm/deciordmat"));
  2303. setParameter("deciinamt", model.getValue("/root/main/ptpm/deciinamt"));
  2304. setParameter("decichrgfood", model.getValue("/root/main/ptpm/decichrgfood"));
  2305. setParameter("decimedimpsamt", model.getValue("/root/main/ptpm/decimedimpsamt"));
  2306. setParameter("deciinjamt", model.getValue("/root/main/ptpm/deciinjamt"));
  2307. setParameter("decianstamt", model.getValue("/root/main/ptpm/decianstamt"));
  2308. setParameter("decicureopamt", model.getValue("/root/main/ptpm/decicureopamt"));
  2309. setParameter("decitestamt", model.getValue("/root/main/ptpm/decitestamt"));
  2310. setParameter("deciimgdiagrayamt", model.getValue("/root/main/ptpm/deciimgdiagrayamt"));
  2311. setParameter("deciscitamt", model.getValue("/root/main/ptpm/deciscitamt"));
  2312. setParameter("decipsypamt", model.getValue("/root/main/ptpm/decipsypamt"));
  2313. setParameter("decictordamt", model.getValue("/root/main/ptpm/decictordamt"));
  2314. setParameter("decimriordamt", model.getValue("/root/main/ptpm/decimriordamt"));
  2315. setParameter("decipetordamt", model.getValue("/root/main/ptpm/decipetordamt"));
  2316. setParameter("decichoiordamt", model.getValue("/root/main/ptpm/decichoiordamt"));
  2317. setParameter("decinopyamt", model.getValue("/root/main/ptpm/decinopyamt"));
  2318. setParameter("decietcamt", model.getValue("/root/main/ptpm/decietcamt"));
  2319. setParameter("decicurematramt", model.getValue("/root/main/ptpm/decicurematramt"));
  2320. open("SPPMC07000");
  2321. model.refresh();
  2322. ]]>
  2323. </script>
  2324. <script type="javascript" ev:event="onkeypress">
  2325. <![CDATA[
  2326. if (event.keyCode == "13")
  2327. {
  2328. model.setFocus("ipt_rtnendyn");
  2329. }
  2330. ]]>
  2331. </script>
  2332. </input>
  2333. <select1 id="ipt_roothospexpsflag" ref="/root/main/ptpm/roothospexpsflag" navindex="48" appearance="minimal" style="left:590px; top:445px; width:95px; height:19px; ">
  2334. <choices>
  2335. <item>
  2336. <label>A</label>
  2337. <value>A</value>
  2338. </item>
  2339. <item>
  2340. <label>B</label>
  2341. <value>B</value>
  2342. </item>
  2343. <item>
  2344. <label>C</label>
  2345. <value>C</value>
  2346. </item>
  2347. </choices>
  2348. <script type="javascript" ev:event="onkeypress">
  2349. <![CDATA[
  2350. if (event.keyCode == "13")
  2351. {
  2352. model.setFocus("ipt_ordfcstamt");
  2353. }
  2354. ]]>
  2355. </script>
  2356. </select1>
  2357. <input id="ipt_ordfcstamt" ref="/root/main/ptpm/ordfcstamt" class="input_default" navindex="49" format="(-)#,###" style="left:687px; top:445px; width:95px; height:19px; text-align:right; ">
  2358. <script type="javascript" ev:event="onkeypress">
  2359. <![CDATA[
  2360. if (event.keyCode == "13")
  2361. {
  2362. model.setFocus("ipt_ordfcstdd");
  2363. }
  2364. ]]>
  2365. </script>
  2366. </input>
  2367. <input id="ipt_ordfcstdd" ref="/root/main/ptpm/ordfcstdd" class="input_default" navindex="50" inputtype="date" style="left:784px; top:445px; width:90px; height:19px; ">
  2368. <script type="javascript" ev:event="onkeypress">
  2369. <![CDATA[
  2370. if (event.keyCode == "13")
  2371. {
  2372. model.setFocus("ipt_dedutretdd");
  2373. }
  2374. ]]>
  2375. </script>
  2376. </input>
  2377. <caption id="caption64" class="cell_1" style="left:383px; top:420px; width:100px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">최종환불결정액</caption>
  2378. <caption id="caption65" class="cell_1" style="left:590px; top:420px; width:95px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">본원지출구분</caption>
  2379. <caption id="caption66" class="cell_1" style="left:968px; top:420px; width:110px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">공제문서번호</caption>
  2380. <caption id="caption67" class="cell_1" style="left:1080px; top:420px; width:105px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">최종종결일</caption>
  2381. <caption id="caption68" class="cell_1" style="left:876px; top:420px; width:90px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">공제처리일</caption>
  2382. <input id="ipt_dedutretdd" ref="/root/main/ptpm/dedutretdd" class="input_default" navindex="51" inputtype="date" style="left:876px; top:445px; width:90px; height:19px; text-align:right; ">
  2383. <script type="javascript" ev:event="onkeypress">
  2384. <![CDATA[
  2385. if (event.keyCode == "13")
  2386. {
  2387. model.setFocus("ipt_dedudocuno");
  2388. }
  2389. ]]>
  2390. </script>
  2391. </input>
  2392. <input id="ipt_dedudocuno" ref="/root/main/ptpm/dedudocuno" class="input_default" navindex="52" style="left:968px; top:445px; width:110px; height:19px; ">
  2393. <script type="javascript" ev:event="onkeypress">
  2394. <![CDATA[
  2395. if (event.keyCode == "13")
  2396. {
  2397. model.setFocus("ipt_lastenddd");
  2398. }
  2399. ]]>
  2400. </script>
  2401. </input>
  2402. <input id="ipt_lastenddd" ref="/root/main/ptpm/lastenddd" class="input_default" navindex="53" inputtype="date" style="left:1080px; top:445px; width:105px; height:19px; "/>
  2403. <select1 id="ipt_civilaplflag" ref="/root/main/ptpm/civilaplflag" navindex="11" appearance="minimal" style="left:563px; top:177px; width:95px; height:19px; ">
  2404. <choices>
  2405. <itemset nodeset="/root/init/P0484list/P0484">
  2406. <label ref="cdnm"/>
  2407. <value ref="cdid"/>
  2408. </itemset>
  2409. </choices>
  2410. </select1>
  2411. <caption id="caption69" class="cell_1" style="left:563px; top:151px; width:95px; height:23px; text-align:center; vertical-align:middle; ">민원유형</caption>
  2412. <input id="input23" ref="/root/main/ptpm/totalamt" class="input_default" navindex="16" format="(-)#,###" style="left:5px; top:246px; width:90px; height:19px; text-align:right; background-color:#cc99ff; "/>
  2413. <caption id="caption35" class="cell_1" style="left:5px; top:221px; width:90px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">총진료비</caption>
  2414. <input id="input22" ref="/root/main/ptpm/ediownbamt" class="input_default" navindex="16" format="(-)#,###" style="left:674px; top:246px; width:77px; height:19px; text-align:right; background-color:#cc99ff; "/>
  2415. <input id="input24" ref="/root/main/ptpm/ediownbmaxexamt" class="input_default" disabled="false" navindex="18" format="(-)#,###" style="left:837px; top:246px; width:85px; height:19px; text-align:right; background-color:#cc99ff; "/>
  2416. <input id="input25" ref="/root/main/ptpm/edisuppamt" class="input_default" disabled="false" navindex="19" format="(-)#,###" style="left:925px; top:246px; width:85px; height:19px; text-align:right; background-color:#cc99ff; "/>
  2417. <caption id="caption70" class="cell_1" style="left:754px; top:221px; width:80px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">청구액</caption>
  2418. <line id="line10" class="line_1" style="x1:586px; y1:216px; x2:1183px; y2:216px; "/>
  2419. <input id="input26" ref="/root/main/ptpm/edimedcaretotamt" class="input_default" navindex="16" format="(-)#,###" style="left:586px; top:246px; width:85px; height:19px; text-align:right; background-color:#cc99ff; "/>
  2420. <caption id="caption71" class="tit_2" style="left:586px; top:200px; width:160px; height:13px; font-family:돋움; color:#000000; vertical-align:middle; ">민원대상청구액금액</caption>
  2421. <caption id="caption72" class="cell_1" style="left:1013px; top:221px; width:83px; height:23px; text-align:center; vertical-align:middle; ">대불금</caption>
  2422. <caption id="caption73" class="cell_1" style="left:586px; top:221px; width:85px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">총진료비</caption>
  2423. <caption id="caption74" class="cell_1" style="left:674px; top:221px; width:77px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">본인부담액</caption>
  2424. <input id="input27" ref="/root/main/ptpm/ediinsuclamamt" class="input_default" navindex="17" format="(-)#,###" style="left:754px; top:246px; width:80px; height:19px; text-align:right; background-color:#cc99ff; "/>
  2425. <caption id="caption75" class="cell_1" style="left:837px; top:221px; width:85px; height:23px; text-align:center; vertical-align:middle; ">상한액</caption>
  2426. <caption id="caption76" class="cell_1" style="left:925px; top:221px; width:85px; height:23px; text-align:center; vertical-align:middle; ">지원금</caption>
  2427. <input id="input28" ref="/root/main/ptpm/edisubtamt" class="input_default" navindex="20" format="(-)#,###" style="left:1013px; top:246px; width:83px; height:19px; text-align:right; background-color:#cc99ff; "/>
  2428. <caption id="caption77" class="tit_2" style="left:940px; top:84px; width:80px; height:13px; font-family:돋움; color:#000000; vertical-align:middle; ">기타금액</caption>
  2429. <line id="line25" class="line_1" style="x1:940px; y1:101px; x2:1186px; y2:101px; "/>
  2430. <caption id="caption78" class="cell_1" style="left:1098px; top:221px; width:85px; height:23px; text-align:center; vertical-align:middle; ">장애인</caption>
  2431. <input id="input29" ref="/root/main/ptpm/edihandcaprfund" class="input_default" navindex="20" format="(-)#,###" style="left:1098px; top:246px; width:85px; height:19px; text-align:right; background-color:#cc99ff; "/>
  2432. <button id="button2" class="btn_sw" group="tab" style="left:83px; top:471px; width:80px; height:22px; ">
  2433. <caption>청구이력</caption>
  2434. <script type="javascript" ev:event="DOMActivate">
  2435. <![CDATA[
  2436. model.toggle("case4");
  2437. //fGetColorChangeChoslist();
  2438. button6.visible = false;
  2439. button7.visible = true;
  2440. ]]>
  2441. </script>
  2442. </button>
  2443. <button id="btn_m_otpt" class="btn_sw" group="tab" style="left:6px; top:471px; width:75px; height:22px; ">
  2444. <caption>내원이력</caption>
  2445. <script type="javascript" ev:event="DOMActivate">
  2446. <![CDATA[
  2447. model.toggle("case3");
  2448. //fGetColorChangeChoslist();
  2449. button6.visible = true;
  2450. button7.visible = false;
  2451. ]]>
  2452. </script>
  2453. </button>
  2454. <switch id="switch2" style="left:5px; top:500px; width:1187px; height:170px; ">
  2455. <case id="case3" selected="true">
  2456. <datagrid id="grd_chosrec" nodeset="/root/main/list1/chosreclist" caption="선택^사용여부^내원유형^진료/입원일자^퇴원일자^진료과^전문의^보험유형^보조유형^미수총액^총진료비^환자부담금총액^급여액^비급여액^선택진료료^감면금^심사자^생성번호^일련번호^심사자ID^등록번호^공문접수일^공문생성번호" colsep="^" colwidth="35, 60, 60, 85, 75, 97, 80, 82, 72, 80, 80, 100,82, 82, 79, 83, 88, 100, 100, 100, 100, 100, 100" dataheight="23" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" navindex="35" style="left:0px; top:0px; width:1182px; height:163px; ">
  2457. <col checkvalue="Y,N" ref="patspecyn" type="checkbox"/>
  2458. <col checkvalue="Y,N" disabled="true" ref="histyn" type="checkbox"/>
  2459. <col disabled="true" ref="ioflag" type="combo" style="text-align:center; ">
  2460. <choices>
  2461. <itemset nodeset="/root/init/P0001list/P0001">
  2462. <label ref="cdnm"/>
  2463. <value ref="cdid"/>
  2464. </itemset>
  2465. </choices>
  2466. </col>
  2467. <col ref="ordindd" format="yyyy-mm-dd" style="text-align:center; "/>
  2468. <col ref="dschdd" format="yyyy-mm-dd" style="text-align:center; "/>
  2469. <col ref="orddeptnm"/>
  2470. <col ref="orddrnm"/>
  2471. <col disabled="true" ref="insukind" type="combo">
  2472. <choices>
  2473. <itemset nodeset="/root/hidden/init/insukind">
  2474. <label ref="nm"/>
  2475. <value ref="cd"/>
  2476. </itemset>
  2477. </choices>
  2478. </col>
  2479. <col disabled="true" ref="suppkind" type="combo">
  2480. <choices>
  2481. <itemset nodeset="/root/hidden/init/suppkind">
  2482. <label ref="nm"/>
  2483. <value ref="cd"/>
  2484. </itemset>
  2485. </choices>
  2486. </col>
  2487. <col ref="uncototamt" format="(-)#,###" style="text-align:right; "/>
  2488. <col ref="totordamt" format="(-)#,###" style="text-align:right; "/>
  2489. <col ref="totownbamt" format="(-)#,###" style="text-align:right; "/>
  2490. <col ref="payamt" format="(-)#,###" style="text-align:right; "/>
  2491. <col ref="nopyamt" format="(-)#,###" style="text-align:right; "/>
  2492. <col ref="specordamt" format="(-)#,###" style="text-align:right; "/>
  2493. <col ref="discamt" format="(-)#,###" style="text-align:right; "/>
  2494. <col ref="judgrnm"/>
  2495. <col ref="cretno" visibility="hidden"/>
  2496. <col ref="seqno" visibility="hidden"/>
  2497. <col ref="judgrid" visibility="hidden"/>
  2498. <col ref="pid" visibility="hidden"/>
  2499. <col ref="ofidocacptdd" visibility="hidden"/>
  2500. <col ref="ofidocretno" visibility="hidden"/>
  2501. <script type="javascript" ev:event="onclick">
  2502. <![CDATA[
  2503. ]]>
  2504. </script>
  2505. <script type="javascript" ev:event="xforms-value-changed">
  2506. <![CDATA[
  2507. var rows = model.getValue("/root/temp/chosreclistcnt");
  2508. var totordamtsum = '0';
  2509. var totownbamtsum = '0';
  2510. var nopyamttsum = '0';
  2511. var specordamtsum = '0';
  2512. var uncoamtsum = '0';
  2513. var discamtsum = '0';
  2514. for (i=0; i<rows; i++) {
  2515. if(model.getValue("/root/main/list1/chosreclist["+ i + "]/patspecyn") == 'Y' ){
  2516. var temp1 = model.getValue("/root/main/list1/chosreclist["+ i + "]/totordamt");
  2517. var temp2 = model.getValue("/root/main/list1/chosreclist["+ i + "]/nopyamt");
  2518. var temp3 = model.getValue("/root/main/list1/chosreclist["+ i + "]/specordamt");
  2519. var temp4 = model.getValue("/root/main/list1/chosreclist["+ i + "]/uncototamt");
  2520. var temp5 = model.getValue("/root/main/list1/chosreclist["+ i + "]/discamt");
  2521. var temp6 = model.getValue("/root/main/list1/chosreclist["+ i + "]/totownbamt");
  2522. totordamtsum = parseInt(totordamtsum) + parseInt(temp1);
  2523. nopyamttsum = parseInt(nopyamttsum) + parseInt(temp2);
  2524. specordamtsum = parseInt(specordamtsum) + parseInt(temp3);
  2525. uncoamtsum = parseInt(uncoamtsum) + parseInt(temp4);
  2526. discamtsum = parseInt(discamtsum) + parseInt(temp5);
  2527. totownbamtsum = parseInt(totownbamtsum) + parseInt(temp6);
  2528. }
  2529. }
  2530. model.setValue("/root/main/ptpm/totalamt", totordamtsum);
  2531. model.setValue("/root/main/ptpm/patowntotamt", totownbamtsum);
  2532. model.setValue("/root/main/ptpm/nonpayallamt", nopyamttsum);
  2533. model.setValue("/root/main/ptpm/choiordamt", specordamtsum);
  2534. model.setValue("/root/main/ptpm/uncoamt", uncoamtsum);
  2535. model.setValue("/root/main/ptpm/discamt", discamtsum);
  2536. model.refresh();
  2537. ]]>
  2538. </script>
  2539. </datagrid>
  2540. </case>
  2541. <case id="case4">
  2542. <datagrid id="datagrid1" nodeset="/root/main/list2/clamlist" caption="선택^사용여부^내원유형^청구월^청구구분^차수^유형^보조^청구과^진료과^주치의^접수번호^명일련^진료개시일^진료종료일^심사결정^총진료비^본인부담액^청구액^상한액^지원금^대불금^장애인^심사자^등록번호순번^작업구분^등록번호^공문접수일^공문생성번호" colsep="^" colwidth="40, 60, 59, 100, 100, 100, 56, 100, 80, 92, 92, 87, 87, 87, 87, 87, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="23" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" navindex="35" style="left:0px; top:0px; width:1182px; height:163px; ">
  2543. <col checkvalue="Y,N" ref="patspecyn" type="checkbox"/>
  2544. <col checkvalue="Y,N" disabled="true" ref="histyn" type="checkbox"/>
  2545. <col ref="ioflag" type="combo" style="text-align:center; ">
  2546. <choices>
  2547. <itemset nodeset="/root/init/P0001list/P0001">
  2548. <label ref="cdnm"/>
  2549. <value ref="cdid"/>
  2550. </itemset>
  2551. </choices>
  2552. </col>
  2553. <col ref="clamym" format="yyyy-mm" style="text-align:center; "/>
  2554. <col ref="clamflagcd" type="combo" style="text-align:center; ">
  2555. <choices>
  2556. <itemset nodeset="/root/init/P0155list/P0155">
  2557. <label ref="cdnm"/>
  2558. <value ref="cdid"/>
  2559. </itemset>
  2560. </choices>
  2561. </col>
  2562. <col ref="clamdg" style="text-align:center; "/>
  2563. <col ref="insukind" style="text-align:center; "/>
  2564. <col ref="suppkind" style="text-align:center; "/>
  2565. <col disabled="true" ref="clamdeptnm" type="combo" style="text-align:center; ">
  2566. <choices>
  2567. <itemset nodeset="/root/init/P0437list/P0437">
  2568. <label ref="cdnm"/>
  2569. <value ref="cdid"/>
  2570. </itemset>
  2571. </choices>
  2572. </col>
  2573. <col ref="orddeptnm" style="text-align:center; "/>
  2574. <col ref="orddrnm" style="text-align:center; "/>
  2575. <col ref="acptno" style="text-align:center; "/>
  2576. <col ref="docuseqno" style="text-align:center; "/>
  2577. <col ref="ordfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  2578. <col ref="ordtodd" format="yyyy-mm-dd" style="text-align:center; "/>
  2579. <col ref="judgyn" format="yyyy-mm-dd" style="text-align:center; "/>
  2580. <col ref="edimedcaretotamt" format="(-)#,###" style="text-align:right; "/>
  2581. <col ref="ediownbamt" format="(-)#,###" style="text-align:right; "/>
  2582. <col ref="ediinsuclamamt" format="(-)#,###" style="text-align:right; "/>
  2583. <col ref="ediownbmaxexamt" format="(-)#,###" style="text-align:right; "/>
  2584. <col ref="edisuppamt" format="(-)#,###" style="text-align:right; "/>
  2585. <col ref="edisubtamt" format="(-)#,###" style="text-align:right; "/>
  2586. <col ref="edihandcaprfund" format="(-)#,###" style="text-align:right; "/>
  2587. <col ref="judgrnm" style="text-align:center; "/>
  2588. <col ref="pidsn" visibility="hidden"/>
  2589. <col ref="workflag" visibility="hidden"/>
  2590. <col ref="pid" visibility="hidden"/>
  2591. <col ref="ofidocacptdd" visibility="hidden"/>
  2592. <col ref="ofidocretno" visibility="hidden"/>
  2593. <script type="javascript" ev:event="onclick">
  2594. <![CDATA[
  2595. var rows = model.getValue("/root/temp/clamlistcnt");
  2596. //var temp = '';
  2597. var edimedcaretotamttsum = '0';
  2598. var ediownbamtsum = '0';
  2599. var ediinsuclamamtsum = '0';
  2600. var ediownbmaxexamt = '0';
  2601. var edisuppamt = '0';
  2602. var edisubtamt = '0';
  2603. var edihandcaprfund = '0';
  2604. for (i=0; i<rows; i++) {
  2605. if(model.getValue("/root/main/list2/clamlist["+ i + "]/patspecyn") == 'Y' ){
  2606. var temp1 = model.getValue("/root/main/list2/clamlist["+ i + "]/edimedcaretotamt");
  2607. var temp2 = model.getValue("/root/main/list2/clamlist["+ i + "]/ediownbamt");
  2608. var temp3 = model.getValue("/root/main/list2/clamlist["+ i + "]/ediinsuclamamt");
  2609. var temp4 = model.getValue("/root/main/list2/clamlist["+ i + "]/ediownbmaxexamt");
  2610. var temp5 = model.getValue("/root/main/list2/clamlist["+ i + "]/edisuppamt");
  2611. var temp6 = model.getValue("/root/main/list2/clamlist["+ i + "]/edisubtamt");
  2612. var temp7 = model.getValue("/root/main/list2/clamlist["+ i + "]/edihandcaprfund");
  2613. edimedcaretotamttsum = parseInt(edimedcaretotamttsum) + parseInt(temp1);
  2614. ediownbamtsum = parseInt(ediownbamtsum) + parseInt(temp2);
  2615. ediinsuclamamtsum = parseInt(ediinsuclamamtsum) + parseInt(temp3);
  2616. ediownbmaxexamt = parseInt(ediownbmaxexamt) + parseInt(temp4);
  2617. edisuppamt = parseInt(edisuppamt) + parseInt(temp5);
  2618. edisubtamt = parseInt(edisubtamt) + parseInt(temp6);
  2619. edihandcaprfund = parseInt(edihandcaprfund) + parseInt(temp7);
  2620. }
  2621. }
  2622. model.setValue("/root/main/ptpm/edimedcaretotamt", edimedcaretotamttsum);
  2623. model.setValue("/root/main/ptpm/ediownbamt", ediownbamtsum);
  2624. model.setValue("/root/main/ptpm/ediinsuclamamt", ediinsuclamamtsum);
  2625. model.setValue("/root/main/ptpm/ediownbmaxexamt", ediownbmaxexamt);
  2626. model.setValue("/root/main/ptpm/edisuppamt", edisuppamt);
  2627. model.setValue("/root/main/ptpm/edisubtamt", edisubtamt);
  2628. model.setValue("/root/main/ptpm/edihandcaprfund", edihandcaprfund);
  2629. model.refresh();
  2630. ]]>
  2631. </script>
  2632. <script type="javascript" ev:event="DOMFocusIn">
  2633. <![CDATA[
  2634. ]]>
  2635. </script>
  2636. </datagrid>
  2637. </case>
  2638. </switch>
  2639. <input id="ipt_ordtodd" ref="/root/main/ptpm/ordtodd" class="input_default" navindex="28" inputtype="date" style="left:393px; top:321px; width:85px; height:19px; ">
  2640. <script type="javascript" ev:event="onkeypress">
  2641. <![CDATA[
  2642. if (event.keyCode == "13")
  2643. {
  2644. model.setFocus("ipt_judgrid");
  2645. }
  2646. ]]>
  2647. </script>
  2648. </input>
  2649. <caption id="caption25" class="cell_1" style="left:393px; top:290px; width:85px; height:29px; color:#000000; text-align:center; vertical-align:middle; ">진료종료일자</caption>
  2650. <caption id="caption79" class="cell_1" style="left:485px; top:420px; width:103px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">환수완료여부</caption>
  2651. <select1 id="ipt_rtnendyn" ref="/root/main/ptpm/rtnendyn" navindex="47" appearance="minimal" style="left:485px; top:445px; width:103px; height:19px; ">
  2652. <choices>
  2653. <item>
  2654. <label>Y</label>
  2655. <value>Y</value>
  2656. </item>
  2657. <item>
  2658. <label>N</label>
  2659. <value>N</value>
  2660. </item>
  2661. </choices>
  2662. <script type="javascript" ev:event="onkeypress">
  2663. <![CDATA[
  2664. if (event.keyCode == "13")
  2665. {
  2666. model.setFocus("ipt_roothospexpsflag");
  2667. }
  2668. ]]>
  2669. </script>
  2670. </select1>
  2671. <input id="input1" ref="/root/main/ptpm/ofidocdocuno" class="input_default" navindex="6" style="left:194px; top:130px; width:85px; height:19px; ">
  2672. <script type="javascript" ev:event="onkeypress">
  2673. <![CDATA[
  2674. if (event.keyCode == "13")
  2675. {
  2676. model.setFocus("ipt_chrgernm");
  2677. }
  2678. ]]>
  2679. </script>
  2680. </input>
  2681. <caption id="caption20" class="cell_1" style="left:194px; top:106px; width:85px; height:23px; text-align:center; vertical-align:middle; ">공문접수번호</caption>
  2682. <caption id="caption80" class="cell_1" style="left:940px; top:105px; width:87px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">미수잔액</caption>
  2683. <input id="input3" ref="/root/main/ptbs/totaluncoamt" class="input_default" disabled="true" navindex="19" format="(-)#,###" style="left:940px; top:130px; width:87px; height:19px; text-align:right; "/>
  2684. <button id="button6" class="btn2_letter4" style="left:1121px; top:471px; width:64px; height:19px; ">
  2685. <caption>엑셀저장</caption>
  2686. <script type="javascript" ev:event="DOMActivate">
  2687. <![CDATA[
  2688. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  2689. if (fileName != "")
  2690. {
  2691. grd_chosrec.saveExcel(fileName, "SheetName", true, true, "", "");
  2692. }
  2693. window.exec(fileName);
  2694. ]]>
  2695. </script>
  2696. </button>
  2697. <button id="button7" class="btn2_letter4" style="left:1121px; top:471px; width:64px; height:19px; ">
  2698. <caption>엑셀저장</caption>
  2699. <script type="javascript" ev:event="DOMActivate">
  2700. <![CDATA[
  2701. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  2702. if (fileName != "")
  2703. {
  2704. datagrid1.saveExcel(fileName, "SheetName", true, true, "", "");
  2705. }
  2706. window.exec(fileName);
  2707. ]]>
  2708. </script>
  2709. </button>
  2710. <caption id="caption82" class="cell_1" style="left:700px; top:54px; width:60px; height:23px; vertical-align:middle; ">사망일시</caption>
  2711. <caption id="caption83" class="cell_1" style="left:700px; top:30px; width:60px; height:23px; vertical-align:middle; ">사망여부</caption>
  2712. <output id="input2" ref="/root/main/ptbs/ptbs_dethdt" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:762px; top:55px; width:90px; height:19px; "/>
  2713. <output id="combo1" ref="/root/main/ptbs/ptbs_dethyn" class="output_fix" appearance="output" style="left:762px; top:31px; width:90px; height:19px; "/>
  2714. <caption id="caption34" class="cell_1" style="left:98px; top:221px; width:95px; height:23px; text-align:center; vertical-align:middle; ">환자부담금총액</caption>
  2715. <input id="ipt_patowntotamt" ref="/root/main/ptpm/patowntotamt" class="input_default" navindex="16" format="(-)#,###" style="left:98px; top:246px; width:95px; height:19px; text-align:right; background-color:#cc99ff; "/>
  2716. <caption id="caption84" class="cell_1" style="left:280px; top:106px; width:35px; height:23px; text-align:center; vertical-align:middle; ">건수</caption>
  2717. <input id="input4" ref="/root/main/ptpm/docucnt" class="input_default" disabled="true" navindex="6" style="left:280px; top:130px; width:35px; height:19px; ">
  2718. <script type="javascript" ev:event="onkeypress">
  2719. <![CDATA[
  2720. if (event.keyCode == "13")
  2721. {
  2722. model.setFocus("ipt_chrgernm");
  2723. }
  2724. ]]>
  2725. </script>
  2726. </input>
  2727. <caption id="caption85" class="cell_1" style="left:531px; top:54px; width:60px; height:23px; vertical-align:middle; ">주치의</caption>
  2728. <caption id="caption86" class="cell_1" style="left:531px; top:30px; width:60px; height:23px; vertical-align:middle; ">보험유형</caption>
  2729. <output id="ipt_orddrnm" ref="/root/main/ptbs/ptbs_orddrnm" class="output_fix" appearance="output" style="left:593px; top:55px; width:105px; height:19px; "/>
  2730. <select1 id="cmb_insukind" ref="/root/main/ptbs/ptbs_insukind" disabled="true" appearance="minimal" style="left:593px; top:31px; width:105px; height:19px; ">
  2731. <choices>
  2732. <itemset nodeset="/root/hidden/init/insukind">
  2733. <label ref="nm"/>
  2734. <value ref="cd"/>
  2735. </itemset>
  2736. </choices>
  2737. </select1>
  2738. <caption id="caption87" class="cell_1" style="left:226px; top:345px; width:95px; height:29px; color:#000000; text-align:center; vertical-align:middle; ">
  2739. <![CDATA[이의신청
  2740. 인정액]]>
  2741. </caption>
  2742. <input id="ipt_obtapprcamt" ref="/root/main/ptpm/obtapprcamt" class="input_default" navindex="34" format="(-)#,###" style="left:226px; top:376px; width:95px; height:19px; text-align:right; ">
  2743. <script type="javascript" ev:event="onkeypress">
  2744. <![CDATA[
  2745. if (event.keyCode == "13")
  2746. {
  2747. model.setFocus("ipt_obtappaftrtndeciamt");
  2748. }
  2749. ]]>
  2750. </script>
  2751. </input>
  2752. <input id="ipt_addreqdd" ref="/root/main/ptpm/addreqdd" class="input_default" navindex="28" inputtype="date" style="left:537px; top:321px; width:85px; height:19px; ">
  2753. <script type="javascript" ev:event="onkeypress">
  2754. <![CDATA[
  2755. if (event.keyCode == "13")
  2756. {
  2757. model.setFocus("ipt_addclamamt");
  2758. }
  2759. ]]>
  2760. </script>
  2761. </input>
  2762. <caption id="caption88" class="cell_1" style="left:537px; top:290px; width:85px; height:29px; color:#000000; text-align:center; vertical-align:middle; ">추가청구일자</caption>
  2763. <caption id="caption89" class="cell_1" style="left:691px; top:290px; width:85px; height:29px; color:#000000; text-align:center; vertical-align:middle; ">
  2764. <![CDATA[추가청구
  2765. 입금일자]]>
  2766. </caption>
  2767. <input id="ipt_addreqdepodd" ref="/root/main/ptpm/addreqdepodd" class="input_default" navindex="28" inputtype="date" style="left:691px; top:321px; width:85px; height:19px; ">
  2768. <script type="javascript" ev:event="onkeypress">
  2769. <![CDATA[
  2770. if (event.keyCode == "13")
  2771. {
  2772. model.setFocus("ipt_addclamamt");
  2773. }
  2774. ]]>
  2775. </script>
  2776. </input>
  2777. <input id="input6" ref="/root/main/ptpm/addclamamt" class="input_default" format="(-)#,###" style="left:624px; top:321px; width:65px; height:19px; text-align:right; ">
  2778. <script type="javascript" ev:event="onkeypress">
  2779. <![CDATA[
  2780. if (event.keyCode == "13")
  2781. {
  2782. model.setFocus("ipt_addreqdepodd");
  2783. }
  2784. ]]>
  2785. </script>
  2786. </input>
  2787. <caption id="caption90" class="cell_1" style="left:624px; top:290px; width:65px; height:29px; text-align:center; vertical-align:middle; ">
  2788. <![CDATA[추가
  2789. 청구액]]>
  2790. </caption>
  2791. <group id="grp_addclamrem" visibility="hidden" style="left:615px; top:290px; width:305px; height:132px; border-color:#c7a3cf; border-style:solid; ">
  2792. <caption id="cpt_text" class="tit_2" style="left:5px; top:0px; width:118px; height:14px; ">추가청구비고</caption>
  2793. <line id="line26" class="line_1" style="x1:0px; y1:15px; x2:300 px; y2:15px; "/>
  2794. <textarea id="txt_text" ref="/root/temp/addclamrem" scroll="vertical" imemode="hangul" maxlength="1750" style="left:5px; top:21px; width:294px; height:84px; text-align:left; vertical-align:top; padding-left:5; "/>
  2795. <button id="btn_closememo" class="btn4_letter2" style="left:239px; top:106px; width:56px; height:22px; ">
  2796. <caption>
  2797. <![CDATA[확인]]>
  2798. </caption>
  2799. <script type="javascript" ev:event="DOMActivate">
  2800. <![CDATA[
  2801. model.setValue("/root/main/ptpm/addclamrem", model.getValue("/root/temp/addclamrem"));
  2802. grp_addclamrem.visible = false;
  2803. model.refresh();
  2804. ]]>
  2805. </script>
  2806. </button>
  2807. </group>
  2808. <group id="grp_obtapprsltrem" visibility="hidden" style="left:310px; top:290px; width:305px; height:132px; border-color:#c7a3cf; border-style:solid; ">
  2809. <caption id="caption81" class="tit_2" style="left:5px; top:0px; width:121px; height:14px; ">이의신청결과비고</caption>
  2810. <line id="line27" class="line_1" style="x1:0px; y1:15px; x2:300 px; y2:15px; "/>
  2811. <textarea id="textarea1" ref="/root/temp/obtapprsltrem" scroll="vertical" imemode="hangul" maxlength="1750" style="left:5px; top:21px; width:294px; height:84px; text-align:left; vertical-align:top; padding-left:5; "/>
  2812. <button id="button3" class="btn4_letter2" style="left:239px; top:106px; width:56px; height:22px; ">
  2813. <caption>
  2814. <![CDATA[확인]]>
  2815. </caption>
  2816. <script type="javascript" ev:event="DOMActivate">
  2817. <![CDATA[
  2818. model.setValue("/root/main/ptpm/obtapprsltrem", model.getValue("/root/temp/obtapprsltrem"));
  2819. grp_obtapprsltrem.visible = false;
  2820. model.refresh();
  2821. ]]>
  2822. </script>
  2823. </button>
  2824. </group>
  2825. </case>
  2826. </switch>
  2827. <button id="btn_patprescond" class="btn_sw" navindex="40" group="tab" selected="true" style="left:0px; top:10px; width:86px; height:22px; ">
  2828. <caption>수진내역현황</caption>
  2829. <toggle case="case1" ev:event="xforms-activate"/>
  2830. </button>
  2831. <button id="btn_patspec" class="btn_sw" navindex="41" group="tab" style="left:86px; top:10px; width:86px; height:22px; ">
  2832. <caption>수진내역</caption>
  2833. <toggle case="case2" ev:event="xforms-activate"/>
  2834. </button>
  2835. </group>
  2836. </xhtml:body>
  2837. </xhtml:html>