123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248 |
- <?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>
- <roomlst>
- <itemroom>
- <testroomcd/>
- <testroomnm/>
- </itemroom>
- </roomlst>
- <dutplst>
- <item>
- <seqno/>
- <basenm/>
- <basecd/>
- <orgbasecd/>
- </item>
- </dutplst>
- </main>
- <send>
- <testroomcd/>
- <srchinstcd/>
- <save>
- <testroomcd/>
- <instcd/>
- <dutpinfo/>
- </save>
- </send>
- <init>
- <dutplst>
- <item/>
- </dutplst>
- <deptcd/>
- </init>
- <hidden>
- <srchinstcd/>
- <srchtestroomcd/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fSetSuppDeptcd();
-
- model.removeNodeset("/root/main/testroomlst/iem");
- model.removeNodeset("/root/main/dutplst/item");
-
- submit("TRAHB01201");
-
- //검사실 코드조회
-
- model.setValue("/root/hidden/srchinstcd" , getUserInfo("dutplceinstcd"));
-
- submit("TRAHB01302");
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- /*********************************************************************************************
- * 부서코드 셋팅
- **********************************************************************************************/
- function fSetSuppDeptcd() {
- var dutplcecd = getUserInfo("dutplcecd");
- //var selectplcecd = getScreenPrestDeptCd();
- model.setValue("/root/init/deptcd" , dutplcecd);
- model.setValue("/root/send/srchinstcd" , getUserInfo("dutplceinstcd"));
- }
-
- /*********************************************************************************************
- * 검사코드 셋팅
- **********************************************************************************************/
- function fSetExecrCode(vRow) {
- var baseCd = grd_execrlst.valueMatrix(vRow,grd_execrlst.colRef("basenm"));
- var nodeList = instance1.selectNodes("/root/init/dutplst/item");
-
- for(var i=1; i <=nodeList.length; i++) {
- var com_baseCd = model.getValue("/root/init/dutplst/item[" + i + "]/basecd");
- if(com_baseCd == baseCd) {
- grd_execrlst.valueMatrix(vRow,grd_execrlst.colRef("seqno")) = model.getValue("/root/init/dutplst/item[" + i + "]/seqno");
- grd_execrlst.valueMatrix(vRow,grd_execrlst.colRef("basecd")) = model.getValue("/root/init/dutplst/item[" + i + "]/basecd");
- }
- }
- }
-
- /*********************************************************************************************
- * 검사실코드 조회
- **********************************************************************************************/
- function fGetRoomList() {
-
- model.setValue("/root/hidden/srchinstcd" , getUserInfo("dutplceinstcd"));
-
- var ret = submit("TRAHB01302");
- if(ret) {
- model.removeNodeset(grd_execrlst.nodeset);
- grd_execrlst.refresh();
- }
- }
-
- /*********************************************************************************************
- * 검사실별 근무자 저장
- **********************************************************************************************/
- function fSaveTestDutp() {
- var row = grd_testroomlst.row;
- if(row > 0) {
- var testroomcd = grd_testroomlst.valueMatrix(row,grd_testroomlst.colRef("testroomcd"));
- var save = getGridUpdateData(grd_execrlst);
-
- model.setValue("/root/send/save/instcd" , model.getValue("/root/send/srchinstcd"));
- model.setValue("/root/send/save/dutpinfo" , save);
- model.setValue("/root/send/save/testroomcd", testroomcd);
- submit("TXAHB01301");
- }
- }
- ]]>
- </script>
- <submission id="TRAHB01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/dutplst"/>
- <submission id="TRAHB01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/dutplst"/>
- <submission id="TXAHB01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/main/dutplst"/>
- <submission id="TRAHB01302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden" resultref="/root/main/roomlst"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- </xhtml:head>
- <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:580px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:235px; height:14px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">검사/치료실별 근무자관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:580px; height:442px; ">
- <group id="grp_btn" scroll="auto" style="left:0px; top:415px; width:580px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:523px; top:3px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveTestDutp();
- ]]>
- </script>
- </button>
- </group>
- <group id="group2" style="left:0px; top:7px; width:580px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:578px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line13" style="x1:499px; y1:7px; x2:499px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_sea" class="btn1_letter2" style="left:515px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetRoomList();
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_name" style="left:11px; top:8px; width:106px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">검사/치료실 :</caption>
- <input id="input2" ref="/root/hidden/srchtestroomcd" class="input_search" style="left:122px; top:8px; width:130px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- inputEnterKey("btn_sea","DOMActivate");
- ]]>
- </script>
- </input>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:54px; width:120px; height:14px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">검사/치료실 현황</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:69px; x2:290px; y2:70px; "/>
- <caption id="caption2" class="tit_2" style="left:300px; top:53px; width:133px; height:14px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">근무자 현황</caption>
- <line id="line2" class="line_1" style="x1:295px; y1:69px; x2:577px; y2:69px; "/>
- <button id="btn_grdadd" class="btn2_letter3" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:464px; top:46px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_execrlst.addRow();
- ]]>
- </script>
- </button>
- <button id="btn_grddel" class="btn2_letter3" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:524px; top:46px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var row = grd_execrlst.row;
- var rowStat = grd_execrlst.rowStatus(row);
- if(rowStat == 1 || rowStat == 3) {
- grd_execrlst.deleteRow(row);
- }else {
- grd_execrlst.rowStatus(row) = 4;
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_execrlst" nodeset="/root/main/dutplst/item" caption="순번^이름^사번^원본사번" colsep="^" colwidth="43, 105, 95, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:296px; top:75px; width:280px; height:338px; ">
- <col ref="seqno"/>
- <col disabled="true" ref="basenm" type="combo" _key="true">
- <choices>
- <itemset nodeset="/root/init/dutplst/item">
- <label ref="basenm"/>
- <value ref="basecd"/>
- </itemset>
- </choices>
- </col>
- <col ref="basecd"/>
- <col ref="orgbasecd" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var row = grd_execrlst.row;
- var col = grd_execrlst.col;
-
- if(col == grd_execrlst.colRef("basenm")) {
-
- var count = -1;
- var chkRow = 0;
- // 선택한 성명 셋팅
- fSetExecrCode(row);
- var baseCd = grd_execrlst.valueMatrix(row,grd_execrlst.colRef("basecd"));
- //선행검사 중복체크
- while(chkRow >= 0) {
- chkRow = grd_execrlst.findRow(baseCd,chkRow+1,grd_execrlst.colRef("basecd"),false,true);
- count++;
- }
-
- if(count >= 2) {
- messageBox("사번이 ","E006");
- model.resetInstanceNode(grd_execrlst.nodeset + "[" + row + "]");
- return;
- }
-
- }
- ]]>
- </script>
- </datagrid>
- </group>
- <datagrid id="grd_testroomlst" nodeset="/root/main/roomlst/itemroom" caption="코드^검사/치료실" colsep="^" colwidth="71, 202" mergecellsfixedrows="bycolrec" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:87px; width:291px; height:338px; ">
- <col ref="testroomcd"/>
- <col ref="testroomnm"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var row = grd_testroomlst.row;
- if(row > 0) {
- var testroomcd = grd_testroomlst.valueMatrix(row , grd_testroomlst.colRef("testroomcd"));
- model.setValue("/root/send/testroomcd" , testroomcd);
- submit("TRAHB01301");
- }
- ]]>
- </script>
- </datagrid>
- </xhtml:body>
- </xhtml:html>
|