123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255 |
- <?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>
- <orddeptcapaapplist/>
- </main>
- <send>
- <condition>
- <yy/>
- <deptcd/>
- <tdeptcd/>
- </condition>
- <save>
- <orddeptcapaapplist/>
- </save>
- </send>
- <init/>
- <hidden>
- <tmpdeptcd/>
- </hidden>
- <temp>
- </temp>
- </root>
- </instance>
- <submission id="TRRTC00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition" resultref="/root/main"/>
- <submission id="TXRTC00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/orddeptcapaapplist" resultref="/root/temp"/>
- <submission id="TXRTC00502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition" resultref="/root/temp"/>
- <submission id="TRRTC00502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition" resultref="/root/hidden"/>
- </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_orddeptcapaapplist);
-
- misfMsterDetailSet(grd_orddeptcapaapplist, null, "TRRTC00501", "Y");
-
- misfComboComCdListMulti("R0305,R0234", "grd_orddeptcapaapplist.inst,cmb_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();
-
- fSetDefalutDeptcd();
-
- 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_orddeptcapaapplist.subtotalPosition = "below";
- grd_orddeptcapaapplist.subtotal("clear", 0, 0);
- grd_orddeptcapaapplist.subtotal("sum", 11, 3 , "", "background-color:#e7e7e7; font-weight:bold; ", 2, "합계");
- grd_orddeptcapaapplist.subtotal("sum", 11, 4 , "", "background-color:#e7e7e7; font-weight:bold; ", 2, "합계");
- grd_orddeptcapaapplist.subtotal("sum", 11, 5 , "", "background-color:#e7e7e7; font-weight:bold; ", 2, "합계");
- grd_orddeptcapaapplist.subtotal("sum", 11, 6 , "", "background-color:#e7e7e7; font-weight:bold; ", 2, "합계");
- grd_orddeptcapaapplist.subtotal("sum", 11, 7 , "", "background-color:#e7e7e7; font-weight:bold; ", 2, "합계");
- grd_orddeptcapaapplist.subtotal("sum", 11, 8 , "", "background-color:#e7e7e7; font-weight:bold; ", 2, "합계");
- grd_orddeptcapaapplist.subtotal("sum", 11, 9 , "", "background-color:#e7e7e7; font-weight:bold; ", 2, "합계");
- }
-
- function fSetDefalutDeptcd()
- {
- var sPosdeptcd = getUserInfo("posdeptcd");
-
- model.setValue("/root/send/condition/tdeptcd", sPosdeptcd);
-
- submit("TRRTC00502");
-
- model.setValue("/root/send/condition/deptcd","/root/hidden/tmpdeptcd/orddeptcd");
-
- cmb_deptcd.refresh();
- }
- ]]>
- </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_deptcd") ) {
- return false;
- }
- misfMsterDetailRetrieve();
- // 합계를 구한다.
- 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_orddeptcapaapplist" nodeset="/root/main/orddeptcapaapplist" caption="기관^지도전문의 기준^지도전문의 수^전년도 승인정원^신청정원^1년차^2년차^3년차^4년차^증감" colsep="^" colwidth="155, 111, 119, 118, 100, 99, 80, 76, 75, 83, 0, 0" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:75px; width:1085px; height:655px; ">
- <col ref="inst" 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" style="text-align:center; "/>
- <col ref="deptapppsnno" 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="yy" visibility="hidden"/>
- <col ref="deptcd" 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:926px; 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("TXRTC00502");
- misfMsterDetailRetrieve();
-
- // 합계를 구한다.
- fRecalculate();
- ]]>
- </script>
- </button>
- <caption id="cap_orddept" class="search_name" style="left:253px; top:19px; width:86px; height:17px; ">진료과 :</caption>
- <select1 id="cmb_deptcd" ref="/root/send/condition/deptcd" 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_orddeptcapaapplist, "A");
- grd_orddeptcapaapplist.insertitem(grd_orddeptcapaapplist.rows -1, "before")
- grd_orddeptcapaapplist.valueMatrix( grd_orddeptcapaapplist.row, grd_orddeptcapaapplist.colRef("yy") ) = model.getValue("/root/send/condition/yy");
- grd_orddeptcapaapplist.valueMatrix( grd_orddeptcapaapplist.row, grd_orddeptcapaapplist.colRef("deptcd") ) = model.getValue("/root/send/condition/deptcd");
- ]]>
- </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_orddeptcapaapplist, "D");
- model.refresh();
- ]]>
- </script>
- </button>
- <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_orddeptcapaapplist.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- </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="btn5_letter2" style="left:1134px; top:3px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var retMes = messageBox("저장 하시겠습니까?", "Q999");
- if ( retMes != 6) {
- return;
- }
- var updtdata = getGridUpdateData(grd_orddeptcapaapplist);
- if (updtdata == "" ) {
- messageBox("변경된 데이터가","I004");
- return;
- }
-
- if(!checkRequiredColumn("grd_orddeptcapaapplist"))return;
-
- misfCheckDupData(grd_orddeptcapaapplist, 1);
- misfSave("TXRTC00501");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|