123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287 |
- <?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="">
- <cond>
- <voluntrid/>
- <cptvoluntrid/>
- <servdd/>
- <tretflag/>
- <educrcogtm/>
- <bizflag/>
- <educfestivseqno/>
- </cond>
- <main>
- <pridrinfo>
- <drinfo/>
- </pridrinfo>
- <voluntrattdabsninfo>
- <voluntrattdabsnlist>
- </voluntrattdabsnlist>
- </voluntrattdabsninfo>
- </main>
- <hidden>
- <calldryninfo>
- <calldryninfolist>
- <drid/>
- </calldryninfolist>
- </calldryninfo>
- </hidden>
- <send/>
- <init>
- <hardcd/>
- </init>
- <temp>
- <voluntrattdabsninfo>
- <voluntrattdabsnlist/>
- </voluntrattdabsninfo>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-close">
- <![CDATA[
- fCloseWindow();
- ]]>
- </script>
- <!-- 호출한의사인지 조회 -->
- <!-- 도착시간등록 -->
- <submission id="TXAAA04001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TXAAA04002" 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/tfHelper.js"/>
- </xhtml:head>
- <script type="javascript">
- <![CDATA[
- function fInit(){
- //초기화
- model.removenode('/root/cond');
- model.makeValue('/root/cond/cptvoluntrid', '');
- model.makeValue('/root/cond/voluntrid', '');
-
- //캡션에 포커스가 선택된 상태로 보여지게
- setCaptionFocus(true);
- var tretflag = opener.javascript.getParameter("SPAAA00200_param_tretflag");
- model.makeValue("/root/cond/tretflag", tretflag);
- if(tretflag == "1"){ //봉사활동출결처리인 경우
- var servdd = opener.javascript.getParameter("SPAAA00200_param_servdd");
- model.makeValue('/root/cond/servdd', servdd);
- caption4.value = "봉사활동 출결처리자 리스트";
- }else if(tretflag == "2"){ //교육활동출결처리인 경우-20100419-kys-추가
- model.makeValue('/root/cond/servdd', opener.javascript.getParameter("SPAAA00300_param_servdd"));
- model.makeValue('/root/cond/educrcogtm', opener.javascript.getParameter("SPAAA00300_param_educrcogtm"));
- model.makeValue('/root/cond/bizflag', opener.javascript.getParameter("SPAAA00300_param_bizflag"));
- model.makeValue('/root/cond/educfestivseqno', opener.javascript.getParameter("SPAAA00300_param_educfestivseqno"));
- caption4.value = "교육행사 출결처리자 리스트";
- }
-
- model.refresh();
- }
-
- function fCloseWindow(){
- opener.javascript.setParameter("SPAAA04000_closeyn","Y");
- model.close();
- }
-
- //입력한 내용을 캡션에 보여지게함
- //keyStr : event.keyCode
- function fSetCaption(keyStr){
- model.setValue('/root/cond/cptvoluntrid', keyStr);
- model.setValue('/root/cond/voluntrid', keyStr);
- model.refresh();
-
- if(keyStr.length == 8){
- model.setFocus('btn_save');
- btn_save.dispatch('DOMActivate');
- }
- }
-
- //캡션 포커스 선택상태 변경
- function setCaptionFocus(isSelected, itemKd){
-
- if(isSelected){
- //입력대기 상태로 보여짐
- //capt_voluntrid.attribute("background-color") = '#ffffff'; //흰색
- //capt_voluntrid.attribute("border-color") = '#ffcc00';
- if(itemKd != 'input'){
- model.setFocus("ipt_voluntrid");
- }
- }else{
- //처리중 상태로 보여짐
- //capt_voluntrid.attribute("background-color") = '#ff0000'; //빨강
- //capt_voluntrid.attribute("border-color") = '#c0c0c0';
- }
- //실제포커스는 ipt_drid로 가게 할것
- }
-
- //봉사활동 출결 저장
- function fVoluntrAttdSave(){
- if(model.getValue("/root/cond/voluntrid") == ""){
- messageBox("봉사자 사번이 입력되지 않았습니다","E");
- finit2();
- model.refresh();
- return;
- }
-
- if(model.getValue("/root/cond/voluntrid").length != 8){
- messageBox("봉사자 사번이 유효하지 않습니다","E");
- finit2();
- model.refresh();
- return;
- }
- //setCaptionFocus(false);
-
- model.removeNodeset("/root/send/savedata");
- model.makeNode("/root/send/savedata");
- model.makeValue("/root/send/savedata/servdd", model.getValue("/root/cond/servdd"));
- model.makeValue("/root/send/savedata/voluntrid", model.getValue("/root/cond/voluntrid"));
- model.makeValue("/root/send/savedata/eachinstservtm", "3"); //서울성모만 적용..
-
- if(submit("TXAAA04001")==true){
- //messageBox("출결처리가","I002");
- //20100416-kys-이은지샘요청으로 추가-출결처리자 리스트 추가
- model.duplicate("/root/main/voluntrattdabsninfo", "/root/temp/voluntrattdabsninfo/voluntrattdabsnlist");
- grd_absnlist.refresh();
- finit2();
- }else{
- messageBox("출결처리 실패하였습니다.","E");
- finit2();
- }
- model.refresh();
- }
-
- //교육활동 출결 저장-20100419-kys-추가
- function fBarEducFestivAttdAbsnSave(){
- if(model.getValue("/root/cond/voluntrid") == ""){
- messageBox("봉사자 사번이 입력되지 않았습니다","E");
- finit2();
- model.refresh();
- return;
- }
- //setCaptionFocus(false);
- if(model.getValue("/root/cond/voluntrid").length != 8){
- messageBox("봉사자 사번이 유효하지 않습니다","E");
- finit2();
- model.refresh();
- return;
- }
-
- model.removeNodeset("/root/send/savedata");
- model.makeNode("/root/send/savedata");
- model.makeValue("/root/send/savedata/entrydd", model.getValue("/root/cond/servdd"));
- model.makeValue("/root/send/savedata/voluntrid", model.getValue("/root/cond/voluntrid"));
- model.makeValue("/root/send/savedata/educrcogtm", model.getValue("/root/cond/educrcogtm"));
- model.makeValue("/root/send/savedata/bizflag", model.getValue("/root/cond/bizflag"));
- model.makeValue("/root/send/savedata/educfestivseqno", model.getValue("/root/cond/educfestivseqno"));
-
- if(submit("TXAAA04002")==true){
- //messageBox("출결처리가","I002");
- //20100416-kys-이은지샘요청으로 추가-출결처리자 리스트 추가
- model.duplicate("/root/main/voluntrattdabsninfo", "/root/temp/voluntrattdabsninfo/voluntrattdabsnlist");
- grd_absnlist.refresh();
- finit2();
- }else{
- messageBox("출결처리 실패하였습니다.","E");
- finit2();
- }
- model.refresh();
- }
-
- function finit2(){ //화면 로딩후 초기화 함수.
- model.setValue('/root/cond/cptvoluntrid', '');
- model.setValue('/root/cond/voluntrid', '');
- setCaptionFocus(true);
- }
- ]]>
- </script>
- <xhtml:body pagewidth="360" pageheight="450" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_sea" style="left:1px; top:0px; width:339px; height:435px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:10px; top:40px; width:320px; height:60px; "/>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:90px; height:20px; ">출결등록</caption>
- <caption id="caption1" class="search_name" style="left:20px; top:50px; width:90px; height:17px; font-size:10pt; ">사 번 :</caption>
- <shape id="roundrect2" class="roundrect_example" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:95px; top:5px; width:235px; height:30px; "/>
- <caption id="caption2" class="cell_1" style="left:105px; top:9px; width:95px; height:20px; font-size:11pt; font-weight:bold; ">활동일자 :</caption>
- <input id="ipt_servdd" ref="/root/cond/servdd" class="input_essential" inputtype="date" style="left:205px; top:10px; width:115px; height:19px; "/>
- <input id="ipt_voluntrid" ref="/root/cond/voluntrid" navindex="1" visibility="visible" autonext="true" maxlength="8" pastemode="validchars" required="true" format="99999999" style="left:20px; top:70px; width:85px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetCaption(ipt_voluntrid.value);
- ]]>
- </script>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fSetCaption(ipt_voluntrid.currentText);
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- //setCaptionFocus(true, 'input');
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- //setCaptionFocus(false);
- ]]>
- </script>
- <hint>
- <![CDATA[출결처리시 이곳에 포커스를 맞쳐 주세요.]]>
- </hint>
- </input>
- <caption id="capt_voluntrid" ref="/root/cond/cptvoluntrid" navindex="2" format="99999999" style="left:110px; top:50px; width:210px; height:40px; font-family:굴림체; font-size:24pt; font-weight:bold; color:#333399; text-align:center; vertical-align:middle; background-color:#ffffff; border-color:#c0c0c0; border-style:solid; ">
- <hint>
- <![CDATA[입력란에 봉사자사번을 입력하세요]]>
- </hint>
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- setCaptionFocus(true);
- ]]>
- </script>
- </caption>
- <caption id="caption4" class="tit_2" style="left:15px; top:150px; width:240px; height:13px; ">봉사활동 출결처리자 리스트</caption>
- <datagrid id="grd_absnlist" nodeset="/root/main/voluntrattdabsninfo/voluntrattdabsnlist" caption="봉사자ID^성명^세례명" colsep="^" mergecellsfixedrows="bycolrec" rowsep="|" style="left:10px; top:175px; width:315px; height:245px; ">
- <col ref="voluntrid" style="text-align:center; "/>
- <col ref="voluntrnm" style="text-align:center; "/>
- <col ref="baptnm" style="text-align:center; "/>
- </datagrid>
- <line id="line1" class="line_2" style="x1:15px; y1:141px; x2:325px; y2:141px; "/>
- </group>
- <button id="btn_save" class="btn4_letter2" navindex="3" style="left:210px; top:110px; width:56px; height:22px; ">
- <caption>등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //setCaptionFocus(false);
- if(model.getValue("/root/cond/tretflag") == "1"){
- fVoluntrAttdSave(); //봉사활동 출결처리
- }else if(model.getValue("/root/cond/tretflag") == "2"){ //교육활동 출결처리
- fBarEducFestivAttdAbsnSave();
- }
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter2" style="left:275px; top:110px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fCloseWindow();
- ]]>
- </script>
- </button>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == 27){//esc키를 눌렀을경우 창닫기
- fCloseWindow();
- }
- ]]>
- </script>
- </xhtml:body>
- </xhtml:html>
|