123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404 |
- <?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>인턴 병원생성 TO관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <instdivmancntlist/>
- </main>
- <send>
- <yy/>
- <fstlattrmflag>1</fstlattrmflag>
- <instcd/>
- <supinfqurtyyflag/>
- <instdivmancntlist/>
- <workgbn/>
- </send>
- <init>
- <fstlattrmflag>
- <label>전기</label>
- <value>1</value>
- <label>전기+후기</label>
- <value>2</value>
- </fstlattrmflag>
- </init>
- <hidden>
- <freemessage/>
- </hidden>
- <temp>
- </temp>
- </root>
- </instance>
- <submission id="TRRTR01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/instdivmancntlist"/>
- <submission id="TXRTR01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/instdivmancntlist" resultref="/root/temp"/>
- <submission id="TXRTR01102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TRRTR01102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/stat"/>
- <bind id="bind1" ref="/root/main/instdivmancntlist[instcd = '9998']/tschmanpsnnocnt" calculate="sum(/root/main/instdivmancntlist[instcd!= '9998' and instcd!='9999']/tschmanpsnnocnt)"/>
- <bind id="bind2" ref="/root/main/instdivmancntlist[instcd = '9998']/tschwompsnnocnt" calculate="sum(/root/main/instdivmancntlist[instcd!= '9998' and instcd!='9999']/tschwompsnnocnt)"/>
- <bind id="bind3" ref="/root/main/instdivmancntlist[instcd = '9998']/dschmanpsnnocnt" calculate="sum(/root/main/instdivmancntlist[instcd!= '9998' and instcd!='9999']/dschmanpsnnocnt)"/>
- <bind id="bind4" ref="/root/main/instdivmancntlist[instcd = '9998']/dschwompsnnocnt" calculate="sum(/root/main/instdivmancntlist[instcd!= '9998' and instcd!='9999']/dschwompsnnocnt)"/>
- <bind id="bind5" ref="/root/main/instdivmancntlist[instcd = '9998']/totmancnt" calculate="sum(/root/main/instdivmancntlist[instcd!= '9998' and instcd!='9999']/totmancnt)"/>
- <bind id="bind6" ref="/root/main/instdivmancntlist[instcd = '9998']/capadif" calculate="sum(/root/main/instdivmancntlist[instcd!= '9998' and instcd!='9999']/capadif)"/>
- </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="../../../com/emailsenderweb/js/ZME001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- grd_instdivmancntlist.attribute("backcoloralternate") = "";
- //사용자 권한
- fCheckAuth();
-
- // 그리드 초기화
- misfGridInit(grd_instdivmancntlist);
-
- misfMsterDetailSet(grd_instdivmancntlist, null, "TRRTR01101", "Y");
- //misfComboComCdList('Z0007',cmb_instcd);
- misfComboComCdListMulti("R0237,Z0007", "cmb_supinfqurtyyflag,cmb_instcd");
- misfComboCopyItemSet(cmb_instcd, "", grd_instdivmancntlist, "instcd");
-
- // 2007-11-16 년도 디폴트설정 acwon수정
- /*var sDate = getNewDate();
- model.setValue("/root/send/yy", sDate.getFullYear());
- model.refresh();*/
- 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();
- //end
-
- //그리드의 타이틀을 누르면 sort되는 기능
- grd_instdivmancntlist.explorerbar = "sort";
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //========================================================================================
- //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
- //========================================================================================
- function fCheckAuth() {
- btn_search.disabled = !checkAuth("R") ;
- btn_save.disabled = !checkAuth("X") ;
- }
- function fGetIntvPracScheGrid() {
- misfMsterDetailRetrieve();
- }
-
- function ftotManCnt(){
-
-
- var instcapa = grd_instdivmancntlist.valueMatrix(grd_instdivmancntlist.row, grd_instdivmancntlist.colRef("instcapa"));
- var tschmanpsnnocnt = grd_instdivmancntlist.valueMatrix(grd_instdivmancntlist.row, grd_instdivmancntlist.colRef("tschmanpsnnocnt"));
- var tschwompsnnocnt = grd_instdivmancntlist.valueMatrix(grd_instdivmancntlist.row, grd_instdivmancntlist.colRef("tschwompsnnocnt"));
- var dschmanpsnnocnt = grd_instdivmancntlist.valueMatrix(grd_instdivmancntlist.row, grd_instdivmancntlist.colRef("dschmanpsnnocnt"));
- var dschwompsnnocnt = grd_instdivmancntlist.valueMatrix(grd_instdivmancntlist.row, grd_instdivmancntlist.colRef("dschwompsnnocnt"));
- if(tschmanpsnnocnt ==''){
- tschmanpsnnocnt=0;
- }else{
- tschmanpsnnocnt=tschmanpsnnocnt;
- }
- if(tschwompsnnocnt ==''){
- tschwompsnnocnt=0;
- }else{
- tschwompsnnocnt=tschwompsnnocnt;
- }
- if(dschmanpsnnocnt ==''){
- dschmanpsnnocnt=0;
- }else{
- dschmanpsnnocnt=dschmanpsnnocnt;
- }
- if(dschwompsnnocnt ==''){
- dschwompsnnocnt=0;
- }else{
- dschwompsnnocnt=dschwompsnnocnt;
- }
- if(grd_instdivmancntlist.col == grd_instdivmancntlist.colRef("tschmanpsnnocnt")||grd_instdivmancntlist.col == grd_instdivmancntlist.colRef("tschwompsnnocnt")
- ||grd_instdivmancntlist.col == grd_instdivmancntlist.colRef("dschmanpsnnocnt")||grd_instdivmancntlist.col == grd_instdivmancntlist.colRef("dschwompsnnocnt")){
- totmancnt=parseInt(tschmanpsnnocnt)+parseInt(tschwompsnnocnt)+parseInt(dschmanpsnnocnt)+parseInt(dschwompsnnocnt);
-
- grd_instdivmancntlist.valueMatrix(grd_instdivmancntlist.row, grd_instdivmancntlist.colRef("totmancnt")) = totmancnt;
- grd_instdivmancntlist.valueMatrix(grd_instdivmancntlist.row, grd_instdivmancntlist.colRef("capadif")) =parseInt(totmancnt)-parseInt(instcapa);
- }
-
-
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,-3;1,1125;" 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; ">인턴 병원생성 TO관리</caption>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:727px; ">
- <group id="group4" style="left:0px; top:5px; width:1195px; height:40px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1190px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" navindex="10" style="left:1125px; top:7px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- //필수 입력 항목 체크(공통 ftHelper.js)
- if ( !isRequiredControls("ipt_yy","supinfqurtyyflag","cmb_fstlattrmflag") ) {
- return false;
- }
-
- fGetIntvPracScheGrid();
-
-
- var colidx = grd_instdivmancntlist.colRef("instcd");
- for (var i=1; i<=grd_instdivmancntlist.rows; i++)
- {
- if (grd_instdivmancntlist.valueMatrix(i, colidx) == "9998")
- {
- grd_instdivmancntlist.rowStyle(i, "all", "background-color") = "#eeffff";
- }
- else if (grd_instdivmancntlist.valueMatrix(i, colidx) == "9999")
- {
- grd_instdivmancntlist.rowStyle(i, "all", "background-color") = "#ededed";
- }
- }
-
- // grd_instdivmancntlist.subtotal("clear", 0, 0);
- // grd_instdivmancntlist.subtotalPosition = "below";
- // grd_instdivmancntlist.multiTotals = true;
- //
- //
- // grd_instdivmancntlist.subtotal("sum", -1, 3, "format:#,###; roundmode:round; roundpostion:2", "background-color:#ccffff; font-weight:bold; ", 1, "계", false);
- // grd_instdivmancntlist.subtotal("sum", -1, 4, "format:#,###; roundmode:round; roundpostion:2", "background-color:#ccffff; font-weight:bold; ", 1, "계", false);
- // grd_instdivmancntlist.subtotal("sum", -1, 5, "format:#,###; roundmode:round; roundpostion:2", "background-color:#ccffff; font-weight:bold; ", 1, "계", false);
- // grd_instdivmancntlist.subtotal("sum", -1, 6, "format:#,###; roundmode:round; roundpostion:2", "background-color:#ccffff; font-weight:bold; ", 1, "계", false);
- // grd_instdivmancntlist.subtotal("sum", -1, 7, "format:#,###; roundmode:round; roundpostion:2", "background-color:#ccffff; font-weight:bold; ", 1, "계", false);
- // grd_instdivmancntlist.subtotal("sum", -1, 8, "format:#,###; roundmode:round; roundpostion:2", "background-color:#ccffff; font-weight:bold; ", 1, "계", false);
- // grd_instdivmancntlist.subtotal("sum", -1, 9, "format:#,###; roundmode:round; roundpostion:2", "background-color:#ccffff; font-weight:bold; ", 1, "계", false);
- ]]>
- </script>
- </button>
- <line id="line1" class="line_4" style="x1:1110px; y1:7px; x2:1110px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="cap_yy" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">년 도 :</caption>
- <caption id="cap_fstlattrmflag" class="search_name" style="left:435px; top:10px; width:86px; height:17px; ">전후기 :</caption>
- <select1 id="cmb_fstlattrmflag" ref="/root/send/fstlattrmflag" class="combo_s_essential" navindex="3" appearance="minimal" style="left:525px; top:11px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/fstlattrmflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_yy" ref="/root/send/yy" class="input_s_essential" navindex="1" format="yyyy" style="left:100px; top:10px; width:100px; height:19px; "/>
- <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:685px; top:10px; width:144px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <input id="input1" ref="/root/send/workgbn" visibility="hidden" style="left:900px; top:10px; width:70px; height:19px; "/>
- <select1 id="cmb_supinfqurtyyflag" ref="/root/send/supinfqurtyyflag" class="combo_s_essential" navindex="2" appearance="minimal" style="left:310px; top:10px; width:100px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_supinfqurtyyflag" class="search_name" style="left:225px; top:9px; width:86px; height:17px; ">상하반기 :</caption>
- </group>
- <caption id="caption11" class="tit_2" style="left:5px; top:50px; width:139px; height:13px; ">기관별 정원배정관리</caption>
- <button id="button4" class="btn2_letter4" style="left:1125px; top:45px; 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_instdivmancntlist.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <line id="line3" class="line_1" style="x1:0px; y1:65px; x2:1195px; y2:65px; "/>
- <button id="btn_grddel" class="btn2_letter3" style="left:1071px; top:45px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_instdivmancntlist,"D");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_grdadd" class="btn2_letter3" style="left:1015px; top:45px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_instdivmancntlist, "A");
- ]]>
- </script>
- </button>
- <datagrid id="grd_instdivmancntlist" nodeset="/root/main/instdivmancntlist" caption="년도^기관^정원수^본교남^본교여^타교남^타교여^합계^차이" colsep="^" colwidth="100, 140, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:70px; width:1195px; height:640px; ">
- <col ref="yy" style="text-align:center; background-color:#ededed; "/>
- <col id="instcd" ref="instcd" type="combo" style="background-color:#ededed; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="instcapa" type="input" format="#,###" style="text-align:center; background-color:#ededed; "/>
- <col ref="tschmanpsnnocnt" type="input" format="#,###" style="text-align:center; "/>
- <col ref="tschwompsnnocnt" type="input" format="#,###" style="text-align:center; "/>
- <col ref="dschmanpsnnocnt" type="input" format="#,###" style="text-align:center; "/>
- <col ref="dschwompsnnocnt" type="input" format="#,###" style="text-align:center; "/>
- <col disabled="true" ref="totmancnt" type="output" format="#,###" style="text-align:center; background-color:#eeffff; "/>
- <col disabled="true" ref="capadif" type="input" format="(-)#,###" style="text-align:center; background-color:#eeffff; "/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ftotManCnt();
-
-
- ]]>
- </script>
- </datagrid>
- <button id="button1" class="btn5_letter10" navindex="99" style="left:540px; top:45px; width:130px; height:19px; ">
- <caption>1. 기관별세부T-O생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var retMes = messageBox("기관별 세부T-O를 생성 하시겠습니까?", "Q999");
- if ( retMes != 6) {
- return;
- }
-
- if ( !isRequiredControls("ipt_yy", "cmb_fstlattrmflag") ) {
- return false;
- }
- model.setValue("/root/send/workgbn","TO");
- submit("TXRTR01102");
- btn_search.dispatch("DOMActivate");
-
- ]]>
- </script>
- </button>
- <button id="button2" class="btn5_letter5" navindex="99" style="left:671px; top:45px; width:75px; height:19px; ">
- <caption>2. 병원배정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var retMes = messageBox("병원배정 자료를 생성 하시겠습니까?", "Q999");
- if ( retMes != 6) {
- return;
- }
-
- if ( !isRequiredControls("ipt_yy", "cmb_supinfqurtyyflag", "cmb_fstlattrmflag") ) {
- return false;
- }
- model.setValue("/root/send/workgbn","DIV");
- submit("TXRTR01102");
- btn_search.dispatch("DOMActivate");
-
- ]]>
- </script>
- </button>
- <button id="button7" class="btn5_letter10" navindex="99" style="left:747px; top:45px; width:126px; height:19px; ">
- <caption>3. 인턴배정예외자관리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SMRTR01400","","40","40","popup", "" ,"");
- ]]>
- </script>
- </button>
- <button id="button3" class="btn5_letter9" navindex="99" style="left:878px; top:45px; width:119px; height:19px; ">
- <caption>4. 인턴배정병원 조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRRTR01102");
- grup_stat.visible = true;
- ]]>
- </script>
- </button>
- <group id="grup_stat" visibility="hidden" style="left:395px; top:95px; width:798px; height:625px; border-color:#c0c0c0; border-width:3px; border-style:solid; ">
- <datagrid id="grd_stat" nodeset="/root/main/stat/intnsethospstatlist" caption="사원번호^성명^성별^학교구분^석차^상반기병원^하반기병원^희망병원 1^희망병원 2^희망병원 3^희망병원 4^출신교" colsep="^" colwidth="70, 70, 50, 50, 50, 90, 90, 70, 70, 70, 70, 90" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:23px; width:792px; height:594px; ">
- <col ref="emplno"/>
- <col ref="korname"/>
- <col ref="gndr"/>
- <col ref="schflag"/>
- <col ref="rank"/>
- <col ref="firstinstcd"/>
- <col ref="secondinstcd"/>
- <col ref="hosp1"/>
- <col ref="hosp2"/>
- <col ref="hosp3"/>
- <col ref="hosp4"/>
- <col ref="schnm"/>
- </datagrid>
- <caption id="caption1" class="tit_2" style="left:5px; top:5px; width:139px; height:13px; ">인턴 배정병원 조회</caption>
- <button id="button5" class="btn2_letter4" style="left:677px; top:2px; 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_stat.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <button id="button6" class="btn2_letter2" style="left:747px; top:2px; width:42px; height:19px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grup_stat.visible = false;
- ]]>
- </script>
- </button>
- </group>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" style="left:1139px; 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_instdivmancntlist);
- if (updtdata == "") {
- messageBox("변경된 데이터가","I004");
- return;
- }
-
- misfSave("TXRTR01101");
-
- btn_search.dispatch("DOMActivate");
- // misfMsterDetailRetrieve();
- //model.refresh();
-
- ]]>
- </script>
- </button>
- <line id="line11" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|