123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246 |
- <?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>
- <capaapplist>
- <status/>
- <appfromdd/>
- <appenddd/>
- <yy/>
- </capaapplist>
- <capaappbaseinfo/>
- </main>
- <send>
- <condition>
- <yy/>
- </condition>
- <capaappbaseinfo/>
- <capaapplist>
- </capaapplist>
- </send>
- <init/>
- <hidden>
- </hidden>
- <temp>
- </temp>
- </root>
- </instance>
- <submission id="TRRTC00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition" resultref="/root/main"/>
- <submission id="TXRTC00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TXRTC00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" 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_capaappbaseinfo);
-
- misfMsterDetailSet(grd_capaappbaseinfo, null, "TRRTC00401", "Y");
-
- // 진료과코드 P0322
- misfComboComCdListMulti("R0234", "grd_capaappbaseinfo.deptcd");
-
- var today = getCurrentDate();
- var cur_yy = parseInt(today.substring(0, 4));
-
- //cur_yy = cur_yy + 1;
-
- model.setValue("/root/send/condition/yy", cur_yy);
- ipt_condyy.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"));
- }
- ]]>
- </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; ">
- <line id="line3" class="line_3" style="x1:0px; y1:97px; x2:471px; y2:97px; "/>
- <group id="group4" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" navindex="2" style="left:1125px; top:7px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.refresh();
- ipt_appfromdd.value = "";
- ipt_appenddd.value = "";
- ipt_yy.value = "";
-
- misfMsterDetailRetrieve();
- if (instance1.selectNodes("/root/main/intncapa").length == 0) {
- model.makeNode("/root/main/capaapplist/appfromdd");
- model.makeNode("/root/main/capaapplist/appenddd");
- model.makeNode("/root/main/capaapplist/yy");
- }
- ]]>
- </script>
- </button>
- <line id="line1" class="line_4" style="x1:1110px; y1:6px; x2:1110px; y2:28px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">년 도 :</caption>
- <input id="ipt_condyy" ref="/root/send/condition/yy" class="input_s_essential" navindex="1" maxlength="4" format="9999" showmask="true" style="left:100px; top:8px; width:100px; height:19px; "/>
- </group>
- <line id="line2" class="line_1" style="x1:0px; y1:70px; x2:471; y2:70px; "/>
- <line id="line4" class="line_1" style="x1:476px; y1:70px; x2:1185px; y2:70px; "/>
- <datagrid id="grd_capaappbaseinfo" nodeset="/root/main/capaappbaseinfo" caption="진료과^N^정원수(N +/-)^정원수^caption1" colsep="^" colwidth="182, 100, 129, 100, 100, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:476px; top:75px; width:709px; height:659px; ">
- <col ref="deptcd" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="base" style="text-align:center; "/>
- <col ref="fourrulearith" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>+</label>
- <value>+</value>
- </item>
- <item>
- <label>-</label>
- <value>-</value>
- </item>
- <item>
- <label>*</label>
- <value>*</value>
- </item>
- <item>
- <label>/</label>
- <value>/</value>
- </item>
- </choices>
- </col>
- <col ref="basepsnno" type="input" style="text-align:center; "/>
- <col ref="chknextyy" visibility="hidden"/>
- <col ref="yy"/>
- </datagrid>
- <input id="ipt_appfromdd" ref="/root/main/capaapplist/appfromdd" class="input_s_essential" inputtype="date" style="left:102px; top:77; width:120; height:19px; "/>
- <caption id="caption8" class="cell_1" style="left:0px; top:75px; width:100px; height:23px; text-align:left; vertical-align:middle; ">시작일</caption>
- <input id="ipt_appenddd" ref="/root/main/capaapplist/appenddd" class="input_s_essential" inputtype="date" style="left:352px; top:77; width:120px; height:19px; "/>
- <caption id="caption1" class="cell_1" style="left:250px; top:75px; width:100px; height:23px; text-align:left; vertical-align:middle; ">종료일</caption>
- <caption id="caption3" style="left:230px; top:79px; width:20px; height:20px; font-weight:bold; ">~</caption>
- <input id="ipt_yy" ref="/root/main/capaapplist/yy" class="input_s_essential" visibility="hidden" style="left:200px; top:130px; width:120px; height:19px; "/>
- <button id="button106" class="btn2_letter3" style="left:1070px; top:50px; width:53px; height:19px; vertical-align:bottom; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( model.getValue("/root/send/condition/yy") == "" ) {
- messageBox("년도값이 없습니다. 조회 후","C001");
- return;
- }
- misfGridIUD(grd_capaappbaseinfo, "A");
- grd_capaappbaseinfo.valueMatrix( grd_capaappbaseinfo.row, grd_capaappbaseinfo.colRef("yy") ) = model.getValue("/root/send/condition/yy");
- grd_capaappbaseinfo.valueMatrix( grd_capaappbaseinfo.row, grd_capaappbaseinfo.colRef("fourrulearith") ) = "-";
- grd_capaappbaseinfo.valueMatrix( grd_capaappbaseinfo.row, grd_capaappbaseinfo.colRef("base") ) = "N";
- model.refresh();
-
- ]]>
- </script>
- </button>
- <button id="button107" class="btn2_letter3" style="left:1125px; top:50px; width:53px; height:19px; vertical-align:bottom; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_capaappbaseinfo, "D");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_copy" class="btn5_letter8" navindex="100" style="left:894px; top:50px; width:108px; height:19px; vertical-align:bottom; ">
- <caption>전년도기준copy</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //필수 입력 항목 체크(공통 ftHelper.js)
- if ( !isRequiredControls("ipt_condyy") ) {
- return false;
- }
-
- var retMes = messageBox("전년도 Copy 하시겠습니까?", "Q999");
- if ( retMes != 6) {
- return;
- }
- misfSave("TXRTC00402");
- misfMsterDetailRetrieve();
- ]]>
- </script>
- </button>
- <button id="button4" class="btn2_letter4" style="left:1004px; top:50px; 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_capaappbaseinfo.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="btn4_letter2" navindex="99" 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;
- }
-
- misfCheckDupData(grd_capaappbaseinfo, 1);
-
- if ( "" == ipt_yy.value && ipt_appfromdd.value != ""){
- model.makeNode("/root/main/capaapplist/yy");
- model.makeNode("/root/main/capaapplist/appfromdd");
- model.makeNode("/root/main/capaapplist/appenddd");
- model.makeNode("/root/main/capaapplist/status");
-
- model.setValue("/root/main/capaapplist/status", "N");
- model.setValue("/root/main/capaapplist/yy", ipt_condyy.value) ;
- model.setValue("/root/main/capaapplist/appfromdd", ipt_appfromdd.value) ;
- model.setValue("/root/main/capaapplist/appenddd", ipt_appenddd.value) ;
- }
-
- model.copyNode("/root/send/capaapplist", "/root/main/capaapplist");
- misfSave("TXRTC00401");
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|