123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288 |
- <?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>
- <deptbaseinfolist/>
- </main>
- <send>
- <yy/>
- <flag>R2</flag>
- <deptbaseinfolist/>
- <deptcd/>
- <instcd/>
- </send>
- <init>
- <flaglist>
- <flag>
- <labl>레지던트2지망</labl>
- <valu>R2</valu>
- </flag>
- <flag>
- <labl>인턴</labl>
- <valu>I0</valu>
- </flag>
- </flaglist>
- </init>
- <hidden/>
- <temp>
- </temp>
- </root>
- </instance>
- <submission id="TRRTC01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/deptbaseinfolist"/>
- <submission id="TXRTC01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TXRTC00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" 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" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fCheckAuth();
- misfGridInit(grd_deptbaseinfolist);
-
- misfGridComboComCdList("R0234",grd_deptbaseinfolist,"deptcd")
- misfGridComboComCdList("R0305",grd_deptbaseinfolist,"instcd")
-
- misfComboComCdListMulti("R0234,R0305", "cmb_deptcd,cmb_instcd");
-
- addComboItem( "cmb_deptcd", "전체", "", "above");
- addComboItem( "cmb_instcd", "전체", "", "above");
-
- var today = getCurrentDate();
- var cur_mm = parseInt(today.substring(4, 6));
- var cur_yy = parseInt(today.substring(0, 4));
-
- if (cur_mm >= 11)
- cur_yy++;
-
- model.setValue("/root/send/yy", cur_yy);
- model.refresh();
-
- //그리드의 타이틀을 누르면 sort되는 기능
- grd_deptbaseinfolist.explorerbar = "sort";
- grd_deptbaseinfolist.selectionMode = "byrow"
-
- grd_deptbaseinfolist.colHidden(grd_deptbaseinfolist.colRef("instcd")) = true;
-
- misfMsterDetailSet(grd_deptbaseinfolist, null, "TRRTC01001", "Y");
-
- 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 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>
- <caption id="caption10" style="left:725px; top:705px; width:350px; height:25px; vertical-align:middle; ">상태 : 가입, 탈퇴, 보임</caption>
- <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
- <button id="button4" class="btn2_letter4" style="left:1128px; top:52px; 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_deptbaseinfolist.colHidden(1) = false;
- grd_deptbaseinfolist.colHidden(2) = false;
- //grd_apntscorebatrgst.saveExcel(fileName);
- grd_deptbaseinfolist.saveExcel(fileName, "", false, true);
- //grd_apntscorebatrgst.colHidden(1) = true;
- //grd_apntscorebatrgst.colHidden(2) = true;
- }
- */
- ]]>
- </script>
- </button>
- <datagrid id="grd_deptbaseinfolist" nodeset="/root/main/deptbaseinfolist" caption="년도^구분^진료과^기관" colsep="^" colwidth="80, 169, 200, 200" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="100" rowsep="|" selectionmode="byrow" style="left:0px; top:79px; width:1195px; height:660px; ">
- <col disabled="true" ref="yy"/>
- <col disabled="true" ref="flag" type="combo">
- <choices>
- <itemset nodeset="/root/init/flaglist/flag">
- <label ref="labl"/>
- <value ref="valu"/>
- </itemset>
- </choices>
- </col>
- <col ref="deptcd" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="instcd" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_deptbaseinfolist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <line id="line3" class="line_1" style="x1:0px; y1:73px; x2:1195px; y2:73px; "/>
- <caption id="caption9" class="tit_2" style="left:10px; top:59px; width:117px; height:13px; ">진료과 / 기관</caption>
- <group id="group4" style="left:0px; top:5px; width:1195px; height:45px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1190px; height:39px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" navindex="10" style="left:1125px; top:10px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("ipt_yy")) return;
- misfMsterDetailRetrieve();
-
- // 없는 기관명이 오면 기관 필드를 숨긴다
- // if(grd_deptbaseinfolist.valueMatrix(grd_deptbaseinfolist.row, grd_deptbaseinfolist.colRef("instcd")) == '000')
- // grd_deptbaseinfolist.colHidden(grd_deptbaseinfolist.colRef("instcd")) = true;
-
- misfSetReadOnlyCol(grd_deptbaseinfolist, "yy,flag,deptcd,instcd", true);
- model.refresh();
-
- ]]>
- </script>
- </button>
- <line id="line1" class="line_4" style="x1:1110px; y1:6px; x2:1110px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="cap_yy" class="search_name" style="left:15px; top:10; width:86px; height:17px; ">년 도 :</caption>
- <input id="ipt_yy" ref="/root/send/yy" class="input_s_essential" navindex="1" style="left:100px; top:9; width:100px; height:19px; "/>
- <select1 id="rdo_flag" ref="/root/send/flag" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:350px; top:11px; width:180px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/flaglist/flag">
- <label ref="labl"/>
- <value ref="valu"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(rdo_flag.value == "R2")
- {
- grd_deptbaseinfolist.colHidden(grd_deptbaseinfolist.colRef("instcd")) = true;
- caption2.visible = false;
- cmb_instcd.visible = false;
- btn_search.dispatch("DOMActivate");
- }
- else if(rdo_flag.value == "I0")
- {
- grd_deptbaseinfolist.colHidden(grd_deptbaseinfolist.colRef("instcd")) = false;
- caption2.visible = true;
- cmb_instcd.visible = true;
- btn_search.dispatch("DOMActivate");
-
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="cap_flag" class="search_name" style="left:255px; top:10px; width:86px; height:17px; ">구 분 :</caption>
- <select1 id="cmb_deptcd" ref="/root/send/deptcd" appearance="minimal" style="left:685px; top:9px; width:100px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_instcd" ref="/root/send/instcd" visibility="hidden" appearance="minimal" style="left:930px; top:10px; width:100px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption1" class="search_name" style="left:590px; top:10px; width:93px; height:17px; ">진 료 과 :</caption>
- <caption id="caption2" class="search_name" visibility="hidden" style="left:845px; top:10px; width:98px; height:17px; ">기 관 :</caption>
- </group>
- <button id="btn_addrow" class="btn2_letter3" style="left:1018; top:52; width:64px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- misfGridIUD(grd_deptbaseinfolist, "A");
-
- grd_deptbaseinfolist.valueMatrix(grd_deptbaseinfolist.row, grd_deptbaseinfolist.colRef("yy")) = model.getValue("/root/send/yy");
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_delrow" class="btn2_letter3" style="left:1073; top:52; width:60; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_deptbaseinfolist, "D");
- ]]>
- </script>
- </button>
- <button id="btn_copy" class="btn2_letter6" style="left:930px; top:52; width:86px; height:19px; ">
- <caption>전년도 copy</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(messageBox("기존에 있는 데이터는 삭제 됩니다. ", "Q003") != 6)
- {
- return;
- }
- else
- {
- if (submit("TXRTC00103"))
- {
- btn_search.dispatch("DOMActivate");
- }
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <line id="line75" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; ">7</line>
- <button id="btn_save" class="btn4_letter2" style="left:1137px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var retMes = messageBox("저장 하시겠습니까?", "Q999");
- if ( retMes != 6) {
- return;
- }
-
- var updtdata = getGridUpdateData(grd_deptbaseinfolist);
- if (updtdata == "") {
- messageBox("변경된 데이터가","I004");
- return;
- }
-
- misfSave("TXRTC01001");
-
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|