123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261 |
- <?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>
- <instcapaapplist/>
- <intncapa>
- <intnmedcapa/>
- <intndentcapa/>
- <yy/>
- <inst/>
- </intncapa>
- </main>
- <send>
- <condition>
- <yy/>
- <inst/>
- </condition>
- <save>
- <instcapaapplist/>
- <intncapa/>
- </save>
- </send>
- <init/>
- <hidden>
- </hidden>
- <temp>
- </temp>
- </root>
- </instance>
- <submission id="TRRTC00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition" resultref="/root/main"/>
- <submission id="TXRTC00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
- <submission id="TXRTC00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition" 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_instcapaapplist);
-
- misfMsterDetailSet(grd_instcapaapplist, null, "TRRTC00601", "Y");
-
- misfComboComCdListMulti("R0305,R0234", "cmb_inst,grd_instcapaapplist.deptcd");
-
- var today = getCurrentDate();
- var cur_yy = parseInt(today.substring(0, 4));
- /*
- var cur_mm = parseInt(today.substring(4, 6));
-
- if (cur_mm >= 11)
- */
- //cur_yy++;
-
- model.setValue("/root/send/condition/yy", cur_yy);
- ipt_yy.refresh();
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //========================================================================================
- //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
- //========================================================================================
- function fCheckAuth() {
- btn_search.disabled = !checkAuth("R") ;
- btn_save.disabled = !checkAuth("X") ;
- btn_copy.disabled = !(checkAuth("X"));
- }
-
- function fRecalculate() {
- grd_instcapaapplist.subtotalPosition = "below";
- grd_instcapaapplist.subtotal("clear", 0, 0);
- grd_instcapaapplist.subtotal("sum", 12, 3 , "", "background-color:#e7e7e7; font-weight:bold; ", 2, "합계");
- grd_instcapaapplist.subtotal("sum", 12, 4 , "", "background-color:#e7e7e7; font-weight:bold; ", 2, "합계");
- grd_instcapaapplist.subtotal("sum", 12, 5 , "", "background-color:#e7e7e7; font-weight:bold; ", 2, "합계");
- grd_instcapaapplist.subtotal("sum", 12, 6 , "", "background-color:#e7e7e7; font-weight:bold; ", 2, "합계");
- grd_instcapaapplist.subtotal("sum", 12, 7 , "", "background-color:#e7e7e7; font-weight:bold; ", 2, "합계");
- grd_instcapaapplist.subtotal("sum", 12, 8 , "", "background-color:#e7e7e7; font-weight:bold; ", 2, "합계");
- grd_instcapaapplist.subtotal("sum", 12, 9 , "", "background-color:#e7e7e7; font-weight:bold; ", 2, "합계");
- ;
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-right:8; ">
- <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:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="cap_yy" class="search_name" style="left:15px; top:19px; width:86px; height:17px; ">년 도 :</caption>
- <button id="btn_search" class="btn1_letter2" navindex="2" style="left:1125px; top:16px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- //필수 입력 항목 체크(공통 ftHelper.js)
- if ( !isRequiredControls("ipt_yy", "cmb_inst") ) {
- return false;
- }
-
- model.setValue("/root/send/condition/inst", cmb_inst.value);
-
- model.refresh();
- misfMsterDetailRetrieve();
-
- if (instance1.selectNodes("/root/main/intncapa").length == 0) {
- model.makeNode("/root/main/intncapa/intnmedcapa");
- model.makeNode("/root/main/intncapa/intndentcapa");
- model.makeNode("/root/main/intncapa/yy");
- model.makeNode("/root/main/intncapa/inst");
- }
- // 합계를 구한다.
- fRecalculate();
-
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1110px; y1:16px; x2:1110px; y2:38px; "/>
- <caption id="caption278" class="tit_2" style="left:10px; top:54px; width:162px; height:14px; ">레지던트</caption>
- <line id="line207" class="line_1" style="x1:0; y1:69; x2:1195; y2:69px; "/>
- <datagrid id="grd_instcapaapplist" nodeset="/root/main/instcapaapplist" caption="진료과^지도전문의 기준^지도전문의 수^전년도 승인정원^신청정원^1년차^2년차^3년차^4년차^증감^caption1" colsep="^" colwidth="140, 100, 100, 100, 80, 70, 70, 70, 70, 70, 77, 0, 0" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:74px; width:895px; height:656px; ">
- <col ref="deptcd" type="combo" _required="true">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="basepsnno" style="text-align:center; "/>
- <col ref="mainguidpsn" style="text-align:center; "/>
- <col ref="bfyycapa"/>
- <col ref="instappcapa" type="input" format="99" showmask="true" _required="true" style="text-align:center; "/>
- <col ref="resi01" style="text-align:center; "/>
- <col ref="resi02" style="text-align:center; "/>
- <col ref="resi03" style="text-align:center; "/>
- <col ref="resi04" style="text-align:center; "/>
- <col ref="capadif" style="text-align:center; "/>
- <col ref="chknextyy" visibility="hidden"/>
- <col ref="yy" visibility="hidden"/>
- <col ref="inst" visibility="hidden"/>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- // 합계를 구한다.
- fRecalculate();
- ]]>
- </script>
- </datagrid>
- <input id="ipt_yy" ref="/root/send/condition/yy" class="input_s_essential" format="9999" showmask="true" style="left:100px; top:18px; width:100px; height:19px; "/>
- <button id="btn_copy" class="btn5_letter6" navindex="99" style="left:925px; top:48px; width:86px; height:19px; ">
- <caption>전년도 copy</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //필수 입력 항목 체크(공통 ftHelper.js)
- if ( !isRequiredControls("ipt_yy", "cmb_inst") ) {
- return false;
- }
-
- var retMes = messageBox("전년도 Copy 하시겠습니까?", "Q999");
- if ( retMes != 6) {
- return;
- }
- misfSave("TXRTC00602");
- misfMsterDetailRetrieve();
-
- // 합계를 구한다.
- fRecalculate();
- ]]>
- </script>
- </button>
- <caption id="cap_inst" class="search_name" style="left:253px; top:19px; width:86px; height:17px; ">기 관 :</caption>
- <select1 id="cmb_inst" ref="/root/send/condition/inst" class="combo_s_essential" navindex="1" appearance="minimal" style="left:338px; top:18px; width:100px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <button id="button106" class="btn2_letter3" style="left:1080px; top:48px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //misfGridIUD(grd_instcapaapplist, "A");
- grd_instcapaapplist.insertitem(grd_instcapaapplist.rows -1, "before")
- grd_instcapaapplist.valueMatrix( grd_instcapaapplist.row, grd_instcapaapplist.colRef("yy") ) = model.getValue("/root/send/condition/yy");
- grd_instcapaapplist.valueMatrix( grd_instcapaapplist.row, grd_instcapaapplist.colRef("inst") ) = model.getValue("/root/send/condition/inst");
- grd_instcapaapplist.col = 1;
- ]]>
- </script>
- </button>
- <button id="button107" class="btn2_letter3" style="left:1135px; top:48px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_instcapaapplist, "D");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="input2" ref="/root/main/intncapa/intnmedcapa" class="input_default" maxlength="3" format="999" showmask="true" style="left:1012px; top:77px; width:162px; height:19px; font-size:10pt; "/>
- <input id="input1" ref="/root/main/intncapa/intndentcapa" class="input_default" maxlength="3" format="999" showmask="true" style="left:1012px; top:102px; width:162px; height:19px; font-size:10pt; "/>
- <input id="input3" ref="/root/main/intncapa/yy" class="input_default" visibility="hidden" appearance="input" style="left:1010px; top:195px; width:162px; height:19px; font-size:10pt; "/>
- <input id="input4" ref="/root/main/intncapa/inst" class="input_default" visibility="hidden" appearance="input" style="left:1010px; top:225px; width:162px; height:19px; font-size:10pt; "/>
- <button id="button4" class="btn2_letter4" style="left:1014px; top:48px; width:64px; height:19px; vertical-align:bottom; ">
- <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_instcapaapplist.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <caption id="caption2" class="cell_1" style="left:905px; top:100px; width:105px; height:23px; font-size:10pt; text-align:left; vertical-align:middle; ">치과인턴 정원</caption>
- <caption id="caption4" class="cell_1" style="left:905px; top:75px; width:105px; height:23px; font-size:10pt; text-align:left; vertical-align:middle; ">의과인턴 정원</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="btn_save" class="btn4_letter2" style="left:1124px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var retMes = messageBox("저장 하시겠습니까?", "Q999");
- if ( retMes != 6) {
- return;
- }
- if(!checkRequiredColumn("grd_instcapaapplist"))return;
-
- misfCheckDupData(grd_instcapaapplist, 1);
- model.setValue("/root/main/intncapa/yy", model.getValue("/root/send/condition/yy"));
- model.setValue("/root/main/intncapa/inst", model.getValue("/root/send/condition/inst"));
-
- model.copyNode("/root/send/save/intncapa", "/root/main/intncapa");
- misfSave("TXRTC00601");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|