123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <init>
- <falldata>
- <bodydam>
- </bodydam>
- <arbitrationcnts>
- <newElement>
- <label>관찰</label>
- <value>01</value>
- </newElement>
- <newElement>
- <label>드레싱</label>
- <value>02</value>
- </newElement>
- <newElement>
- <label>봉합</label>
- <value>03</value>
- </newElement>
- <newElement>
- <label>약물치료</label>
- <value>04</value>
- </newElement>
- <newElement>
- <label>물리치료</label>
- <value>05</value>
- </newElement>
- <newElement>
- <label>수술</label>
- <value>06</value>
- </newElement>
- <newElement>
- <label>기타</label>
- <value>07</value>
- </newElement>
- </arbitrationcnts>
- <env>
- <env>
- <label>Side rail 이 내려져 있어서</label>
- <value>01</value>
- </env>
- <env>
- <label>침대 바퀴 미 고정</label>
- <value>02</value>
- </env>
- <env>
- <label>바닥의 물기</label>
- <value>03</value>
- </env>
- <env>
- <label>조명 불량</label>
- <value>04</value>
- </env>
- <env>
- <label>부적절한 신발</label>
- <value>05</value>
- </env>
- <env>
- <label>보조기구 사용 중</label>
- <value>06</value>
- </env>
- <env>
- <label>의료기구 및 관련</label>
- <value>07</value>
- </env>
- <env>
- <label>기타</label>
- <value>08</value>
- </env>
- </env>
- <actfunt>
- <actfunt>
- <label>독립활동</label>
- <value>01</value>
- </actfunt>
- <actfunt>
- <label>도움필요</label>
- <value>02</value>
- </actfunt>
- <actfunt>
- <label>활동 불가능</label>
- <value>03</value>
- </actfunt>
- </actfunt>
- <cscsstat>
- <cscsstat>
- <value>01</value>
- <label>명료(Alert)</label>
- </cscsstat>
- <cscsstat>
- <value>02</value>
- <label>졸음</label>
- </cscsstat>
- <cscsstat>
- <value>03</value>
- <label>혼돈</label>
- </cscsstat>
- <cscsstat>
- <value>04</value>
- <label>반혼수</label>
- </cscsstat>
- <cscsstat>
- <value>05</value>
- <label>혼수</label>
- </cscsstat>
- <cscsstat>
- <value>06</value>
- <label>7세 미만 소아</label>
- </cscsstat>
- </cscsstat>
- <fallplce>
- </fallplce>
- </falldata>
- </init>
- <main>
- <cond>
- <fallplcecd/>
- <fallplcecnts/>
- <falldngrasesyn/>
- <fallbfpnt/>
- <fallaftpnt/>
- <pvneducyn/>
- <cscsstatyn/>
- <actfuntyn/>
- <envcasyn/>
- <envcasetccntsyn/>
- <bodystatyn/>
- <medidrugcd/>
- <medidrugnm/>
- <arbitrationcntsyn/>
- <arbitrationetccnts/>
- <bodydamcd/>
- <bodypart/>
- <bodystatetccnts/>
- <detlcnts/>
- <drugdump/>
- <druglist>
- <falldruginfo>
- <medidrugcd/>
- <acptno/>
- <seq/>
- <medidrugnm/>
- </falldruginfo>
- </druglist>
- <detlcnts_why/>
- <detlcnts_how/>
- <doctorcallyn>N</doctorcallyn>
- <doctorcalldt/>
- <mediationyn>N</mediationyn>
- <mediationdt/>
- </cond>
- </main>
- <temp>
- <receivedata>
- <receiveref/>
- <receivenmref/>
- <srchflag/>
- <srchcnts/>
- <drugkind/>
- </receivedata>
- <druglist/>
- </temp>
- <send>
- <calcscorcd/>
- <acptno/>
- </send>
- <hidden>
- <mech>
- <hngnm/>
- </mech>
- <mycode/>
- </hidden>
- <tmp>
- <fall>
- <score/>
- </fall>
- </tmp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- model.removeNodeset("/root/main/cond/druglist/falldruginfo");
- fInitialize_00400();
- //2013/04/18 Start
- button4.disabled=true;
- //2013/04/18 End
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMNR07506" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/mech"/>
- <submission id="TRMQR00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/acptno" resultref="/root/cond"/>
- <submission id="TRMQR00110" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/tmp/fall"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../emr/qiweb/js/SMMQR00400.js"/>
- <script type="javascript" src="../../../emr/qiweb/js/SMMQR00000.js"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- </xhtml:head>
- <xhtml:body>
- <group id="grp_fall" style="left:0px; top:0px; width:1175px; height:440px; ">
- <line id="line25" class="line_2" style="x1:0px; y1:23px; x2:1172px; y2:23px; "/>
- <shape id="roundrect8" class="roundrect_example" appearance="roundrect" style="left:5px; top:30px; width:175px; height:285px; "/>
- <shape id="roundrect9" class="roundrect_example" appearance="roundrect" style="left:185px; top:30px; width:175px; height:285px; "/>
- <shape id="roundrect10" class="roundrect_example" appearance="roundrect" style="left:365px; top:30px; width:254px; height:285px; "/>
- <shape id="roundrect12" class="roundrect_example" appearance="roundrect" style="left:624px; top:30px; width:543px; height:219px; "/>
- <shape id="roundrect13" class="roundrect_example" appearance="roundrect" style="left:5px; top:318px; width:615px; height:65px; "/>
- <caption id="caption1" style="left:720px; top:3px; width:10px; height:20px; ">/</caption>
- <input id="ipt_fallplcecnts" ref="/root/main/cond/fallplcecnts" class="input_default" disabled="true" editable="true" maxlength="50" appearance="input" style="left:278px; top:1px; width:184px; height:19px; "/>
- <textarea id="tar_envcasetccntsyn" ref="/root/main/cond/envcasetccntsyn" class="input_default" visibility="hidden" maxlength="50" appearance="textarea" style="left:377px; top:244px; width:235px; height:65px; "/>
- <caption id="cap_detlcnts" class="cell_2" style="left:624px; top:253px; width:26px; height:129px; vertical-align:middle; ">상세내용기술</caption>
- <textarea id="tar_detlcnts" ref="/root/main/cond/detlcnts" class="input_essential" navindex="5" maxlength="3950" style="left:1019px; top:255px; width:148px; height:125px; "/>
- <textarea id="tar_detlcnts_why" ref="/root/main/cond/detlcnts_why" class="input_essential" navindex="5" maxlength="3950" style="left:848px; top:255px; width:138px; height:125px; "/>
- <textarea id="tar_detlcnts_how" ref="/root/main/cond/detlcnts_how" class="input_essential" navindex="5" maxlength="3950" style="left:683px; top:255px; width:133px; height:125px; "/>
- <input id="ipt_fallbfpnt" ref="/root/main/cond/fallbfpnt" class="input_essential" disabled="true" format="999" style="left:665px; top:1px; width:39px; height:19px; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- if(model.getValue("/root/main/cond/fallbfpnt") > 100){
- messageBox("100을 초과할수 ", "I004");
- model.setValue("/root/main/cond/fallbfpnt", "");
- model.setFocus("ipt_fallbfpnt");
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_fallaftpnt" ref="/root/main/cond/fallaftpnt" class="input_essential" disabled="true" format="999" style="left:750px; top:1px; width:39px; height:19px; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- if(model.getValue("/root/main/cond/fallaftpnt") > 100){
- messageBox("100을 초과할수 ", "I004");
- model.setValue("/root/main/cond/fallaftpnt", "");
- model.setFocus("ipt_fallaftpnt");
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <button id="button4" class="btn2_letter9" disable.background-image="../../../com/commonweb/images/dis_btn2_letter2.gif" style="left:815px; top:1px; width:119px; height:19px; background-image:../../../com/commonweb/images/btn2_letter2.gif; ">
- <caption>중증도 및 위험사정</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- open("SMMNW04000");
- ]]>
- </script>
- </button>
- <select id="chk_cscsstatyn" ref="/root/main/cond/cscsstatyn" overflow="visible" appearance="full" rows="6" sep="▦" vcellspacing="7" style="left:10px; top:60px; width:100px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/falldata/cscsstat">
- <label ref="cscsstat/label"/>
- <value ref="cscsstat/value"/>
- </itemset>
- </choices>
- </select>
- <select id="chk_actfuntyn" ref="/root/main/cond/actfuntyn" overflow="visible" appearance="full" cellspacing="30" rows="3" sep="▦" vcellspacing="7" style="left:195px; top:60px; width:100px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/falldata/actfunt">
- <label ref="actfunt/label"/>
- <value ref="actfunt/value"/>
- </itemset>
- </choices>
- </select>
- <select id="chk_envcasyn" ref="/root/main/cond/envcasyn" overflow="visible" appearance="full" cellspacing="30" rows="9" sep="▦" vcellspacing="7" style="left:375px; top:60px; width:100px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/falldata/env">
- <label ref="env/label"/>
- <value ref="env/value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- SetVisible("tar_envcasetccntsyn", "/root/main/cond/envcasyn", "08");
- ]]>
- </script>
- </select>
- <select id="chk_bodystatyn" ref="/root/main/cond/bodystatyn" overflow="visible" appearance="full" cellspacing="20" cols="2" rows="16" sep="▦" vcellspacing="3" style="left:628px; top:65px; width:533px; height:185px; border-style:none; ">
- <choices>
- <item>
- <label>어지러움</label>
- <value>01</value>
- </item>
- <item>
- <label>마비</label>
- <value>02</value>
- </item>
- <item>
- <label>전신쇠약</label>
- <value>03</value>
- </item>
- <item>
- <label>근력저하</label>
- <value>04</value>
- </item>
- <item>
- <label>보행장애</label>
- <value>05</value>
- </item>
- <item>
- <label>체위성 저혈압</label>
- <value>06</value>
- </item>
- <item>
- <label>평형장애</label>
- <value>07</value>
- </item>
- <item>
- <label>정서장애(흥분/우울/불안)</label>
- <value>08</value>
- </item>
- <item>
- <label>시력장애</label>
- <value>09</value>
- </item>
- <item>
- <label>수면장애</label>
- <value>10</value>
- </item>
- <item>
- <label>인지장애</label>
- <value>11</value>
- </item>
- <item>
- <label>7세 미만 소아</label>
- <value>12</value>
- </item>
- <item>
- <label>해당사항 없음</label>
- <value>14</value>
- </item>
- <item>
- <label>약물복용</label>
- <value>13</value>
- </item>
- <item>
- <label>기타</label>
- <value>15</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- var bodystatyn = model.getValue("/root/main/cond/bodystatyn");
- if(bodystatyn == "13"){
- dreload();
- }
- SetVisible("grd_druglist", "/root/main/cond/bodystatyn", "13");
- SetVisible("button4", "/root/main/cond/bodystatyn", "13");
- SetVisible("button5", "/root/main/cond/bodystatyn", "13");
- SetVisible("tar_bodystatetccnts", "/root/main/cond/bodystatyn", "15");
-
-
- ]]>
- </script>
- </select>
- <select id="chk_arbitrationcntsyn" ref="/root/main/cond/arbitrationcntsyn" overflow="visible" appearance="full" cellspacing="30" cols="6" sep="▦" vcellspacing="7" style="left:120px; top:322px; width:495px; height:58px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/falldata/arbitrationcnts">
- <label ref="newElement/label"/>
- <value ref="newElement/value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- SetVisible("tar_arbitrationetccnts", "/root/main/cond/arbitrationcntsyn", "07");
- ]]>
- </script>
- </select>
- <caption id="cap_cscsstatyn" class="cell_2" style="left:10px; top:35px; width:70px; height:20px; vertical-align:middle; ">의식상태</caption>
- <caption id="cap_actfuntyn" class="cell_2" style="left:190px; top:35px; width:70px; height:20px; vertical-align:middle; ">활동/기능</caption>
- <caption id="cap_envcasyn" class="cell_2" style="left:370px; top:35px; width:76px; height:20px; vertical-align:middle; ">환경적 요인</caption>
- <caption id="cap_bodystatyn" class="cell_2" style="left:635px; top:35px; width:76px; height:20px; vertical-align:middle; ">신체상태</caption>
- <caption id="cap_arbitrationcntsyn" class="cell_2" style="left:10px; top:323px; width:104px; height:20px; vertical-align:middle; ">즉각적 중재 내용</caption>
- <select1 id="cmb_fallplcecd" ref="/root/main/cond/fallplcecd" class="combo_essential" appearance="minimal" style="left:92px; top:1px; width:185px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/falldata/fallplce/M0443">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/main/cond/fallplcecnts", "");
- if(model.getValue("/root/main/cond/fallplcecd") == "06" || model.getValue("/root/main/cond/fallplcecd") == "05"){
- ipt_fallplcecnts.disabled = false;
- }
- else{
- ipt_fallplcecnts.disabled = true;
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_falldngrasesyn" ref="/root/main/cond/falldngrasesyn" class="combo_essential" appearance="minimal" style="left:587px; top:1px; width:50px; height:19px; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/main/cond/falldngrasesyn") == "Y"){
- ipt_fallbfpnt.disabled = false;
- ipt_fallaftpnt.disabled = false;
- cmb_fallbfpnt.disabled = false;
- cmb_fallaftpnt.disabled = false;
- button4.disabled=false;
- //낙상위험 점수를 자동으로 읽어오지 않고 정상, 저위험, 고위험 선택하도록 프로그램 수정.
- //요구사항[20150423020] 신민정선생님 요청. 2015.06.04수정일.
- // model.makeValue("/root/send/reqdata/pid", parent.javascript.model.getValue("/root/main/patinfo/patinfolist/pid"));
- // submit("TRMQR00110");
- // if(model.getValue("/root/tmp/fall/score")!="" && model.getValue("/root/tmp/fall/score")!=null){
- // model.setValue("/root/main/cond/fallbfpnt", model.getValue("/root/tmp/fall/score"));
- // model.refresh();
- // }
- }
- else{
- ipt_fallbfpnt.disabled = true;
- ipt_fallaftpnt.disabled = true;
- cmb_fallbfpnt.disabled = true;
- cmb_fallaftpnt.disabled = true;
- button4.disabled=true;
- model.setValue("/root/main/cond/fallbfpnt", "");
- model.setValue("/root/main/cond/fallaftpnt", "");
-
- cmb_fallbfpnt.refresh();
- cmb_fallaftpnt.refresh();
- }
- ]]>
- </script>
- </select1>
- <caption id="cap_falldngrasesyn" class="cell_1" style="left:464px; top:0px; width:121px; height:23px; vertical-align:middle; ">낙상위험 사정 유무</caption>
- <caption id="cap_fallplcecd" class="cell_1" style="left:0px; top:0px; width:90px; height:23px; vertical-align:middle; ">낙상장소</caption>
- <caption id="cap_pvneducyn" class="cell_1" style="left:937px; top:0px; width:90px; height:23px; vertical-align:middle; ">예방교육 유무</caption>
- <select1 id="cmb_pvneducyn" ref="/root/main/cond/pvneducyn" class="combo_essential" appearance="minimal" style="left:1030px; top:1px; width:50px; height:19px; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_bodydamcd" ref="/root/main/cond/bodydamcd" class="combo_essential" appearance="minimal" style="left:163px; top:385px; width:345px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/falldata/bodydam/M0435">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/main/cond/bodydamcd") == "01" ){
- ipt_bodypart.disabled = true;
- }
- else{
- ipt_bodypart.disabled = false;
- }
- ]]>
- </script>
- </select1>
- <caption id="cap_bodydamcd" class="cell_1" style="left:5px; top:384px; width:155px; height:23px; vertical-align:middle; ">낙상으로 인한 신체적 손상</caption>
- <line id="line24" class="line_3" style="x1:5px; y1:407px; x2:1172px; y2:407px; "/>
- <caption id="caption2" class="cell_1" style="left:512px; top:384px; width:155px; height:23px; text-align:center; vertical-align:middle; ">손상된 신체부위 및 상태</caption>
- <input id="ipt_bodypart" ref="/root/main/cond/bodypart" class="input_default" navindex="2" maxbyte="1000" style="left:670px; top:385px; width:500px; height:19px; "/>
- <textarea id="tar_bodystatetccnts" ref="/root/main/cond/bodystatetccnts" class="input_default" visibility="hidden" maxlength="50" appearance="textarea" style="left:710px; top:204px; width:448px; height:39px; "/>
- <caption id="caption3" style="left:645px; top:2px; width:15px; height:20px; ">전</caption>
- <caption id="caption4" style="left:730px; top:2px; width:15px; height:20px; ">후</caption>
- <group id="grd_time" style="left:5px; top:409px; width:1150px; height:27px; ">
- <caption id="caption7" class="cell_1" style="left:0px; top:0px; width:155px; height:25px; text-align:center; ">담당의/당직의 호출시간</caption>
- <select1 id="chk_doctorcallyn" ref="/root/main/cond/doctorcallyn" appearance="full" cols="2" overflow="visible" style="left:159px; top:4px; width:150px; height:18px; border-style:none; ">
- <choices>
- <item>
- <label>해당없음</label>
- <value>N</value>
- </item>
- <item>
- <label/>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- checkedVisibleInput(ipt_doctorcall, "/root/main/cond/doctorcalldt", model.getValue("/root/main/cond/doctorcallyn"));
- ]]>
- </script>
- </select1>
- <input id="ipt_doctorcall" ref="/root/main/cond/doctorcalldt" disabled="true" format="yyyy-mm-dd hh:nn" style="left:249px; top:4px; width:149px; height:19px; "/>
- <select1 id="chk_mediationyn" ref="/root/main/cond/mediationyn" appearance="full" cols="2" overflow="visible" style="left:670px; top:5px; width:150px; height:18px; border-style:none; ">
- <choices>
- <item>
- <label>해당없음</label>
- <value>N</value>
- </item>
- <item>
- <label/>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- checkedVisibleInput(ipt_mediation, "/root/main/cond/mediationdt", model.getValue("/root/main/cond/mediationyn"));
- ]]>
- </script>
- </select1>
- <input id="ipt_mediation" ref="/root/main/cond/mediationdt" disabled="true" format="yyyy-mm-dd hh:nn" style="left:758px; top:5px; width:138px; height:19px; "/>
- <caption id="caption8" class="cell_1" style="left:507px; top:1px; width:156px; height:25px; text-align:center; ">중재시간</caption>
- </group>
- <caption id="caption5" class="cell_1" style="left:651px; top:253px; width:30px; height:129px; text-align:center; ">
- <![CDATA[어
- 떻
- 게]]>
- </caption>
- <caption id="caption6" class="cell_1" style="left:817px; top:253px; width:30px; height:129px; text-align:center; ">왜</caption>
- <caption id="caption9" class="cell_1" style="left:987px; top:253px; width:31px; height:129px; text-align:center; ">
- <![CDATA[중
- 재
- 내
- 용]]>
- </caption>
- <line id="line1" class="line_3" style="x1:5px; y1:435px; x2:1172px; y2:435px; "/>
- <shape id="roundrect1" class="roundrect_example" appearance="roundrect" style="left:622px; top:252px; width:550px; height:132px; "/>
- <textarea id="tar_arbitrationetccnts" ref="/root/main/cond/arbitrationetccnts" class="input_default" visibility="hidden" maxlength="50" appearance="textarea" style="left:180px; top:347px; width:435px; height:32px; "/>
- <select1 id="cmb_fallbfpnt" ref="/root/main/cond/fallbfpnt" disabled="true" appearance="minimal" style="left:660px; top:1px; width:60px; height:19px; ">
- <choices>
- <item>
- <label>정상</label>
- <value>101</value>
- </item>
- <item>
- <label>저위험</label>
- <value>102</value>
- </item>
- <item>
- <label>고위험</label>
- <value>103</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_fallaftpnt" ref="/root/main/cond/fallaftpnt" disabled="true" appearance="minimal" style="left:745px; top:1px; width:60px; height:19px; ">
- <choices>
- <item>
- <label>정상</label>
- <value>101</value>
- </item>
- <item>
- <label>저위험</label>
- <value>102</value>
- </item>
- <item>
- <label>고위험</label>
- <value>103</value>
- </item>
- </choices>
- </select1>
- </group>
- <datagrid id="grd_druglist" nodeset="/root/main/cond/druglist/falldruginfo" visibility="hidden" caption="약품코드^접수번호^순번^약품명" colsep="^" colwidth="80, 0, 0, 150" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="29" rowsep="|" style="left:905px; top:70px; width:255px; height:132px; text-align:center; ">
- <col class="input_essential" ref="medidrugcd" type="output" style="left:20px; top:23px; width:59px; height:23px; text-align:center; "/>
- <col class="input_essential" ref="acptno" type="output" style="text-align:center; "/>
- <col class="input_essential" ref="seq" type="output" style="text-align:center; "/>
- <col class="input_essential" ref="medidrugnm" type="output" visibility="visible" style="text-align:center; "/>
- </datagrid>
- <button id="button1" class="btn2_letter2" visibility="hidden" disable.background-image="../../../com/commonweb/images/dis_btn2_letter2.gif" style="left:1072px; top:48px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn2_letter2.gif; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_druglist .row >=1){ //첫번재 행 빈행인지 체크후 행추가
-
- if(grd_druglist.valuematrix(grd_druglist.row,1) != ""){
-
- grd_druglist.addRow(true,true);
-
- }
-
- }else{
-
- grd_druglist.addRow(true,true);
-
- }
-
- model.setValue("/root/temp/receivedata/receiveref", "/root/main/cond/medidrugcd");
- model.setValue("/root/temp/receivedata/receivenmref", "/root/main/cond/medidrugnm");
- model.setValue("/root/temp/receivedata/srchflag", "");
- model.setValue("/root/temp/receivedata/srchcnts", "");
- model.setValue("/root/temp/receivedata/drugkind","");
-
- modal("SPADB60100",0,100,150,"SPADB60100","/root/temp/receivedata","/root/temp/receivedata"); //약품코드 창 띄우기
-
- var drugcd = model.getValue("/root/main/cond/medidrugcd"); //약품코드받아오기
- var drugnm = "";
-
- if(drugcd != ""){
- model.removenode("/root/send/calcscorcd");
- model.makeValue("/root/send/calcscorcd", drugcd);
-
- if( grd_druglist.row <= -1){ //현재 그리드 행이 그리드 밖인지 체크
-
- grd_druglist.row = 1;
-
- }
-
- model.makeValue("/root/main/cond/druglist/falldruginfo["+grd_druglist.row+"]/medidrugcd", drugcd);
- model.resetInstanceNode("/root/main/cond/medidrugcd");
-
- var x = grd_druglist.valueMatrix(grd_druglist.rows-2,3) ;
- var y= parseInt(x) +1;
-
-
- if(grd_druglist.row == 1 ){ //그리드 추가시 마지막 행의 seq 다음 번호를 seq 번호로 set
- model.makeValue("/root/main/cond/druglist/falldruginfo["+grd_druglist.row+"]/seq",grd_druglist.row);
-
- }else{
-
- var x = grd_druglist.valueMatrix(grd_druglist.rows-2,3) ;
- var y= parseInt(x) +1;
- model.makeValue("/root/main/cond/druglist/falldruginfo["+grd_druglist.row+"]/seq",y);
-
- }
-
- var acptno = parent.model.getValue("/root/main/condition/acptno");
- if( acptno != ""){ //그리드행 추가시 부모창에서 접수번호를 받아옴
-
- model.makeValue("/root/main/cond/druglist/falldruginfo["+grd_druglist.row+"]/acptno",acptno );
-
- }
-
- submit("TRMNR07506"); //약품코드로부터 약품명 가져오는 서브미션
-
- drugnm = model.getValue("/root/hidden/mech/hngnm");
- if(drugnm != ""){
-
- model.setValue("/root/main/cond/druglist/falldruginfo["+grd_druglist.row+"]/medidrugnm", drugnm);
- }else{
- messageBox("약품 유효기간이 지났습니다.","E999");
- }
-
- }
- else{ //그리드 행추가 후 값이 입력되지 않으면 행다시 삭제
-
- deleteSelectedRows(grd_druglist, true);
- }
-
-
-
- var str =getGridUpdateData(grd_druglist);
- model.setValue("/root/main/cond/drugdump",str);
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button5" class="btn2_letter2" visibility="hidden" disable.background-image="../../../com/commonweb/images/dis_btn2_letter2.gif" style="left:1118px; top:48px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn2_letter2.gif; ">
- <caption>
- <![CDATA[삭제]]>
- </caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- deleteSelectedRows(grd_druglist, true);
-
- var str =getGridUpdateData(grd_druglist);
- model.setValue("/root/main/cond/drugdump",str);
- model.refresh();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|