1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>민원환자관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <send>
- <data1>
- <sflagcd>1</sflagcd>
- <sflagnm/>
- <endflag/>
- <grupflag/>
- <sflagnm2/>
- </data1>
- <data2>
- <sess_posinstcd>012</sess_posinstcd>
- </data2>
- <data3>
- <pid/>
- <mode/>
- <civilgenrdd/>
- <civilseqno/>
- </data3>
- <data4>
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <autoflag/>
- </data4>
- <s_capm>
- <capm/>
- </s_capm>
- <data6>
- <pid/>
- <civilgenrdd/>
- <civilseqno/>
- </data6>
- <data7>
- <pid/>
- <orddeptcd/>
- <ordfromdd/>
- <ordtodd/>
- </data7>
- <cond_signyn/>
- </send>
- <main>
- <ptbs>
- <ptbs_status/>
- <ptbs_pid/>
- <ptbs_hngnm/>
- <ptbs_engnm/>
- <ptbs_rrgstno1/>
- <ptbs_rrgstno2/>
- <ptbs_brthdd/>
- <ptbs_sex/>
- <ptbs_age/>
- <ptbs_hometel/>
- <ptbs_mpphontel/>
- <ptbs_zipcd1/>
- <ptbs_zipcd2/>
- <ptbs_zipcdseq/>
- <ptbs_zipnm/>
- <ptbs_detladdr/>
- <ptbs_forgeryn/>
- <ptbs_recmyn/>
- <ptbs_recmerid/>
- <ptbs_vipyn/>
- <ptbs_religncd/>
- <ptbs_remfact/>
- <ptbs_inhospyn/>
- <ptbs_viprem/>
- <ptbs_recmernm/>
- <ptbs_recmerrela/>
- <ptbs_dethyn/>
- </ptbs>
- <capm>
- <capm_status/>
- <capm_pid/>
- <capm_civilgenrdd/>
- <capm_civilseqno/>
- <capm_instcd/>
- <capm_civilenddd/>
- <capm_civilaplernm/>
- <capm_civilaplersex/>
- <capm_patrela/>
- <capm_zipcd1/>
- <capm_zipcd2/>
- <capm_zipcdseq/>
- <capm_address/>
- <capm_infaddr/>
- <capm_civilaplertel/>
- <capm_civilaplclamdd/>
- <capm_civilaplchrgerid/>
- <capm_civilaplflag/>
- <capm_delivedeptcd/>
- <capm_civilaplendflagcd/>
- <capm_delivedd/>
- <capm_civilaplgenrdeptcd/>
- <capm_civilaplgenrdepthngnm/>
- <capm_smlcnts/>
- <capm_atdoctid/>
- <capm_ordfromdd/>
- <capm_ordtodd/>
- <capm_civilaplreplyn/>
- <capm_civilaplrepldd/>
- <capm_civilaplclammthdcd/>
- <capm_civilaplendstatcd/>
- <capm_civilapltrgt/>
- <capm_lrgcd/>
- <capm_mdicd/>
- <capm_rcptdelivefact/>
- <capm_totordamt/>
- <capm_ownbamt/>
- <capm_agreamt/>
- <capm_reductamt/>
- <capm_endspec/>
- <capm_inptdd/>
- <capm_fstrgstrid/>
- <capm_fstrgstdt/>
- <capm_lastupdtrid/>
- <capm_lastupdtdt/>
- <capm_chkflag/>
- <capm_seq/>
- <capm_drdelive/>
- </capm>
- <capmlist>
- <civilindspeclist/>
- </capmlist>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <popupendflag/>
- <chosrec>
- <chosreclist/>
- </chosrec>
- <cacmlist/>
- <capm_print>
- <rex_capm>
- <capm_civilgenrdd/>
- <capm_civilaplclammthdcd/>
- <capm_ordfromdd/>
- <capm_civilaplflag/>
- <capm_civilaplernm/>
- <capm_patrela/>
- <capm_civilaplertel/>
- <capm_pid/>
- <capm_hngnm/>
- <capm_fulladdr/>
- <capm_civilaplgenrdeptcd/>
- <capm_civilapltrgt/>
- <capm_civilaplrepldd/>
- <capm_lrgcd/>
- <capm_mdicd/>
- <capm_smlcnts/>
- <capm_instcd/>
- <capm_logo/>
- <!--
- <capm_civilaplchrgernm/>
- <capm_atdoctid/>
- <capm_diagnm/>
- <capm_signyn/>
- -->
- <capm_civilaplgenrdepthngnm/>
- </rex_capm>
- </capm_print>
- </main>
- <init>
- <P0016list>
- <P0016>
- <cdnm/>
- <cdid/>
- </P0016>
- </P0016list>
- <P0046list>
- <P0046>
- <cdnm/>
- <cdid/>
- </P0046>
- </P0046list>
- <P0001list>
- <P0001>
- <cdnm/>
- <cdid/>
- </P0001>
- </P0001list>
- <P0449list>
- <P0449>
- <cdnm/>
- <cdid/>
- </P0449>
- </P0449list>
- <P0450list>
- <P0450>
- <cdnm/>
- <cdid/>
- </P0450>
- </P0450list>
- <P0451list>
- <P0451>
- <cdnm/>
- <cdid/>
- </P0451>
- </P0451list>
- <P0327list>
- <P0327>
- <cdnm/>
- <cdid/>
- </P0327>
- </P0327list>
- </init>
- <hidden>
- <rcv>
- <ptbs>
- <ptbs_status/>
- <ptbs_pid/>
- <ptbs_hngnm/>
- <ptbs_engnm/>
- <ptbs_rrgstno1/>
- <ptbs_rrgstno2/>
- <ptbs_brthdd/>
- <ptbs_sex/>
- <ptbs_age/>
- <ptbs_hometel/>
- <ptbs_mpphontel/>
- <ptbs_zipcd1/>
- <ptbs_zipcd2/>
- <ptbs_zipcdseq/>
- <ptbs_zipnm/>
- <ptbs_detladdr/>
- <ptbs_forgeryn/>
- <ptbs_recmyn/>
- <ptbs_recmerid/>
- <ptbs_vipyn/>
- <ptbs_religncd/>
- <ptbs_remfact/>
- <ptbs_inhospyn/>
- </ptbs>
- <capm>
- <capm_status/>
- <capm_pid/>
- <capm_civilgenrdd/>
- <capm_civilseqno/>
- <capm_instcd/>
- <capm_civilenddd/>
- <capm_civilaplernm/>
- <capm_civilaplersex/>
- <capm_patrela/>
- <capm_zipcd1/>
- <capm_zipcd2/>
- <capm_zipcdseq/>
- <capm_infaddr/>
- <capm_civilaplertel/>
- <capm_civilaplclamdd/>
- <capm_civilaplchrgerid/>
- <capm_civilaplflag/>
- <capm_delivedeptcd/>
- <capm_delivedd/>
- <capm_civilaplgenrdeptcd/>
- <capm_atdoctid/>
- <capm_ordfromdd/>
- <capm_ordtodd/>
- <capm_civilaplreplyn/>
- <capm_civilaplrepldd/>
- <capm_civilaplclammthdcd/>
- <capm_civilaplendflagcd/>
- <capm_civilaplendstatcd/>
- <capm_civilapltrgt/>
- <capm_lrgcd/>
- <capm_mdicd/>
- <capm_smlcnts/>
- <capm_rcptdelivefact/>
- <capm_totordamt/>
- <capm_ownbamt/>
- <capm_agreamt/>
- <capm_reductamt/>
- <capm_endspec/>
- <capm_inptdd/>
- <capm_fstrgstrid/>
- <capm_fstrgstdt/>
- <capm_lastupdtrid/>
- <capm_lastupdtdt/>
- <capm_chkflag/>
- </capm>
- <chosrec>
- <chosreclist/>
- </chosrec>
- </rcv>
- <init>
- <orddeptcd>
- <cd/>
- <nm/>
- </orddeptcd>
- <flag>
- <prestdd/>
- </flag>
- <orddrid>
- <cd/>
- <nm/>
- <dp/>
- </orddrid>
- <disccd>
- <cd/>
- <nm/>
- </disccd>
- </init>
- <rcvflag>
- <flag>
- <max_civilseqno/>
- </flag>
- </rcvflag>
- <original>
- <capm/>
- </original>
- <srchdiag>
- <selectedrdodiagkind/>
- <basedd/>
- <diagcd/>
- <diagnm/>
- <flag/>
- </srchdiag>
- <diaginfo>
- <diagcd/>
- <termhngnm/>
- <termengnm/>
- <orddd/>
- </diaginfo>
- <sppiz00400>
- <rslt>
- <diaghngnm/>
- <diagcd/>
- <diagengnm/>
- <termcd/>
- </rslt>
- </sppiz00400>
- </hidden>
- </root>
- </instance>
- <submission id="TRZBP00102" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRPMI00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/hidden/init"/>
- <submission id="TRPMC00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main/capmlist"/>
- <submission id="TRPMC00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/hidden/rcv"/>
- <submission id="TRPMC00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/hidden/rcvflag"/>
- <submission id="TXPMC00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
- <submission id="TRPMC00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data6"/>
- <submission id="TRPMC00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data6" resultref="/root/main/cacmlist"/>
- <submission id="TRPMC00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data7" resultref="/root/hidden/diaginfo"/>
- <submission id="TRPMC06904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/patprivacy" replace="instance" resultref="/root/temp/patprivacy"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- zbcfGetCodeList(new Array("P0001", "P0046", "P0449", "P0450", "P0451", "P0327"),
- new Array("/root/init/P0001list", "/root/init/P0046list", "/root/init/P0449list", "/root/init/P0450list", "/root/init/P0451list", "/root/init/P0327list")
- );
-
- submit("TRPMI00106");
- addComboItem("combo2", "전체", "-", "below");
- model.setValue("/root/send/data1/endflag", '-');
-
- cap_privacy.visible = false; //사생활보호
-
- //민원 중분류 인스턴스 재생성(부모 정보 추가)
- //중분류코드가 '0101'이면 앞 2자리 '01'은 대분류 코드와 같다.
- var iCount = getNodesetCount("/root/init/P0451list/P0451");
- for(var idx=1; idx<=iCount ; idx++){
- var sUpCd = model.getValue("/root/init/P0451list/P0451[" + idx + "]/cdid");
- model.makeValue("/root/init/P0451list/P0451[" + idx + "]/upcd", sUpCd.substr(0, 2));
- }
-
- //중분류코드 대분류에 맞도록 설정(초기에는 빈값)
- cmb_lrgcd2.dispatch("xforms-select");
-
- var stodate = model.getValue("/root/hidden/init/flag/prestdd");
- ipt_sacptdd.value = stodate.substr(0,8);
- ipt_sacptdd2.value = stodate.substr(0,8);
- ipt_enddd.value = stodate.substr(0,8);
- ipt_enddd2.value = stodate.substr(0,8);
-
- makeReportPreview(0, 0, 10, 10, "grp_report");
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- /*
- *
- */
- function fChangeCheck(){
- var capm_flag;
- var ins = document.models(0).instances(0);
- var h_capm = ins.selectSingleNode("/root/hidden/original/capm");
- var o_capm = ins.selectSingleNode("/root/main/capm");
-
- if(h_capm == null){
- capm_flag = null; // 데이터가 없으면 인스턴스 노드가 없다.
- } else if (o_capm == null) {
- capm_flag = null;
- } else if (h_capm.xml == o_capm.xml) {
- capm_flag = null;
- messageBox("변경사항이","I004");
- return false;
- } else if (h_capm.xml != o_capm.xml){
- capm_flag = 'u'
- return true;
- }
- }
- /*
- * 조회
- */
- function fBaseInfoRef(){
- if(model.getValue("/root/main/popupendflag") == "ok"){
- model.setValue("/root/send/data3/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- }else{
- model.setValue("/root/send/data3/pid", model.getValue("/root/main/ptbs/ptbs_pid"));
- model.resetInstanceNode("/root/main/patinfo/patinfolist");
- model.resetInstanceNode("/root/main/ptbs");
- model.resetInstanceNode("/root/main/capm");
- model.resetInstanceNode("/root/main/chosrec/chosreclist");
- model.refresh();
- }
-
- submit("TRPMC00102");
- var iptbscnt = getNodesetCount("/root/hidden/rcv/ptbs");
- if(iptbscnt > 0){
- copyNodeType("/root/main/ptbs","/root/hidden/rcv/ptbs","replace");
- }else{
- model.resetInstanceNode("/root/main/ptbs");
- }
-
- //사생활보호 관리여부 확인
- fGetPatPrivacyInfo(model.getValue("/root/main/ptbs/ptbs_pid"));
-
- var capmcnt = getNodesetCount("/root/hidden/rcv/capm");
- if(capmcnt > 0){
- copyNodeType("/root/main/capm","/root/hidden/rcv/capm","replace");
- copyNodeType("/root/hidden/original/capm","/root/hidden/rcv/capm","replace");
- }else{
- model.resetInstanceNode("/root/main/capm");
- //민원사항이 없을 때 자동으로 담당자 '로그인한 사용자 아이디'로 설정 - 2008.07.17
- model.setValue("/root/main/capm/capm_civilaplchrgerid", getUserId());
- }
-
- var opmicnt = getNodesetCount("/root/hidden/rcv/chosrec/chosreclist");
- if(opmicnt > 0){
- model.removeNodeset("/root/main/chosrec");
- model.makeNode("/root/main/chosrec");
- for(var i=1; i<=opmicnt; i++){
- model.duplicate("/root/main/chosrec","/root/hidden/rcv/chosrec/chosreclist["+ i +"]");
- }
- grd_chosreclist.rebuild();
- }else{
- model.resetInstanceNode("/root/main/chosrec");
- }
-
- //2008.07.17 중분류코드 대분류에 맞게 설정
- cmb_lrgcd2.dispatch("xforms-select");
-
- model.refresh();
- }
-
- /*
- * 초기화
- */
- function fInitialize(){
- cap_privacy.visible = false; // 사생활보호
-
- model.resetInstanceNode("/root/main");
- model.removeNodeset("/root/main/chosrec");
- model.makeNode("/root/main/chosrec/chosreclist");
- model.resetInstanceNode("/root/hidden/rcv");
- model.resetInstanceNode("/root/hidden/rcvflag");
- model.resetInstanceNode("/root/hidden/original");
- model.resetInstanceNode("/root/send/s_capm");
- model.resetInstanceNode("/root/send/data3");
- model.resetInstanceNode("/root/send/data4");
- model.resetInstanceNode("/root/send/data6");
- model.refresh();
- }
-
- /*
- * 조회구분 설정
- */
- function fChoice(schoino){
- model.resetInstanceNode("/root/send/data1/sflagnm");
- //접수일자
- if (schoino == '1') {
- model.setValue("/root/send/data1/sflagnm",getCurrentDate());
- model.setValue("/root/send/data1/sflagnm2",getCurrentDate());
- ipt_sacptdd.visible = true;
- ipt_sacptdd2.visible = true;
- ipt_spid.visible = false;
- ipt_shngnm.visible = false;
- ipt_enddd.visible = false;
- ipt_enddd2.visible = false;
- ipt_civilaplchrgerid.visible = false;
- cmb_mdicd.visible = false;
- cmb_lrgcd.visible = false;
- ipt_sacptdd2.attribute("left") = "362px";
- caption26.visible = true;
- model.setFocus("ipt_sacptdd");
-
- //성명
- } else if (schoino == '2') {
- ipt_shngnm.visible = true;
- ipt_shngnm.attribute("top") = "8px";
- ipt_shngnm.attribute("left") = "222px"
- ipt_sacptdd.visible = false;
- ipt_sacptdd2.visible = false;
- ipt_spid.visible = false;
- ipt_enddd.visible = false;
- ipt_enddd2.visible = false;
- ipt_civilaplchrgerid.visible = false;
- cmb_mdicd.visible = false;
- cmb_lrgcd.visible = false;
- caption26.visible = false;
- model.setFocus("ipt_shngnm");
-
- //환자번호
- } else if (schoino == '3') {
- ipt_spid.visible = true;
- ipt_spid.attribute("top") = "8px";
- ipt_spid.attribute("left") = "222px"
- ipt_sacptdd.visible = false;
- ipt_sacptdd2.visible = false;
- ipt_shngnm.visible = false;
- ipt_enddd.visible = false;
- ipt_enddd2.visible = false;
- ipt_civilaplchrgerid.visible = false;
- cmb_mdicd.visible = false;
- cmb_lrgcd.visible = false;
- caption26.visible = false;
- model.setFocus("ipt_spid");
-
- //종료일자
- } else if (schoino == '4') {
- model.setValue("/root/send/data1/sflagnm",getCurrentDate());
- model.setValue("/root/send/data1/sflagnm2",getCurrentDate());
- ipt_enddd.visible = true;
- ipt_enddd2.visible = true;
- ipt_enddd.attribute("top") = "8px";
- ipt_enddd.attribute("left") = "222px"
- ipt_sacptdd.visible = false;
- ipt_sacptdd2.visible = false;
- ipt_spid.visible = false;
- ipt_shngnm.visible = false;
- ipt_civilaplchrgerid.visible = false;
- cmb_mdicd.visible = false;
- cmb_lrgcd.visible = false;
- ipt_enddd2.attribute("left") = "362px";
- caption26.visible = true;
- model.setFocus("ipt_enddd");
-
- //담당자
- } else if (schoino == '5') {
- ipt_civilaplchrgerid.visible = true;
- ipt_civilaplchrgerid.attribute("top") = "8px";
- ipt_civilaplchrgerid.attribute("left") = "222px"
- ipt_sacptdd.visible = false;
- ipt_spid.visible = false;
- ipt_shngnm.visible = false;
- ipt_enddd.visible = false;
- cmb_mdicd.visible = false;
- cmb_lrgcd.visible = false;
- ipt_sacptdd2.visible = false;
- ipt_enddd2.visible = false;
- caption26.visible = false;
- model.setFocus("ipt_civilaplchrgerid");
-
- //민원분류
- } else if (schoino == '6') {
- cmb_lrgcd.visible = true;
- cmb_lrgcd.attribute("top") = "8px";
- cmb_lrgcd.attribute("left") = "222px"
- ipt_civilaplchrgerid.visible = false;
- ipt_sacptdd.visible = false;
- ipt_spid.visible = false;
- ipt_shngnm.visible = false;
- ipt_enddd.visible = false;
- cmb_mdicd.visible = false;
- ipt_sacptdd2.visible = false;
- ipt_enddd2.visible = false;
- caption26.visible = false;
-
- //민원제기방법
- } else if (schoino == '7') {
- cmb_civilaplclammthdcd.visible = true;
- cmb_civilaplclammthdcd.attribute("top") = "8px";
- cmb_civilaplclammthdcd.attribute("left") = "222px"
- ipt_civilaplchrgerid.visible = false;
- ipt_sacptdd.visible = false;
- ipt_spid.visible = false;
- ipt_shngnm.visible = false;
- ipt_enddd.visible = false;
- cmb_mdicd.visible = false;
- ipt_sacptdd2.visible = false;
- ipt_enddd2.visible = false;
- caption26.visible = false;
- }
- model.refresh();
- }
-
- /*
- *
- */
- function fHngNmVeri(gubn){
- var ptbs_hngnm;
- if (gubn == "xforms-next"){
- ptbs_hngnm = model.getValue("/root/main/ptbspatinfo/hngnm");
- }else if (gubn == "onkeypress" || gubn == "onkeyup"){
- ptbs_hngnm = (ipt_hngnm.currentText).toString();
- }
-
- //한글 한글자를 그냥 길이1로 계산
- if (eval((ptbs_hngnm.length).toString()) < 2){
- messageBox("환자성명은 2글자 이상되어야 합니다!","E999","");
- model.setFocus("ipt_hngnm");
- return false;
- }
- }
-
- /*
- *
- */
- function fRrgstNo1Veri(){
- var ptbs_rrgstno1 = model.getValue("/root/main/ptbs/ptbs_rrgstno1");
- if (ptbs_rrgstno1 != null && ptbs_rrgstno1 != "" && ptbs_rrgstno1 != " " && ptbs_rrgstno1 != "-"){
- if (ptbs_rrgstno1.length != 6){
- messageBox("주민번호1은 6자리여야 합니다!","E999","");
- model.setFocus("ptbs_rrgstno1");
- model.refresh();
- return false;
- }
-
- if (ptbs_rrgstno1.isNumber() != true){
- messageBox("주민번호1은 숫자형태로 입력되어야 합니다!","E999","");
- model.setFocus("ptbs_rrgstno1");
- model.refresh();
- return false;
- }
- }else{
- messageBox("주민번호1은 6자리여야 합니다!","E999","");
- model.setFocus("ptbs_rrgstno1");
- model.refresh();
- return false;
- }
- }
-
- /*
- *
- */
- function fRrgstNo2Veri(){
- var ptbs_brthdd;
- var ptbs_rrgstno1 = model.getValue("/root/main/ptbs/ptbs_rrgstno1");
- var ptbs_rrgstno2 = model.getValue("/root/main/ptbs/ptbs_rrgstno2");
- if (ptbs_rrgstno1.length != 6){
- messageBox("환자주민번호1은 6자리입니다!","E999","");
- model.setFocus("ptbs_rrgstno1");
- return false;
- }
- if (ptbs_rrgstno2.length != 7){
- messageBox("환자주민번호2은 7자리입니다!","E999","");
- model.setFocus("ipt_rrgstno2");
- return false;
- }
-
- var gubn = ptbs_rrgstno2.substr(0,1);
- switch(gubn){
- case '1' :
- case '2' :
- case '5' :
- case '6' :
- ptbs_brthdd = '19'.concat(ptbs_rrgstno1);
- break;
- case '3' :
- case '4' :
- case '7' :
- case '8' :
- ptbs_brthdd = '20'.concat(ptbs_rrgstno1);
- break;
- case '9' :
- case '0' :
- ptbs_brthdd = '18'.concat(ptbs_rrgstno1);
- break;
- default :
- ptbs_brthdd = '19'.concat(ptbs_rrgstno1);
- break;
- }
-
- if (isValidDateTime(ptbs_brthdd, "YYYYMMDD") == false){
- messageBox("주민번호 앞6자리 형식오류입니다. 올바른 일자형태로 입력하십시요!","E999","");
- model.setValue("/root/main/ptbs/ptbs_rrgstno1","");
- model.setValue("/root/main/ptbs/ptbs_rrgstno2","");
- model.setValue("/root/main/ptbs/ptbs_brthdd","");
- model.refresh();
- return false;
- }
-
- /*
- var ptbs_sex = model.getValue("/root/main/ptbs/ptbs_rrgstno2");
- model.setValue("/root/main/ptbs/ptbs_sex",getGender(ptbs_sex));
- var ptbs_age = ptbs_rrgstno1;
- model.setValue("/root/main/ptbs/ptbs_age",getFullAge(model.getValue("/root/main/ptbs/ptbs_brthdd")));
- model.refresh();
-
- if (isResidentNo(ptbs_age) == false){
- messageBox("유효하지 않은 주민번호입니다!","E999","");
- return false;
- }
- */
- }
-
- // 2008.05.29 문자열을 라인별로 구분하여 인스턴스 생성
- function fMakeNode(pXPath, pNodeSetName, pGubun, pGubunName, pNodeName1, pNodeName2, pNodeName3, pNodeName4, pString, pStringDD) {
- var instance1 = document.models(0).instances(0);
- var nodeValueArray = new Array();
- nodeValueArray = pString.split("\n");
-
- var nodeValueArrayDD = new Array();
- nodeValueArrayDD = pStringDD.split("\n");
-
- var destNode = instance1.selectSingleNode(pXPath);
-
- for(var idx=0; idx<nodeValueArray.length; idx++){
- var tempNode = instance1.createElement(pNodeSetName);
- var tempChildNode;
-
- tempChildNode1 = instance1.createElement(pNodeName1);
- tempChildNode2 = instance1.createElement(pNodeName2);
- tempChildNode3 = instance1.createElement(pNodeName3);
- tempChildNode4 = instance1.createElement(pNodeName4);
- model.duplicate(tempNode, tempChildNode1);
- model.duplicate(tempNode, tempChildNode2);
- model.duplicate(tempNode, tempChildNode3);
- model.duplicate(tempNode, tempChildNode4);
-
- tempNode.childNodes.item(0).text = pGubun;
- tempNode.childNodes.item(1).text = pGubunName;
- tempNode.childNodes.item(2).text = nodeValueArray[idx];
- tempNode.childNodes.item(3).text = nodeValueArrayDD[idx];
- model.duplicate(destNode, tempNode);
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <group id="group1" style="left:0px; top:13px; width:1195px; height:744px; ">
- <switch id="switch1" class="sw_box" style="left:0px; top:31px; width:1194px; height:713px; border-color:#cc99ff; border-style:solid; ">
- <case id="case1" selected="true">
- <caption id="caption45" class="tit_2" style="left:15px; top:55px; width:155px; height:14px; font-family:돋움; vertical-align:middle; ">민원환자리스트</caption>
- <line id="line1" class="line_1" style="x1:10px; y1:70px; x2:1184px; y2:70px; "/>
- <button id="button10" class="btn2_letter4" style="left:1120px; top:50px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if(fileName != ""){
- grd_civilindspec.saveExcel(fileName, "SheetName", true, true, "", "");
- }
- window.exec(fileName);
- ]]>
- </script>
- </button>
- <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; ">
- <col disabled="true" ref="capm_endyn" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0046list/P0046">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="capm_lrgcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0450list/P0450">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="capm_mdicd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0451list/P0451">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="capm_pid" style="text-align:center; "/>
- <col disabled="true" ref="capm_hngnm" style="text-align:center; "/>
- <col ref="capm_civilaplgenrdeptcd"/>
- <col disabled="true" ref="capm_rrgstno" format="999999-9999999" style="text-align:center; "/>
- <col disabled="true" ref="capm_civilaplclamdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="capm_civilenddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="capm_agreamt" format="#,###" style="text-align:center; "/>
- <col disabled="true" ref="capm_civilaplernm" style="text-align:center; "/>
- <col disabled="true" ref="capm_civilaplchrgernm" style="text-align:center; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(grd_civilindspec.isCell(event.target)){
- model.setValue("/root/main/ptbs/ptbs_pid", model.getValue("/root/main/capmlist/civilindspeclist["+grd_civilindspec.row+"]/capm_pid"));
- btn_mngt.selected= true;
- fBaseInfoRef(); //조회
- }
-
- /*
- model.resetInstanceNode("/root/hidden/rcv/ptbs");
- model.resetInstanceNode("/root/hidden/rcv/capm");
- model.resetInstanceNode("/root/hidden/rcv/chosrec/chosreclist");
-
- var currow = grd_civilindspec.row;
- model.setValue("/root/send/data3/pid" , model.getValue("/root/main/capmlist/civilindspeclist["+currow+"]/capm_pid"));
- model.setValue("/root/send/data3/civilgenrdd" , model.getValue("/root/main/capmlist/civilindspeclist["+currow+"]/capm_civilgenrdd"));
- model.setValue("/root/send/data3/civilseqno" , model.getValue("/root/main/capmlist/civilindspeclist["+currow+"]/capm_civilseqno"));
- submit("TRPMC00102");
-
- var ptbs_cnt = getNodesetCount("/root/hidden/rcv/ptbs");
- var capm_cnt = getNodesetCount("/root/hidden/rcv/capm");
- var opmi_cnt = getNodesetCount("/root/hidden/rcv/chosrec/chosreclist");
-
- if (ptbs_cnt > 0) {
- copyNodeType("/root/main/ptbs","/root/hidden/rcv/ptbs","replace");
- } else {
- model.resetInstanceNode("/root/main/ptbs");
- }
-
- if (capm_cnt > 0) {
- copyNodeType("/root/main/capm","/root/hidden/rcv/capm","replace");
- cmb_lrgcd2.dispatch("xforms-select");
- } else {
- model.resetInstanceNode("/root/main/capm");
- }
-
- if (opmi_cnt > 0) {
- model.removeNodeset("/root/main/chosrec");
- model.makeNode("/root/main/chosrec");
- for(var i=1; i<=opmi_cnt; i++){
- model.duplicate("/root/main/chosrec","/root/hidden/rcv/chosrec/chosreclist["+ i +"]");
- }
- grd_chosreclist.rebuild();
- } else {
- model.resetInstanceNode("/root/main/chosrec");
- }
-
- btn_mngt.selected= true;
- */
- ]]>
- </script>
- <toggle case="case2" ev:event="ondblclick"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_civilindspec.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <group id="group2" style="left:10px; top:10px; width:1174px; height:35px; ">
- <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; "/>
- <caption id="caption1" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">조회구분 :</caption>
- <select1 id="combo1" ref="/root/send/data1/sflagcd" class="combo_search" appearance="minimal" style="left:104px; top:8px; width:115px; height:19px; ">
- <choices>
- <item>
- <label>접수일자</label>
- <value>1</value>
- </item>
- <item>
- <label>성명</label>
- <value>2</value>
- </item>
- <item>
- <label>환자번호</label>
- <value>3</value>
- </item>
- <item>
- <label>종료일자</label>
- <value>4</value>
- </item>
- <item>
- <label>담당자</label>
- <value>5</value>
- </item>
- <item>
- <label>민원분류</label>
- <value>6</value>
- </item>
- <item>
- <label>민원제기방법</label>
- <value>7</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var schoino = model.getValue("/root/send/data1/sflagcd");
- fChoice(schoino);
- ]]>
- </script>
- </select1>
- <caption id="caption11" class="search_name" style="left:520px; top:10px; width:60px; height:17px; ">종결 :</caption>
- <select1 id="combo2" ref="/root/send/data1/endflag" class="combo_search" appearance="minimal" style="left:583px; top:10px; width:115px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0046list/P0046">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <line id="line2" class="line_4" style="x1:1088px; y1:7px; x2:1088px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption15" class="search_name" style="left:741px; top:10px; width:60px; height:17px; ">그룹 :</caption>
- <select1 id="combo3" ref="/root/send/data1/grupflag" class="combo_search" appearance="minimal" style="left:804px; top:10px; width:115px; height:19px; ">
- <choices>
- <item>
- <label>외래</label>
- <value>1</value>
- </item>
- <item>
- <label>입원</label>
- <value>2</value>
- </item>
- <item>
- <label>응급</label>
- <value>3</value>
- </item>
- <item>
- <label>기타</label>
- <value>4</value>
- </item>
- <item>
- <label>전체</label>
- <value/>
- </item>
- </choices>
- </select1>
- <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; "/>
- <input id="ipt_spid" ref="/root/send/data1/sflagnm" class="input_search" visibility="hidden" style="left:232px; top:8px; width:115px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13"){
- inputEnterKey("btn_search", "DOMActivate");
- }
- ]]>
- </script>
- </input>
- <input id="ipt_shngnm" ref="/root/send/data1/sflagnm" class="input_search" visibility="hidden" style="left:242px; top:8px; width:115px; height:19px; "/>
- <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; "/>
- <input id="ipt_civilaplchrgerid" ref="/root/send/data1/sflagnm" visibility="hidden" style="left:262px; top:8px; width:115px; height:19px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1103px; top:5px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRPMC00101");
- //btn_prescond.selected= true;
- ]]>
- </script>
- <toggle case="case1" ev:event="onclick"/>
- </button>
- <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; ">
- <choices>
- <itemset nodeset="/root/init/P0450list/P0450">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- cmb_mdicd.visible = true;
-
- var sLrgcd = model.getValue("/root/send/data1/sflagnm"); //대분류
- cmb_mdicd.choices.itemset.attribute("nodeset") = "/root/init/P0451list/P0451[upcd = '" + sLrgcd + "']"; //중분류
- model.setValue("/root/send/data1/sflagnm2", sLrgcd + "01");
- cmb_mdicd.refresh();
- model.setFocus("cmb_lrgcd");
- ]]>
- </script>
- </select1>
- <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; ">
- <choices>
- <itemset nodeset="/root/init/P0451list/P0451">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <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; ">
- <choices>
- <item>
- <label>방문</label>
- <value>1</value>
- </item>
- <item>
- <label>인터넷</label>
- <value>2</value>
- </item>
- <item>
- <label>전화</label>
- <value>3</value>
- </item>
- <item>
- <label>고객소리</label>
- <value>4</value>
- </item>
- <item>
- <label>기타</label>
- <value>5</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_sacptdd2" ref="/root/send/data1/sflagnm2" class="input_search" inputtype="date" style="left:365px; top:8px; width:115px; height:19px; ">
- <script type="javascript" ev:event="xforms-next">
- <![CDATA[
- submit("TRPMC00101");
- ]]>
- </script>
- </input>
- <caption id="caption26" style="left:345px; top:10px; width:15px; height:15px; ">~</caption>
- <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; ">
- <script type="javascript" ev:event="xforms-next">
- <![CDATA[
- submit("TRPMC00101");
- ]]>
- </script>
- </input>
- </group>
- </case>
- <case id="case2">
- <caption id="caption9" class="cell_1" style="left:5px; top:30px; width:70px; height:23px; vertical-align:middle; ">등록번호</caption>
- <input id="ipt_pid" ref="/root/main/ptbs/ptbs_pid" class="input_s_essential" style="left:78px; top:31px; width:117px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode=='13'){
- model.resetInstanceNode("/root/send/data3");
- model.resetInstanceNode("/root/send/data4");
- //저장쪽에 data5로 바꾼다음 막은거 풀자...
- //model.resetInstanceNode("/root/send/data5");
- model.setValue("/root/send/data4/autoflag","Y");
- inputEnterKey("btn_ptbspid", "DOMActivate");
- model.setFocus("ipt_civilaplernm");
- }
-
- /*
- var iptbscnt = getNodesetCount("/root/hidden/rcv/ptbs");
- //'0'이면 차트번호가 존재하지 않는다. 메세지 처리해주고 필요시 채번 하는 팝업을 띄워준다.
- //'1'이면 정상적으로 처리.
- //'1'이상이면 환자인적조회 팝업을 띄워준다.
- if (iptbscnt == 0) {
- messageBox("환자인적이","I004");
- return;
- }else if (iptbscnt > 1){
- inputEnterKey("btn_ptbspid", "DOMActivate");
- }
- */
- ]]>
- </script>
- </input>
- <button id="btn_ptbspid" class="icon_search" style="left:199px; top:33px; width:16px; height:16px; ">
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var ptbs_pid = model.getValue("/root/main/ptbs/ptbs_pid");
- if (ptbs_pid == null || ptbs_pid ==" " || ptbs_pid == "") {
- model.resetInstanceNode("/root/send/data4");
- } else {
- model.setValue("/root/send/data4/pid",model.getValue("/root/main/ptbs/ptbs_pid"));
- model.setValue("/root/send/data4/srchcond","1");
- }
- modal("../../../pam/patinfomngtweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/send/data4", "/root/send");
- model.resetInstanceNode("/root/send/data4");
- fBaseInfoRef();
- ]]>
- </script>
- <caption/>
- </button>
- <line id="line5" class="line_2" style="x1:5px; y1:52px; x2:790px; y2:52px; "/>
- <caption id="caption33" class="cell_1" style="left:5px; top:54px; width:70px; height:23px; vertical-align:middle; ">성명[한글]</caption>
- <input id="ipt_hngnm" ref="/root/main/ptbs/ptbs_hngnm" class="input_s_essential" style="left:78px; top:55px; width:117px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode=='13') {
- setInputNodeCurText();
- if (fHngNmVeri("onkeypress") == false) return;
-
- model.resetInstanceNode("/root/send/data3");
- model.resetInstanceNode("/root/send/data4");
- //model.resetInstanceNode("/root/send/data5");
- model.setValue("/root/send/data4/autoflag","Y");
- inputEnterKey("btn_ptbshngnm", "DOMActivate");
- }
- ]]>
- </script>
- </input>
- <button id="btn_ptbshngnm" class="icon_search" style="left:199px; top:57px; width:16px; height:16px; ">
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var ptbs_hngnm = model.getValue("/root/main/ptbs/ptbs_hngnm");
- if (ptbs_hngnm == null || ptbs_hngnm ==" " || ptbs_hngnm == "") {
- model.resetInstanceNode("/root/send/data4");
- } else {
- model.setValue("/root/send/data4/hngnm",model.getValue("/root/main/ptbs/ptbs_hngnm"));
- model.setValue("/root/send/data4/srchcond","2");
- }
- modal("../../../pam/patinfomngtweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/send/data4", "/root/send");
- model.resetInstanceNode("/root/send/data4");
- fBaseInfoRef();
- ]]>
- </script>
- <caption/>
- </button>
- <line id="line6" class="line_2" style="x1:5px; y1:76px; x2:372px; y2:76px; "/>
- <caption id="caption18" class="cell_1" style="left:5px; top:78px; width:70px; height:23px; vertical-align:middle; ">주민번호</caption>
- <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; ">
- <script type="javascript" ev:event="xforms-next">
- <![CDATA[
- if (fRrgstNo1Veri() == false) return;
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13"){
- setInputNodeCurText();
- if (fRrgstNo1Veri() == false) return;
- }
- ]]>
- </script>
- </input>
- <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; ">
- <script type="javascript" ev:event="xforms-next">
- <![CDATA[
- if (fRrgstNo2Veri() == false) return;
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode=='13') {
- setInputNodeCurText();
- if (fRrgstNo2Veri() == false) return;
-
- model.resetInstanceNode("/root/send/data3");
- model.resetInstanceNode("/root/send/data4");
- //model.resetInstanceNode("/root/send/data5");
-
- model.setValue("/root/send/data4/autoflag","Y");
- inputEnterKey("btn_ptbsrrgstno", "DOMActivate");
- }
- ]]>
- </script>
- </input>
- <button id="btn_ptbsrrgstno" class="icon_search" style="left:199px; top:81px; width:16px; height:16px; ">
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var ptbs_rrgstno1 = model.getValue("/root/main/ptbs/ptbs_rrgstno1");
- var ptbs_rrgstno2 = model.getValue("/root/main/ptbs/ptbs_rrgstno2");
-
- if ((ptbs_rrgstno1 == null || ptbs_rrgstno1 ==" " || ptbs_rrgstno1 == "") && (ptbs_rrgstno2 == null || ptbs_rrgstno2 ==" " || ptbs_rrgstno2 == "")) {
- model.resetInstanceNode("/root/send/data4");
- } else {
- model.setValue("/root/send/data4/rrgstno1",model.getValue("/root/main/ptbs/ptbs_rrgstno1"));
- model.setValue("/root/send/data4/rrgstno2",model.getValue("/root/main/ptbs/ptbs_rrgstno2"));
- model.setValue("/root/send/data4/srchcond","3")
- }
- modal("../../../pam/patinfomngtweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/send/data4", "/root/send");
- model.resetInstanceNode("/root/send/data4");
- fBaseInfoRef();
- ]]>
- </script>
- <caption/>
- </button>
- <caption id="caption4" class="cell_1" style="left:220px; top:30px; width:65px; height:23px; vertical-align:middle; ">성별/나이</caption>
- <input id="input3" ref="/root/main/ptbs/ptbs_sex" class="input_default" disabled="true" style="left:287px; top:31px; width:45px; height:19px; "/>
- <input id="input4" ref="/root/main/ptbs/ptbs_age" class="input_default" disabled="true" style="left:336px; top:31px; width:49px; height:19px; "/>
- <caption id="caption14" class="cell_1" style="left:220px; top:54px; width:65px; height:23px; vertical-align:middle; ">연락처</caption>
- <input id="input15" ref="/root/main/ptbs/ptbs_hometel" class="input_default" disabled="true" style="left:287px; top:55px; width:98px; height:19px; "/>
- <caption id="caption86" class="cell_1" style="left:388px; top:54px; width:85px; height:46px; vertical-align:middle; ">참고사항</caption>
- <button id="btn_remfact" class="btn2_letter2" style="left:431px; top:80px; width:42px; height:19px; ">
- <caption>펼침</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/main/ptbs/ptbs_pid") == "") {
- return;
- }
- model.setValue("/root/main/ptbs/ptbs_remfact", fCallSpecPopUp_remfact(model.getValue("/root/main/ptbs/ptbs_pid"),model.getValue("/root/main/ptbs/ptbs_remfact")));
- tar_remfact.refresh();
- ]]>
- </script>
- </button>
- <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; "/>
- <caption id="caption123" class="cell_1" style="left:388px; top:30px; width:85px; height:23px; vertical-align:middle; ">직원추천정보</caption>
- <bool id="bool2" disabled="true" checkvalue="Y,N" ref="/root/main/ptbs/ptbs_recmyn" style="left:475px; top:32px; width:20px; height:20px; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.setValue("/root/main/patinfo/patinfolist/recmerid", "");
- model.setValue("/root/main/patinfo/patinfolist/recmernm", "");
- model.setValue("/root/main/patinfo/patinfolist/recmerrela", "");
- model.setValue("/root/main/patinfo/patinfolist/baptnm", "");
- ]]>
- </script>
- </bool>
- <caption id="caption20" style="left:495px; top:32px; width:50px; height:20px; ">직원소개</caption>
- <output id="output67" ref="/root/main/ptbs/ptbs_recmernm" class="output_fix" appearance="output" style="left:548px; top:31px; width:80px; height:19px; "/>
- <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; ">
- <choices>
- <itemset nodeset="/root/init/P0327list/P0327">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="input2" ref="/root/main/ptbs/ptbs_mpphontel" class="input_default" disabled="true" style="left:287px; top:79px; width:98px; height:19px; "/>
- <caption id="caption3" class="cell_1" style="left:750px; top:30px; width:85px; height:23px; vertical-align:middle; ">사망여부</caption>
- <bool id="bool4" disabled="true" checkvalue="Y,N" ref="/root/main/ptbs/ptbs_dethyn" style="left:835px; top:32px; width:20px; height:20px; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.setValue("/root/main/patinfo/patinfolist/dethdt", "");
- model.setValue("/root/main/patinfo/patinfolist/dethdd", "");
- model.setValue("/root/main/patinfo/patinfolist/dethtm", "");
- ]]>
- </script>
- </bool>
- <line id="line7" class="line_3" style="x1:3px; y1:126px; x2:854px; y2:126px; "/>
- <line id="line17" class="line_2" style="x1:861px; y1:52px; x2:1186px; y2:52px; "/>
- <line id="line19" class="line_2" style="x1:861px; y1:76px; x2:1186px; y2:76px; "/>
- <line id="line22" class="line_2" style="x1:861px; y1:148px; x2:1186px; y2:148px; "/>
- <line id="line21" class="line_2" style="x1:861px; y1:124px; x2:1186px; y2:124px; "/>
- <line id="line20" class="line_2" style="x1:861px; y1:100px; x2:1186px; y2:100px; "/>
- <line id="line25" class="line_2" style="x1:5px; y1:326px; x2:856px; y2:326px; "/>
- <line id="line24" class="line_2" style="x1:5px; y1:302px; x2:856px; y2:302px; "/>
- <line id="line13" class="line_2" style="x1:5px; y1:278px; x2:856px; y2:278px; "/>
- <line id="line12" class="line_2" style="x1:5px; y1:254px; x2:856px; y2:254px; "/>
- <line id="line23" class="line_2" style="x1:5px; y1:230px; x2:856px; y2:230px; "/>
- <line id="line10" class="line_2" style="x1:5px; y1:206px; x2:856px; y2:206px; "/>
- <line id="line14" class="line_2" style="x1:5px; y1:182px; x2:856px; y2:182px; "/>
- <caption id="caption46" class="cell_1" style="left:861px; top:150px; width:74px; height:220px; vertical-align:middle; ">종결내역</caption>
- <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; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if( event.keyCode == 13 ) {
- var pCurTargetObj = event.ptarget.parent;
- if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select"){
- event.keyCode = 9;
- pCurTargetObj.dispatch("onkeydown");
- }else{
- event.keyCode = 9;
- }
- }
- event.stopPropagation();
- ]]>
- </script>
- </input>
- <caption id="caption40" class="cell_1" style="left:861px; top:102px; width:74px; height:23px; vertical-align:middle; ">감면액</caption>
- <input id="input20" ref="/root/main/capm/capm_reductamt" class="input_default" format="#,###" style="left:937px; top:103px; width:120px; height:19px; "/>
- <caption id="caption2" class="tit_2" style="left:866px; top:10px; width:119px; height:13px; font-family:돋움; vertical-align:middle; ">종결사항</caption>
- <caption id="caption10" class="tit_2" style="left:10px; top:140px; width:204px; height:13px; font-family:돋움; vertical-align:middle; ">민원사항</caption>
- <input id="input1" ref="/root/main/capm/capm_totordamt" class="input_default" format="#,###" style="left:937px; top:31px; width:120px; height:19px; "/>
- <caption id="caption21" class="cell_1" style="left:5px; top:208px; width:82px; height:23px; vertical-align:middle; ">민원발생일자</caption>
- <input id="input34" ref="/root/main/capm/capm_civilenddd" class="input_default" inputtype="date" style="left:937px; top:127px; width:120px; height:19px; "/>
- <caption id="caption5" class="tit_2" style="left:10px; top:10px; width:80px; height:13px; font-family:돋움; vertical-align:middle; ">인적사항</caption>
- <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>
- <caption id="caption47" class="cell_1" style="left:861px; top:30px; width:74px; height:23px; vertical-align:middle; ">총진료비</caption>
- <line id="line3" class="line_1" style="x1:5px; y1:25px; x2:856px; y2:25px; "/>
- <caption id="caption48" class="cell_1" style="left:861px; top:54px; width:74px; height:23px; vertical-align:middle; ">본인부담금</caption>
- <line id="line18" class="line_1" style="x1:861px; y1:25px; x2:1186px; y2:25px; "/>
- <line id="line4" class="line_1" style="x1:5px; y1:155px; x2:856px; y2:155px; "/>
- <caption id="caption49" class="cell_1" style="left:861px; top:126px; width:74px; height:23px; vertical-align:middle; ">종결일자</caption>
- <input id="input18" ref="/root/main/capm/capm_agreamt" class="input_default" format="#,###" style="left:937px; top:79px; width:120px; height:19px; "/>
- <caption id="caption28" class="cell_1" style="left:861px; top:78px; width:74px; height:23px; vertical-align:middle; ">합의금</caption>
- <input id="input19" ref="/root/main/capm/capm_ownbamt" class="input_default" format="#,###" style="left:937px; top:55px; width:120px; height:19px; "/>
- <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; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if( event.keyCode == 13 ) {
- var pCurTargetObj = event.ptarget.parent;
- if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
- event.keyCode = 9;
- pCurTargetObj.dispatch("onkeydown");
- }else{
- event.keyCode = 9;
- }
- }
- event.stopPropagation();
- ]]>
- </script>
- </input>
- <caption id="caption41" class="cell_1" style="left:638px; top:304px; width:90px; height:23px; vertical-align:middle; ">민원회신여부</caption>
- <caption id="caption30" class="cell_1" style="left:638px; top:160px; width:90px; height:23px; vertical-align:middle; ">연락처</caption>
- <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; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 13){
- var pCurTargetObj = event.ptarget.parent;
- if(pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select"){
- event.keyCode = 9;
- pCurTargetObj.dispatch("onkeydown");
- }else{
- event.keyCode = 9;
- }
- }
- event.stopPropagation();
- ]]>
- </script>
- </input>
- <caption id="caption42" class="cell_1" style="left:417px; top:232px; width:95px; height:23px; vertical-align:middle; ">민원종결상태</caption>
- <input id="ipt_smlcnts" ref="/root/main/capm/capm_smlcnts" class="input_default" navindex="23" style="left:365px; top:305px; width:270px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if( event.keyCode == 13 ) {
- var pCurTargetObj = event.ptarget.parent;
- if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
- event.keyCode = 9;
- pCurTargetObj.dispatch("onkeydown");
- }else{
- event.keyCode = 9;
- }
- }
- event.stopPropagation();
- ]]>
- </script>
- </input>
- <caption id="caption31" class="cell_1" style="left:213px; top:232px; width:80px; height:23px; vertical-align:middle; ">전달부서</caption>
- <caption id="caption43" class="cell_1" style="left:638px; top:232px; width:90px; height:23px; vertical-align:middle; ">진료시작일자</caption>
- <input id="input33" ref="/root/main/capm/capm_civilapltrgt" class="input_default" navindex="19" style="left:296px; top:281px; width:118px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if( event.keyCode == 13 ) {
- var pCurTargetObj = event.ptarget.parent;
- if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
- event.keyCode = 9;
- pCurTargetObj.dispatch("onkeydown");
- }else{
- event.keyCode = 9;
- }
- }
- event.stopPropagation();
- ]]>
- </script>
- </input>
- <caption id="caption32" class="cell_1" style="left:5px; top:280px; width:82px; height:23px; vertical-align:middle; ">전문의</caption>
- <caption id="caption44" class="cell_1" style="left:417px; top:256px; width:95px; height:23px; vertical-align:middle; ">민원제기방법</caption>
- <button id="button7" class="icon_search" navindex="5" style="left:190px; top:186px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rcv_zipcdhead_path = '/root/main/capm/capm_zipcd1';
- var rcv_zipcdfoot_path = '/root/main/capm/capm_zipcd2';
- var rcv_seqno_path = '/root/main/capm/capm_zipcdseq';
- var rcv_address_path = '/root/main/capm/capm_address';
- var term = model.getValue("recv_zipcdhead_path");
- zbcfOpenZipCodeList("combination", term, rcv_zipcdhead_path, rcv_zipcdfoot_path, rcv_seqno_path, rcv_address_path);
- //modal("../../../com/zipcodeweb/xrw/SPZBP00100", "1","150", "150", "SPZBP00100", "/root/source", "/root/send");
- ]]>
- </script>
- </button>
- <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; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if( event.keyCode == 13 ) {
- var pCurTargetObj = event.ptarget.parent;
- if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
- event.keyCode = 9;
- pCurTargetObj.dispatch("onkeydown");
- } else {
- event.keyCode = 9;
- }
- }
- event.stopPropagation();
- ]]>
- </script>
- </input>
- <caption id="caption22" class="cell_1" style="left:5px; top:160px; width:82px; height:23px; vertical-align:middle; ">민원인명</caption>
- <caption id="caption23" class="cell_1" style="left:417px; top:160px; width:95px; height:23px; vertical-align:middle; ">관계</caption>
- <input id="input35" ref="/root/main/capm/capm_zipcd1" class="input_default" style="left:90px; top:185px; width:30px; height:19px; "/>
- <input id="input24" ref="/root/main/capm/capm_civilaplertel" class="input_default" navindex="4" style="left:731px; top:161px; width:125px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if( event.keyCode == 13 ) {
- var pCurTargetObj = event.ptarget.parent;
- if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
- event.keyCode = 9;
- pCurTargetObj.dispatch("onkeydown");
- } else {
- event.keyCode = 9;
- }
- }
- event.stopPropagation();
- ]]>
- </script>
- </input>
- <caption id="caption34" class="cell_1" style="left:213px; top:256px; width:80px; height:23px; vertical-align:middle; ">전달일자</caption>
- <line id="line16" class="line_3" style="x1:861px; y1:374px; x2:1186px; y2:374px; "/>
- <caption id="caption24" class="cell_1" style="left:638px; top:256px; width:90px; height:23px; vertical-align:middle; ">진료종료일자</caption>
- <input id="input36" ref="/root/main/capm/capm_zipcd2" class="input_default" style="left:123px; top:185px; width:30px; height:19px; "/>
- <caption id="caption35" class="cell_1" style="left:213px; top:328px; width:82px; height:47px; vertical-align:middle; ">전달사항</caption>
- <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; ">
- <choices>
- <item>
- <label>Yes</label>
- <value>Y</value>
- </item>
- <item>
- <label>No</label>
- <value>N</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if( event.keyCode == 13 ) {
- var pCurTargetObj = event.ptarget.parent;
- if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
- event.keyCode = 9;
- pCurTargetObj.dispatch("onkeydown");
- } else {
- event.keyCode = 9;
- }
- }
- event.stopPropagation();
- ]]>
- </script>
- </select1>
- <input id="input37" ref="/root/main/capm/capm_address" class="input_default" style="left:213px; top:185px; width:199px; height:19px; "/>
- <caption id="caption36" class="cell_1" style="left:5px; top:232px; width:82px; height:23px; vertical-align:middle; ">민원제기일자</caption>
- <caption id="caption7" class="cell_1" style="left:5px; top:184px; width:82px; height:23px; vertical-align:middle; ">주소</caption>
- <input id="input38" ref="/root/main/capm/capm_infaddr" class="input_default" navindex="6" style="left:515px; top:185px; width:341px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if( event.keyCode == 13 ) {
- var pCurTargetObj = event.ptarget.parent;
- if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
- event.keyCode = 9;
- pCurTargetObj.dispatch("onkeydown");
- } else {
- event.keyCode = 9;
- }
- }
- event.stopPropagation();
- ]]>
- </script>
- </input>
- <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; ">
- <choices>
- <item>
- <label>방문</label>
- <value>1</value>
- </item>
- <item>
- <label>인터넷</label>
- <value>2</value>
- </item>
- <item>
- <label>전화</label>
- <value>3</value>
- </item>
- <item>
- <label>고객소리</label>
- <value>4</value>
- </item>
- <item>
- <label>기타</label>
- <value>5</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if( event.keyCode == 13 ) {
- var pCurTargetObj = event.ptarget.parent;
- if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
- event.keyCode = 9;
- pCurTargetObj.dispatch("onkeydown");
- }else{
- event.keyCode = 9;
- }
- }
- event.stopPropagation();
- ]]>
- </script>
- </select1>
- <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; ">
- <choices>
- <item>
- <label>남자</label>
- <value>M</value>
- </item>
- <item>
- <label>여자</label>
- <value>F</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if( event.keyCode == 13 ) {
- var pCurTargetObj = event.ptarget.parent;
- if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
- event.keyCode = 9;
- pCurTargetObj.dispatch("onkeydown");
- } else {
- event.keyCode = 9;
- }
- }
- event.stopPropagation();
- ]]>
- </script>
- </select1>
- <caption id="caption37" class="cell_1" style="left:5px; top:256px; width:82px; height:23px; vertical-align:middle; ">
- <![CDATA[민원발생과]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- modal("../../../pam/patinfomngtweb/xrw/SSPMC07400", "1","100", "100", "SSPMC07400", "", "");
- ]]>
- </script>
- </caption>
- <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; ">
- <choices>
- <item>
- <label>상</label>
- <value>1</value>
- </item>
- <item>
- <label>중</label>
- <value>2</value>
- </item>
- <item>
- <label>하</label>
- <value>3</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if( event.keyCode == 13 ) {
- var pCurTargetObj = event.ptarget.parent;
- if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
- event.keyCode = 9;
- pCurTargetObj.dispatch("onkeydown");
- } else {
- event.keyCode = 9;
- }
- }
- event.stopPropagation();
- ]]>
- </script>
- </select1>
- <caption id="caption16" class="cell_1" style="left:417px; top:184px; width:95px; height:23px; vertical-align:middle; ">하위주소</caption>
- <caption id="caption27" class="cell_1" style="left:213px; top:160px; width:80px; height:23px; vertical-align:middle; ">성별</caption>
- <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; ">
- <choices>
- <itemset nodeset="/root/init/P0450list/P0450">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var sLrgcd = model.getValue("/root/main/capm/capm_lrgcd"); //대분류
- cmb_mdicd2.choices.itemset.attribute("nodeset") = "/root/init/P0451list/P0451[upcd = '" + sLrgcd + "']"; //중분류
-
- model.setValue("/root/main/capm/capm_mdicd", sLrgcd + "01");
- cmb_mdicd2.refresh();
-
- //불친절(04), 시설(05), 기타(06) 일 때 중분류 -(01)로 강제설정 후 cmb_mdicd.disabled = true로 설정
- /*
- if (sLrgcd == "04" || sLrgcd == "05" || sLrgcd == "06"){
- var sMdicd = sLrgcd + "01";
- model.setValue("/root/main/capm/capm_mdicd", sMdicd);
- cmb_mdicd2.disabled = true;
- model.setFocus("ipt_smlcnts");
- }else{
- cmb_mdicd2.disabled = false;
- cmb_mdicd2.refresh();
- if (!isNull(sLrgcd)) {
- model.setFocus("cmb_mdicd");
- }
- }
- */
- ]]>
- </script>
- </select1>
- <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; ">
- <choices>
- <itemset nodeset="/root/init/P0451list/P0451">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var sLrgcd = model.getValue("/root/main/capm/capm_lrgcd"); //대분류
- if(isNull(sLrgcd)) {
- messageBox("", "");
- }
- model.setFocus("ipt_smlcnts");
- ]]>
- </script>
- </select1>
- <textarea id="textarea1" ref="/root/main/capm/capm_rcptdelivefact" navindex="25" style="left:298px; top:330px; width:558px; height:41px; "/>
- <caption id="caption38" class="cell_1" style="left:5px; top:304px; width:82px; height:23px; vertical-align:middle; ">민원분류</caption>
- <textarea id="textarea2" ref="/root/main/capm/capm_endspec" style="left:937px; top:151px; width:252px; height:219px; "/>
- <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; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if( event.keyCode == 13 ) {
- var pCurTargetObj = event.ptarget.parent;
- if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
- event.keyCode = 9;
- pCurTargetObj.dispatch("onkeydown");
- } else {
- event.keyCode = 9;
- }
- }
- event.stopPropagation();
- ]]>
- </script>
- </input>
- <caption id="caption39" class="cell_1" style="left:638px; top:208px; width:90px; height:23px; vertical-align:middle; ">민원일련번호</caption>
- <caption id="caption19" class="cell_1" style="left:417px; top:208px; width:95px; height:23px; vertical-align:middle; ">담당자</caption>
- <caption id="caption8" class="cell_1" style="left:213px; top:280px; width:80px; height:23px; vertical-align:middle; ">민원대상</caption>
- <caption id="caption17" class="cell_1" style="left:213px; top:208px; width:80px; height:23px; vertical-align:middle; ">구분</caption>
- <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; ">
- <choices>
- <itemset nodeset="/root/init/P0449list/P0449">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if( event.keyCode == 13 ) {
- var pCurTargetObj = event.ptarget.parent;
- if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
- event.keyCode = 9;
- pCurTargetObj.dispatch("onkeydown");
- } else {
- event.keyCode = 9;
- }
- }
- event.stopPropagation();
- ]]>
- </script>
- </select1>
- <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; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if( event.keyCode == 13 ) {
- var pCurTargetObj = event.ptarget.parent;
- if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
- event.keyCode = 9;
- pCurTargetObj.dispatch("onkeydown");
- } else {
- event.keyCode = 9;
- }
- }
- event.stopPropagation();
- ]]>
- </script>
- </input>
- <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; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if( event.keyCode == 13 ) {
- var pCurTargetObj = event.ptarget.parent;
- if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
- event.keyCode = 9;
- pCurTargetObj.dispatch("onkeydown");
- } else {
- event.keyCode = 9;
- }
- }
- event.stopPropagation();
- ]]>
- </script>
- </input>
- <button id="btn_print" class="btn2_letter2" style="left:770px; top:5px; width:42px; height:19px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sPid = model.getValue("/root/main/capm/capm_pid");
- if (isNull(sPid)) {
- messageBox("민원사항이 ", "I004");
- return;
- }
-
- //1. 민원내용조회
- model.setValue("/root/send/data6/pid",model.getValue("/root/main/capm/capm_pid"));
- model.setValue("/root/send/data6/civilgenrdd",model.getValue("/root/main/capm/capm_civilgenrdd"));
- model.setValue("/root/send/data6/civilseqno",model.getValue("/root/main/capm/capm_civilseqno"));
-
- if(!submit("TRPMC00105")){
- messageBox("민원내용 조회를", "E009");
- return;
- }
-
- //2. 출력데이터생성
- model.setValue("/root/main/capm_print/rex_capm/capm_civilgenrdd" , model.getValue("/root/main/capm/capm_civilgenrdd")); //접수일자
- model.setValue("/root/main/capm_print/rex_capm/capm_civilaplclammthdcd" , cmb_scivilaplclammthdcd.label); //접수방법
- model.setValue("/root/main/capm_print/rex_capm/capm_ordfromdd" , model.getValue("/root/main/capm/capm_ordfromdd")); //내원일
- var sCivilType = model.getValue("/root/main/capm/capm_civilaplflag");
- model.setValue("/root/main/capm_print/rex_capm/capm_civilaplflag" , model.getValue("/root/init/P0449list/P0449[cdid='" + sCivilType + "']/cdnm")); //구분
- model.setValue("/root/main/capm_print/rex_capm/capm_civilaplernm" , model.getValue("/root/main/capm/capm_civilaplernm")); //민원인
- model.setValue("/root/main/capm_print/rex_capm/capm_patrela" , model.getValue("/root/main/capm/capm_patrela")); //관계
- model.setValue("/root/main/capm_print/rex_capm/capm_civilaplertel" , model.getValue("/root/main/capm/capm_civilaplertel")); //연락처
- model.setValue("/root/main/capm_print/rex_capm/capm_pid" , model.getValue("/root/main/capm/capm_pid")); //환자번호
- model.setValue("/root/main/capm_print/rex_capm/capm_hngnm" , model.getValue("/root/main/ptbs/ptbs_hngnm")); //환자명
- model.setValue("/root/main/capm_print/rex_capm/capm_fulladdr" , model.getValue("/root/main/capm/capm_address") + " " +model.getValue("/root/main/capm/capm_infaddr"));
-
- // var sDeptcd = model.getValue("/root/main/capm/capm_civilaplgenrdeptcd");
- // model.setValue("/root/main/capm_print/rex_capm/capm_civilaplgenrdeptcd" , model.getValue("/root/hidden/init/orddeptcd[cd='"+sDeptcd+"']/nm")); //진료과
- model.setValue("/root/main/capm_print/rex_capm/capm_civilaplgenrdepthngnm" , model.getValue("/root/main/capm/capm_civilaplgenrdepthngnm"));
-
- model.setValue("/root/main/capm_print/rex_capm/capm_civilapltrgt" , model.getValue("/root/main/capm/capm_civilapltrgt")); //관련직원
- model.setValue("/root/main/capm_print/rex_capm/capm_civilaplrepldd" , model.getValue("/root/main/capm/capm_civilaplrepldd")); //회신일자
- var sLrgcd = model.getValue("/root/main/capm/capm_lrgcd");
- model.setValue("/root/main/capm_print/rex_capm/capm_lrgcd" , model.getValue("/root/init/P0450list/P0450[cdid='"+ sLrgcd +"']/cdnm")); //대분류
- var sMdicd = model.getValue("/root/main/capm/capm_mdicd");
- model.setValue("/root/main/capm_print/rex_capm/capm_mdicd" , model.getValue("/root/init/P0451list/P0451[cdid='"+ sMdicd +"']/cdnm")); //중분류
- model.setValue("/root/main/capm_print/rex_capm/capm_smlcnts" , model.getValue("/root/main/capm/capm_smlcnts")); //소분류
-
- model.setValue("/root/main/capm_print/rex_capm/capm_instcd" , getUserInfo("dutiposinstcd")); //근무지코드
- model.makevalue("/root/main/capm_print/rex_capm/capm_logo" , getLogoImageURL()); //병원로고
-
- /* 출력물 수정에 따른 주석처리 - 20140403
- model.setValue("/root/main/capm_print/rex_capm/capm_civilaplchrgernm" , model.getValue("/root/main/capm/capm_civilaplchrgerid")); //접수자
- var sDoctid = model.getValue("/root/main/capm/capm_atdoctid");
- if (sDoctid != '-') {
- model.setValue("/root/main/capm_print/rex_capm/capm_atdoctid" , model.getValue("/root/hidden/init/orddrid[cd='"+sDoctid+"']/nm")); // 주치의
- } else {
- model.setValue("/root/main/capm_print/rex_capm/capm_atdoctid" , model.getValue("/root/main/capm/capm_atdoctid"));
- }
- model.setValue("/root/main/capm_print/rex_capm/capm_signyn" , model.getValue("/root/send/cond_signyn")); //출력구분
-
- //진단명 조회
- var sPid = model.getValue("/root/main/capm/capm_pid");
- if(!isNull(sPid)) {
- model.setValue("/root/send/data7/pid", sPid);
- model.setValue("/root/send/data7/orddeptcd", model.getValue("/root/main/capm/capm_civilaplgenrdeptcd"));
- model.setValue("/root/send/data7/ordfromdd", model.getValue("/root/main/capm/capm_ordfromdd"));
- model.setValue("/root/send/data7/ordtodd", model.getValue("/root/main/capm/capm_ordtodd"));
-
- if (submit("TRPMC00106")) {
- model.resetInstanceNode("/root/send/data7");
- model.setValue("/root/main/capm_print/rex_capm/capm_diagnm" , model.getValue("/root/hidden/diaginfo/termhngnm")); // 상병명
- }
- }
- */
-
- var sCivilaplcnts = "";
- var sTretfact = "";
- var sRsltcnts = "";
-
- var sCivilaplcntsDD = "";
- var sTretfactDD = "";
- var sRsltcntsDD = "";
- var iCount = 0;
-
- //출력구분(1:민원내용, 2:민원답변, 3:개선사항)
- //var cond_signyn = model.getValue("/root/send/cond_signyn");
-
- var temp = "";
- var etccd = "";
- var etccd_array = new Array();
- var etccd_len = 0;
- var etccd = model.getValue("/root/send/cond_signyn").getTrim();
- if(etccd != ""){
- var etccd_array = etccd.split(" ");
- for(var b=1; b<=etccd_array.length; b++){
- for(var i=0; i<=etccd_array.length-1; i++){
- if(etccd_array[i].substring(0, 1) == "P"){
- etccd_array[i] = etccd_array[i].substring(1, 3);
- }
- temp = "";
- if(etccd_array[i+1] < etccd_array[i]){
- temp = etccd_array[i];
- etccd_array[i] = etccd_array[i+1];
- etccd_array[i+1] = temp;
- i = 0;
- }
- }
- }
- for(var i=0; i<=etccd_array.length-1; i++){
- //민원내용
- if(etccd_array[i] == "1"){
- iCount = 0;
- iCount = getNodesetCount("/root/main/cacmlist/list1/grdcivilaplcnts");
- if (iCount == 1) {
- sCivilaplcntsDD = "민원내용 :\n" + model.getValue("/root/main/cacmlist/list1/grdcivilaplcnts/civilrgstdd");
- sCivilaplcnts = model.getValue("/root/main/cacmlist/list1/grdcivilaplcnts/civilaplcnts") + "\n";
- } else {
- for(var idx=1; idx<=iCount; idx++){
- //줄수를 파악하기 위해 문자열을 받는다.
- if(idx == iCount){
- var sCivilaplcntscnt = model.getValue("/root/main/cacmlist/list1/grdcivilaplcnts[" + idx + "]/civilaplcnts");
- }else{
- var sCivilaplcntscnt = model.getValue("/root/main/cacmlist/list1/grdcivilaplcnts[" + idx + "]/civilaplcnts") +
- "\n------------------------------------------------------------------------------";
- };
-
- //각 건마다의 줄수를 파악한다.
- var linenum = 0;
- var point = 0;
- var endcheck = sCivilaplcntscnt.lastIndexOf ('\n');
- while(true){
- point = sCivilaplcntscnt.indexOf('\n', point);
- linenum++;
- if(endcheck == point++) break;
- }
-
- //줄 수만큼의 줄바꿈을 작성일자에도 더하여준다.
- var linechange = "";
- for(var linecnt = 0; linecnt < linenum; linecnt++){
- linechange += "\n";
- }
-
- sCivilaplcntsDD += "민원내용 :\n" + model.getValue("/root/main/cacmlist/list1/grdcivilaplcnts[" + idx + "]/civilrgstdd") + linechange;
- if(idx == iCount){
- sCivilaplcnts += sCivilaplcntscnt;
- }else{
- sCivilaplcnts += sCivilaplcntscnt + "\n";
- }
- }
- }
- }
-
- //민원답변
- if(etccd_array[i] == "2"){
- iCount = 0;
- iCount = getNodesetCount("/root/main/cacmlist/list2/grdtretfact");
- if (iCount == 1) {
- sTretfactDD = "민원답변 :\n" + model.getValue("/root/main/cacmlist/list2/grdtretfact/civilrgstdd");
- sTretfact = model.getValue("/root/main/cacmlist/list2/grdtretfact/civilaplcnts") + "\n";
- } else {
- for(var idx = 1; idx <= iCount ; idx++) {
- //줄수를 파악하기 위해 문자열을 받는다.
- if(idx == iCount){
- var sTretfactcnt = model.getValue("/root/main/cacmlist/list2/grdtretfact[" + idx + "]/civilaplcnts");
- }else{
- var sTretfactcnt = model.getValue("/root/main/cacmlist/list2/grdtretfact[" + idx + "]/civilaplcnts") +
- "\n------------------------------------------------------------------------------";
- };
- //각 건마다의 줄수를 파악한다.
- var linenum = 0;
- var point = 0;
- var endcheck = sTretfactcnt.lastIndexOf ('\n');
- while(true){
- point = sTretfactcnt.indexOf('\n', point);
- linenum++;
- if(endcheck == point++) break;
- }
-
- //줄 수만큼의 줄바꿈을 작성일자에도 더하여준다.
- var linechange = "";
- for(var linecnt = 0; linecnt < linenum; linecnt++){
- linechange += "\n";
- }
- sTretfactDD += "민원답변 :\n" + model.getValue("/root/main/cacmlist/list2/grdtretfact[" + idx + "]/civilrgstdd") + linechange;
- if(idx == iCount){
- sTretfact += sTretfactcnt;
- }else{
- sTretfact += sTretfactcnt + "\n";
- }
- }
- }
- }
-
- //개선사항
- if(etccd_array[i] == "3"){
- iCount = 0;
- iCount = getNodesetCount("/root/main/cacmlist/list3/grdrsltcnts");
- if (iCount == 1) {
- sRsltcntsDD = "개선사항 :\n" + model.getValue("/root/main/cacmlist/list3/grdrsltcnts/civilrgstdd");
- sRsltcnts = model.getValue("/root/main/cacmlist/list3/grdrsltcnts/civilaplcnts") + "\n";
- } else {
- for(var idx = 1; idx <= iCount ; idx++) {
- //줄수를 파악하기 위해 문자열을 받는다.
- var sRsltcntscnt = model.getValue("/root/main/cacmlist/list3/grdrsltcnts[" + idx + "]/civilaplcnts") +
- "\n------------------------------------------------------------------------------";
-
- //각 건마다의 줄수를 파악한다.
- var linenum = 0;
- var point = 0;
- var endcheck = sRsltcntscnt.lastIndexOf ('\n');
- while(true){
- point = sRsltcntscnt.indexOf('\n', point);
- linenum++;
- if(endcheck == point++) break;
- }
-
- //줄 수만큼의 줄바꿈을 작성일자에도 더하여준다.
- var linechange = "";
- for(var linecnt = 0; linecnt < linenum; linecnt++){
- linechange += "\n";
- }
-
- sRsltcntsDD += "개선사항 :\n" + model.getValue("/root/main/cacmlist/list3/grdrsltcnts[" + idx + "]/civilrgstdd") + linechange;
- sRsltcnts += sRsltcntscnt + "\n";
- }
- }
- }
- }
-
- //fMakeNode 실행시 역으로 실행해야 순서대로 들어감
- if(!isNull(sCivilaplcnts)){
- fMakeNode("/root/main/capm_print", "rex_cacm", "1", "민원내용", "cacm_gubun", "cacm_gubunnm", "cacm_civilaplcnts", "cacm_civilaplcntsDD", sCivilaplcnts, sCivilaplcntsDD);
- }
- if(!isNull(sTretfact)){
- fMakeNode("/root/main/capm_print", "rex_cacm", "2", "민원답변", "cacm_gubun", "cacm_gubunnm", "cacm_civilaplcnts", "cacm_civilaplcntsDD", sTretfact, sTretfactDD);
- }
- if(!isNull(sRsltcnts)){
- fMakeNode("/root/main/capm_print", "rex_cacm", "3", "개선사항", "cacm_gubun", "cacm_gubunnm", "cacm_civilaplcnts", "cacm_civilaplcntsDD", sRsltcnts, sRsltcntsDD);
- }
-
- //민원내용 출력
- exeReportPreview("RPPMC00100", "XMLSTR", "", "", "true", "", "", "", "", "", "", "grp_report");
- model.removeNodeset("/root/main/capm_print/rex_cacm");
- }
- ]]>
- </script>
- </button>
- <button id="button5" class="btn2_letter4" style="left:1122px; top:5px; width:64px; height:19px; ">
- <caption>민원내용</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sPid = model.getValue("/root/main/capm/capm_pid");
- if (isNull(sPid)) {
- messageBox("민원사항이", "I004");
- return;
- }
-
- model.setValue("/root/send/data6/pid",model.getValue("/root/main/capm/capm_pid"));
- model.setValue("/root/send/data6/civilgenrdd",model.getValue("/root/main/capm/capm_civilgenrdd"));
- model.setValue("/root/send/data6/civilseqno",model.getValue("/root/main/capm/capm_civilseqno"));
-
- modal("../../../pam/patinfomngtweb/xrw/SMPMC02800", "1","150", "150", "SMPMC02800", "/root/send/data6", "/root/hidden/capm/pop_capm");
- ]]>
- </script>
- </button>
- <button id="button15" class="btn2_letter2" visibility="visible" style="left:814px; top:5px; width:42px; height:19px; ">
- <caption>상병</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/hidden/srchdiag/selectedrdodiagkind","1");
- model.setValue("/root/hidden/srchdiag/basedd",getCurrentDate());
- model.setValue("/root/hidden/srchdiag/diagcd", "");
- model.setValue("/root/hidden/srchdiag/diagnm", "");
- model.setValue("/root/hidden/srchdiag/flag","D");
-
- modal("SPPIZ00400" ,"", "10", "10", "SPPIZ00400", "/root/hidden/srchdiag", "/root/init");
- ]]>
- </script>
- </button>
- <group id="group4" style="left:5px; top:682px; width:1183px; height:27px; ">
- <button id="btn_privacy" class="btn3_letter3" style="left:0px; top:5px; width:68px; height:22px; ">
- <caption>사생활</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //사생활보호 정보관리창 호출
- fCallPatPrivacy(model.getValue("/root/main/patinfo/patinfolist/pid"));
- ]]>
- </script>
- </button>
- <button id="button8" class="btn4_letter2" visibility="visible" style="left:997px; top:5px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/send/data6");
- var capm_pid = model.getValue("/root/main/capm/capm_pid");
- if (capm_pid == null || capm_pid == " " || capm_pid == "") {
- return false;
- }
-
- model.setValue("/root/send/data6/pid",model.getValue("/root/main/capm/capm_pid"));
- model.setValue("/root/send/data6/civilgenrdd",model.getValue("/root/main/capm/capm_civilgenrdd"));
- model.setValue("/root/send/data6/civilseqno",model.getValue("/root/main/capm/capm_civilseqno"));
-
- var rsltyn = messageBox("민원환자의 민원사항과 민원내용을","Q001");
- if (rsltyn == 6) {
- //민원내용과 민원사항을 삭제한다.
- if (submit("TRPMC00104")) {
- model.resetInstanceNode("/root/main/ptbs");
- model.resetInstanceNode("/root/main/capm");
- model.resetInstanceNode("/root/main/chosrec/chosreclist");
- model.refresh();
- }
- } else {
- return false;
- }
- ]]>
- </script>
- </button>
- <button id="button6" class="btn4_letter2" style="left:1056px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sCivilGenrDd = model.getValue("/root/main/capm/capm_civilgenrdd");
- if (isNull(sCivilGenrDd)) {
- messageBox("민원발생일자는", "I003");
- return;
- }
-
- //민원제기일자가 없으면 오늘을 기본으로 입력한다.
- var sCivilAplClamDd = model.getValue("/root/main/capm/capm_civilaplclamdd");
- if (isNull(sCivilAplClamDd)) {
- model.setValue("/root/main/capm/capm_civilaplclamdd", getCurrentDate());
- }
-
- //민원환자 존재 유무 체크
- model.resetInstanceNode("/root/send/data3");
- model.resetInstanceNode("/root/hidden/rcvflag/flag/chkcount");
- model.setValue("/root/send/data3/pid",model.getValue("/root/main/ptbs/ptbs_pid"));
- model.setValue("/root/send/data3/civilgenrdd",model.getValue("/root/main/capm/capm_civilgenrdd"));
- submit("TRPMC00103");
-
- var ichkcount = model.getValue("/root/hidden/rcvflag/flag/max_civilseqno");
- model.resetInstanceNode("/root/send/data3");
- model.resetInstanceNode("/root/send/data4");
-
- if (ichkcount == 0) {
- model.setValue("/root/main/capm/capm_chkflag","N");
- model.setValue("/root/main/capm/capm_pid",model.getValue("/root/main/ptbs/ptbs_pid"));
- model.setValue("/root/main/capm/capm_status","i");
- model.copyNode("/root/send/s_capm","/root/main/capm");
- if(submit("TXPMC00101")) {
- var result = messageBox("저장이 완료되었습니다.\n화면을 [초기화] 하시겠습니까??", "Q", "");
- if (result == 6) {
- fInitialize();
- } else {
- fBaseInfoRef();
- }
- } else {
- messageBox("저장을", "E009");
- }
- } else {
- //신규저장인지 업데이트인지 구분나누는 방법.
- if (fChangeCheck() == true) {
-
- var syn = messageBox("당일 민원환자 자료가 존재합니다. 추가로 저장을","S002","");
- if (syn == 6) {
- model.setValue("/root/main/capm/capm_chkflag","Y");
- model.setValue("/root/main/capm/capm_pid",model.getValue("/root/main/ptbs/ptbs_pid"));
- model.setValue("/root/main/capm/capm_status","i");
- copyNodeType("/root/send/s_capm","/root/main/capm","replace");
-
- if(submit("TXPMC00101")) {
- var result = messageBox("저장이 완료되었습니다.\n화면을 [초기화] 하시겠습니까??", "Q", "");
-
- if (result == 6) {
- fInitialize();
- } else {
- fBaseInfoRef();
- }
- } else {
- messageBox("저장을", "E009");
- }
- } else if (syn == 7) {
- model.setValue("/root/main/capm/capm_pid",model.getValue("/root/main/ptbs/ptbs_pid"));
- model.setValue("/root/main/capm/capm_status","u");
- copyNodeType("/root/send/s_capm","/root/main/capm","replace");
-
- if(submit("TXPMC00101")) {
- var result = messageBox("저장이 완료되었습니다.\n화면을 [초기화] 하시겠습니까??", "Q", "");
- if (result == 6) {
- fInitialize();
- } else {
- fBaseInfoRef();
- }
- } else {
- messageBox("저장을", "E009");
- }
- }
- }
- }
- ]]>
- </script>
- </button>
- <button id="button9" class="btn4_letter3" style="left:1115px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1183px; y2:0px; "/>
- </group>
- <caption id="caption12" class="cell_1" style="left:638px; top:280px; width:90px; height:23px; vertical-align:middle; ">회신일자</caption>
- <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; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if( event.keyCode == 13 ) {
- var pCurTargetObj = event.ptarget.parent;
- if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
- event.keyCode = 9;
- pCurTargetObj.dispatch("onkeydown");
- } else {
- event.keyCode = 9;
- }
- }
- event.stopPropagation();
- ]]>
- </script>
- </input>
- <output id="output1" ref="/root/main/capm/capm_civilseqno" class="output_search" style="left:731px; top:209px; width:125px; height:19px; "/>
- <input id="input5" ref="/root/main/capm/capm_patrela" navindex="3" style="left:515px; top:161px; width:120px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if( event.keyCode == 13 ){
- var pCurTargetObj = event.ptarget.parent;
- if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
- event.keyCode = 9;
- pCurTargetObj.dispatch("onkeydown");
-
- }else{
- event.keyCode = 9;
- }
- }
- event.stopPropagation();
- ]]>
- </script>
- </input>
- <input id="input12" ref="/root/main/capm/capm_zipcdseq" style="left:156px; top:185px; width:25px; height:19px; "/>
- <select1 id="cmb_atdoctid" ref="/root/main/capm/capm_atdoctid" navindex="18" appearance="minimal" style="left:90px; top:281px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/orddrid">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if( event.keyCode == 13 ) {
- var pCurTargetObj = event.ptarget.parent;
- if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
- event.keyCode = 9;
- pCurTargetObj.dispatch("onkeydown");
- } else {
- event.keyCode = 9;
- }
- }
- event.stopPropagation();
- ]]>
- </script>
- </select1>
- <output id="opt_deptcd" ref="/root/main/capm/capm_civilaplgenrdeptcd" class="output_search" visibility="hidden" style="left:735px; top:133px; width:120px; height:19px; "/>
- <output id="opt_depthngnm" ref="/root/main/capm/capm_civilaplgenrdepthngnm" class="output_search" style="left:90px; top:257px; width:95px; height:19px; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- modal("../../../pam/patinfomngtweb/xrw/SSPMC07400", "1","100", "100", "SSPMC07400", "", "");
- ]]>
- </script>
- </output>
- <!--
- <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; ">
- <choices>
- <itemset nodeset="/root/hidden/init/orddeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var scapm_deptcd = model.getValue("/root/main/capm/capm_civilaplgenrdeptcd");
- if (scapm_deptcd == null || scapm_deptcd == " " || scapm_deptcd == "") {
- cmb_atdoctid.choices.itemset.attribute("nodeset") = "/root/hidden/init/orddrid"
- model.resetInstanceNode("/root/main/capm/capm_atdoctid");
- cmb_atdoctid.refresh();
- } else {
- cmb_atdoctid.choices.itemset.attribute("nodeset") = "/root/hidden/init/orddrid[dp = '" + scapm_deptcd + "' ]";
- model.resetInstanceNode("/root/main/capm/capm_atdoctid");
- cmb_atdoctid.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if( event.keyCode == 13 ) {
- var pCurTargetObj = event.ptarget.parent;
- if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
- event.keyCode = 9;
- pCurTargetObj.dispatch("onkeydown");
- } else {
- event.keyCode = 9;
- }
- }
- event.stopPropagation();
- ]]>
- </script>
- </select1>
- -->
- <input id="ipt_civilaplernm" ref="/root/main/capm/capm_civilaplernm" class="input_default" navindex="1" style="left:90px; top:161px; width:120px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if( event.keyCode == 13 ) {
- var pCurTargetObj = event.ptarget.parent;
- if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
- event.keyCode = 9;
- pCurTargetObj.dispatch("onkeydown");
- } else {
- event.keyCode = 9;
- }
- }
- event.stopPropagation();
- ]]>
- </script>
- </input>
- <caption id="caption13" class="cell_1" style="left:417px; top:280px; width:95px; height:23px; vertical-align:middle; ">민원종결구분</caption>
- <select1 id="combo8" ref="/root/main/capm/capm_civilaplendflagcd" appearance="minimal" style="left:515px; top:281px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0046list/P0046">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <group id="grp_report" visibility="hidden" style="left:330px; top:5px; width:75px; height:15px; "/>
- <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; ">
- <choices>
- <item>
- <label>민원내용</label>
- <value>1</value>
- </item>
- <item>
- <label>민원답변</label>
- <value>2</value>
- </item>
- <item>
- <label>개선사항</label>
- <value>3</value>
- </item>
- </choices>
- </select>
- <caption id="caption29" class="cell_1" style="left:5px; top:328px; width:82px; height:47px; vertical-align:middle; ">
- <![CDATA[민원내용
- 의사전달]]>
- </caption>
- <line id="line15" class="line_3" style="x1:5px; y1:374px; x2:856px; y2:374px; "/>
- <bool id="bool1" checkvalue="Y,N" ref="/root/main/capm/capm_drdelive" style="left:90px; top:344px; width:15px; height:15px; "/>
- <caption id="caption50" style="left:108px; top:344px; width:60px; height:15px; ">의사전달</caption>
- <caption id="caption51" class="cell_1" style="left:220px; top:78px; width:65px; height:23px; vertical-align:middle; ">휴대폰</caption>
- <input id="input6" ref="/root/main/capm/capm_zipcdseq" style="left:146px; top:104px; width:25px; height:19px; "/>
- <input id="input9" ref="/root/main/capm/capm_zipcd1" class="input_default" style="left:78px; top:104px; width:30px; height:19px; "/>
- <input id="input10" ref="/root/main/capm/capm_zipcd2" class="input_default" style="left:112px; top:104px; width:30px; height:19px; "/>
- <input id="input11" ref="/root/main/capm/capm_address" class="input_default" style="left:174px; top:104px; width:211px; height:19px; "/>
- <input id="input13" ref="/root/main/capm/capm_infaddr" class="input_default" navindex="6" style="left:475px; top:104px; width:380px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if( event.keyCode == 13 ) {
- var pCurTargetObj = event.ptarget.parent;
- if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
- event.keyCode = 9;
- pCurTargetObj.dispatch("onkeydown");
- } else {
- event.keyCode = 9;
- }
- }
- event.stopPropagation();
- ]]>
- </script>
- </input>
- <caption id="caption25" class="cell_1" style="left:388px; top:102px; width:85px; height:23px; vertical-align:middle; ">하위주소</caption>
- <caption id="caption53" class="cell_1" style="left:5px; top:102px; width:70px; height:23px; vertical-align:middle; ">주소</caption>
- <caption id="caption6" class="tit_2" style="left:10px; top:389px; width:204px; height:13px; font-family:돋움; vertical-align:middle; ">내원기록</caption>
- <line id="line8" class="line_1" style="x1:5px; y1:404px; x2:1186px; y2:404px; "/>
- <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; ">
- <col ref="checkflag" type="checkbox"/>
- <col disabled="true" ref="ordtype" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0001list/P0001">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="orddd" format="yyyy-mm-dd"/>
- <col ref="dschdd" format="yyyy-mm-dd"/>
- <col ref="orddeptcd"/>
- <col ref="orddrid"/>
- <col ref="patcls"/>
- <col ref="reduamt" format="#,###" style="text-align:right; "/>
- <col ref="uncoamt" format="#,###" style="text-align:right; "/>
- <col ref="totalamt" format="#,###" style="text-align:right; "/>
- <col ref="ownbamt" format="#,###" style="text-align:right; "/>
- <col ref="payamt" format="#,###" style="text-align:right; "/>
- <col ref="nopyamt" format="#,###" style="text-align:right; "/>
- <col ref="specamt" format="#,###" style="text-align:right; "/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var irowcnt = grd_chosreclist.rows - 1;
- var itotalamt = 0;
- var iownbamt = 0;
- var ireduamt = 0;
- var iset_totalamt = 0;
- var iset_ownbamt = 0;
- var iset_reduamt = 0;
-
- for (i = 1; i <= irowcnt; i++)
- {
- var scheckflag = model.getValue("/root/main/chosrec/chosreclist["+ i +"]/checkflag");
- if (scheckflag == "true") {
- var iset_totalamt = parseInt(model.getValue("/root/main/chosrec/chosreclist["+ i +"]/totalamt"));
- var iset_ownbamt = parseInt(model.getValue("/root/main/chosrec/chosreclist["+ i +"]/ownbamt"));
- var iset_reduamt = parseInt(model.getValue("/root/main/chosrec/chosreclist["+ i +"]/reduamt"));
- itotalamt = itotalamt + iset_totalamt;
- iownbamt = iownbamt + iset_ownbamt;
- ireduamt = ireduamt + iset_reduamt;
- }
-
- }
-
- model.setValue("/root/main/capm/capm_totordamt",itotalamt); //총진료비
- model.setValue("/root/main/capm/capm_ownbamt",iownbamt); //본인부담금
- model.setValue("/root/main/capm/capm_reductamt",ireduamt); //감면액
-
- model.refresh();
-
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_chosreclist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="button1" class="icon_search" navindex="5" style="left:190px; top:257px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("../../../pam/patinfomngtweb/xrw/SSPMC07400", "1","100", "100", "SSPMC07400", "", "");
- ]]>
- </script>
- </button>
- </case>
- </switch>
- <button id="btn_prescond" class="btn_sw" group="tab" selected="true" style="left:0px; top:10px; width:86px; height:22px; ">
- <caption>민원환자현황</caption>
- <toggle case="case1" ev:event="xforms-activate"/>
- </button>
- <button id="btn_mngt" class="btn_sw" group="tab" style="left:86px; top:10px; width:99px; height:22px; ">
- <caption>개인별내역관리</caption>
- <toggle case="case2" ev:event="xforms-activate"/>
- </button>
- </group>
- <group id="group3" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption52" class="tit_1" style="left:0px; top:0px; width:100px; height:13px; font-family:돋움; vertical-align:middle; ">민원환자관리</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|