123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPAHA00800.xrw
- * 설 명 : 직원감면환자선택
- * 설 계 자 : 서원식
- * 작 성 자 : 서원식
- * 작 성 일 : 2011.02.22
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <uncolist>
- <item>
- <seq/>
- <sabun/>
- <name/>
- <buseo/>
- <phone/>
- <suname/>
- <sujumin/>
- <suhp/>
- <suphone/>
- <chooseday/>
- <exprieday/>
- <expireyn/>
- <bigo/>
- <instcd/>
- </item>
- </uncolist>
- <uncoinfo>
- <item>
- <seq/>
- <sabun/>
- <name/>
- <buseo/>
- <phone/>
- <suname/>
- <sujumin/>
- <suhp/>
- <suphone/>
- <chooseday/>
- <exprieday/>
- <expireyn/>
- <bigo/>
- </item>
- </uncoinfo>
- </main>
- <send>
- <pagetype>SPAHA00800</pagetype>
- <srchsabun/>
- <srchtype/>
- <srchcode/>
- <srchexpireyn>N</srchexpireyn>
- </send>
- <uncoinfoDel>
- <seq/>
- </uncoinfoDel>
- </root>
- </instance>
- <submission id="TRAHA04000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/uncolist"/>
- <submission id="TRAHA00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/uncoinfo"/>
- <submission id="TRAHA04004" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/uncoinfoDel"/>
- </model>
- <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/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../ast/healexamweb/js/healexam.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- if(checkOpener()){
- // btn_update.disabled = true;
- // btn_del.disabled = true;
- // var sabun = getUserInfo("userid");
- // if(sabun == "AST" || sabun == "99207" || sabun == "97107" || sabun == "99267" ){
- // btn_update.disabled = false;
- // btn_del.disabled = false;
- // }
-
- opener.model.makeNode("/root/temp/okflag");
- /* 사번으로 조회되던 부분 주석처리
- var openerId = opener.model.getValue("/root/main/info/rsrvacptinfo/item/recmempid");
- model.setValue("/root/send/srchcode", openerId);
- if(openerId.length < 1){
- model.setValue("/root/send/srchtype", "name");
- }else{
- model.setValue("/root/send/srchtype", "sabun");
- fGetUncoList();
- }
- */
- //건진자명으로 조회되도록 수정
- var srchcode = opener.model.getValue("/root/main/info/patinfo/item/hngnm");
- if(srchcode.length < 1){
- model.setValue("/root/send/srchtype" , "name");
- }else{
- model.setValue("/root/send/srchtype" , "suname");
- model.setValue("/root/send/srchcode" , srchcode);
- fGetUncoList();
- }
-
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- /*
- * 직원감면 조회
- */
- function fGetUncoList(){
- submit("TRAHA04000");
- model.refresh();
- }
-
- /*
- * 직원감면 type : ture-확인, false-취소
- */
- function fSetUncoInfo(type){
- var idx = grd_uncolist.row;
- if( idx < 1) {
- return;
- }
- if(checkOpener()){
- var expireyn = model.getValue("/root/main/uncolist/item[" + idx + "]/expireyn");
- model.copyNode("/root/main/uncoinfo/item", "/root/main/uncolist/item[" + idx + "]");
- if(type){
- if("Y" == expireyn){
- return;
- }
- opener.model.setValue("/root/main/info/rsrvacptinfo/item/recmempid" , model.getValue( "/root/main/uncolist/item[" + idx + "]/sabun") );
- opener.model.setValue("/root/main/info/rsrvacptinfo/item/recmempnm" , model.getValue( "/root/main/uncolist/item[" + idx + "]/name"));
- opener.model.setValue("/root/main/info/rsrvacptinfo/item/recmemseq" , model.getValue( "/root/main/uncolist/item[" + idx + "]/seq"));
- opener.model.setValue("/root/temp/okflag", "ok");
- opener.model.refresh();
- model.setValue("/root/main/uncoinfo/item/expireyn","Y");
- submit("TRAHA00802");
- window.close();
- }else{
- if("N" == expireyn){
- return;
- }
- model.setValue("/root/main/uncoinfo/item/expireyn","N");
- if(submit("TRAHA00802")){
- messageBox("직원감면 취소", "I001", "");
- fGetUncoList();
- }
- }
- }
- }
-
- /*
- * 직원감면 삭제
- */
- function fDelUncoInfo(){
- var idx = grd_uncolist.row;
- if( idx < 1) {
- return;
- }
- if(checkOpener()){
- if(model.getValue("/root/main/uncolist/item[" + idx + "]/expireyn")=="Y"){
- messageBox("감면완료된 정보는 삭제 불가능합니다.", "E");
- return;
- }
-
- model.makeValue("root/uncoinfoDel/pagetype", model.getValue("/root/send/pagetype"));
- model.makeValue("root/uncoinfoDel/seq", model.getValue( "/root/main/uncolist/item[" + idx + "]/seq"));
- if(submit("TRAHA04004")){
- messageBox("직원감면 삭제", "I001", "");
- fGetUncoList();
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="900" pageheight="343" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:880px; height:310px; ">
- <group id="group2" style="left:0px; top:0px; width:880px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:870px; height:35px; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">검색조건 :</caption>
- <select1 id="srchtype" ref="/root/send/srchtype" class="combo_search" appearance="minimal" style="left:106px; top:8px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>사번</label>
- <value>sabun</value>
- </item>
- <item>
- <label>직원명</label>
- <value>name</value>
- </item>
- <item>
- <label>건진자명</label>
- <value>suname</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- model.setFocus("srchcode");
- ]]>
- </script>
- </select1>
- <input id="srchcode" ref="/root/send/srchcode" class="input_search" navindex="1" style="left:214px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <bool id="srchexpireyn" checkvalue="Y,N" ref="/root/send/srchexpireyn" style="left:320px; top:8px; width:25px; height:20px; "/>
- <caption id="caption75" style="left:345px; top:8px; width:80px; height:20px; ">감면완료포함</caption>
- <line id="line13" class="line_4" style="x1:794px; y1:7px; x2:794px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" navindex="4" style="left:805px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetUncoList();
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:45px; width:140px; height:13px; ">직원감면리스트</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:60px; x2:870px; y2:60px; "/>
- <datagrid id="grd_uncolist" nodeset="/root/main/uncolist/item" caption="순번^사번^직원명^근무부서^연락처^검진자명^검진자 HP^ 검진자 PHONE^검진자 생년월일^예약일^감면완료일^감면완료여부^비고" colsep="^" colwidth="0, 60, 70, 100, 100, 70, 100, 100, 100, 100, 100, 100, 200" explorerbar="sortshow" extendlastcol="scroll" rowheader="seq" style="left:0px; top:65px; width:870px; height:245px; ">
- <col disabled="true" ref="seq" type="input" visibility="hidden" style="text-align:center; "/>
- <col disabled="true" ref="sabun" type="input" style="text-align:center; "/>
- <col disabled="true" ref="name" type="input" style="text-align:center; "/>
- <col disabled="true" ref="buseo" type="input" style="text-align:center; "/>
- <col disabled="true" ref="phone" type="input" style="text-align:center; "/>
- <col disabled="true" ref="suname" type="input" style="text-align:center; "/>
- <col disabled="true" ref="suhp" type="input" style="text-align:center; "/>
- <col disabled="true" ref="suphone" type="input" style="text-align:center; "/>
- <col disabled="true" ref="sujumin" type="input" style="text-align:center; "/>
- <col disabled="true" ref="chooseday" type="input" style="text-align:center; "/>
- <col disabled="true" ref="expireday" type="input" style="text-align:center; "/>
- <col disabled="true" ref="expireyn" type="input" style="text-align:center; "/>
- <col disabled="true" ref="bigo" type="input" style="text-align:center; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fSetUncoInfo(true);
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_uncolist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group1" scroll="auto" style="left:0px; top:316px; width:875px; height:27px; ">
- <button id="btn_confirm" class="btn4_letter2" style="left:758px; top:4px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetUncoInfo(true);
- ]]>
- </script>
- </button>
- <button id="btn_update" class="btn4_letter2" style="left:642px; top:4px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetUncoInfo(false);
- ]]>
- </script>
- </button>
- <button id="btn_del" class="btn4_letter2" style="left:701px; top:4px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDelUncoInfo();
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" style="left:816px; top:4px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( checkOpener() ){
- opener.model.setValue("/root/temp/okflag", "");
- }
- window.close();
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:870px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|