123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300 |
- <?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>
- <list1>
- <item>
- <basecd/>
- <basecdflagdesc/>
- </item>
- </list1>
- <list2>
- <item>
- <check/>
- <sortno/>
- <basecd/>
- <basecdflagdesc/>
- <excudd/>
- </item>
- </list2>
- </main>
- <send>
- <excuroomcd/>
- <req>
- <data/>
- </req>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <curerid/>
- <startdate/>
- </send>
- <init>
- <curerlist>
- <curernm/>
- </curerlist>
- </init>
- <hidden>
- <item/>
- </hidden>
- <temp>
- </temp>
- <popdata>
- <execrid/>
- <excuroomcd/>
- <excudd/>
- </popdata>
- <hidden1>
- <popupmenu>
- <menu>
- <label>검사/치료실변경</label>
- <func>ExcuroomFunc</func>
- </menu>
- </popupmenu>
- </hidden1>
- </root>
- </instance>
- <submission id="TRAEA00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list1"/>
- <submission id="TRAEA00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list2"/>
- <submission id="TRAEA00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/curerlist"/>
- <submission id="TXAEA00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- aezfSetSuppDeptcd();
-
- model.removeNodeset("/root/main/list1/item");
- model.removeNodeset("/root/main/list2/item");
-
- model.setValue("/root/send/startdate", getCurrentDate());
-
- submit("TRAEA00203");
-
- btn_sea.dispatch("DOMActivate");
- ]]>
- </script>
- </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"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript">
- <![CDATA[
- function readfunc() {
- model.setValue("/root/send/excuroomcd", model.getValue("/root/main/list1/item[" + grd_cureroomlist.row + "]/basecd"));
- model.removeNodeset("/root/main/list2/item");
- if (submit("TRAEA00202")){
- model.setValue("/root/send/excuroomcd", "");
- if (grd_curerlist.rows > 1){
- for (var i = 1; i < grd_curerlist.rows; i ++){
- model.setValue("/root/main/list2/item[" + i + "]/basecdflagdesc", model.getValue("/root/main/list2/item[" + i + "]/basecd"));
- }
- }
- }
- model.refresh();
- }
- function datacheck(){
- for (var i = 1; i < grd_curerlist.rows; i++){
- var schk = model.getValue("/root/main/list2/item[" + i + "]/check");
- if (schk == "Y"){
- var sexcudd = model.getValue("/root/main/list2/item[" + i + "]/excudd");
- if (sexcudd == ""){
- messageBox(i + "번째행의 시행일은 필수 입력항목입니다.", "E999", "");
- return false;
- }
- var sbasecd = model.getValue("/root/main/list2/item[" + i + "]/basecd");
- if (sbasecd == ""){
- messageBox(i + "번째행의 이름은 필수 선택항목입니다.", "E999", "");
- return false;
- }
- }
- }
- for (var i = 1; i < grd_curerlist.rows - 1; i++){
- var sbasecd = model.getValue("/root/main/list2/item[" + i + "]/basecd");
- for (var j = 1; j < grd_curerlist.rows; j++){
- sbasecd1 = model.getValue("/root/main/list2/item[" + j + "]/basecd");
- if (i != j){
- if (sbasecd == sbasecd1){
- messageBox(j + "번째에서 중복된 자료가 존재합니다", "E999", "");
- return false;
- }
- }
- }
- }
- }
- function ExcuroomFunc(){
- var sexcudd = model.getValue("/root/main/list2/item[" + grd_curerlist.row + "]/excudd");
- if (sexcudd == ""){
- messageBox("시행일자를 저장한 후 작업하시기 바랍니다.", "E999", "");
- return;
- }
- if (isValidDateTime(sexcudd, "YYYYMMDD") == false){
- messageBox("날짜 형식이 잘못 입력되었습니다.", "E999", "");
- return;
- }
- model.setValue("/root/popdata/excuroomcd", model.getValue("/root/main/list1/item[" + grd_cureroomlist.row + "]/basecd"));
- model.setValue("/root/popdata/execrid", model.getValue("/root/main/list2/item[" + grd_curerlist.row + "]/basecd"));
- model.setValue("/root/popdata/excudd", model.getValue("/root/main/list2/item[" + grd_curerlist.row + "]/excudd"));
- modal("SPAER02100", "", "200", "200", "SPAER02100","/root/popdata","/root/popdata");
- readfunc();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1195;2,466;" 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:695px; height:442px; ">
- <group id="grp_btn" scroll="auto" style="left:0px; top:415px; width:680px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:616px; top:3px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (datacheck() == false){
- return;
- }
- model.setValue("/root/send/req/data",grd_curerlist.getUpdateData());
- model.setValue("/root/send/excuroomcd", model.getValue("/root/main/list1/item[" + grd_cureroomlist.row + "]/basecd"));
- submit("TXAEA00201", false);
- //model.setValue("/root/send/excuroomcd", "");
- model.removeNodeset("/root/main/list2/item");
- model.refresh();
-
- readfunc();
-
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- checkKeyColumn("grd_curerlist");
- ]]>
- </script>
- </button>
- </group>
- <group id="group2" style="left:0px; top:7px; width:690px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:683px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line13" style="x1:599px; y1:7px; x2:599px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_sea" class="btn1_letter2" style="left:615px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRAEA00201");
- ]]>
- </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/send/excuroomcd" 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>
- <input id="ipt_acptdd" ref="/root/send/startdate" class="input_default" editable="false" inputtype="date" style="left:403px; top:7px; width:102px; height:19px; text-align:center; "/>
- <caption id="caption4" class="search_name" style="left:326px; top:9px; width:74px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">시행일:</caption>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:53px; width:120px; height:13px; 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:681px; y2:69px; "/>
- <button id="btn_grdadd" class="btn2_letter3" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:566px; top:48px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_curerlist.addRow();
- var irow = grd_curerlist.row - 1;
- var ino = grd_curerlist.valueMatrix(irow, 2);
- if (irow == 0){
- ino = 1;
- }else{
- ino = parseFloat(ino) + 1;
- }
- model.setValue("/root/main/list2/item[" + grd_curerlist.row + "]/sortno", ino);
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_grddel" class="btn2_letter3" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:626px; top:48px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //deleteSelectedRows(grd_curerlist, true);
- grd_curerlist.deleteRow(grd_curerlist.row);
- /*
- var row = grd_curerlist.row;
- grd_curerlist.addStatus(row, "delete");
- grd_curerlist.cellStyle("background-image", grd_curerlist.row, 0) = "../../../com/commonweb/images/icon_d.gif";
- */
- ]]>
- </script>
- </button>
- <datagrid id="grd_curerlist" nodeset="/root/main/list2/item" caption="^No^이름^사번^시행일" colsep="^" colwidth="33, 39, 92, 85, 96" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:296px; top:73px; width:384px; height:338px; ">
- <col checkvalue="Y,N" ref="check" type="checkbox"/>
- <col ref="sortno" type="input" format="99" style="text-align:center; "/>
- <col disabled="true" ref="basecd" type="combo" _key="true">
- <choices>
- <itemset nodeset="/root/init/curerlist">
- <label ref="curernm"/>
- <value ref="curerid"/>
- </itemset>
- </choices>
- </col>
- <col ref="basecdflagdesc" style="text-align:center; "/>
- <col ref="excudd" type="inputdate" style="text-align:center; "/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //if (isDataCell()) {
- var colidx = grd_curerlist.col;
- if (grd_curerlist.colAttribute(colidx, "ref") == "check"){
- if (model.getValue("/root/main/list2/item[" + grd_curerlist.row + "]/check") == "Y"){
- model.setValue("/root/main/list2/item[" + grd_curerlist.row + "]/excudd", model.getValue("/root/send/startdate"));
- }
- }
- if (grd_curerlist.colAttribute(colidx, "ref") == "basecd"){
- model.setValue("/root/main/list2/item[" + grd_curerlist.row + "]/basecdflagdesc", model.getValue("/root/main/list2/item[" + grd_curerlist.row + "]/basecd"));
- }
- //}
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- setPopupMenu("grd_curerlist", false, "/root/hidden1/popupmenu/menu", "label", "func");
- ]]>
- </script>
- </datagrid>
- </group>
- <datagrid id="grd_cureroomlist" nodeset="/root/main/list1/item" caption="코드^검사/치료실" colsep="^" colwidth="71, 202" mergecellsfixedrows="bycolrec" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:85px; width:291px; height:338px; ">
- <col ref="basecd"/>
- <col ref="basecdflagdesc"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- /*
- model.setValue("/root/send/excuroomcd", model.getValue("/root/main/list1/item[" + grd_cureroomlist.row + "]/basecd"));
- submit("TRAEA00202", false);
- model.setValue("/root/send/excuroomcd", "");
- model.refresh();
-
- grd_curerlist.isReadOnly(grd_curerlist.topRow,2, grd_curerlist.bottomRow, 2) = true;
- */
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- readfunc();
- ]]>
- </script>
- </datagrid>
- </xhtml:body>
- </xhtml:html>
|