SMPMC00100_민원환자관리.xrw 102 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>민원환자관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <send>
  10. <data1>
  11. <sflagcd>1</sflagcd>
  12. <sflagnm/>
  13. <endflag/>
  14. <grupflag/>
  15. <sflagnm2/>
  16. </data1>
  17. <data2>
  18. <sess_posinstcd>012</sess_posinstcd>
  19. </data2>
  20. <data3>
  21. <pid/>
  22. <mode/>
  23. <civilgenrdd/>
  24. <civilseqno/>
  25. </data3>
  26. <data4>
  27. <srchcond/>
  28. <pid/>
  29. <hngnm/>
  30. <rrgstno1/>
  31. <rrgstno2/>
  32. <autoflag/>
  33. </data4>
  34. <s_capm>
  35. <capm/>
  36. </s_capm>
  37. <data6>
  38. <pid/>
  39. <civilgenrdd/>
  40. <civilseqno/>
  41. </data6>
  42. <data7>
  43. <pid/>
  44. <orddeptcd/>
  45. <ordfromdd/>
  46. <ordtodd/>
  47. </data7>
  48. <cond_signyn/>
  49. </send>
  50. <main>
  51. <ptbs>
  52. <ptbs_status/>
  53. <ptbs_pid/>
  54. <ptbs_hngnm/>
  55. <ptbs_engnm/>
  56. <ptbs_rrgstno1/>
  57. <ptbs_rrgstno2/>
  58. <ptbs_brthdd/>
  59. <ptbs_sex/>
  60. <ptbs_age/>
  61. <ptbs_hometel/>
  62. <ptbs_mpphontel/>
  63. <ptbs_zipcd1/>
  64. <ptbs_zipcd2/>
  65. <ptbs_zipcdseq/>
  66. <ptbs_zipnm/>
  67. <ptbs_detladdr/>
  68. <ptbs_forgeryn/>
  69. <ptbs_recmyn/>
  70. <ptbs_recmerid/>
  71. <ptbs_vipyn/>
  72. <ptbs_religncd/>
  73. <ptbs_remfact/>
  74. <ptbs_inhospyn/>
  75. <ptbs_viprem/>
  76. <ptbs_recmernm/>
  77. <ptbs_recmerrela/>
  78. <ptbs_dethyn/>
  79. </ptbs>
  80. <capm>
  81. <capm_status/>
  82. <capm_pid/>
  83. <capm_civilgenrdd/>
  84. <capm_civilseqno/>
  85. <capm_instcd/>
  86. <capm_civilenddd/>
  87. <capm_civilaplernm/>
  88. <capm_civilaplersex/>
  89. <capm_patrela/>
  90. <capm_zipcd1/>
  91. <capm_zipcd2/>
  92. <capm_zipcdseq/>
  93. <capm_address/>
  94. <capm_infaddr/>
  95. <capm_civilaplertel/>
  96. <capm_civilaplclamdd/>
  97. <capm_civilaplchrgerid/>
  98. <capm_civilaplflag/>
  99. <capm_delivedeptcd/>
  100. <capm_civilaplendflagcd/>
  101. <capm_delivedd/>
  102. <capm_civilaplgenrdeptcd/>
  103. <capm_civilaplgenrdepthngnm/>
  104. <capm_smlcnts/>
  105. <capm_atdoctid/>
  106. <capm_ordfromdd/>
  107. <capm_ordtodd/>
  108. <capm_civilaplreplyn/>
  109. <capm_civilaplrepldd/>
  110. <capm_civilaplclammthdcd/>
  111. <capm_civilaplendstatcd/>
  112. <capm_civilapltrgt/>
  113. <capm_lrgcd/>
  114. <capm_mdicd/>
  115. <capm_rcptdelivefact/>
  116. <capm_totordamt/>
  117. <capm_ownbamt/>
  118. <capm_agreamt/>
  119. <capm_reductamt/>
  120. <capm_endspec/>
  121. <capm_inptdd/>
  122. <capm_fstrgstrid/>
  123. <capm_fstrgstdt/>
  124. <capm_lastupdtrid/>
  125. <capm_lastupdtdt/>
  126. <capm_chkflag/>
  127. <capm_seq/>
  128. <capm_drdelive/>
  129. </capm>
  130. <capmlist>
  131. <civilindspeclist/>
  132. </capmlist>
  133. <patinfo>
  134. <patinfolist/>
  135. </patinfo>
  136. <popupendflag/>
  137. <chosrec>
  138. <chosreclist/>
  139. </chosrec>
  140. <cacmlist/>
  141. <capm_print>
  142. <rex_capm>
  143. <capm_civilgenrdd/>
  144. <capm_civilaplclammthdcd/>
  145. <capm_ordfromdd/>
  146. <capm_civilaplflag/>
  147. <capm_civilaplernm/>
  148. <capm_patrela/>
  149. <capm_civilaplertel/>
  150. <capm_pid/>
  151. <capm_hngnm/>
  152. <capm_fulladdr/>
  153. <capm_civilaplgenrdeptcd/>
  154. <capm_civilapltrgt/>
  155. <capm_civilaplrepldd/>
  156. <capm_lrgcd/>
  157. <capm_mdicd/>
  158. <capm_smlcnts/>
  159. <capm_instcd/>
  160. <capm_logo/>
  161. <!--
  162. <capm_civilaplchrgernm/>
  163. <capm_atdoctid/>
  164. <capm_diagnm/>
  165. <capm_signyn/>
  166. -->
  167. <capm_civilaplgenrdepthngnm/>
  168. </rex_capm>
  169. </capm_print>
  170. </main>
  171. <init>
  172. <P0016list>
  173. <P0016>
  174. <cdnm/>
  175. <cdid/>
  176. </P0016>
  177. </P0016list>
  178. <P0046list>
  179. <P0046>
  180. <cdnm/>
  181. <cdid/>
  182. </P0046>
  183. </P0046list>
  184. <P0001list>
  185. <P0001>
  186. <cdnm/>
  187. <cdid/>
  188. </P0001>
  189. </P0001list>
  190. <P0449list>
  191. <P0449>
  192. <cdnm/>
  193. <cdid/>
  194. </P0449>
  195. </P0449list>
  196. <P0450list>
  197. <P0450>
  198. <cdnm/>
  199. <cdid/>
  200. </P0450>
  201. </P0450list>
  202. <P0451list>
  203. <P0451>
  204. <cdnm/>
  205. <cdid/>
  206. </P0451>
  207. </P0451list>
  208. <P0327list>
  209. <P0327>
  210. <cdnm/>
  211. <cdid/>
  212. </P0327>
  213. </P0327list>
  214. </init>
  215. <hidden>
  216. <rcv>
  217. <ptbs>
  218. <ptbs_status/>
  219. <ptbs_pid/>
  220. <ptbs_hngnm/>
  221. <ptbs_engnm/>
  222. <ptbs_rrgstno1/>
  223. <ptbs_rrgstno2/>
  224. <ptbs_brthdd/>
  225. <ptbs_sex/>
  226. <ptbs_age/>
  227. <ptbs_hometel/>
  228. <ptbs_mpphontel/>
  229. <ptbs_zipcd1/>
  230. <ptbs_zipcd2/>
  231. <ptbs_zipcdseq/>
  232. <ptbs_zipnm/>
  233. <ptbs_detladdr/>
  234. <ptbs_forgeryn/>
  235. <ptbs_recmyn/>
  236. <ptbs_recmerid/>
  237. <ptbs_vipyn/>
  238. <ptbs_religncd/>
  239. <ptbs_remfact/>
  240. <ptbs_inhospyn/>
  241. </ptbs>
  242. <capm>
  243. <capm_status/>
  244. <capm_pid/>
  245. <capm_civilgenrdd/>
  246. <capm_civilseqno/>
  247. <capm_instcd/>
  248. <capm_civilenddd/>
  249. <capm_civilaplernm/>
  250. <capm_civilaplersex/>
  251. <capm_patrela/>
  252. <capm_zipcd1/>
  253. <capm_zipcd2/>
  254. <capm_zipcdseq/>
  255. <capm_infaddr/>
  256. <capm_civilaplertel/>
  257. <capm_civilaplclamdd/>
  258. <capm_civilaplchrgerid/>
  259. <capm_civilaplflag/>
  260. <capm_delivedeptcd/>
  261. <capm_delivedd/>
  262. <capm_civilaplgenrdeptcd/>
  263. <capm_atdoctid/>
  264. <capm_ordfromdd/>
  265. <capm_ordtodd/>
  266. <capm_civilaplreplyn/>
  267. <capm_civilaplrepldd/>
  268. <capm_civilaplclammthdcd/>
  269. <capm_civilaplendflagcd/>
  270. <capm_civilaplendstatcd/>
  271. <capm_civilapltrgt/>
  272. <capm_lrgcd/>
  273. <capm_mdicd/>
  274. <capm_smlcnts/>
  275. <capm_rcptdelivefact/>
  276. <capm_totordamt/>
  277. <capm_ownbamt/>
  278. <capm_agreamt/>
  279. <capm_reductamt/>
  280. <capm_endspec/>
  281. <capm_inptdd/>
  282. <capm_fstrgstrid/>
  283. <capm_fstrgstdt/>
  284. <capm_lastupdtrid/>
  285. <capm_lastupdtdt/>
  286. <capm_chkflag/>
  287. </capm>
  288. <chosrec>
  289. <chosreclist/>
  290. </chosrec>
  291. </rcv>
  292. <init>
  293. <orddeptcd>
  294. <cd/>
  295. <nm/>
  296. </orddeptcd>
  297. <flag>
  298. <prestdd/>
  299. </flag>
  300. <orddrid>
  301. <cd/>
  302. <nm/>
  303. <dp/>
  304. </orddrid>
  305. <disccd>
  306. <cd/>
  307. <nm/>
  308. </disccd>
  309. </init>
  310. <rcvflag>
  311. <flag>
  312. <max_civilseqno/>
  313. </flag>
  314. </rcvflag>
  315. <original>
  316. <capm/>
  317. </original>
  318. <srchdiag>
  319. <selectedrdodiagkind/>
  320. <basedd/>
  321. <diagcd/>
  322. <diagnm/>
  323. <flag/>
  324. </srchdiag>
  325. <diaginfo>
  326. <diagcd/>
  327. <termhngnm/>
  328. <termengnm/>
  329. <orddd/>
  330. </diaginfo>
  331. <sppiz00400>
  332. <rslt>
  333. <diaghngnm/>
  334. <diagcd/>
  335. <diagengnm/>
  336. <termcd/>
  337. </rslt>
  338. </sppiz00400>
  339. </hidden>
  340. </root>
  341. </instance>
  342. <submission id="TRZBP00102" mediatype="application/x-www-form-urlencoded" method="post"/>
  343. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  344. <submission id="TRPMI00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/hidden/init"/>
  345. <submission id="TRPMC00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main/capmlist"/>
  346. <submission id="TRPMC00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/hidden/rcv"/>
  347. <submission id="TRPMC00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/hidden/rcvflag"/>
  348. <submission id="TXPMC00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
  349. <submission id="TRPMC00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data6"/>
  350. <submission id="TRPMC00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data6" resultref="/root/main/cacmlist"/>
  351. <submission id="TRPMC00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data7" resultref="/root/hidden/diaginfo"/>
  352. <submission id="TRPMC06904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/patprivacy" replace="instance" resultref="/root/temp/patprivacy"/>
  353. </model>
  354. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  355. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  356. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  357. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  358. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  359. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  360. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  361. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  362. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  363. <script type="javascript" ev:event="xforms-ready">
  364. <![CDATA[
  365. zbcfGetCodeList(new Array("P0001", "P0046", "P0449", "P0450", "P0451", "P0327"),
  366. new Array("/root/init/P0001list", "/root/init/P0046list", "/root/init/P0449list", "/root/init/P0450list", "/root/init/P0451list", "/root/init/P0327list")
  367. );
  368. submit("TRPMI00106");
  369. addComboItem("combo2", "전체", "-", "below");
  370. model.setValue("/root/send/data1/endflag", '-');
  371. cap_privacy.visible = false; //사생활보호
  372. //민원 중분류 인스턴스 재생성(부모 정보 추가)
  373. //중분류코드가 '0101'이면 앞 2자리 '01'은 대분류 코드와 같다.
  374. var iCount = getNodesetCount("/root/init/P0451list/P0451");
  375. for(var idx=1; idx<=iCount ; idx++){
  376. var sUpCd = model.getValue("/root/init/P0451list/P0451[" + idx + "]/cdid");
  377. model.makeValue("/root/init/P0451list/P0451[" + idx + "]/upcd", sUpCd.substr(0, 2));
  378. }
  379. //중분류코드 대분류에 맞도록 설정(초기에는 빈값)
  380. cmb_lrgcd2.dispatch("xforms-select");
  381. var stodate = model.getValue("/root/hidden/init/flag/prestdd");
  382. ipt_sacptdd.value = stodate.substr(0,8);
  383. ipt_sacptdd2.value = stodate.substr(0,8);
  384. ipt_enddd.value = stodate.substr(0,8);
  385. ipt_enddd2.value = stodate.substr(0,8);
  386. makeReportPreview(0, 0, 10, 10, "grp_report");
  387. ]]>
  388. </script>
  389. <script type="javascript">
  390. <![CDATA[
  391. /*
  392. *
  393. */
  394. function fChangeCheck(){
  395. var capm_flag;
  396. var ins = document.models(0).instances(0);
  397. var h_capm = ins.selectSingleNode("/root/hidden/original/capm");
  398. var o_capm = ins.selectSingleNode("/root/main/capm");
  399. if(h_capm == null){
  400. capm_flag = null; // 데이터가 없으면 인스턴스 노드가 없다.
  401. } else if (o_capm == null) {
  402. capm_flag = null;
  403. } else if (h_capm.xml == o_capm.xml) {
  404. capm_flag = null;
  405. messageBox("변경사항이","I004");
  406. return false;
  407. } else if (h_capm.xml != o_capm.xml){
  408. capm_flag = 'u'
  409. return true;
  410. }
  411. }
  412. /*
  413. * 조회
  414. */
  415. function fBaseInfoRef(){
  416. if(model.getValue("/root/main/popupendflag") == "ok"){
  417. model.setValue("/root/send/data3/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  418. }else{
  419. model.setValue("/root/send/data3/pid", model.getValue("/root/main/ptbs/ptbs_pid"));
  420. model.resetInstanceNode("/root/main/patinfo/patinfolist");
  421. model.resetInstanceNode("/root/main/ptbs");
  422. model.resetInstanceNode("/root/main/capm");
  423. model.resetInstanceNode("/root/main/chosrec/chosreclist");
  424. model.refresh();
  425. }
  426. submit("TRPMC00102");
  427. var iptbscnt = getNodesetCount("/root/hidden/rcv/ptbs");
  428. if(iptbscnt > 0){
  429. copyNodeType("/root/main/ptbs","/root/hidden/rcv/ptbs","replace");
  430. }else{
  431. model.resetInstanceNode("/root/main/ptbs");
  432. }
  433. //사생활보호 관리여부 확인
  434. fGetPatPrivacyInfo(model.getValue("/root/main/ptbs/ptbs_pid"));
  435. var capmcnt = getNodesetCount("/root/hidden/rcv/capm");
  436. if(capmcnt > 0){
  437. copyNodeType("/root/main/capm","/root/hidden/rcv/capm","replace");
  438. copyNodeType("/root/hidden/original/capm","/root/hidden/rcv/capm","replace");
  439. }else{
  440. model.resetInstanceNode("/root/main/capm");
  441. //민원사항이 없을 때 자동으로 담당자 '로그인한 사용자 아이디'로 설정 - 2008.07.17
  442. model.setValue("/root/main/capm/capm_civilaplchrgerid", getUserId());
  443. }
  444. var opmicnt = getNodesetCount("/root/hidden/rcv/chosrec/chosreclist");
  445. if(opmicnt > 0){
  446. model.removeNodeset("/root/main/chosrec");
  447. model.makeNode("/root/main/chosrec");
  448. for(var i=1; i<=opmicnt; i++){
  449. model.duplicate("/root/main/chosrec","/root/hidden/rcv/chosrec/chosreclist["+ i +"]");
  450. }
  451. grd_chosreclist.rebuild();
  452. }else{
  453. model.resetInstanceNode("/root/main/chosrec");
  454. }
  455. //2008.07.17 중분류코드 대분류에 맞게 설정
  456. cmb_lrgcd2.dispatch("xforms-select");
  457. model.refresh();
  458. }
  459. /*
  460. * 초기화
  461. */
  462. function fInitialize(){
  463. cap_privacy.visible = false; // 사생활보호
  464. model.resetInstanceNode("/root/main");
  465. model.removeNodeset("/root/main/chosrec");
  466. model.makeNode("/root/main/chosrec/chosreclist");
  467. model.resetInstanceNode("/root/hidden/rcv");
  468. model.resetInstanceNode("/root/hidden/rcvflag");
  469. model.resetInstanceNode("/root/hidden/original");
  470. model.resetInstanceNode("/root/send/s_capm");
  471. model.resetInstanceNode("/root/send/data3");
  472. model.resetInstanceNode("/root/send/data4");
  473. model.resetInstanceNode("/root/send/data6");
  474. model.refresh();
  475. }
  476. /*
  477. * 조회구분 설정
  478. */
  479. function fChoice(schoino){
  480. model.resetInstanceNode("/root/send/data1/sflagnm");
  481. //접수일자
  482. if (schoino == '1') {
  483. model.setValue("/root/send/data1/sflagnm",getCurrentDate());
  484. model.setValue("/root/send/data1/sflagnm2",getCurrentDate());
  485. ipt_sacptdd.visible = true;
  486. ipt_sacptdd2.visible = true;
  487. ipt_spid.visible = false;
  488. ipt_shngnm.visible = false;
  489. ipt_enddd.visible = false;
  490. ipt_enddd2.visible = false;
  491. ipt_civilaplchrgerid.visible = false;
  492. cmb_mdicd.visible = false;
  493. cmb_lrgcd.visible = false;
  494. ipt_sacptdd2.attribute("left") = "362px";
  495. caption26.visible = true;
  496. model.setFocus("ipt_sacptdd");
  497. //성명
  498. } else if (schoino == '2') {
  499. ipt_shngnm.visible = true;
  500. ipt_shngnm.attribute("top") = "8px";
  501. ipt_shngnm.attribute("left") = "222px"
  502. ipt_sacptdd.visible = false;
  503. ipt_sacptdd2.visible = false;
  504. ipt_spid.visible = false;
  505. ipt_enddd.visible = false;
  506. ipt_enddd2.visible = false;
  507. ipt_civilaplchrgerid.visible = false;
  508. cmb_mdicd.visible = false;
  509. cmb_lrgcd.visible = false;
  510. caption26.visible = false;
  511. model.setFocus("ipt_shngnm");
  512. //환자번호
  513. } else if (schoino == '3') {
  514. ipt_spid.visible = true;
  515. ipt_spid.attribute("top") = "8px";
  516. ipt_spid.attribute("left") = "222px"
  517. ipt_sacptdd.visible = false;
  518. ipt_sacptdd2.visible = false;
  519. ipt_shngnm.visible = false;
  520. ipt_enddd.visible = false;
  521. ipt_enddd2.visible = false;
  522. ipt_civilaplchrgerid.visible = false;
  523. cmb_mdicd.visible = false;
  524. cmb_lrgcd.visible = false;
  525. caption26.visible = false;
  526. model.setFocus("ipt_spid");
  527. //종료일자
  528. } else if (schoino == '4') {
  529. model.setValue("/root/send/data1/sflagnm",getCurrentDate());
  530. model.setValue("/root/send/data1/sflagnm2",getCurrentDate());
  531. ipt_enddd.visible = true;
  532. ipt_enddd2.visible = true;
  533. ipt_enddd.attribute("top") = "8px";
  534. ipt_enddd.attribute("left") = "222px"
  535. ipt_sacptdd.visible = false;
  536. ipt_sacptdd2.visible = false;
  537. ipt_spid.visible = false;
  538. ipt_shngnm.visible = false;
  539. ipt_civilaplchrgerid.visible = false;
  540. cmb_mdicd.visible = false;
  541. cmb_lrgcd.visible = false;
  542. ipt_enddd2.attribute("left") = "362px";
  543. caption26.visible = true;
  544. model.setFocus("ipt_enddd");
  545. //담당자
  546. } else if (schoino == '5') {
  547. ipt_civilaplchrgerid.visible = true;
  548. ipt_civilaplchrgerid.attribute("top") = "8px";
  549. ipt_civilaplchrgerid.attribute("left") = "222px"
  550. ipt_sacptdd.visible = false;
  551. ipt_spid.visible = false;
  552. ipt_shngnm.visible = false;
  553. ipt_enddd.visible = false;
  554. cmb_mdicd.visible = false;
  555. cmb_lrgcd.visible = false;
  556. ipt_sacptdd2.visible = false;
  557. ipt_enddd2.visible = false;
  558. caption26.visible = false;
  559. model.setFocus("ipt_civilaplchrgerid");
  560. //민원분류
  561. } else if (schoino == '6') {
  562. cmb_lrgcd.visible = true;
  563. cmb_lrgcd.attribute("top") = "8px";
  564. cmb_lrgcd.attribute("left") = "222px"
  565. ipt_civilaplchrgerid.visible = false;
  566. ipt_sacptdd.visible = false;
  567. ipt_spid.visible = false;
  568. ipt_shngnm.visible = false;
  569. ipt_enddd.visible = false;
  570. cmb_mdicd.visible = false;
  571. ipt_sacptdd2.visible = false;
  572. ipt_enddd2.visible = false;
  573. caption26.visible = false;
  574. //민원제기방법
  575. } else if (schoino == '7') {
  576. cmb_civilaplclammthdcd.visible = true;
  577. cmb_civilaplclammthdcd.attribute("top") = "8px";
  578. cmb_civilaplclammthdcd.attribute("left") = "222px"
  579. ipt_civilaplchrgerid.visible = false;
  580. ipt_sacptdd.visible = false;
  581. ipt_spid.visible = false;
  582. ipt_shngnm.visible = false;
  583. ipt_enddd.visible = false;
  584. cmb_mdicd.visible = false;
  585. ipt_sacptdd2.visible = false;
  586. ipt_enddd2.visible = false;
  587. caption26.visible = false;
  588. }
  589. model.refresh();
  590. }
  591. /*
  592. *
  593. */
  594. function fHngNmVeri(gubn){
  595. var ptbs_hngnm;
  596. if (gubn == "xforms-next"){
  597. ptbs_hngnm = model.getValue("/root/main/ptbspatinfo/hngnm");
  598. }else if (gubn == "onkeypress" || gubn == "onkeyup"){
  599. ptbs_hngnm = (ipt_hngnm.currentText).toString();
  600. }
  601. //한글 한글자를 그냥 길이1로 계산
  602. if (eval((ptbs_hngnm.length).toString()) < 2){
  603. messageBox("환자성명은 2글자 이상되어야 합니다!","E999","");
  604. model.setFocus("ipt_hngnm");
  605. return false;
  606. }
  607. }
  608. /*
  609. *
  610. */
  611. function fRrgstNo1Veri(){
  612. var ptbs_rrgstno1 = model.getValue("/root/main/ptbs/ptbs_rrgstno1");
  613. if (ptbs_rrgstno1 != null && ptbs_rrgstno1 != "" && ptbs_rrgstno1 != " " && ptbs_rrgstno1 != "-"){
  614. if (ptbs_rrgstno1.length != 6){
  615. messageBox("주민번호1은 6자리여야 합니다!","E999","");
  616. model.setFocus("ptbs_rrgstno1");
  617. model.refresh();
  618. return false;
  619. }
  620. if (ptbs_rrgstno1.isNumber() != true){
  621. messageBox("주민번호1은 숫자형태로 입력되어야 합니다!","E999","");
  622. model.setFocus("ptbs_rrgstno1");
  623. model.refresh();
  624. return false;
  625. }
  626. }else{
  627. messageBox("주민번호1은 6자리여야 합니다!","E999","");
  628. model.setFocus("ptbs_rrgstno1");
  629. model.refresh();
  630. return false;
  631. }
  632. }
  633. /*
  634. *
  635. */
  636. function fRrgstNo2Veri(){
  637. var ptbs_brthdd;
  638. var ptbs_rrgstno1 = model.getValue("/root/main/ptbs/ptbs_rrgstno1");
  639. var ptbs_rrgstno2 = model.getValue("/root/main/ptbs/ptbs_rrgstno2");
  640. if (ptbs_rrgstno1.length != 6){
  641. messageBox("환자주민번호1은 6자리입니다!","E999","");
  642. model.setFocus("ptbs_rrgstno1");
  643. return false;
  644. }
  645. if (ptbs_rrgstno2.length != 7){
  646. messageBox("환자주민번호2은 7자리입니다!","E999","");
  647. model.setFocus("ipt_rrgstno2");
  648. return false;
  649. }
  650. var gubn = ptbs_rrgstno2.substr(0,1);
  651. switch(gubn){
  652. case '1' :
  653. case '2' :
  654. case '5' :
  655. case '6' :
  656. ptbs_brthdd = '19'.concat(ptbs_rrgstno1);
  657. break;
  658. case '3' :
  659. case '4' :
  660. case '7' :
  661. case '8' :
  662. ptbs_brthdd = '20'.concat(ptbs_rrgstno1);
  663. break;
  664. case '9' :
  665. case '0' :
  666. ptbs_brthdd = '18'.concat(ptbs_rrgstno1);
  667. break;
  668. default :
  669. ptbs_brthdd = '19'.concat(ptbs_rrgstno1);
  670. break;
  671. }
  672. if (isValidDateTime(ptbs_brthdd, "YYYYMMDD") == false){
  673. messageBox("주민번호 앞6자리 형식오류입니다. 올바른 일자형태로 입력하십시요!","E999","");
  674. model.setValue("/root/main/ptbs/ptbs_rrgstno1","");
  675. model.setValue("/root/main/ptbs/ptbs_rrgstno2","");
  676. model.setValue("/root/main/ptbs/ptbs_brthdd","");
  677. model.refresh();
  678. return false;
  679. }
  680. /*
  681. var ptbs_sex = model.getValue("/root/main/ptbs/ptbs_rrgstno2");
  682. model.setValue("/root/main/ptbs/ptbs_sex",getGender(ptbs_sex));
  683. var ptbs_age = ptbs_rrgstno1;
  684. model.setValue("/root/main/ptbs/ptbs_age",getFullAge(model.getValue("/root/main/ptbs/ptbs_brthdd")));
  685. model.refresh();
  686. if (isResidentNo(ptbs_age) == false){
  687. messageBox("유효하지 않은 주민번호입니다!","E999","");
  688. return false;
  689. }
  690. */
  691. }
  692. // 2008.05.29 문자열을 라인별로 구분하여 인스턴스 생성
  693. function fMakeNode(pXPath, pNodeSetName, pGubun, pGubunName, pNodeName1, pNodeName2, pNodeName3, pNodeName4, pString, pStringDD) {
  694. var instance1 = document.models(0).instances(0);
  695. var nodeValueArray = new Array();
  696. nodeValueArray = pString.split("\n");
  697. var nodeValueArrayDD = new Array();
  698. nodeValueArrayDD = pStringDD.split("\n");
  699. var destNode = instance1.selectSingleNode(pXPath);
  700. for(var idx=0; idx<nodeValueArray.length; idx++){
  701. var tempNode = instance1.createElement(pNodeSetName);
  702. var tempChildNode;
  703. tempChildNode1 = instance1.createElement(pNodeName1);
  704. tempChildNode2 = instance1.createElement(pNodeName2);
  705. tempChildNode3 = instance1.createElement(pNodeName3);
  706. tempChildNode4 = instance1.createElement(pNodeName4);
  707. model.duplicate(tempNode, tempChildNode1);
  708. model.duplicate(tempNode, tempChildNode2);
  709. model.duplicate(tempNode, tempChildNode3);
  710. model.duplicate(tempNode, tempChildNode4);
  711. tempNode.childNodes.item(0).text = pGubun;
  712. tempNode.childNodes.item(1).text = pGubunName;
  713. tempNode.childNodes.item(2).text = nodeValueArray[idx];
  714. tempNode.childNodes.item(3).text = nodeValueArrayDD[idx];
  715. model.duplicate(destNode, tempNode);
  716. }
  717. }
  718. ]]>
  719. </script>
  720. </xhtml:head>
  721. <xhtml:body>
  722. <group id="group1" style="left:0px; top:13px; width:1195px; height:744px; ">
  723. <switch id="switch1" class="sw_box" style="left:0px; top:31px; width:1194px; height:713px; border-color:#cc99ff; border-style:solid; ">
  724. <case id="case1" selected="true">
  725. <caption id="caption45" class="tit_2" style="left:15px; top:55px; width:155px; height:14px; font-family:돋움; vertical-align:middle; ">민원환자리스트</caption>
  726. <line id="line1" class="line_1" style="x1:10px; y1:70px; x2:1184px; y2:70px; "/>
  727. <button id="button10" class="btn2_letter4" style="left:1120px; top:50px; width:64px; height:19px; ">
  728. <caption>엑셀저장</caption>
  729. <script type="javascript" ev:event="DOMActivate">
  730. <![CDATA[
  731. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  732. if(fileName != ""){
  733. grd_civilindspec.saveExcel(fileName, "SheetName", true, true, "", "");
  734. }
  735. window.exec(fileName);
  736. ]]>
  737. </script>
  738. </button>
  739. <datagrid id="grd_civilindspec" nodeset="/root/main/capmlist/civilindspeclist" caption="종결여부^대분류^중분류^환자번호^환자명^진료과^주민번호^접수일자^종료일^합의금^민원인명^담당자" colsep="^" colwidth="60, 100, 100, 86, 84, 164, 100, 93, 93, 100, 86, 86" dataheight="23" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:10px; top:75px; width:1174px; height:619px; ">
  740. <col disabled="true" ref="capm_endyn" type="combo" style="text-align:center; ">
  741. <choices>
  742. <itemset nodeset="/root/init/P0046list/P0046">
  743. <label ref="cdnm"/>
  744. <value ref="cdid"/>
  745. </itemset>
  746. </choices>
  747. </col>
  748. <col disabled="true" ref="capm_lrgcd" type="combo" style="text-align:center; ">
  749. <choices>
  750. <itemset nodeset="/root/init/P0450list/P0450">
  751. <label ref="cdnm"/>
  752. <value ref="cdid"/>
  753. </itemset>
  754. </choices>
  755. </col>
  756. <col disabled="true" ref="capm_mdicd" type="combo" style="text-align:center; ">
  757. <choices>
  758. <itemset nodeset="/root/init/P0451list/P0451">
  759. <label ref="cdnm"/>
  760. <value ref="cdid"/>
  761. </itemset>
  762. </choices>
  763. </col>
  764. <col disabled="true" ref="capm_pid" style="text-align:center; "/>
  765. <col disabled="true" ref="capm_hngnm" style="text-align:center; "/>
  766. <col ref="capm_civilaplgenrdeptcd"/>
  767. <col disabled="true" ref="capm_rrgstno" format="999999-9999999" style="text-align:center; "/>
  768. <col disabled="true" ref="capm_civilaplclamdd" format="yyyy-mm-dd" style="text-align:center; "/>
  769. <col disabled="true" ref="capm_civilenddd" format="yyyy-mm-dd" style="text-align:center; "/>
  770. <col disabled="true" ref="capm_agreamt" format="#,###" style="text-align:center; "/>
  771. <col disabled="true" ref="capm_civilaplernm" style="text-align:center; "/>
  772. <col disabled="true" ref="capm_civilaplchrgernm" style="text-align:center; "/>
  773. <script type="javascript" ev:event="ondblclick">
  774. <![CDATA[
  775. if(grd_civilindspec.isCell(event.target)){
  776. model.setValue("/root/main/ptbs/ptbs_pid", model.getValue("/root/main/capmlist/civilindspeclist["+grd_civilindspec.row+"]/capm_pid"));
  777. btn_mngt.selected= true;
  778. fBaseInfoRef(); //조회
  779. }
  780. /*
  781. model.resetInstanceNode("/root/hidden/rcv/ptbs");
  782. model.resetInstanceNode("/root/hidden/rcv/capm");
  783. model.resetInstanceNode("/root/hidden/rcv/chosrec/chosreclist");
  784. var currow = grd_civilindspec.row;
  785. model.setValue("/root/send/data3/pid" , model.getValue("/root/main/capmlist/civilindspeclist["+currow+"]/capm_pid"));
  786. model.setValue("/root/send/data3/civilgenrdd" , model.getValue("/root/main/capmlist/civilindspeclist["+currow+"]/capm_civilgenrdd"));
  787. model.setValue("/root/send/data3/civilseqno" , model.getValue("/root/main/capmlist/civilindspeclist["+currow+"]/capm_civilseqno"));
  788. submit("TRPMC00102");
  789. var ptbs_cnt = getNodesetCount("/root/hidden/rcv/ptbs");
  790. var capm_cnt = getNodesetCount("/root/hidden/rcv/capm");
  791. var opmi_cnt = getNodesetCount("/root/hidden/rcv/chosrec/chosreclist");
  792. if (ptbs_cnt > 0) {
  793. copyNodeType("/root/main/ptbs","/root/hidden/rcv/ptbs","replace");
  794. } else {
  795. model.resetInstanceNode("/root/main/ptbs");
  796. }
  797. if (capm_cnt > 0) {
  798. copyNodeType("/root/main/capm","/root/hidden/rcv/capm","replace");
  799. cmb_lrgcd2.dispatch("xforms-select");
  800. } else {
  801. model.resetInstanceNode("/root/main/capm");
  802. }
  803. if (opmi_cnt > 0) {
  804. model.removeNodeset("/root/main/chosrec");
  805. model.makeNode("/root/main/chosrec");
  806. for(var i=1; i<=opmi_cnt; i++){
  807. model.duplicate("/root/main/chosrec","/root/hidden/rcv/chosrec/chosreclist["+ i +"]");
  808. }
  809. grd_chosreclist.rebuild();
  810. } else {
  811. model.resetInstanceNode("/root/main/chosrec");
  812. }
  813. btn_mngt.selected= true;
  814. */
  815. ]]>
  816. </script>
  817. <toggle case="case2" ev:event="ondblclick"/>
  818. <script type="javascript" ev:event="onaftersort">
  819. <![CDATA[
  820. grd_civilindspec.gridToInstance();
  821. ]]>
  822. </script>
  823. </datagrid>
  824. <group id="group2" style="left:10px; top:10px; width:1174px; height:35px; ">
  825. <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; "/>
  826. <caption id="caption1" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">조회구분 :</caption>
  827. <select1 id="combo1" ref="/root/send/data1/sflagcd" class="combo_search" appearance="minimal" style="left:104px; top:8px; width:115px; height:19px; ">
  828. <choices>
  829. <item>
  830. <label>접수일자</label>
  831. <value>1</value>
  832. </item>
  833. <item>
  834. <label>성명</label>
  835. <value>2</value>
  836. </item>
  837. <item>
  838. <label>환자번호</label>
  839. <value>3</value>
  840. </item>
  841. <item>
  842. <label>종료일자</label>
  843. <value>4</value>
  844. </item>
  845. <item>
  846. <label>담당자</label>
  847. <value>5</value>
  848. </item>
  849. <item>
  850. <label>민원분류</label>
  851. <value>6</value>
  852. </item>
  853. <item>
  854. <label>민원제기방법</label>
  855. <value>7</value>
  856. </item>
  857. </choices>
  858. <script type="javascript" ev:event="xforms-select">
  859. <![CDATA[
  860. var schoino = model.getValue("/root/send/data1/sflagcd");
  861. fChoice(schoino);
  862. ]]>
  863. </script>
  864. </select1>
  865. <caption id="caption11" class="search_name" style="left:520px; top:10px; width:60px; height:17px; ">종결 :</caption>
  866. <select1 id="combo2" ref="/root/send/data1/endflag" class="combo_search" appearance="minimal" style="left:583px; top:10px; width:115px; height:19px; ">
  867. <choices>
  868. <itemset nodeset="/root/init/P0046list/P0046">
  869. <label ref="cdnm"/>
  870. <value ref="cdid"/>
  871. </itemset>
  872. </choices>
  873. </select1>
  874. <line id="line2" class="line_4" style="x1:1088px; y1:7px; x2:1088px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  875. <caption id="caption15" class="search_name" style="left:741px; top:10px; width:60px; height:17px; ">그룹 :</caption>
  876. <select1 id="combo3" ref="/root/send/data1/grupflag" class="combo_search" appearance="minimal" style="left:804px; top:10px; width:115px; height:19px; ">
  877. <choices>
  878. <item>
  879. <label>외래</label>
  880. <value>1</value>
  881. </item>
  882. <item>
  883. <label>입원</label>
  884. <value>2</value>
  885. </item>
  886. <item>
  887. <label>응급</label>
  888. <value>3</value>
  889. </item>
  890. <item>
  891. <label>기타</label>
  892. <value>4</value>
  893. </item>
  894. <item>
  895. <label>전체</label>
  896. <value/>
  897. </item>
  898. </choices>
  899. </select1>
  900. <input id="ipt_sacptdd" ref="/root/send/data1/sflagnm" class="input_search" visibility="visible" inputtype="date" style="left:222px; top:8px; width:115px; height:19px; "/>
  901. <input id="ipt_spid" ref="/root/send/data1/sflagnm" class="input_search" visibility="hidden" style="left:232px; top:8px; width:115px; height:19px; ">
  902. <script type="javascript" ev:event="onkeypress">
  903. <![CDATA[
  904. if(event.keyCode == "13"){
  905. inputEnterKey("btn_search", "DOMActivate");
  906. }
  907. ]]>
  908. </script>
  909. </input>
  910. <input id="ipt_shngnm" ref="/root/send/data1/sflagnm" class="input_search" visibility="hidden" style="left:242px; top:8px; width:115px; height:19px; "/>
  911. <input id="ipt_enddd" ref="/root/send/data1/sflagnm" class="input_search" visibility="hidden" inputtype="date" style="left:252px; top:8px; width:115px; height:19px; "/>
  912. <input id="ipt_civilaplchrgerid" ref="/root/send/data1/sflagnm" visibility="hidden" style="left:262px; top:8px; width:115px; height:19px; "/>
  913. <button id="btn_search" class="btn1_letter2" style="left:1103px; top:5px; width:56px; height:22px; ">
  914. <caption>조회</caption>
  915. <script type="javascript" ev:event="DOMActivate">
  916. <![CDATA[
  917. submit("TRPMC00101");
  918. //btn_prescond.selected= true;
  919. ]]>
  920. </script>
  921. <toggle case="case1" ev:event="onclick"/>
  922. </button>
  923. <select1 id="cmb_lrgcd" ref="/root/send/data1/sflagnm" class="combo_search" visibility="hidden" appearance="minimal" style="left:270px; top:8px; width:115px; height:19px; ">
  924. <choices>
  925. <itemset nodeset="/root/init/P0450list/P0450">
  926. <label ref="cdnm"/>
  927. <value ref="cdid"/>
  928. </itemset>
  929. </choices>
  930. <script type="javascript" ev:event="xforms-select">
  931. <![CDATA[
  932. cmb_mdicd.visible = true;
  933. var sLrgcd = model.getValue("/root/send/data1/sflagnm"); //대분류
  934. cmb_mdicd.choices.itemset.attribute("nodeset") = "/root/init/P0451list/P0451[upcd = '" + sLrgcd + "']"; //중분류
  935. model.setValue("/root/send/data1/sflagnm2", sLrgcd + "01");
  936. cmb_mdicd.refresh();
  937. model.setFocus("cmb_lrgcd");
  938. ]]>
  939. </script>
  940. </select1>
  941. <select1 id="cmb_mdicd" ref="/root/send/data1/sflagnm2" class="combo_search" visibility="hidden" appearance="minimal" style="left:340px; top:8px; width:115px; height:19px; ">
  942. <choices>
  943. <itemset nodeset="/root/init/P0451list/P0451">
  944. <label ref="cdnm"/>
  945. <value ref="cdid"/>
  946. </itemset>
  947. </choices>
  948. </select1>
  949. <select1 id="cmb_civilaplclammthdcd" ref="/root/send/data1/sflagnm" class="combo_search" visibility="hidden" appearance="minimal" style="left:340px; top:8px; width:115px; height:19px; ">
  950. <choices>
  951. <item>
  952. <label>방문</label>
  953. <value>1</value>
  954. </item>
  955. <item>
  956. <label>인터넷</label>
  957. <value>2</value>
  958. </item>
  959. <item>
  960. <label>전화</label>
  961. <value>3</value>
  962. </item>
  963. <item>
  964. <label>고객소리</label>
  965. <value>4</value>
  966. </item>
  967. <item>
  968. <label>기타</label>
  969. <value>5</value>
  970. </item>
  971. </choices>
  972. </select1>
  973. <input id="ipt_sacptdd2" ref="/root/send/data1/sflagnm2" class="input_search" inputtype="date" style="left:365px; top:8px; width:115px; height:19px; ">
  974. <script type="javascript" ev:event="xforms-next">
  975. <![CDATA[
  976. submit("TRPMC00101");
  977. ]]>
  978. </script>
  979. </input>
  980. <caption id="caption26" style="left:345px; top:10px; width:15px; height:15px; ">~</caption>
  981. <input id="ipt_enddd2" ref="/root/send/data1/sflagnm2" class="input_search" visibility="hidden" inputtype="date" style="left:375px; top:8px; width:115px; height:19px; ">
  982. <script type="javascript" ev:event="xforms-next">
  983. <![CDATA[
  984. submit("TRPMC00101");
  985. ]]>
  986. </script>
  987. </input>
  988. </group>
  989. </case>
  990. <case id="case2">
  991. <caption id="caption9" class="cell_1" style="left:5px; top:30px; width:70px; height:23px; vertical-align:middle; ">등록번호</caption>
  992. <input id="ipt_pid" ref="/root/main/ptbs/ptbs_pid" class="input_s_essential" style="left:78px; top:31px; width:117px; height:19px; ">
  993. <script type="javascript" ev:event="onkeypress">
  994. <![CDATA[
  995. if(event.keyCode=='13'){
  996. model.resetInstanceNode("/root/send/data3");
  997. model.resetInstanceNode("/root/send/data4");
  998. //저장쪽에 data5로 바꾼다음 막은거 풀자...
  999. //model.resetInstanceNode("/root/send/data5");
  1000. model.setValue("/root/send/data4/autoflag","Y");
  1001. inputEnterKey("btn_ptbspid", "DOMActivate");
  1002. model.setFocus("ipt_civilaplernm");
  1003. }
  1004. /*
  1005. var iptbscnt = getNodesetCount("/root/hidden/rcv/ptbs");
  1006. //'0'이면 차트번호가 존재하지 않는다. 메세지 처리해주고 필요시 채번 하는 팝업을 띄워준다.
  1007. //'1'이면 정상적으로 처리.
  1008. //'1'이상이면 환자인적조회 팝업을 띄워준다.
  1009. if (iptbscnt == 0) {
  1010. messageBox("환자인적이","I004");
  1011. return;
  1012. }else if (iptbscnt > 1){
  1013. inputEnterKey("btn_ptbspid", "DOMActivate");
  1014. }
  1015. */
  1016. ]]>
  1017. </script>
  1018. </input>
  1019. <button id="btn_ptbspid" class="icon_search" style="left:199px; top:33px; width:16px; height:16px; ">
  1020. <script type="javascript" ev:event="DOMActivate">
  1021. <![CDATA[
  1022. var ptbs_pid = model.getValue("/root/main/ptbs/ptbs_pid");
  1023. if (ptbs_pid == null || ptbs_pid ==" " || ptbs_pid == "") {
  1024. model.resetInstanceNode("/root/send/data4");
  1025. } else {
  1026. model.setValue("/root/send/data4/pid",model.getValue("/root/main/ptbs/ptbs_pid"));
  1027. model.setValue("/root/send/data4/srchcond","1");
  1028. }
  1029. modal("../../../pam/patinfomngtweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/send/data4", "/root/send");
  1030. model.resetInstanceNode("/root/send/data4");
  1031. fBaseInfoRef();
  1032. ]]>
  1033. </script>
  1034. <caption/>
  1035. </button>
  1036. <line id="line5" class="line_2" style="x1:5px; y1:52px; x2:790px; y2:52px; "/>
  1037. <caption id="caption33" class="cell_1" style="left:5px; top:54px; width:70px; height:23px; vertical-align:middle; ">성명[한글]</caption>
  1038. <input id="ipt_hngnm" ref="/root/main/ptbs/ptbs_hngnm" class="input_s_essential" style="left:78px; top:55px; width:117px; height:19px; ">
  1039. <script type="javascript" ev:event="onkeypress">
  1040. <![CDATA[
  1041. if (event.keyCode=='13') {
  1042. setInputNodeCurText();
  1043. if (fHngNmVeri("onkeypress") == false) return;
  1044. model.resetInstanceNode("/root/send/data3");
  1045. model.resetInstanceNode("/root/send/data4");
  1046. //model.resetInstanceNode("/root/send/data5");
  1047. model.setValue("/root/send/data4/autoflag","Y");
  1048. inputEnterKey("btn_ptbshngnm", "DOMActivate");
  1049. }
  1050. ]]>
  1051. </script>
  1052. </input>
  1053. <button id="btn_ptbshngnm" class="icon_search" style="left:199px; top:57px; width:16px; height:16px; ">
  1054. <script type="javascript" ev:event="DOMActivate">
  1055. <![CDATA[
  1056. var ptbs_hngnm = model.getValue("/root/main/ptbs/ptbs_hngnm");
  1057. if (ptbs_hngnm == null || ptbs_hngnm ==" " || ptbs_hngnm == "") {
  1058. model.resetInstanceNode("/root/send/data4");
  1059. } else {
  1060. model.setValue("/root/send/data4/hngnm",model.getValue("/root/main/ptbs/ptbs_hngnm"));
  1061. model.setValue("/root/send/data4/srchcond","2");
  1062. }
  1063. modal("../../../pam/patinfomngtweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/send/data4", "/root/send");
  1064. model.resetInstanceNode("/root/send/data4");
  1065. fBaseInfoRef();
  1066. ]]>
  1067. </script>
  1068. <caption/>
  1069. </button>
  1070. <line id="line6" class="line_2" style="x1:5px; y1:76px; x2:372px; y2:76px; "/>
  1071. <caption id="caption18" class="cell_1" style="left:5px; top:78px; width:70px; height:23px; vertical-align:middle; ">주민번호</caption>
  1072. <input id="ipt_rrgstno1" ref="/root/main/ptbs/ptbs_rrgstno1" class="input_s_essential" maxlength="6" style="left:78px; top:79px; width:52px; height:19px; ">
  1073. <script type="javascript" ev:event="xforms-next">
  1074. <![CDATA[
  1075. if (fRrgstNo1Veri() == false) return;
  1076. ]]>
  1077. </script>
  1078. <script type="javascript" ev:event="onkeypress">
  1079. <![CDATA[
  1080. if (event.keyCode == "13"){
  1081. setInputNodeCurText();
  1082. if (fRrgstNo1Veri() == false) return;
  1083. }
  1084. ]]>
  1085. </script>
  1086. </input>
  1087. <input id="ipt_rrgstno2" ref="/root/main/ptbs/ptbs_rrgstno2" class="input_s_essential" maxlength="7" style="left:133px; top:79px; width:62px; height:19px; ">
  1088. <script type="javascript" ev:event="xforms-next">
  1089. <![CDATA[
  1090. if (fRrgstNo2Veri() == false) return;
  1091. ]]>
  1092. </script>
  1093. <script type="javascript" ev:event="onkeypress">
  1094. <![CDATA[
  1095. if (event.keyCode=='13') {
  1096. setInputNodeCurText();
  1097. if (fRrgstNo2Veri() == false) return;
  1098. model.resetInstanceNode("/root/send/data3");
  1099. model.resetInstanceNode("/root/send/data4");
  1100. //model.resetInstanceNode("/root/send/data5");
  1101. model.setValue("/root/send/data4/autoflag","Y");
  1102. inputEnterKey("btn_ptbsrrgstno", "DOMActivate");
  1103. }
  1104. ]]>
  1105. </script>
  1106. </input>
  1107. <button id="btn_ptbsrrgstno" class="icon_search" style="left:199px; top:81px; width:16px; height:16px; ">
  1108. <script type="javascript" ev:event="DOMActivate">
  1109. <![CDATA[
  1110. var ptbs_rrgstno1 = model.getValue("/root/main/ptbs/ptbs_rrgstno1");
  1111. var ptbs_rrgstno2 = model.getValue("/root/main/ptbs/ptbs_rrgstno2");
  1112. if ((ptbs_rrgstno1 == null || ptbs_rrgstno1 ==" " || ptbs_rrgstno1 == "") && (ptbs_rrgstno2 == null || ptbs_rrgstno2 ==" " || ptbs_rrgstno2 == "")) {
  1113. model.resetInstanceNode("/root/send/data4");
  1114. } else {
  1115. model.setValue("/root/send/data4/rrgstno1",model.getValue("/root/main/ptbs/ptbs_rrgstno1"));
  1116. model.setValue("/root/send/data4/rrgstno2",model.getValue("/root/main/ptbs/ptbs_rrgstno2"));
  1117. model.setValue("/root/send/data4/srchcond","3")
  1118. }
  1119. modal("../../../pam/patinfomngtweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/send/data4", "/root/send");
  1120. model.resetInstanceNode("/root/send/data4");
  1121. fBaseInfoRef();
  1122. ]]>
  1123. </script>
  1124. <caption/>
  1125. </button>
  1126. <caption id="caption4" class="cell_1" style="left:220px; top:30px; width:65px; height:23px; vertical-align:middle; ">성별/나이</caption>
  1127. <input id="input3" ref="/root/main/ptbs/ptbs_sex" class="input_default" disabled="true" style="left:287px; top:31px; width:45px; height:19px; "/>
  1128. <input id="input4" ref="/root/main/ptbs/ptbs_age" class="input_default" disabled="true" style="left:336px; top:31px; width:49px; height:19px; "/>
  1129. <caption id="caption14" class="cell_1" style="left:220px; top:54px; width:65px; height:23px; vertical-align:middle; ">연락처</caption>
  1130. <input id="input15" ref="/root/main/ptbs/ptbs_hometel" class="input_default" disabled="true" style="left:287px; top:55px; width:98px; height:19px; "/>
  1131. <caption id="caption86" class="cell_1" style="left:388px; top:54px; width:85px; height:46px; vertical-align:middle; ">참고사항</caption>
  1132. <button id="btn_remfact" class="btn2_letter2" style="left:431px; top:80px; width:42px; height:19px; ">
  1133. <caption>펼침</caption>
  1134. <script type="javascript" ev:event="DOMActivate">
  1135. <![CDATA[
  1136. if (model.getValue("/root/main/ptbs/ptbs_pid") == "") {
  1137. return;
  1138. }
  1139. model.setValue("/root/main/ptbs/ptbs_remfact", fCallSpecPopUp_remfact(model.getValue("/root/main/ptbs/ptbs_pid"),model.getValue("/root/main/ptbs/ptbs_remfact")));
  1140. tar_remfact.refresh();
  1141. ]]>
  1142. </script>
  1143. </button>
  1144. <textarea id="tar_remfact" ref="/root/main/ptbs/ptbs_remfact" disabled="true" navindex="21" scroll="vertical" editable="false" imemode="hangul" maxlength="450" style="left:475px; top:55px; width:380px; height:44px; "/>
  1145. <caption id="caption123" class="cell_1" style="left:388px; top:30px; width:85px; height:23px; vertical-align:middle; ">직원추천정보</caption>
  1146. <bool id="bool2" disabled="true" checkvalue="Y,N" ref="/root/main/ptbs/ptbs_recmyn" style="left:475px; top:32px; width:20px; height:20px; ">
  1147. <script type="javascript" ev:event="onclick">
  1148. <![CDATA[
  1149. model.setValue("/root/main/patinfo/patinfolist/recmerid", "");
  1150. model.setValue("/root/main/patinfo/patinfolist/recmernm", "");
  1151. model.setValue("/root/main/patinfo/patinfolist/recmerrela", "");
  1152. model.setValue("/root/main/patinfo/patinfolist/baptnm", "");
  1153. ]]>
  1154. </script>
  1155. </bool>
  1156. <caption id="caption20" style="left:495px; top:32px; width:50px; height:20px; ">직원소개</caption>
  1157. <output id="output67" ref="/root/main/ptbs/ptbs_recmernm" class="output_fix" appearance="output" style="left:548px; top:31px; width:80px; height:19px; "/>
  1158. <select1 id="combo37" ref="/root/main/ptbs/ptbs_recmerrela" class="combo_default" disabled="true" appearance="minimal" style="left:630px; top:31px; width:115px; height:19px; ">
  1159. <choices>
  1160. <itemset nodeset="/root/init/P0327list/P0327">
  1161. <label ref="cdnm"/>
  1162. <value ref="cdid"/>
  1163. </itemset>
  1164. </choices>
  1165. </select1>
  1166. <input id="input2" ref="/root/main/ptbs/ptbs_mpphontel" class="input_default" disabled="true" style="left:287px; top:79px; width:98px; height:19px; "/>
  1167. <caption id="caption3" class="cell_1" style="left:750px; top:30px; width:85px; height:23px; vertical-align:middle; ">사망여부</caption>
  1168. <bool id="bool4" disabled="true" checkvalue="Y,N" ref="/root/main/ptbs/ptbs_dethyn" style="left:835px; top:32px; width:20px; height:20px; ">
  1169. <script type="javascript" ev:event="onclick">
  1170. <![CDATA[
  1171. model.setValue("/root/main/patinfo/patinfolist/dethdt", "");
  1172. model.setValue("/root/main/patinfo/patinfolist/dethdd", "");
  1173. model.setValue("/root/main/patinfo/patinfolist/dethtm", "");
  1174. ]]>
  1175. </script>
  1176. </bool>
  1177. <line id="line7" class="line_3" style="x1:3px; y1:126px; x2:854px; y2:126px; "/>
  1178. <line id="line17" class="line_2" style="x1:861px; y1:52px; x2:1186px; y2:52px; "/>
  1179. <line id="line19" class="line_2" style="x1:861px; y1:76px; x2:1186px; y2:76px; "/>
  1180. <line id="line22" class="line_2" style="x1:861px; y1:148px; x2:1186px; y2:148px; "/>
  1181. <line id="line21" class="line_2" style="x1:861px; y1:124px; x2:1186px; y2:124px; "/>
  1182. <line id="line20" class="line_2" style="x1:861px; y1:100px; x2:1186px; y2:100px; "/>
  1183. <line id="line25" class="line_2" style="x1:5px; y1:326px; x2:856px; y2:326px; "/>
  1184. <line id="line24" class="line_2" style="x1:5px; y1:302px; x2:856px; y2:302px; "/>
  1185. <line id="line13" class="line_2" style="x1:5px; y1:278px; x2:856px; y2:278px; "/>
  1186. <line id="line12" class="line_2" style="x1:5px; y1:254px; x2:856px; y2:254px; "/>
  1187. <line id="line23" class="line_2" style="x1:5px; y1:230px; x2:856px; y2:230px; "/>
  1188. <line id="line10" class="line_2" style="x1:5px; y1:206px; x2:856px; y2:206px; "/>
  1189. <line id="line14" class="line_2" style="x1:5px; y1:182px; x2:856px; y2:182px; "/>
  1190. <caption id="caption46" class="cell_1" style="left:861px; top:150px; width:74px; height:220px; vertical-align:middle; ">종결내역</caption>
  1191. <input id="input7" ref="/root/main/capm/capm_civilgenrdd" class="input_essential" navindex="7" inputtype="date" style="left:90px; top:209px; width:120px; height:19px; ">
  1192. <script type="javascript" ev:event="onkeydown">
  1193. <![CDATA[
  1194. if( event.keyCode == 13 ) {
  1195. var pCurTargetObj = event.ptarget.parent;
  1196. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select"){
  1197. event.keyCode = 9;
  1198. pCurTargetObj.dispatch("onkeydown");
  1199. }else{
  1200. event.keyCode = 9;
  1201. }
  1202. }
  1203. event.stopPropagation();
  1204. ]]>
  1205. </script>
  1206. </input>
  1207. <caption id="caption40" class="cell_1" style="left:861px; top:102px; width:74px; height:23px; vertical-align:middle; ">감면액</caption>
  1208. <input id="input20" ref="/root/main/capm/capm_reductamt" class="input_default" format="#,###" style="left:937px; top:103px; width:120px; height:19px; "/>
  1209. <caption id="caption2" class="tit_2" style="left:866px; top:10px; width:119px; height:13px; font-family:돋움; vertical-align:middle; ">종결사항</caption>
  1210. <caption id="caption10" class="tit_2" style="left:10px; top:140px; width:204px; height:13px; font-family:돋움; vertical-align:middle; ">민원사항</caption>
  1211. <input id="input1" ref="/root/main/capm/capm_totordamt" class="input_default" format="#,###" style="left:937px; top:31px; width:120px; height:19px; "/>
  1212. <caption id="caption21" class="cell_1" style="left:5px; top:208px; width:82px; height:23px; vertical-align:middle; ">민원발생일자</caption>
  1213. <input id="input34" ref="/root/main/capm/capm_civilenddd" class="input_default" inputtype="date" style="left:937px; top:127px; width:120px; height:19px; "/>
  1214. <caption id="caption5" class="tit_2" style="left:10px; top:10px; width:80px; height:13px; font-family:돋움; vertical-align:middle; ">인적사항</caption>
  1215. <caption id="cap_privacy" visibility="hidden" style="left:87px; top:3px; width:74px; height:20px; font-size:8pt; font-weight:bold; color:#000000; text-align:center; background-color:#ff0000; border-color:#000000; border-style:solid; ">사생활보호</caption>
  1216. <caption id="caption47" class="cell_1" style="left:861px; top:30px; width:74px; height:23px; vertical-align:middle; ">총진료비</caption>
  1217. <line id="line3" class="line_1" style="x1:5px; y1:25px; x2:856px; y2:25px; "/>
  1218. <caption id="caption48" class="cell_1" style="left:861px; top:54px; width:74px; height:23px; vertical-align:middle; ">본인부담금</caption>
  1219. <line id="line18" class="line_1" style="x1:861px; y1:25px; x2:1186px; y2:25px; "/>
  1220. <line id="line4" class="line_1" style="x1:5px; y1:155px; x2:856px; y2:155px; "/>
  1221. <caption id="caption49" class="cell_1" style="left:861px; top:126px; width:74px; height:23px; vertical-align:middle; ">종결일자</caption>
  1222. <input id="input18" ref="/root/main/capm/capm_agreamt" class="input_default" format="#,###" style="left:937px; top:79px; width:120px; height:19px; "/>
  1223. <caption id="caption28" class="cell_1" style="left:861px; top:78px; width:74px; height:23px; vertical-align:middle; ">합의금</caption>
  1224. <input id="input19" ref="/root/main/capm/capm_ownbamt" class="input_default" format="#,###" style="left:937px; top:55px; width:120px; height:19px; "/>
  1225. <input id="input31" ref="/root/main/capm/capm_ordfromdd" class="input_default" navindex="13" inputtype="date" style="left:731px; top:233px; width:125px; height:19px; ">
  1226. <script type="javascript" ev:event="onkeydown">
  1227. <![CDATA[
  1228. if( event.keyCode == 13 ) {
  1229. var pCurTargetObj = event.ptarget.parent;
  1230. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  1231. event.keyCode = 9;
  1232. pCurTargetObj.dispatch("onkeydown");
  1233. }else{
  1234. event.keyCode = 9;
  1235. }
  1236. }
  1237. event.stopPropagation();
  1238. ]]>
  1239. </script>
  1240. </input>
  1241. <caption id="caption41" class="cell_1" style="left:638px; top:304px; width:90px; height:23px; vertical-align:middle; ">민원회신여부</caption>
  1242. <caption id="caption30" class="cell_1" style="left:638px; top:160px; width:90px; height:23px; vertical-align:middle; ">연락처</caption>
  1243. <input id="input21" ref="/root/main/capm/capm_civilaplchrgerid" class="input_default" disabled="true" navindex="9" style="left:515px; top:209px; width:120px; height:19px; ">
  1244. <script type="javascript" ev:event="onkeydown">
  1245. <![CDATA[
  1246. if(event.keyCode == 13){
  1247. var pCurTargetObj = event.ptarget.parent;
  1248. if(pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select"){
  1249. event.keyCode = 9;
  1250. pCurTargetObj.dispatch("onkeydown");
  1251. }else{
  1252. event.keyCode = 9;
  1253. }
  1254. }
  1255. event.stopPropagation();
  1256. ]]>
  1257. </script>
  1258. </input>
  1259. <caption id="caption42" class="cell_1" style="left:417px; top:232px; width:95px; height:23px; vertical-align:middle; ">민원종결상태</caption>
  1260. <input id="ipt_smlcnts" ref="/root/main/capm/capm_smlcnts" class="input_default" navindex="23" style="left:365px; top:305px; width:270px; height:19px; ">
  1261. <script type="javascript" ev:event="onkeydown">
  1262. <![CDATA[
  1263. if( event.keyCode == 13 ) {
  1264. var pCurTargetObj = event.ptarget.parent;
  1265. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  1266. event.keyCode = 9;
  1267. pCurTargetObj.dispatch("onkeydown");
  1268. }else{
  1269. event.keyCode = 9;
  1270. }
  1271. }
  1272. event.stopPropagation();
  1273. ]]>
  1274. </script>
  1275. </input>
  1276. <caption id="caption31" class="cell_1" style="left:213px; top:232px; width:80px; height:23px; vertical-align:middle; ">전달부서</caption>
  1277. <caption id="caption43" class="cell_1" style="left:638px; top:232px; width:90px; height:23px; vertical-align:middle; ">진료시작일자</caption>
  1278. <input id="input33" ref="/root/main/capm/capm_civilapltrgt" class="input_default" navindex="19" style="left:296px; top:281px; width:118px; height:19px; ">
  1279. <script type="javascript" ev:event="onkeydown">
  1280. <![CDATA[
  1281. if( event.keyCode == 13 ) {
  1282. var pCurTargetObj = event.ptarget.parent;
  1283. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  1284. event.keyCode = 9;
  1285. pCurTargetObj.dispatch("onkeydown");
  1286. }else{
  1287. event.keyCode = 9;
  1288. }
  1289. }
  1290. event.stopPropagation();
  1291. ]]>
  1292. </script>
  1293. </input>
  1294. <caption id="caption32" class="cell_1" style="left:5px; top:280px; width:82px; height:23px; vertical-align:middle; ">전문의</caption>
  1295. <caption id="caption44" class="cell_1" style="left:417px; top:256px; width:95px; height:23px; vertical-align:middle; ">민원제기방법</caption>
  1296. <button id="button7" class="icon_search" navindex="5" style="left:190px; top:186px; width:16px; height:16px; ">
  1297. <caption/>
  1298. <script type="javascript" ev:event="DOMActivate">
  1299. <![CDATA[
  1300. var rcv_zipcdhead_path = '/root/main/capm/capm_zipcd1';
  1301. var rcv_zipcdfoot_path = '/root/main/capm/capm_zipcd2';
  1302. var rcv_seqno_path = '/root/main/capm/capm_zipcdseq';
  1303. var rcv_address_path = '/root/main/capm/capm_address';
  1304. var term = model.getValue("recv_zipcdhead_path");
  1305. zbcfOpenZipCodeList("combination", term, rcv_zipcdhead_path, rcv_zipcdfoot_path, rcv_seqno_path, rcv_address_path);
  1306. //modal("../../../com/zipcodeweb/xrw/SPZBP00100", "1","150", "150", "SPZBP00100", "/root/source", "/root/send");
  1307. ]]>
  1308. </script>
  1309. </button>
  1310. <input id="input23" ref="/root/main/capm/capm_civilaplclamdd" class="input_default" navindex="10" inputtype="date" style="left:90px; top:233px; width:120px; height:19px; ">
  1311. <script type="javascript" ev:event="onkeydown">
  1312. <![CDATA[
  1313. if( event.keyCode == 13 ) {
  1314. var pCurTargetObj = event.ptarget.parent;
  1315. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  1316. event.keyCode = 9;
  1317. pCurTargetObj.dispatch("onkeydown");
  1318. } else {
  1319. event.keyCode = 9;
  1320. }
  1321. }
  1322. event.stopPropagation();
  1323. ]]>
  1324. </script>
  1325. </input>
  1326. <caption id="caption22" class="cell_1" style="left:5px; top:160px; width:82px; height:23px; vertical-align:middle; ">민원인명</caption>
  1327. <caption id="caption23" class="cell_1" style="left:417px; top:160px; width:95px; height:23px; vertical-align:middle; ">관계</caption>
  1328. <input id="input35" ref="/root/main/capm/capm_zipcd1" class="input_default" style="left:90px; top:185px; width:30px; height:19px; "/>
  1329. <input id="input24" ref="/root/main/capm/capm_civilaplertel" class="input_default" navindex="4" style="left:731px; top:161px; width:125px; height:19px; ">
  1330. <script type="javascript" ev:event="onkeydown">
  1331. <![CDATA[
  1332. if( event.keyCode == 13 ) {
  1333. var pCurTargetObj = event.ptarget.parent;
  1334. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  1335. event.keyCode = 9;
  1336. pCurTargetObj.dispatch("onkeydown");
  1337. } else {
  1338. event.keyCode = 9;
  1339. }
  1340. }
  1341. event.stopPropagation();
  1342. ]]>
  1343. </script>
  1344. </input>
  1345. <caption id="caption34" class="cell_1" style="left:213px; top:256px; width:80px; height:23px; vertical-align:middle; ">전달일자</caption>
  1346. <line id="line16" class="line_3" style="x1:861px; y1:374px; x2:1186px; y2:374px; "/>
  1347. <caption id="caption24" class="cell_1" style="left:638px; top:256px; width:90px; height:23px; vertical-align:middle; ">진료종료일자</caption>
  1348. <input id="input36" ref="/root/main/capm/capm_zipcd2" class="input_default" style="left:123px; top:185px; width:30px; height:19px; "/>
  1349. <caption id="caption35" class="cell_1" style="left:213px; top:328px; width:82px; height:47px; vertical-align:middle; ">전달사항</caption>
  1350. <select1 id="radio1" ref="/root/main/capm/capm_civilaplreplyn" navindex="24" appearance="full" cellspacing="5" cols="2" overflow="hidden" style="left:731px; top:307px; width:104px; height:20px; background-color:transparent; border-style:none; ">
  1351. <choices>
  1352. <item>
  1353. <label>Yes</label>
  1354. <value>Y</value>
  1355. </item>
  1356. <item>
  1357. <label>No</label>
  1358. <value>N</value>
  1359. </item>
  1360. </choices>
  1361. <script type="javascript" ev:event="onkeydown">
  1362. <![CDATA[
  1363. if( event.keyCode == 13 ) {
  1364. var pCurTargetObj = event.ptarget.parent;
  1365. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  1366. event.keyCode = 9;
  1367. pCurTargetObj.dispatch("onkeydown");
  1368. } else {
  1369. event.keyCode = 9;
  1370. }
  1371. }
  1372. event.stopPropagation();
  1373. ]]>
  1374. </script>
  1375. </select1>
  1376. <input id="input37" ref="/root/main/capm/capm_address" class="input_default" style="left:213px; top:185px; width:199px; height:19px; "/>
  1377. <caption id="caption36" class="cell_1" style="left:5px; top:232px; width:82px; height:23px; vertical-align:middle; ">민원제기일자</caption>
  1378. <caption id="caption7" class="cell_1" style="left:5px; top:184px; width:82px; height:23px; vertical-align:middle; ">주소</caption>
  1379. <input id="input38" ref="/root/main/capm/capm_infaddr" class="input_default" navindex="6" style="left:515px; top:185px; width:341px; height:19px; ">
  1380. <script type="javascript" ev:event="onkeydown">
  1381. <![CDATA[
  1382. if( event.keyCode == 13 ) {
  1383. var pCurTargetObj = event.ptarget.parent;
  1384. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  1385. event.keyCode = 9;
  1386. pCurTargetObj.dispatch("onkeydown");
  1387. } else {
  1388. event.keyCode = 9;
  1389. }
  1390. }
  1391. event.stopPropagation();
  1392. ]]>
  1393. </script>
  1394. </input>
  1395. <select1 id="cmb_scivilaplclammthdcd" ref="/root/main/capm/capm_civilaplclammthdcd" class="combo_default" navindex="16" appearance="minimal" style="left:515px; top:257px; width:120px; height:19px; ">
  1396. <choices>
  1397. <item>
  1398. <label>방문</label>
  1399. <value>1</value>
  1400. </item>
  1401. <item>
  1402. <label>인터넷</label>
  1403. <value>2</value>
  1404. </item>
  1405. <item>
  1406. <label>전화</label>
  1407. <value>3</value>
  1408. </item>
  1409. <item>
  1410. <label>고객소리</label>
  1411. <value>4</value>
  1412. </item>
  1413. <item>
  1414. <label>기타</label>
  1415. <value>5</value>
  1416. </item>
  1417. </choices>
  1418. <script type="javascript" ev:event="onkeydown">
  1419. <![CDATA[
  1420. if( event.keyCode == 13 ) {
  1421. var pCurTargetObj = event.ptarget.parent;
  1422. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  1423. event.keyCode = 9;
  1424. pCurTargetObj.dispatch("onkeydown");
  1425. }else{
  1426. event.keyCode = 9;
  1427. }
  1428. }
  1429. event.stopPropagation();
  1430. ]]>
  1431. </script>
  1432. </select1>
  1433. <select1 id="radio2" ref="/root/main/capm/capm_civilaplersex" navindex="2" appearance="full" cellspacing="5" cols="2" overflow="hidden" style="left:296px; top:163px; width:99px; height:20px; background-color:transparent; border-style:none; ">
  1434. <choices>
  1435. <item>
  1436. <label>남자</label>
  1437. <value>M</value>
  1438. </item>
  1439. <item>
  1440. <label>여자</label>
  1441. <value>F</value>
  1442. </item>
  1443. </choices>
  1444. <script type="javascript" ev:event="onkeydown">
  1445. <![CDATA[
  1446. if( event.keyCode == 13 ) {
  1447. var pCurTargetObj = event.ptarget.parent;
  1448. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  1449. event.keyCode = 9;
  1450. pCurTargetObj.dispatch("onkeydown");
  1451. } else {
  1452. event.keyCode = 9;
  1453. }
  1454. }
  1455. event.stopPropagation();
  1456. ]]>
  1457. </script>
  1458. </select1>
  1459. <caption id="caption37" class="cell_1" style="left:5px; top:256px; width:82px; height:23px; vertical-align:middle; ">
  1460. <![CDATA[민원발생과]]>
  1461. <script type="javascript" ev:event="onclick">
  1462. <![CDATA[
  1463. modal("../../../pam/patinfomngtweb/xrw/SSPMC07400", "1","100", "100", "SSPMC07400", "", "");
  1464. ]]>
  1465. </script>
  1466. </caption>
  1467. <select1 id="radio3" ref="/root/main/capm/capm_civilaplendstatcd" navindex="12" appearance="full" cellspacing="5" cols="3" overflow="hidden" style="left:515px; top:235px; width:120px; height:20px; background-color:transparent; border-style:none; ">
  1468. <choices>
  1469. <item>
  1470. <label>상</label>
  1471. <value>1</value>
  1472. </item>
  1473. <item>
  1474. <label>중</label>
  1475. <value>2</value>
  1476. </item>
  1477. <item>
  1478. <label>하</label>
  1479. <value>3</value>
  1480. </item>
  1481. </choices>
  1482. <script type="javascript" ev:event="onkeydown">
  1483. <![CDATA[
  1484. if( event.keyCode == 13 ) {
  1485. var pCurTargetObj = event.ptarget.parent;
  1486. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  1487. event.keyCode = 9;
  1488. pCurTargetObj.dispatch("onkeydown");
  1489. } else {
  1490. event.keyCode = 9;
  1491. }
  1492. }
  1493. event.stopPropagation();
  1494. ]]>
  1495. </script>
  1496. </select1>
  1497. <caption id="caption16" class="cell_1" style="left:417px; top:184px; width:95px; height:23px; vertical-align:middle; ">하위주소</caption>
  1498. <caption id="caption27" class="cell_1" style="left:213px; top:160px; width:80px; height:23px; vertical-align:middle; ">성별</caption>
  1499. <select1 id="cmb_lrgcd2" ref="/root/main/capm/capm_lrgcd" class="combo_default" navindex="21" appearance="minimal" style="left:90px; top:305px; width:120px; height:19px; ">
  1500. <choices>
  1501. <itemset nodeset="/root/init/P0450list/P0450">
  1502. <label ref="cdnm"/>
  1503. <value ref="cdid"/>
  1504. </itemset>
  1505. </choices>
  1506. <script type="javascript" ev:event="xforms-select">
  1507. <![CDATA[
  1508. var sLrgcd = model.getValue("/root/main/capm/capm_lrgcd"); //대분류
  1509. cmb_mdicd2.choices.itemset.attribute("nodeset") = "/root/init/P0451list/P0451[upcd = '" + sLrgcd + "']"; //중분류
  1510. model.setValue("/root/main/capm/capm_mdicd", sLrgcd + "01");
  1511. cmb_mdicd2.refresh();
  1512. //불친절(04), 시설(05), 기타(06) 일 때 중분류 -(01)로 강제설정 후 cmb_mdicd.disabled = true로 설정
  1513. /*
  1514. if (sLrgcd == "04" || sLrgcd == "05" || sLrgcd == "06"){
  1515. var sMdicd = sLrgcd + "01";
  1516. model.setValue("/root/main/capm/capm_mdicd", sMdicd);
  1517. cmb_mdicd2.disabled = true;
  1518. model.setFocus("ipt_smlcnts");
  1519. }else{
  1520. cmb_mdicd2.disabled = false;
  1521. cmb_mdicd2.refresh();
  1522. if (!isNull(sLrgcd)) {
  1523. model.setFocus("cmb_mdicd");
  1524. }
  1525. }
  1526. */
  1527. ]]>
  1528. </script>
  1529. </select1>
  1530. <select1 id="cmb_mdicd2" ref="/root/main/capm/capm_mdicd" class="combo_default" navindex="22" appearance="minimal" style="left:213px; top:305px; width:150px; height:19px; ">
  1531. <choices>
  1532. <itemset nodeset="/root/init/P0451list/P0451">
  1533. <label ref="cdnm"/>
  1534. <value ref="cdid"/>
  1535. </itemset>
  1536. </choices>
  1537. <script type="javascript" ev:event="xforms-value-changed">
  1538. <![CDATA[
  1539. var sLrgcd = model.getValue("/root/main/capm/capm_lrgcd"); //대분류
  1540. if(isNull(sLrgcd)) {
  1541. messageBox("", "");
  1542. }
  1543. model.setFocus("ipt_smlcnts");
  1544. ]]>
  1545. </script>
  1546. </select1>
  1547. <textarea id="textarea1" ref="/root/main/capm/capm_rcptdelivefact" navindex="25" style="left:298px; top:330px; width:558px; height:41px; "/>
  1548. <caption id="caption38" class="cell_1" style="left:5px; top:304px; width:82px; height:23px; vertical-align:middle; ">민원분류</caption>
  1549. <textarea id="textarea2" ref="/root/main/capm/capm_endspec" style="left:937px; top:151px; width:252px; height:219px; "/>
  1550. <input id="input29" ref="/root/main/capm/capm_ordtodd" class="input_default" navindex="17" inputtype="date" style="left:731px; top:257px; width:125px; height:19px; ">
  1551. <script type="javascript" ev:event="onkeydown">
  1552. <![CDATA[
  1553. if( event.keyCode == 13 ) {
  1554. var pCurTargetObj = event.ptarget.parent;
  1555. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  1556. event.keyCode = 9;
  1557. pCurTargetObj.dispatch("onkeydown");
  1558. } else {
  1559. event.keyCode = 9;
  1560. }
  1561. }
  1562. event.stopPropagation();
  1563. ]]>
  1564. </script>
  1565. </input>
  1566. <caption id="caption39" class="cell_1" style="left:638px; top:208px; width:90px; height:23px; vertical-align:middle; ">민원일련번호</caption>
  1567. <caption id="caption19" class="cell_1" style="left:417px; top:208px; width:95px; height:23px; vertical-align:middle; ">담당자</caption>
  1568. <caption id="caption8" class="cell_1" style="left:213px; top:280px; width:80px; height:23px; vertical-align:middle; ">민원대상</caption>
  1569. <caption id="caption17" class="cell_1" style="left:213px; top:208px; width:80px; height:23px; vertical-align:middle; ">구분</caption>
  1570. <select1 id="combo7" ref="/root/main/capm/capm_civilaplflag" class="combo_default" navindex="8" appearance="minimal" style="left:296px; top:209px; width:118px; height:19px; ">
  1571. <choices>
  1572. <itemset nodeset="/root/init/P0449list/P0449">
  1573. <label ref="cdnm"/>
  1574. <value ref="cdid"/>
  1575. </itemset>
  1576. </choices>
  1577. <script type="javascript" ev:event="onkeydown">
  1578. <![CDATA[
  1579. if( event.keyCode == 13 ) {
  1580. var pCurTargetObj = event.ptarget.parent;
  1581. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  1582. event.keyCode = 9;
  1583. pCurTargetObj.dispatch("onkeydown");
  1584. } else {
  1585. event.keyCode = 9;
  1586. }
  1587. }
  1588. event.stopPropagation();
  1589. ]]>
  1590. </script>
  1591. </select1>
  1592. <input id="input27" ref="/root/main/capm/capm_delivedd" class="input_default" navindex="15" inputtype="date" style="left:296px; top:257px; width:118px; height:19px; ">
  1593. <script type="javascript" ev:event="onkeydown">
  1594. <![CDATA[
  1595. if( event.keyCode == 13 ) {
  1596. var pCurTargetObj = event.ptarget.parent;
  1597. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  1598. event.keyCode = 9;
  1599. pCurTargetObj.dispatch("onkeydown");
  1600. } else {
  1601. event.keyCode = 9;
  1602. }
  1603. }
  1604. event.stopPropagation();
  1605. ]]>
  1606. </script>
  1607. </input>
  1608. <input id="input28" ref="/root/main/capm/capm_delivedeptcd" class="input_default" navindex="11" maxlength="30" style="left:296px; top:233px; width:118px; height:19px; ">
  1609. <script type="javascript" ev:event="onkeydown">
  1610. <![CDATA[
  1611. if( event.keyCode == 13 ) {
  1612. var pCurTargetObj = event.ptarget.parent;
  1613. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  1614. event.keyCode = 9;
  1615. pCurTargetObj.dispatch("onkeydown");
  1616. } else {
  1617. event.keyCode = 9;
  1618. }
  1619. }
  1620. event.stopPropagation();
  1621. ]]>
  1622. </script>
  1623. </input>
  1624. <button id="btn_print" class="btn2_letter2" style="left:770px; top:5px; width:42px; height:19px; ">
  1625. <caption>출력</caption>
  1626. <script type="javascript" ev:event="DOMActivate">
  1627. <![CDATA[
  1628. var sPid = model.getValue("/root/main/capm/capm_pid");
  1629. if (isNull(sPid)) {
  1630. messageBox("민원사항이 ", "I004");
  1631. return;
  1632. }
  1633. //1. 민원내용조회
  1634. model.setValue("/root/send/data6/pid",model.getValue("/root/main/capm/capm_pid"));
  1635. model.setValue("/root/send/data6/civilgenrdd",model.getValue("/root/main/capm/capm_civilgenrdd"));
  1636. model.setValue("/root/send/data6/civilseqno",model.getValue("/root/main/capm/capm_civilseqno"));
  1637. if(!submit("TRPMC00105")){
  1638. messageBox("민원내용 조회를", "E009");
  1639. return;
  1640. }
  1641. //2. 출력데이터생성
  1642. model.setValue("/root/main/capm_print/rex_capm/capm_civilgenrdd" , model.getValue("/root/main/capm/capm_civilgenrdd")); //접수일자
  1643. model.setValue("/root/main/capm_print/rex_capm/capm_civilaplclammthdcd" , cmb_scivilaplclammthdcd.label); //접수방법
  1644. model.setValue("/root/main/capm_print/rex_capm/capm_ordfromdd" , model.getValue("/root/main/capm/capm_ordfromdd")); //내원일
  1645. var sCivilType = model.getValue("/root/main/capm/capm_civilaplflag");
  1646. model.setValue("/root/main/capm_print/rex_capm/capm_civilaplflag" , model.getValue("/root/init/P0449list/P0449[cdid='" + sCivilType + "']/cdnm")); //구분
  1647. model.setValue("/root/main/capm_print/rex_capm/capm_civilaplernm" , model.getValue("/root/main/capm/capm_civilaplernm")); //민원인
  1648. model.setValue("/root/main/capm_print/rex_capm/capm_patrela" , model.getValue("/root/main/capm/capm_patrela")); //관계
  1649. model.setValue("/root/main/capm_print/rex_capm/capm_civilaplertel" , model.getValue("/root/main/capm/capm_civilaplertel")); //연락처
  1650. model.setValue("/root/main/capm_print/rex_capm/capm_pid" , model.getValue("/root/main/capm/capm_pid")); //환자번호
  1651. model.setValue("/root/main/capm_print/rex_capm/capm_hngnm" , model.getValue("/root/main/ptbs/ptbs_hngnm")); //환자명
  1652. model.setValue("/root/main/capm_print/rex_capm/capm_fulladdr" , model.getValue("/root/main/capm/capm_address") + " " +model.getValue("/root/main/capm/capm_infaddr"));
  1653. // var sDeptcd = model.getValue("/root/main/capm/capm_civilaplgenrdeptcd");
  1654. // model.setValue("/root/main/capm_print/rex_capm/capm_civilaplgenrdeptcd" , model.getValue("/root/hidden/init/orddeptcd[cd='"+sDeptcd+"']/nm")); //진료과
  1655. model.setValue("/root/main/capm_print/rex_capm/capm_civilaplgenrdepthngnm" , model.getValue("/root/main/capm/capm_civilaplgenrdepthngnm"));
  1656. model.setValue("/root/main/capm_print/rex_capm/capm_civilapltrgt" , model.getValue("/root/main/capm/capm_civilapltrgt")); //관련직원
  1657. model.setValue("/root/main/capm_print/rex_capm/capm_civilaplrepldd" , model.getValue("/root/main/capm/capm_civilaplrepldd")); //회신일자
  1658. var sLrgcd = model.getValue("/root/main/capm/capm_lrgcd");
  1659. model.setValue("/root/main/capm_print/rex_capm/capm_lrgcd" , model.getValue("/root/init/P0450list/P0450[cdid='"+ sLrgcd +"']/cdnm")); //대분류
  1660. var sMdicd = model.getValue("/root/main/capm/capm_mdicd");
  1661. model.setValue("/root/main/capm_print/rex_capm/capm_mdicd" , model.getValue("/root/init/P0451list/P0451[cdid='"+ sMdicd +"']/cdnm")); //중분류
  1662. model.setValue("/root/main/capm_print/rex_capm/capm_smlcnts" , model.getValue("/root/main/capm/capm_smlcnts")); //소분류
  1663. model.setValue("/root/main/capm_print/rex_capm/capm_instcd" , getUserInfo("dutiposinstcd")); //근무지코드
  1664. model.makevalue("/root/main/capm_print/rex_capm/capm_logo" , getLogoImageURL()); //병원로고
  1665. /* 출력물 수정에 따른 주석처리 - 20140403
  1666. model.setValue("/root/main/capm_print/rex_capm/capm_civilaplchrgernm" , model.getValue("/root/main/capm/capm_civilaplchrgerid")); //접수자
  1667. var sDoctid = model.getValue("/root/main/capm/capm_atdoctid");
  1668. if (sDoctid != '-') {
  1669. model.setValue("/root/main/capm_print/rex_capm/capm_atdoctid" , model.getValue("/root/hidden/init/orddrid[cd='"+sDoctid+"']/nm")); // 주치의
  1670. } else {
  1671. model.setValue("/root/main/capm_print/rex_capm/capm_atdoctid" , model.getValue("/root/main/capm/capm_atdoctid"));
  1672. }
  1673. model.setValue("/root/main/capm_print/rex_capm/capm_signyn" , model.getValue("/root/send/cond_signyn")); //출력구분
  1674. //진단명 조회
  1675. var sPid = model.getValue("/root/main/capm/capm_pid");
  1676. if(!isNull(sPid)) {
  1677. model.setValue("/root/send/data7/pid", sPid);
  1678. model.setValue("/root/send/data7/orddeptcd", model.getValue("/root/main/capm/capm_civilaplgenrdeptcd"));
  1679. model.setValue("/root/send/data7/ordfromdd", model.getValue("/root/main/capm/capm_ordfromdd"));
  1680. model.setValue("/root/send/data7/ordtodd", model.getValue("/root/main/capm/capm_ordtodd"));
  1681. if (submit("TRPMC00106")) {
  1682. model.resetInstanceNode("/root/send/data7");
  1683. model.setValue("/root/main/capm_print/rex_capm/capm_diagnm" , model.getValue("/root/hidden/diaginfo/termhngnm")); // 상병명
  1684. }
  1685. }
  1686. */
  1687. var sCivilaplcnts = "";
  1688. var sTretfact = "";
  1689. var sRsltcnts = "";
  1690. var sCivilaplcntsDD = "";
  1691. var sTretfactDD = "";
  1692. var sRsltcntsDD = "";
  1693. var iCount = 0;
  1694. //출력구분(1:민원내용, 2:민원답변, 3:개선사항)
  1695. //var cond_signyn = model.getValue("/root/send/cond_signyn");
  1696. var temp = "";
  1697. var etccd = "";
  1698. var etccd_array = new Array();
  1699. var etccd_len = 0;
  1700. var etccd = model.getValue("/root/send/cond_signyn").getTrim();
  1701. if(etccd != ""){
  1702. var etccd_array = etccd.split(" ");
  1703. for(var b=1; b<=etccd_array.length; b++){
  1704. for(var i=0; i<=etccd_array.length-1; i++){
  1705. if(etccd_array[i].substring(0, 1) == "P"){
  1706. etccd_array[i] = etccd_array[i].substring(1, 3);
  1707. }
  1708. temp = "";
  1709. if(etccd_array[i+1] < etccd_array[i]){
  1710. temp = etccd_array[i];
  1711. etccd_array[i] = etccd_array[i+1];
  1712. etccd_array[i+1] = temp;
  1713. i = 0;
  1714. }
  1715. }
  1716. }
  1717. for(var i=0; i<=etccd_array.length-1; i++){
  1718. //민원내용
  1719. if(etccd_array[i] == "1"){
  1720. iCount = 0;
  1721. iCount = getNodesetCount("/root/main/cacmlist/list1/grdcivilaplcnts");
  1722. if (iCount == 1) {
  1723. sCivilaplcntsDD = "민원내용 :\n" + model.getValue("/root/main/cacmlist/list1/grdcivilaplcnts/civilrgstdd");
  1724. sCivilaplcnts = model.getValue("/root/main/cacmlist/list1/grdcivilaplcnts/civilaplcnts") + "\n";
  1725. } else {
  1726. for(var idx=1; idx<=iCount; idx++){
  1727. //줄수를 파악하기 위해 문자열을 받는다.
  1728. if(idx == iCount){
  1729. var sCivilaplcntscnt = model.getValue("/root/main/cacmlist/list1/grdcivilaplcnts[" + idx + "]/civilaplcnts");
  1730. }else{
  1731. var sCivilaplcntscnt = model.getValue("/root/main/cacmlist/list1/grdcivilaplcnts[" + idx + "]/civilaplcnts") +
  1732. "\n------------------------------------------------------------------------------";
  1733. };
  1734. //각 건마다의 줄수를 파악한다.
  1735. var linenum = 0;
  1736. var point = 0;
  1737. var endcheck = sCivilaplcntscnt.lastIndexOf ('\n');
  1738. while(true){
  1739. point = sCivilaplcntscnt.indexOf('\n', point);
  1740. linenum++;
  1741. if(endcheck == point++) break;
  1742. }
  1743. //줄 수만큼의 줄바꿈을 작성일자에도 더하여준다.
  1744. var linechange = "";
  1745. for(var linecnt = 0; linecnt < linenum; linecnt++){
  1746. linechange += "\n";
  1747. }
  1748. sCivilaplcntsDD += "민원내용 :\n" + model.getValue("/root/main/cacmlist/list1/grdcivilaplcnts[" + idx + "]/civilrgstdd") + linechange;
  1749. if(idx == iCount){
  1750. sCivilaplcnts += sCivilaplcntscnt;
  1751. }else{
  1752. sCivilaplcnts += sCivilaplcntscnt + "\n";
  1753. }
  1754. }
  1755. }
  1756. }
  1757. //민원답변
  1758. if(etccd_array[i] == "2"){
  1759. iCount = 0;
  1760. iCount = getNodesetCount("/root/main/cacmlist/list2/grdtretfact");
  1761. if (iCount == 1) {
  1762. sTretfactDD = "민원답변 :\n" + model.getValue("/root/main/cacmlist/list2/grdtretfact/civilrgstdd");
  1763. sTretfact = model.getValue("/root/main/cacmlist/list2/grdtretfact/civilaplcnts") + "\n";
  1764. } else {
  1765. for(var idx = 1; idx <= iCount ; idx++) {
  1766. //줄수를 파악하기 위해 문자열을 받는다.
  1767. if(idx == iCount){
  1768. var sTretfactcnt = model.getValue("/root/main/cacmlist/list2/grdtretfact[" + idx + "]/civilaplcnts");
  1769. }else{
  1770. var sTretfactcnt = model.getValue("/root/main/cacmlist/list2/grdtretfact[" + idx + "]/civilaplcnts") +
  1771. "\n------------------------------------------------------------------------------";
  1772. };
  1773. //각 건마다의 줄수를 파악한다.
  1774. var linenum = 0;
  1775. var point = 0;
  1776. var endcheck = sTretfactcnt.lastIndexOf ('\n');
  1777. while(true){
  1778. point = sTretfactcnt.indexOf('\n', point);
  1779. linenum++;
  1780. if(endcheck == point++) break;
  1781. }
  1782. //줄 수만큼의 줄바꿈을 작성일자에도 더하여준다.
  1783. var linechange = "";
  1784. for(var linecnt = 0; linecnt < linenum; linecnt++){
  1785. linechange += "\n";
  1786. }
  1787. sTretfactDD += "민원답변 :\n" + model.getValue("/root/main/cacmlist/list2/grdtretfact[" + idx + "]/civilrgstdd") + linechange;
  1788. if(idx == iCount){
  1789. sTretfact += sTretfactcnt;
  1790. }else{
  1791. sTretfact += sTretfactcnt + "\n";
  1792. }
  1793. }
  1794. }
  1795. }
  1796. //개선사항
  1797. if(etccd_array[i] == "3"){
  1798. iCount = 0;
  1799. iCount = getNodesetCount("/root/main/cacmlist/list3/grdrsltcnts");
  1800. if (iCount == 1) {
  1801. sRsltcntsDD = "개선사항 :\n" + model.getValue("/root/main/cacmlist/list3/grdrsltcnts/civilrgstdd");
  1802. sRsltcnts = model.getValue("/root/main/cacmlist/list3/grdrsltcnts/civilaplcnts") + "\n";
  1803. } else {
  1804. for(var idx = 1; idx <= iCount ; idx++) {
  1805. //줄수를 파악하기 위해 문자열을 받는다.
  1806. var sRsltcntscnt = model.getValue("/root/main/cacmlist/list3/grdrsltcnts[" + idx + "]/civilaplcnts") +
  1807. "\n------------------------------------------------------------------------------";
  1808. //각 건마다의 줄수를 파악한다.
  1809. var linenum = 0;
  1810. var point = 0;
  1811. var endcheck = sRsltcntscnt.lastIndexOf ('\n');
  1812. while(true){
  1813. point = sRsltcntscnt.indexOf('\n', point);
  1814. linenum++;
  1815. if(endcheck == point++) break;
  1816. }
  1817. //줄 수만큼의 줄바꿈을 작성일자에도 더하여준다.
  1818. var linechange = "";
  1819. for(var linecnt = 0; linecnt < linenum; linecnt++){
  1820. linechange += "\n";
  1821. }
  1822. sRsltcntsDD += "개선사항 :\n" + model.getValue("/root/main/cacmlist/list3/grdrsltcnts[" + idx + "]/civilrgstdd") + linechange;
  1823. sRsltcnts += sRsltcntscnt + "\n";
  1824. }
  1825. }
  1826. }
  1827. }
  1828. //fMakeNode 실행시 역으로 실행해야 순서대로 들어감
  1829. if(!isNull(sCivilaplcnts)){
  1830. fMakeNode("/root/main/capm_print", "rex_cacm", "1", "민원내용", "cacm_gubun", "cacm_gubunnm", "cacm_civilaplcnts", "cacm_civilaplcntsDD", sCivilaplcnts, sCivilaplcntsDD);
  1831. }
  1832. if(!isNull(sTretfact)){
  1833. fMakeNode("/root/main/capm_print", "rex_cacm", "2", "민원답변", "cacm_gubun", "cacm_gubunnm", "cacm_civilaplcnts", "cacm_civilaplcntsDD", sTretfact, sTretfactDD);
  1834. }
  1835. if(!isNull(sRsltcnts)){
  1836. fMakeNode("/root/main/capm_print", "rex_cacm", "3", "개선사항", "cacm_gubun", "cacm_gubunnm", "cacm_civilaplcnts", "cacm_civilaplcntsDD", sRsltcnts, sRsltcntsDD);
  1837. }
  1838. //민원내용 출력
  1839. exeReportPreview("RPPMC00100", "XMLSTR", "", "", "true", "", "", "", "", "", "", "grp_report");
  1840. model.removeNodeset("/root/main/capm_print/rex_cacm");
  1841. }
  1842. ]]>
  1843. </script>
  1844. </button>
  1845. <button id="button5" class="btn2_letter4" style="left:1122px; top:5px; width:64px; height:19px; ">
  1846. <caption>민원내용</caption>
  1847. <script type="javascript" ev:event="DOMActivate">
  1848. <![CDATA[
  1849. var sPid = model.getValue("/root/main/capm/capm_pid");
  1850. if (isNull(sPid)) {
  1851. messageBox("민원사항이", "I004");
  1852. return;
  1853. }
  1854. model.setValue("/root/send/data6/pid",model.getValue("/root/main/capm/capm_pid"));
  1855. model.setValue("/root/send/data6/civilgenrdd",model.getValue("/root/main/capm/capm_civilgenrdd"));
  1856. model.setValue("/root/send/data6/civilseqno",model.getValue("/root/main/capm/capm_civilseqno"));
  1857. modal("../../../pam/patinfomngtweb/xrw/SMPMC02800", "1","150", "150", "SMPMC02800", "/root/send/data6", "/root/hidden/capm/pop_capm");
  1858. ]]>
  1859. </script>
  1860. </button>
  1861. <button id="button15" class="btn2_letter2" visibility="visible" style="left:814px; top:5px; width:42px; height:19px; ">
  1862. <caption>상병</caption>
  1863. <script type="javascript" ev:event="DOMActivate">
  1864. <![CDATA[
  1865. model.setValue("/root/hidden/srchdiag/selectedrdodiagkind","1");
  1866. model.setValue("/root/hidden/srchdiag/basedd",getCurrentDate());
  1867. model.setValue("/root/hidden/srchdiag/diagcd", "");
  1868. model.setValue("/root/hidden/srchdiag/diagnm", "");
  1869. model.setValue("/root/hidden/srchdiag/flag","D");
  1870. modal("SPPIZ00400" ,"", "10", "10", "SPPIZ00400", "/root/hidden/srchdiag", "/root/init");
  1871. ]]>
  1872. </script>
  1873. </button>
  1874. <group id="group4" style="left:5px; top:682px; width:1183px; height:27px; ">
  1875. <button id="btn_privacy" class="btn3_letter3" style="left:0px; top:5px; width:68px; height:22px; ">
  1876. <caption>사생활</caption>
  1877. <script type="javascript" ev:event="DOMActivate">
  1878. <![CDATA[
  1879. //사생활보호 정보관리창 호출
  1880. fCallPatPrivacy(model.getValue("/root/main/patinfo/patinfolist/pid"));
  1881. ]]>
  1882. </script>
  1883. </button>
  1884. <button id="button8" class="btn4_letter2" visibility="visible" style="left:997px; top:5px; width:56px; height:22px; ">
  1885. <caption>삭제</caption>
  1886. <script type="javascript" ev:event="DOMActivate">
  1887. <![CDATA[
  1888. model.resetInstanceNode("/root/send/data6");
  1889. var capm_pid = model.getValue("/root/main/capm/capm_pid");
  1890. if (capm_pid == null || capm_pid == " " || capm_pid == "") {
  1891. return false;
  1892. }
  1893. model.setValue("/root/send/data6/pid",model.getValue("/root/main/capm/capm_pid"));
  1894. model.setValue("/root/send/data6/civilgenrdd",model.getValue("/root/main/capm/capm_civilgenrdd"));
  1895. model.setValue("/root/send/data6/civilseqno",model.getValue("/root/main/capm/capm_civilseqno"));
  1896. var rsltyn = messageBox("민원환자의 민원사항과 민원내용을","Q001");
  1897. if (rsltyn == 6) {
  1898. //민원내용과 민원사항을 삭제한다.
  1899. if (submit("TRPMC00104")) {
  1900. model.resetInstanceNode("/root/main/ptbs");
  1901. model.resetInstanceNode("/root/main/capm");
  1902. model.resetInstanceNode("/root/main/chosrec/chosreclist");
  1903. model.refresh();
  1904. }
  1905. } else {
  1906. return false;
  1907. }
  1908. ]]>
  1909. </script>
  1910. </button>
  1911. <button id="button6" class="btn4_letter2" style="left:1056px; top:5px; width:56px; height:22px; ">
  1912. <caption>저장</caption>
  1913. <script type="javascript" ev:event="DOMActivate">
  1914. <![CDATA[
  1915. var sCivilGenrDd = model.getValue("/root/main/capm/capm_civilgenrdd");
  1916. if (isNull(sCivilGenrDd)) {
  1917. messageBox("민원발생일자는", "I003");
  1918. return;
  1919. }
  1920. //민원제기일자가 없으면 오늘을 기본으로 입력한다.
  1921. var sCivilAplClamDd = model.getValue("/root/main/capm/capm_civilaplclamdd");
  1922. if (isNull(sCivilAplClamDd)) {
  1923. model.setValue("/root/main/capm/capm_civilaplclamdd", getCurrentDate());
  1924. }
  1925. //민원환자 존재 유무 체크
  1926. model.resetInstanceNode("/root/send/data3");
  1927. model.resetInstanceNode("/root/hidden/rcvflag/flag/chkcount");
  1928. model.setValue("/root/send/data3/pid",model.getValue("/root/main/ptbs/ptbs_pid"));
  1929. model.setValue("/root/send/data3/civilgenrdd",model.getValue("/root/main/capm/capm_civilgenrdd"));
  1930. submit("TRPMC00103");
  1931. var ichkcount = model.getValue("/root/hidden/rcvflag/flag/max_civilseqno");
  1932. model.resetInstanceNode("/root/send/data3");
  1933. model.resetInstanceNode("/root/send/data4");
  1934. if (ichkcount == 0) {
  1935. model.setValue("/root/main/capm/capm_chkflag","N");
  1936. model.setValue("/root/main/capm/capm_pid",model.getValue("/root/main/ptbs/ptbs_pid"));
  1937. model.setValue("/root/main/capm/capm_status","i");
  1938. model.copyNode("/root/send/s_capm","/root/main/capm");
  1939. if(submit("TXPMC00101")) {
  1940. var result = messageBox("저장이 완료되었습니다.\n화면을 [초기화] 하시겠습니까??", "Q", "");
  1941. if (result == 6) {
  1942. fInitialize();
  1943. } else {
  1944. fBaseInfoRef();
  1945. }
  1946. } else {
  1947. messageBox("저장을", "E009");
  1948. }
  1949. } else {
  1950. //신규저장인지 업데이트인지 구분나누는 방법.
  1951. if (fChangeCheck() == true) {
  1952. var syn = messageBox("당일 민원환자 자료가 존재합니다. 추가로 저장을","S002","");
  1953. if (syn == 6) {
  1954. model.setValue("/root/main/capm/capm_chkflag","Y");
  1955. model.setValue("/root/main/capm/capm_pid",model.getValue("/root/main/ptbs/ptbs_pid"));
  1956. model.setValue("/root/main/capm/capm_status","i");
  1957. copyNodeType("/root/send/s_capm","/root/main/capm","replace");
  1958. if(submit("TXPMC00101")) {
  1959. var result = messageBox("저장이 완료되었습니다.\n화면을 [초기화] 하시겠습니까??", "Q", "");
  1960. if (result == 6) {
  1961. fInitialize();
  1962. } else {
  1963. fBaseInfoRef();
  1964. }
  1965. } else {
  1966. messageBox("저장을", "E009");
  1967. }
  1968. } else if (syn == 7) {
  1969. model.setValue("/root/main/capm/capm_pid",model.getValue("/root/main/ptbs/ptbs_pid"));
  1970. model.setValue("/root/main/capm/capm_status","u");
  1971. copyNodeType("/root/send/s_capm","/root/main/capm","replace");
  1972. if(submit("TXPMC00101")) {
  1973. var result = messageBox("저장이 완료되었습니다.\n화면을 [초기화] 하시겠습니까??", "Q", "");
  1974. if (result == 6) {
  1975. fInitialize();
  1976. } else {
  1977. fBaseInfoRef();
  1978. }
  1979. } else {
  1980. messageBox("저장을", "E009");
  1981. }
  1982. }
  1983. }
  1984. }
  1985. ]]>
  1986. </script>
  1987. </button>
  1988. <button id="button9" class="btn4_letter3" style="left:1115px; top:5px; width:68px; height:22px; ">
  1989. <caption>초기화</caption>
  1990. <script type="javascript" ev:event="DOMActivate">
  1991. <![CDATA[
  1992. fInitialize();
  1993. ]]>
  1994. </script>
  1995. </button>
  1996. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1183px; y2:0px; "/>
  1997. </group>
  1998. <caption id="caption12" class="cell_1" style="left:638px; top:280px; width:90px; height:23px; vertical-align:middle; ">회신일자</caption>
  1999. <input id="input8" ref="/root/main/capm/capm_civilaplrepldd" class="input_default" navindex="20" inputtype="date" style="left:731px; top:281px; width:125px; height:19px; ">
  2000. <script type="javascript" ev:event="onkeydown">
  2001. <![CDATA[
  2002. if( event.keyCode == 13 ) {
  2003. var pCurTargetObj = event.ptarget.parent;
  2004. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  2005. event.keyCode = 9;
  2006. pCurTargetObj.dispatch("onkeydown");
  2007. } else {
  2008. event.keyCode = 9;
  2009. }
  2010. }
  2011. event.stopPropagation();
  2012. ]]>
  2013. </script>
  2014. </input>
  2015. <output id="output1" ref="/root/main/capm/capm_civilseqno" class="output_search" style="left:731px; top:209px; width:125px; height:19px; "/>
  2016. <input id="input5" ref="/root/main/capm/capm_patrela" navindex="3" style="left:515px; top:161px; width:120px; height:19px; ">
  2017. <script type="javascript" ev:event="onkeydown">
  2018. <![CDATA[
  2019. if( event.keyCode == 13 ){
  2020. var pCurTargetObj = event.ptarget.parent;
  2021. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  2022. event.keyCode = 9;
  2023. pCurTargetObj.dispatch("onkeydown");
  2024. }else{
  2025. event.keyCode = 9;
  2026. }
  2027. }
  2028. event.stopPropagation();
  2029. ]]>
  2030. </script>
  2031. </input>
  2032. <input id="input12" ref="/root/main/capm/capm_zipcdseq" style="left:156px; top:185px; width:25px; height:19px; "/>
  2033. <select1 id="cmb_atdoctid" ref="/root/main/capm/capm_atdoctid" navindex="18" appearance="minimal" style="left:90px; top:281px; width:120px; height:19px; ">
  2034. <choices>
  2035. <itemset nodeset="/root/hidden/init/orddrid">
  2036. <label ref="nm"/>
  2037. <value ref="cd"/>
  2038. </itemset>
  2039. </choices>
  2040. <script type="javascript" ev:event="onkeydown">
  2041. <![CDATA[
  2042. if( event.keyCode == 13 ) {
  2043. var pCurTargetObj = event.ptarget.parent;
  2044. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  2045. event.keyCode = 9;
  2046. pCurTargetObj.dispatch("onkeydown");
  2047. } else {
  2048. event.keyCode = 9;
  2049. }
  2050. }
  2051. event.stopPropagation();
  2052. ]]>
  2053. </script>
  2054. </select1>
  2055. <output id="opt_deptcd" ref="/root/main/capm/capm_civilaplgenrdeptcd" class="output_search" visibility="hidden" style="left:735px; top:133px; width:120px; height:19px; "/>
  2056. <output id="opt_depthngnm" ref="/root/main/capm/capm_civilaplgenrdepthngnm" class="output_search" style="left:90px; top:257px; width:95px; height:19px; ">
  2057. <script type="javascript" ev:event="onclick">
  2058. <![CDATA[
  2059. modal("../../../pam/patinfomngtweb/xrw/SSPMC07400", "1","100", "100", "SSPMC07400", "", "");
  2060. ]]>
  2061. </script>
  2062. </output>
  2063. <!--
  2064. <select1 id="cmb_deptcd" ref="/root/main/capm/capm_civilaplgenrdeptcd" class="combo_default" navindex="14" appearance="minimal" style="left:90px; top:257px; width:120px; height:19px; ">
  2065. <choices>
  2066. <itemset nodeset="/root/hidden/init/orddeptcd">
  2067. <label ref="nm"/>
  2068. <value ref="cd"/>
  2069. </itemset>
  2070. </choices>
  2071. <script type="javascript" ev:event="xforms-value-changed">
  2072. <![CDATA[
  2073. var scapm_deptcd = model.getValue("/root/main/capm/capm_civilaplgenrdeptcd");
  2074. if (scapm_deptcd == null || scapm_deptcd == " " || scapm_deptcd == "") {
  2075. cmb_atdoctid.choices.itemset.attribute("nodeset") = "/root/hidden/init/orddrid"
  2076. model.resetInstanceNode("/root/main/capm/capm_atdoctid");
  2077. cmb_atdoctid.refresh();
  2078. } else {
  2079. cmb_atdoctid.choices.itemset.attribute("nodeset") = "/root/hidden/init/orddrid[dp = '" + scapm_deptcd + "' ]";
  2080. model.resetInstanceNode("/root/main/capm/capm_atdoctid");
  2081. cmb_atdoctid.refresh();
  2082. }
  2083. ]]>
  2084. </script>
  2085. <script type="javascript" ev:event="onkeydown">
  2086. <![CDATA[
  2087. if( event.keyCode == 13 ) {
  2088. var pCurTargetObj = event.ptarget.parent;
  2089. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  2090. event.keyCode = 9;
  2091. pCurTargetObj.dispatch("onkeydown");
  2092. } else {
  2093. event.keyCode = 9;
  2094. }
  2095. }
  2096. event.stopPropagation();
  2097. ]]>
  2098. </script>
  2099. </select1>
  2100. -->
  2101. <input id="ipt_civilaplernm" ref="/root/main/capm/capm_civilaplernm" class="input_default" navindex="1" style="left:90px; top:161px; width:120px; height:19px; ">
  2102. <script type="javascript" ev:event="onkeydown">
  2103. <![CDATA[
  2104. if( event.keyCode == 13 ) {
  2105. var pCurTargetObj = event.ptarget.parent;
  2106. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  2107. event.keyCode = 9;
  2108. pCurTargetObj.dispatch("onkeydown");
  2109. } else {
  2110. event.keyCode = 9;
  2111. }
  2112. }
  2113. event.stopPropagation();
  2114. ]]>
  2115. </script>
  2116. </input>
  2117. <caption id="caption13" class="cell_1" style="left:417px; top:280px; width:95px; height:23px; vertical-align:middle; ">민원종결구분</caption>
  2118. <select1 id="combo8" ref="/root/main/capm/capm_civilaplendflagcd" appearance="minimal" style="left:515px; top:281px; width:120px; height:19px; ">
  2119. <choices>
  2120. <itemset nodeset="/root/init/P0046list/P0046">
  2121. <label ref="cdnm"/>
  2122. <value ref="cdid"/>
  2123. </itemset>
  2124. </choices>
  2125. </select1>
  2126. <group id="grp_report" visibility="hidden" style="left:330px; top:5px; width:75px; height:15px; "/>
  2127. <select id="checkbox1" ref="/root/send/cond_signyn" overflow="visible" appearance="full" cols="3" style="left:565px; top:7px; width:205px; height:20px; border-style:none; ">
  2128. <choices>
  2129. <item>
  2130. <label>민원내용</label>
  2131. <value>1</value>
  2132. </item>
  2133. <item>
  2134. <label>민원답변</label>
  2135. <value>2</value>
  2136. </item>
  2137. <item>
  2138. <label>개선사항</label>
  2139. <value>3</value>
  2140. </item>
  2141. </choices>
  2142. </select>
  2143. <caption id="caption29" class="cell_1" style="left:5px; top:328px; width:82px; height:47px; vertical-align:middle; ">
  2144. <![CDATA[민원내용
  2145. 의사전달]]>
  2146. </caption>
  2147. <line id="line15" class="line_3" style="x1:5px; y1:374px; x2:856px; y2:374px; "/>
  2148. <bool id="bool1" checkvalue="Y,N" ref="/root/main/capm/capm_drdelive" style="left:90px; top:344px; width:15px; height:15px; "/>
  2149. <caption id="caption50" style="left:108px; top:344px; width:60px; height:15px; ">의사전달</caption>
  2150. <caption id="caption51" class="cell_1" style="left:220px; top:78px; width:65px; height:23px; vertical-align:middle; ">휴대폰</caption>
  2151. <input id="input6" ref="/root/main/capm/capm_zipcdseq" style="left:146px; top:104px; width:25px; height:19px; "/>
  2152. <input id="input9" ref="/root/main/capm/capm_zipcd1" class="input_default" style="left:78px; top:104px; width:30px; height:19px; "/>
  2153. <input id="input10" ref="/root/main/capm/capm_zipcd2" class="input_default" style="left:112px; top:104px; width:30px; height:19px; "/>
  2154. <input id="input11" ref="/root/main/capm/capm_address" class="input_default" style="left:174px; top:104px; width:211px; height:19px; "/>
  2155. <input id="input13" ref="/root/main/capm/capm_infaddr" class="input_default" navindex="6" style="left:475px; top:104px; width:380px; height:19px; ">
  2156. <script type="javascript" ev:event="onkeydown">
  2157. <![CDATA[
  2158. if( event.keyCode == 13 ) {
  2159. var pCurTargetObj = event.ptarget.parent;
  2160. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  2161. event.keyCode = 9;
  2162. pCurTargetObj.dispatch("onkeydown");
  2163. } else {
  2164. event.keyCode = 9;
  2165. }
  2166. }
  2167. event.stopPropagation();
  2168. ]]>
  2169. </script>
  2170. </input>
  2171. <caption id="caption25" class="cell_1" style="left:388px; top:102px; width:85px; height:23px; vertical-align:middle; ">하위주소</caption>
  2172. <caption id="caption53" class="cell_1" style="left:5px; top:102px; width:70px; height:23px; vertical-align:middle; ">주소</caption>
  2173. <caption id="caption6" class="tit_2" style="left:10px; top:389px; width:204px; height:13px; font-family:돋움; vertical-align:middle; ">내원기록</caption>
  2174. <line id="line8" class="line_1" style="x1:5px; y1:404px; x2:1186px; y2:404px; "/>
  2175. <datagrid id="grd_chosreclist" nodeset="/root/main/chosrec/chosreclist" caption="선택^구분^수납/입원일자^퇴원일자^진료과^전문의^환자분류^감면액^미수총액^총진료비^본인부담액^급여액^비급여액^특진료" colsep="^" colwidth="30, 50, 90, 80, 150, 70, 70, 88, 88, 88, 88, 88, 88, 88" dataheight="23" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:410px; width:1182px; height:267px; ">
  2176. <col ref="checkflag" type="checkbox"/>
  2177. <col disabled="true" ref="ordtype" type="combo" style="text-align:center; ">
  2178. <choices>
  2179. <itemset nodeset="/root/init/P0001list/P0001">
  2180. <label ref="cdnm"/>
  2181. <value ref="cdid"/>
  2182. </itemset>
  2183. </choices>
  2184. </col>
  2185. <col ref="orddd" format="yyyy-mm-dd"/>
  2186. <col ref="dschdd" format="yyyy-mm-dd"/>
  2187. <col ref="orddeptcd"/>
  2188. <col ref="orddrid"/>
  2189. <col ref="patcls"/>
  2190. <col ref="reduamt" format="#,###" style="text-align:right; "/>
  2191. <col ref="uncoamt" format="#,###" style="text-align:right; "/>
  2192. <col ref="totalamt" format="#,###" style="text-align:right; "/>
  2193. <col ref="ownbamt" format="#,###" style="text-align:right; "/>
  2194. <col ref="payamt" format="#,###" style="text-align:right; "/>
  2195. <col ref="nopyamt" format="#,###" style="text-align:right; "/>
  2196. <col ref="specamt" format="#,###" style="text-align:right; "/>
  2197. <script type="javascript" ev:event="onclick">
  2198. <![CDATA[
  2199. var irowcnt = grd_chosreclist.rows - 1;
  2200. var itotalamt = 0;
  2201. var iownbamt = 0;
  2202. var ireduamt = 0;
  2203. var iset_totalamt = 0;
  2204. var iset_ownbamt = 0;
  2205. var iset_reduamt = 0;
  2206. for (i = 1; i <= irowcnt; i++)
  2207. {
  2208. var scheckflag = model.getValue("/root/main/chosrec/chosreclist["+ i +"]/checkflag");
  2209. if (scheckflag == "true") {
  2210. var iset_totalamt = parseInt(model.getValue("/root/main/chosrec/chosreclist["+ i +"]/totalamt"));
  2211. var iset_ownbamt = parseInt(model.getValue("/root/main/chosrec/chosreclist["+ i +"]/ownbamt"));
  2212. var iset_reduamt = parseInt(model.getValue("/root/main/chosrec/chosreclist["+ i +"]/reduamt"));
  2213. itotalamt = itotalamt + iset_totalamt;
  2214. iownbamt = iownbamt + iset_ownbamt;
  2215. ireduamt = ireduamt + iset_reduamt;
  2216. }
  2217. }
  2218. model.setValue("/root/main/capm/capm_totordamt",itotalamt); //총진료비
  2219. model.setValue("/root/main/capm/capm_ownbamt",iownbamt); //본인부담금
  2220. model.setValue("/root/main/capm/capm_reductamt",ireduamt); //감면액
  2221. model.refresh();
  2222. ]]>
  2223. </script>
  2224. <script type="javascript" ev:event="onaftersort">
  2225. <![CDATA[
  2226. grd_chosreclist.gridToInstance();
  2227. ]]>
  2228. </script>
  2229. </datagrid>
  2230. <button id="button1" class="icon_search" navindex="5" style="left:190px; top:257px; width:16px; height:16px; ">
  2231. <caption/>
  2232. <script type="javascript" ev:event="DOMActivate">
  2233. <![CDATA[
  2234. modal("../../../pam/patinfomngtweb/xrw/SSPMC07400", "1","100", "100", "SSPMC07400", "", "");
  2235. ]]>
  2236. </script>
  2237. </button>
  2238. </case>
  2239. </switch>
  2240. <button id="btn_prescond" class="btn_sw" group="tab" selected="true" style="left:0px; top:10px; width:86px; height:22px; ">
  2241. <caption>민원환자현황</caption>
  2242. <toggle case="case1" ev:event="xforms-activate"/>
  2243. </button>
  2244. <button id="btn_mngt" class="btn_sw" group="tab" style="left:86px; top:10px; width:99px; height:22px; ">
  2245. <caption>개인별내역관리</caption>
  2246. <toggle case="case2" ev:event="xforms-activate"/>
  2247. </button>
  2248. </group>
  2249. <group id="group3" style="left:0px; top:0px; width:1195px; height:13px; ">
  2250. <caption id="caption52" class="tit_1" style="left:0px; top:0px; width:100px; height:13px; font-family:돋움; vertical-align:middle; ">민원환자관리</caption>
  2251. </group>
  2252. </xhtml:body>
  2253. </xhtml:html>