123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207 |
- <?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>회복실 코드 관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <chklist>
- <cdid/>
- <cdnm/>
- <sortseq/>
- <supcdid/>
- <valifromdd/>
- <valitodd/>
- <lastupdtrnm/>
- <lastupdtdt/>
- <lastupdtrid/>
- <cdgrupid/>
- </chklist>
- </list>
- </main>
- <send>
- <listdata/>
- </send>
- <init>
- </init>
- <hidden>
- </hidden>
- <temp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <submission id="TRMNP00750" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list/chklist"/>
- <submission id="TXMNP00750" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/listdata" resultref="/root/main/list/chklist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize(){
- model.removenode("/root/send");
- //model.makeValue("/root/send/temp","temp");
- model.makeValue("/root/send/cdgrupid","250");
- submit("TRMNP00750");
-
- }
-
- function fClickRowAddBtn(){
-
- grd_intublist.addRow(); // 입력할 행 추가.
- var cur_row = grd_intublist.row; // 추가된 행 번호 가져오기
- var cnt_row = grd_intublist.rows; // 현재 행의 갯수 가져오기
-
- sGridPath = "/root/main/list/chklist"
- // //줄 추가시 기본세팅
- model.setValue(sGridPath+"["+cur_row+"]/cdgrupid", "250" );
- grd_intublist.refresh();
-
- grd_intublist.row = cur_row;
- grd_intublist.select(cur_row, 2) = true;
- grd_intublist.editcell();
- }
-
- function fClickDeleteBtn(){
- var cur_row = grd_intublist.row; // 행 번호 가져오기
- var iStatus = grd_intublist.rowstatus(cur_row);
-
- if(cur_row <= 0 || cur_row =="undefined") {
- alert("삭제할 행을 선택하시기 바랍니다...");
- return;
- }
-
- if (iStatus == 1 || iStatus == 3){ // 새로 삽입된 행이면
- grd_intublist.deleteitem(cur_row);
-
- }else if (iStatus == 4){ // 삭제로 표시된 행이면
- grd_intublist.removestatus(cur_row, "delete");
- grd_intublist.deleteitem(cur_row);
- }else{
- grd_intublist.addStatus(cur_row, "delete");
- grd_intublist.deleteitem(cur_row);
- }
- }
-
- function fOnClickSaveBtn(){
- grd_intublist.refresh();
-
- var cnt_row = grd_intublist.rows; // 현재 행의 갯수 가져오기
- for (var row = 1 ; row < cnt_row ; row++){
- if( "" == model.getValue("/root/main/list/chklist["+row+"]/cdnm"))
- {
- alert("["+ row +"] 행 항목명에 빈값을 저장할 수 없습니다");
- return;
- }
-
- }
-
- model.removenode("/root/send");
-
- model.makeValue("/root/send/listdata" , grd_intublist.getUpdateData());
- if ( submit("TXMNP00750") ) {
- grd_intublist.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- model.setValue("/root/send/listdata","");
- }
-
- btn_search.dispatch("DOMActivate");
- }
-
- function fGridValueChanged(){
- // var cur_row = grd_intublist.row; // 추가된 행 번호 가져오기
- // var cur_cel = grd_intublist.col;
- // var cnt_row = grd_intublist.rows; // 현재 행의 갯수 가져오기
- // var stat = grd_intublist.colstatus(0);
- // var addcdid = model.getValue("/root/main/list/chklist["+cur_row+"]/cdid");
- //
- // if(cur_cel == 1){
- // 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_intublist.refresh();
- // grd_intublist.select(cur_row, 1) = true;
- // grd_intublist.editcell();
- //grd_intublist.rowstatus(cur_row) = 0;
- // return;
- // }
- //
- // }
- //
- // }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="610" pageheight="800" 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; ">회복간호기록 삽관류 Check List</caption>
- </group>
- <group id="group3" scroll="auto" style="left:5px; top:15px; width:590px; height:745px; ">
- <group id="group2" style="left:-16px; top:10px; width:601px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:18px; top:0px; width:580px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line13" style="x1:526px; y1:7px; x2:526px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" style="left:462px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- </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:585px; y2:75px; "/>
- <line id="line7" class="line_3" style="x1:0px; y1:741px; x2:585px; 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_intublist" nodeset="/root/main/list/chklist" visibility="visible" caption="항목코드^항목명^순서^위치^유효시작일^유효종료일^lastupdtrid^cdgrupid" colsep="^" colwidth="56, 256, 69, 0, 91, 81, 0, 0, 0" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:80px; width:585px; height:650px; ">
- <col ref="cdid"/>
- <col ref="cdnm" type="input" style="text-align:center; "/>
- <col ref="sortseq" type="input" style="text-align:center; "/>
- <col ref="supcdid" type="combo" visibility="hidden" style="text-align:center; "/>
- <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"/>
- <col ref="lastupdtdt" visibility="hidden"/>
- <col ref="cdgrupid" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGridValueChanged();
- ]]>
- </script>
- </datagrid>
- </group>
- <button id="button2" class="btn4_letter2" style="left:522px; top:32px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOnClickSaveBtn();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|