123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396 |
- <?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="">
- <main>
- <crtfctkind>
- <crtfctkindlist/>
- </crtfctkind>
- </main>
- <send>
- <search>
- <emplno/>
- <num/>
- <flag/>
- <emplnm/>
- <trngflag/>
- <instcd/>
- <supinfqurtyyflag/>
- </search>
- <save>
- <crtfctkind_mst/>
- </save>
- <crtfctkindlist/>
- <req>
- <emplno/>
- </req>
- </send>
- <init>
- <appflag>
- <label>신청</label>
- <value>1</value>
- <label>확인</label>
- <value>2</value>
- <label>출력</label>
- <value>3</value>
- </appflag>
- </init>
- <hidden>
- <crtfctkind_search>
- <cdnm/>
- <cdid/>
- </crtfctkind_search>
- </hidden>
- <temp>
- </temp>
- </root>
- </instance>
- <submission id="TRRTH00604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/hidden"/>
- <submission id="TRRTH00651" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/crtfctkind/crtfctkindlist"/>
- <submission id="TXRTH00651" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savelist" resultref="/root/temp"/>
- <submission id="TRRTC00302" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/deptcond"/>
- </model>
- <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/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- misfGridInit(grd_crtfctkindlist);
-
- misfMsterDetailSet(grd_crtfctkindlist, null, "TRRTH00651", "Y");
-
- model.setValue("/root/send/search/flag", "S");
- submit("TRRTH00604");
-
- model.setValue("/root/send/search/flag", "");
- var node = instance1.selectSingleNode("/root/hidden/crtfctkind_search").length;
-
- for(var i=1 ; i<=node ; i++)
- {
- model.makeValue("/root/main/crtfctkindlist[" + i + "]/cdnm", model.getValue("/root/hidden/crtfctkind_search[" + i + "]/cdnm"));
- model.makeValue("/root/main/crtfctkindlist[" + i + "]/cdid", model.getValue("/root/hidden/crtfctkind_search[" + i + "]/cdid"));
- }
- // misfComboComCdListMulti("R0237,R0151", "cmb_supinfqurtyyflag,cmb_trngflag");
- misfComboComCdList("R0237", cmb_supinfqurtyyflag);
- addComboItem( "cmb_supinfqurtyyflag", "전체", "", "above");
- misfComboComCdList('R0151', cmb_trngflag);
- addComboItem( "cmb_trngflag", "전체", "", "above");
- // misfComboComCdListMulti 보다 먼저 사용해야함 아니면 노드가 사라짐
- misfGridComboComCdList("Z0007",grd_crtfctkindlist,"dutplceinst");
- misfGridComboComCdList("R0305",grd_crtfctkindlist,"issinstcd");
- misfGridComboComCdList("R0234",grd_crtfctkindlist,"frmrmert");
- misfGridComboComCdList("R0062",grd_crtfctkindlist,"trngflag");
-
-
- //rszfComboComCdListMultiS("grd_crtfctkindlist.issinstcd","전체","", "above" );
- rszfComboComCdListMultiS("grd_crtfctkindlist.issinstcd","가톨릭중앙의료원","001", "above" );
-
- var userid = getUserInfo("userid");
- model.setValue("/root/send/search/emplno", userid);
- // model.setValue("/root/send/search/emplno", 10702229);
-
- model.setValue("/root/send/req/emplno", model.getValue("/root/send/search/emplno"));
-
- btn_search.dispatch("DOMActivate");
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //========================================================================================
- //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
- //========================================================================================
- function fCheckAuth() {
-
- btn_search.disabled =!checkAuth("R");
- //btn_save.disabled = !checkAuth("X");
- }
- function search() {
- //if(!isRequiredControls("cmb_supinfqurtyyflag"))return;
- model.removeNodeset("/root/main/crtfctkind/crtfctkindlist");
- submit("TRRTH00651");
- for(i=grd_crtfctkindlist.fixedRows; i < grd_crtfctkindlist.rows;i++){
- var jobtype = grd_crtfctkindlist.valueMatrix(i,grd_crtfctkindlist.colRef("jobtype"));
-
- if( jobtype == 'S'){
- grd_crtfctkindlist.rowStyle(i, "all", "background-color") = "white";
- }else{
- grd_crtfctkindlist.rowStyle(i, "all", "background-color") ="#ffff99";
- }
-
- var sAppflag = grd_crtfctkindlist.valueMatrix(i, grd_crtfctkindlist.colRef("appflag"));
-
- if(sAppflag == "3"){
- grd_crtfctkindlist.rowstyle(i, "data", "background-color") = "#FFCC66";
- }
- }
- }
-
- function selectall(){
-
- for(i=grd_crtfctkindlist.fixedRows; i < grd_crtfctkindlist.rows;i++){
- if ((grd_crtfctkindlist.valueMatrix(i,grd_crtfctkindlist.colRef("chk")) =='N')
- && (grd_crtfctkindlist.valueMatrix(i, grd_crtfctkindlist.colRef("jobtype")) == 'I')){
- //grd_crtfctkindlist.addStatus(i,"insert");
- grd_crtfctkindlist.rowStatus(i) = 3;
- grd_crtfctkindlist.valueMatrix(i, grd_crtfctkindlist.colRef("chk")) = 'Y';
- }
-
- }
- }
-
- function cancelall(){
- for(i=grd_crtfctkindlist.fixedRows; i < grd_crtfctkindlist.rows;i++){
- grd_crtfctkindlist.valueMatrix(i,grd_crtfctkindlist.colRef("chk")) ='N';
- grd_crtfctkindlist.clearStatus(i);
- }
- }
-
- function save(){
-
- var retMes = messageBox("저장 하시겠습니까?", "Q999");
-
- if ( retMes != 6) {
- return;
- }
- model.makeNode("/root/send/savelist/crtfctkindlist");
- model.setValue("/root/send/savelist/crtfctkindlist", grd_crtfctkindlist.getUpdateData());
-
- for(i=grd_crtfctkindlist.fixedRows; i < grd_crtfctkindlist.rows;i++){
- if (grd_crtfctkindlist.valueMatrix(i, grd_crtfctkindlist.colRef("chk")) == 'Y'){
- grd_crtfctkindlist.rowStatus(i) = "3";
- }
- }
-
- misfSave("TXRTH00651");
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">근무예정증명서신청</caption>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption13" class="search_name" style="left:445px; top:22px; width:75px; height:17px; ">사 번 :</caption>
- <line id="line14" class="line_4" style="x1:1100px; y1:18px; x2:1100px; y2:45px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" navindex="8" style="left:1125px; top:19px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- search();
- ]]>
- </script>
- </button>
- <select1 id="cmb_trngflag" ref="/root/send/search/trngflag" navindex="4" appearance="minimal" style="left:325px; top:21px; width:105px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_trngflag" class="search_name" style="left:224px; top:22px; width:110px; height:17px; ">전공의구분 :</caption>
- <button id="btn_helppsn" class="icon_search" style="left:591px; top:22px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rpbfOpenPopUpList("SPRPB00101", ipt_emplno, "emplno,emplnm", "ipt_systemflag","N");
- ipt_emplno.refresh();
- ipt_emplnm.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_emplnm" ref="/root/send/search/emplnm" class="input_search" style="left:609px; top:21px; width:100px; height:19px; "/>
- <input id="ipt_emplno" ref="/root/send/search/emplno" class="input_search" style="left:510px; top:21px; width:80px; height:19px; "/>
- <line id="line3" class="line_1" style="x1:0px; y1:80px; x2:1190px; y2:80px; "/>
- <caption id="cap_search" class="tit_2" style="left:2px; top:58px; width:200px; height:13px; ">총 0건이 등록되어있습니다.</caption>
- <button id="button4" class="btn2_letter4" style="left:1055px; top:55px; width:64px; height:19px; ">
- <caption>전체취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- cancelall();
- ]]>
- </script>
- </button>
- <button id="btn_excelsave_mast" class="btn2_letter4" style="left:1121px; top:55px; 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 != "") {
- grd_crtfctkindlist.saveExcel(fileName, "sheetname:sheet1;colhiddenextend:true;rowhiddenextend:false;exportfalsecols:0,0;col_1:value;");
- }
- ]]>
- </script>
- </button>
- <button id="button12" class="btn2_letter4" style="left:988px; top:55px; width:64px; height:19px; ">
- <caption>전체선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- selectall();
- ]]>
- </script>
- </button>
- <datagrid id="grd_crtfctkindlist" nodeset="/root/main/crtfctkind/crtfctkindlist" caption="작업방식^선택^사번^성명^신청년월^신청번호^신청일자^발급기관^전공과목^I/R^소속병원^근무병원^증명서종류^신청상태^통수^금액^확인내용^발급사유^수령방법^전화번호^E-mail^우편번호1^우편번호2^주소^caption1^caption2^caption3" colsep="^" colwidth="100, 45, 84, 82, 100, 100, 100, 130, 100, 90, 120, 130, 200, 75, 50, 79, 100, 100, 95, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:90px; width:1190px; height:600px; ">
- <col ref="jobtype" visibility="hidden"/>
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="emplno" visibility="visible" style="text-align:center; "/>
- <col ref="emplnm" style="text-align:center; "/>
- <col ref="appym" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="appdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="issinstcd" type="combo" visibility="visible" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="frmrmert" type="combo" visibility="visible" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="trngflag" type="combo" visibility="visible" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="orginstcd" type="combo" visibility="hidden">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="dutplceinst" type="combo" visibility="hidden">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="crtfctkind" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/hidden/crtfctkind_search">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="appflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/appflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="isscnt" visibility="visible" style="text-align:right; padding-right:10; "/>
- <col ref="amt" visibility="hidden" format="#,###" style="text-align:right; padding-right:10; "/>
- <col ref="cnfmcnts"/>
- <col ref="issresn" visibility="hidden"/>
- <col ref="acptmthd" type="combo" visibility="visible" style="text-align:center; ">
- <choices>
- <item>
- <label>직접수령</label>
- <value>1</value>
- </item>
- <item>
- <label>우편수령</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col ref="telno" visibility="hidden"/>
- <col ref="email" visibility="hidden"/>
- <col ref="zipcd1" visibility="hidden"/>
- <col ref="zipcd2" visibility="hidden"/>
- <col ref="addr" visibility="hidden"/>
- <col ref="emailid" visibility="hidden"/>
- <col ref="emailaddr" visibility="hidden"/>
- <col ref="etcemailaddr" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_crtfctkindlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- /*grd_crtfctkindlist.rebuildStyle();
-
- grd_crtfctkindlist.rowstyle(grd_crtfctkindlist.row, "data", "background-color") = "#ffeebb";
-
- //btn_save2.visible = false;
- //btn_save.visible = true;
- model.resetInstanceNode("/root/main/crtfctkindtmp/crtfctkindlist");
- model.refresh();*/
- ]]>
- </script>
- </datagrid>
- <caption id="caption2" style="left:975px; top:22px; width:50px; height:15px; ">신청자</caption>
- <caption id="caption7" style="left:905px; top:22px; width:50px; height:15px; ">대상자</caption>
- <output id="output1" style="left:950px; top:20px; width:20px; height:19px; background-color:white; border-style:solid; "/>
- <output id="output2" style="left:880px; top:20px; width:20px; height:19px; background-color:#ffff99; border-style:solid; "/>
- <caption id="caption1" style="left:1045px; top:22px; width:50px; height:15px; ">발급자</caption>
- <output id="output4" style="left:1020px; top:20px; width:20px; height:19px; background-color:#FFCC66; border-style:solid; "/>
- <select1 id="cmb_supinfqurtyyflag" ref="/root/send/search/supinfqurtyyflag" class="combo_s_essential" appearance="minimal" style="left:105px; top:21px; width:100px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_supinfqurtyyflag" class="search_name" style="left:15px; top:22px; width:86px; height:17px; ">상하반기 :</caption>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <line id="line11" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
- <button id="button1" class="btn4_letter2" style="left:1125px; top:0px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- save();
- search();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|