123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261 |
- <?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="">
- <main>
- <list>
- <chklist>
- <cdid/>
- <cdnm/>
- <grupdetldesc/>
- <sortseq/>
- <supcdid/>
- <valifromdd/>
- <valitodd/>
- <lastupdtrnm/>
- <lastupdtdt/>
- <lastupdtrid/>
- <cdgrupid/>
- </chklist>
- </list>
- </main>
- <send>
- <listdata/>
- </send>
- <init>
- <installplcelist>
- <installplceinfo>
- <oproomcd/>
- <oproomnm/>
- </installplceinfo>
- </installplcelist>
- </init>
- <hidden>
- <equinpm/>
- </hidden>
- <temp>
- <equiplist>
- <equipinfo>
- <equipnm/>
- </equipinfo>
- </equiplist>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <submission id="TRMNP00361" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list/chklist"/>
- <submission id="TXMNP00361" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/listdata" resultref="/root/main/list/chklist"/>
- <submission id="TRMNP00370" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/oproomlist"/>
- <submission id="TRMNP00371" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/equiplist/equipinfo"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize(){
- model.removenode("/root/send");
- model.makeValue("/root/send/cdgrupid","260");
- submit("TRMNP00361");
-
- model.makeValue("/root/send/sendflag", "OP");
- model.makeValue("/root/send/equipnm",model.getValue("/root/hidden/equinpm"));
-
- submit("TRMNP00370"); // 수술방
-
- submit("TRMNP00371"); // 장비목록.
- }
-
- function fClickRowAddBtn(){
-
- grd_equiplist.addRow(); // 입력할 행 추가.
- var cur_row = grd_equiplist.row; // 추가된 행 번호 가져오기
- var cnt_row = grd_equiplist.rows; // 현재 행의 갯수 가져오기
-
- sGridPath = "/root/main/list/chklist"
- // //줄 추가시 기본세팅
- model.setValue(sGridPath+"["+cur_row+"]/cdgrupid", "260" );
- grd_equiplist.refresh();
-
- grd_equiplist.row = cur_row;
- grd_equiplist.select(cur_row, 1) = true;
- grd_equiplist.editcell();
- }
-
- function fClickDeleteBtn(){
- var cur_row = grd_equiplist.row; // 행 번호 가져오기
- var iStatus = grd_equiplist.rowstatus(cur_row);
-
- if(cur_row <= 0 || cur_row =="undefined") {
- alert("삭제할 행을 선택하시기 바랍니다...");
- return;
- }
-
- if (iStatus == 1 || iStatus == 3){ // 새로 삽입된 행이면
- grd_equiplist.deleteitem(cur_row);
-
- }else if (iStatus == 4){ // 삭제로 표시된 행이면
- grd_equiplist.removestatus(cur_row, "delete");
- grd_equiplist.deleteitem(cur_row);
- }else{
- grd_equiplist.addStatus(cur_row, "delete");
- grd_equiplist.deleteitem(cur_row);
- }
- }
-
- function fOnClickSaveBtn(){
- grd_equiplist.refresh();
- model.removenode("/root/send");
-
- model.makeValue("/root/send/listdata" , grd_equiplist.getUpdateData());
- if ( submit("TXMNP00361") ) {
- grd_equiplist.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- model.setValue("/root/send/listdata","");
- }
-
- btn_search.dispatch("DOMActivate");
- }
-
- function fGridValueChanged(){
- // var cur_row = grd_equiplist.row; // 추가된 행 번호 가져오기
- // var cur_cel = grd_equiplist.col;
- // var cnt_row = grd_equiplist.rows; // 현재 행의 갯수 가져오기
- // var stat = grd_equiplist.colstatus(0);
- // var addcdid = model.getValue("/root/main/list/chklist["+cur_row+"]/cdid");
- //
- // if(cur_cel == 2){
- // for( row = 1; row < cnt_row-1; row++){
- // if(addcdid == model.getValue("/root/main/list/chklist["+row+"]/cdid")){
- // messageBox("같은 항목코드는 입력하실 수 없습니다. ","I000");
- // model.setValue("/root/main/list/chklist["+cur_row+"]/cdid" , "");
- // grd_equiplist.refresh();
- // grd_equiplist.select(cur_row, 2) = true;
- // grd_equiplist.editcell();
- //grd_equiplist.rowstatus(cur_row) = 0;
- // return;
- // }
- // }
- //
- // }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="720" pageheight="800" guideline="1,685;1,733;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:590px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:212px; height:14px; ">수술간호기록 장비등록 관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:5px; top:15px; width:690px; height:745px; ">
- <group id="group2" style="left:-16px; top:10px; width:696px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:18px; top:0px; width:678px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line13" style="x1:626px; y1:7px; x2:626px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_equipsrc" ref="/root/hidden/equinpm" style="left:335px; top:8px; width:120px; height:19px; "/>
- </group>
- <caption id="caption20" class="tit_2" style="left:6px; top:62px; width:136px; height:14px; ">장비 목록</caption>
- <line id="line8" class="line_1" style="x1:0px; y1:75px; x2:680px; y2:75px; "/>
- <line id="line7" class="line_3" style="x1:0px; y1:741px; x2:620; y2:741; "/>
- <button id="button8" class="btn2_letter3" style="left:115px; top:54px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fClickRowAddBtn();
- ]]>
- </script>
- </button>
- <button id="button9" class="btn2_letter3" style="left:172px; top:54px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fClickDeleteBtn();
- ]]>
- </script>
- </button>
- <datagrid id="grd_equiplist" nodeset="/root/main/list/chklist" visibility="visible" allowselection="false" caption="장비코드^장비명^모델^순서^수술방^유효시작일^유효종료일^최종 변경자^최종 변경일^lastupdtrid^cdgrupid" colsep="^" colwidth="56, 260, 121, 0, 50, 85, 85, 0, 0, 0, 0" ellipsis="true" explorerbar="sort" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:80px; width:681px; height:650px; ">
- <col ref="cdid" style="text-align:center; "/>
- <col ref="cdnm" type="input" style="text-align:left; "/>
- <col ref="grupdetldesc" type="input" style="text-align:left; "/>
- <col ref="sortseq" type="input" visibility="hidden" style="text-align:center; "/>
- <col ref="supcdid" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/installplcelist/installplceinfo">
- <label ref="oproomnm"/>
- <value ref="oproomcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="valifromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="valitodd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="lastupdtrnm" visibility="hidden" style="text-align:center; "/>
- <col ref="lastupdtdt" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="lastupdtrid" visibility="hidden"/>
- <col ref="cdgrupid" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //fGridValueChanged();
- ]]>
- </script>
- </datagrid>
- <select1 id="cmb_equipinfolst" ref="/root/temp/equiplist/equipinfo/equipnm" appearance="minimal" style="left:95px; top:18px; width:215px; height:19px; ">
- <choices>
- <itemset nodeset="/root/temp/equiplist/equipinfo">
- <label ref="equipnm"/>
- <value ref="equipnm"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fClickRowAddBtn();
- var cur_row = grd_equiplist.row;
- sGridPath = "/root/main/list/chklist"
- model.setValue(sGridPath+"["+cur_row+"]/cdnm", model.getValue("/root/temp/equiplist/equipinfo/equipnm"));
- ]]>
- </script>
- </select1>
- <caption id="caption3" class="search_name" style="left:5px; top:19px; width:86px; height:17px; ">장비목록 :</caption>
- </group>
- <button id="button2" class="btn4_letter2" style="left:623px; top:65px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOnClickSaveBtn();
- ]]>
- </script>
- </button>
- <button id="btn_search" class="btn1_letter2" style="left:559px; top:65px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <button id="btn_eqip" class="btn1_letter2" style="left:455px; top:32px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removenode("/root/send");
-
- var equipnmsrc = model.getValue("/root/hidden/equinpm");
- model.makeValue("/root/send/equipnmsrc", equipnmsrc);
-
- submit("TRMNP00371");
- model.setValue("/root/hidden/equinpm","");
- ipt_equipsrc.refresh();
-
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|