123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>Hospice follow up sheet</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <inpt>
- <inptlist>
- <supitem/>
- <recitem/>
- <dday/>
- <staiud/>
- <dday_1/>
- <staiud_1/>
- <dday_2/>
- <staiud_2/>
- <dday_3/>
- <staiud_3/>
- <dday_4/>
- <staiud_4/>
- <supitemcd/>
- <recitemcd/>
- <chrtpcl/>
- <suprefenum/>
- <refenum/>
- <pid/>
- <cretdd/>
- <crettm/>
- </inptlist>
- <pasmlist>
- <supitem/>
- <recitem/>
- <dday/>
- <staiud/>
- <dday_1/>
- <staiud_1/>
- <dday_2/>
- <staiud_2/>
- <dday_3/>
- <staiud_3/>
- <dday_4/>
- <staiud_4/>
- <supitemcd/>
- <recitemcd/>
- <chrtpcl/>
- <suprefenum/>
- <refenum/>
- <pid/>
- <cretdd/>
- <crettm/>
- </pasmlist>
- <iovslist>
- <supitem/>
- <recitem/>
- <dday/>
- <staiud/>
- <dday_1/>
- <staiud_1/>
- <dday_2/>
- <staiud_2/>
- <dday_3/>
- <staiud_3/>
- <dday_4/>
- <staiud_4/>
- <supitemcd/>
- <recitemcd/>
- <chrtpcl/>
- <suprefenum/>
- <refenum/>
- <pid/>
- <cretdd/>
- <crettm/>
- </iovslist>
- <painlist>
- <supitem/>
- <recitem/>
- <dday/>
- <staiud/>
- <dday_1/>
- <staiud_1/>
- <dday_2/>
- <staiud_2/>
- <dday_3/>
- <staiud_3/>
- <dday_4/>
- <staiud_4/>
- <supitemcd/>
- <recitemcd/>
- <chrtpcl/>
- <suprefenum/>
- <refenum/>
- <pid/>
- <cretdd/>
- <crettm/>
- </painlist>
- <inptlist2>
- <supitem/>
- <recitem/>
- <dday/>
- <staiud/>
- <dday_1/>
- <staiud_1/>
- <dday_2/>
- <staiud_2/>
- <dday_3/>
- <staiud_3/>
- <dday_4/>
- <staiud_4/>
- <supitemcd/>
- <recitemcd/>
- <chrtpcl/>
- <suprefenum/>
- <refenum/>
- <pid/>
- <cretdd/>
- <crettm/>
- </inptlist2>
- </inpt>
- <htfa>
- <htfalist>
- <roomcd/>
- <pid/>
- <hngnm/>
- <cretdd/>
- <crettm/>
- <indd/>
- <cretno/>
- </htfalist>
- </htfa>
- </main>
- <init>
- <M0224list>
- <cdid/>
- <cdnm/>
- </M0224list>
- <combo_temp>
- <item>
- <cdid/>
- <cdnm/>
- </item>
- </combo_temp>
- </init>
- <hidden>
- <gubun>A</gubun>
- <fromdd/>
- <todd/>
- </hidden>
- <temp>
- <fromdd/>
- <enddd/>
- </temp>
- <tmp>
- <printinfo>
- <cond>
- <dethbfc/>
- <dethcare/>
- <dethaftcare/>
- </cond>
- <dethbfc/>
- <dethcare/>
- <dethaftcare/>
- </printinfo>
- </tmp>
- </root>
- </instance>
- <submission id="TRMNH01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/htfalist"/>
- <submission id="TXMNH01402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
- <submission id="TRMNH01403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/inptlist"/>
- <submission id="TRMNH01404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/inptlist2"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <script type="javascript" src="../../../emr/agonalcareweb/js/SMMNH014.js"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //조회구간 default 4일로 설정
- ipt_fromdd.value = getCurrentDate();
- ipt_enddd.value = getAddDay(getCurrentDate(),-4);
- ipt_enddd.disabled = true;
-
- //M/S항목의 Orientation의 공통코드로드
- zbcfGetCodeList(new Array("M0224"), new Array("/root/init/M0224list"));
-
- //통증사정도구 환자리스트를 조회해서 grd_htfalist에 로드 한다.
- fSearch();
-
- //sheet I을 default로 보여줌.
- toggle = 1;
-
- fChangeGridDate();
-
- //셀을 병합하지 않는다.
- for( var i = 1; i < grd_inptlist.cols; i++ ) {
- grd_inptlist.mergeCol(i) = false;
- }
- for( var i = 1; i < grd_pasmlist.cols; i++ ) {
- grd_pasmlist.mergeCol(i) = false;
- }
- for( var i = 1; i < grd_iovslist.cols; i++ ) {
- grd_iovslist.mergeCol(i) = false;
- }
- for( var i = 1; i < grd_painlist.cols; i++ ) {
- grd_painlist.mergeCol(i) = false;
- }
- for( var i = 1; i < grd_inptlist2.cols; i++ ) {
- grd_inptlist2.mergeCol(i) = false;
- }
-
- //sheet I,II 인스턴스 초기화
- model.removenodeset("/root/main/inpt/inptlist" );
- model.removenodeset("/root/main/inpt/pasmlist" );
- model.removenodeset("/root/main/inpt/iovslist" );
- model.removenodeset("/root/main/inpt/painlist" );
- model.removenodeset("/root/main/inpt/inptlist2" );
-
- model.refresh();
- ]]>
- </script>
- </model>
- <script type="javascript">
- <![CDATA[
- var grd_inptcol;
- var grd_pasmcol;
- var grd_iovscol;
- var grd_paincol;
- var grd_inpt2col;
- var toggle =0;
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,5;1,1193;1,279;2,839;1,1209;2,5;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:15px; width:1145px; height:757px; background-color:transparent; ">
- <datagrid id="grd_htfalist" nodeset="/root/main/htfa/htfalist" caption="병실^등록번호^환자명" colsep="^" colwidth="50, 95, 84, 0, 0, 0, 0, 0" defaultrows="1" rowheader="seq" rowheight="33" rowsep="|" style="left:0px; top:75px; width:273px; height:654px; ">
- <col ref="roomcd"/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="cretdd"/>
- <col ref="crettm"/>
- <col ref="indd"/>
- <col ref="cretno"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(isDataCell()){
- fPcoiSearch(); //환자별 통증사정도구 기록 조회
- fShowOrientation(); //Sheet I 조회시 Orientation 콤보데이터가 코드로 보여지는 버그를 보완
- var refArray = new Array("dday", "dday_1", "dday_2", "dday_3", "dday_4");
- for( var i = 0; i < refArray.length; i++ )
- grd_inptlist.cellComboNodeset(3, grd_inptlist.colRef(refArray[i])) = "/root/init/M0224list/M0224";
- }
- ]]>
- </script>
- </datagrid>
- <line id="line8" class="line_1" style="x1:0px; y1:70px; x2:273px; y2:70px; "/>
- <button id="button1" class="btn_sw" group="tab" selected="true" style="left:356px; top:50px; width:84px; height:22px; ">
- <caption>Sheet II</caption>
- <toggle case="case1" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //탭을 클릭하여 화면을 이동할때 마다 조회를 다시 하기 때문에
- //입력된 데이터가 지워지는 것을 방지하기 위해 이미 입력된 데이터를 저장후 조회한다.
- fSave();
- model.toggle("case2");
- toggle = 2;
- fPcoiSearch();//환자별 통증사정도구 기록 조회
- ]]>
- </script>
- </button>
- <button id="button66" class="btn_sw" group="tab" selected="true" style="left:278px; top:50px; width:78px; height:22px; ">
- <caption>Sheet I</caption>
- <toggle case="case1" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //탭을 클릭하여 화면을 이동할때 마다 조회를 다시 하기 때문에
- //입력된 데이터가 지워지는 것을 방지하기 위해 이미 입력된 데이터를 저장후 조회한다
- fSave();
- model.toggle("case1");
- toggle = 1;
- fPcoiSearch();//환자별 통증사정도구 기록 조회
- ]]>
- </script>
- </button>
- <switch id="switch1" style="left:278px; top:70px; width:850px; height:660px; border-color:#c7a3cf; border-style:solid; ">
- <case id="case1" style="left:0px; top:0px; width:850px; height:708px; ">
- <line id="line5" class="line_1" style="x1:5px; y1:26px; x2:847px; y2:26px; "/>
- <button id="button3" class="btn5_letter2" style="left:803px; top:5px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_htfalist.rows < 2 ){
- messageBox("저장할 환자를 ","C002");
- return;
- }
-
- if(messageBox("","Q002") != 6) return;
- fSave();
- ]]>
- </script>
- </button>
- <datagrid id="grd_painlist" nodeset="/root/main/inpt/painlist" allowselection="false" caption="^Date(M/D)^D^^D-1^^D-2^^D-3^^D-4^^^" colsep="^" colwidth="123, 127, 115, 0, 115, 0, 115, 0, 115, 0, 115, 0, 0, 0, 0, 0, 0, 0,0,0,0" defaultrows="1" mergecells="bycol" mergecellsfixedcols="bycol" rowsep="|" selectionmode="free" style="left:5px; top:439px; width:844px; height:216px; ">
- <col ref="supitem" style="text-align:center; background-image:../../../com/commonweb/images/grid_bg.gif; background-stretch:stretch; "/>
- <col ref="recitem"/>
- <col editmode="input" ref="dday" type="input" format="###,###.##"/>
- <col ref="staiud"/>
- <col editmode="input" ref="dday_1" type="input" format="###,###.##"/>
- <col ref="staiud_1"/>
- <col editmode="input" ref="dday_2" type="input" format="###,###.##"/>
- <col ref="staiud_2"/>
- <col editmode="input" ref="dday_3" type="input" format="###,###.##"/>
- <col ref="staiud_3"/>
- <col editmode="input" ref="dday_4" type="input" format="###,###.##"/>
- <col ref="staiud_4"/>
- <col ref="supitemcd"/>
- <col ref="recitemcd"/>
- <col ref="chrtpcl"/>
- <col ref="suprefenum"/>
- <col ref="refenum"/>
- <col ref="pid"/>
- <col ref="cretdd"/>
- <col ref="crettm"/>
- <script type="javascript" ev:event="onstartedit">
- <![CDATA[
- if( grd_painlist.col == 0 ){
- event.preventDefault();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- grd_paincol = grd_painlist.col;//선택된 col값
-
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if( event.keyCode == 9 ) {
- grd_painlist.col = grd_paincol;
- grd_painlist.row = grd_painlist.row+1;
- grd_painlist.editCell();
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_iovslist" nodeset="/root/main/inpt/iovslist" allowselection="false" caption="^Date(M/D)^D^^D-1^^D-2^^D-3^^D-4^^^" colsep="^" colwidth="123, 127, 115, 0, 115, 0, 115, 0, 115, 0, 115, 0, 0, 0, 0, 0, 0, 0,0,0,0" defaultrows="1" mergecells="bycol" mergecellsfixedcols="bycol" rowsep="|" selectionmode="free" style="left:5px; top:254px; width:844px; height:183px; ">
- <col ref="supitem" style="text-align:center; background-image:../../../com/commonweb/images/grid_bg.gif; background-stretch:stretch; "/>
- <col ref="recitem"/>
- <col editmode="input" ref="dday" type="input" format="###,###"/>
- <col ref="staiud"/>
- <col editmode="input" ref="dday_1" type="input" format="###,###"/>
- <col ref="staiud_1"/>
- <col editmode="input" ref="dday_2" type="input" format="###,###"/>
- <col ref="staiud_2"/>
- <col editmode="input" ref="dday_3" type="input" format="###,###"/>
- <col ref="staiud_3"/>
- <col editmode="input" ref="dday_4" type="input" format="###,###"/>
- <col ref="staiud_4"/>
- <col ref="supitemcd"/>
- <col ref="recitemcd"/>
- <col ref="chrtpcl"/>
- <col ref="suprefenum"/>
- <col ref="refenum"/>
- <col ref="pid"/>
- <col ref="cretdd"/>
- <col ref="crettm"/>
- <script type="javascript" ev:event="onstartedit">
- <![CDATA[
- if( grd_iovslist.col == 0 ){
- event.preventDefault();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- grd_iovscol = grd_iovslist.col;//선택된 col값
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if( event.keyCode == 9 ) {
- grd_iovslist.col = grd_iovscol;
- grd_iovslist.row = grd_iovslist.row+1;
- grd_iovslist.editCell();
- }
- ]]>
- </script>
- </datagrid>
- <!-- 20120223_KNUH_Start 김병국 Pain assess항목 삭제.(숨김처리) -->
- <datagrid id="grd_pasmlist" nodeset="/root/main/inpt/pasmlist" visibility="hidden" allowselection="false" caption="^Date(M/D)^D^^D-1^^D-2^^D-3^^D-4^^^" colsep="^" colwidth="123, 127, 115, 0, 115, 0, 115, 0, 115, 0, 115, 0, 0, 0, 0, 0, 0, 0,0,0" defaultrows="1" mergecells="bycol" mergecellsfixedcols="bycol" rowsep="|" selectionmode="free" style="left:5px; top:100px; width:844px; height:152px; ">
- <col ref="supitem" type="inputbutton" style="text-align:center; background-image:../../../com/commonweb/images/grid_bg.gif; background-stretch:stretch; "/>
- <col ref="recitem" type="input"/>
- <col editmode="input" ref="dday" type="input"/>
- <col ref="staiud"/>
- <col editmode="input" ref="dday_1" type="input"/>
- <col ref="staiud_1"/>
- <col editmode="input" ref="dday_2" type="input"/>
- <col ref="staiud_2"/>
- <col editmode="input" ref="dday_3" type="input"/>
- <col ref="staiud_3"/>
- <col editmode="input" ref="dday_4" type="input"/>
- <col ref="staiud_4"/>
- <col ref="supitemcd"/>
- <col ref="recitemcd"/>
- <col ref="chrtpcl"/>
- <col ref="suprefenum"/>
- <col ref="refenum"/>
- <col ref="pid"/>
- <col ref="cretdd"/>
- <col ref="crettm"/>
- <script type="javascript" ev:event="onstartedit">
- <![CDATA[
- if( grd_pasmlist.col == 0 ){
- event.preventDefault();
- }
- ]]>
- </script>
- <!--그리드의 이미지 버튼 클릭해서 pain control 행추가 -->
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var i = grd_pasmlist.row;
-
- var supnm = grd_pasmlist.valueMatrix(i,0);
- for(i ; i < grd_pasmlist.rows+1 ; i++){
- if(supnm != grd_pasmlist.valueMatrix(i,0)){
- grd_pasmlist.addRow();
- var refenum = String(Number(grd_pasmlist.valueMatrix(i-1,16))+1);
-
- var strnum;
- if(refenum.length = 1){
- strnum = "000"+refenum;
- }else if(refenum.length = 2){
- strnum = "00"+refenum;
- }else if(refenum.length = 3){
- strnum = "0"+refenum;
- }
- var recitemcd = grd_pasmlist.valueMatrix(i-1,13).substring(0,4) + strnum ;
-
-
- grd_pasmlist.valueMatrix(i,0) = grd_pasmlist.valueMatrix(i-1,0); // supitem
- grd_pasmlist.valueMatrix(i,12) = grd_pasmlist.valueMatrix(i-1,12); // supitemcd
- grd_pasmlist.valueMatrix(i,13) = recitemcd; // recitemcd
- grd_pasmlist.valueMatrix(i,14) = grd_pasmlist.valueMatrix(i-1,14); // chrtpcl
- grd_pasmlist.valueMatrix(i,15) = '6' ; // suprefenum
- grd_pasmlist.valueMatrix(i,16) = refenum; // refenum
- grd_pasmlist.valueMatrix(i,17) = grd_pasmlist.valueMatrix(i-1,17); // pid
- grd_pasmlist.valueMatrix(i,18) = grd_pasmlist.valueMatrix(i-1,18); // cretdd
- grd_pasmlist.valueMatrix(i,19) = grd_pasmlist.valueMatrix(i-1,19); // crettm
-
- grd_pasmlist.merge();
- break;
- }
- supnm = grd_pasmlist.valueMatrix(i,0);
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(isDataCell()){
- grd_pasmcol = grd_pasmlist.col;//선택된 col값
- //12번째 행을 클릭했을때....(VAS이력 등록 팝업 호출)
- if(grd_pasmlist.row == 1){
- fOpenVasKpsPopup('VAS');
- }
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if( event.keyCode == 9 ) {
- grd_pasmlist.col = grd_col;
- grd_pasmlist.row = grd_pasmlist.row+1;
- grd_pasmlist.editCell();
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_inptlist" nodeset="/root/main/inpt/inptlist" allowselection="true" caption="^Date(M/D)^D^^D-1^^D-2^^D-3^^D-4^^^" colsep="^" colwidth="123, 127, 115, 0, 115, 0, 115, 0, 115, 0, 115, 0, 0, 0, 0, 0, 0, 0,0,0" defaultrows="1" mergecells="bycol" mergecellsfixedcols="bycol" rowsep="|" selectionmode="free" style="left:5px; top:31px; width:844px; height:221px; ">
- <col ref="supitem" style="text-align:center; background-image:../../../com/commonweb/images/grid_bg.gif; background-stretch:stretch; "/>
- <col ref="recitem"/>
- <col editmode="input" ref="dday" type="combo">
- <choices>
- <itemset nodeset="/root/init/combo_temp/item">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="staiud"/>
- <col editmode="input" ref="dday_1" type="combo">
- <choices>
- <itemset nodeset="/root/init/combo_temp/item">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="staiud_1"/>
- <col editmode="input" ref="dday_2" type="combo">
- <choices>
- <itemset nodeset="/root/init/combo_temp/item">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="staiud_2"/>
- <col editmode="input" ref="dday_3" type="combo">
- <choices>
- <itemset nodeset="/root/init/combo_temp/item">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="staiud_3"/>
- <col editmode="input" ref="dday_4" type="combo">
- <choices>
- <itemset nodeset="/root/init/combo_temp/item">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="staiud_4"/>
- <col ref="supitemcd"/>
- <col ref="recitemcd"/>
- <col ref="chrtpcl"/>
- <col ref="suprefenum"/>
- <col ref="refenum"/>
- <col ref="pid"/>
- <col ref="cretdd"/>
- <col ref="crettm"/>
- <script type="javascript" ev:event="onstartedit">
- <![CDATA[
- if( grd_inptlist.col == 0 ){
- event.preventDefault();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(isDataCell()){
- grd_inptcol = grd_inptlist.col; //선택된 col값
-
- if(grd_inptlist.row == 1){
- fOpenVasKpsPopup('KPS');
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if( event.keyCode == 9 ) {
- grd_inptlist.col = grd_inptcol;
- grd_inptlist.row = grd_inptlist.row+1;
- grd_inptlist.editCell();
- }
- ]]>
- </script>
- <!-- Date(M/D) 컬럼에 Orientation row는 콤보로 구성되어 공통코드를 선택하도록 한다. -->
- <script type="javascript" ev:event="onentercell">
- <![CDATA[
- if(grd_inptlist.col>1){
- if( grd_inptlist.row== 3){
- grd_inptlist.combo.button.visible = true;
- //grd_inptlist.cellComboNodeset(3, grd_inptlist.col) = "/root/init/M0224list/M0224";
- //model.setFocus("body");
- //model.setFocus("grd_inptlist")
- //model.refresh();
- grd_inptlist.combo.input.attribute("width") = grd_inptlist.colWidth(grd_inptlist.col) - 20;
- //grd_inptlist.col = grd_inptcol;
- }else {
- grd_inptlist.combo.button.visible = false;
- grd_inptlist.combo.input.attribute("width") = grd_inptlist.colWidth(grd_inptlist.col);
- }
- //model.refresh();
- }
-
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="case2" selected="true" style="left:0px; top:0px; width:850px; height:890px; ">
- <button id="button2" class="btn5_letter2" style="left:803px; top:5px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(messageBox("","Q002") != 6) return;
- fSave();
- ]]>
- </script>
- </button>
- <datagrid id="grd_inptlist2" nodeset="/root/main/inpt/inptlist2" caption="^Date(M/D)^D^^D-1^^D-2^^D-3^^D-4^^^" colsep="^" colwidth="123, 127, 115, 0, 115, 0, 115, 0, 115, 0, 115, 0, 0, 0, 0, 0, 0, 0" defaultrows="1" mergecells="bycol" mergecellsfixedcols="bycol" rowsep="|" selectionmode="free" style="left:0px; top:30px; width:844px; height:624px; ">
- <col ref="supitem" style="text-align:center; background-image:../../../com/commonweb/images/grid_bg.gif; background-stretch:stretch; "/>
- <col ref="recitem"/>
- <col editmode="input" ref="dday" type="combo">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="staiud"/>
- <col editmode="input" ref="dday_1" type="combo">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="staiud_1"/>
- <col editmode="input" ref="dday_2" type="combo">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="staiud_2"/>
- <col editmode="input" ref="dday_3" type="combo">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="staiud_3"/>
- <col editmode="input" ref="dday_4" type="combo">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="staiud_4"/>
- <col ref="supitemcd"/>
- <col ref="recitemcd"/>
- <col ref="chrtpcl"/>
- <col ref="pid"/>
- <col ref="cretdt"/>
- <col ref="suprefenum"/>
- <script type="javascript" ev:event="onstartedit">
- <![CDATA[
- if( grd_inptlist2.col == 0 ){
- event.preventDefault();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //var staiud = model.getValue("/root/main/inpt/inptlist2["grd_inptlist2.row+"]/staiud");
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //Sheet II 그리드 onclick 이벤트가 발생하면
- //Symptom항목에 한해서 Symtom and Sign 사정도구 팝업을 호출한다.
- //임종전증상발견, Accept항목은 팝업을 호출 하지 않고, 콤보로 Y, N을 선택할 수 있도록 한다.
- //그리드의 수정상태를 판단하기 위해 인스턴스에 별도로 staiud, staiud_1, staiud_2, staiud_4를 두어
- //실제 입력되는 값인 dday, dday_1, dday_2, dday_3, dday_4 입력값과 비교한다.
- if(isDataCell()){
- var curCol = grd_inptlist2.col;
- var curRow = grd_inptlist2.row;
-
- grd_col = grd_inptlist2.col;
- if((curCol==2) || (curCol==4) || (curCol==6) ||(curCol==8) || (curCol==10)){
-
- /* input을 false로 막아줘야돼.... tf에 문의할것!!!
- //임종전증상발견, Accept항목 클릭시 콤보값을 선택할수 있는 상태로 만든다.
- if(curRow > 31){
- grd_inptlist2.combo.button.visible = true;
- grd_inptlist2.combo.editmode= 'search';
- }else {
- grd_inptlist2.combo.button.visible = false;
- }
- */
- if(grd_inptlist2.valueMatrix(curRow, 0) == "Symptom"){
- fSave();
- var pid = model.getValue("/root/main/htfa/htfalist["+grd_htfalist.row+"]/pid");
- var cretdd = model.getValue("/root/main/htfa/htfalist["+grd_htfalist.row+"]/cretdd");
- var crettm = model.getValue("/root/main/htfa/htfalist["+grd_htfalist.row+"]/crettm");
-
- if(curCol==2)
- recdd = grd_inptlist2.valueMatrix(0,3);
- else if(curCol==4)
- recdd = grd_inptlist2.valueMatrix(0,5);
- else if(curCol==6)
- recdd = grd_inptlist2.valueMatrix(0,7);
- else if(curCol==8)
- recdd = grd_inptlist2.valueMatrix(0,9);
- else if(curCol==10)
- recdd = grd_inptlist2.valueMatrix(0,11);
-
- setParameter("pid", pid);
- setParameter("cretdd", cretdd);
- setParameter("crettm", crettm);
- setParameter("recdd", recdd);
-
- var left = 250;
- var top = 30;
- modal("SMMNH03400",1,left,top);
-
- clearParameter("pid");
- clearParameter("cretdd");
- clearParameter("crettm");
- clearParameter("recdd");
- fPcoiSearch();
- }
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if( event.keyCode == 9 ) {
- grd_inptlist2.col = grd_col;
- grd_inptlist2.row = grd_inptlist2.row+1;
- grd_inptlist2.editCell();
- }
- ]]>
- </script>
- </datagrid>
- <line id="line1" class="line_1" style="x1:5px; y1:26px; x2:847px; y2:26px; "/>
- <group id="group1" visibility="hidden" style="left:250px; top:53px; width:575px; height:600px; background-color:transparent; "/>
- </case>
- </switch>
- <caption id="caption2" class="search_no_b" style="left:470px; top:76px; width:12px; height:17px; ">~</caption>
- <input id="ipt_fromdd" ref="/root/temp/fromdd" class="input_default" navindex="1" inputtype="date" style="left:367px; top:76px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ipt_enddd.value = getAddDay(ipt_fromdd.value,-4);
-
- fChangeGridDate();
-
- fPcoiSearch();
- ]]>
- </script>
- </input>
- <input id="ipt_enddd" ref="/root/temp/enddd" class="input_default" navindex="2" inputtype="date" style="left:485px; top:76px; width:100px; height:19px; "/>
- <caption id="caption29" class="cell_1" style="left:285px; top:74px; width:79px; height:21px; text-align:center; vertical-align:middle; ">조회기간</caption>
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:5px; width:1130px; height:39px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:54px; width:82px; height:13px; ">환자리스트</caption>
- <caption id="caption4" class="search_name" style="left:5px; top:15px; width:107px; height:17px; ">환자구분 :</caption>
- <select1 id="radio2" ref="/root/hidden/gubun" class="radio_search" navindex="4" appearance="full" cols="5" overflow="visible" style="left:96px; top:15px; width:294px; height:20px; background-color:transparent; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- <item>
- <label>입실자</label>
- <value>I</value>
- </item>
- <item>
- <label>대기자(분산)</label>
- <value>W</value>
- </item>
- <item>
- <label>퇴실자</label>
- <value>L</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var gubun = model.getValue("/root/hidden/gubun");
-
- if( gubun == "L" ){
- group1.visible = true;
- button2.visible = false;
- button3.visible = false;
-
- grd_htfalist.colHidden(1) = true;
-
- grd_pasmlist.disabled = true;
- grd_iovslist.disabled = true;
- grd_painlist.disabled = true;
- grd_inptlist.disabled = true;
-
- caption7.visible = true;
- ipt_todd.visible = true;
- ipt_fromdd2.visible = true;
- caption5.visible = true;
-
- model.setValue("/root/hidden/fromdd", getAddDay(getCurrentDate(),-14));
- model.setValue("/root/hidden/todd", getCurrentDate());
- }else{
- group1.visible = false;
- button2.visible = true;
- button3.visible = true;
-
- grd_htfalist.colHidden(1) = false;
-
- grd_pasmlist.disabled = false;
- grd_iovslist.disabled = false;
- grd_painlist.disabled = false;
- grd_inptlist.disabled = false;
- grd_inptlist2.isReadOnly(1,1,6,50) = false;
-
- caption7.visible = false;
- ipt_todd.visible = false;
- ipt_fromdd2.visible = false;
- caption5.visible = false;
- }
- button4.dispatch("DOMActivate");
- model.refresh();
- ]]>
- </script>
- </select1>
- <button id="button4" class="btn1_letter2" navindex="4" style="left:990px; top:14px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:979px; y1:14px; x2:979px; y2:36px; "/>
- <button id="button5" class="btn1_letter2" navindex="4" style="left:1055px; top:14px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group6.visible = true;
- ]]>
- </script>
- </button>
- <caption id="caption5" class="search_no_b" visibility="hidden" style="left:565px; top:14px; width:12px; height:17px; ">~</caption>
- <input id="ipt_fromdd2" ref="/root/hidden/fromdd" class="input_default" navindex="1" visibility="hidden" inputtype="date" style="left:477px; top:14px; width:85px; height:19px; "/>
- <caption id="caption7" class="search_name" visibility="hidden" style="left:390px; top:14px; width:86px; height:17px; ">조회기간 :</caption>
- <input id="ipt_todd" ref="/root/hidden/todd" class="input_default" navindex="2" visibility="hidden" inputtype="date" style="left:580px; top:14px; width:85px; height:19px; "/>
- </group>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">Hospice follow up Sheet</caption>
- <group id="group6" class="grp_1" visibility="hidden" style="left:990px; top:45px; width:120px; height:109px; background-color:#87CEFA; border-width:1px; ">
- <select id="chk_dethbfc" ref="/root/tmp/printinfo/cond/dethbfc" overflow="visible" appearance="full" style="left:5px; top:10px; width:113px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>임종 전 증상발견</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="chk_dethcare" ref="/root/tmp/printinfo/cond/dethcare" overflow="visible" appearance="full" style="left:5px; top:33px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>임종 전 돌봄</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="chk_dethaftcare" ref="/root/tmp/printinfo/cond/dethaftcare" overflow="visible" appearance="full" style="left:5px; top:56px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>임종 후 돌봄</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <button id="btn_cert" class="btn5_letter2" style="left:32px; top:82px; width:42px; height:19px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group6.visible = false;
- fPrint();
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn5_letter2" style="left:75px; top:82px; width:42px; height:19px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group6.visible = false;
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|