123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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/>
- <expireday/>
- <expireyn/>
- <bigo/>
- <instcd/>
- </item>
- </uncolist>
- <uncoinfo>
- <item>
- <seq/>
- <sabun/>
- <name/>
- <buseo/>
- <phone/>
- <suname/>
- <sujumin/>
- <suhp/>
- <suphone/>
- <chooseday/>
- <expireday/>
- <expireyn/>
- <bigo/>
- <reginstcd/>
- </item>
- </uncoinfo>
- <userinfo>
- <item>
- <sabun/>
- <name/>
- <buseo/>
- </item>
- </userinfo>
- </main>
- <send>
- <pagetype>SMAHA04000</pagetype>
- <srchsabun/>
- <srchtype/>
- <srchcode/>
- <srchexpireyn/>
- </send>
- <uncoinfoSend>
- <seq/>
- </uncoinfoSend>
- <uncoinfoDel>
- <seq/>
- </uncoinfoDel>
- <init>
- <baseinfo>
- <S940list/>
- </baseinfo>
- </init>
- </root>
- </instance>
- <submission id="TRAHA00001"/>
- <submission id="TRZBC00101"/>
- <submission id="TRAHA04000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/uncolist"/>
- <submission id="TRAHA04001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/uncoinfo"/>
- <submission id="TRAHA04002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/uncoinfoSend" resultref="/root/main/uncoinfo"/>
- <submission id="TRAHA04003" 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"/>
- <submission id="TRAHA04006" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/userinfo"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 직원소개 감면신청 리스트 볼수 있는 사용자 관리
- // 2016/03/03 (이정택 수정)
- healGetCodeList( new Array("S940"), new Array("/root/init/baseinfo/S940list"));
-
- fRoadUserInfo();
- fRoadDatagrid();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fRoadUserInfo() {
- var usernm = getUserInfo("usernm");
- var buseo = getUserInfo("dutplcenm");
- //2015/02/04 이정택 주석처리
- //var buseo = getUserInfo("dutunitnm");
- //2015/02/04 이정택 주석처리
- var sabun = getUserInfo("userid");
-
- var cnt = getNodesetCount("/root/init/baseinfo/S940list/S940[cdid='" + sabun + "']");
- if(parseInt(cnt) >0){
- //btn_srchemp.visible = true;
- btn_prt.visible = true;
- btn_search.visible = true;
- var emplID = getParameter("SPPMC03800_emplid");
- if(emplID != ""){
- sabun = emplID;
- model.setValue("/root/send/srchsabun", sabun);
- submit("TRAHA04006");
- sabun = model.getValue("/root/main/userinfo/item/sabun");
- usernm = model.getValue("/root/main/userinfo/item/name");
- buseo = model.getValue("/root/main/userinfo/item/buseo");
- model.resetInstanceNode("/root/main/uncoinfo/item");
- }
- }
-
- model.setValue("/root/send/srchsabun", sabun);
- model.setValue("/root/main/uncoinfo/item/sabun", sabun);
- model.setValue("/root/main/uncoinfo/item/name", usernm);
- model.setValue("/root/main/uncoinfo/item/buseo", buseo);
- }
-
- function fRoadDatagrid(type){
- if(type == 'all'){
- model.setValue("/root/send/srchtype", "null");
- model.setValue("/root/send/srchexpireyn", "N");
- }else{
- model.setValue("/root/send/srchtype", "sabun");
- }
- submit("TRAHA04000");
- model.refresh();
- }
-
- function fCheckValue(){
- if(model.getValue("/root/main/uncoinfo/item/name") == ""){
- messageBox("직원명은 필수 입력항목 입니다.", "E999", "");
- return false;
- }
-
- if(model.getValue("/root/main/uncoinfo/item/buseo") == ""){
- messageBox("근무부서는 필수 입력항목 입니다.", "E999", "");
- return false;
- }
-
- if(model.getValue("/root/main/uncoinfo/item/chooseday") == ""){
- messageBox("예약일은 필수 입력항목 입니다.", "E999", "");
- return false;
- }
-
-
- if(model.getValue("/root/main/uncoinfo/item/suname") == ""){
- messageBox("검진자 명은 필수 입력항목 입니다.", "E999", "");
- model.setFocus("suname");
- return false;
- }
-
- if(model.getValue("/root/main/uncoinfo/item/reginstcd") == ""){
- messageBox("검진 희망병원은 필수입니다.", "E999", "");
- model.setFocus("cmb_instcd");
- return false;
- }
-
- /*
- if(model.getValue("/root/main/uncoinfo/item/phone") == ""){
- messageBox("연락처는 필수 입력항목 입니다.", "E999", "");
- model.setFocus("phone");
- return false;
- }
- if(model.getValue("/root/main/uncoinfo/item/sujumin") == ""){
- messageBox("검진자 생년월일은 필수 입력항목 입니다.", "E999", "");
- model.setFocus("sujumin");
- return false;
- }
- if(model.getValue("/root/main/uncoinfo/item/suhp") == ""){
- messageBox("검진자 HP는 필수 입력항목 입니다.", "E999", "");
- model.setFocus("suhp");
- return false;
- }
- if(model.getValue("/root/main/uncoinfo/item/suphone") == ""){
- messageBox("검진자 PHONE는 필수 입력항목 입니다.", "E999", "");
- model.setFocus("suphone");
- return false;
- }
- if(model.getValue("/root/main/uncoinfo/item/chooseday") == ""){
- messageBox("예약일는 필수 입력항목 입니다.", "E999", "");
- model.setFocus("chooseday");
- return false;
- }
- */
- return true;
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784">
- <group id="group1" style="left:0px; top:0px; width:1211px; height:13px; ">
- <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:165px; height:13px; font-family:돋움; vertical-align:middle; ">종합 건강검진 지인소개</caption>
- </group>
- <group id="group2" style="left:4px; top:23px; width:1203px; height:100px; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1202px; height:95px; background-color:#fffbf2; border-color:#ffd799; "/>
- <input id="input1" ref="/root/main/uncoinfo/item/sabun" visibility="hidden" style="text-align:center; "/>
- <input id="inpu2" ref="/root/main/uncoinfo/item/seq" visibility="hidden" style="text-align:center; "/>
- <caption id="caption3" class="search_name" style="left:15px; top:10px; width:85px; height:17px; ">소개직원:</caption>
- <input id="name" ref="/root/main/uncoinfo/item/name" disabled="true" visibility="visible" style="left:100px; top:11px; width:75px; height:19px; text-align:center; "/>
- <button id="btn_srchemp" class="icon_search" visibility="hidden" style="left:180px; top:10px; width:16px; height:16px; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- modal("SPPMC03800", "1","150", "150", "SPPMC03800", "", "");
- fRoadUserInfo();
- fRoadDatagrid();
- ]]>
- </script>
- <caption/>
- </button>
- <caption id="caption4" class="search_name" style="left:205px; top:10px; width:85px; height:17px; ">근무부서:</caption>
- <input id="buseo" ref="/root/main/uncoinfo/item/buseo" disabled="true" style="left:290px; top:11px; width:105px; height:19px; text-align:center; "/>
- <caption id="caption5" class="search_name" style="left:410px; top:10px; width:118px; height:17px; ">직원연락처:</caption>
- <input id="phone" ref="/root/main/uncoinfo/item/phone" maxlength="20" style="left:520px; top:11px; width:105px; height:19px; "/>
- <caption id="caption1" style="left:629px; top:12px; width:180px; height:17px; font-weight:bold; color:#ff0000; ">※ 예약/접수 화면이 아닙니다.</caption>
- <caption id="caption6" class="search_name" style="left:15px; top:37px; width:90px; height:17px; ">검진자명:</caption>
- <input id="suname" ref="/root/main/uncoinfo/item/suname" style="left:100px; top:38px; width:75px; height:19px; text-align:center; "/>
- <caption id="caption7" class="search_name" visibility="hidden" style="left:800px; top:5px; width:140px; height:17px; ">검진자 생년월일 :</caption>
- <input id="sujumin" ref="/root/main/uncoinfo/item/sujumin" visibility="hidden" maxlength="6" format="#####" style="left:825px; top:5px; width:105px; height:19px; "/>
- <caption id="caption8" class="search_name" visibility="hidden" style="left:805px; top:0px; width:140px; height:17px; ">검진자 집전화 :</caption>
- <input id="suhp" ref="/root/main/uncoinfo/item/suhp" visibility="hidden" maxlength="20" style="left:815px; top:0px; width:105px; height:19px; "/>
- <caption id="caption9" class="search_name" visibility="hidden" style="left:820px; top:0px; width:140px; height:17px; ">검진자 휴대전화:</caption>
- <input id="suphone" ref="/root/main/uncoinfo/item/suphone" visibility="hidden" maxlength="20" style="left:850px; top:0px; width:105px; height:19px; "/>
- <caption id="caption10" class="search_name" visibility="visible" style="left:205px; top:37px; width:80px; height:17px; ">예약일:</caption>
- <input id="chooseday" ref="/root/main/uncoinfo/item/chooseday" visibility="visible" inputtype="date" style="left:290px; top:38px; width:105px; height:19px; text-align:center; "/>
- <caption id="caption11" class="search_name" style="left:15px; top:64px; width:83px; height:17px; ">참고사항:</caption>
- <input id="bigo" ref="/root/main/uncoinfo/item/bigo" style="left:100px; top:65px; width:855px; height:19px; "/>
- <button id="btn_search" class="btn1_letter2" visibility="hidden" style="left:1120px; top:9px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fRoadDatagrid('all');
- ]]>
- </script>
- </button>
- <button id="btn_prt" class="btn6_letter2" visibility="hidden" style="left:1055px; top:9px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- exeReportPreview("RPAHA04000", "XMLSTR" , "" , "" , "false" , "", "", "", "", "fasle");
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" style="left:410px; top:37px; width:110px; height:17px; ">검진희망병원:</caption>
- <select1 id="cmb_instcd" ref="/root/main/uncoinfo/item/reginstcd" appearance="minimal" style="left:520px; top:38px; width:165px; height:19px; text-align:center; ">
- <choices>
- <item>
- <label>경북대학교병원</label>
- <value>031</value>
- </item>
- <item>
- <label>칠곡 경북대학교병원</label>
- <value>032</value>
- </item>
- </choices>
- </select1>
- </group>
- <group id="grp_btn" style="left:11px; top:745px; width:1195px; height:28px; ">
- <button id="btn_save" class="btn4_letter2" style="left:1007px; top:4px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fCheckValue()){
- if(model.getValue("/root/main/uncoinfo/item/seq") == ""){
- submit("TRAHA04001");
- model.resetInstanceNode("/root/main/uncoinfo/item");
- fRoadUserInfo();
- fRoadDatagrid();
- }else{
- if(model.getValue("/root/uncoinfoDel/expireyn")=="Y"){
- messageBox("감면완료된 정보는 수정 또는 삭제 불가능합니다.", "E");
- return;
- }
- submit("TRAHA04003");
- model.resetInstanceNode("/root/main/uncoinfo/item");
- fRoadUserInfo();
- fRoadDatagrid();
- }
-
- cmb_instcd.disabled=false;
- }
- ]]>
- </script>
- </button>
- <button id="btn_del" class="btn4_letter2" style="left:1067px; top:4px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/uncoinfoDel/seq") != ""){
- if(model.getValue("/root/uncoinfoDel/expireyn")=="Y"){
- messageBox("감면완료된 정보는 수정 또는 삭제 불가능합니다.", "E");
- return;
- }
-
- model.makeValue("/root/uncoinfoDel/pagetype", model.getValue("/root/send/pagetype"));
- submit("TRAHA04004");
- model.resetInstanceNode("/root/main/uncoinfo/item");
- fRoadDatagrid();
- cmb_instcd.disabled=false;
- }else{
- messageBox("선택된 정보가 없습니다.", "E999", "");
- }
- ]]>
- </script>
- </button>
- <button id="btn_clear" class="btn4_letter3" style="left:1126px; top:4px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- cmb_instcd.disabled=false;
- model.resetInstanceNode("/root/main/uncoinfo/item");
- fRoadUserInfo();
- fRoadDatagrid();
- ]]>
- </script>
- </button>
- </group>
- <datagrid id="grd_uncolist" nodeset="/root/main/uncolist/item" caption="순번^직원사번^직원명^근무부서^직원연락처^검진기관^검진자명^검진자 집전화^검진자 휴대전화^검진자 생년월일^예약일^검진완료일^할인완료여부^비고" colsep="^" colwidth="0, 80, 80, 0, 120, 156, 90, 0, 0, 0, 70, 70, 80, 415" mergecellsfixedcols="bycol" mergecellsfixedrows="byrowrec" rowheader="seq" style="left:5px; top:125px; width:1200px; height:615px; text-align:center; ">
- <col ref="seq" type="output" visibility="hidden" style="text-align:center; "/>
- <col ref="sabun" type="output" style="text-align:center; "/>
- <col ref="name" type="output"/>
- <col ref="buseo" type="output" visibility="hidden"/>
- <col ref="phone" type="output"/>
- <col disabled="true" ref="instcd" type="combo">
- <choices>
- <item>
- <label>경북대학교병원</label>
- <value>031</value>
- </item>
- <item>
- <label>칠곡 경북대학교병원</label>
- <value>032</value>
- </item>
- </choices>
- </col>
- <col ref="suname" type="output"/>
- <col ref="suhp" type="output" visibility="hidden"/>
- <col ref="suphone" type="output" visibility="hidden"/>
- <col ref="sujumin" type="output" visibility="hidden"/>
- <col ref="chooseday" type="output"/>
- <col ref="expireday" type="output" visibility="visible"/>
- <col ref="expireyn" type="output" visibility="visible"/>
- <col ref="bigo" type="output" style="text-align:left; padding-left:10; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_uncolist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (isDataCell()) {
- cmb_instcd.disabled='true';
-
-
- model.makeValue("/root/main/uncoinfo/item/seq", grd_uncolist.valueMatrix(grd_uncolist.row, grd_uncolist.colRef("seq")));
- model.makeValue("/root/main/uncoinfo/item/name", grd_uncolist.valueMatrix(grd_uncolist.row, grd_uncolist.colRef("name")));
- model.makeValue("/root/main/uncoinfo/item/buseo", getUserInfo("dutplcenm"));
- model.makeValue("/root/main/uncoinfo/item/phone", grd_uncolist.valueMatrix(grd_uncolist.row, grd_uncolist.colRef("phone")));
- model.makeValue("/root/main/uncoinfo/item/suname", grd_uncolist.valueMatrix(grd_uncolist.row, grd_uncolist.colRef("suname")));
- model.makeValue("/root/main/uncoinfo/item/sujumin", grd_uncolist.valueMatrix(grd_uncolist.row, grd_uncolist.colRef("sujumin")));
- model.makeValue("/root/main/uncoinfo/item/suhp", grd_uncolist.valueMatrix(grd_uncolist.row, grd_uncolist.colRef("suhp")));
- model.makeValue("/root/main/uncoinfo/item/suphone", grd_uncolist.valueMatrix(grd_uncolist.row, grd_uncolist.colRef("suphone")));
- model.makeValue("/root/main/uncoinfo/item/chooseday", grd_uncolist.valueMatrix(grd_uncolist.row, grd_uncolist.colRef("chooseday")));
- model.makeValue("/root/main/uncoinfo/item/reginstcd", grd_uncolist.valueMatrix(grd_uncolist.row, grd_uncolist.colRef("instcd")));
- model.makeValue("/root/main/uncoinfo/item/bigo", grd_uncolist.valueMatrix(grd_uncolist.row, grd_uncolist.colRef("bigo")));
-
- model.makeValue("/root/uncoinfoDel/seq", grd_uncolist.valueMatrix(grd_uncolist.row, grd_uncolist.colRef("seq")));
- model.makeValue("/root/uncoinfoDel/reginstcd", grd_uncolist.valueMatrix(grd_uncolist.row, grd_uncolist.colRef("instcd")));
- model.makeValue("/root/uncoinfoDel/expireday", grd_uncolist.valueMatrix(grd_uncolist.row, grd_uncolist.colRef("expireday")));
- model.makeValue("/root/uncoinfoDel/expireyn", grd_uncolist.valueMatrix(grd_uncolist.row, grd_uncolist.colRef("expireyn")));
-
- model.refresh();
-
- /*
- model.setValue("/root/uncoinfoSend/seq", model.getValue("/root/main/uncolist/item["+ grd_uncolist.row+"]/seq"));
-
- submit("TRAHA04002");
- */
- }
- ]]>
- </script>
- </datagrid>
- </xhtml:body>
- </xhtml:html>
|