12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * Name : SMCDT00100_데이터마이닝관리
- * Summary : 고객정보마이닝 관리
- * Programmer : 최정환
- * Date Written : 2007.03.29
- * History : 2007.03.29 2008.07.01 - 사용자 요구사항에 따른 수정
- * Remark :
- -->
- <?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="">
- <main>
- <dtmntmpl>
- <tmpldefine>
- <dtmntitl/>
- <dtmnlrgcd/>
- <dtmnmdlcd/>
- <dtmnsmlcd/>
- <dtmnattruseyn/>
- <reqdeptnm/>
- <reqdeptcd/>
- <reqwritnm/>
- <reqwritid/>
- <dtmnsmminfo/>
- <dtmnlnkcond/>
- <savemode/>
- </tmpldefine>
- <humtrainfo>
- <sex/>
- <forgeryn/>
- <empyn/>
- <dethyn/>
- <educgrdecd/>
- <jobcd/>
- <religncd/>
- </humtrainfo>
- <area/>
- <agelist/>
- <chosinfo>
- <chostermbase/>
- <chosfromdd/>
- <chostodd/>
- <ordtype/>
- <wardcd/>
- <insukind/>
- <inpath/>
- </chosinfo>
- <chosordlist/>
- <snwinfo>
- </snwinfo>
- <snwlist/>
- <prcpinfo>
- <outyn/>
- </prcpinfo>
- <prcplist/>
- <testinfo>
- <testtermbase/>
- <testfromdd/>
- <testtodd/>
- </testinfo>
- <testlist/>
- <opinfo>
- <opfromdd/>
- <optodd/>
- <opflagcd/>
- <oppatflagcd/>
- </opinfo>
- <oplist/>
- <opordlist/>
- </dtmntmpl>
- <area>
- <seq/>
- <citycd>
- </citycd>
- <city/>
- <citycntyareacd/>
- <citycntyarea/>
- <blokcd/>
- <blok/>
- </area>
- <agelist/>
- <chosordlist/>
- <snwordlist/>
- <prcplist/>
- <prcpordlist/>
- <testlist/>
- <testordlist/>
- <oplist/>
- <opordlist/>
- <list>
- <dtmnexeclist/>
- </list>
- <snwlist/>
- </main>
- <send>
- <dtmnlrgcd/>
- <dtmnmdlcd/>
- <citycd/>
- <citycntyareacd/>
- <srch>
- <ordlist>
- <orddeptcd/>
- <orddeptnm/>
- <orddrid/>
- <orddrnm/>
- </ordlist>
- <perflist>
- <perfdeptcd/>
- <perfdeptnm/>
- <perfdrid/>
- <perfdrnm/>
- </perflist>
- </srch>
- </send>
- <init>
- <P0001list/>
- <P0313list/>
- <C0029list/>
- <C0039list/>
- <P0157list/>
- <M0068list/>
- <M0069list/>
- <P0008list/>
- <P0002list/>
- <M0013list/>
- <M0020list/>
- <C0042list/>
- <C0043list/>
- <C0044list/>
- <areacity>
- <city>
- <citynm/>
- <citycd/>
- </city>
- </areacity>
- <areacitycnty>
- <citycntyarea>
- <citycntyareanm/>
- <citycntyareacd/>
- </citycntyarea>
- </areacitycnty>
- <areablok>
- <blok>
- <bloknm/>
- <blokcd/>
- </blok>
- </areablok>
- <basecdlist>
- <orddeptlist>
- </orddeptlist>
- <orddrlist>
- <user>
- <usernm/>
- <userid/>
- </user>
- </orddrlist>
- <perfdrlist>
- <usercombo/>
- </perfdrlist>
- </basecdlist>
- <wardcdinfo>
- <wardcdlist/>
- </wardcdinfo>
- <diagdetlvw>P</diagdetlvw>
- <diagdetlvw1>P</diagdetlvw1>
- <diagdetlvw2>P</diagdetlvw2>
- <wardcdvw>F</wardcdvw>
- </init>
- <hidden>
- <scrnflag>D</scrnflag>
- <snwmenu>
- <menu>
- <name>행삭제</name>
- <func>snwlist_del</func>
- </menu>
- </snwmenu>
- <prcpmenu>
- <menu>
- <name>행삭제</name>
- <func>prcplist_del</func>
- </menu>
- </prcpmenu>
- <testmenu>
- <menu>
- <name>행삭제</name>
- <func>testlist_del</func>
- </menu>
- </testmenu>
- <opmenu>
- <menu>
- <name>행삭제</name>
- <func>oplist_del</func>
- </menu>
- </opmenu>
- </hidden>
- <temp>
- <areagrup>
- <citycd>
- </citycd>
- <city/>
- <citycntyareacd/>
- <citycntyarea/>
- <blokcd/>
- <blok/>
- </areagrup>
- <age>
- <agefrom/>
- <ageto/>
- </age>
- <chosord>
- <chosorddeptnm/>
- <chosorddeptcd/>
- <chosorddrnm/>
- <chosorddrid/>
- </chosord>
- <snw>
- <snwnm/>
- <snwcd/>
- </snw>
- <prcp>
- <prcpnm/>
- <prcpcd/>
- </prcp>
- <test>
- <testnm/>
- <testcd/>
- <refh/>
- <refl/>
- <judgmark/>
- </test>
- <op>
- <opnm/>
- <opcd/>
- </op>
- <ref>
- <data>
- <rgstfromdd/>
- <rgsttodd/>
- <dtmnnm/>
- <rgstnm/>
- <autexecflag/>
- <cmpnlnkyn/>
- <dtmnsmlcd/>
- </data>
- <key>
- <dtmnkey/>
- </key>
- <refmode/>
- </ref>
- <smsinfo>
- <recvrlist>
- <chk/>
- <recvrnm/>
- <recvrtelno/>
- </recvrlist>
- </smsinfo>
- <emailinfo>
- <recvrlist>
- <recvremail/>
- </recvrlist>
- </emailinfo>
- <dminfo>
- <recvrlist>
- <chk/>
- <recvrnm/>
- <recvrzipcd/>
- <recvraddr/>
- </recvrlist>
- </dminfo>
- <countnode/>
- <prcplist/>
- </temp>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <!--<submission id="TRZBC00102" method="post" mediatype="application/x-www-form-urlencoded" replace="instance"/>-->
- <submission id="TRZBC00104" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRZBC00105" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRZSU10105" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZSU10117" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRCDT00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/areacity"/>
- <submission id="TRCDT00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/areacitycnty"/>
- <submission id="TRCDT00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/areablok"/>
- <submission id="TRCDT00111" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/ref/key" replace="instance" resultref="/root/main/dtmntmpl"/>
- <submission id="TRCDT00113" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/wardcdinfo"/>
- <submission id="TXCDT00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/dtmntmpl" resultref="/root/temp/ref/key"/>
- <submission id="TRCDT00114" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srch/ordlist" resultref="/root/init/basecdlist/orddrlist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../crm/crmweb/js/CCZ001.js"/>
- <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 그리드의 초기화
- fGridInit();
- // 인스턴스 기본값 설정
- model.setValue("/root/main/dtmntmpl/tmpldefine/dtmnattruseyn","Y"); // 사용여부 "Y"
- // 지역의 시도구분을 가져온다.
- submit("TRCDT00101");
- // 병동코드를 가져온다.
- submit("TRCDT00113");
- // 공통코드를 호출하여 자료(진료형태,성별,외래여부, 탬플릿사용여부, 종교, 직업, 학력, 보험유형, 입원경로, 수술구분, 수술환자구분, 데이터마이닝연결조건, 내원기간기준일, 검사기간기준일)를 가져온다
- zbcfGetCodeList( new Array("P0001", "P0313", "C0029", "C0039", "P0157", "M0068", "M0069", "P0008", "P0002", "M0013", "M0020", "C0042", "C0043", "C0044"),
- new Array("/root/init/P0001list","/root/init/P0313list","/root/init/C0029list","/root/init/C0039list","/root/init/P0157list","/root/init/M0068list","/root/init/M0069list","/root/init/P0008list","/root/init/P0002list","/root/init/M0013list","/root/init/M0020list","/root/init/C0042list","/root/init/C0043list","/root/init/C0044list"));
-
- // 진료과 검색
- var instcd = getUserInfo("dutplceinstcd");
- var standard_yn = "orduseyn";
- var ord_deptflag = "D"; // 외래진료과
- var rslt_ref = "/root/init/basecdlist/orddeptlist";
- zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref);
- model.copyNode("/root/send/srch/ordlist/orddeptcd", "/root/send/srch/perflist/perfdeptcd")
-
- addComboItemAll( "cmb_sex");
- addComboItemAll( "cmb_religncd");
- addComboItemAll( "cmb_educgrdecd");
- addComboItemAll( "cmb_jobcd");
- addComboItemAll( "cmb_ordtype");
- addComboItemAll( "cmb_inpath");
- addComboItemAll( "cmb_insukind");
- addComboItemAll( "cmb_opflagcd");
- addComboItemAll( "cmb_oppatflagcd");
-
- // 조회 (데이터마이닝 목록조회에서 넘어온 dtmnkey값으로 내용을 조회)
- var dtmnkey = model.getValue("/root/temp/ref/key/dtmnkey");
- var refmode = model.getValue("/root/temp/ref/refmode");
- if ( dtmnkey != "" ){
- fDtmnInfoSearch();
- } else {
- // 등록자 세션정보에서 가져오기
- var empnm = getUserInfo("usernm");
- var empid = getUserInfo("userid");
- model.makeValue("/root/main/dtmntmpl/tmpldefine/reqwritnm",empnm);
- model.makeValue("/root/main/dtmntmpl/tmpldefine/reqwritid",empid);
-
-
- // 입력모드로 표시
- model.setValue("/root/main/dtmntmpl/tmpldefine/savemode","I");
- }
- model.refresh();
- fCheckAuth();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- // 권한체크
- function fCheckAuth() {
- if (!checkAuth("x")) {
- //btn_dtmnsave.disabled=true;
- //btn_manlexec.disabled=true;
- }
- if (!checkAuth("p")) {
- //btn_saveexcel.disabled=true;
- }
- }
-
- function fDtmnInfoSearch() {
- submit("TRCDT00111");
-
- // 수정모드로 표시
- model.setValue("/root/main/dtmntmpl/tmpldefine/savemode","U");
-
- // 조회 페이지로 이동시 기존 검색조건 셋팅을 위하여 조회모드를 변경
- model.setValue("/root/temp/ref/refmode","C");
-
- // 인스턴스 생성 (이미 존재하는 Node 생성 안함.)
- // 인적정보
- model.makeNode( "/root/main/dtmntmpl/humtrainfo/sex" );
- model.makeNode( "/root/main/dtmntmpl/humtrainfo/forgeryn" );
- model.makeNode( "/root/main/dtmntmpl/humtrainfo/empyn" );
- model.makeNode( "/root/main/dtmntmpl/humtrainfo/dethyn" );
- model.makeNode( "/root/main/dtmntmpl/humtrainfo/educgrdecd" );
- model.makeNode( "/root/main/dtmntmpl/humtrainfo/jobcd" );
- model.makeNode( "/root/main/dtmntmpl/humtrainfo/religncd" );
-
- // 내원정보
- model.makeNode( "/root/main/dtmntmpl/chosinfo/chostermbase" );
- model.makeNode( "/root/main/dtmntmpl/chosinfo/chosfromdd" );
- model.makeNode( "/root/main/dtmntmpl/chosinfo/chostodd" );
- model.makeNode( "/root/main/dtmntmpl/chosinfo/ordtype" );
- model.makeNode( "/root/main/dtmntmpl/chosinfo/wardcd" );
- model.makeNode( "/root/main/dtmntmpl/chosinfo/insukind" );
- model.makeNode( "/root/main/dtmntmpl/chosinfo/inpath" );
-
- // 상병정보(2008-07-05 : 사용자 요구사항에 따라 상병기간등 삭제되었으나 추후 확장성을 위하여 메인 인스턴스는 제거안함.)
-
- // 처방정보
- model.makeNode( "/root/main/dtmntmpl/prcpinfo/outyn" );
-
- // 검사정보
- model.makeNode( "/root/main/dtmntmpl/testinfo/testtermbase" );
- model.makeNode( "/root/main/dtmntmpl/testinfo/testfromdd" );
- model.makeNode( "/root/main/dtmntmpl/testinfo/testtodd" );
-
- // 수술정보
- model.makeNode( "/root/main/dtmntmpl/opinfo/opfromdd" );
- model.makeNode( "/root/main/dtmntmpl/opinfo/optodd" );
- model.makeNode( "/root/main/dtmntmpl/opinfo/opflagcd" );
- model.makeNode( "/root/main/dtmntmpl/opinfo/oppatflagcd" );
-
- // 병동코드를 해당 트리에 뿌려준다.
- // var wardcd = model.getvalue("/root/main/dtmntmpl/chosinfo/wardcd");
- // var valuesArray = wardcd.split(";");
- // for (var i = 0; i < valuesArray.length; i++) {
- // for(var j=0; j < trv_wardcd.length; j++) {
- // if(trv_wardcd.item(j).value == valuesArray[i]) {
- // trv_wardcd.select(j);
- // var item = trv_wardcd.item(j);
- // item.checked = true;
- // }
- // }
- // }
-
- //코드에서''이부분 제거
- var str = model.getValue("/root/main/dtmntmpl/chosinfo/wardcd");
- var original = "'";
- var replacement = "";
- var clscdlnk = "";
- clscdlnk = fGetReplaceValue(str, original, replacement);
-
- fGetSrcTree(clscdlnk, trv_wardcd);
- }
-
- function fDiagUpdate() {
- var diagNode = "/root/main/snwlist";
- var status = model.getValue ( diagNode + "[" + grd_snw.row+ "]/status" );
- if (status=="-") {
- model.setValue ( diagNode + "[" + grd_snw.row+ "]/status", "U" );
- }
- model.refresh();
- }
-
- function fGetSrcTree(srcCd, srcTree){
- var valuesArray = srcCd.split(",");
- for (var i = 0; i < valuesArray.length; i++) {
- for(var j=0; j < srcTree.length; j++) {
- if(srcTree.item(j).value == valuesArray[i]) {
- srcTree.select(j);
- var item = srcTree.item(j);
- item.checked = true;
- }
- }
- }
- }
-
- // 그리드 초기화
- function fGridInit() {
- // 인적정보중 그리드의 col을 초기화 시켜준다.
- model.removenodeset("/root/main/area"); // 지역
- model.removenodeset("/root/main/agelist"); // 연령
-
- // 내원정보중 그리드의 col을 초기화 시켜준다.
- model.removenodeset("/root/main/chosordlist"); // 진료과,진료의
-
- // 상병정보중 그리드의 col을 초기화 시켜준다.
- model.removenodeset("/root/main/snwlist"); // 상병
-
- // 처방정보중 그리드의 col을 초기화 시켜준다.
- model.removenodeset("/root/main/prcplist"); // 처방
-
- // 검사정보중 그리드의 col을 초기화 시켜준다.
- model.removenodeset("/root/main/testlist"); // 검사
-
- // 수술정보중 그리드의 col을 초기화 시켜준다.
- model.removenodeset("/root/main/oplist"); // 수술
- model.removenodeset("/root/main/opordlist"); // 수술과.집도의
-
- }
-
- // 상병검색 팝업창 호출
- function fSnwCodeList(receive_snwcd_path, receive_snwnm_path){
- setParameter("receive_snwcd_path", receive_snwcd_path);
- setParameter("receive_snwnm_path", receive_snwnm_path);
- modal("SPCDT00600");
- clearParameter("receive_snwcd_path");
- clearParameter("receive_snwnm_path");
- }
-
- // 처방검색 팝업창 호출
- function fPrcpCodeList(receive_prcplist_path){
- setParameter("receive_prcplist_path", receive_prcplist_path);
- //setParameter("receive_prcpnm_path", receive_prcpnm_path);
- modal("SPCDT00700");
- clearParameter("receive_prcplist_path");
- //clearParameter("receive_prcpnm_path");
- }
-
- // 검사검색 팝업창 호출
- function fTestCodeList(standard, search_term, receive_testcd_path, receive_testnm_path){
- setParameter("standard", standard);
- setParameter("search_term", search_term);
- setParameter("receive_testcd_path", receive_testcd_path);
- setParameter("receive_testnm_path", receive_testnm_path);
- modal("SPCDT00800");
- clearParameter("standard");
- clearParameter("search_term");
- clearParameter("receive_testcd_path");
- clearParameter("receive_testnm_path");
- }
-
- // 수술검색 팝업창 호출
- function fOpCodeList(standard, search_term, receive_opcd_path, receive_opnm_path){
- setParameter("standard", standard);
- setParameter("search_term", search_term);
- setParameter("receive_opcd_path", receive_opcd_path);
- setParameter("receive_opnm_path", receive_opnm_path);
- modal("SPCDT00900");
- clearParameter("standard");
- clearParameter("search_term");
- clearParameter("receive_opcd_path");
- clearParameter("receive_opnm_path");
- }
-
- // 데이터마이닝 화면 초기화
- function fDtmnCD(){
- var sMAIN_PATH = "/root/main";
- model.resetInstanceNode(sMAIN_PATH);
- model.refresh();
- }
- // 그룹관리 팝업창 호출
- function fGrupMngt(){
- modal("SPCDT00100");
- }
-
- //----------------------------------//
- //value 변환 진료과 분류 //
- //(aa;bb;cc를 'aa','bb','cc'로 바꿈)//
- //----------------------------------//
- function fGetChangeValue(srcstr){
- var rtnstr = "'";
- var i=0;
- while( srcstr.charAt(i) != "" ) {
- if( srcstr.charAt(i)!=';') {
- rtnstr += srcstr.charAt(i);
- i++;
- }else{
- rtnstr +="','"
- i++;
- }
- }
- rtnstr +="'"
- return rtnstr;
- }
-
- //--------------------------------------------------------//
- // str 중 특정 문자열을 대체 문자열로 바꾸어서 반환한다. //
- //--------------------------------------------------------//
- function fGetReplaceValue(str, original, replacement) {
- var result = "";
- while(str.indexOf(original) != -1) {
- if (str.indexOf(original) > 0){
- result = result + str.substring(0, str.indexOf(original)) + replacement;
- }else{
- result = result + replacement;
- }
- str = str.substring(str.indexOf(original) + original.length, str.length);
-
- }
- return result + str;
- }
-
- // 데이터마이닝 그룹관리의 변경된 내용을 새로 적용시켜준다.
- /*
- function fDtmnLrg() {
- model.removenodeset("/root/init/dtmnlrg/dtmnlrggrup");
- model.removenodeset("/root/init/dtmnmdl/dtmnmdlgrup");
- model.removenodeset("/root/init/dtmnsml/dtmnsmlgrup");
- model.resetInstanceNode("/root/main/dtmntmpl/tmpldefine/dtmnlrgcd");
- model.resetInstanceNode("/root/main/dtmntmpl/tmpldefine/dtmnmdlcd");
- model.resetInstanceNode("/root/main/dtmntmpl/tmpldefine/dtmnsmlcd");
- submit("TRCDT00104");
- }
- */
-
- function fCheckDtmn() {
-
- var dtmnlnkcond = model.getValue("/root/main/dtmntmpl/tmpldefine/dtmnlnkcond");
- var dtmnlrgcd = model.getValue("/root/main/dtmntmpl/tmpldefine/dtmnlrgcd");
- var dtmnmdlcd = model.getValue("/root/main/dtmntmpl/tmpldefine/dtmnmdlcd");
- var dtmnsmlcd = model.getValue("/root/main/dtmntmpl/tmpldefine/dtmnsmlcd");
-
- if(dtmnlrgcd == ""){
- messageBox("고객정보마이닝 대분류가 선택 되지", "E007");
- return false;
- }
- if(dtmnmdlcd == ""){
- messageBox("고객정보마이닝 중분류가 선택 되지", "E007");
- return false;
- }
- if(dtmnsmlcd == ""){
- messageBox("고객정보마이닝 소분류가 선택 되지", "E007");
- return false;
- }
- if(dtmnlnkcond == ""){
- messageBox("고객정보마이닝 연결조건이 선택 되지", "E007");
- return false;
- }
-
- // 내원정보
- var chostermbase = model.getValue("/root/main/dtmntmpl/chosinfo/chostermbase");
- var chosfromdd = model.getValue("/root/main/dtmntmpl/chosinfo/chosfromdd");
- var chostodd = model.getValue("/root/main/dtmntmpl/chosinfo/chostodd");
-
- // 상병정보
- var snwcd = model.getValue("/root/main/snwlist/snwcd");
-
- // 처방정보
- var prcpcd = model.getValue("/root/main/prcplist/prcpcd");
-
- // 검사정보
- var testtermbase = model.getValue("/root/main/dtmntmpl/testinfo/testtermbase");
- var testfromdd = model.getValue("/root/main/dtmntmpl/testinfo/testfromdd");
- var testtodd = model.getValue("/root/main/dtmntmpl/testinfo/testtodd");
- var testcd = model.getValue("/root/main/testlist/testcd");
-
- // 수술정보
- var opfromdd = model.getValue("/root/main/dtmntmpl/opinfo/opfromdd");
- var optodd = model.getValue("/root/main/dtmntmpl/opinfo/optodd");
- var opcd = model.getValue("/root/main/oplist/opcd");
-
-
- if (dtmnlnkcond == "01") {
- if (chostermbase == "") {
- messageBox("내원기간기준일을 ","C001");
- } else if (chosfromdd.length < 8) {
- messageBox("내원일자(시작)를 ","C001");
- } else if (chostodd.length < 8) {
- messageBox("내원일자(끝)를 ","C001");
- } else if(chosfromdd > chostodd){
- messageBox("내원일자(시작)와 내원일자(끝)를 올바르게", "C001");
- } else {
- return true;
- }
- } else if (dtmnlnkcond == "02") {
- if (chostermbase == "") {
- messageBox("내원기간기준일을 ","C001");
- } else if (chosfromdd.length < 8) {
- messageBox("내원일자(시작)를 ","C001");
- } else if (chostodd.length < 8) {
- messageBox("내원일자(끝)를 ","C001");
- } else if(chosfromdd > chostodd){
- messageBox("내원일자(시작)와 내원일자(끝)를 올바르게", "C001");
- } else if (snwcd == "") {
- messageBox("상병을 ","C001");
- } else {
- return true;
- }
- } else if (dtmnlnkcond == "03") {
- if (chostermbase == "") {
- messageBox("내원기간기준일을 ","C001");
- } else if (chosfromdd.length < 8) {
- messageBox("내원일자(시작)를 ","C001");
- } else if (chostodd.length < 8) {
- messageBox("내원일자(끝)를 ","C001");
- } else if(chosfromdd > chostodd){
- messageBox("내원일자(시작)와 내원일자(끝)를 올바르게", "C001");
- } else if (prcpcd == "") {
- messageBox("처방을 ","C001");
- } else {
- return true;
- }
- } else if (dtmnlnkcond == "04") {
- if (chostermbase == "") {
- messageBox("내원기간기준일을 ","C001");
- } else if (chosfromdd.length < 8) {
- messageBox("내원일자(시작)를 ","C001");
- } else if (chostodd.length < 8) {
- messageBox("내원일자(끝)를 ","C001");
- } else if(chosfromdd > chostodd){
- messageBox("내원일자(시작)와 내원일자(끝)를 올바르게", "C001");
- } else if (snwcd == "") {
- messageBox("상병을 ","C001");
- } else if (prcpcd == "") {
- messageBox("처방을 ","C001");
- } else {
- return true;
- }
- } else if (dtmnlnkcond == "05") {
- if (opfromdd.length < 8) {
- messageBox("수술일자(시작)를 ","C001");
- } else if (optodd.length < 8) {
- messageBox("수술일자(끝)를 ","C001");
- } else if(opfromdd > optodd){
- messageBox("수술일자(시작)와 수술일자(끝)를 올바르게", "C001");
- //} else if (opcd == "") {
- // messageBox("수술을 ","C001");
- } else {
- return true;
- }
- } else if (dtmnlnkcond == "06") {
- if (chostermbase == "") {
- messageBox("내원기간기준일을 ","C001");
- } else if (chosfromdd.length < 8) {
- messageBox("내원일자(시작)를 ","C001");
- } else if (chostodd.length < 8) {
- messageBox("내원일자(끝)를 ","C001");
- } else if(chosfromdd > chostodd){
- messageBox("내원일자(시작)와 내원일자(끝)를 올바르게", "C001");
- } else if (opfromdd.length < 8) {
- messageBox("수술일자(시작)를 ","C001");
- } else if (optodd.length < 8) {
- messageBox("수술일자(끝)를 ","C001");
- } else if(opfromdd > optodd){
- messageBox("수술일자(시작)와 수술일자(끝)를 올바르게", "C001");
- //} else if (opcd == "") {
- // messageBox("수술을 ","C001");
- } else {
- return true;
- }
- } else if (dtmnlnkcond == "07") {
- if (chostermbase == "") {
- messageBox("내원기간기준일을 ","C001");
- } else if (chosfromdd.length < 8) {
- messageBox("내원일자(시작)를 ","C001");
- } else if (chostodd.length < 8) {
- messageBox("내원일자(끝)를 ","C001");
- } else if(chosfromdd > chostodd){
- messageBox("내원일자(시작)와 내원일자(끝)를 올바르게", "C001");
- } else if (snwcd == "") {
- messageBox("상병을 ","C001");
- } else if (opfromdd.length < 8) {
- messageBox("수술일자(시작)를 ","C001");
- } else if (optodd.length < 8) {
- messageBox("수술일자(끝)를 ","C001");
- } else if(opfromdd > optodd){
- messageBox("수술일자(시작)와 수술일자(끝)를 올바르게", "C001");
- //} else if (opcd == "") {
- // messageBox("수술을 ","C001");
- } else {
- return true;
- }
- } else if (dtmnlnkcond == "08") {
- if (chostermbase == "") {
- messageBox("내원기간기준일을 ","C001");
- } else if (chosfromdd.length < 8) {
- messageBox("내원일자(시작)를 ","C001");
- } else if (chostodd.length < 8) {
- messageBox("내원일자(끝)를 ","C001");
- } else if(chosfromdd > chostodd){
- messageBox("내원일자(시작)와 내원일자(끝)를 올바르게", "C001");
- } else if (prcpcd == "") {
- messageBox("처방을 ","C001");
- } else if (opfromdd.length < 8) {
- messageBox("수술일자(시작)를 ","C001");
- } else if (optodd.length < 8) {
- messageBox("수술일자(끝)를 ","C001");
- } else if(opfromdd > optodd){
- messageBox("수술일자(시작)와 수술일자(끝)를 올바르게", "C001");
- //} else if (opcd == "") {
- // messageBox("수술을 ","C001");
- } else {
- return true;
- }
- } else if (dtmnlnkcond == "09") {
- if (testtermbase == "") {
- messageBox("검사기간기준일을 ","C001");
- } else if (testfromdd.length < 8) {
- messageBox("검사일자(시작)를 ","C001");
- } else if (testtodd.length < 8) {
- messageBox("검사일자(끝)를 ","C001");
- } else if(chosfromdd > chostodd){
- messageBox("검사일자(시작)와 검사일자(끝)를 올바르게", "C001");
- } else if (testcd == "") {
- messageBox("검사를 ","C001");
- } else {
- return true;
- }
- } else if (dtmnlnkcond == "10") {
- if (chostermbase == "") {
- messageBox("내원기간기준일을 ","C001");
- } else if (chosfromdd.length < 8) {
- messageBox("내원일자(시작)를 ","C001");
- } else if (chostodd.length < 8) {
- messageBox("내원일자(끝)를 ","C001");
- } else if(chosfromdd > chostodd){
- messageBox("내원일자(시작)와 내원일자(끝)를 올바르게", "C001");
- } else if (testtermbase == "") {
- messageBox("검사기간기준일을 ","C001");
- } else if (testfromdd.length < 8) {
- messageBox("검사일자(시작)를 ","C001");
- } else if (testtodd.length < 8) {
- messageBox("검사일자(끝)를 ","C001");
- } else if(chosfromdd > chostodd){
- messageBox("검사일자(시작)와 검사일자(끝)를 올바르게", "C001");
- } else if (testcd == "") {
- messageBox("검사를 ","C001");
- } else {
- return true;
- }
- } else if (dtmnlnkcond == "11") {
- if (chostermbase == "") {
- messageBox("내원기간기준일을 ","C001");
- } else if (chosfromdd.length < 8) {
- messageBox("내원일자(시작)를 ","C001");
- } else if (chostodd.length < 8) {
- messageBox("내원일자(끝)를 ","C001");
- } else if(chosfromdd > chostodd){
- messageBox("내원일자(시작)와 내원일자(끝)를 올바르게", "C001");
- } else if (snwcd == "") {
- messageBox("상병을 ","C001");
- } else if (testtermbase == "") {
- messageBox("검사기간기준일을 ","C001");
- } else if (testfromdd.length < 8) {
- messageBox("검사일자(시작)를 ","C001");
- } else if (testtodd.length < 8) {
- messageBox("검사일자(끝)를 ","C001");
- } else if(chosfromdd > chostodd){
- messageBox("검사일자(시작)와 검사일자(끝)를 올바르게", "C001");
- } else if (testcd == "") {
- messageBox("검사를 ","C001");
- } else {
- return true;
- }
- } else if (dtmnlnkcond == "12") {
- if (chostermbase == "") {
- messageBox("내원기간기준일을 ","C001");
- } else if (chosfromdd.length < 8) {
- messageBox("내원일자(시작)를 ","C001");
- } else if (chostodd.length < 8) {
- messageBox("내원일자(끝)를 ","C001");
- } else if(chosfromdd > chostodd){
- messageBox("내원일자(시작)와 내원일자(끝)를 올바르게", "C001");
- } else if (prcpcd == "") {
- messageBox("처방을 ","C001");
- } else if (testtermbase == "") {
- messageBox("검사기간기준일을 ","C001");
- } else if (testfromdd.length < 8) {
- messageBox("검사일자(시작)를 ","C001");
- } else if (testtodd.length < 8) {
- messageBox("검사일자(끝)를 ","C001");
- } else if(chosfromdd > chostodd){
- messageBox("검사일자(시작)와 검사일자(끝)를 올바르게", "C001");
- } else if (testcd == "") {
- messageBox("검사를 ","C001");
- } else {
- return true;
- }
- } else if (dtmnlnkcond == "13") {
- if (chostermbase == "") {
- messageBox("내원기간기준일을 ","C001");
- } else if (chosfromdd.length < 8) {
- messageBox("내원일자(시작)를 ","C001");
- } else if (chostodd.length < 8) {
- messageBox("내원일자(끝)를 ","C001");
- } else if(chosfromdd > chostodd){
- messageBox("내원일자(시작)와 내원일자(끝)를 올바르게", "C001");
- } else if (testtermbase == "") {
- messageBox("검사기간기준일을 ","C001");
- } else if (testfromdd.length < 8) {
- messageBox("검사일자(시작)를 ","C001");
- } else if (testtodd.length < 8) {
- messageBox("검사일자(끝)를 ","C001");
- } else if(chosfromdd > chostodd){
- messageBox("검사일자(시작)와 검사일자(끝)를 올바르게", "C001");
- } else if (testcd == "") {
- messageBox("검사를 ","C001");
- } else if (opfromdd.length < 8) {
- messageBox("수술일자(시작)를 ","C001");
- } else if (optodd.length < 8) {
- messageBox("수술일자(끝)를 ","C001");
- } else if(opfromdd > optodd){
- messageBox("수술일자(시작)와 수술일자(끝)를 올바르게", "C001");
- //} else if (opcd == "") {
- // messageBox("수술을 ","C001");
- } else {
- return true;
- }
- } else {
- return true;
- }
- }
-
- function fSaveDtmn(savemode) {
- // 필수입력 체크
- if (!fCheckDtmn()) return;
- var dtmntitl = model.getValue("/root/main/dtmntmpl/tmpldefine/dtmntitl");
- var blok = model.getValue("/root/temp/areagrup/blok");
-
- if(isRequiredControls("ipt_dtmntitl")) {
- messageBox("모든 필수값이 입력이","I002");
- //} else {
- // 저장시 그리드값을 인스턴스로 생성
- var updt_area_lnk = getGridUpdateData(grd_area);
- if (updt_area_lnk != "") {
- model.makeValue("/root/main/dtmntmpl/area", grd_area.getUpdateData()); // 지역
- }
- var updt_age_lnk = getGridUpdateData(grd_age);
- if (updt_age_lnk != "") {
- model.makeValue("/root/main/dtmntmpl/agelist", grd_age.getUpdateData()); // 연령
- }
- var updt_chosord_lnk = getGridUpdateData(grd_chosord);
- if (updt_chosord_lnk != "") {
- model.makeValue("/root/main/dtmntmpl/chosordlist", grd_chosord.getUpdateData()); // 진료과/진료의(내원)
- }
-
- // 진단그리드 내용을 VO형태로 구성
-
- if (grd_snw.rows > 0 ) {
-
- var send_status = new Array(grd_snw.rows);
- var send_dtmnkey = new Array(grd_snw.rows);
- var send_seq = new Array(grd_snw.rows);
- var send_diagkindcd = new Array(grd_snw.rows);
- var send_diagkindcdflag = new Array(grd_snw.rows);
- var send_snwcd = new Array(grd_snw.rows);
- var send_snwnm = new Array(grd_snw.rows);
- var sColSep = "▦";
- var sRowSep = "▩";
- var send_data = "m" + sColSep + "seq" + sColSep + "dtmnkey" + sColSep + "diagkindcd" + sColSep + "diagkindcdflag" + sColSep + "snwcd" + sColSep + "snwnm" + sRowSep; //타이틀 map file 등에서 사용
-
-
- for (var i=1; i<grd_snw.rows; i++) {
- send_status[i] = grd_snw.valueMatrix(i, grd_snw.colRef("status")); // 상태값(I,U,D)
- send_seq[i] = grd_snw.valueMatrix(i, grd_snw.colRef("seq")); // 순서
- send_dtmnkey[i] = grd_snw.valueMatrix(i, grd_snw.colRef("dtmnkey")); // 데이터마이닝키
- send_diagkindcd[i] = grd_snw.valueMatrix(i, grd_snw.colRef("diagkindcd")); // 진단종류코드
- send_diagkindcdflag[i] = grd_snw.valueMatrix(i, grd_snw.colRef("diagkindcdflag")); // 진단종류코드구분
- send_snwcd[i] = grd_snw.valueMatrix(i, grd_snw.colRef("snwcd")); // 진단코드
- send_snwnm[i] = grd_snw.valueMatrix(i, grd_snw.colRef("snwnm")); // 진단명
-
- if (send_status[i] != "") {
- send_data += send_status[i] + sColSep + send_seq[i] + sColSep + send_dtmnkey[i] + sColSep + send_diagkindcd[i] + sColSep + send_diagkindcdflag[i] + sColSep + send_snwcd[i] + sColSep + send_snwnm[i] + sRowSep; // VO형태로 구성
- }
- }
- model.makeValue("/root/main/dtmntmpl/snwlist", send_data);
- }
-
- // 처방그리드 내용을 VO형태로 구성
-
- if (grd_prcp.rows > 0 ) {
-
- var send_status = new Array(grd_prcp.rows);
- var send_seq = new Array(grd_prcp.rows);
- var send_prcpcd = new Array(grd_prcp.rows);
- var send_prcpnm = new Array(grd_prcp.rows);
- var sColSep = "▦";
- var sRowSep = "▩";
- var send_data = "m" + sColSep + "seq" + sColSep + "dtmnkey" + sColSep + "prcpcd" + sColSep + "prcpnm" + sRowSep; //타이틀 map file 등에서 사용
-
- for (var i=1; i<grd_prcp.rows; i++) {
- send_status[i] = grd_prcp.valueMatrix(i, grd_prcp.colRef("status")); // 상태값(I,U,D)
- send_seq[i] = grd_prcp.valueMatrix(i, grd_prcp.colRef("seq")); // 순서
- send_dtmnkey[i] = grd_prcp.valueMatrix(i, grd_prcp.colRef("dtmnkey")); // 데이터마이닝키
- send_prcpcd[i] = grd_prcp.valueMatrix(i, grd_prcp.colRef("prcpcd")); // 처방코드
- send_prcpnm[i] = grd_prcp.valueMatrix(i, grd_prcp.colRef("prcpnm")); // 처방명
- send_data += send_status[i] + sColSep + send_seq[i] + sColSep + send_dtmnkey[i] + sColSep + send_prcpcd[i] + sColSep + send_prcpnm[i] + sRowSep; // VO형태로 구성
- }
- model.makeValue("/root/main/dtmntmpl/prcplist", send_data);
- }
-
- // 검사결과그리드 내용을 VO형태로 구성
-
- if (grd_test.rows > 0 ) {
-
- var send_status = new Array(grd_test.rows);
- var send_seq = new Array(grd_test.rows);
- var send_testcd = new Array(grd_test.rows);
- var send_testnm = new Array(grd_test.rows);
- var send_refh = new Array(grd_test.rows);
- var send_refl = new Array(grd_test.rows);
- var send_rsltunit = new Array(grd_test.rows);
- var sColSep = "▦";
- var sRowSep = "▩";
- var send_data = "m" + sColSep + "seq" + sColSep + "dtmnkey" + sColSep + "testcd" + sColSep + "testnm" + sColSep + "refh" + sColSep + "refl" + sColSep + "rsltunit" + sRowSep; //타이틀 map file 등에서 사용
-
- for (var i=1; i<grd_test.rows; i++) {
- send_status[i] = grd_test.valueMatrix(i, grd_test.colRef("status")); // 상태값(I,U,D)
- send_seq[i] = grd_test.valueMatrix(i, grd_test.colRef("seq")); // 순서
- send_dtmnkey[i] = grd_test.valueMatrix(i, grd_test.colRef("dtmnkey")); // 데이터마이닝키
- send_testcd[i] = grd_test.valueMatrix(i, grd_test.colRef("testcd")); // 검사코드
- send_testnm[i] = grd_test.valueMatrix(i, grd_test.colRef("testnm")); // 검사명
- send_refh[i] = grd_test.valueMatrix(i, grd_test.colRef("refh")); // 상한값
- send_refl[i] = grd_test.valueMatrix(i, grd_test.colRef("refl")); // 하한값
- send_rsltunit[i] = grd_test.valueMatrix(i, grd_test.colRef("rsltunit")); // 단위
- send_data += send_status[i] + sColSep + send_seq[i] + sColSep + send_dtmnkey[i] + sColSep + send_testcd[i] + sColSep + send_testnm[i] + sColSep + send_refh[i] + sColSep + send_refl[i] + sColSep + send_rsltunit[i] + sRowSep; // VO형태로 구성
- }
- model.makeValue("/root/main/dtmntmpl/testlist", send_data);
- }
- // 수술그리드 내용을 VO형태로 구성
-
- if (grd_op.rows > 0 ) {
-
- var send_status = new Array(grd_op.rows);
- var send_seq = new Array(grd_op.rows);
- var send_opcd = new Array(grd_op.rows);
- var send_opnm = new Array(grd_op.rows);
- var sColSep = "▦";
- var sRowSep = "▩";
- var send_data = "m" + sColSep + "seq" + sColSep + "dtmnkey" + sColSep + "opcd" + sColSep + "opnm" + sRowSep; //타이틀 map file 등에서 사용
-
- for (var i=1; i<grd_op.rows; i++) {
- send_status[i] = grd_op.valueMatrix(i, grd_op.colRef("status")); // 상태값(I,U,D)
- send_seq[i] = grd_op.valueMatrix(i, grd_op.colRef("seq")); // 순서
- send_dtmnkey[i] = grd_op.valueMatrix(i, grd_op.colRef("dtmnkey")); // 데이터마이닝키
- send_opcd[i] = grd_op.valueMatrix(i, grd_op.colRef("opcd")); // 수술코드
- send_opnm[i] = grd_op.valueMatrix(i, grd_op.colRef("opnm")); // 수술명
- send_data += send_status[i] + sColSep + send_seq[i] + sColSep + send_dtmnkey[i] + sColSep + send_opcd[i] + sColSep + send_opnm[i] + sRowSep; // VO형태로 구성
- }
- model.makeValue("/root/main/dtmntmpl/oplist", send_data);
- }
-
- var updt_opord_lnk = getGridUpdateData(grd_opord);
- if (updt_opord_lnk != "") {
- model.makeValue("/root/main/dtmntmpl/opordlist", grd_opord.getUpdateData()); // 수술과/집도의(내원)
- }
-
- if(submit("TXCDT00104") == true){
- // submit() 성공하면 그리드의 i,u,d 상태 제거
- grd_area.clearStatus();
- grd_age.clearStatus();
- grd_chosord.clearStatus();
- grd_snw.clearStatus();
- grd_prcp.clearStatus();
- grd_test.clearStatus();
- grd_op.clearStatus();
- grd_opord.clearStatus();
-
- messageBox("탬플릿 저장이", "I002", "");
- // 입력모드면 템플릿 저장후 수정모드로 변경과 dtmnkey값을 설정해준다.
- if (savemode == "I") {
- model.setValue("/root/main/dtmntmpl/tmpldefine/savemode","U");
- var dtmnkey = model.getValue("/root/temp/ref/key/dtmnkey");
- model.makeValue("/root/main/dtmntmpl/tmpldefine/dtmnkey", dtmnkey);
- }
- //else if (savemode == "U") {
- fGridInit(); // 그리드 초기화
- fDtmnInfoSearch();
- //}
- }
- }
- }
-
- // 데이터마이닝 수동실행
- function fDtMnExec() {
- // 필수입력 체크
- if (!fCheckDtmn()) return;
- // 그리드값을 인스턴스로 생성
- model.makeValue("/root/main/dtmntmpl/area", grd_area.getUpdateDataAll("i")); // 지역
- model.makeValue("/root/main/dtmntmpl/agelist", grd_age.getUpdateDataAll("i")); // 연령
- model.makeValue("/root/main/dtmntmpl/chosordlist", grd_chosord.getUpdateDataAll("i")); // 진료과/진료의(내원)
- model.makeValue("/root/main/dtmntmpl/snwlist", grd_snw.getUpdateDataAll("i")); // 상병
- model.makeValue("/root/main/dtmntmpl/prcplist", grd_prcp.getUpdateDataAll("i")); // 처방
- model.makeValue("/root/main/dtmntmpl/testlist", grd_test.getUpdateDataAll("i")); // 검사
- model.makeValue("/root/main/dtmntmpl/oplist", grd_op.getUpdateDataAll("i")); // 수술
- model.makeValue("/root/main/dtmntmpl/opordlist", grd_opord.getUpdateDataAll("i")); // 수술과/집도의
-
- window.load("SPCDT01000_데이터마이닝수동실행.xrw", "modal", "", "", "/root/main", "/root/main");
-
- /*
- submit("TRCDT00112");
- model.SetFocus("grd_dtmnexec");
- var grid_rows = grd_dtmnexec.rows-1;
- model.setvalue("/root/temp/countnode" , grid_rows);
- */
- // 수동실행을 위하여 그리드값을 인스턴스로 생성한걸 지워준다.
-
- model.resetInstanceNode("/root/main/dtmntmpl/area");
- model.resetInstanceNode("/root/main/dtmntmpl/agelist");
- model.resetInstanceNode("/root/main/dtmntmpl/chosordlist");
- model.resetInstanceNode("/root/main/dtmntmpl/snwlist");
- model.resetInstanceNode("/root/main/dtmntmpl/prcplist");
- model.resetInstanceNode("/root/main/dtmntmpl/testlist");
- model.resetInstanceNode("/root/main/dtmntmpl/oplist");
- model.resetInstanceNode("/root/main/dtmntmpl/opordlist");
-
- model.refresh();
- }
-
- // 상병정보 조건 삭제
- function snwlist_del() {
- var diagNode = "/root/main/snwlist";
- if ( grd_snw.valueMatrix ( grd_snw.row,0 ) == "I") {
- grd_snw.deleteRow(grd_snw.row, true);
- } else {
- model.makeValue ( diagNode + "[" + grd_snw.row + "]/status", "D" );
- grd_snw.refresh();
- }
- }
-
- // 처방정보 조건 삭제
- function prcplist_del() {
- var diagNode = "/root/main/prcplist";
- if ( grd_prcp.valueMatrix ( grd_prcp.row,0 ) == "I") {
- grd_prcp.deleteRow(grd_prcp.row, true);
- } else {
- model.makeValue ( diagNode + "[" + grd_prcp.row + "]/status", "D" );
- grd_prcp.refresh();
- }
- }
-
- // 검사정보 조건 삭제
- function testlist_del() {
- var diagNode = "/root/main/testlist";
- if ( grd_test.valueMatrix ( grd_test.row,0 ) == "I") {
- grd_test.deleteRow(grd_test.row, true);
- } else {
- model.makeValue ( diagNode + "[" + grd_test.row + "]/status", "D" );
- grd_test.refresh();
- }
- }
-
- // 수술정보 조건 삭제
- function oplist_del() {
- var diagNode = "/root/main/oplist";
- if ( grd_op.valueMatrix ( grd_op.row,0 ) == "I") {
- grd_op.deleteRow(grd_op.row, true);
- } else {
- model.makeValue ( diagNode + "[" + grd_op.row + "]/status", "D" );
- grd_op.refresh();
- }
- }
-
- function fGridSetStatus(grid, stat) {
- // 멀티업데이트 그리드의 상태값을 설정
- if (grid.rows > 0) {
- for (i = 0; i < grid.rows; i++) {
- grid.addStatus(i, stat);
- }
- }
- }
-
- function zsufGetOutCrmOrdDeptDoctorList(dutplceinstcd, dutplcecd, rslt_ref, sort_field, sort_method, basedd){
- zsufGetCrmOrdDeptDoctorList("out", dutplceinstcd, dutplcecd, rslt_ref, sort_field, sort_method, basedd);
- }
-
- function zsufGetCrmOrdDeptDoctorList(inoutflag, dutplceinstcd, dutplcecd, rslt_ref, sort_field, sort_method, basedd){
- if(dutplceinstcd==null||dutplceinstcd==""||dutplcecd==null||dutplcecd==""){
- return;
- }
-
-
- model.removenode(zsuResultRef);
- model.makenode(zsuResultRef);
- model.removenode(rslt_ref);
- model.makenode(rslt_ref);
-
-
- setParameter("dutplceinstcd", dutplceinstcd);
- setParameter("dutplcecd", dutplcecd);
- setParameter("rslt_ref", rslt_ref);
- setParameter("sortfield", sort_field);
- setParameter("sortmethod", sort_method);
- setParameter("basedd", basedd);
- setParameter("inoutflag", inoutflag);
-
- var success = submit("TRCDT00114", "false", getParameterPath(), zsuResultRef);
- copyNodeType(rslt_ref, zsuResultRef, "replace");
-
- clearParameter("dutplceinstcd");
- clearParameter("dutplcecd");
- clearParameter("rslt_ref");
- clearParameter("sortfield");
- clearParameter("sortmethod");
- clearParameter("basedd");
- clearParameter("inoutflag");
-
- model.removenode(zsuResultRef);
-
-
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1037;1,731;1,784;" style="font-family:굴림체; font-size:9pt; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:145px; height:13px; ">고객정보마이닝 관리</caption>
- </group>
- <group id="group2" style="left:224px; top:13px; width:970px; height:740px; ">
- <caption id="caption9" class="tit_2" style="left:5px; top:10px; width:111px; height:13px; ">탬플릿 정의</caption>
- <button id="btn_dtmnlist" class="btn5_letter2" style="left:928px; top:5px; width:42px; height:19px; ">
- <caption>목록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- navigate("SMCDT00200", "", "", "", "SMCDT00200", "/root/temp/ref", "/root/send");
- ]]>
- </script>
- </button>
- <line id="line2" class="line_1" style="x1:0px; y1:25px; x2:970px; y2:25px; "/>
- <line id="line3" class="line_2" style="x1:0px; y1:52px; x2:970px; y2:52px; "/>
- <caption id="cap_dtmntitl" class="cell_1" style="left:0px; top:30px; width:105px; height:23px; text-align:center; vertical-align:middle; ">탬플릿명</caption>
- <input id="ipt_dtmntitl" ref="/root/main/dtmntmpl/tmpldefine/dtmntitl" class="input_essential" navindex="1" style="left:108px; top:31px; width:259px; height:19px; "/>
- <caption id="cap_useyn" class="cell_1" style="left:370px; top:30px; width:105px; height:23px; text-align:center; vertical-align:middle; ">사용여부</caption>
- <select1 id="rdo_useyn" ref="/root/main/dtmntmpl/tmpldefine/dtmnattruseyn" navindex="2" appearance="full" cellspacing="15" cols="2" overflow="visible" style="left:478px; top:32px; width:160px; height:19px; background-color:transparent; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/C0039list/C0039">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption2" class="cell_1" style="left:640px; top:30px; width:105px; height:23px; text-align:center; vertical-align:middle; ">등록자</caption>
- <input id="ipt_writnm" ref="/root/main/dtmntmpl/tmpldefine/reqwritnm" class="input_essential" imemode="disabled" style="left:748px; top:31px; width:200px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_writsrch", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_writsrch" class="icon_search" style="left:951px; top:31px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 작성자 검색
- // if ( model.getValue("/root/main/dtmntmpl/tmpldefine/reqwritid") != "" ){
- // var search_condition = "writid";
- // var search_term = model.getValue("/root/main/dtmntmpl/tmpldefine/reqwritid");
- // } else if ( model.getValue("/root/main/dtmntmpl/tmpldefine/reqdeptcd") != "" ){
- // var search_condition = "deptcd";
- // var search_term = model.getValue("/root/main/dtmntmpl/tmpldefine/reqdeptcd");
- // } else {
- // var search_condition = "writid";
- // var search_term = model.getValue("/root/main/dtmntmpl/tmpldefine/reqwritid");
- // }
- var search_condition = "empnm";
- var search_term = model.getValue("/root/main/dtmntmpl/tmpldefine/reqwritnm");
-
- var receive_empid_path = "/root/main/dtmntmpl/tmpldefine/reqwritid";
- var receive_empnm_path = "/root/main/dtmntmpl/tmpldefine/reqwritnm";
- var receive_deptcd_path = "/root/main/dtmntmpl/tmpldefine/reqdeptcd";
- var receive_deptnm_path = "/root/main/dtmntmpl/tmpldefine/reqdeptnm";
-
- setParameter("search_condition", search_condition);
- setParameter("search_term", search_term);
- setParameter("receive_empid_path", receive_empid_path);
- setParameter("receive_empnm_path", receive_empnm_path);
- setParameter("receive_deptcd_path", receive_deptcd_path);
- setParameter("receive_deptnm_path", receive_deptnm_path);
-
- modal("SPCCM00400")
-
- clearParameter("search_condition");
- clearParameter("search_term");
- clearParameter("receive_empid_path");
- clearParameter("receive_empnm_path");
- clearParameter("receive_deptcd_path");
- clearParameter("receive_deptnm_path");
- ]]>
- </script>
- </button>
- <line id="line9" class="line_3" style="x1:0px; y1:77px; x2:970px; y2:77px; "/>
- <caption id="cap_dtmnsmminfo" class="cell_1" style="left:0px; top:54px; width:105px; height:23px; text-align:center; vertical-align:middle; ">요약정보</caption>
- <input id="ipt_dtmnsmminfo" ref="/root/main/dtmntmpl/tmpldefine/dtmnsmminfo" class="input_default" navindex="1" style="left:108px; top:56px; width:529px; height:19px; "/>
- <caption id="cap_dtmnlnkcond" class="cell_1" style="left:640px; top:54px; width:105px; height:23px; text-align:center; vertical-align:middle; ">연결조건</caption>
- <select1 id="cmb_dtmnlnkcond" ref="/root/main/dtmntmpl/tmpldefine/dtmnlnkcond" class="combo_essential" navindex="11" appearance="minimal" style="left:748px; top:54px; width:200px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/C0042list/C0042">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <line id="line1" class="line_1" style="x1:0px; y1:102px; x2:970px; y2:102px; "/>
- <caption id="caption4" class="tit_2" style="left:5px; top:87px; width:111px; height:13px; ">인적정보</caption>
- <line id="line4" class="line_2" style="x1:0px; y1:129px; x2:484px; y2:129px; "/>
- <caption id="cap_sex" class="cell_1" style="left:0px; top:107px; width:105px; height:23px; text-align:center; vertical-align:middle; ">성별</caption>
- <select1 id="cmb_sex" ref="/root/main/dtmntmpl/humtrainfo/sex" class="combo_default" navindex="13" appearance="minimal" style="left:108px; top:108px; width:131px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0313list/P0313">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select id="chk_forgeryn" ref="/root/main/dtmntmpl/humtrainfo/forgeryn" disabled="false" navindex="70" overflow="visible" appearance="full" cellspacing="15" cols="1" style="left:835px; top:87px; width:51px; height:13px; background-color:transparent; border-style:none; ">
- <choices>
- <item>
- <label>외국인</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <!--<caption id="cap_empyn" class="cell_1" style="left:242px; top:155px; width:105px; height:23px; text-align:center; vertical-align:middle; ">교직원여부</caption>
- <select id="chk_empyn" ref="/root/main/dtmntmpl/humtrainfo/empyn" disabled="false" navindex="70" overflow="visible" appearance="full" cellspacing="15" cols="1" style="left:356px; top:158px; width:51px; height:19px; background-color:transparent; border-style:none; ">
- <choices>
- <item>
- <label>교직원</label>
- <value>Y</value>
- </item>
- </choices>
- </select>-->
- <select id="chk_dethyn" ref="/root/main/dtmntmpl/humtrainfo/dethyn" disabled="false" navindex="70" overflow="visible" appearance="full" cellspacing="15" cols="1" style="left:910px; top:87px; width:51px; height:13px; background-color:transparent; border-style:none; ">
- <choices>
- <item>
- <label>사망</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <line id="line6" class="line_2" style="x1:0px; y1:153px; x2:970px; y2:153px; "/>
- <caption id="cap_educgrdecd" class="cell_1" style="left:0px; top:131px; width:105px; height:23px; text-align:center; vertical-align:middle; ">학력</caption>
- <select1 id="cmb_educgrdecd" ref="/root/main/dtmntmpl/humtrainfo/educgrdecd" class="combo_default" navindex="13" appearance="minimal" style="left:108px; top:132px; width:131px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/M0069list/M0069">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_jobcd" class="cell_1" style="left:242px; top:131px; width:105px; height:23px; text-align:center; vertical-align:middle; ">직업</caption>
- <select1 id="cmb_jobcd" ref="/root/main/dtmntmpl/humtrainfo/jobcd" class="combo_default" navindex="13" appearance="minimal" style="left:350px; top:132px; width:131px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/M0068list/M0068">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_age" class="cell_1" style="left:484px; top:106px; width:105px; height:48px; text-align:center; vertical-align:middle; ">연령</caption>
- <input id="ipt_agefrom" ref="/root/temp/age/agefrom" class="output_w" navindex="14" format="999" appearance="output" style="left:762px; top:108px; width:30px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_age_ins", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption13" style="left:795px; top:108px; width:35px; height:17px; ">세 ~</caption>
- <input id="ipt_ageto" ref="/root/temp/age/ageto" class="output_w" navindex="15" format="999" appearance="output" style="left:828px; top:108px; width:30px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_age_ins", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption14" style="left:861px; top:108px; width:20px; height:17px; ">세</caption>
- <button id="btn_age_ins" class="btn2_letter2" navindex="16" style="left:763px; top:130px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 입력한 연령을 연령그리드에 넣어준다.
- var agefrom = model.getValue("/root/temp/age/agefrom");
- var ageto = model.getValue("/root/temp/age/ageto");
- if(agefrom == ""){
- var rtn = messageBox("시작연령 ", "C001");
- return;
- } else if(ageto == "") {
- var rtn = messageBox("끝연령 ", "C001");
- return;
- } else {
-
- if(agefrom > ageto){
- var rtn = messageBox("시작연령과 끝연령을 올바르게", "C001");
- } else {
- grd_age.addRow();
- model.copyNode("/root/main/agelist[" + grd_age.row + " ]", "/root/temp/age");
- model.resetInstanceNode("/root/temp/age");
- model.refresh();
- grd_age.attribute ( "height" ) = ( grd_age.rows ) * 23;
- model.setValue( "/root/init/diagdetlvw", "M" );
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_age_del" class="btn2_letter2" navindex="17" style="left:808px; top:130px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 선택한 연령그리드를 삭제한다.
- if ((grd_age.row > 0) && (grd_age.col > 1)){
- grd_age.deleteRow(grd_age.row);
- grd_age.refresh();
- grd_age.attribute ( "height" ) = ( grd_age.rows ) * 23;
- model.setValue( "/root/init/diagdetlvw", "M" );
- } else {
- messageBox("삭제할 행이 없거나 선택하지 ","E007");
- }
-
- ]]>
- </script>
- </button>
- <line id="line7" class="line_3" style="x1:0px; y1:203px; x2:970px; y2:203px; "/>
- <caption id="cap_religncd" class="cell_1" style="left:242px; top:107px; width:105px; height:23px; text-align:center; vertical-align:middle; ">종교</caption>
- <select1 id="cmb_religncd" ref="/root/main/dtmntmpl/humtrainfo/religncd" class="combo_default" navindex="13" appearance="minimal" style="left:350px; top:109px; width:131px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0157list/P0157">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_area" class="cell_1" style="left:0px; top:155px; width:105px; height:48px; text-align:center; vertical-align:middle; ">거주지</caption>
- <select1 id="cmb_city" ref="/root/temp/areagrup/citycd" class="combo_default" navindex="18" appearance="minimal" style="left:486px; top:156px; width:96px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/areacity/city">
- <label ref="citynm"/>
- <value ref="citycd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- // 선택한 시도에 따른 시군구를 가져온다.
- // 선택한 시도의 lable값을 인스턴스에 심어준다.
- var citycd = model.getValue("/root/temp/areagrup/citycd");
- var citynm = cmb_city.label;
-
- model.setValue("/root/send/citycd",citycd);
- model.setValue("/root/temp/areagrup/city", citynm);
-
- model.removenodeset("/root/init/areacitycnty/citycntyarea");
- model.removenodeset("/root/init/areablok/blok");
- model.resetInstanceNode("/root/temp/areagrup/citycntyareacd");
- model.resetInstanceNode("/root/temp/areagrup/blokcd");
- submit("TRCDT00102");
- ]]>
- </script>
- </select1>
- <select1 id="cmb_citycntyarea" ref="/root/temp/areagrup/citycntyareacd" class="combo_default" navindex="19" appearance="minimal" style="left:585px; top:156px; width:115px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/areacitycnty/citycntyarea">
- <label ref="citycntyareanm"/>
- <value ref="citycntyareacd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- // 선택한 시군구에 대한 읍면동을 가져온다.
- // 선택한 시군구의 lable값을 인스턴스에 심어준다.
- var citycntyareacd = model.getValue("/root/temp/areagrup/citycntyareacd");
- var citycntyareanm = cmb_citycntyarea.label;
- model.setValue("/root/send/citycntyareacd",citycntyareacd);
- model.setValue("/root/temp/areagrup/citycntyarea", citycntyareanm);
- submit("TRCDT00103");
- ]]>
- </script>
- </select1>
- <select1 id="cmb_blok" ref="/root/temp/areagrup/blokcd" class="combo_default" navindex="20" appearance="minimal" style="left:703px; top:156px; width:169px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/areablok/blok">
- <label ref="bloknm"/>
- <value ref="blokcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- // 선택한 읍면동의 lable값을 인스턴스에 심어준다.
- var bloknm = cmb_blok.label;
- model.setValue("/root/temp/areagrup/blok", bloknm);
- ]]>
- </script>
- </select1>
- <button id="btn_area_ins" class="btn2_letter2" navindex="21" style="left:878px; top:157px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 선택한 지역을 지역그리드에 넣어준다.
- var citycd = model.getValue("/root/temp/areagrup/citycd");
- var city = model.getValue("/root/temp/areagrup/city");
- var citycntyareacd = model.getValue("/root/temp/areagrup/citycntyareacd");
- var citycntyarea = model.getValue("/root/temp/areagrup/citycntyarea");
- var blokcd = model.getValue("/root/temp/areagrup/blokcd");
- var blok = model.getValue("/root/temp/areagrup/blok");
- if(citycd == ""){
- var rtn = messageBox("시도를 ", "C002");
- return;
- } else {
- grd_area.additem();
- model.copyNode("/root/main/area[" + grd_area.row + " ]", "/root/temp/areagrup");
- //model.resetInstanceNode("/root/temp/citycd");
- model.resetInstanceNode("/root/temp/areagrup");
- model.refresh();
- grd_area.attribute ( "height" ) = ( grd_area.rows ) * 23;
- model.setValue( "/root/init/diagdetlvw1", "M" );
- }
- ]]>
- </script>
- </button>
- <button id="btn_area_del" class="btn2_letter2" navindex="22" style="left:923px; top:157px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 선택한 지역그리드를 삭제한다.
- if ((grd_area.row > 0) && (grd_area.col > 1)){
- grd_area.deleteRow(grd_area.row);
- grd_area.refresh();
- grd_area.attribute ( "height" ) = ( grd_area.rows ) * 23;
- model.setValue( "/root/init/diagdetlvw1", "M" );
- } else {
- messageBox("삭제할 행이 없거나 선택하지 ","E007");
- }
- ]]>
- </script>
- </button>
- <line id="line8" class="line_1" style="x1:0px; y1:228px; x2:970px; y2:228px; "/>
- <caption id="caption17" class="tit_2" style="left:5px; top:213px; width:111px; height:13px; ">내원정보</caption>
- <line id="line10" class="line_2" style="x1:0px; y1:256px; x2:970px; y2:256px; "/>
- <caption id="caption18" class="cell_1" style="left:0px; top:233px; width:105px; height:23px; text-align:center; vertical-align:middle; ">내원기간</caption>
- <select1 id="cmb_chostermbase" ref="/root/main/dtmntmpl/chosinfo/chostermbase" class="combo_default" navindex="27" appearance="minimal" style="left:108px; top:235px; width:97px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/C0043list/C0043">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- // 내원기간기준일에 따라 외래처방과 입원처방으로 분류
- var chostermbase = model.getValue("/root/main/dtmntmpl/chosinfo/chostermbase");
-
- if (chostermbase == "1" ) {
- model.setValue("/root/main/dtmntmpl/prcpinfo/outyn","O");
- cmb_inpath.disabled = true;
- ipt_wardcd.disabled =true;
- } else {
- model.setValue("/root/main/dtmntmpl/prcpinfo/outyn","I");
- cmb_inpath.disabled = false;
- ipt_wardcd.disabled =false;
- }
-
- ]]>
- </script>
- </select1>
- <input id="ipt_chosfromdd" ref="/root/main/dtmntmpl/chosinfo/chosfromdd" class="input_default" navindex="23" inputtype="date" style="left:208px; top:235px; width:85px; height:19px; "/>
- <caption id="caption27" class="search_no_b" style="left:298px; top:233px; width:12px; height:17px; ">~</caption>
- <input id="ipt_chostodd" ref="/root/main/dtmntmpl/chosinfo/chostodd" class="input_default" navindex="24" inputtype="date" style="left:313px; top:235px; width:85px; height:19px; "/>
- <line id="line11" class="line_2" style="x1:525px; y1:281px; x2:970px; y2:281px; "/>
- <caption id="caption19" class="cell_1" style="left:525px; top:233px; width:105px; height:23px; text-align:center; vertical-align:middle; ">진료형태</caption>
- <select1 id="cmb_ordtype" ref="/root/main/dtmntmpl/chosinfo/ordtype" class="combo_default" navindex="13" appearance="minimal" style="left:633px; top:235px; width:111px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0001list/P0001">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_insukind" class="cell_1" style="left:525px; top:258px; width:105px; height:23px; text-align:center; vertical-align:middle; ">보험유형</caption>
- <select1 id="cmb_insukind" ref="/root/main/dtmntmpl/chosinfo/insukind" class="combo_default" navindex="13" appearance="minimal" style="left:633px; top:260px; width:111px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0008list/P0008">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption21" class="cell_1" style="left:747px; top:233px; width:105px; height:23px; text-align:center; vertical-align:middle; ">입원경로</caption>
- <select1 id="cmb_inpath" ref="/root/main/dtmntmpl/chosinfo/inpath" class="combo_default" navindex="13" appearance="minimal" style="left:855px; top:235px; width:111px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0002list/P0002">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <line id="line12" class="line_2" style="x1:0px; y1:331px; x2:970px; y2:331px; "/>
- <caption id="caption22" class="cell_1" style="left:0px; top:258px; width:105px; height:73px; text-align:center; vertical-align:middle; ">진료과/의료진</caption>
- <select1 id="cmb_orddept" ref="/root/send/srch/ordlist/orddeptcd" class="combo_search" appearance="minimal" style="left:108px; top:258px; width:175px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/basecdlist/orddeptlist/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
-
- var deptcdnm = cmb_orddept.label;
- model.setValue("/root/send/srch/ordlist/orddeptnm", deptcdnm);
-
-
- model.resetInstanceNode("/root/init/basecdlist/orddrlist/user");
- /*
- var dutplceinstcd = getGlobalVariable("dutplceinstcd");
- var deptcd = model.getValue("/root/send/srch/ordlist/orddeptcd");
- var basedd = getCurrentDate();
- */
- submit("TRCDT00114");
-
- /*
- zsufGetOutCrmOrdDeptDoctorList(dutplceinstcd, deptcd, "/root/init/basecdlist/orddrlist", "usernm", "asc", basedd);
- */
- if (model.getValue("/root/send/srch/ordlist/orddeptcd") == "") {
- model.makeValue("/root/init/basecdlist/orddrlist", "");
- }
-
- addComboItem( "cmb_atdoct");
- model.setValue("/root/send/srch/ordlist/orddrid", "");
-
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_atdoct" ref="/root/send/srch/ordlist/orddrid" class="combo_search" appearance="minimal" style="left:286px; top:258px; width:145px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/basecdlist/orddrlist/user">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var orddrnm = cmb_atdoct.label;
- model.setValue("/root/send/srch/ordlist/orddrnm", orddrnm);
- ]]>
- </script>
- </select1>
- <!--<select1 id="cmb_medispcl" ref="/root/send/srch/ordlist/medispclid" class="combo_search" appearance="minimal" style="left:334px; top:258px; width:95px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/basecdlist/orddrlist/user">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var medispclnm = cmb_medispcl.label;
- model.setValue("/root/send/srch/ordlist/medispclnm", medispclnm);
- ]]>
- </script>
- </select1>-->
- <button id="button2" class="btn2_letter2" navindex="16" style="left:435px; top:258px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 선택한 진료과/의료진(주치의, 담당의)을 진료과/의료진그리드에 넣어준다.
- var orddept = model.getValue("/root/send/srch/ordlist/orddeptcd");
-
- if(orddept == ""){
- var rtn = messageBox("진료과를 ", "C001");
- return;
- } else {
- grd_chosord.addRow();
- model.copyNode("/root/main/chosordlist[" + grd_chosord.row + " ]", "/root/send/srch/ordlist");
- model.resetInstanceNode("/root/send/srch/ordlist");
- model.refresh();
- grd_chosord.attribute ( "height" ) = ( grd_chosord.rows ) * 23;
- model.setValue( "/root/init/diagdetlvw2", "M" );
- }
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter2" navindex="17" style="left:480px; top:258px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 선택한 진료과/의료진그리드를 삭제한다.
- if ((grd_chosord.row > 0) && (grd_chosord.col > 1)){
- grd_chosord.deleteRow(grd_chosord.row);
- grd_chosord.refresh();
- } else {
- messageBox("삭제할 행이 없거나 선택하지 ","E007");
- }
-
- ]]>
- </script>
- </button>
- <caption id="caption23" class="cell_1" style="left:525px; top:283px; width:105px; height:48px; text-align:center; vertical-align:middle; ">병동</caption>
- <input id="ipt_wardcd" ref="/root/main/dtmntmpl/chosinfo/wardcd" class="input_default" inputtype="button" style="left:633px; top:283px; width:334px; height:19px; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (model.getValue("root/init/wardcdvw") == "F") {
- trv_wardcd.visible = true;
- model.setValue("root/init/wardcdvw", "T");
- } else {
- trv_wardcd.visible = false;
- model.setValue("root/init/wardcdvw", "F");
- }
- var chckvalue = "";
- var changevalue = "";
- chckvalue = trv_wardcd.getCheckValue(";");
- if(chckvalue != ""){
- changevalue = fGetChangeValue(chckvalue);
- model.setValue("/root/main/dtmntmpl/chosinfo/wardcd",changevalue);
- model.refresh();
- }else{
- model.setValue("/root/main/dtmntmpl/chosinfo/wardcd","");
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <datagrid id="grd_age" nodeset="/root/main/agelist" class="datagrid" scroll="autovscroll" caption="^연령시작^연령끝" colwidth="0, 70, 70" dataheight="22" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="22" style="left:592px; top:107px; width:167px; height:45px; ">
- <col ref="seq" visibility="hidden"/>
- <col ref="agefrom"/>
- <col ref="ageto"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if ( model.getValue( "/root/init/diagdetlvw" ) == "P" && grd_age.rows > 2) {
- grd_age.attribute ( "height" ) = ( grd_age.rows ) * 23;
- model.setValue( "/root/init/diagdetlvw", "M" );
- } else if ( model.getValue( "/root/init/diagdetlvw" ) == "M" && grd_age.rows > 2) {
- grd_age.attribute ( "height" ) = "45";
- model.setValue( "/root/init/diagdetlvw", "P" );
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_area" nodeset="/root/main/area" class="datagrid" scroll="autovscroll" caption="^시도^시도코드^시군구^시군구코드^읍면동^읍면동코드" colwidth="0, 90, 0, 90, 0, 170, 0" dataheight="22" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="22" style="left:108px; top:154px; width:372px; height:48px; ">
- <col ref="seq" visibility="hidden"/>
- <col ref="city"/>
- <col ref="citycd" visibility="hidden"/>
- <col ref="citycntyarea"/>
- <col ref="citycntyareacd" visibility="hidden"/>
- <col ref="blok"/>
- <col ref="blokcd" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if ( model.getValue( "/root/init/diagdetlvw1" ) == "P" && grd_area.rows > 1 ) {
- grd_area.attribute ( "height" ) = ( grd_area.rows ) * 23;
- model.setValue( "/root/init/diagdetlvw1", "M" );
- } else if ( model.getValue( "/root/init/diagdetlvw1" ) == "M") {
- grd_area.attribute ( "height" ) = "45";
- model.setValue( "/root/init/diagdetlvw1", "P" );
- }
- ]]>
- </script>
- </datagrid>
- <line id="line13" class="line_3" style="x1:0px; y1:431px; x2:970px; y2:431px; "/>
- <caption id="caption24" class="cell_1" style="left:0px; top:333px; width:105px; height:98px; text-align:center; vertical-align:middle; ">진단명</caption>
- <!--<datagrid id="grd_snw" nodeset="/root/main/snwlist" class="datagrid" caption="^R/O^주^진단코드^진단명" colwidth="0, 30, 30, 70, 250" dataheight="23" defaultrows="0" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" tooltip="true" style="left:108px; top:333px; width:412px; height:97px; ">
- <col ref="seq" visibility="hidden"/>
- <col checkvalue="Y,N" ref="diagkindcd" type="checkbox"/>
- <col checkvalue="Y,N" ref="diagkindcdflag" type="checkbox"/>
- <col ref="snwcd"/>
- <col ref="snwnm"/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if(event.button == 3){
- if(grd_snw.isCell(event.target) && grd_snw.mouseRow >= grd_snw.fixedrows){
- window.setPopupMenu(true, "/root/hidden/snwmenu/menu", "name", "func", false);
- }else{
- window.setPopupMenu(false);
- }
- }
- ]]>
- </script>
- </datagrid>-->
- <datagrid id="grd_snw" nodeset="/root/main/snwlist" class="datagrid" caption="^^^R/O^주^진단코드^진단명" colwidth="30, 0, 0, 30, 30, 70, 220" dataheight="23" defaultrows="0" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="23" tooltip="true" style="left:108px; top:333px; width:412px; height:97px; ">
- <col disabled="true" ref="status" type="combo" style="text-align:center; focus-rect:visible; ">
- <choices>
- <item>
- <label>신규</label>
- <value>I</value>
- </item>
- <item>
- <label>삭제</label>
- <value>D</value>
- </item>
- <item>
- <label>수정</label>
- <value>U</value>
- </item>
- </choices>
- </col>
- <col ref="seq" visibility="hidden"/>
- <col ref="dtmnkey" visibility="hidden"/>
- <col checkvalue="Y,N" ref="diagkindcd" type="checkbox"/>
- <col checkvalue="Y,N" ref="diagkindcdflag" type="checkbox"/>
- <col ref="snwcd"/>
- <col ref="snwnm"/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if(event.button == 3){
- if(grd_snw.isCell(event.target) && grd_snw.mouseRow >= grd_snw.fixedrows){
- window.setPopupMenu(true, "/root/hidden/snwmenu/menu", "name", "func", false);
- }else{
- window.setPopupMenu(false);
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var diagNode = "/root/main/snwlist";
- if ( grd_snw.valueMatrix ( grd_snw.row,0 ) != "I") {
- model.makeValue ( diagNode + "[" + grd_snw.row + "]/status", "U" );
- }
- model.refresh();
- // fDiagUpdate();
- ]]>
- </script>
- </datagrid>
- <button id="btn_snwsrch" class="icon_search" navindex="35" style="left:112px; top:337px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // 상병검색
- //var col = grd_snw.col;
- //var row = grd_snw.row;
-
- //var receive_snwnm_path = "/root/main/snwlist["+row+"]/snwnm";
- //var receive_snwcd_path = "/root/main/snwlist["+row+"]/snwcd";
- //fSnwCodeList(receive_snwcd_path, receive_snwnm_path);
- var receive_snw_path = "root/main/snwlist";
- fSnwCodeList(receive_snw_path);
- ]]>
- </script>
- </button>
- <datagrid id="grd_chosord" nodeset="/root/main/chosordlist" class="datagrid" scroll="autovscroll" caption="^진료과^진료과코드^진료의^진료의ID" colwidth="0, 203, 0, 150, 0" dataheight="22" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="22" style="left:108px; top:283px; width:412px; height:48px; ">
- <col ref="seq" visibility="hidden"/>
- <col ref="orddeptnm"/>
- <col ref="orddeptcd" visibility="hidden"/>
- <col ref="orddrnm"/>
- <col ref="orddrid" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if ( model.getValue( "/root/init/diagdetlvw2" ) == "P" && grd_chosord.rows > 2) {
- grd_chosord.attribute ( "height" ) = ( grd_chosord.rows ) * 23;
- model.setValue( "/root/init/diagdetlvw2", "M" );
- } else if ( model.getValue( "/root/init/diagdetlvw2" ) == "M" && grd_chosord.rows > 2) {
- grd_chosord.attribute ( "height" ) = "45";
- model.setValue( "/root/init/diagdetlvw2", "P" );
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption25" class="cell_1" style="left:525px; top:333px; width:105px; height:98px; text-align:center; vertical-align:middle; ">처방정보</caption>
- <datagrid id="grd_prcp" nodeset="/root/main/prcplist" class="datagrid" caption="^^처방코드^처방명" colwidth="30,0,60,210" dataheight="23" defaultrows="0" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="23" tooltip="true" style="left:633px; top:333px; width:334px; height:97px; ">
- <col disabled="true" ref="status" type="combo" style="text-align:center; focus-rect:visible; ">
- <choices>
- <item>
- <label>신규</label>
- <value>I</value>
- </item>
- <item>
- <label>삭제</label>
- <value>D</value>
- </item>
- <item>
- <label>수정</label>
- <value>U</value>
- </item>
- </choices>
- </col>
- <col ref="seq" visibility="hidden"/>
- <col ref="prcpcd"/>
- <col ref="prcpnm"/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if(event.button == 3){
- if(grd_prcp.isCell(event.target) && grd_prcp.mouseRow >= grd_prcp.fixedrows){
- window.setPopupMenu(true, "/root/hidden/prcpmenu/menu", "name", "func", false);
- }else{
- window.setPopupMenu(false);
- }
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_prcpsrch" class="icon_search" navindex="44" style="left:637px; top:337px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // 처방검색
- var col = grd_prcp.col;
- var row = grd_prcp.row;
-
- //var standard = model.getValue("/root/temp/prcp/prcpnm");
- //var search_term = model.getValue("/root/temp/prcp/prcpcd");
- //var receive_prcpnm_path = "/root/main/prcplist["+row+"]/prcpnm";
- //var receive_prcpcd_path = "/root/main/prcplist["+row+"]/prcpcd";
- //fPrcpCodeList(receive_prcpcd_path, receive_prcpnm_path);
- var receive_prcplist_path = "/root/main/prcplist";
- fPrcpCodeList(receive_prcplist_path);
- ]]>
- </script>
- </button>
- <line id="line14" class="line_1" style="x1:0px; y1:456px; x2:970px; y2:456px; "/>
- <caption id="caption26" class="tit_2" style="left:5px; top:441px; width:111px; height:13px; ">검사결과 정보</caption>
- <line id="line15" class="line_2" style="x1:0px; y1:459px; x2:970px; y2:459px; "/>
- <caption id="caption28" class="cell_1" style="left:0px; top:461px; width:105px; height:23px; text-align:center; vertical-align:middle; ">검사기간</caption>
- <select1 id="cmb_testtermbase" ref="/root/main/dtmntmpl/testinfo/testtermbase" class="combo_default" navindex="27" appearance="minimal" style="left:108px; top:463px; width:97px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/C0044list/C0044">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_testfromdd" ref="/root/main/dtmntmpl/testinfo/testfromdd" class="input_default" navindex="50" inputtype="date" style="left:208px; top:463px; width:85px; height:19px; "/>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- var testfromdd = model.getValue("/root/main/dtmntmpl/testinfo/testfromdd");
- if (testfromdd != "" && !isValidDateTime(testfromdd,"YYYYMMDD")) {
- messageBox("날짜가 바르게 입력되지","E007");
- model.setFocus("ipt_testfromdd");
- }
- ]]>
- </script>
- <caption id="caption51" class="search_no_b" style="left:298px; top:461px; width:12px; height:17px; ">~</caption>
- <input id="ipt_testtodd" ref="/root/main/dtmntmpl/testinfo/testtodd" class="input_default" navindex="51" inputtype="date" style="left:313px; top:463px; width:85px; height:19px; "/>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- var testtodd = model.getValue("/root/main/dtmntmpl/testinfo/testtodd");
- if (testtodd != "" && !isValidDateTime(testtodd,"YYYYMMDD")) {
- messageBox("날짜가 바르게 입력되지","E007");
- model.setFocus("ipt_testtodd");
- }
- ]]>
- </script>
- <line id="line16" class="line_3" style="x1:0px; y1:583px; x2:970px; y2:583px; "/>
- <caption id="caption29" class="cell_1" style="left:0px; top:486px; width:105px; height:97px; text-align:center; vertical-align:middle; ">검사결과</caption>
- <datagrid id="grd_test" nodeset="/root/main/testlist" class="datagrid" caption="^^검사명^검사코드^상한값^하한값^단위" colsep="^" colwidth="30, 0, 350, 191, 80, 80, 98" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" tooltip="true" style="left:108px; top:486px; width:859px; height:95px; ">
- <col disabled="true" ref="status" type="combo" style="text-align:center; focus-rect:visible; ">
- <choices>
- <item>
- <label>신규</label>
- <value>I</value>
- </item>
- <item>
- <label>삭제</label>
- <value>D</value>
- </item>
- <item>
- <label>수정</label>
- <value>U</value>
- </item>
- </choices>
- </col>
- <col ref="seq" visibility="hidden"/>
- <col ref="testnm"/>
- <col ref="testcd"/>
- <col ref="refh" type="input"/>
- <col ref="refl" type="input"/>
- <col ref="rsltunit"/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if(event.button == 3){
- if(grd_test.isCell(event.target) && grd_test.mouseRow >= grd_test.fixedrows){
- window.setPopupMenu(true, "/root/hidden/testmenu/menu", "name", "func", false);
- }else{
- window.setPopupMenu(false);
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- var diagNode = "/root/main/testlist";
- if ( grd_test.valueMatrix ( grd_test.row,0 ) != "I") {
- model.makeValue ( diagNode + "[" + grd_test.row + "]/status", "U" );
- }
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <button id="btn_testsrch" class="icon_search" navindex="52" style="left:112px; top:490px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // 검사검색
- // var standard = model.getValue("/root/temp/test/testnm");
- // var search_term = model.getValue("/root/temp/test/testcd");
- // var receive_testnm_path = "/root/temp/test/testnm";
- // var receive_testcd_path = "/root/temp/test/testcd";
- // fTestCodeList(standard, search_term, receive_testcd_path, receive_testnm_path);
- modal("SPCDT01100");
- ]]>
- </script>
- </button>
- <line id="line17" class="line_1" style="x1:0px; y1:608px; x2:970px; y2:608px; "/>
- <caption id="caption30" class="tit_2" style="left:5px; top:593px; width:111px; height:13px; ">수술정보</caption>
- <button id="button4" class="btn2_letter2" navindex="17" style="left:379px; top:640px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 선택한 수술과/집도의그리드를 삭제한다.
- if ((grd_opord.row > 0) && (grd_opord.col > 1)){
- grd_opord.deleteRow(grd_opord.row);
- grd_opord.refresh();
- } else {
- messageBox("삭제할 행이 없거나 선택하지 ","E007");
- }
-
- ]]>
- </script>
- </button>
- <input id="input2" ref="/root/main/dtmntmpl/opinfo/opfromdd" class="input_default" navindex="23" inputtype="date" style="left:108px; top:615px; width:85px; height:19px; "/>
- <button id="button5" class="btn2_letter2" navindex="16" style="left:334px; top:640px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 선택한 수술과/수술의를 집도과/집도의 그리드에 넣어준다.
- var perfdept = model.getValue("/root/send/srch/perflist/perfdeptcd");
-
- if(perfdept == ""){
- var rtn = messageBox("수술과를 ", "C001");
- return;
- } else {
- grd_opord.addRow();
- model.copyNode("/root/main/opordlist[" + grd_opord.row + " ]", "/root/send/srch/perflist");
- model.resetInstanceNode("/root/send/srch/perflist");
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <line id="line18" class="line_2" style="x1:0px; y1:711px; x2:525px; y2:711px; "/>
- <caption id="caption32" class="cell_1" style="left:0px; top:638px; width:105px; height:73px; text-align:center; vertical-align:middle; ">수술과/집도의</caption>
- <input id="input3" ref="/root/main/dtmntmpl/opinfo/optodd" class="input_default" navindex="24" inputtype="date" style="left:213px; top:615px; width:85px; height:19px; "/>
- <caption id="caption33" class="search_no_b" style="left:198px; top:613px; width:12px; height:17px; ">~</caption>
- <select1 id="cmb_perfdr" ref="/root/send/srch/perflist/perfdrid" class="combo_search" appearance="minimal" style="left:236px; top:638px; width:95px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/basecdlist/perfdrlist/user">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var perfdrnm = cmb_perfdr.label;
- model.setValue("/root/send/srch/perflist/perfdrnm", perfdrnm);
- ]]>
- </script>
- </select1>
- <select1 id="cmb_perfdept" ref="/root/send/srch/perflist/perfdeptcd" class="combo_search" appearance="minimal" style="left:108px; top:638px; width:125px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/basecdlist/orddeptlist/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var perfdeptnm = cmb_perfdept.label;
- model.setValue("/root/send/srch/perflist/perfdeptnm", perfdeptnm);
-
- model.resetInstanceNode("/root/init/basecdlist/perfdrlist/user");
- var dutplceinstcd = getGlobalVariable("dutplceinstcd");
- var deptcd = model.getValue("/root/send/srch/perflist/perfdeptcd");
- var basedd = getCurrentDate();
- zsufGetOutOrdDeptDoctorList(dutplceinstcd, deptcd, "/root/init/basecdlist/perfdrlist", "usernm", "asc", basedd);
-
- if (model.getValue("/root/send/srch/perflist/perfdeptcd") == "") {
- model.makeValue("/root/init/basecdlist/perfdrlist", "");
- }
- addComboItem( "cmb_perfdr");
- model.setValue("/root/send/srch/perflist/perfdrid", "");
- model.refresh();
- ]]>
- </script>
- </select1>
- <line id="line19" class="line_2" style="x1:0px; y1:636px; x2:525px; y2:636px; "/>
- <caption id="caption34" class="cell_1" style="left:0px; top:613px; width:105px; height:23px; text-align:center; vertical-align:middle; ">수술기간</caption>
- <datagrid id="grd_opord" nodeset="/root/main/opordlist" class="datagrid" scroll="autovscroll" caption="^수술과^집도과코드^집도의^집도의ID" colwidth="0, 203, 0, 150, 0" dataheight="22" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="22" style="left:108px; top:663px; width:412px; height:48px; ">
- <col ref="seq" visibility="hidden"/>
- <col ref="perfdeptnm"/>
- <col ref="perfdeptcd" visibility="hidden"/>
- <col ref="perfdrnm"/>
- <col ref="perfdrid" visibility="hidden"/>
- </datagrid>
- <select1 id="cmb_opflagcd" ref="/root/main/dtmntmpl/opinfo/opflagcd" class="combo_default" navindex="13" appearance="minimal" style="left:411px; top:615px; width:111px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/M0013list/M0013">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption35" class="cell_1" style="left:303px; top:613px; width:105px; height:23px; text-align:center; vertical-align:middle; ">수술구분</caption>
- <line id="line20" class="line_3" style="x1:0px; y1:736px; x2:970px; y2:736px; "/>
- <caption id="caption31" class="cell_1" style="left:0px; top:713px; width:105px; height:23px; text-align:center; vertical-align:middle; ">수술환자구분</caption>
- <select1 id="cmb_oppatflagcd" ref="/root/main/dtmntmpl/opinfo/oppatflagcd" class="combo_default" navindex="13" appearance="minimal" style="left:108px; top:714px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/M0020list/M0020">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption37" class="cell_1" style="left:525px; top:613px; width:105px; height:122px; text-align:center; vertical-align:middle; ">수술명</caption>
- <datagrid id="grd_op" nodeset="/root/main/oplist" class="datagrid" caption="^^수술코드^수술명" colwidth="30,0,60,210" dataheight="23" defaultrows="0" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="23" tooltip="true" style="left:633px; top:613px; width:334px; height:121px; ">
- <col disabled="true" ref="status" type="combo" style="text-align:center; focus-rect:visible; ">
- <choices>
- <item>
- <label>신규</label>
- <value>I</value>
- </item>
- <item>
- <label>삭제</label>
- <value>D</value>
- </item>
- <item>
- <label>수정</label>
- <value>U</value>
- </item>
- </choices>
- </col>
- <col ref="seq" visibility="hidden"/>
- <col ref="opcd"/>
- <col ref="opnm"/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if(event.button == 3){
- if(grd_op.isCell(event.target) && grd_op.mouseRow >= grd_op.fixedrows){
- window.setPopupMenu(true, "/root/hidden/opmenu/menu", "name", "func", false);
- }else{
- window.setPopupMenu(false);
- }
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_opsrch" class="icon_search" navindex="52" style="left:637px; top:617px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // 수술검색
- var standard = model.getValue("/root/temp/op/opnm");
- var search_term = model.getValue("/root/temp/op/opcd");
- var receive_opnm_path = "/root/temp/op/opnm";
- var receive_opcd_path = "/root/temp/op/opcd";
- fOpCodeList(standard, search_term, receive_opcd_path, receive_opnm_path);
- ]]>
- </script>
- </button>
- <treeview id="trv_wardcd" visibility="hidden" hascheck="true" style="left:633px; top:305px; width:334px; height:200px; ">
- <itemset nodeset="/root/init/wardcdinfo/wardcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- <depth ref="depth"/>
- </itemset>
- </treeview>
- </group>
- <group id="grp_btn" scroll="auto" style="left:225px; top:753px; width:970px; height:22px; ">
- <button id="btn_list" class="btn3_letter7" style="left:0px; top:0px; width:80px; height:22px; ">
- <caption>고객리스트추출</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDtMnExec(); //데이터마이닝 수동실행
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter5" style="left:748px; top:0px; width:92px; height:22px; ">
- <caption>새이름으로</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/main/dtmntmpl/tmpldefine/savemode","I")
- fGridSetStatus(grd_age, "insert");
- fGridSetStatus(grd_area, "insert");
- fGridSetStatus(grd_chosord, "insert");
- fGridSetStatus(grd_snw, "insert");
- fGridSetStatus(grd_prcp, "insert");
- fGridSetStatus(grd_test, "insert");
- fGridSetStatus(grd_opord, "insert");
- fGridSetStatus(grd_op, "insert");
-
- var savemode = model.getValue("/root/main/dtmntmpl/tmpldefine/savemode");
- fSaveDtmn(savemode); //데이터마이닝 속성 저장(I:등록, U:수정)
- ]]>
- </script>
- </button>
- <button id="btn_clear" class="btn4_letter2" style="left:843px; top:0px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var savemode = model.getValue("/root/main/dtmntmpl/tmpldefine/savemode");
- fSaveDtmn(savemode); //데이터마이닝 속성 저장(I:등록, U:수정)
- ]]>
- </script>
- </button>
- <button id="button3" class="btn4_letter3" style="left:902px; top:0px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/main/dtmntmpl/tmpldefine");
- model.resetInstanceNode("/root/main/dtmntmpl/humtrainfo");
- model.resetInstanceNode("/root/main/dtmntmpl/area");
- model.resetInstanceNode("/root/main/dtmntmpl/agelist");
- model.resetInstanceNode("/root/main/dtmntmpl/chosinfo");
- model.resetInstanceNode("/root/main/dtmntmpl/chosordlist");
- model.resetInstanceNode("/root/main/dtmntmpl/snwinfo");
- model.resetInstanceNode("/root/main/dtmntmpl/snwlist");
- model.resetInstanceNode("/root/main/dtmntmpl/prcpinfo");
- model.resetInstanceNode("/root/main/dtmntmpl/prcplist");
- model.resetInstanceNode("/root/main/dtmntmpl/testinfo");
- model.resetInstanceNode("/root/main/dtmntmpl/testlist");
- model.resetInstanceNode("/root/main/dtmntmpl/opinfo");
- model.resetInstanceNode("/root/main/dtmntmpl/oplist");
- model.resetInstanceNode("/root/main/dtmntmpl/opordlist");
-
- model.removeNodeset("/root/init/P0001list/P0001");
- model.removeNodeset("/root/init/P0313list/P0313");
- model.removeNodeset("/root/init/C0029list/C0029");
- model.removeNodeset("/root/init/C0039list/C0039");
- model.removeNodeset("/root/init/P0157list/P0157");
- model.removeNodeset("/root/init/M0068list/M0068");
- model.removeNodeset("/root/init/M0069list/M0069");
- model.removeNodeset("/root/init/P0008list/P0008");
- model.removeNodeset("/root/init/P0002list/P0002");
- model.removeNodeset("/root/init/M0013list/M0013");
- model.removeNodeset("/root/init/M0020list/M0020");
- model.removeNodeset("/root/init/C0042list/C0042");
- model.removeNodeset("/root/init/C0043list/C0043");
- model.removeNodeset("/root/init/C0044list/C0044");
-
- model.dispatch("xforms-ready");
-
- ]]>
- </script>
- </button>
- </group>
- <group id="group12" style="left:0px; top:23px; width:215px; height:757px; ">
- <!--<caption id="caption36" class="tit_2" style="left:0px; top:0px; width:215px; height:13px; ">데이터마아닝 템플릿</caption>-->
- <import id="import1" instancetype="merge" src="./SSCDT00400_데이터마이닝그룹트리.xrw" style="left:0px; top:13px; width:215px; height:744px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|