123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * Name : SPCRC00500_휴일관리.xrw
- * Summary : 휴일 관리 및 검색
- * Programmer : 조영민
- * Date Written : 2009.02.04
- * History : 2009.02.04
- * Remark :
- -->
- <?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>
- <holiattr>
- <holidd/>
- <dept/>
- <deptnm/>
- <holinm/>
- <savemode/>
- <rgstr/>
- <rgstdd/>
- <usernm/>
- <rgstno/>
- </holiattr>
- <holiList>
- <no/>
- <rgstdd/>
- <Rgstr/>
- <holidd/>
- <rgstrdept/>
- <holinm/>
- <rgstrdeptcd/>
- </holiList>
- </main>
- <send>
- <holiattr>
- </holiattr>
- <srch>
- <holifromdd/>
- <holitodd/>
- <dept/>
- <rgstdd/>
- <rgstr/>
- <deptnm/>
- <usernm/>
- </srch>
- <holilist/>
- </send>
- <init/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- model.removenodeset("/root/main/holilist"); // SMS 템플릿 리스트
- model.setValue("/root/main/holiattr/savemode","I"); //저장모드 초기화
- grd_holiList.clearStatus();
-
- var dutplcenm = getUserInfo("dutplcenm");
- var dutplcecd = getUserInfo("dutplcecd");
- model.setValue("/root/main/holiattr/dept", dutplcecd);
- model.setValue("/root/main/holiattr/deptnm", dutplcenm);
-
- var usernm = getUserInfo("usernm");
- model.setValue("/root/main/holiattr/usernm", usernm);
- model.refresh();
- ]]>
- </script>
- <submission id="TXCRC00501" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" ref="/root/send/holiattr" replace="instance"/>
- <submission id="TXCRC00502" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" ref="/root/send/holilist" replace="instance"/>
- <submission id="TRCRC00501" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" ref="/root/send/srch" replace="instance" resultref="/root/main/holiList"/>
- <script type="javascript">
- <![CDATA[
- // 각 컴포넌트 초기화
- function fInitHoli(){
- var savemode = model.getValue("/root/main/holiattr/savemode");
-
- if(savemode == "I"){
-
- model.setValue("/root/main/holiattr/holidd","");
- model.setValue("/root/main/holiattr/holinm","");
- model.refresh();
- }else if(savemode == "U"){
- fGetHoliAttr();
- }
- }
- //저장버튼 클릭시 이벤트 발생 저장모드 I, 수정모드 U
- function fSaveHoli(){
- var savemode = model.getValue("/root/main/holiattr/savemode");
-
- if(savemode == "I"){
- //fSaveGridStatus(grd_holiList); //삭제
-
- var holiDD = model.getValue("/root/main/holiattr/holidd"); //컴포넌트의 값을 받아 저장
- var holiNm = model.getValue("/root/main/holiattr/holinm"); //상동
-
- if(holiNm == ""){ //값이 없을시 에러 메시지발생
- messageBox("휴일 일명을 ", "I007");
- }
- else if(holiDD == ""){
- messageBox("휴일 일자를 ", "I007");
- }else{
- model.copyNode("/root/send/holiattr", "/root/main/holiattr");
-
- if(submit("TXCRC00501")){
- messageBox("휴일 저장을 ","I002");
- }
- }
- }else if(savemode == "U"){ //수정모드일경우 이벤트 발생
- model.copyNode("/root/send/holiattr", "/root/main/holiattr");
- if(submit("TXCRC00501")){
- messageBox("휴일 수정을 ","I002");
- }
- }
-
- model.setValue("/root/main/holiattr/savemode","I"); //저장모드 초기화
- fInitHoli(); //이벤트 발생 후 컴포넌트들 초기화 시킴
- fGetHoliInfo(); //reflash효과로 등록되거나 수정된 값을 보여주기위해 목록을 다시 조회
-
-
- }
-
-
- // 조회된 목록을 선택 더블클릭시 아래 컴포넌트로 선택된 항목의 상세내용 나타냄
- function fGetHoliAttr(){
- var row = grd_holiList.row;
-
- var RgstDD = grd_holiList.valueMatrix(row, grd_holiList.colRef("rgstdd"));
- model.setValue("/root/main/holiattr/rgstdd", RgstDD);
- var Rgstr = grd_holiList.valueMatrix(row, grd_holiList.colRef("rgstr"));
- model.setValue("/root/main/holiattr/rgstr", Rgstr);
- var holiDD = grd_holiList.valueMatrix(row, grd_holiList.colRef("holidd"));
- model.setValue("/root/main/holiattr/holidd", holiDD);
- var RgstrDept = grd_holiList.valueMatrix(row, grd_holiList.colRef("rgstrdeptcd"));
- model.setValue("/root/main/holiattr/dept",RgstrDept);
- var holiNm = grd_holiList.valueMatrix(row, grd_holiList.colRef("holinm"));
- model.setValue("/root/main/holiattr/holinm",holiNm);
- var rgstno = grd_holiList.valueMatrix(row, grd_holiList.colRef("rgstno"));
- model.setValue("/root/main/holiattr/rgstno",rgstno);
-
- model.setValue("/root/main/holiattr/savemode","U");
-
- model.refresh();
- }
- //목록을 선택해 삭제
-
- function fDelHoli(){
- var grid = grd_holiList
-
- deleteSelectedRows(grid, true); // 대상자 선택행 삭제
- // submit("TXCRC00502");
- // messageBox("선택된 목록 삭제가", "I002");
- }
- function fDelHoliEnd(){
-
- var gridupdate = "";
- gridupdate = grd_holiList.getUpdateData();
- model.setValue("/root/send/holilist", gridupdate);
-
- if(submit("TXCRC00502")){
- messageBox("휴일 삭제를 ","I002");
- }
-
- model.setValue("/root/main/holiattr/savemode","I"); //저장모드 초기화
- fInitHoli(); //이벤트 발생 후 컴포넌트들 초기화 시킴
- fGetHoliInfo(); //reflash효과로 등록되거나 수정된 값을 보여주기위해 목록을 다시 조회
-
- model.setValue("/root/main/holiattr/savemode","I"); //저장모드 초기화
- }
- //목록조회
- function fGetHoliInfo(){
- submit("TRCRC00501");
- }
-
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="706" pageheight="500" guideline="1,1195;2,-5;1,719;1,723;1,726;1,722;2,-4;1,-20;1,-86;1,-56;1,719;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:690px; height:80px; ">
- <caption id="caption6" class="tit_1" style="left:1230px; top:605px; width:650px; height:13px; ">휴일관리</caption>
- <shape id="roundrect1" appearance="roundrect" style="left:0px; top:15px; width:680px; height:61px; "/>
- <caption id="caption1" class="search_name" style="left:8px; top:24px; width:86px; height:17px; ">휴일일자 :</caption>
- <input id="ipt_holifromDD" ref="/root/send/srch/holifromdd" class="input_search" navindex="1" inputtype="date" style="left:100px; top:23px; width:105px; height:19px; "/>
- <caption id="caption11" class="search_n_b" style="left:211px; top:24px; width:12px; height:17px; font-weight:bolder; ">~</caption>
- <input id="ipt_holitoDD" ref="/root/send/srch/holitodd" class="input_search" navindex="2" inputtype="date" style="left:229px; top:23px; width:105px; height:19px; "/>
- <caption id="caption7" class="search_name" style="left:359px; top:24px; width:77px; height:17px; ">부 서 :</caption>
- <input id="ipt_Dept" ref="/root/send/srch/dept" class="input_search" navindex="4" maxlength="64" style="left:442px; top:23px; width:105px; height:19px; "/>
- <caption id="caption10" class="search_name" style="left:8px; top:48px; width:96px; height:17px; ">등록일자 :</caption>
- <input id="ipt_RgstDD" ref="/root/send/srch/rgstdd" class="input_search" navindex="3" inputtype="date" style="left:100px; top:50px; width:105px; height:19px; "/>
- <caption id="caption14" class="search_name" style="left:359px; top:48px; width:90px; height:17px; ">등록자 :</caption>
- <input id="ipt_Rgstr" ref="/root/send/srch/rgstr" class="input_search" navindex="5" maxlength="10" style="left:442px; top:47px; width:105px; height:19px; "/>
- <line id="line1" class="line_4" style="x1:572px; y1:23px; x2:572px; y2:66px; "/>
- <button id="btn_Ref" class="btn1_letter2" style="left:597px; top:34px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetHoliInfo();
- ]]>
- </script>
- </button>
- </group>
- <group id="group2" style="left:0px; top:85px; width:690px; height:245px; ">
- <caption id="caption32" class="tit_2" style="left:0px; top:6px; width:95px; height:13px; ">휴일목록</caption>
- <button id="btn_prcpdel" class="btn2_letter3" style="left:581px; top:0px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //deleteSelectedRows(grd_holiList, true);
- fDelHoli(); // 휴일 목록삭제
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn5_letter2" style="left:635px; top:0px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //==========================//
- //그리드 저장삭제를 실행한다//
- //==========================//
- fDelHoliEnd();
- ]]>
- </script>
- </button>
- <line id="line12" class="line_1" style="x1:0px; y1:20px; x2:680px; y2:20px; "/>
- <datagrid id="grd_holiList" nodeset="/root/main/holiList" autoresize="true" caption="휴일명^휴일^ 등록부서^등록자^등록일^^" colsep="^" colwidth="200, 100, 120, 70, 168, 0, 0" dataheight="30" explorerbar="sortshowmove" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="30" rowsep="|" style="left:0px; top:25px; width:680px; height:218px; ">
- <col ref="holinm"/>
- <col ref="holidd"/>
- <col ref="dept"/>
- <col ref="rgstr"/>
- <col ref="rgstdd" format="yyyy-mm-dd hh:mm"/>
- <col ref="rgstno" visivility="hidden"/>
- <col ref="rgstrdeptcd" visivility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var grid = grd_holiList;
- if(grid.row > 0 && grid.col > 0 && grid.isCell(event.target)){
- fGetHoliAttr(); //목록 더블클릭
- }
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group3" style="left:0px; top:330px; width:690px; height:110px; ">
- <caption id="caption2" class="tit_2" style="left:0px; top:12px; width:111px; height:13px; ">등록정보</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:26px; x2:680px; y2:26px; "/>
- <caption id="caption18" class="cell_1" style="left:0px; top:31px; width:90px; height:23px; ">휴일명</caption>
- <caption id="caption3" class="cell_1" style="left:0px; top:55px; width:90px; height:23px; ">휴일일자</caption>
- <caption id="caption4" class="cell_1" style="left:342px; top:55px; width:90px; height:23px; ">등록부서</caption>
- <output id="opt_Dept" ref="/root/main/holiattr/deptnm" class="output_fix" style="left:435px; top:56px; width:245px; height:19px; "/>
- <input id="ipt_holiDD" ref="/root/main/holiattr/holidd" class="input_essential" navindex="7" inputtype="date" style="left:93px; top:56px; width:245px; height:19px; "/>
- <textarea id="tar_holiNm" ref="/root/main/holiattr/holinm" class="input_essential" navindex="6" overflow="hidden" scroll="no" maxlength="126" style="left:93px; top:32px; width:587px; height:19px; "/>
- <line id="line6" class="line_2" style="x1:0px; y1:53px; x2:680px; y2:53px; "/>
- <line id="line3" class="line_3" style="x1:0px; y1:77px; x2:680px; y2:77px; "/>
- <button id="btn_Save" class="btn4_letter2" style="left:562px; top:84px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveHoli();
- ]]>
- </script>
- </button>
- <button id="btn_prcpreset" class="btn4_letter3" style="left:491px; top:84px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitHoli(); // 휴일등록 초기화
- ]]>
- </script>
- </button>
- <button id="btn_close" class="btn4_letter2" style="left:621px; top:84px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <close ev:event="DOMActivate"/>
- </button>
- </group>
- <button id="btn_writsrch" class="icon_search" style="left:550px; top:48px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var search_condition = "usernm";
- var search_term = model.getValue("/root/send/srch/usernm");
-
- var receive_usernm_path = "/root/send/srch/usernm";
- var receive_rgstr_path = "/root/send/srch/rgstr";
- var receive_dept_path = "/root/send/srch/dept";
- var receive_deptnm_path = "/root/send/srch/deptnm";
-
- setParameter("search_condition", search_condition);
- setParameter("search_term", search_term);
- setParameter("receive_empid_path", receive_rgstr_path);
- setParameter("receive_empnm_path", receive_usernm_path);
- setParameter("receive_deptcd_path", receive_dept_path);
- setParameter("receive_deptnm_path", receive_deptnm_path);
-
- modal("SPCCM00400")
-
- clearParameter("search_condition");
- clearParameter("search_term");
- clearParameter("receive_empid_path");
- clearParameter("receive_empnm_path");
- clearParameter("receive_deptcd_path");
- clearParameter("receive_deptnm_path");
- ]]>
- </script>
- </button>
- <button id="btn_deptsrch" class="icon_search" style="left:550px; top:25px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var search_condition = "Deptnm";
- var search_term = model.getValue("/root/main/holiattr/deptnm");
- var receive_deptcd_path = "/root/send/srch/dept";
- var receive_deptnm_path = "/root/send/srch/deptnm";
-
- setParameter("receive_deptnm_path", receive_deptnm_path);
- setParameter("receive_deptcd_path", receive_deptcd_path);
- modal("SPCCM00300")
- clearParameter("receive_deptcd_path");
- clearParameter("receive_deptnm_path");
-
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|