123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280 |
- <?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>퇴실장소 기준자료 관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <init/>
- <main>
- <cond>
- <tabflag>O</tabflag>
- </cond>
- <opstandlist>
- <opsortseq/>
- <opoutplcecd/>
- <opoutplcenm/>
- <opdisplaynm/>
- <opuseflag/>
- <oprecflag/>
- <opdisflag/>
- <maxseqno/>
- <tmpopoutplcecd/>
- </opstandlist>
- <recstandlist>
- <recsortseq/>
- <recoutplcecd/>
- <recoutplcenm/>
- <recdisplaynm/>
- <recuseflag/>
- <recrecflag/>
- <maxseqno/>
- <tmprecoutplcecd/>
- </recstandlist>
- </main>
- <send/>
- <hidden/>
- <temp>
- <maxseqno/>
- </temp>
- </root>
- </instance>
- <submission id="TRMNP03201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/opstandlist"/>
- <submission id="TRMNP03202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/recstandlist"/>
- <submission id="TXMNP03201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/opstandlist"/>
- <submission id="TXMNP03202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/recstandlist"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../emr/opanstweb/js/SMMNP03200.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="570" pageheight="500" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:535px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:265px; height:14px; ">퇴실장소 기준자료 관리</caption>
- </group>
- <button id="btn_opstand" class="btn_sw" group="tab" selected="true" select.background-image="../../../com/commonweb/images/tab_show.gif" style="left:0px; top:19px; width:100px; height:22px; background-image:../../../com/commonweb/images/tab_hide.gif; ">
- <caption>수술간호기록</caption>
- <toggle case="opstand" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/main/cond/tabflag", "O");
- model.setValue("/root/temp/maxseqno", "");
- fSearch();
- ]]>
- </script>
- </button>
- <button id="btn_recstand" class="btn_sw" group="tab" select.background-image="../../../com/commonweb/images/tab_show.gif" style="left:100px; top:19px; width:100px; height:22px; background-image:../../../com/commonweb/images/tab_hide.gif; ">
- <caption>회복간호기록</caption>
- <toggle case="recstand" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/main/cond/tabflag", "R");
- model.setValue("/root/temp/maxseqno", "");
- fSearch();
- ]]>
- </script>
- </button>
- <switch id="switch1" style="left:0px; top:40px; width:537px; height:422px; ">
- <case id="opstand" selected="true">
- <button id="button3" class="btn5_letter2" style="left:489px; top:5px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSave("O");
- ]]>
- </script>
- </button>
- <button id="button5" class="btn2_letter3" style="left:433px; top:5px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_opstandlist.addrow();
- var maxseqno = model.getValue("/root/temp/maxseqno");
- var opmaxseq = model.getValue("/root/main/opstandlist[" + (grd_opstandlist.rows-2) + "]/maxseqno");
- if( maxseqno == "" ) {
- model.setValue("/root/temp/maxseqno", parseInt(opmaxseq)+1);
- maxseqno =parseInt(opmaxseq)+1;
- }else {
- model.setValue("/root/temp/maxseqno", parseInt(maxseqno)+1);
- maxseqno = parseInt(maxseqno)+1;
- }
-
- model.setValue("/root/main/opstandlist[" + (grd_opstandlist.rows-1) + "]/opuseflag", "Y");
- model.setValue("/root/main/opstandlist[" + (grd_opstandlist.rows-1) + "]/oprecflag", "U");
- model.setValue("/root/main/opstandlist[" + (grd_opstandlist.rows-1) + "]/opsortseq", maxseqno);
- model.refresh();
- ]]>
- </script>
- </button>
- <datagrid id="grd_opstandlist" nodeset="/root/main/opstandlist" caption="순번^코드^퇴실장소명^전광판명^사용여부^등록여부^전광판등록여부^maxseq^백업코드" colsep="^" colwidth="50, 50, 162, 162, 60, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:25px; width:535px; height:395px; ">
- <col ref="opsortseq" type="input" style="text-align:center; "/>
- <col ref="opoutplcecd" type="input" style="text-align:center; "/>
- <col imemode="hangul" ref="opoutplcenm" type="input" style="text-align:left; "/>
- <col imemode="hangul" ref="opdisplaynm" type="input" style="text-align:left; "/>
- <col ref="opuseflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>사용</label>
- <value>Y</value>
- </item>
- <item>
- <label>미사용</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="oprecflag"/>
- <col ref="opdisflag"/>
- <col ref="maxseqno"/>
- <col ref="tmpopoutplcecd"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_opstandlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- var tmpcdid = model.getValue("/root/main/opstandlist[" + grd_opstandlist.row + "]/tmpopoutplcecd");
- var cdid = model.getValue("/root/main/opstandlist[" + grd_opstandlist.row + "]/opoutplcecd");
- var row = grd_opstandlist.findRow(cdid, 1, 2, false, false);
- if( row != grd_opstandlist.row ) {
- messageBox("이미 등록된 코드입니다.", "E000");
- model.setValue("/root/main/opstandlist[" + grd_opstandlist.row + "]/opoutplcecd", "");
- model.refresh();
- return;
- }
- if( (cdid == "32")||(cdid == "41")|| (cdid == "42")|| (cdid == "43")|| (cdid == "44") ) {
- messageBox("사용할 수 없는 코드입니다.!", "E000");
- model.setValue("/root/main/opstandlist[" + grd_opstandlist.row + "]/opoutplcecd", "");
- return;
- }
- if( tmpcdid != "" ) {
- if( cdid != tmpcdid ) {
- messageBox("이미 등록된 코드는 변경하실수 없습니다.", "E000");
- model.setValue("/root/main/opstandlist[" + grd_opstandlist.row + "]/opoutplcecd", tmpcdid);
- model.refresh();
- return;
- }
- }
- ]]>
- </script>
- </datagrid>
- <button id="button6" class="btn2_letter2" style="left:388px; top:5px; width:42px; height:19px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch() ;
- ]]>
- </script>
- </button>
- <caption id="caption3" style="left:5px; top:5px; width:280px; height:20px; font-weight:bold; color:#ff0000; vertical-align:middle; ">※ 32, 41, 42, 43, 44번은 등록할 수 없습니다.</caption>
- </case>
- <case id="recstand">
- <datagrid id="grd_recstandlist" nodeset="/root/main/recstandlist" caption="순번^코드^퇴실장소명^전광판명^진행상태^사용여부^등록여부^maxseq^백업코드" colsep="^" colwidth="55, 55, 311, 0, 0, 60, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:25px; width:535px; height:395px; ">
- <col ref="recsortseq" type="input" style="text-align:center; "/>
- <col ref="recoutplcecd" type="input" style="text-align:center; "/>
- <col imemode="hangul" ref="recoutplcenm" type="input" style="text-align:left; "/>
- <col ref="recdisplaynm" type="input" style="text-align:left; "/>
- <col ref="recstatcd" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>종료</label>
- <value>50</value>
- </item>
- <item>
- <label>회복</label>
- <value>60</value>
- </item>
- </choices>
- </col>
- <col ref="recuseflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>사용</label>
- <value>Y</value>
- </item>
- <item>
- <label>미사용</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="recrecflag"/>
- <col ref="maxseqno"/>
- <col ref="tmprecoutplcecd"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_recstandlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- var tmpcdid = model.getValue("/root/main/recstandlist[" + grd_recstandlist.row + "]/tmprecoutplcecd");
- var cdid = model.getValue("/root/main/recstandlist[" + grd_recstandlist.row + "]/recoutplcecd");
- var row = grd_recstandlist.findRow(cdid, 1, 2, false, false);
- if( row != grd_recstandlist.row ) {
- messageBox("이미 등록된 코드입니다.", "E000");
- model.setValue("/root/main/recstandlist[" + grd_recstandlist.row + "]/recoutplcecd", "");
- model.refresh();
- return;
- }
- if( tmpcdid != "" ) {
- if( cdid != tmpcdid ) {
- messageBox("이미 등록된 코드는 변경하실수 없습니다.", "E000");
- model.setValue("/root/main/recstandlist[" + grd_recstandlist.row + "]/recoutplcecd", tmpcdid);
- model.refresh();
- return;
- }
- }
- ]]>
- </script>
- </datagrid>
- <button id="button4" class="btn2_letter3" style="left:433px; top:5px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_recstandlist.addrow();
- var maxseqno = model.getValue("/root/temp/maxseqno");
- var recmaxseq = model.getValue("/root/main/recstandlist[" + (grd_recstandlist.rows-2) + "]/maxseqno");
- if( maxseqno == "" ) {
- model.setValue("/root/temp/maxseqno", parseInt(recmaxseq)+1);
- maxseqno = parseInt(recmaxseq)+1;
- }else {
- model.setValue("/root/temp/maxseqno", parseInt(maxseqno)+1);
- maxseqno = parseInt(maxseqno)+1;
- }
- model.setValue("/root/main/recstandlist[" + (grd_recstandlist.rows-1) + "]/recsortseq", maxseqno);
- model.setValue("/root/main/recstandlist[" + (grd_recstandlist.rows-1) + "]/recuseflag", "Y");
- ]]>
- </script>
- </button>
- <button id="button2" class="btn5_letter2" style="left:489px; top:5px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSave("R"); // 저장
- ]]>
- </script>
- </button>
- <button id="button7" class="btn2_letter2" style="left:388px; top:5px; width:42px; height:19px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- </case>
- </switch>
- </xhtml:body>
- </xhtml:html>
|