123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370 |
- <?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>
- <intntrngpsnnolist/>
- </main>
- <send>
- <yy/>
- <instcd/>
- <orddeptcd/>
- <save>
- <intntrngpsnnolist/>
- </save>
- </send>
- <init/>
- <hidden>
- </hidden>
- <temp>
- <scheflag/>
- </temp>
- </root>
- </instance>
- <submission id="TRRTC00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/intntrngpsnnolist"/>
- <submission id="TXRTC00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
- <bind id="bind1" ref="/root/main/intntrngpsnnolist[instcd = '9998']/marpsnno" calculate="sum(/root/main/intntrngpsnnolist[instcd != '9998']/marpsnno)"/>
- <bind id="bind2" ref="/root/main/intntrngpsnnolist[instcd = '9998']/marpsnno" calculate="sum(/root/main/intntrngpsnnolist[instcd != '9998']/aprpsnno)"/>
- <bind id="bind3" ref="/root/main/intntrngpsnnolist[instcd = '9998']/maypsnno" calculate="sum(/root/main/intntrngpsnnolist[instcd != '9998']/maypsnno)"/>
- <bind id="bind4" ref="/root/main/intntrngpsnnolist[instcd = '9998']/junpsnno" calculate="sum(/root/main/intntrngpsnnolist[instcd != '9998']/junpsnno)"/>
- <bind id="bind5" ref="/root/main/intntrngpsnnolist[instcd = '9998']/julpsnno" calculate="sum(/root/main/intntrngpsnnolist[instcd != '9998']/julpsnno)"/>
- <bind id="bind6" ref="/root/main/intntrngpsnnolist[instcd = '9998']/augpsnno" calculate="sum(/root/main/intntrngpsnnolist[instcd != '9998']/augpsnno)"/>
- <bind id="bind7" ref="/root/main/intntrngpsnnolist[instcd = '9998']/seppsnno" calculate="sum(/root/main/intntrngpsnnolist[instcd != '9998']/seppsnno)"/>
- <bind id="bind8" ref="/root/main/intntrngpsnnolist[instcd = '9998']/octpsnno" calculate="sum(/root/main/intntrngpsnnolist[instcd != '9998']/octpsnno)"/>
- <bind id="bind9" ref="/root/main/intntrngpsnnolist[instcd = '9998']/novpsnno" calculate="sum(/root/main/intntrngpsnnolist[instcd != '9998']/novpsnno)"/>
- <bind id="bind10" ref="/root/main/intntrngpsnnolist[instcd = '9998']/decpsnno" calculate="sum(/root/main/intntrngpsnnolist[instcd != '9998']/decpsnno)"/>
- <bind id="bind11" ref="/root/main/intntrngpsnnolist[instcd = '9998']/janpsnno" calculate="sum(/root/main/intntrngpsnnolist[instcd != '9998']/janpsnno)"/>
- <bind id="bind12" ref="/root/main/intntrngpsnnolist[instcd = '9998']/febpsnno" calculate="sum(/root/main/intntrngpsnnolist[instcd != '9998']/febpsnno)"/>
- <bind id="bind13" ref="/root/main/intntrngpsnnolist[instcd = '9998']/tot" calculate="sum(/root/main/intntrngpsnnolist[instcd != '9998']/tot)"/>
- </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" src="../../../mis/tistrngeducplanmngtweb/js/SMRTS00600.js"/>
- <script type="javascript" src="../../../mis/tistrngeducbaseinfomngtweb/js/RTC001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //사용자 권한
- fCheckAuth();
-
- // 그리드 초기화
- misfGridInit(grd_intntrngpsnnolist);
-
- misfMsterDetailSet(grd_intntrngpsnnolist, null, "TRRTC00901", "Y");
-
- misfComboComCdListMulti("R0305,R0234", "cmb_instcd,grd_intntrngpsnnolist.orddeptcd");
-
- misfComboCopyItemSet(grd_intntrngpsnnolist, "orddeptcd", cmb_orddeptcd, "/root/send/orddeptcd"); // 진료과
-
- // 2007-11-26 진료과전체 조회조건필요, 과정렬 acwon수정(오류발생 addComboItem으로 대체
- /*
- model.duplicate("/root/init/comcd/R0234", instance1.selectSingleNode("/root/init/comcd/R0234/R0234[1]"), "*[1]");
- model.setValue("/root/init/comcd/R0234/R0234[1]/cdid", "");
- model.setValue("/root/init/comcd/R0234/R0234[1]/cdnm", "전체");
- */
- addComboItem( "cmb_orddeptcd", "전체", "", "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();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //========================================================================================
- //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
- //========================================================================================
- function fCheckAuth() {
- btn_search.disabled = !checkAuth("R") ;
- btn_save.disabled = !checkAuth("X") ;
-
- rtsfCheckTermFlag('05',cmb_orddeptcd.value);
-
- /*
- var from = model.getValue("/root/updtsche/list/schefrom");
- var to = model.getValue("/root/updtsche/list/scheto");
- var frommm=from.substring(0,2);
- var fromdd=from.substring(2,4);
- var tomm=to.substring(0,2);
- var todd=to.substring(2,4);
- var today = getCurrentDate();
- var cur_yy = parseInt(today.substring(0, 4));
- var fromyymmdd=cur_yy+from;
- var toyymmdd=cur_yy+to;
- var schefromto= "인턴 수련 인원정보 입력기간은 "+cur_yy+"년 "+ frommm+"월 "+fromdd+"일 "+"~ "+ cur_yy+"년 "+ tomm+"월 "+todd+"일 까지 입니다.";
- model.setValue("/root/temp/scheflag",schefromto);
- if( parseInt(today) >= parseInt(fromyymmdd) && parseInt(today) <= parseInt(toyymmdd) ){
- btn_save.disabled=false;
- }else{
- btn_save.disabled=true;;
- }
- */
-
- var from = model.getValue("/root/updtsche/list/schefrom");
- var to = model.getValue("/root/updtsche/list/scheto");
- var fromyy=from.substr(0,4);
- var frommm=from.substr(4,2);
- var fromdd=from.substr(6,2);
- var toyy=to.substr(0,4);
- var tomm=to.substr(4,2);
- var todd=to.substr(6,2);
- var today = getCurrentDate();
-
- var schefromto= "인턴 수련 인원정보 입력기간은 "+fromyy+"년 "+ frommm+"월 "+fromdd+"일 "+"~ "+ toyy+"년 "+ tomm+"월 "+todd+"일 까지 입니다.";
- model.setValue("/root/temp/scheflag",schefromto);
- if( parseInt(today) >= parseInt(from) && parseInt(today) <= parseInt(to) ){
- btn_save.disabled=false;
- }else{
- btn_save.disabled=true;;
- }
-
- }
-
- function fGetList() {
- misfMsterDetailRetrieve();
- }
-
- function ftotManCnt(){
-
- var marpsnno = grd_intntrngpsnnolist.valueMatrix(grd_intntrngpsnnolist.row, grd_intntrngpsnnolist.colRef("marpsnno"));
- var aprpsnno = grd_intntrngpsnnolist.valueMatrix(grd_intntrngpsnnolist.row, grd_intntrngpsnnolist.colRef("aprpsnno"));
- var maypsnno = grd_intntrngpsnnolist.valueMatrix(grd_intntrngpsnnolist.row, grd_intntrngpsnnolist.colRef("maypsnno"));
- var junpsnno = grd_intntrngpsnnolist.valueMatrix(grd_intntrngpsnnolist.row, grd_intntrngpsnnolist.colRef("junpsnno"));
- var julpsnno = grd_intntrngpsnnolist.valueMatrix(grd_intntrngpsnnolist.row, grd_intntrngpsnnolist.colRef("julpsnno"));
- var augpsnno = grd_intntrngpsnnolist.valueMatrix(grd_intntrngpsnnolist.row, grd_intntrngpsnnolist.colRef("augpsnno"));
- var seppsnno = grd_intntrngpsnnolist.valueMatrix(grd_intntrngpsnnolist.row, grd_intntrngpsnnolist.colRef("seppsnno"));
- var octpsnno = grd_intntrngpsnnolist.valueMatrix(grd_intntrngpsnnolist.row, grd_intntrngpsnnolist.colRef("octpsnno"));
- var novpsnno = grd_intntrngpsnnolist.valueMatrix(grd_intntrngpsnnolist.row, grd_intntrngpsnnolist.colRef("novpsnno"));
- var decpsnno = grd_intntrngpsnnolist.valueMatrix(grd_intntrngpsnnolist.row, grd_intntrngpsnnolist.colRef("decpsnno"));
- var janpsnno = grd_intntrngpsnnolist.valueMatrix(grd_intntrngpsnnolist.row, grd_intntrngpsnnolist.colRef("janpsnno"));
- var febpsnno = grd_intntrngpsnnolist.valueMatrix(grd_intntrngpsnnolist.row, grd_intntrngpsnnolist.colRef("febpsnno"));
-
- if(marpsnno ==''){
- marpsnno=0;
- }else{
- marpsnno=marpsnno;
- }
- if(aprpsnno ==''){
- aprpsnno=0;
- }else{
- aprpsnno=aprpsnno;
- }
- if(maypsnno ==''){
- maypsnno=0;
- }else{
- maypsnno=maypsnno;
- }
- if(junpsnno ==''){
- junpsnno=0;
- }else{
- junpsnno=junpsnno;
- }
- if(julpsnno ==''){
- julpsnno=0;
- }else{
- julpsnno=julpsnno;
- }
- if(augpsnno ==''){
- augpsnno=0;
- }else{
- augpsnno=augpsnno;
- }
- if(seppsnno ==''){
- seppsnno=0;
- }else{
- seppsnno=seppsnno;
- }
- if(octpsnno ==''){
- octpsnno=0;
- }else{
- octpsnno=octpsnno;
- }
- if(novpsnno ==''){
- novpsnno=0;
- }else{
- novpsnno=novpsnno;
- }
- if(decpsnno ==''){
- decpsnno=0;
- }else{
- decpsnno=decpsnno;
- }
- if(janpsnno ==''){
- janpsnno=0;
- }else{
- janpsnno=janpsnno;
- }
- if(febpsnno ==''){
- febpsnno=0;
- }else{
- febpsnno=febpsnno;
- }
- if(grd_intntrngpsnnolist.col == grd_intntrngpsnnolist.colRef("marpsnno")||grd_intntrngpsnnolist.col == grd_intntrngpsnnolist.colRef("aprpsnno")
- ||grd_intntrngpsnnolist.col == grd_intntrngpsnnolist.colRef("maypsnno")||grd_intntrngpsnnolist.col == grd_intntrngpsnnolist.colRef("junpsnno")
- ||grd_intntrngpsnnolist.col == grd_intntrngpsnnolist.colRef("julpsnno")||grd_intntrngpsnnolist.col == grd_intntrngpsnnolist.colRef("augpsnno")
- ||grd_intntrngpsnnolist.col == grd_intntrngpsnnolist.colRef("seppsnno")||grd_intntrngpsnnolist.col == grd_intntrngpsnnolist.colRef("octpsnno")
- ||grd_intntrngpsnnolist.col == grd_intntrngpsnnolist.colRef("novpsnno")||grd_intntrngpsnnolist.col == grd_intntrngpsnnolist.colRef("decpsnno")
- ||grd_intntrngpsnnolist.col == grd_intntrngpsnnolist.colRef("janpsnno")||grd_intntrngpsnnolist.col == grd_intntrngpsnnolist.colRef("febpsnno")){
-
- tot = parseInt(marpsnno)+parseInt(aprpsnno)+parseInt(maypsnno)+parseInt(junpsnno)+parseInt(julpsnno)+parseInt(augpsnno)+parseInt(seppsnno)+parseInt(octpsnno)+parseInt(novpsnno)+parseInt(decpsnno)+parseInt(janpsnno)+parseInt(febpsnno);
-
- grd_intntrngpsnnolist.valueMatrix(grd_intntrngpsnnolist.row, grd_intntrngpsnnolist.colRef("tot")) = tot;
- }
- }
- ]]>
- </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; ">
- <datagrid id="grd_intntrngpsnnolist" nodeset="/root/main/intntrngpsnnolist" caption="caption4^caption3^년도^기관^진료과^3월^4월^5월^6월^7월^8월^9월^10월^11월^12월^1월^2월^총합^caption1^caption2" colsep="^" colwidth="100, 100, 80, 150, 110, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:0px; top:73px; width:1185px; height:629px; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="oldorddeptcd" visibility="hidden"/>
- <col ref="yy" text-transform="uppercase" style="text-align:center; "/>
- <col ref="instnm"/>
- <col ref="orddeptcd" type="combo" _required="true">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="marpsnno" type="input" format="###" maxlength="3" showmask="true" style="text-align:center; "/>
- <col ref="aprpsnno" type="input" format="###" maxlength="3" showmask="true" style="text-align:center; "/>
- <col ref="maypsnno" type="input" format="###" maxlength="3" showmask="true" style="text-align:center; "/>
- <col ref="junpsnno" type="input" format="###" maxlength="3" showmask="true" style="text-align:center; "/>
- <col ref="julpsnno" type="input" format="###" maxlength="3" showmask="true" style="text-align:center; "/>
- <col ref="augpsnno" type="input" format="###" maxlength="3" showmask="true" style="text-align:center; "/>
- <col ref="seppsnno" type="input" format="###" maxlength="3" showmask="true" style="text-align:center; "/>
- <col ref="octpsnno" type="input" format="###" maxlength="3" showmask="true" style="text-align:center; "/>
- <col ref="novpsnno" type="input" format="###" maxlength="3" showmask="true" style="text-align:center; "/>
- <col ref="decpsnno" type="input" format="###" maxlength="3" showmask="true" style="text-align:center; "/>
- <col ref="janpsnno" type="input" format="###" maxlength="3" showmask="true" style="text-align:center; "/>
- <col ref="febpsnno" type="input" format="###" maxlength="3" showmask="true" style="text-align:center; "/>
- <col ref="tot" format="#,###"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ftotManCnt();
- ]]>
- </script>
- </datagrid>
- <line id="line3" class="line_1" style="x1:0px; y1:68px; x2:1185px; y2:68px; "/>
- <group id="group4" style="left:0px; top:0px; width:1195px; height:40px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1190px; height:40px; 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", "cmb_instcd") ) {
- return false;
- }
-
- fGetList();
- ]]>
- </script>
- </button>
- <line id="line1" class="line_4" style="x1:1110px; y1:6px; x2:1110px; y2:36px; 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_instcd" class="search_name" style="left:225px; top:9px; width:86px; height:17px; ">기관 :</caption>
- <caption id="cap_orddeptcd" class="search_name" style="left:435px; top:9px; width:86px; height:17px; ">진료과 :</caption>
- <select1 id="cmb_orddeptcd" ref="/root/send/orddeptcd" class="combo_s_essential" navindex="3" appearance="minimal" style="left:525px; top:10px; width:100px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" navindex="2" appearance="minimal" style="left:310px; top:10px; width:100px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_yy" ref="/root/send/yy" class="input_s_essential" navindex="1" style="left:100px; top:10px; width:100px; height:19px; "/>
- </group>
- <button id="btn_excel" class="btn2_letter4" style="left:1007px; 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_intntrngpsnnolist.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <button id="btn_deleterow" class="btn2_letter3" style="left:1130px; top:48px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_intntrngpsnnolist, "D");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_addrow" class="btn2_letter3" style="left:1074px; top:48px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_intntrngpsnnolist, "A");
- grd_intntrngpsnnolist.valueMatrix( grd_intntrngpsnnolist.row, grd_intntrngpsnnolist.colRef("instnm") ) = cmb_instcd.label;
- ]]>
- </script>
- </button>
- <output id="oup_scheflag" ref="/root/temp/scheflag" style="left:5px; top:48px; width:520px; height:19px; font-weight:bold; color:#0000ff; "/>
- </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; "/>
- <button id="btn_save" class="btn5_letter2" style="left:1139px; top:3; 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_intntrngpsnnolist);
- if (updtdata == "") {
- messageBox("변경된 데이터가","I004");
- return;
- }
-
- if(!checkRequiredColumn("grd_intntrngpsnnolist")) return;
-
- // 중복제거
- // 수정 뒤에 인덱스를 꼭 줘야함!!
- misfCheckDupData(grd_intntrngpsnnolist,5);
-
- misfSave("TXRTC00901");
- fGetList();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|