123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <?xml-stylesheet type="text/css" href="C:/CMCProject/application/webapps/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>
- <famydiscinfo>
- <famydisclist/>
- <famyreqtlist>
- <confmflag/>
- <famyrelcd/>
- <empkindcd/>
- <disckindcd/>
- <name/>
- <rgstno1/>
- <rgstno2/>
- <fromdd/>
- <todd/>
- <reqdd/>
- <emplno/>
- <emplrgstno/>
- <emplnm/>
- <retiredd/>
- <entcodd/>
- <holyordflag/>
- <jobkindcd/>
- <retrduagelimyn/>
- <preststatcd/>
- <instcd/>
- <unitcd/>
- <pid/>
- <seqno/>
- </famyreqtlist>
- </famydiscinfo>
- <userinfo>
- <userdata/>
- </userinfo>
- </main>
- <send>
- <emplrgstno/>
- <name/>
- <chgflag/>
- <data>
- <datalist/>
- </data>
- <emplno/>
- <retiredd/>
- <entcodd/>
- <holyordflag/>
- <jobkindcd/>
- <retrduagelimyn/>
- <preststatcd/>
- <instcd/>
- <unitcd/>
- <dutplcedeptcd/>
- <reqdata>
- <reqlist/>
- </reqdata>
- <emplnm/>
- </send>
- <init>
- <P0438list>
- <P0438/>
- </P0438list>
- <P0439list>
- <P0439/>
- </P0439list>
- <P0454list>
- <P0454/>
- </P0454list>
- <R0066list>
- <R0066/>
- </R0066list>
- <R0146list>
- <R0146/>
- </R0146list>
- </init>
- <hidden/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var userid = getUserInfo("userid");
- model.makeValue("/root/send/emplno", userid);
- submit("TRPIC99907");
- model.setValue("/root/send/emplrgstno", model.getValue("/root/main/userinfo/userdata/emplrgstno") );
- model.setValue("/root/send/name", model.getValue("/root/main/userinfo/userdata/emplnm") );
- model.setValue("/root/send/emplno", model.getValue("/root/main/userinfo/userdata/emplno") );
- model.setValue("/root/send/emplnm", model.getValue("/root/main/userinfo/userdata/emplnm") );
- model.setValue("/root/send/retiredd", model.getValue("/root/main/userinfo/userdata/retiredd") );
- model.setValue("/root/send/entcodd", model.getValue("/root/main/userinfo/userdata/entcodd") );
- model.setValue("/root/send/holyordflag", model.getValue("/root/main/userinfo/userdata/holyordflag") );
- model.setValue("/root/send/jobkindcd", model.getValue("/root/main/userinfo/userdata/jobkindcd") );
- model.setValue("/root/send/retrduagelimyn", model.getValue("/root/main/userinfo/userdata/retrduagelimyn") );
- model.setValue("/root/send/preststatcd", model.getValue("/root/main/userinfo/userdata/preststatcd") );
- model.setValue("/root/send/instcd", model.getValue("/root/main/userinfo/userdata/instcd") );
- model.setValue("/root/send/unitcd", model.getValue("/root/main/userinfo/userdata/unitcd") );
- model.setValue("/root/send/dutplcedeptcd", model.getValue("/root/main/userinfo/userdata/dutplcedeptcd") );
- model.setValue("/root/send/chgflag", "N");
-
- button4.dispatch("DOMActivate");
- model.refresh();
-
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.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/stringHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript">
- <![CDATA[
- zbcfGetCodeList( new Array("P0438", "P0439","P0440","Z0007","P0325","P0015","P0157","P0454","R0066","R0061","R0146"), new Array("/root/init/P0438list", "/root/init/P0439list","/root/init/P0440list","/root/init/Z0007list","/root/init/P0325list","/root/init/P0015list","/root/init/P0157list","/root/init/P0454list","/root/init/R0066list","/root/init/R0061list","/root/init/R0146list") );
- ]]>
- </script>
- <submission id="TRPIC99906" mediatype="application/x-www-form-urlencoded" ref="/root/send" replace="replace" resultref="/root/main/famydiscinfo"/>
- <submission id="TRPIC99907" mediatype="application/x-www-form-urlencoded" ref="/root/send" replace="replace" resultref="/root/main/userinfo"/>
- <submission id="TXPIC99902" mediatype="application/x-www-form-urlencoded" ref="/root/send/data" replace="replace" resultref="/root/hidden"/>
- <submission id="TXPIC99903" mediatype="application/x-www-form-urlencoded" ref="/root/send/reqdata" resultref="/root/hidden"/>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="810" pageheight="530" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:140px; height:13px; ">직원가족할인정보</caption>
- <caption id="caption1" class="tit_2" style="left:5px; top:22px; width:170px; height:13px; ">직원가족할인정보</caption>
- <line id="line1" class="line_1" style="x1:1px; y1:37px; x2:785px; y2:37px; "/>
- <group id="group1" style="left:0px; top:45px; width:785px; height:40px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:5px; width:783px; height:30px; "/>
- <caption id="caption2" class="search_name" style="left:10px; top:10px; width:120px; height:17px; ">직원주민번호 :</caption>
- <input id="input1" ref="/root/send/emplrgstno" format="999999-9999999" style="left:130px; top:10px; width:100px; height:19px; "/>
- <caption id="caption3" class="search_name" style="left:260px; top:10px; width:65px; height:17px; ">성명 :</caption>
- <input id="input2" ref="/root/send/name" style="left:325px; top:10px; width:100px; height:19px; "/>
- <line id="line2" class="line_4" style="x1:705px; y1:8px; x2:705px; y2:33px; "/>
- <button id="button1" class="btn1_letter2" style="left:715px; top:10px; width:68px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( model.getValue("/root/send/emplrgstno") == "" || model.getValue("/root/send/name") == "" ) {
- messageBox("직원주민번호 또는 성명을 입력해주세요", "E");
- return;
- } else {
- submit("TRPIC99906");
- }
- if ( model.getValue("/root/send/chgflag") == "Y" ) {
- button9.disabled = true;
- } else {
- button9.disabled = false;
- }
- ]]>
- </script>
- </button>
- <select id="checkbox1" ref="/root/send/chgflag" overflow="visible" appearance="full" style="left:475px; top:10px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>이력조회</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- </group>
- <group id="group2" style="left:0px; top:90px; width:787px; height:380px; ">
- <line id="line3" class="line_1" style="x1:0px; y1:85px; x2:780px; y2:85px; "/>
- <caption id="caption4" class="tit_2" style="left:5px; top:45px; width:135px; height:13px; ">본인 및 가족사항내역</caption>
- <button id="button4" class="btn_sw" group="tab" style="left:2px; top:63px; width:65px; height:22px; ">
- <caption>할인정보</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case1");
- button2.visible = true;
- button8.visible = true;
- button9.visible = false;
- button6.visible = false;
- button7.visible = false;
- ]]>
- </script>
- </button>
- <button id="button5" class="btn_sw" group="tab" style="left:69px; top:64px; width:65px; height:22px; ">
- <caption>신청정보</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case2");
- button2.visible = false;
- button8.visible = false;
- button9.visible = true;
- button6.visible = true;
- button7.visible = true;
- ]]>
- </script>
- </button>
- <switch id="switch1" style="left:0px; top:90px; width:782px; height:280px; ">
- <case id="case1">
- <datagrid id="datagrid1" nodeset="/root/main/famydiscinfo/famydisclist" caption="구분^가족관계^할인구분^할인종류^성명^환자번호^주민등록번호^주민등록번호^적용시작일자^적용종료일자^할인코드" colsep="^" colwidth="50, 90, 90, 90, 70, 70, 70, 80, 80, 80, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:1px; width:780px; height:275px; ">
- <col ref="confirm" type="combo">
- <choices>
- <item>
- <label>확인</label>
- <value>Y</value>
- </item>
- <item>
- <label>미확인</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="famyrelcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0438list/P0438">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="empkindcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0439list/P0439">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="disckindcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0454list/P0454">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="name" style="text-align:left; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="rgstno1" format="999999" style="text-align:center; "/>
- <col ref="rgstno2" format="9999999" style="text-align:center; "/>
- <col ref="fromdd"/>
- <col ref="todd"/>
- <col ref="discuncocd" visibility="hidden"/>
- </datagrid>
- </case>
- <case id="case2" selected="true">
- <datagrid id="datagrid2" nodeset="/root/main/famydiscinfo/famyreqtlist" caption="구분^가족관계^할인구분^할인종류^성명^주민등록번호^주민등록번호^적용시작일자^적용종료일자^신청일자^사번^할인주체자주민번호^할인주체자명^퇴직일자^직원구분^직종구분^정년퇴직구분^근무상태^소속기관^소속부서^근무부서^환자번호" colsep="^" colwidth="80, 100, 100, 100, 80, 60, 70, 90, 90, 90, 100, 100, 118, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:1px; width:780px; height:275px; ">
- <col ref="confmflag" type="combo">
- <choices>
- <item>
- <label>확인</label>
- <value>C</value>
- </item>
- <item>
- <label>수정요청</label>
- <value>R</value>
- </item>
- <item>
- <label>수정완료</label>
- <value>P</value>
- </item>
- <item>
- <label>신규등록</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="famyrelcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0438list/P0438">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="empkindcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0439list/P0439">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="disckindcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0454list/P0454">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="name" type="input" style="text-align:left; "/>
- <col ref="rgstno1" type="input" format="999999" style="text-align:center; "/>
- <col ref="rgstno2" type="input" format="9999999" style="text-align:center; "/>
- <col ref="fromdd" type="input" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="todd" type="input" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="reqdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="emplno" visibility="hidden"/>
- <col ref="emplrgstno" visibility="hidden" format="999999-9999999" style="text-align:center; "/>
- <col ref="emplnm" visibility="hidden"/>
- <col ref="retiredd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="entcodd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="holyordflag" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/R0066list/R0066">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="jobkindcd" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/R0061list/R0061">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="retrduagelimyn" visibility="hidden"/>
- <col ref="preststatcd" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/R0146list/R0146">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="instcd" visibility="hidden"/>
- <col ref="unitcd" visibility="hidden"/>
- <col ref="dutplcedeptcd" visibility="hidden"/>
- <col ref="pid" visibility="hidden" style="text-align:center; "/>
- <col ref="seqno" visibility="hidden"/>
- </datagrid>
- </case>
- </switch>
- <caption id="caption7" style="left:20px; top:10px; width:740px; height:20px; font-size:12pt; font-weight:bold; color:#0000ff; ">※ 할인정보 변경 및 신규신청시 신청정보 탭을 선택하십시오.</caption>
- <button id="button6" class="btn2_letter3" style="left:670px; top:65px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- datagrid2.addRow();
- var cur_row = datagrid2.rows - datagrid2.fixedrows;
- model.setValue("/root/main/famydiscinfo/famyreqtlist[" + cur_row + "]/emplno", model.getValue("/root/main/userinfo/userdata/emplno") );
- model.setValue("/root/main/famydiscinfo/famyreqtlist[" + cur_row + "]/emplnm", model.getValue("/root/main/userinfo/userdata/emplnm") );
- model.setValue("/root/main/famydiscinfo/famyreqtlist[" + cur_row + "]/emplrgstno", model.getValue("/root/main/userinfo/userdata/emplrgstno") );
- model.setValue("/root/main/famydiscinfo/famyreqtlist[" + cur_row + "]/retiredd", model.getValue("/root/main/userinfo/userdata/retiredd") );
- model.setValue("/root/main/famydiscinfo/famyreqtlist[" + cur_row + "]/entcodd", model.getValue("/root/main/userinfo/userdata/entcodd") );
- model.setValue("/root/main/famydiscinfo/famyreqtlist[" + cur_row + "]/holyordflag", model.getValue("/root/main/userinfo/userdata/holyordflag") );
- model.setValue("/root/main/famydiscinfo/famyreqtlist[" + cur_row + "]/jobkindcd", model.getValue("/root/main/userinfo/userdata/jobkindcd") );
- model.setValue("/root/main/famydiscinfo/famyreqtlist[" + cur_row + "]/retrduagelimyn", model.getValue("/root/main/userinfo/userdata/retrduagelimyn") );
- model.setValue("/root/main/famydiscinfo/famyreqtlist[" + cur_row + "]/preststatcd", model.getValue("/root/main/userinfo/userdata/preststatcd") );
- model.setValue("/root/main/famydiscinfo/famyreqtlist[" + cur_row + "]/instcd", model.getValue("/root/main/userinfo/userdata/instcd") );
- model.setValue("/root/main/famydiscinfo/famyreqtlist[" + cur_row + "]/unitcd", model.getValue("/root/main/userinfo/userdata/unitcd") );
- model.setValue("/root/main/famydiscinfo/famyreqtlist[" + cur_row + "]/dutplcedeptcd", model.getValue("/root/main/userinfo/userdata/dutplcedeptcd") );
- model.setValue("/root/main/famydiscinfo/famyreqtlist[" + cur_row + "]/disckindcd", "01" );
- model.setValue("/root/main/famydiscinfo/famyreqtlist[" + cur_row + "]/confmflag", "N" );
-
- if ( model.getValue("/root/main/userinfo/userdata/holyordflag") == "2" && model.getValue("/root/main/userinfo/userdata/jobkindcd") == "9960" ) {
- model.setValue("/root/main/famydiscinfo/famyreqtlist[" + cur_row + "]/empkindcd", "04" );
- } else {
- model.setValue("/root/main/famydiscinfo/famyreqtlist[" + cur_row + "]/empkindcd", "01" );
- }
- ]]>
- </script>
- </button>
- <button id="button7" class="btn2_letter3" style="left:725px; top:65px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var i = datagrid2.row;
-
- //디비에 입력되지 않은 데이터는 그리드에서만 삭제한다.
- if (datagrid2.rowStatus(i) == "1" || datagrid2.rowStatus(i) == "3"){
- datagrid2.deleteItem( i );
- }else{
- datagrid2.addStatus( i, "delete");
- if(messageBox("선택된 행의 신청내역을", "Q001") != 6) return;
- }
- //삭제할 행의 정보를 send에 넣는다.
- model.resetInstanceNode("/root/send/updatedata");
- model.setValue("root/send/reqdata/reqlist", datagrid2.getUpdateData("delete"));
-
- if ( submit("TXPIC99903") ) {
- messageBox("삭제되었습니다", "I");
- submit("TRPIC99906");
- }
- model.removeNodeset("/root/send/reqdata/reqlist");
- model.makeNode("/root/send/reqdata/reqlist");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption8" style="left:150px; top:45px; width:410px; height:35px; ">★ 신규 및 수정요청하신 내역은 수정완료되기전에는 이전 상태로 보입니다. 원무팀 수정 및 신규 생성 후 미확인상태로 변경됩니다. ★</caption>
- <button id="button8" class="btn2_letter4" style="left:604px; top:65px; width:64px; height:19px; ">
- <caption>엑셀출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- datagrid1.saveExcel(fileName, "SheetName", true, true, "", "");
- }
-
- window.exec(fileName);
- ]]>
- </script>
- </button>
- </group>
- <group id="group3" style="left:0px; top:475px; width:785px; height:40px; ">
- <button id="button2" class="btn4_letter2" style="left:665px; top:10px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rtn = messageBox("본인 및 가족할인내역을 최종저장합니다. 변경이나 신규 신청 사항이 있으면 신청정보탭에서 신청하시기 바랍니다. 저장하시겠습니까?", "Q");
- if ( rtn == "6" ) {
- for ( i=datagrid1.fixedrows; i < datagrid1.rows; i++ ) {
- datagrid1.rowStatus(i) = 2;
- }
- model.setValue("/root/send/data/datalist",datagrid1.getUpdateData());
- if ( submit("TXPIC99902") ) {
- messageBox("저장되었습니다.", "I");
- button1.dispatch("DOMActivate");
- }
- }
- ]]>
- </script>
- </button>
- <button id="button3" class="btn4_letter2" style="left:725px; top:10px; width:100px; height:20px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <caption id="caption5" visibility="visible" style="left:15px; top:2px; width:635px; height:20px; font-size:12pt; font-weight:bold; color:#0000ff; ">※ 상기 할인정보에 이상이 없을시 필히 확인 버튼을 눌러주시기 바랍니다. ※</caption>
- <button id="button9" class="btn4_letter2" style="left:665px; top:10px; width:100px; height:20px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rtn = messageBox("본인 및 가족할인정보를 신규 및 수정요청하시겠습니까?", "Q");
- if ( rtn == "6" ) {
- model.setValue("/root/send/reqdata/reqlist", datagrid2.getUpdateData() );
- if ( submit("TXPIC99903") ) {
- messageBox("저장되었습니다.", "I");
- button1.dispatch("DOMActivate");
- }
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|