123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229 |
- <?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>
- <intnexsethospstatlist/>
- </main>
- <send>
- <condition>
- <yy/>
- <supinfqurtyyflag>1</supinfqurtyyflag>
- <emplno/>
- <firstinstcd/>
- <secondinstcd/>
- <name/>
- <posinstcd/>
- <apprtcdrflag/>
- </condition>
- <save>
- <intnexsethospstatlist/>
- </save>
- </send>
- <init/>
- <hidden/>
- <temp/>
- </root>
- </instance>
- <submission id="TRRTR01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition" resultref="/root/main/intnexsethospstatlist"/>
- <submission id="TXRTR01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
- </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" ev:event="xforms-ready">
- <![CDATA[
- //사용자 권한
- fCheckAuth();
-
- // 그리드 초기화
- misfGridInit(grd_intnexsethospstatlist);
-
- misfMsterDetailSet(grd_intnexsethospstatlist, null, "TRRTR01401", "Y");
-
- misfComboComCdListMulti("R0237,R0305,Z0007", "cmb_supinfqurtyyflag,cmb_firstinstcd");
-
- addComboItem( "cmb_firstinstcd", "", "", "above");
-
- misfComboCopyItemSet(cmb_firstinstcd, "/root/send/condition/firstinstcd", cmb_secondinstcd, "/root/send/condition/secondinstcd");
- misfComboCopyItemSet(cmb_firstinstcd, "/root/send/condition/firstinstcd", grd_intnexsethospstatlist, "firstinstcd");
- misfComboCopyItemSet(cmb_firstinstcd, "/root/send/condition/firstinstcd", grd_intnexsethospstatlist, "secondinstcd");
-
- var curDate = getCurrentDate().toDate().getDateFormat("YYYYMMDD");
- var isDate = curDate.toDate().getAddDate(2,'M').getDateFormat("YYYY");
- var sDate = getNewDate();
- model.setValue("/root/send/condition/yy", isDate);
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //========================================================================================
- //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
- //========================================================================================
- function fCheckAuth() {
- btn_search.disabled = !checkAuth("R") ;
- btn_save.disabled = !checkAuth("X") ;
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="840" pageheight="640" style="margin-left:8; margin-right:8; ">
- <group id="group1" style="left:0px; top:0px; width:800px; 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:802px; height:600px; ">
- <datagrid id="grd_intnexsethospstatlist" nodeset="/root/main/intnexsethospstatlist" caption="순번^사원번호^성명^성별^학교구분^석차^출신교^예외여부^상반기^하반기^채용번호^채용년도^상하반기^주민번호" colsep="^" colwidth="40, 62, 80, 41, 63, 45, 131, 64, 125, 125, 0, 0, 0, 0" dataheight="23" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:1px; top:116px; width:800px; height:450px; ">
- <col ref="rowno" style="text-align:center; "/>
- <col ref="emplno" type="output" style="text-align:center; "/>
- <col ref="name" style="text-align:center; "/>
- <col ref="gndr" style="text-align:center; "/>
- <col ref="schflag" style="text-align:center; "/>
- <col ref="rank" style="text-align:center; "/>
- <col ref="schnm" style="text-align:center; "/>
- <col checkvalue="Y,N" ref="careryn" type="checkbox"/>
- <col ref="firstinstcd" type="combo" _required="true">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="secondinstcd" type="combo" _required="true">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_intntrnghospplanlist.gridToInstance();
- ]]>
- </script>
- <col ref="apntinfono" visibility="hidden" style="text-align:center; "/>
- <col ref="apntyy" visibility="hidden" style="text-align:center; "/>
- <col ref="supinfqurtyyflag" visibility="hidden" style="text-align:center; "/>
- <col ref="rregno" visibility="hidden" style="text-align:center; "/>
- </datagrid>
- <caption id="caption22" class="tit_2" style="left:5px; top:97px; width:175px; height:13px; ">인턴병원배정 예외자 관리</caption>
- <group id="group6" style="left:0px; top:10px; width:800px; height:80px; vertical-align:top; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:10px; width:800px; height:60px; "/>
- <caption id="cap_yy" class="search_name" style="left:15px; top:21px; width:85px; height:17px; ">년 도 :</caption>
- <caption id="cap_supinfqurtyyflag" class="search_name" style="left:196px; top:21px; width:91px; height:17px; ">상하반기 :</caption>
- <caption id="caption60" class="search_name" style="left:196px; top:45px; width:107px; height:17px; ">First병원 :</caption>
- <caption id="caption61" class="search_name" style="left:420px; top:45px; width:109px; height:17px; ">Second병원 :</caption>
- <select1 id="cmb_firstinstcd" ref="/root/send/condition/firstinstcd" class="combo_s_essential" appearance="minimal" style="left:285px; top:44px; width:100px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_secondinstcd" ref="/root/send/condition/secondinstcd" class="combo_s_essential" appearance="minimal" style="left:529px; top:44px; width:100px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_yy" ref="/root/send/condition/yy" class="input_default" inputtype="date" format="yyyy" style="left:80px; top:19px; width:75px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption4" class="search_name" style="left:420px; top:21px; width:106px; height:17px; ">사원번호 :</caption>
- <caption id="caption3" class="search_name" style="left:15px; top:46px; width:65px; height:17px; ">이 름 :</caption>
- <line id="line3" class="line_4" style="x1:645px; y1:18px; x2:645px; y2:62px; border-color:#ffe4bb; border-left-style:solid; "/>
- <select1 id="cmb_supinfqurtyyflag" ref="/root/send/condition/supinfqurtyyflag" class="combo_s_essential" navindex="2" appearance="minimal" style="left:283px; top:19px; width:90px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <input id="ipt_emplno" ref="/root/send/condition/emplno" class="input_default" style="left:509px; top:19px; width:80px; height:19px; "/>
- <input id="input3" ref="/root/send/condition/name" class="input_default" imemode="hangul" style="left:80px; top:44px; width:80px; height:19px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:730px; top:29px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //필수 입력 항목 체크(공통 ftHelper.js)
- if ( !isRequiredControls("ipt_yy", "cmb_supinfqurtyyflag") ) {
- return false;
- }
- misfMsterDetailRetrieve();
-
- /* 사원별 rowcolor 표시*/
- var iYear = 1;
- var sColor = "#ffff99";
-
- var icnt = 0;
- for (var i = grd_intnexsethospstatlist.fixedRows ; i < grd_intnexsethospstatlist.rows ; i++ ) {
-
- var preststatcd=grd_intnexsethospstatlist.valueMatrix(i, grd_intnexsethospstatlist.colRef("preststatcd"));
-
- if (icnt % iYear == 0) {
- if (sColor == "#ffff99") {
- if (preststatcd == "2") {
- sColor = "#ff9900";
- } else{
- sColor = "#FFFFFF";
- }
- } else {
- if (preststatcd == "2") {
- sColor = "#ff9900";
- } else {
- sColor = "#ffff99";
- }
-
- }
- }
- grd_intnexsethospstatlist.rowStyle(i, "all", "background-color") = sColor;
- icnt ++;
- }
- ]]>
- </script>
- </button>
- <caption id="caption1" class="search_name" style="left:15px; top:46px; width:65px; height:17px; ">이 름 :</caption>
- <input id="input1" ref="/root/send/condition/name" class="input_default" imemode="hangul" style="left:80px; top:44px; width:80px; height:19px; "/>
- </group>
- <line id="line19" class="line_1" style="x1:0px; y1:115px; x2:800px; y2:115px; "/>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:800px; height:27px; ">
- <line id="line11" class="line_6" style="x1:0; y1:25; x2:800; y2:25; "/>
- <button id="btn_save" class="btn4_letter2" style="left:730px; top:0px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var retMes = messageBox("저장 하시겠습니까?", "Q999");
- if ( retMes != 6) {
- return;
- }
- misfSave("TXRTR01401");
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|