123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMAHB00300.xrw
- * 설 명 : 패키지관리
- * 설 계 자 : 손주연
- * 작 성 자 :
- * 작 성 일 : 2007.03.13
- * 수정이력 : 2007.10.04 김다영 화면권한추가
- * 기 타 :
- -->
- <?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>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <roomlst>
- <item>
- <roomcd/>
- <roomnm/>
- <testroomcdkey/>
- <testroomcd/>
- <testroomabbrnm/>
- <testroomnm/>
- <healexamplacecd/>
- <cntrroomcd/>
- <testroomflag/>
- <prntseq/>
- <examdesc/>
- <remcnts/>
- <useyn/>
- <prntyn/>
- <usetm/>
- <waitdispyn/>
- <barcdautprntyn/>
- <namecardautprntyn/>
- <rsrvyn/>
- <lastupdtrid/>
- <lastupdtdt/>
- <roomcdkey/>
- <cntrroomcdkey/>
- <healexamplacecdkey/>
- </item>
- </roomlst>
- <cntrroomlst>
- <room>
- <sel/>
- <examroomid/>
- <examroomnm/>
- <healexamplacecd/>
- <waitshowyn/>
- <floorno/>
- </room>
- </cntrroomlst>
- </main>
- <send>
- <srchtestroomcd/>
- <srchtestroomnm/>
- <srchhealexamplacecd/>
- <srchinstcd/>
- <req>
- <savedata/>
- <userid/>
- <instcd/>
- </req>
- <srchtestroomflag/>
- </send>
- <init>
- <baseinfo>
- <roomflag/>
- <healexamplacelst/>
- <cntrroomlst/>
- </baseinfo>
- </init>
- <hidden>
- <item/>
- <sel/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
- <submission id="TRAHB01506" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/baseinfo/cntrroomlst"/>
- <submission id="TRAHB00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/roomlst"/>
- <submission id="TXAHB00401" mediatype="application/x-www-form-urlencoded" method="post" ref="root/send/req" replace="instance" resultref="root/hidden"/>
- <submission id="TRZBC00101"/>
- <submission id="TRAHA00001"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- //검사실구분
- zbcfGetCodeList( new Array("A0065"), new Array("/root/init/baseinfo/roomflag"));
- submit("TRZBC00101");
-
- healGetCodeList(new Array("S600"), new Array("/root/init/baseinfo/healexamplacelst"));
-
- // 중앙관제 검사실
- model.setValue("/root/send/srchinstcd", getUserInfo("dutplceinstcd"));
- submit("TRAHB01506");
-
- fGetRoomList();
-
- //화면권한추가
- btn_search.disabled = !checkAuth("R");
- btn_save.disabled = !checkAuth("X");
- btn_print.disabled = !checkAuth("P");
- ]]>
- </script>
- <bind id="bind_roomcd" ref="/root/main/roomlst/item/testroomcd" readonly="../testroomcdkey!=''"/>
- </model>
- <script type="javascript">
- <![CDATA[
- function fGetRoomList(){
- model.removeNodeset("/root/main/roomlst/item");
- var ret = submit("TRAHB00401");
- return ret;
- }
-
- function fSaveRoom(){
- var ret = false;
- if ( messageBox("검사실정보를","Q002")==6 ) {
- model.setValue("/root/send/req/savedata", grd_roomlst.getUpdateData());
- model.setValue("/root/send/req/instcd", getUserInfo("dutplceinstcd") );
- model.setValue("/root/send/req/userid", getUserId() );
- ret = submit("TXAHB00401");
- }
- return ret;
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">검사실관리</caption>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" style="left:1138px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( fSaveRoom() == true ){
- fGetRoomList();
- }
- ]]>
- </script>
- </button>
- <button id="btn_print" class="btn6_letter2" style="left:0px; top:5px; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="group6" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1122px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetRoomList();
- ]]>
- </script>
- </button>
- <line id="line18" class="line_4" style="x1:1106px; y1:7px; x2:1106px; y2:29px; border-left-style:solid; "/>
- <caption id="caption59" class="search_name" style="left:16px; top:6px; width:60px; height:17px; ">코드 :</caption>
- <input id="ipt_cd" ref="/root/send/srchtestroomcd" class="input_s_essential" style="left:80px; top:7px; width:140px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_nm" ref="/root/send/srchtestroomnm" class="input_s_essential" style="left:307px; top:7px; width:293px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption21" class="search_name" style="left:245px; top:6px; width:73px; height:17px; ">명칭 :</caption>
- <caption id="caption1" class="search_name" style="left:645px; top:6px; width:81px; height:17px; ">건진장소:</caption>
- <select1 id="combo1" ref="/root/send/srchhealexamplacecd" class="combo_search" appearance="minimal" style="left:735px; top:7px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/healexamplacelst/S600">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" style="left:875px; top:6px; width:100px; height:17px; ">검사실구분:</caption>
- <select1 id="combo2" ref="/root/send/srchtestroomflag" class="combo_search" appearance="minimal" style="left:980px; top:7px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/roomflag/A0065">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <line id="line20" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
- <datagrid id="grd_roomlst" nodeset="/root/main/roomlst/item" caption="검사실그룹코드^검사실그룹명^caption1^검사실코드^검사실약어명^검사실명^건진장소^관제검사실^검사실구분^출력순서^검사항목^검사항목(영)^검사항목(중)^검사항목(러)^비고^사용여부^출력여부^소요시간^대기자표시^바코드자동출력^네임지자동출력^예약관리여부^최종수정자^최종수정일시^roomcdkey^cntrroomcdkey^healexamplacecdkey" colsep="^" colwidth="99, 104, 52, 75, 115, 117, 70, 80, 86, 67, 132, 132, 132, 132, 72, 51, 58, 60, 72, 96, 100, 78, 78, 100, 100, 100, 100" dataheight="23" extendlastcol="scroll" frozencols="6" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:0px; top:75px; width:1194px; height:663px; ">
- <col ref="roomcd" type="input"/>
- <col ref="roomnm" type="input"/>
- <col ref="testroomcdkey" visibility="hidden"/>
- <col ref="testroomcd" type="input"/>
- <col ref="testroomabbrnm" type="input"/>
- <col ref="testroomnm" type="input" style="left:365px; top:23px; width:155px; height:23px; "/>
- <col ref="healexamplacecd" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/healexamplacelst/S600">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="cntrroomcd" type="inputbutton"/>
- <col ref="testroomflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/roomflag/A0065">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="prntseq" type="input"/>
- <col ref="examdesc" type="input"/>
- <col ref="examdesc_eng" type="input"/>
- <col ref="examdesc_chn" type="input"/>
- <col ref="examdesc_rsa" type="input" style="font-family:맑은 고딕; "/>
- <col class="gridinput" ref="remcnts" type="input"/>
- <col checkvalue="Y,N" ref="useyn" type="checkbox"/>
- <col checkvalue="Y,N" ref="prntyn" type="checkbox"/>
- <col class="gridinput" ref="usetm" type="input"/>
- <col checkvalue="Y,N" ref="waitdispyn" type="checkbox" visibility="hidden"/>
- <col checkvalue="Y,N" ref="barcdautprntyn" type="checkbox"/>
- <col checkvalue="Y,N" ref="namecardautprntyn" type="checkbox"/>
- <col checkvalue="Y,N" ref="rsrvyn" type="checkbox"/>
- <col ref="lastupdtrid"/>
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="roomcdkey" visibility="hidden"/>
- <col ref="cntrroomcdkey" visibility="hidden"/>
- <col ref="healexamplacecdkey" visibility="hidden"/>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- /*var cur_col = grd_roomlst.col;
- var cur_row= grd_roomlst.row;
- cur_col++;
- if( cur_col > 10 ){
- grd_roomlst.addItem();
- grd_roomlst.col = 2;
- grd_roomlst.editCell();
- }
- else{
- grd_roomlst.col = cur_col;
- grd_roomlst.editCell();
- }
- */
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if( grd_roomlst.colType(grd_roomlst.col) == "input" ){
- grd_roomlst.editCell();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if(grd_roomlst.col == grd_roomlst.colRef("cntrroomcd")) {
- var cntrroomcd = grd_roomlst.valueMatrix(grd_roomlst.row , grd_roomlst.colRef("cntrroomcd"));
- var healexamplacecd = grd_roomlst.valueMatrix(grd_roomlst.row , grd_roomlst.colRef("healexamplacecd"));
- var nodeList = instance1.selectNodes("/root/init/baseinfo/cntrroomlst/room[healexamplacecd='"+ healexamplacecd +"']"); // 해당 건진장소 검사실 인스턴스 조회
-
- grp_room.visible = true;
-
- if(nodeList.length <= 0 ) return;
- // 해당 건진장소를 셋팅
- model.removeNodeset("/root/main/cntrroomlst/room");
- var rCSV = getNodeListCSV(nodeList);
- setCSVToNode( "/root/main/cntrroomlst", rCSV ,"room");
- model.makeValue("/root/hidden/sel" , grd_roomlst.row); // 선택 row
- // 초기화
- grd_cntrroomlst.rebuild();
-
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_grdadd" class="btn2_letter3" style="left:982px; top:50px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_roomlst.addItem();
- grd_roomlst.col = 2;
- grd_roomlst.editCell();
- ]]>
- </script>
- </button>
- <button id="btn_grddel" class="btn2_letter3" style="left:1038px; top:50px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //grd_roomlst.addStatus(grd_roomlst.row,"delete");
- deleteSelectedRows(grd_roomlst,true);
- ]]>
- </script>
- </button>
- <caption id="caption4" class="tit_2" style="left:0px; top:55px; width:144px; height:14px; ">검사실코드관리</caption>
- <button id="btn_excsave" class="btn2_letter2" style="left:1150px; top:50px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var file = window.fileDialog("save","","false","","xls","Excel Files(*.xls)|*.xls");
- grd_roomlst.saveExcel(file);
- ]]>
- </script>
- </button>
- <button id="btn_grdcopy" class="btn2_letter3" style="left:1094px; top:50px; width:53px; height:19px; ">
- <caption>행복사</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var grdrow = grd_roomlst.row;
- model.copyNode("/root/hidden/item","/root/main/roomlst/item["+ grdrow +"]");
- grd_roomlst.insertItem(grdrow);
- model.setValue("/root/hidden/item/testroomcdkey", "");
- model.setValue("/root/hidden/item/testroomcd", "");
- model.copyNode("/root/main/roomlst/item["+ grdrow +"]","/root/hidden/item");
- model.refresh();
- grd_roomlst.col = 2;
- grd_roomlst.editCell();
- ]]>
- </script>
- </button>
- <group id="grp_room" visibility="hidden" style="left:725px; top:125px; width:355px; height:270px; ">
- <datagrid id="grd_cntrroomlst" nodeset="/root/main/cntrroomlst/room" caption="선택^검사실코드^검사실명^건진장소^대기자표시^floorno" colsep="^" colwidth="30, 70, 120, 65, 70, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:25px; width:345px; height:240px; ">
- <col checkvalue="Y,N" ref="sel" type="checkbox" visibility="hidden"/>
- <col ref="examroomid"/>
- <col ref="examroomnm"/>
- <col disabled="true" ref="healexamplacecd" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/healexamplacelst/S600">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col checkvalue="Y,N" disabled="true" ref="waitshowyn" type="checkbox"/>
- <col ref="floorno" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var selRow = parseInt(model.getValue("/root/hidden/sel"));
- grd_roomlst.valueMatrix( selRow , grd_roomlst.colRef("cntrroomcd")) = grd_cntrroomlst.valueMatrix(grd_cntrroomlst.row , grd_cntrroomlst.colRef("examroomid"));
- if (grd_roomlst.rowStatus(selRow) == 0) {
- grd_roomlst.rowStatus(selRow) = 2;
- }
- grp_room.visible = false;
- ]]>
- </script>
- </datagrid>
- <caption id="caption2" class="tit_2" style="left:5px; top:5px; width:144px; height:14px; ">관제검사실</caption>
- <line id="line1" class="line_1" style="x1:5px; y1:20px; x2:350px; y2:20px; "/>
- <button id="btn_choiclose" class="icon_plus" style="left:337px; top:3px; width:13px; height:15px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_room.visible = false;
- ]]>
- </script>
- </button>
- </group>
- </group>
- </xhtml:body>
- </xhtml:html>
|