123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>ClinicalRule관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <mntrinfo>i</mntrinfo>
- <mntrheaderinfo>
- <slipno/>
- <sliphistno/>
- <slipnm/>
- <orddrid/>
- <useyn>Y</useyn>
- <sliptypecd/>
- <slipkindcd>P</slipkindcd>
- <alertgrde/>
- <guidedocucnts/>
- <alertcondflag>A</alertcondflag>
- <!--alertcondcnt -->
- <ifcondcnt>A</ifcondcnt>
- <thencondcnt/>
- <cpgmntrflag/>
- <cpgno/>
- <cpghistseq/>
- <stepno/>
- <stepnm/>
- <!-- stepfromno -->
- <!-- stepfromnm -->
- <!-- steptono -->
- <!-- steptonm -->
- <status/>
- <lasthistyn/>
- <actcnts/>
- <recvrflag/>
- <essnyn/>
- <fromdd/>
- <todd/>
- <multiorddept/>
- </mntrheaderinfo>
- <selstepno/>
- <selalertcdflag/>
- <selpretestcd/>
- <mntrpredetlinfo/>
- <mntrdetlinfo/>
- <mntrdetlform>
- <mntrdetllist>
- <testitemcd/>
- <testitemnm/>
- <testcd/>
- <testnm/>
- <scndcondcd/>
- <hvalappflag/>
- <lvalappflag/>
- <refhval/>
- <reflval/>
- <unitnm/>
- <refcnts/>
- <reftypecd/>
- <refseq/>
- <alertcdflag/>
- <alertrem/>
- <alertprecondyn/>
- <alertcnts/>
- <checkyn/>
- <m>i</m>
- </mntrdetllist>
- </mntrdetlform>
- <cmprmntrinfo>
- <mntrheaderinfo/>
- </cmprmntrinfo>
- <cmprpredetlinfo>
- <mntrdetllist>
- <testitemcd/>
- <testitemnm/>
- <testcd/>
- <testnm/>
- <scndcondcd/>
- <hvalappflag/>
- <lvalappflag/>
- <refhval/>
- <reflval/>
- <unitnm/>
- <refcnts/>
- <reftypecd/>
- <refseq/>
- <alertcdflag/>
- <alertrem/>
- <alertprecondyn/>
- <alertcnts/>
- <checkyn/>
- <m/>
- </mntrdetllist>
- </cmprpredetlinfo>
- <selinfo>
- <condsexflag/>
- <condagelval/>
- <condagehval/>
- <condnurtprlval/>
- <condnurtprhval/>
- <condlvalflag>U</condlvalflag>
- <condhvalflag>D</condhvalflag>
- <alertcdflag/>
- <alertprecondyn/>
- <openyn>N</openyn>
- <condroomval/>
- <condroomsel/>
- </selinfo>
- <mntrpoplist>
- <menu>
- <item>
- <name>삭제</name>
- <func>fDelSlipInfo</func>
- </item>
- </menu>
- </mntrpoplist>
- <condpoplist>
- <menu>
- <item>
- <name>삭제</name>
- <func>fDelCondRow</func>
- </item>
- </menu>
- </condpoplist>
- <precondpoplist>
- <menu>
- <item>
- <name>삭제</name>
- <func>fDelInCondInfo</func>
- </item>
- </menu>
- </precondpoplist>
- <comnusewrdcd/>
- <tempuserinfo/>
- </main>
- <temp/>
- <init>
- <orddept>
- <orddeptlist/>
- </orddept>
- <slipkindcdlist>
- <slipkindcd>
- <cdid>P</cdid>
- <cdnm>개인</cdnm>
- </slipkindcd>
- <slipkindcd>
- <cdid>A</cdid>
- <cdnm>전체과</cdnm>
- </slipkindcd>
- <slipkindcd>
- <cdid>D</cdid>
- <cdnm>공통과</cdnm>
- </slipkindcd>
- </slipkindcdlist>
- </init>
- <send>
- <cond>
- <slipkindcd/>
- <orddeptcd/>
- <useyn/>
- <essnyn/>
- <fromdd/>
- <todd/>
- </cond>
- </send>
- </root>
- </instance>
- <submission id="TRMMD06101" ref="/root/main/cond" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/mntrinfo"/>
- <submission id="TRMMD06102" ref="/root/main/mntrheaderinfo" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/temp"/>
- <submission id="TXMMD06101" ref="/root/send/savedata/monlist" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/mntrinfo"/>
- <submission id="TRZSD00109" method="urlencoded-post" mediatype="application/x-www-form-urlencoded" replace="instance"/>
- <submission id="TRMMD06103" ref="/root/send/reqdata" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/init/roomlist"/>
- <submission id="TRMMB04101" method="urlencoded-post" mediatype="application/x-www-form-urlencoded" replace="instance"/>
- <submission id="TRMMB04105" method="urlencoded-post" mediatype="application/x-www-form-urlencoded" replace="instance"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- fGetSlipList();
- fSelStepMntrInfo();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- var inptTypeCdNode = instance1.selectSingleNode("/root/main/cond/inpttypecd");
- var menuParam = getScreenMenuParameter();
- if( inptTypeCdNode == null ){
- model.makeNode("/root/main/cond/inpttypecd");
- }
- if( isNull(model.getValue("/root/main/cond/inpttypecd")) ){
-
- if( !isNull(menuParam) ) inptTypeCd = menuParam;
- else inptTypeCd = "Q"; //공통코드:M0506 (Q:QI, G:CPG, C:임상의용관심슬립, A:격리주의, L:법정전염병...)
-
- model.setValue("/root/main/cond/inpttypecd", inptTypeCd);
- }else{
- inptTypeCd = inptTypeCdNode.text;
- }
-
- if( inptTypeCd == "G" ){ //특수목적(CPG전용)
- switch1.attribute("width") = "725px";
- switch1.attribute("height") = "460px";
- model.toggle("expert2");
- }else{
- model.toggle("basic");
- }
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/common.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript">
- <![CDATA[
- var inptTypeCd = "";
- var slipGrdNm = "";
- var condGrdNm = "";
- var slipGrdCtrl = null;
- var condGrdCtrl = null;
- var trgNM = "";
-
- /**
- * @group :
- * @ver : 2009.01.18
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 초기화
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fInit(){
- //opener는 CDSS Rule생성기 화면() or CPG속성관리 화면(SPMQP00300)
- //inpttypecd는 알람종류(공통코드 M0506)와 동일한 코드 사용, 어떤 목적으로 화면을 open하는지 알 수 있는 flag임.
- var inptTypeCdNode = instance1.selectSingleNode("/root/main/cond/inpttypecd");
- var menuParam = getScreenMenuParameter();
- if( inptTypeCdNode == null ){
- model.makeNode("/root/main/cond/inpttypecd");
- }
- if( isNull(model.getValue("/root/main/cond/inpttypecd")) ){
- if( !isNull(menuParam) ) inptTypeCd = menuParam;
- else inptTypeCd = "Q"; //공통코드:M0506 (Q:QI, G:CPG, C:임상의용관심슬립, A:격리주의, L:법정전염병...)
-
- model.setValue("/root/main/cond/inpttypecd", inptTypeCd);
-
- }else{
- inptTypeCd = inptTypeCdNode.text;
- }
-
- if( inptTypeCd == "G" ){ //특수목적(CPG전용)
- //switch1.attribute("width") = "725px";
- //switch1.attribute("height") = "460px";
- //switch1.refresh();
-
- //model.toggle("expert2");
- slipGrdNm = "grd_sliplist2"; //CPG 모니터링 그리드
- condGrdNm = "grd_slipcondlist2"; //CPG then조건 그리드
- trgNM = "모니터링";
-
- //테스트를 위한 값
- model.makeValue("/root/main/cond/cpgno", opener.model.getValue("root/main/masterinfo/info/cpgno"));
- model.makeValue("/root/main/cond/cpghistseq", opener.model.getValue("root/main/masterinfo/info/cpghistseq"));
- model.setValue("/root/main/mntrheaderinfo/cpgno", opener.model.getValue("root/main/masterinfo/info/cpgno"));
- model.setValue("/root/main/mntrheaderinfo/cpghistseq", opener.model.getValue("root/main/masterinfo/info/cpghistseq"));
-
- cpgattadmin = opener.window.javascript.getParameter("cpgattadmin");
- stepattadmin = opener.window.javascript.getParameter("stepattadmin");
-
- //각 조건 항목 리스트업..
- model.makeNode("/root/init/MI0505");
- model.makeNode("/root/init/MMT0505");
- model.makeNode("/root/init/MST0505");
- model.makeNode("/root/init/MT0505"); //실제 콤보와 매핑된 node
-
- model.copyNode("/root/init/MI0505", "/root/init/M0505");
- model.copyNode("/root/init/MT0505", "/root/init/M0505");
- model.copyNode("/root/init/MMT0505", "/root/init/M0505");
- model.copyNode("/root/init/MST0505", "/root/init/M0505");
-
- model.removeNodeset("/root/init/MI0505/M0505[cdid='06']"); //성별
- model.removeNodeset("/root/init/MI0505/M0505[cdid='07']"); //연령
- model.removeNodeset("/root/init/MI0505/M0505[cdid='03']"); //진단
- model.removeNodeset("/root/init/MI0505/M0505[cdid='04']"); //수술
- model.removeNodeset("/root/init/MI0505/M0505[cdid='05']"); //주호소
-
- //모니터링 조건 항목
- model.removeNodeset("/root/init/MMT0505/M0505[cdid='03']"); //진단
- model.removeNodeset("/root/init/MMT0505/M0505[cdid='04']"); //수술
- model.removeNodeset("/root/init/MMT0505/M0505[cdid='06']"); //성별
- model.removeNodeset("/root/init/MMT0505/M0505[cdid='07']"); //연령
-
- //스크리닝 조건 항목
- model.removeNodeset("/root/init/MST0505/M0505[cdid='09']"); //IO
- model.removeNodeset("/root/init/MST0505/M0505[cdid='11']"); //투약
- model.removeNodeset("/root/init/MST0505/M0505[cdid='12']"); //문진
-
- rdo_cpgmntrflag2.refresh();
- grd_slipcondlist2.refresh();
-
- //open 목적에 따라 목적 자동 셋팅
- if(isNull(stepattadmin)){
- if(cpgattadmin == "D"){
- model.setValue("/root/main/mntrheaderinfo/cpgmntrflag", "M");
- }else{
- model.setValue("/root/main/mntrheaderinfo/cpgmntrflag", "S");
- }
- fSetupControl("rdo_cpgmntrflag2");
- }
-
- }else {
- /*
- if( inptTypeCd == "C" ){ //일반 임상의용(관심슬립관리)
- cap_sliptypecd.visible = true;
- rdo_sliptypecd.visible = true;
- line5.visible = true;
- cap_condlist.attribute("top") = "53px";
- cap_condlist.attribute("height") = "402px";
- btn_addslipcond.attribute("top") = "55px";
- btn_delslipcond.attribute("top") = "55px";
- grd_slipcondlist.attribute("top") = "76px";
- grd_slipcondlist.attribute("height") = "378px";
-
- }else{ //그외 특수목적 (감염관리 등...)
- cap_sliptypecd.visible = false;
- rdo_sliptypecd.visible = false;
- line5.visible = false;
- cap_condlist.attribute("top") = "29px";
- cap_condlist.attribute("height") = "295px";
- btn_addslipcond.attribute("top") = "29px";
- btn_delslipcond.attribute("top") = "29px";
- grd_slipcondlist.attribute("top") = "50px";
- grd_slipcondlist.attribute("height") = "272px";
- }
- */
- //20100610 by sonjy 권한처리 추가
- fSetAuthInfo();
-
-
-
-
- //model.toggle("basic");
- slipGrdNm = "grd_sliplist"; //슬립 그리드
- condGrdNm = "grd_slipcondlist"; //조건 그리드
- trgNM = "Rule";
-
- model.makeNode("/root/init/MI0505"); //실제 콤보와 매핑된 node
- model.copyNode("/root/init/MI0505", "/root/init/M0505");
- model.removeNodeset("/root/init/MI0505/M0505[cdid='06']"); //성별
- model.removeNodeset("/root/init/MI0505/M0505[cdid='07']"); //연령
- model.removeNodeset("/root/init/MI0505/M0505[cdid='12']");
-
- model.removeNodeset("/root/init/M0505/M0505[cdid='12']");
- grd_slipcondlist.refresh();
- }
-
- model.setValue("/root/main/mntrheaderinfo/sliptypecd", inptTypeCd);
- model.setValue("/root/main/mntrheaderinfo/recvrflag", "1");
- slipGrdCtrl = document.controls(slipGrdNm); //슬립 그리드 컨트롤 obj (CPG용 or 일반/expert용)
- condGrdCtrl = document.controls(condGrdNm); //조건 그리드 컨트롤 obj (CPG용 or 일반/expert용)
- //model.setValue("/root/main/cond/slipgrdnm", slipGrdNm);
- //model.setValue("/root/main/cond/slipcondgrdnm", condGrdNm);
-
- fAddCondRow();
- }
-
- /**
- * @group :
- * @ver : 2009.01.18
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 리스트 조회
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetSlipList(){
- //by sonjy 20100610 권한구분 추가
- model.makeValue("/root/main/cond/userauthinfoflag" , model.getValue("/root/hidden/userauthinfoflag" ));
- model.makeValue("/root/main/cond/fromdd" , model.getValue("/root/send/cond/fromdd" ));
- model.makeValue("/root/main/cond/todd" , model.getValue("/root/send/cond/todd" ));
- model.makeValue("/root/main/cond/slipkindcd" , model.getValue("/root/send/cond/slipkindcd" ));
- model.makeValue("/root/main/cond/orddeptcd" , model.getValue("/root/send/cond/orddeptcd" ));
- model.makeValue("/root/main/cond/useyn" , model.getValue("/root/send/cond/useyn" ));
-
- submit("TRMMD06101", false);
- model.refresh();
- }
-
- /**
- * @group :
- * @ver : 2009.01.18
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : CPG일 경우만 수행되는 부분으로, 특정 스텝에 해당되는 특정 슬립 정보 조회
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSelStepMntrInfo(){
- if( inptTypeCd == "G" ){
- var stepNo = opener.window.javascript.getParameter("stepattadmin");
- var no = 0;
- if( !isNull(stepNo) ){
- var Nodes = instance1.selectNodes("/root/main/mntrinfo/mntrlist");
- for( var i=0; i<Nodes.length; i++ ){
- var node = Nodes.item(i);
- var mntrStepNode = node.selectSingleNode("stepno");
- if( mntrStepNode != null && mntrStepNode.text == stepNo ){
- no = i + 1;
- grd_sliplist2.select(no, 1) = true;
- grd_sliplist2.row = grd_sliplist2.selectedRow(0);
- fSelSlipInfo();
- return;
- }
- }
- }
- }
- }
-
- /**
- * @group :
- * @ver : 2009.01.18
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 리스트 선택 시 해당 슬립 상세 정보 조회
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSelSlipInfo(){
- var iRow = slipGrdCtrl.row;
-
- if ( iRow >= slipGrdCtrl.fixedRows && iRow <slipGrdCtrl.rows ) {
- //var limno = model.getValue("/root/main/mntrinfo/mntrlist[" + iRow + "]/limno");
- //var limhistno = model.getValue("/root/main/mntrinfo/mntrlist[" + iRow + "]/limhistno");
- model.copyNode("/root/main/mntrheaderinfo", "/root/main/mntrinfo/mntrlist[" + iRow + "]");
-
- if( submit("TRMMD06102", false) ){
- var preCondNode = instance1.selectNodes("/root/temp/mntrdetllist[alertprecondyn='Y']");
- var ifCnt = parseInt(model.getValue("/root/main/mntrheaderinfo/ifcondcnt"));
- //if( ifCnt > 1 ){
- if( preCondNode.length == 0 ) model.setValue("/root/main/mntrheaderinfo/ifcondcnt", "0");
- else if( ifCnt == preCondNode.length ) model.setValue("/root/main/mntrheaderinfo/ifcondcnt", "A");
- else model.setValue("/root/main/mntrheaderinfo/ifcondcnt", "1");
-
- if( preCondNode.length > 0 ){
- copyNodeListType("/root/main/mntrpredetlinfo", "/root/temp/mntrdetllist[alertprecondyn='Y']", "replace", model, model);
- copyNodeListType("/root/main/cmprpredetlinfo", "/root/temp/mntrdetllist[alertprecondyn='Y']", "replace", model, model);
- model.removeNodeset("/root/temp/mntrdetllist[alertprecondyn='Y']");
- }else{
- //model.resetInstanceNode("/root/main/mntrpredetlinfo/mntrdetllist");
- //model.resetInstanceNode("/root/main/cmprpredetlinfo/mntrdetllist");
- model.removeNodeset("/root/main/mntrpredetlinfo/mntrdetllist");
- model.removeNodeset("/root/main/cmprpredetlinfo/mntrdetllist");
- }
- //if( instance1.selectNodes("/root/temp/mntrdetllist[alertprecondyn!='Y']").length> 0 ){
- if( instance1.selectNodes("/root/temp/mntrdetllist[alertprecondyn ='N']").length> 0 ){
- copyNodeListType("/root/main/mntrdetlinfo", "/root/temp/mntrdetllist", "replace", model, model);
- model.removeNodeset("/root/temp/mntrdetllist");
- }else{
- model.removeNodeset("/root/main/mntrdetlinfo/mntrdetllist");
- }
-
- model.setValue("/root/main/selstepno", model.getValue("/root/main/mntrheaderinfo/stepno"));
-
- }
-
- fSetupControl();
- model.refresh();
- condGrdCtrl.clearStatus();
-
- fAddCondRow();
- }
-
- }
-
- /**
- * @group :
- * @ver : 2009.01.18
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 그리드의 rowstatus 설정
- * @param : grdCtrl, ref, nodenm (변경하려는 그리드 컨트롤, 인스턴스 경로, 상태값 구분 기준 노드명
- * @return :
- * @---------------------------------------------------
- */
- function fSetupGrdStatus( grdCtrl, ref, nodenm ){
- for(var i=1; i<grdCtrl.rows; i++ ){
- if( model.getValue(ref + "["+ i +"]/" + nodenm) == "i" ) grdCtrl.rowstatus(i) = 1;
- else if( model.getValue(ref + "["+ i +"]/" + nodenm) == "u" ) grdCtrl.rowstatus(i) = 2;
- else if( model.getValue(ref + "["+ i +"]/" + nodenm) == "d" ) grdCtrl.rowstatus(i) = 4;
- else grdCtrl.rowstatus(i) = 0;
- }
- }
-
- /**
- * @group :
- * @ver : 2009.01.18
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 조건 추가를 위해 줄추가
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fAddCondRow(){
- /*if( slipGrdCtrl.row <= 0 ){
- messageBox ( "입력하려는 " + trgNM + "을", "C002" );
- return;
- }*/
- copyNodeListType("/root/main/mntrdetlinfo", "/root/main/mntrdetlform/mntrdetllist", "after", model, model);
- model.refresh();
- fSetupGrdStatus(condGrdCtrl, "/root/main/mntrdetlinfo/mntrdetllist", "m");
- }
-
- /**
- * @group :
- * @ver : 2009.01.18
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 조건 삭제 및 줄삭제
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fDelCondRow(){
- //if( condGrdCtrl.rows <= 1 ) return;
- //else if( condGrdCtrl.row > 0 ) var iRow = condGrdCtrl.row;
- //else var iRow = condGrdCtrl.rows - 1;
-
- var selectedRowList = condGrdCtrl.selectedRows;
-
- if( selectedRowList > 0 ){
- for (var i=selectedRowList-1; i>=0; i--) {
- var iRow = condGrdCtrl.selectedrow(i);
-
- if( model.getValue("/root/main/mntrdetlinfo/mntrdetllist[" + iRow + "]/m") == "i" ){
- model.removenode("/root/main/mntrdetlinfo/mntrdetllist[" + iRow + "]");
- //condGrdCtrl.deleteRow(iRow, true);
- }else if( model.getValue("/root/main/mntrdetlinfo/mntrdetllist[" + iRow + "]/m") == "d" ){
- model.setValue("/root/main/mntrdetlinfo/mntrdetllist[" + iRow + "]/m", "-");
-
- }else{
- model.setValue("/root/main/mntrdetlinfo/mntrdetllist[" + iRow + "]/m", "d");
-
- }
- }
-
- condGrdCtrl.refresh();
- fSetupGrdStatus(condGrdCtrl, "/root/main/mntrdetlinfo/mntrdetllist", "m");
- }
-
- }
-
- /**
- * @group :
- * @ver : 2009.01.18
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 새로운 속성을 조회하기 위해 팝업 호출
- * @param : getFlag(If / Then 구분)
- * @return :
- * @---------------------------------------------------
- */
- function fGetNewAttrInfo( getFlag ){
- //if (isDataCell() == false) return;
- if( isNull(getFlag) ) getFlag = "THEN";
- var sCol = condGrdCtrl.col;
- var sRow = sRow = condGrdCtrl.row;
- var alertcdflag = "";
- var alertprecondyn = "";
- var setupCondYN = "N";
- var changeYN = "N";
- var rsltNodes = "";
- var rsltNode = "";
- var currow = 0;
- var callPopCtrl = null;
-
- if( getFlag == "IF" && !isNull(model.getValue("/root/main/selalertcdflag")) ){
- alertcdflag = model.getValue("/root/main/selalertcdflag");
- alertprecondyn = "Y";
- rsltNodes = "/root/main/mntrpredetlinfo";
- rsltNode = "/root/main/mntrpredetlinfo/mntrdetllist";
- setupCondYN = "Y";
- sRow = instance1.selectNodes(rsltNode).length;
-
- }else if( getFlag != "IF" && sRow >= condGrdCtrl.fixedRows && sRow <= condGrdCtrl.rows ){
- alertcdflag = model.getValue("/root/main/mntrdetlinfo/mntrdetllist[" + sRow + "]/alertcdflag");
- alertprecondyn = "N";
- rsltNodes = "/root/main/mntrdetlinfo";
- rsltNode = "/root/main/mntrdetlinfo/mntrdetllist";
- setupCondYN = "Y";
- //sRow = condGrdCtrl.row;
-
- if( !isNull(model.getValue("/root/main/mntrdetlinfo/mntrdetllist[" + sRow + "]/testnm")) ){
- return;
- }
- //if ( condGrdCtrl.colRef("alertcdflag") == condGrdCtrl.col ) {
- if( isNull(alertcdflag) ){
- return;
- }
- //}
-
- }else if( getFlag == "U" ){ //값 수정
- return;
-
- }else{
- return;
- }
-
- if( setupCondYN == "Y" ) {
- if( getFlag != "IF" && !isNull(model.getValue("/root/main/mntrdetlinfo/mntrdetllist[" + sRow + "]/testcd")) ) {
- messageBox ( "상한치, 하한지 값의 수정만 가능합니다.\n삭제 후", "C001" );
- return;
- }
-
- //성별, 연령, 혈당간호기록 값 입력 후 값 적용 시, 바로 파라메터 전달함.
- if(model.getValue("/root/main/selinfo/openyn") != "Y" ){
- model.setValue("/root/main/cond/condbutton", getFlag);
- model.setValue("/root/main/cond/alertcdflag", alertcdflag);
-
- if (alertcdflag == "01") { // 진단검사
- modal("SPMMD06200");
- } else if (alertcdflag == '02') {// 핵의학체외검사
- modal("SPMMD06200");
- } else if (alertcdflag == '03') {// 진단
- modal("SPMQP01600");
- } else if (alertcdflag == '04') {// 수술
- modal("SPMQP01700");
- } else if (alertcdflag == '05') {//주호소
- modal("SPMQP01800");
- } else if (alertcdflag == '06') {// 성별
- model.setValue("/root/main/selinfo/condsexflag", "");
- model.setValue("/root/main/selinfo/alertcdflag", alertcdflag);
- model.setValue("/root/main/selinfo/alertprecondyn", alertprecondyn);
- callPopCtrl = document.controls("grp_condsexflag");
- model.setFocus("rdo_condsexflag");
-
- } else if (alertcdflag == '07') {// 연령
- model.setValue("/root/main/selinfo/condagehval", "");
- model.setValue("/root/main/selinfo/condagelval", "");
- model.setValue("/root/main/selinfo/alertcdflag", alertcdflag);
- model.setValue("/root/main/selinfo/alertprecondyn", alertprecondyn);
- ipt_condagehval.refresh();
- ipt_condagelval.refresh();
- callPopCtrl = document.controls("grp_condageval");
- model.setFocus("ipt_condagelval");
-
- } else if (alertcdflag == '08') {// 임상관찰기록
- modal("SPMMD06300");
- } else if (alertcdflag == '09') {// I/O
- modal("SPMMD06300");
- } else if (alertcdflag == '10') {// 혈당간호기록
- model.setValue("/root/main/selinfo/condnurtprhval", "");
- model.setValue("/root/main/selinfo/condnurtprlval", "");
- model.setValue("/root/main/selinfo/alertcdflag", alertcdflag);
- model.setValue("/root/main/selinfo/alertprecondyn", alertprecondyn);
- ipt_condnurtprhval.refresh();
- ipt_condnurtprlval.refresh();
- callPopCtrl = document.controls("grp_condnurtprval");
- model.setFocus("ipt_condnurtprlval");
- } else if (alertcdflag == '11') {
- modal("SPMMD06400");
- }else if (alertcdflag == '13') { //병실
- //## 기존 팝업이 아닌 그리드 선택으로 변경 2010.05.06 KHJ
- var rslt_ref = "/root/init/inordrepdeptlist";//결과를 받을 인스턴스 경로
- if( instance1.selectSingleNode(rslt_ref) == null ) {
- var instcd = getUserInfo("dutplceinstcd");
- var standard_yn = "orduseyn";
- var ord_deptflag = "W";
- var sort_field = "depthngnm";//정렬필드(출력순서:'dispseq')
- var sort_method = "asc"; //정렬방법(오름차순:'asc')
- var base_dd = new Date().getDateFormat("YYYYMMDD");
-
- zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_field, sort_method, base_dd);
- }
- model.setValue("/root/main/selinfo/condroomval", "");
- model.setValue("/root/main/selinfo/condroomsel", "");
- model.setValue("/root/main/selinfo/alertcdflag", alertcdflag);
- model.setValue("/root/main/selinfo/alertprecondyn", alertprecondyn);
- cmb_conddeptlist.deselect();
- cmb_condroomlist.deselect();
- callPopCtrl = document.controls("grp_condroomval");
- /*
- modal("SPPMI02000"); //병실정보popup
- if( instance1.selectSingleNode("/root/hidden/target/grdroomspec") != null ){
- var roomcd = model.getValue("/root/hidden/target/grdroomspec/roomcd");
- var header = "testitemcd▦testcd▦testnm▦hvalappflag▦lvalappflag▦refhval▦reflval▦unitnm▦refseq▦alertcdflag▦alertrem▦alertprecondyn▦checkyn▦m▦refcnts";
- var data = "▩▦▦병실▦N▦N▦▦▦-▦▦"+alertcdflag+"▦▦"+alertprecondyn+"▦y▦i▦"+roomcd;
- clearParameter("SPMMD06100_detlinfo");
- setParameter("SPMMD06100_detlinfo", header + data);
- }
- */
- }else if (alertcdflag == '14') { //의사
- var ref = "/root/main/tempuserinfo";
- model.removeNodeset(ref);
- model.makeNode(ref);
- model.makeValue("/root/main/userpopupinfo/param", "_OneS"); //_OneS
- model.makeValue("/root/main/userpopupinfo/flag", ""); //usernm
- model.makeValue("/root/main/userpopupinfo/searchitem", "" ); //cmb_reqrlist.label
-
- modal("../../userdeptinfoweb/xrw/SPZSU10103", "", "200", "200", "SPZSU10103","/root/main/userpopupinfo","/root/main/temp");
-
- var iParam = getParameter("SPZSU10103_");
- setCSVToNode(ref, iParam, "list");
- var idNode = instance1.selectSingleNode(ref+"/list/userid");
- var nmNode = instance1.selectSingleNode(ref+"/list/usernm");
- if( idNode != null && nmNode != null ){
- var header = "testitemcd▦testcd▦testnm▦hvalappflag▦lvalappflag▦refhval▦reflval▦unitnm▦refseq▦alertcdflag▦alertrem▦alertprecondyn▦checkyn▦m▦refcnts";
- var data = "▩▦▦의사 ("+nmNode.value+")▦N▦N▦▦▦-▦▦"+alertcdflag+"▦▦"+alertprecondyn+"▦y▦i▦"+idNode.value;
- clearParameter("SPMMD06100_detlinfo");
- setParameter("SPMMD06100_detlinfo", header + data);
- }
- clearParameter("SPZSU10103_");
- model.removeNodeset("/root/main/userpopupinfo");
- }
- //end: 항목별 Parameter 구성
-
- //그룹입력란 띄울때 현재 커서 위치에 바로 띄우기
- if( callPopCtrl != null ){
-
- if( getFlag == "IF" ){
- var xPos = parseInt(ipt_alertrem2.attribute("left"));
- var yPos = parseInt(ipt_alertrem2.attribute("top")) + 23;
- }else{
- var xPos = parseInt(condGrdCtrl.attribute("left"));
- var yPos = parseInt(condGrdCtrl.attribute("top")) + (23 * (condGrdCtrl.row+1) );
- var maxPos = parseInt(condGrdCtrl.attribute("top")) + parseInt(condGrdCtrl.attribute("height"));
- if( maxPos < yPos ) yPos = maxPos;
- }
- callPopCtrl.attribute("left") = xPos;
- callPopCtrl.attribute("top") = yPos;
- callPopCtrl.refresh();
- //callPopCtrl.disabled = false;
- callPopCtrl.visible = true;
- //callPopCtrl = null;
- model.setValue("/root/main/selinfo/openyn", "Y");
- }
- }
- var rtnparam = getParameter("SPMMD06100_detlinfo");
- var alertCnts = "";
- //SPMMD06100_detlinfo => testitemcd▦testcd▦testnm▦hvalappflag▦lvalappflag▦refhval▦reflval▦unitnm▦refseq▦alertcdflag▦alertrem▦alertprecondyn▦checkyn▦m▦refcnts▦scndcondcd▦scndcondnm (17ea)
-
- if( !isNull(rtnparam) ){
- //model.removeNodeset("/root/main/mntrdetlinfo/mntrdetllist[testcd='']");
- rtnparam = rtnparam.split("▩");
- var tmpstr = "";
- var testnm = "";
- if( getFlag != "IF" ){
- model.removenode(rsltNode + "[" + sRow + "]");
- }
- currow = instance1.selectNodes(rsltNode).length;
-
- for(i = 1; i< rtnparam.length; i++){
- //if( getFlag != "IF" ){
- copyNodeListType(rsltNodes, "/root/main/mntrdetlform/mntrdetllist", "after", model, model);
- currow++;
- //}
-
- tmpstr = rtnparam[i].split("▦");
- model.setValue(rsltNode + "[" + currow + "]/testitemcd" , tmpstr[0]);
- model.setValue(rsltNode + "[" + currow + "]/testcd" , tmpstr[1]);
-
- if(isNull(tmpstr[15])){
- testnm = tmpstr[2];
- }else{
- testnm = tmpstr[2] + "(" + tmpstr[16] + ")";
- }
- model.setValue(rsltNode + "[" + currow + "]/testnm" , testnm);
-
- model.setValue(rsltNode + "[" + currow + "]/hvalappflag" , tmpstr[3]);
- model.setValue(rsltNode + "[" + currow + "]/lvalappflag" , tmpstr[4]);
- model.setValue(rsltNode + "[" + currow + "]/refhval" , tmpstr[5]);
- model.setValue(rsltNode + "[" + currow + "]/reflval" , tmpstr[6]);
- if( isNull(tmpstr[7]) ){
- model.setValue(rsltNode + "[" + currow + "]/unitnm" , "-");
- }else{
- model.setValue(rsltNode + "[" + currow + "]/unitnm" , tmpstr[7]);
- }
- model.setValue(rsltNode + "[" + currow + "]/refseq" , currow );
- model.setValue(rsltNode + "[" + currow + "]/alertcdflag" , tmpstr[9]);
- if( isNull(tmpstr[10]) ){
- model.setValue(rsltNode + "[" + currow + "]/alertrem" , tmpstr[10]); //코드성 결과 값
- }else{
- model.setValue(rsltNode + "[" + currow + "]/alertrem" , "-"); //코드성 결과 값
- }
-
- //조건(IF)에 필요한 나열식 조건 정보 구성
- if( !isNull(tmpstr[5]) && !isNull(tmpstr[6]) ){
- alertCnts = tmpstr[6] + " ~ " + tmpstr[5];
- }else if( !isNull(tmpstr[5]) && isNull(tmpstr[6]) ){
- alertCnts = tmpstr[5] + " 이하";
- }else if( isNull(tmpstr[5]) && !isNull(tmpstr[6]) ){
- alertCnts = tmpstr[6] + " 이상";
- }else{
- if( !isNull(tmpstr[14]) ){
- alertCnts = testnm + " = " + tmpstr[14];
- }else{
- alertCnts = tmpstr[1] + " (" + testnm + ")";
- }
-
- alertCnts = alertCnts + " (단위:"+ tmpstr[7] +")";
- }
-
- if( getFlag == "IF" && ( !isNull(tmpstr[5]) || !isNull(tmpstr[6]) ) ){
- alertCnts = tmpstr[1] + "[" + testnm + "] : " + alertCnts;
- }
- model.setValue(rsltNode + "[" + currow + "]/alertcnts" , alertCnts);
- if( getFlag == "IF" ) model.setValue(rsltNode + "[" + currow + "]/alertprecondyn" , "Y");
- else model.setValue(rsltNode + "[" + currow + "]/alertprecondyn" , "N");
-
- model.setValue(rsltNode + "[" + currow + "]/checkyn" ,"Y" );
- model.setValue(rsltNode + "[" + currow + "]/m" ,"i" );
- if( !isNull(tmpstr[14]) ){
- model.setValue(rsltNode + "[" + currow + "]/refcnts" , tmpstr[14]); //코드성 결과 값
- }else{
- model.setValue(rsltNode + "[" + currow + "]/refcnts" , "-"); //코드성 결과 값
- }
- if( !isNull(tmpstr[15]) ){ //2차 조건 존재 여부에 따라 함께 저장
- model.setValue(rsltNode + "[" + currow + "]/scndcondcd" , tmpstr[15]);
- }else{
- model.setValue(rsltNode + "[" + currow + "]/scndcondcd" , "-");
- }
- /*
- if( isNull(tmpstr[14]) ) model.setValue(rsltNode + "[" + currow + "]/reftypecd" , '01'); //수치
- else model.setValue(rsltNode + "[" + currow + "]/reftypecd" , '01'); //수치
- */
- }
-
- changeYN = "Y";
-
- clearParameter("SPMMD06100_detlinfo");
- model.refresh();
-
- if( getFlag == "THEN" ) fAddCondRow(); //2009.03.14
- }
-
- }else if( condGrdCtrl.colRef("refhval") == condGrdCtrl.col || condGrdCtrl.colRef("reflval") == condGrdCtrl.col ) {
- changeYN = "Y";
- }
-
- if( changeYN == "Y" ){
- fSetupGrdStatus(condGrdCtrl, "/root/main/mntrdetlinfo/mntrdetllist", "m");
- model.setValue("/root/main/selinfo/openyn", "N");
- }
- }
-
- /**
- * @group :
- * @ver : 2009.01.18
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 조건을 더블클릭을 통해 수정하고자 할 때, 해당 팝업에 파라메터 전달
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fEditCondData(){
- fGetNewAttrInfo("U");
- }
-
- /**
- * @group :
- * @ver : 2009.01.18
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 조건 값 변경 시 체크
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fChngCondVal(){
- var sCol = condGrdCtrl.col;
- var sRow = condGrdCtrl.row;
-
- if ( sRow >= condGrdCtrl.fixedRows && sRow <= condGrdCtrl.rows ) {
- var refhval = model.getValue("/root/main/mntrdetlinfo/mntrdetllist[" + sRow + "]/refhval");
- var reflval = model.getValue("/root/main/mntrdetlinfo/mntrdetllist[" + sRow + "]/refhval");
- var refcnts = model.getValue("/root/main/mntrdetlinfo/mntrdetllist[" + sRow + "]/refcnts");
- var testcd = model.getValue("/root/main/mntrdetlinfo/mntrdetllist[" + sRow + "]/testcd");
- var testnm = model.getValue("/root/main/mntrdetlinfo/mntrdetllist[" + sRow + "]/testnm");
- var m = model.getValue("/root/main/mntrdetlinfo/mntrdetllist[" + sRow + "]/m");
-
- if( condGrdCtrl.colRef("refhval") == sCol ){
- if( !isNull(refcnts) && refcnts != "-" ){
- if( messageBox ( "내용이 존재합니다.\n내용을", "Q001" ) == "6" ){
- model.setValue("/root/main/mntrdetlinfo/mntrdetllist[" + sRow + "]/refcnts", "");
- if(m != "i") model.setValue("/root/main/mntrdetlinfo/mntrdetllist[" + sRow + "]/m", "u");
-
- if( inptTypeCd == "G" ){
- model.setValue("/root/main/mntrdetlinfo/mntrdetllist[" + sRow + "]/alertcnts", reflval + " ~ " + refhval);
- }
- }else{
- model.setValue("/root/main/mntrdetlinfo/mntrdetllist[" + sRow + "]/refhval", "");
- return;
- }
- }
- if(m != "i") model.setValue("/root/main/mntrdetlinfo/mntrdetllist[" + sRow + "]/m", "u");
- return;
- }else if( condGrdCtrl.colRef("reflval") == sCol ){
- if( !isNull(refcnts) && refcnts != "-" ){
- if( messageBox ( "내용이 존재합니다.\n내용을", "Q001" ) == "6" ){
- model.setValue("/root/main/mntrdetlinfo/mntrdetllist[" + sRow + "]/refcnts", "");
-
- if( inptTypeCd == "G" ){
- model.setValue("/root/main/mntrdetlinfo/mntrdetllist[" + sRow + "]/alertcnts", reflval + " ~ " + refhval);
- }
- }else{
- model.setValue("/root/main/mntrdetlinfo/mntrdetllist[" + sRow + "]/refhval", "");
- return;
- }
- }
- if(m != "i") model.setValue("/root/main/mntrdetlinfo/mntrdetllist[" + sRow + "]/m", "u");
- return;
-
- }else if( condGrdCtrl.colRef("refcnts") == sCol ){
- if( !isNull(refhval) || !isNull(reflval) ){
- if( messageBox ( "수치값이 존재합니다.\n수치값을", "Q001" ) == "6" ){
- model.setValue("/root/main/mntrdetlinfo/mntrdetllist[" + sRow + "]/reflval", "");
- model.setValue("/root/main/mntrdetlinfo/mntrdetllist[" + sRow + "]/refhval", "");
- model.setValue("/root/main/mntrdetlinfo/mntrdetllist[" + sRow + "]/hvalappflag", "N");
- model.setValue("/root/main/mntrdetlinfo/mntrdetllist[" + sRow + "]/lvalappflag", "N");
-
- if( inptTypeCd == "G" ){
- model.setValue("/root/main/mntrdetlinfo/mntrdetllist[" + sRow + "]/alertcnts", testnm+" = "+refcnts);
- }
- }else{
- model.setValue("/root/main/mntrdetlinfo/mntrdetllist[" + sRow + "]/refcnts", "");
- return;
- }
- }
-
- if(m != "i") model.setValue("/root/main/mntrdetlinfo/mntrdetllist[" + sRow + "]/m", "u");
- return;
-
- }else if( condGrdCtrl.colRef("hvalappflag") == sCol ){
- if( isNull(refhval) || reflval == "-" ){
- messageBox ( "값이 존재하지 않아 선택", "E001" ); //할 수 없습니다
- return;
- }
-
- }else if( condGrdCtrl.colRef("lvalappflag") == sCol ){
- if( isNull(reflval) || reflval == "-" ){
- messageBox ( "값이 존재하지 않아 선택", "E001" ); //할 수 없습니다
- return;
- }
-
- }
-
- if(m != "i"){
- model.setValue("/root/main/mntrdetlinfo/mntrdetllist[" + sRow + "]/m", "u");
- }
-
- condGrdCtrl.refresh();
- fSetupGrdStatus(condGrdCtrl, "/root/main/mntrdetlinfo/mntrdetllist", "m");
- }
-
- }
-
- /**
- * @group :
- * @ver : 2009.01.18
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 저장 시 필수값 체크
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fChkEssVal(){
- //검사코드 중복 체크 (2009.03.06 추가)
- var dupYN = "N";
- var ifCnt = instance1.selectNodes("/root/main/mntrpredetlinfo/mntrdetllist");
-
- for(var i=1; i<condGrdCtrl.rows; i++){
- var iTestCd = model.getValue("/root/main/mntrdetlinfo/mntrdetllist[" + i + "]/testcd");
- var iTestNm = model.getValue("/root/main/mntrdetlinfo/mntrdetllist[" + i + "]/testnm");
- var jTestCd = "";
- var jTestNm = "";
-
- //다른 then 항목과 비교
- for(var j=1; j<condGrdCtrl.rows; j++){
- jTestCd = model.getValue("/root/main/mntrdetlinfo/mntrdetllist[" + j + "]/testcd");
- jTestNm = model.getValue("/root/main/mntrdetlinfo/mntrdetllist[" + j + "]/testnm");
- if( !isNull(iTestCd) ){
- if( i != j && iTestCd == jTestCd ){
- condGrdCtrl.rowstyle(i, "data", "color") = "#ff0000";
- condGrdCtrl.rowstyle(j, "data", "color") = "#ff0000";
- dupYN = "Y";
- }
- }else{
- if( i != j && iTestNm == jTestNm ){
- condGrdCtrl.rowstyle(i, "data", "color") = "#ff0000";
- condGrdCtrl.rowstyle(j, "data", "color") = "#ff0000";
- dupYN = "Y";
- }
- }
- }
-
- //if 항목과 비교
- if( ifCnt.length > 0 ){
- for(var k=1; k<=ifCnt.length; k++){
- var kTestCd = model.getValue("/root/main/mntrpredetlinfo/mntrdetllist[" + k + "]/testcd");
- var kTestNm = model.getValue("/root/main/mntrpredetlinfo/mntrdetllist[" + k + "]/testnm");
-
-
- if( !isNull(iTestCd) && iTestCd == kTestCd ){
- condGrdCtrl.rowstyle(i, "data", "color") = "#ff0000";
- dupYN = "Y";
- }else if( iTestNm == kTestNm ){
- condGrdCtrl.rowstyle(i, "data", "color") = "#ff0000";
- dupYN = "Y";
- }
-
- }
- }
- }
- /*
- if( dupYN == "Y" ){
- messageBox ( "동일한 항목/코드는 중복으로 입력", "E001" ); //할 수 없습니다
- return false;
- }
- */
- //이상/이하 flag 체크
- var exceptNode1 = instance1.selectSingleNode("/root/main/mntrdetlinfo/mntrdetllist[reflval!='' and reflval!='-' and (lvalappflag!='U' and lvalappflag!='D')]/testnm");
- var exceptNode2 = instance1.selectSingleNode("/root/main/mntrdetlinfo/mntrdetllist[refhval!='' and refhval!='-' and (hvalappflag!='U' and hvalappflag!='D')]/testnm");
-
- var exceptNode3 = instance1.selectSingleNode("/root/main/mntrdetlinfo/mntrdetllist[reflval!='' and reflval!='-' and lvalappflag='U' and hvalappflag='U']/testnm");
- var exceptNode4 = instance1.selectSingleNode("/root/main/mntrdetlinfo/mntrdetllist[refhval!='' and refhval!='-' and lvalappflag='U' and hvalappflag='U']/testnm");
- var exceptNode5 = instance1.selectSingleNode("/root/main/mntrdetlinfo/mntrdetllist[reflval!='' and reflval!='-' and lvalappflag='D' and hvalappflag='D']/testnm");
- var exceptNode6 = instance1.selectSingleNode("/root/main/mntrdetlinfo/mntrdetllist[refhval!='' and refhval!='-' and lvalappflag='D' and hvalappflag='D']/testnm");
- if(exceptNode1 != null){
- messageBox ( exceptNode1.text + "의 이상/이하 여부를", "C002" ); //선택하세요.
- return false;
- }
- if(exceptNode2 != null){
- messageBox ( exceptNode2.text + "의 이상/이하 여부를", "C002" ); //선택하세요.
- return false;
- }
- if( exceptNode3 != null || exceptNode4 != null || exceptNode5 != null || exceptNode6 != null ){
- messageBox ( "동일한 이상/이하 여부를 선택", "E001" ); //할 수 없습니다
- return false;
- }
- if( inptTypeCd == "G" ){ //특수(CPG)
- if ( ! isRequiredControls("ipt_slipnm2", "rdo_cpgmntrflag2", "rdo_alertcondflag2", "rdo_alertgrde2") )
- return false;
- if( model.getValue("/root/main/mntrheaderinfo/alertcondflag") != "A" ){
- if ( ! isRequiredControls("ipt_alertcondcnt2") )
- return false;
- }
-
- }else{ //일반-관심슬립
- if(inptTypeCd != "C"){
- if ( ! isRequiredControls("ipt_slipnm", "rdo_sliptypecd") )
- return false;
- }else{
- if ( ! isRequiredControls("ipt_slipnm", "rdo_useyn", "rdo_alertcondflag", "ipt_alertcondcnt", "rdo_alertgrde", "rdo_alertgrde") )
- return false;
- }
- if( model.getValue("/root/main/mntrheaderinfo/alertcondflag") != "A" ){
- if ( ! isRequiredControls("ipt_alertcondcnt") )
- return false;
- }
-
- //권한관련 CHECK by sonjy 20100610
- if( model.getValue("/root/hidden/userauthinfoflag" ) == "M" ){
- if( model.getValue("/root/main/mntrheaderinfo/slipkindcd") == "D" &&
- ( isNull(model.getValue("/root/main/mntrheaderinfo/multiorddept")) || model.getValue("/root/main/mntrheaderinfo/multiorddept") == "-" ) ){
- return false;
- }
- if ( ! isRequiredControls("rdo_essnyn", "ipt_fromdd", "ipt_todd") ) return false;
- }
- }
-
- return true;
- }
-
- /**
- * @group :
- * @ver : 2009.01.18
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 슬립 데이터 저장
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSaveSlipMaster(){
- //슬립 삭제 데이터
- var selRow = slipGrdCtrl.row;
- var iRow = 0;
- if( slipGrdCtrl.isSelected(selRow) ){
- iRow = selRow;
- }
-
- //변경 데이터가 없으면 저장 안함
- var slipNo = model.getValue("/root/main/mntrheaderinfo/slipno");
- var statusChkFlag = "";
- var delSlipNode = instance1.selectNodes("/root/main/mntrinfo/mntrlist[status='D']");
- if(delSlipNode.length > 0){
- statusChkFlag = "D"; //수정/추가된 데이터는 없고, 삭제만 처리함
- }else{
-
- if( fChkEssVal() == false ) return false; //필수입력값 체크
-
- if( !isNull(slipNo) ){
- //헤더 정보
- var orgData = instance1.selectSingleNode("/root/main/mntrheaderinfo");
- model.copyNode("/root/main/cmprmntrinfo/mntrheaderinfo", "/root/main/mntrinfo/mntrlist[slipno='" + slipNo + "']");
- var curData = instance1.selectSingleNode("/root/main/cmprmntrinfo/mntrheaderinfo");
- //선행조건(IF)
- var orgPreData = instance1.selectSingleNode("/root/main/mntrpredetlinfo");
- var curPreData = instance1.selectSingleNode("/root/main/cmprpredetlinfo");
- //후행조건(Then)
- var chgData = instance1.selectSingleNode("/root/main/mntrdetlinfo/mntrdetllist[m!='-']");
-
- if( orgData.xml == curData.xml && orgPreData.xml == curPreData.xml && chgData == null ){
- messageBox ( "변경된", "E013" );
- return;
- }else{
- statusChkFlag = "I"; //추가/수정/ 혹은 추가/수정+삭제
- }
- }else{
- statusChkFlag = "I"; //추가/수정/ 혹은 추가/수정+삭제
- }
- }
-
- model.removeNodeset("/root/send/savedata/monlist");
- model.makeNode("/root/send/savedata/monlist");
-
- //삭제여부 체크
- if( delSlipNode.length > 0 ){
- copyNodeListType("/root/send/savedata/monlist", "/root/main/mntrinfo/mntrlist[status='D']", "after", model, model);
-
- }else{
- //detail info =>
- if( instance1.selectSingleNode("/root/main/mntrpredetlinfo/mntrdetllist") != null ){
- copyNodeListType("/root/send/savedata/monlist", "/root/main/mntrpredetlinfo/mntrdetllist", "after", model, model);
- model.removeNodeset("/root/send/savedata/monlist[m='d']"); //삭제데이터는 빼고 전송
- }
- copyNodeListType("/root/send/savedata/monlist", "/root/main/mntrdetlinfo/mntrdetllist", "after", model, model);
- model.removeNodeset("/root/send/savedata/monlist/mntrdetllist[m='i' and testnm='']"); //빈줄 삭제
-
- //header info =>
- //IF조건수 변경
- var ifCnt = model.getValue("/root/main/mntrheaderinfo/ifcondcnt");
- var ifLength = instance1.selectNodes("/root/main/mntrpredetlinfo/mntrdetllist").length;
- if( ifCnt == "A" ) model.setValue("/root/main/mntrheaderinfo/ifcondcnt", ifLength);
- //else if( ifCnt == "1" ) model.setValue("/root/main/mntrheaderinfo/ifcondcnt", "1");
- //else model.setValue("/root/main/mntrheaderinfo/ifcondcnt", "0");
-
- //저장할 Header 정보
- if( statusChkFlag == "I" ) model.setValue("/root/main/mntrheaderinfo/status", statusChkFlag); //'I' 입력
-
-
-
- model.makeNode("/root/send/savedata/monlist/mntrheaderinfo");
- model.copyNode("/root/send/savedata/monlist/mntrheaderinfo", "/root/main/mntrheaderinfo");
-
- //권한정보추가 by sonjy 20100610
- model.makeValue("/root/send/savedata/monlist/mntrheaderinfo/authinfo", model.getValue("/root/hidden/userauthinfoflag" ));
-
-
- }
-
- if( !submit("TXMMD06101", true) ) return false;
-
- //by sonjy 20100610 add
- fGetSlipList();
-
- //fAddSlipInfo();
- model.refresh();
-
- if(iRow <= 0){
- iRow = slipGrdCtrl.rows - 1;
- }
- slipGrdCtrl.select(iRow, 1) = true;
- slipGrdCtrl.row = slipGrdCtrl.selectedRow(0);
- condGrdCtrl.rebuildStyle();
- //model.removeNodeset("/root/main/mntrdetlinfo/mntrdetllist[m='d']");
- //condGrdCtrl.refresh();
- fSelSlipInfo();
-
- //fAddCondRow(); //2009.03.14
- }
-
- /**
- * @group :
- * @ver : 2009.01.18
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 신규 슬립정보 (신규 버튼 클릭 시)
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fAddSlipInfo(){
- var iRow = slipGrdCtrl.row;
- if(iRow > 0){
- slipGrdCtrl.isselected(iRow) = false;
- }
-
- model.resetInstanceNode("/root/main/mntrheaderinfo");
- model.removeNodeset("/root/main/mntrpredetlinfo/mntrdetllist");
- model.removeNodeset("/root/main/mntrdetlinfo/mntrdetllist");
-
- if( inptTypeCd == "G" ){
- model.setFocus("ipt_slipnm2");
- model.setValue("/root/main/mntrheaderinfo/cpgno", model.getValue("/root/main/cond/cpgno"));
- model.setValue("/root/main/mntrheaderinfo/cpghistseq", model.getValue("/root/main/cond/cpghistseq"));
- //model.setValue("/root/main/mntrheaderinfo/stepfromno", "");
- //model.setValue("/root/main/mntrheaderinfo/steptono", "");
- model.setValue("/root/main/mntrheaderinfo/stepno", "");
- model.setValue("/root/main/mntrheaderinfo/cpgmntrflag", "");
- }else{
- if(inptTypeCd == "C"){
- model.setValue("/root/main/mntrheaderinfo/alertcondflag", "A");
- }
- model.setValue("/root/main/mntrheaderinfo/cpgmntrflag", "-");
- model.setValue("/root/main/mntrheaderinfo/cpgno", "0");
- model.setValue("/root/main/mntrheaderinfo/cpghistseq", "0");
- //model.setValue("/root/main/mntrheaderinfo/stepfromno", "0");
- //model.setValue("/root/main/mntrheaderinfo/steptono", "0");
- model.setValue("/root/main/mntrheaderinfo/stepno", "0");
-
- model.setFocus("ipt_slipnm");
-
- }
- model.setValue("/root/main/mntrheaderinfo/slipkindcd", "P");
- model.setValue("/root/main/mntrheaderinfo/sliptypecd", inptTypeCd);
- model.setValue("/root/main/mntrheaderinfo/ifcondcnt", "");
- model.setValue("/root/main/mntrheaderinfo/thencondcnt", "");
-
- model.setValue("/root/main/selinfo/openyn", "N");
-
- //CPG 속성이 아닐 경우에만 권한관련 초기화 처리. by sonjy 20100610
- if( inptTypeCd != "G") {
- fInitAuthInfo();
- }
-
- model.refresh();
- slipGrdCtrl.select(1,1, slipGrdCtrl.rows-1, slipGrdCtrl.cols-1) = false;
- fSetupControl();
- }
-
- /**
- * @group :
- * @ver : 2009.01.18
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 기존 슬립정보 삭제 (삭제 버튼 클릭 시)
- * @param : btnYN (버튼 클릭 이벤트를 통해 호출된 경우 'Y', 그렇지 않은경우 '' or 'N')
- * @return :
- * @---------------------------------------------------
- */
- function fDelSlipInfo(btnYN){
- if( isNull(btnYN) ) btnYN = "N";
-
- var iRow = slipGrdCtrl.row;
- if( !(iRow > 0) ){
- messageBox ( "삭제할 데이터를", "C002" ); //유효하지 않음
- return;
- }
-
-
- if ( iRow >= slipGrdCtrl.fixedRows && iRow <slipGrdCtrl.rows ) {
- /*
- var status = model.getValue("/root/main/mntrinfo/mntrlist[" + iRow + "]/status");
- if( status != "D" ){
- model.setValue("/root/main/mntrinfo/mntrlist[" + iRow + "]/status", "D");
- }else{
- model.setValue("/root/main/mntrinfo/mntrlist[" + iRow + "]/status", "-");
- }
- slipGrdCtrl.refresh();
- }
- */
- model.setValue("/root/main/mntrinfo/mntrlist[" + iRow + "]/status", "D");
- if( messageBox ( "정말로 슬립 정보를", "Q001" ) == "6" ){
- //copyNodeListType("/root/send/savedata/monlist", "/root/main/mntrinfo/mntrlist[status='D']", "after", model, model);
- fSaveSlipMaster();
- }else{
- model.setValue("/root/main/mntrinfo/mntrlist[" + iRow + "]/status", "-");
- slipGrdCtrl.refresh();
- }
- }
- }
-
- /**
- * @group :
- * @ver : 2009.01.18
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 각종 컨트롤 속설 설정
- * @param : ctrlFlag (특정 컨트롤만 변경 시 컨트롤 명칭)
- * @return :
- * @---------------------------------------------------
- */
- function fSetupControl( ctrlFlag ){
- var allChng = "N";
- if( isNull(ctrlFlag) ) allChng = "Y";
-
- if( allChng == "Y" || ctrlFlag == "rdo_alertcondflag" ){
- if( model.getValue("/root/main/mntrheaderinfo/alertcondflag") == "A" ){
- ipt_alertcondcnt.disabled = true;
- ipt_alertcondcnt2.disabled = true;
- }else{
- ipt_alertcondcnt.disabled = false;
- ipt_alertcondcnt2.disabled = false;
- }
- }
-
- if( allChng == "Y" || ctrlFlag == "rdo_cpgmntrflag2" ){
- if( model.getValue("/root/main/mntrheaderinfo/cpgmntrflag") == "S" ){
- model.copyNode("/root/init/MT0505", "/root/init/MST0505");
-
- cmb_alertcdflag2.disabled = true;
- btn_alertcdflag2.disabled = true;
- btn_delalertcdflag2.disabled = true;
- ipt_alertrem2.disabled = true;
- rdo_ifcondcnt.disabled = true;
- }else{
- model.copyNode("/root/init/MT0505", "/root/init/MMT0505");
-
- cmb_alertcdflag2.disabled = false;
- btn_alertcdflag2.disabled = false;
- btn_delalertcdflag2.disabled = false;
- ipt_alertrem2.disabled = false;
- rdo_ifcondcnt.disabled = false;
- }
- }
-
- if( ctrlFlag == "ipt_alertcondcnt" ){
- var condCnt = instance1.selectNodes("/root/main/mntrdetlinfo/mntrdetllist[m!='d' and testcd!='']");
- var inptTxt = model.getValue("/root/main/mntrheaderinfo/thencondcnt");
- var inptCnt = parseInt( inptTxt );
- if( !isNull(inptTxt) ){
- if( condCnt.length < inptCnt ){
- messageBox ( "전체 조건 수보다 큽니다.\n입력 데이터가", "E016" ); //유효하지 않음
- return;
- }
- model.setValue("/root/main/mntrheaderinfo/alertcondflag", "P");
- }
- }
-
- if( allChng == "Y" || ctrlFlag == "rdo_alertgrde" ){
- var grdeCd = model.getValue("/root/main/mntrheaderinfo/alertgrde");
- if( grdeCd == "M04" || grdeCd == "C04" ){
- ipt_alertgrdecnts.disabled = false;
- }else{
- ipt_alertgrdecnts.disabled = true;
- }
- }
- /*
- if( ctrlFlag == "cmb_alertcdflag2" ){
- if( !isNull(model.getValue("/root/main/mntrpredetlinfo/mntrdetllist/alertcdflag")) ){
- model.setValue("", "");
- }else{
-
- }
- }
- */
- }
-
- /**
- * @group :
- * @ver : 2009.01.18
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 성별, 연령, 혈당간호 기록 등 정보 입력 시 값 전달
- * @param : iptFlag (그룹-팝업으로 특정 값 입력 시, 값이 들어가는 인스턴스 명칭 : 성별, 나이, 혈당간호기록)
- * @return :
- * @---------------------------------------------------
- */
- function fInputCondVal( iptFlag ){
- var iptGrCtrl = document.controls("grp_" + iptFlag);
- var unitCtrl = document.controls("cap_" + iptFlag + "unit");
- var nmCtrl = document.controls("cap_" + iptFlag + "nm");
- var ref1 = "";
- var ref2 = "";
- var ref = "";
- var reflval = "";
- var refhval = "";
- var refcd = "";
- var flagnm = nmCtrl.attribute("text");
- var unitnm = unitCtrl.attribute("text");
- var alertcdflag = model.getValue("/root/main/selinfo/alertcdflag");
- var alertprecondyn = model.getValue("/root/main/selinfo/alertprecondyn");
- var lvalappflag = model.getValue("/root/main/selinfo/condlvalflag");
- var hvalappflag = model.getValue("/root/main/selinfo/condhvalflag");
- var getFlag = "";
- if( alertprecondyn == "Y" ) getFlag = "IF";
- else getFlag = "THEN";
- //var alertrem = model.getValue("");
-
- if( iptFlag == "condsexflag" ){
- ref = "/root/main/selinfo/" + iptFlag;
- }else if( iptFlag == "condageval" ){
- ref1 = "/root/main/selinfo/condagelval";
- ref2 = "/root/main/selinfo/condagehval";
- }else if( iptFlag == "condnurtprval" ){
- ref1 = "/root/main/selinfo/condnurtprlval";
- ref2 = "/root/main/selinfo/condnurtprhval";
- }else if( iptFlag == "condroomval" ){
- //## 기존 팝업이 아닌 그리드 선택으로 변경 2010.05.06 KHJ
- ref = "/root/main/selinfo/" + iptFlag;
- }
- if( !isNull(ref1) ) reflval = model.getValue(ref1); //하한치~
- if( !isNull(ref2) ) refhval = model.getValue(ref2); //상한치
- if( !isNull(ref) ) refcd = model.getValue(ref); //특정 결과 코드 (성별, +/- 등..)
-
- if( isNull(reflval) ) lvalappflag = "N";
- if( isNull(refhval) ) hvalappflag = "N";
-
- if( isNull(model.getValue(ref)) && isNull(model.getValue(ref1)) && isNull(model.getValue(ref2)) ){
- messageBox ( "", "E013" ); //데이터 없음
- return;
- }
-
- //값을 조건 인스턴스에 copy (코드 마스터에 나이 성별 혈당간호기록은 어떻게 입력되는가...?? )
- var header = "testitemcd▦testcd▦testnm▦hvalappflag▦lvalappflag▦refhval▦reflval▦unitnm▦refseq▦alertcdflag▦alertrem▦alertprecondyn▦checkyn▦m▦refcnts";
- var data = "▩▦▦"+flagnm+"▦"+hvalappflag+"▦"+lvalappflag+"▦"+refhval+"▦"+reflval+"▦"+unitnm+"▦▦"+alertcdflag+"▦▦"+alertprecondyn+"▦y▦i▦"+refcd;
- setParameter("SPMMD06100_detlinfo", header + data);
- iptGrCtrl.visible = false;
- fGetNewAttrInfo(getFlag);
- }
-
- /**
- * @group :
- * @ver : 2009.03
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc :
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fInptCncl(){
- grp_condageval.visible = false;
- grp_condnurtprval.visible = false;
- grp_condsexflag.visible = false;
- grp_condroomval.visible = false;
- model.setValue("/root/main/selinfo/alertcdflag", "");
- model.setValue("/root/main/selinfo/alertprecondyn", "");
- model.setValue("/root/main/selinfo/openyn", "N");
- }
-
- /**
- * @group :
- * @ver : 2009.03
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc :
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fAddSlipList() {
- var slipno = model.getValue("/root/main/mntrheaderinfo/slipno");
- if (isNull(slipno)) { // 슬립번호가 없는 경우만 복사 슬립번호가 있을 경우는 조건 THEN만 복사함
- model.copyNode("/root/main/mntrheaderinfo", "/root/temp/mntrlist");
- fSetupControl("rdo_cpgmntrflag2");
- model.setValue("/root/main/mntrheaderinfo/cpgno" , model.getValue("/root/main/cond/cpgno"));
- model.setValue("/root/main/mntrheaderinfo/cpghistseq" , model.getValue("/root/main/cond/cpghistseq"));
- model.setValue("/root/main/mntrheaderinfo/slipno" , "");
- model.setValue("/root/main/mntrheaderinfo/sliphistno" , "");
- var preCondNode = instance1.selectSingleNode("/root/temp/mntrdetllist[alertprecondyn='Y']");
- if( preCondNode != null ){
- model.copyNode("/root/main/mntrpredetlinfo/mntrdetllist","/root/temp/mntrdetllist[alertprecondyn='Y']");
- model.removenode(preCondNode);
- }else{
- model.resetInstanceNode("/root/main/mntrpredetlinfo/mntrdetllist");
- }
- }
- var mntrList = instance1.selectNodes("/root/temp/mntrdetllist");
- if (mntrList.length > 0) {
- for (i =0; i < mntrList.length ; i++ ) {
- mntrNode = mntrList.item(i);
- model.setValue(mntrNode.selectSingleNode("m"), "i");
- }
- }
- copyNodeListType("/root/main/mntrdetlinfo", "/root/temp/mntrdetllist", "after");
- model.refresh();
- for (i = 0; i < grd_slipcondlist2.rows ; i++) {
- var m = model.getValue("/root/main/mntrdetlinfo/mntrdetllist[" + i + "]/m");
- if (m == "i") {
- grd_slipcondlist2.rowStatus(i) = 1;
- }
- }
-
- //설정된 스텝번호를 파라메터로 셋팅해서 outline의 아이콘 불이 들어오도록 (2009.04.14)
- setParameter("SPMQP00300_before_stepno", "0");
- setParameter("SPMQP00300_after_stepno", model.getValue("/root/main/mntrheaderinfo/stepno"));
- }
-
- /**
- * @group :
- * @ver : 2009.04
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 선택한 IF 조건을 삭제한다
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fDelInCondInfo(){
- model.resetInstanceNode("/root/main/selalertcdflag");
-
- var selPreTestCds = model.getValue("/root/main/selpretestcd");
- if( !isNull(selPreTestCds) ){
- var selPreTestCd = selPreTestCds.split("▦");
- for( var i=0; i<selPreTestCd.length; i++){
- model.removeNodeset("/root/main/mntrpredetlinfo/mntrdetllist[testnm='"+selPreTestCd[i]+"']");
- }
-
- //cmb_alertcdflag2.refresh();
- ipt_alertrem.refresh();
- ipt_alertrem2.refresh();
- model.setValue("/root/main/selpretestcd", "");
- }
- }
-
-
- /**
- * @group :
- * @ver : 2010.05
- * @by : 김호준
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 선택한 병실을 중복 가능하도록 추가함.
- * @param : 추가하려는 병실 명
- * @return :
- * @---------------------------------------------------
- */
- function fAddRoomInfo(addroom) {
- var roomInfo = model.getValue("/root/main/selinfo/condroomval");
- var dupCD = "N";
-
- if (roomInfo != "" ) {
- // 중복값 체크
- for (var i=0 ; i<roomInfo.length ; i++) {
- if (addroom == roomInfo.substring(i, i+addroom.length)) dupCD = "Y";
- }
- if (dupCD == "N") roomInfo = roomInfo + ", " + addroom;
- } else {
- roomInfo = addroom;
- }
- model.setValue("/root/main/selinfo/condroomval", roomInfo);
- ipt_roomval.refresh();
- }
-
- /**
- * @group :
- * @ver : 2010.06.10
- * @by : sonjy
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 권한check 및 권한에 따른 setting
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSetAuthInfo(){
- /*=======================================================
- * by sonjy 20100610
- * 1. 진료과 multi select 관련 진료과조회 및 default값 추가
- * 2. 권한구분에 따른 setting
- =========================================================*/
- model.makeNode("/root/send/reqdata");
- mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept/orddeptlist" , "A"); //부서코드 콤보(외래+입원)
- var nodelist = model.instance1.selectNodes( "/root/init/orddept/orddeptlist/dept" );
- if( nodelist != null && nodelist.length > 0 ) chx_multiorddept.attribute("rows") = nodelist.length ;
-
- model.makeNode("/root/init/search/orddept/orddeptlist" );
- model.copyNode( "/root/init/search/orddept/orddeptlist", "/root/init/orddept/orddeptlist" );
- model.makeNode("/root/init/search/slipkindcdlist");
- model.copyNode("/root/init/search/slipkindcdlist", "/root/init/slipkindcdlist");
-
- search_fromdd.value = getCurrentDate().toDate().getAddDate(-3,"M").getDateFormat();
- search_todd.value = getCurrentDate() ;
-
-
- //master 권한 부서 처리
- mmbfGetHardCodeInfoNm("/root/hidden/authinfo", "/root/hidden/authinfo", "223");
- var authdeptlst = model.instance1.selectNodes("/root/hidden/authinfo/hardcd[hardcd='" + getUserInfo("dutplcecd") + "' and cdseqno > 200 ]");
- if( authdeptlst != null && authdeptlst.length > 0 ){
- model.makeValue("/root/hidden/userauthinfoflag", "M" );
- }
-
- addComboItem("cmb_search_slipkindcd" , "범위-전체", "" );
- if( model.getValue("/root/hidden/userauthinfoflag") == "M" ){
- cmb_search_useyn.disabled = false;
- rdo_essnyn.disabled = false ;
- rdo_sliptypecd.disabled = false ;
- cmb_search_orddept.disabled = false ;
- cmb_search_slipkindcd.disabled = false ;
- addComboItem("cmb_search_orddept" , "진료과-전체", "" );
- } else {
- model.makeValue("/root/hidden/userauthinfoflag", "U" );
- cmb_search_orddept.value = getUserInfo("dutplcecd") ;
- }
-
- fInitAuthInfo();
- }
-
- /**
- * @group :
- * @ver : 2010.06.10
- * @by : sonjy
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : grid size 조정
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSetSlipListSizeEx(){
- var btntxt = btn_resizegrid.attribute("text");
- var orgwidth = 285 ;
- if( btntxt == ">>" ){
- grd_sliplist.attribute("width") = orgwidth + 538 ;
- btn_resizegrid.attribute("text") = "<<";
- } else {
- grd_sliplist.attribute("width") = orgwidth;
- btn_resizegrid.attribute("text") = ">>";
- }
- }
-
- /**
- * @group :
- * @ver : 2010.06.10
- * @by : sonjy
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 권한check 및 권한에 따른 초기화
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fInitAuthInfo(){
- if( model.getValue("/root/hidden/userauthinfoflag" ) == "M" ){
- model.makeValue("/root/main/mntrheaderinfo/slipkindcd", "A");
- }else {
- model.makeValue("/root/main/mntrheaderinfo/slipkindcd", "P");
- }
- model.makeValue("/root/main/mntrheaderinfo/essnyn" , "Y");
- model.makeValue("/root/main/mntrheaderinfo/useyn" , "Y");
- model.makeValue("/root/main/mntrheaderinfo/fromdd" , getCurrentDate() );
- model.makeValue("/root/main/mntrheaderinfo/todd" , "99991231");
- model.makeValue("/root/main/mntrheaderinfo/recvrflag" , "1" ) ;
- model.makeValue("/root/main/mntrheaderinfo/alertgrde" , "M01" ) ;
- fSetCtrlAuth();
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,823;1,286;" style="margin-left:8; ">
- <switch id="switch1" style="left:0px; top:0px; width:825px; height:560px; border-style:hidden; ">
- <case id="basic" selected="true">
- <caption id="caption8" class="cell_1" visibility="hidden" style="left:287px; top:325px; width:65px; height:23px; ">알람 조건</caption>
- <caption id="caption20" class="cell_1" style="left:287px; top:507px; width:65px; height:49px; ">
- <![CDATA[알람 후
- 권고]]>
- </caption>
- <line id="line5" class="line_2" style="x1:287px; y1:76px; x2:823px; y2:76px; "/>
- <line id="line8" class="line_2" style="x1:287px; y1:556px; x2:823px; y2:556px; "/>
- <line id="lne_sliplist" class="line_1" style="x1:0px; y1:0px; x2:283px; y2:0px; "/>
- <line id="lne_slipinfo" class="line_1" style="x1:287px; y1:0px; x2:823px; y2:0px; "/>
- <input id="ipt_slipnm" ref="/root/main/mntrheaderinfo/slipnm" navindex="1" class="input_essential" style="left:354px; top:6px; width:468px; height:19px; "/>
- <button id="btn_addslipcond" class="btn2_letter2" style="left:736px; top:157px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fAddCondRow();
- ]]>
- </script>
- </button>
- <button id="btn_delslipcond" class="btn2_letter2" style="left:780px; top:157px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDelCondRow();
- ]]>
- </script>
- </button>
- <select1 id="rdo_alertcondflag" ref="/root/main/mntrheaderinfo/alertcondflag" navindex="2" overflow="visible" appearance="full" cols="2" cellspacing="10" style="left:430px; top:421px; width:150px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체충족</label>
- <value>A</value>
- </item>
- <item>
- <label>일부충족</label>
- <value>P</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetupControl("rdo_alertcondflag");
- ]]>
- </script>
- </select1>
- <select1 id="rdo_alertgrde" ref="/root/main/mntrheaderinfo/alertgrde" navindex="2" overflow="visible" appearance="full" cols="2" cellspacing="30" style="left:354px; top:446px; width:216px; height:40px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/M0517/M0517">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetupControl("rdo_alertgrde");
- ]]>
- </script>
- </select1>
- <input id="ipt_alertgrdecnts" ref="/root/main/mntrheaderinfo/actcnts" class="input_essential" disabled="true" style="left:354px; top:484px; width:468px; height:19px; "/>
- <textarea id="txt_guidedocucnts" ref="/root/main/mntrheaderinfo/guidedocucnts" scroll="autovscroll" style="left:354px; top:508px; width:376px; height:47px; "/>
- <caption id="cap_sliptypecd" class="cell_1" visibility="hidden" style="left:287px; top:29px; width:65px; height:23px; ">분류 구분</caption>
- <select1 id="rdo_sliptypecd" ref="/root/main/mntrheaderinfo/slipkindcd" navindex="2" visibility="visible" disabled="true" overflow="visible" appearance="full" cols="3" style="left:354px; top:30px; width:171px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/slipkindcdlist/slipkindcd">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- chx_multiorddept.visible = false ;
- if( model.getValue("/root/hidden/userauthinfoflag" ) == "M" ){
- var slipkindcd = model.getValue("/root/main/mntrheaderinfo/slipkindcd") ;
- if( slipkindcd == "D" ) {
- btn_multiorddept.disabled = false;
- } else {
- btn_multiorddept.disabled = true ;
- if( slipkindcd == "P" ) {
- messageBox("관리자는 개인용 set을 만들수 ", "I004");
- model.makeValue("/root/main/mntrheaderinfo/slipkindcd", "A") ;
- rdo_sliptypecd.refresh();
- return ;
- }
- }
- }
- ]]>
- </script>
- </select1>
- <line id="line1" class="line_2" style="x1:287px; y1:27px; x2:823px; y2:27px; "/>
- <line id="line2" class="line_2" style="x1:287px; y1:150px; x2:823px; y2:150px; "/>
- <line id="line3" class="line_2" style="x1:287px; y1:443px; x2:823px; y2:443px; "/>
- <line id="line4" class="line_2" style="x1:287px; y1:505px; x2:823px; y2:505px; "/>
- <caption id="cap_alertcondcntunit" style="left:580px; top:421px; width:123px; height:20px; ">( 개/전체)</caption>
- <input id="ipt_alertcondcnt" ref="/root/main/mntrheaderinfo/thencondcnt" class="input_default" format="#####" style="left:591px; top:420px; width:55px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetupControl("ipt_alertcondcnt");
- ]]>
- </script>
- </input>
- <caption id="cap_alertcondcnt" class="cell_1" visibility="hidden" style="left:764px; top:421px; width:55px; height:20px; ">충족갯수</caption>
- <caption id="cap_alertgrde" class="cell_1" style="left:287px; top:445px; width:65px; height:61px; ">알람 방법</caption>
- <caption id="cap_slipnm" class="cell_1" style="left:287px; top:5px; width:65px; height:23px; ">제목</caption>
- <caption id="cap_condlist" class="cell_1" style="left:287px; top:152px; width:65px; height:292px; ">
- <![CDATA[조건
- [THEN]]]>
- </caption>
- <datagrid id="grd_slipcondlist" nodeset="/root/main/mntrdetlinfo/mntrdetllist" caption="구분^testitemcd^코드^항목명^hvalappflag^lvalappflag^하한치^하한치^상한치^상한치^내용^단위^caption1^refseq^alertrem^alertprecondyn^checkyn^m" colwidth="63, 5, 5, 135, 5, 5, 42, 30, 42, 30, 48, 39, 5, 5, 5, 5, 5, 5" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" colsep="^" tooltip="true" style="left:354px; top:178px; width:468px; height:239px; ">
- <col ref="alertcdflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/M0505/M0505">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="testitemcd" visibility="hidden"/>
- <col ref="testcd" visibility="hidden"/>
- <col ref="testnm"/>
- <col ref="lvalappflag" visibility="hidden"/>
- <col ref="hvalappflag" visibility="hidden"/>
- <col class="input_default" ref="reflval" type="input" style="text-align:right; "/>
- <col ref="lvalappflag" type="combo">
- <choices>
- <item>
- <label>이상</label>
- <value>U</value>
- </item>
- <item>
- <label>이하</label>
- <value>D</value>
- </item>
- <item>
- <label/>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col class="input_default" ref="refhval" type="input" style="text-align:right; "/>
- <col ref="hvalappflag" type="combo">
- <choices>
- <item>
- <label>이상</label>
- <value>U</value>
- </item>
- <item>
- <label>이하</label>
- <value>D</value>
- </item>
- <item>
- <label/>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="refcnts" type="input"/>
- <col ref="unitnm"/>
- <col ref="reftypecd" visibility="hidden"/>
- <col ref="refseq" visibility="hidden"/>
- <col ref="alertrem" visibility="hidden"/>
- <col ref="alertprecondyn" visibility="hidden"/>
- <col ref="checkyn" visibility="hidden"/>
- <col ref="m" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetNewAttrInfo("THEN");
- fChngCondVal();
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- //by sonjy 20100705 rule 적용
- if( model.getValue("/root/main/cond/inpttypecd") != "Q" ) {
- setPopupMenu("grd_slipcondlist", false, "/root/main/condpoplist/menu/item", "name", "func");
- }
- else {
- if( bDisableMode == "false" ) setPopupMenu("grd_slipcondlist", false, "/root/main/condpoplist/menu/item", "name", "func");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- window.setPopupMenu(false);
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fGetNewAttrInfo("THEN");
- ]]>
- </script>
- </datagrid>
- <caption id="cap_useyn" class="cell_1" style="left:287px; top:29px; width:65px; height:23px; ">적용범위</caption>
- <select1 id="rdo_useyn" ref="/root/main/mntrheaderinfo/useyn" navindex="2" overflow="visible" appearance="full" cols="2" cellspacing="10" style="left:355px; top:55px; width:81px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption2" class="cell_1" style="left:287px; top:78px; width:65px; height:73px; ">조건[IF]</caption>
- <select1 id="rdo_cpgmntrflag" ref="/root/main/selalertcdflag" appearance="minimal" style="left:354px; top:79px; width:161px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/MI0505/M0505">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetupControl("cmb_alertcdflag2");
- ]]>
- </script>
- </select1>
- <button id="btn_cpgmntrflag" navindex="4" class="icon_search" style="left:480px; top:104px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetNewAttrInfo("IF");
- ]]>
- </script>
- </button>
- <button id="btn_delalertcdflag" class="icon_minus" style="left:501px; top:103px; width:13px; height:15px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDelInCondInfo();
- ]]>
- </script>
- </button>
- <caption id="caption4" class="cell_1" style="left:354px; top:419px; width:65px; height:23px; ">충족 조건</caption>
- <line id="line6" class="line_2" style="x1:354px; y1:123px; x2:515px; y2:123px; "/>
- <select id="ipt_alertrem" ref="/root/main/selpretestcd" overflow="scroll" scroll="autovscroll" appearance="compact" sep="▦" style="left:517px; top:79px; width:305px; height:69px; ">
- <choices>
- <itemset nodeset="/root/main/mntrpredetlinfo/mntrdetllist">
- <label ref="alertcnts"/>
- <value ref="testnm"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- //by sonjy 20100705 rule 적용
- if( model.getValue("/root/main/cond/inpttypecd") == "Q" ) {
- if( bDisableMode == "false" ) setPopupMenu("ipt_alertrem", false, "/root/main/precondpoplist/menu/item", "name", "func");
- }
- ]]>
- </script>
- </select>
- <select1 id="rdo_ifcondcnt" ref="/root/main/mntrheaderinfo/ifcondcnt" navindex="2" overflow="visible" appearance="full" cols="2" cellspacing="10" style="left:420px; top:129px; width:97px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>AND</label>
- <value>A</value>
- </item>
- <item>
- <label>OR</label>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetupControl("rdo_alertcondflag");
- ]]>
- </script>
- </select1>
- <caption id="cap_ifcondcnt" class="cell_1" style="left:354px; top:126px; width:65px; height:23px; ">충족 조건</caption>
- <caption id="caption5" class="cell_1" style="left:572px; top:445px; width:68px; height:38px; ">수신 대상</caption>
- <select1 id="rdo_recvrflag" ref="/root/main/mntrheaderinfo/recvrflag" overflow="visible" appearance="full" cols="1" cellspacing="20" vcellspacing="3" style="left:645px; top:444px; width:160px; height:40px; border-style:none; ">
- <choices>
- <item>
- <label>담당자</label>
- <value>1</value>
- </item>
- <item>
- <label>환자</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <caption id="cap_view" visibility="hidden" style="left:574px; top:420px; width:247px; height:85px; background-color:#ffffff; border-style:solid; ">
- <![CDATA[문구 구성 예 )
- [긴급] #3# 환자의 #6# 검사 결과는
- #8# 입니다.!
- 사용법 ) 직접 입력 및 콤보박스에서 선택]]>
- </caption>
- <button id="btn_guide" class="btn2_letter6" style="left:735px; top:509px; width:86px; height:19px; text-align:center; ">
- <caption>범례</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var value = cap_view.attribute("visibility")
- if (value == "hidden") {
- cap_view.visible = true;
- } else {
- cap_view.visible = false;
- }
- ]]>
- </script>
- </button>
- <select1 id="cmb_comnusewrdcd" ref="/root/main/comnusewrdcd" appearance="minimal" style="left:734px; top:533px; width:87px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/M0606/M0606">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var comnusewrdcd = model.getValue("/root/main/comnusewrdcd");
- var guidedocucnts = model.getValue("/root/main/mntrheaderinfo/guidedocucnts");
- model.setValue("/root/main/mntrheaderinfo/guidedocucnts", guidedocucnts + "#" + comnusewrdcd + "#");
- txt_guidedocucnts.refresh();
- ]]>
- </script>
- </select1>
- <line id="line7" class="line_2" style="x1:286px; y1:52px; x2:822px; y2:52px; "/>
- <caption id="caption6" class="cell_1" style="left:287px; top:54px; width:65px; height:23px; ">사용 여부</caption>
- <button id="btn_multiorddept" navindex="4" class="icon_search" disabled="true" style="left:520px; top:30px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( model.getValue("/root/hidden/userauthinfoflag" ) == "M" ){
- if( chx_multiorddept.visible == true ) chx_multiorddept.visible = false ;
- else {
- chx_multiorddept.visible = true ;
- }
- }
- ]]>
- </script>
- </button>
- <caption id="caption7" class="cell_1" style="left:540px; top:29px; width:65px; height:23px; ">필수구분</caption>
- <select1 id="rdo_essnyn" ref="/root/main/mntrheaderinfo/essnyn" navindex="2" disabled="true" overflow="visible" appearance="full" cols="2" cellspacing="10" style="left:608px; top:30px; width:117px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>필수</label>
- <value>Y</value>
- </item>
- <item>
- <label>선택</label>
- <value>N</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //by sonjy 20100610 필수일 경우 사용여부 'Y'로 SETTING
- if( model.getValue("/root/main/mntrheaderinfo/essnyn" ) == "Y" ){
- model.makeValue("/root/main/mntrheaderinfo/useyn", "Y" );
- rdo_useyn.refresh();
- }
- ]]>
- </script>
- </select1>
- <caption id="caption9" class="cell_1" style="left:540px; top:54px; width:65px; height:23px; ">적용일자</caption>
- <input id="ipt_fromdd" ref="/root/main/mntrheaderinfo/fromdd" class="input_default" inputtype="date" style="left:608px; top:55px; width:100px; height:19px; "/>
- <input id="ipt_todd" ref="/root/main/mntrheaderinfo/todd" class="input_default" inputtype="date" style="left:722px; top:55px; width:100px; height:19px; "/>
- <caption id="caption10" class="search_no_b" style="left:710px; top:56px; width:12px; height:17px; ">~</caption>
- <select id="chx_multiorddept" ref="/root/main/mntrheaderinfo/multiorddept" visibility="hidden" overflow="scroll" scroll="auto" appearance="full" cols="2" sep="^" style="left:487px; top:55px; width:335px; height:210px; background-color:#ffffff; border-color:#0000ff; border-style:solid; ">
- <choices>
- <itemset nodeset="/root/init/orddept/orddeptlist/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select>
- <datagrid id="grd_sliplist" nodeset="/root/main/mntrinfo/mntrlist" autoresize="true" caption="상태^구분^제목^slipno^sliphistno^필수^사용^적용일^종료일^생성일^사용부서" colwidth="0, 46, 216, 0, 0, 42,100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:0px; top:90px; width:285px; height:465px; ">
- <col ref="status" type="combo" disabled="true" style="text-align:center; ">
- <choices>
- <item>
- <label>추가</label>
- <value>I</value>
- </item>
- <item>
- <label>수정</label>
- <value>U</value>
- </item>
- <item>
- <label>삭제</label>
- <value>D</value>
- </item>
- <item>
- <label>-</label>
- <value>-</value>
- </item>
- </choices>
- </col>
- <col ref="slipkindcd" type="combo" disabled="true">
- <choices>
- <itemset nodeset="/root/init/slipkindcdlist/slipkindcd">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="slipnm"/>
- <col ref="slipno"/>
- <col ref="sliphistno"/>
- <col ref="essnyn"/>
- <col ref="useyn"/>
- <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="cretdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="multiorddeptnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fSelSlipInfo();
- //by sonjy 권한 check 20100610
- if( model.getValue("/root/main/cond/inpttypecd") != "G" ) fSetCtrlAuth();
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- setPopupMenu("grd_sliplist", false, "/root/main/mntrpoplist/menu/item", "name", "func");
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- window.setPopupMenu(false);
- ]]>
- </script>
- </datagrid>
- <group id="group2" style="left:0px; top:5px; width:285px; height:80px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:285px; height:80px; "/>
- <caption id="caption12" class="search_name" style="left:5px; top:9px; width:86px; height:17px; ">일자</caption>
- <input id="search_fromdd" ref="/root/send/cond/fromdd" class="input_s_essential" inputtype="date" style="left:62px; top:8px; width:95px; height:19px; "/>
- <button id="btn_view" class="btn1_letter2" style="left:177px; top:57px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetSlipList();
- ]]>
- </script>
- </button>
- <caption id="caption17" class="search_name" style="left:5px; top:33px; width:91px; height:17px; ">구분</caption>
- <input id="search_todd" ref="/root/send/cond/todd" class="input_s_essential" inputtype="date" style="left:177px; top:8px; width:95px; height:19px; "/>
- <caption id="caption18" class="search_n_b" style="left:161px; top:9px; width:12px; height:17px; font-weight:bolder; ">~</caption>
- <select1 id="cmb_search_slipkindcd" ref="/root/send/cond/slipkindcd" class="combo_default" disabled="true" appearance="minimal" style="left:62px; top:33px; width:95px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/search/slipkindcdlist/slipkindcd">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_search_orddept" ref="/root/send/cond/orddeptcd" class="combo_default" disabled="true" appearance="minimal" style="left:177px; top:33px; width:95px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/search/orddept/orddeptlist/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_search_useyn" ref="/root/send/cond/useyn" class="combo_default" disabled="true" appearance="minimal" style="left:62px; top:57px; width:95px; height:19px; ">
- <choices>
- <item>
- <label>사용여부-전체</label>
- <value/>
- </item>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- </group>
- </case>
- <case id="expert2">
- <line id="line10" class="line_2" style="x1:3px; y1:390px; x2:723px; y2:390px; "/>
- <line id="line21" class="line_2" style="x1:0px; y1:364px; x2:723px; y2:364px; "/>
- <line id="line11" class="line_2" style="x1:0px; y1:414px; x2:723px; y2:414px; "/>
- <line id="line13" class="line_2" style="x1:0px; y1:179px; x2:723px; y2:179px; "/>
- <caption id="caption21" class="cell_1" style="left:3px; top:253px; width:85px; height:137px; ">조건[THEN]</caption>
- <caption id="caption11" class="cell_1" style="left:402px; top:180px; width:80px; height:23px; ">선택 STEP</caption>
- <caption id="caption13" class="cell_1" style="left:3px; top:206px; width:85px; height:46px; ">조건[IF]</caption>
- <line id="line17" class="line_2" style="x1:0px; y1:204px; x2:723px; y2:204px; "/>
- <line id="line18" class="line_2" style="x1:0px; y1:250px; x2:723px; y2:250px; "/>
- <caption id="caption15" class="cell_1" style="left:3px; top:417px; width:85px; height:41px; ">알람후 권고</caption>
- <caption id="caption16" class="cell_1" style="left:90px; top:205px; width:65px; height:23px; ">구분</caption>
- <line id="lne_sliplist3" class="line_1" style="x1:0px; y1:16px; x2:723px; y2:16px; "/>
- <datagrid id="grd_sliplist2" nodeset="/root/main/mntrinfo/mntrlist" caption="상태^제목^목적^스탭명" colwidth="33, 327, 226, 117" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" tooltip="true" style="left:0px; top:20px; width:723px; height:109px; ">
- <col ref="status" type="combo" disabled="true" style="text-align:center; ">
- <choices>
- <item>
- <label>추가</label>
- <value>I</value>
- </item>
- <item>
- <label>수정</label>
- <value>U</value>
- </item>
- <item>
- <label>삭제</label>
- <value>D</value>
- </item>
- <item>
- <label>-</label>
- <value>-</value>
- </item>
- </choices>
- </col>
- <col ref="slipnm"/>
- <col ref="cpgmntrflag" type="combo" disabled="true">
- <choices>
- <itemset nodeset="/root/init/M0514/M0514">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="stepnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fSelSlipInfo();
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- setPopupMenu("grd_sliplist2", false, "/root/main/mntrpoplist/menu/item", "name", "func");
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- window.setPopupMenu(false);
- ]]>
- </script>
- </datagrid>
- <caption id="cap_sliplist2" class="tit_2" style="left:2px; top:2px; width:142px; height:14px; ">모니터링 리스트</caption>
- <button id="btn_addslipinfo2" class="btn2_letter2" style="left:681px; top:131px; width:42px; height:19px; ">
- <caption>신규</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fAddSlipInfo();
- ]]>
- </script>
- </button>
- <caption id="cap_slipinfo2" class="tit_2" style="left:0px; top:135px; width:142px; height:13px; ">모니터링 상세내역</caption>
- <line id="lne_slipinfo2" class="line_1" style="x1:0px; y1:151px; x2:723px; y2:151px; "/>
- <input id="ipt_slipnm2" ref="/root/main/mntrheaderinfo/slipnm" navindex="1" class="input_essential" style="left:90px; top:157px; width:633px; height:19px; "/>
- <select1 id="rdo_cpgmntrflag2" ref="/root/main/mntrheaderinfo/cpgmntrflag" navindex="2" overflow="visible" appearance="full" cols="2" cellspacing="30" style="left:90px; top:182px; width:310px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/M0514/M0514">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetupControl("rdo_cpgmntrflag2");
- ]]>
- </script>
- </select1>
- <select1 id="cmb_selectstep2" ref="/root/main/selstepno" navindex="1" appearance="minimal" style="left:485px; top:182px; width:238px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/stepinfo/info">
- <label ref="stepnm"/>
- <value ref="stepno"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //model.setValue("/root/main/mntrheaderinfo/stepfromno", model.getValue("/root/main/selstepno"));
- //model.setValue("/root/main/mntrheaderinfo/steptono", model.getValue("/root/main/selstepno"));
- model.setValue("/root/main/mntrheaderinfo/stepno", model.getValue("/root/main/selstepno"));
-
- var keyNo = model.getValue("/root/main/mntrheaderinfo/slipno");
- if( !isNull(keyNo) ){
- //setParameter("SPMQP00300_before_stepno", model.getValue("/root/main/mntrinfo/mntrlist[" + slipGrdCtrl.row + "]/stepfromno"));
- setParameter("SPMQP00300_before_stepno", model.getValue("/root/main/mntrinfo/mntrlist[" + slipGrdCtrl.row + "]/stepno"));
- }else{
- setParameter("SPMQP00300_before_stepno", "0");
- }
- setParameter("SPMQP00300_after_stepno", cmb_selectstep2.value);
- ]]>
- </script>
- </select1>
- <select1 id="cmb_alertcdflag2" ref="/root/main/selalertcdflag" disabled="true" appearance="minimal" style="left:157px; top:208px; width:128px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/MI0505/M0505">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetupControl("cmb_alertcdflag2");
- ]]>
- </script>
- </select1>
- <button id="btn_alertcdflag2" navindex="4" class="icon_search" disabled="true" style="left:289px; top:208px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetNewAttrInfo("IF");
- ]]>
- </script>
- </button>
- <button id="btn_addslipcond2" class="btn2_letter2" style="left:3px; top:330px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fAddCondRow();
- ]]>
- </script>
- </button>
- <button id="btn_delslipcond2" class="btn2_letter2" style="left:45px; top:330px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDelCondRow();
- ]]>
- </script>
- </button>
- <select1 id="rdo_alertcondflag2" ref="/root/main/mntrheaderinfo/alertcondflag" navindex="2" overflow="visible" appearance="full" cols="2" cellspacing="10" style="left:160px; top:369px; width:150px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체충족</label>
- <value>A</value>
- </item>
- <item>
- <label>일부충족</label>
- <value>P</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetupControl("rdo_alertcondflag");
- ]]>
- </script>
- </select1>
- <select1 id="rdo_alertgrde2" ref="/root/main/mntrheaderinfo/alertgrde" navindex="2" overflow="visible" appearance="full" cols="6" cellspacing="3" style="left:90px; top:393px; width:632px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/M0507/M0507">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <textarea id="txt_guidedocucnts2" ref="/root/main/mntrheaderinfo/guidedocucnts" scroll="autovscroll" style="left:90px; top:416px; width:543px; height:42px; "/>
- <caption id="cap_slipnm2" class="cell_1" style="left:3px; top:156px; width:85px; height:23px; ">제목</caption>
- <caption id="cap_cpgmntrflag2" class="cell_1" style="left:3px; top:181px; width:85px; height:23px; ">목적</caption>
- <caption id="cap_alertcondflag2" class="cell_1" style="left:90px; top:366px; width:65px; height:23px; ">충족 조건</caption>
- <caption id="cap_alertgrde2" class="cell_1" style="left:3px; top:392px; width:85px; height:23px; ">알람 방법</caption>
- <caption id="cap_alertcondcntunit2" style="left:310px; top:369px; width:118px; height:20px; ">( 개/전체)</caption>
- <input id="ipt_alertcondcnt2" ref="/root/main/mntrheaderinfo/thencondcnt" class="input_default" format="#####" style="left:321px; top:369px; width:55px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetupControl("ipt_alertcondcnt");
- ]]>
- </script>
- </input>
- <caption id="cap_alertcondcnt2" class="cell_1" visibility="hidden" style="left:435px; top:367px; width:55px; height:20px; ">충족갯수</caption>
- <datagrid id="grd_slipcondlist2" nodeset="/root/main/mntrdetlinfo/mntrdetllist" caption="구분^groupcd^코드^항목명^scndcondcd^sliphistno^alertgrde^하한치^하한치^상한치^상한치^모니터링 기준^refhval^단위^내용^caption2^alertprecondyn^checkyn" colwidth="97, 5, 50, 190, 5, 5, 5, 45, 40, 45, 40, 5, 5, 47, 40, 5, 5, 5, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" colsep="^" tooltip="true" style="left:90px; top:253px; width:633px; height:110px; font-family:휴먼아미체; ">
- <col ref="alertcdflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/MT0505/M0505">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="testitemcd" visibility="hidden"/>
- <col ref="testcd"/>
- <col ref="testnm"/>
- <col ref="scndcondcd" visibility="hidden"/>
- <col ref="hvalappflag" visibility="hidden"/>
- <col ref="lvalappflag" visibility="hidden"/>
- <col ref="reflval" type="input" style="text-align:right; "/>
- <col ref="lvalappflag" type="combo">
- <choices>
- <item>
- <label>이상</label>
- <value>U</value>
- </item>
- <item>
- <label>이하</label>
- <value>D</value>
- </item>
- <item>
- <label/>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="refhval" type="input" style="text-align:right; "/>
- <col ref="hvalappflag" type="combo">
- <choices>
- <item>
- <label>이상</label>
- <value>U</value>
- </item>
- <item>
- <label>이하</label>
- <value>D</value>
- </item>
- <item>
- <label/>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="alertcnts" visibility="hidden"/>
- <col ref="refseq" visibility="hidden"/>
- <col ref="unitnm"/>
- <col ref="refcnts" type="input"/>
- <col ref="reftypecd" visibility="hidden"/>
- <col ref="alertprecondyn" visibility="hidden"/>
- <col ref="checkyn" visibility="hidden"/>
- <col ref="m" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetNewAttrInfo("THEN");
- fChngCondVal();
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- setPopupMenu("grd_slipcondlist2", false, "/root/main/condpoplist/menu/item", "name", "func");
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- window.setPopupMenu(false);
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fGetNewAttrInfo("THEN");
- ]]>
- </script>
- </datagrid>
- <button id="btn_delalertcdflag2" class="icon_minus" style="left:312px; top:209px; width:13px; height:15px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDelInCondInfo();
- ]]>
- </script>
- </button>
- <input id="ipt_alertrem3" ref="/root/main/mntrpredetlinfo/mntrdetllist/alertcnts" visibility="hidden" disabled="true" editable="false" style="left:322px; top:231px; width:13px; height:19px; "/>
- <select id="ipt_alertrem2" ref="/root/main/selpretestcd" overflow="scroll" scroll="autovscroll" appearance="compact" sep="▦" style="left:329px; top:207px; width:393px; height:42px; ">
- <choices>
- <itemset nodeset="/root/main/mntrpredetlinfo/mntrdetllist">
- <label ref="alertcnts"/>
- <value ref="testnm"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
-
- ]]>
- </script>
- </select>
- <select1 id="rdo_ifcondcnt2" ref="/root/main/mntrheaderinfo/ifcondcnt" navindex="2" overflow="visible" appearance="full" cols="2" cellspacing="10" style="left:158px; top:231px; width:97px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>AND</label>
- <value>A</value>
- </item>
- <item>
- <label>OR</label>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetupControl("rdo_alertcondflag");
- ]]>
- </script>
- </select1>
- <caption id="cap_ifcondcnt2" class="cell_1" style="left:90px; top:229px; width:65px; height:23px; ">충족 조건</caption>
- <caption id="cap_view2" visibility="hidden" style="left:475px; top:327px; width:247px; height:85px; background-color:#ffffff; border-style:solid; ">
- <![CDATA[문구 구성 예 )
- [긴급] #3# 환자의 #6# 검사 결과는
- #8# 입니다.!
- 사용법 ) 직접 입력 및 콤보박스에서 선택]]>
- </caption>
- <button id="btn_guide2" class="btn2_letter6" style="left:635px; top:416px; width:86px; height:19px; text-align:center; ">
- <caption>범례</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var value = cap_view2.attribute("visibility")
- if (value == "hidden") {
- cap_view2.visible = true;
- } else {
- cap_view2.visible = false;
- }
- ]]>
- </script>
- </button>
- <select1 id="cmb_comnusewrdcd2" ref="/root/main/comnusewrdcd" appearance="minimal" style="left:635px; top:438px; width:87px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/M0606/M0606">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var comnusewrdcd = model.getValue("/root/main/comnusewrdcd");
- var guidedocucnts = model.getValue("/root/main/mntrheaderinfo/guidedocucnts");
- model.setValue("/root/main/mntrheaderinfo/guidedocucnts", guidedocucnts + "#" + comnusewrdcd + "#");
- txt_guidedocucnts2.refresh();
- ]]>
- </script>
- </select1>
- </case>
- </switch>
- <group id="grp_condnurtprval" visibility="hidden" disabled="false" style="left:470px; top:390px; width:251px; height:70px; background-color:#99ccff; border-color:#3366ff; border-style:solid; ">
- <caption id="cap_condnurtprvalnm" style="left:5px; top:6px; width:84px; height:17px; font-weight:bold; vertical-align:middle; ">혈당간호기록</caption>
- <button id="btn_nurtprcnfm" class="btn2_letter2" style="left:159px; top:45px; width:42px; height:19px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInputCondVal("condnurtprval");
- ]]>
- </script>
- </button>
- <button id="btn_nurtprcncl" class="btn2_letter2" style="left:202px; top:45px; width:42px; height:19px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInptCncl();
- ]]>
- </script>
- </button>
- <input id="ipt_condnurtprlval" ref="/root/main/selinfo/condnurtprlval" style="left:9px; top:25px; width:40px; height:19px; "/>
- <input id="ipt_condnurtprhval" ref="/root/main/selinfo/condnurtprhval" style="left:111px; top:24px; width:40px; height:19px; "/>
- <caption id="caption1" style="left:99px; top:25px; width:15px; height:20px; ">~</caption>
- <caption id="cap_condnurtprvalunit" style="left:203px; top:25px; width:38px; height:20px; ">mg/dL</caption>
- <select1 id="combo3" ref="/root/main/selinfo/condlvalflag" appearance="minimal" style="left:49px; top:25px; width:50px; height:19px; ">
- <choices>
- <item>
- <label>이상</label>
- <value>U</value>
- </item>
- <item>
- <label>이하</label>
- <value>D</value>
- </item>
- </choices>
- </select1>
- <select1 id="combo4" ref="/root/main/selinfo/condhvalflag" appearance="minimal" style="left:151px; top:24px; width:50px; height:19px; ">
- <choices>
- <item>
- <label>이상</label>
- <value>U</value>
- </item>
- <item>
- <label>이하</label>
- <value>D</value>
- </item>
- </choices>
- </select1>
- </group>
- <group id="grp_condsexflag" visibility="hidden" disabled="false" style="left:470px; top:405px; width:251px; height:50px; background-color:#99ccff; border-color:#3366ff; border-style:solid; ">
- <caption id="cap_condsexflagnm" style="left:5px; top:5px; width:34px; height:20px; font-weight:bold; vertical-align:middle; ">성별</caption>
- <select1 id="rdo_condsexflag" ref="/root/main/selinfo/condsexflag" overflow="scroll" appearance="full" cols="2" style="left:37px; top:5px; width:102px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/P0313/P0313">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_condsexflagunit" visibility="hidden" style="left:39px; top:24px; width:10px; height:20px; ">-</caption>
- <button id="btn_sexcnfm" class="btn2_letter2" style="left:158px; top:25px; width:42px; height:19px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInputCondVal("condsexflag");
- ]]>
- </script>
- </button>
- <button id="btn_sexcncl" class="btn2_letter2" style="left:202px; top:25px; width:42px; height:19px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInptCncl();
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_condageval" visibility="hidden" disabled="false" style="left:470px; top:390px; width:251px; height:50px; background-color:#99ccff; border-color:#3366ff; border-style:solid; ">
- <caption id="cap_condagevalnm" style="left:5px; top:5px; width:34px; height:20px; font-weight:bold; vertical-align:middle; ">연령</caption>
- <button id="btn_agecnfm" class="btn2_letter2" style="left:158px; top:25px; width:42px; height:19px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInputCondVal("condageval");
- ]]>
- </script>
- </button>
- <button id="btn_agecncl" class="btn2_letter2" style="left:202px; top:25px; width:42px; height:19px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInptCncl();
- ]]>
- </script>
- </button>
- <input id="ipt_condagelval" ref="/root/main/selinfo/condagelval" style="left:39px; top:5px; width:35px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- <caption id="caption3" style="left:125px; top:6px; width:15px; height:20px; ">~</caption>
- <input id="ipt_condagehval" ref="/root/main/selinfo/condagehval" style="left:137px; top:5px; width:35px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- <caption id="cap_condagevalunit" style="left:225px; top:5px; width:20px; height:20px; ">세</caption>
- <select1 id="combo1" ref="/root/main/selinfo/condlvalflag" appearance="minimal" style="left:74px; top:5px; width:50px; height:19px; ">
- <choices>
- <item>
- <label>이상</label>
- <value>U</value>
- </item>
- <item>
- <label>이하</label>
- <value>D</value>
- </item>
- </choices>
- </select1>
- <select1 id="combo2" ref="/root/main/selinfo/condhvalflag" appearance="minimal" style="left:172px; top:5px; width:50px; height:19px; ">
- <choices>
- <item>
- <label>이상</label>
- <value>U</value>
- </item>
- <item>
- <label>이하</label>
- <value>D</value>
- </item>
- </choices>
- </select1>
- </group>
- <group id="grp_condroomval" visibility="hidden" disabled="false" style="left:470px; top:390px; width:251px; height:70px; background-color:#99ccff; border-color:#3366ff; border-style:solid; ">
- <input id="ipt_roomval" ref="/root/main/selinfo/condroomval" navindex="1" editable="false" style="left:5px; top:25px; width:240px; height:19px; "/>
- <button id="btn_roomadd" class="btn2_letter2" style="left:202px; top:5px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var addroom = model.getValue("/root/main/selinfo/condroomsel");
- if (addroom == "") {
- messageBox("병실이 선택되지 ", "E007", "\n병실 선택 후 추가 버튼을 클릭하여 주십시오. ");
- } else {
- fAddRoomInfo(addroom);
- }
-
- ]]>
- </script>
- </button>
- <button id="btn_roomcnfm" class="btn2_letter2" style="left:158px; top:45px; width:42px; height:19px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/main/selinfo/condroomval") == "" ) {
- messageBox("병실이 선택되지 ", "E007", "\n병동 선택 후 병실을 선택하십시오. ");
- } else {
- fInputCondVal("condroomval");
- }
- ]]>
- </script>
- </button>
- <button id="btn_roomcncl" class="btn2_letter2" style="left:202px; top:45px; width:42px; height:19px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInptCncl();
- ]]>
- </script>
- </button>
- <caption id="cap_condroomvalunit" visibility="hidden" style="left:39px; top:24px; width:10px; height:20px; ">-</caption>
- <caption id="cap_condroomval" style="left:5px; top:5px; width:34px; height:20px; font-weight:bold; vertical-align:middle; ">병동</caption>
- <select1 id="cmb_conddeptlist" ref="/root/main/selinfo/condlvalflag" appearance="minimal" style="left:35px; top:5px; width:70px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/inordrepdeptlist/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.makeValue("/root/send/reqdata/wardcd", cmb_conddeptlist.value);
- if(submit("TRMMD06103")){
- }
- ]]>
- </script>
- </select1>
- <caption id="cap_condroomvalnm" style="left:110px; top:5px; width:30px; height:20px; font-weight:bold; vertical-align:middle; ">병실</caption>
- <select1 id="cmb_condroomlist" ref="/root/main/selinfo/condroomsel" appearance="minimal" style="left:140px; top:5px; width:60px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/roomlist/roomlist">
- <label ref="roomnm"/>
- <value ref="roomcd"/>
- </itemset>
- </choices>
- </select1>
- </group>
- </xhtml:body>
- </xhtml:html>
|