123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307 |
- <?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>
- <cdgrupid/>
- <cdnm/>
- <detldesc/>
- </item>
- </list1>
- <list2>
- <item>
- <check/>
- <dispseq/>
- <usernm/>
- <cdid/>
- <fromdd/>
- </item>
- </list2>
- </main>
- <send>
- <cdgrupid/>
- <req>
- <data/>
- </req>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <curerid/>
- <startdate/>
- <cdnm/>
- <detldesc/>
- </send>
- <init>
- <curerlist>
- <curernm/>
- </curerlist>
- </init>
- <hidden>
- <item/>
- </hidden>
- <temp>
- <ret/>
- <userpopupinfo>
- <param/>
- <flag/>
- <searchitem/>
- </userpopupinfo>
- <useroneselect/>
- </temp>
- <hidden1>
- <popupmenu>
- <menu>
- <label>검사/치료실변경</label>
- <func>ExcuroomFunc</func>
- </menu>
- </popupmenu>
- </hidden1>
- </root>
- </instance>
- <submission id="TRPMP01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list1"/>
- <submission id="TRPMP01902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list2"/>
- <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("TRPMP01901");
-
- btn_sea.dispatch("DOMActivate");
- ]]>
- </script>
- <submission id="TXPMP01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- </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/cdgrupid", model.getValue("/root/main/list1/item[" + grd_cureroomlist.row + "]/cdgrupid"));
- model.removeNodeset("/root/main/list2/item");
- if (submit("TRPMP01902")){
- model.setValue("/root/send/cdgrupid", "");
- }
- 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 sfromdd = model.getValue("/root/main/list2/item[" + i + "]/fromdd");
- if (sfromdd == ""){
- messageBox(i + "번째행의 시행일은 필수 입력항목입니다.", "E999", "");
- return false;
- }
- var susernm = model.getValue("/root/main/list2/item[" + i + "]/usernm");
- if (susernm == ""){
- messageBox(i + "번째행의 이름은 필수 선택항목입니다.", "E999", "");
- return false;
- }
- }
- }
- for (var i = 1; i < grd_curerlist.rows - 1; i++){
- var susernm = model.getValue("/root/main/list2/item[" + i + "]/usernm");
- for (var j = 1; j < grd_curerlist.rows; j++){
- susernm1 = model.getValue("/root/main/list2/item[" + j + "]/usernm");
- if (i != j){
- if (susernm == susernm1){
- messageBox(j + "번째에서 중복된 자료가 존재합니다", "E999", "");
- return false;
- }
- }
- }
- }
- }
- function ExcuroomFunc(){
- var sfromdd = model.getValue("/root/main/list2/item[" + grd_curerlist.row + "]/fromdd");
- if (sfromdd == ""){
- messageBox("시행일자를 저장한 후 작업하시기 바랍니다.", "E999", "");
- return;
- }
- if (isValidDateTime(sfromdd, "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 pagewidth="720" pageheight="500" 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:695px; 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/cdgrupid", model.getValue("/root/main/list1/item[" + grd_cureroomlist.row + "]/cdgrupid"));
- model.setValue("/root/send/cdnm", model.getValue("/root/main/list1/item[" + grd_cureroomlist.row + "]/cdnm"));
- model.setValue("/root/send/detldesc", model.getValue("/root/main/list1/item[" + grd_cureroomlist.row + "]/detldesc"));
- submit("TXPMP01901", false);
- 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("TRPMP01901");
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_name" style="left:11px; top:8px; width:89px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">공통코드 :</caption>
- <input id="input2" ref="/root/send/cdgrupid" class="input_search" style="left:102px; 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: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: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 + "]/dispseq", 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[
- grd_curerlist.deleteRow(grd_curerlist.row);
- ]]>
- </script>
- </button>
- <datagrid id="grd_curerlist" nodeset="/root/main/list2/item" caption="^순번^이름^사번^시행일" 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="dispseq" type="input" format="99" style="text-align:center; "/>
- <col disabled="true" ref="usernm" type="inputbutton" _key="true"/>
- <col ref="cdid" type="input" style="text-align:center; "/>
- <col ref="fromdd" 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>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if ( grd_curerlist.colRef("usernm") == grd_curerlist.col ) {
- model.removeNodeset("/root/temp/useroneselect/list");
- model.resetInstanceNode("/root/temp/userpopupinfo");
- model.setValue("/root/temp/userpopupinfo/param", "_OneS");
- modal("SPZSU10103", "", "200", "200", "SPZSU10103","/root/temp/userpopupinfo","/root/main/temp");
-
- var iParam = getParameter("SPZSU10103_");
- setCSVToNode("/root/temp/useroneselect", iParam);
- clearParameter("SPZSU10103_");
-
- model.setValue("/root/main/list2/item[" + grd_curerlist.row + "]/usernm", model.getValue("/root/temp/useroneselect/list/usernm"));
- model.setValue("/root/main/list2/item[" + grd_curerlist.row + "]/cdid", model.getValue("/root/temp/useroneselect/list/userid"));
-
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- </group>
- <datagrid id="grd_cureroomlist" nodeset="/root/main/list1/item" caption="코드^분류^" colsep="^" colwidth="71, 202, 10" mergecellsfixedrows="bycolrec" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:85px; width:291px; height:338px; ">
- <col disabled="true" ref="cdgrupid"/>
- <col disabled="true" ref="cdnm"/>
- <col ref="detldesc" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
-
- model.setValue("/root/send/cdgrupid", model.getValue("/root/main/list1/item[" + grd_cureroomlist.row + "]/cdgrupid"));
- submit("TRPMP01902", false);
- model.setValue("/root/send/cdgrupid", "");
- 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>
|