123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>
- <educetc>
- <educetclist/>
- </educetc>
- <list>
- <educetclist>
- <educetclist/>
- </educetclist>
- <educetctmplist>
- <educetclist/>
- </educetctmplist>
- </list>
- </main>
- <send>
- <yy/>
- <rownum/>
- <deptcd/>
- </send>
- <init>
- <deptcond/>
- </init>
- <temp>
- <checkflag/>
- </temp>
- </root>
- </instance>
- <submission id="TRRTC00302" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/deptcond"/>
- <submission id="TXRTC00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TRRTC01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list/educetclist/educetclist"/>
- <submission id="TRRTC01102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TXRTC01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list/educetclist/educetclist" 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" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../mis/tistrngeducbaseinfomngtweb/js/RTC001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //사용자 권한
- fCheckAuth();
- submit("TRRTC00302");
-
- misfGridInit(grd_educetclist);
-
-
- 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);
- ipt_yy.refresh();
-
- var sPosdeptcd = getUserInfo("posdeptcd");
-
- // 내과 세부분과이면 내과로 세팅
- if(sPosdeptcd == "2010300000" || sPosdeptcd == "2010400000" || sPosdeptcd == "2010500000" || sPosdeptcd == "2010600000" || sPosdeptcd == "2010700000" || sPosdeptcd == "2010800000" || sPosdeptcd == "2010900000" || sPosdeptcd == "2011000000" || sPosdeptcd == "2011100000")
- {
- model.setValue("/root/send/deptcd", "2010000000"); // 진료과 설정 ;
- }
- else
- {
- model.setValue("/root/send/deptcd", sPosdeptcd); // 진료과 설정
- }
- cmb_deptcd.refresh();
-
- misfMsterDetailSet(grd_educetclist, null, "TRRTC01101", "Y");
-
- model.refresh();
-
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //========================================================================================
- //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
- //========================================================================================
- function fCheckAuth() {
- btn_search.disabled =!checkAuth("R") ;
- btn_save.disabled = !checkAuth("X") ;
- }
-
- function fDisabledSetting(check){
- tar_scincconfentry.disabled = check;
- tar_treatiseprst.disabled = check;
- tar_anodeptdispat.disabled = check;
- tar_valueexam.disabled = check;
- }
-
- // 새로운 데이터를 입력시 중복데이터를 체크한다
- function fCheckData()
- {
- submit("TRRTC01102");
- }
-
- function fDefaultDeptSetting(control)
- {
- var sPosdeptcd = getUserInfo("posdeptcd");
- var sDeptcd = control.value;
-
- // 주임교수이면서 핵의학과 교수일때
- if(sPosdeptcd == "2180000000" || sPosdeptcd == "2160000000")
- {
- if(sDeptcd == "2180000000" || sDeptcd == "2160000000")
- {}
- else
- {
- messageBox(control.label+ "을 선택", "E001");
- control.value = sPosdeptcd;
- // model.setValue("/root/send/deptcd", sPosdeptcd); // 진료과 설정
- }
- }
-
- // 주임교수이면서 치과 교수일때
- else if(sPosdeptcd == "2240000000")
- {
- if(sDeptcd == "2240000000" || sDeptcd == "2240500000" || sDeptcd == "2240200000" || sDeptcd == "2240400000")
- {}
- else
- {
- messageBox(control.label+ "을 선택", "E001");
- control.value = sPosdeptcd;
- // model.setValue("/root/send/deptcd", sPosdeptcd); // 진료과 설정
- }
- }
-
- else if(sPosdeptcd == "2010300000" || sPosdeptcd == "2010400000" || sPosdeptcd == "2010500000" || sPosdeptcd == "2010600000" || sPosdeptcd == "2010700000" || sPosdeptcd == "2010800000" || sPosdeptcd == "2010900000" || sPosdeptcd == "2011000000" || sPosdeptcd == "2011100000")
- {
- if(sDeptcd != "2010000000")
- {
- messageBox(control.label+ "을 선택", "E001");
- sPosdeptcd = "2010000000";
- control.value = sPosdeptcd;
- // model.setValue("/root/send/deptcd", sPosdeptcd); // 진료과 설정
- }
- }
-
- else
- {
- if(checkAuth("P"))
- {}
- else
- {
- if(sPosdeptcd != sDeptcd)
- {
- messageBox(control.label+ "을 선택", "E001");
- control.value = sPosdeptcd;
- }
- }
- }
-
- model.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; ">
- <line id="line6" class="line_3" style="x1:737; y1:733px; x2:1183; y2:733px; "/>
- <line id="line5" class="line_2" style="x1:737; y1:567; x2:1183; y2:567; "/>
- <line id="line4" class="line_2" style="x1:737; y1:402; x2:1183; y2:402; "/>
- <line id="line3" class="line_2" style="x1:737; y1:237; x2:1183; y2:237; "/>
- <line id="line1" class="line_1" style="x1:737; y1:69px; x2:1183; y2:69px; "/>
- <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" style="left:1125px; top:16px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("cmb_deptcd"))return;
-
- misfGridRowStatusChange(grd_educetclist, "/root/main/list/educetctmplist" , "/root/main/educetc");
-
- var updtdata = getGridUpdateData(grd_educetclist);
-
- if ( updtdata != "")
- {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
-
- if (ret == 7) { // not OK
- return;
- }
- }
- model.resetInstanceNode("/root/main/educetc/educetclist");
- model.resetInstanceNode("/root/main/list/educetctmplist/educetclist");
- grd_educetclist.clearStatus();
-
- misfMsterDetailRetrieve();
- fDisabledSetting(false);
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1110px; y1:16px; x2:1110px; y2:38px; "/>
- <line id="line207" class="line_1" style="x1:0; y1:69; x2:732; y2:69px; "/>
- <datagrid id="grd_educetclist" nodeset="/root/main/list/educetclist/educetclist" caption="부서코드^부서과^학술회의참석^논문제출^타과파견^평가시험^년도(히든)" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:75px; width:732px; height:660px; ">
- <col ref="deptcd" visibility="hidden"/>
- <col ref="depthngnm"/>
- <col ref="scincconfentry"/>
- <col ref="treatiseprst"/>
- <col ref="anodeptdispat"/>
- <col ref="valueexam"/>
- <col ref="yy" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- misfGridRowStatusChange(grd_educetctmplist, "/root/main/list/educetctmplist" , "/root/main/educetc");
- grd_educetctmplist.refresh();
-
- var updtdata = getGridUpdateData(grd_educetctmplist);
-
- if ( updtdata != "")
- {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
-
- if (ret == 7) { // not OK
- grd_educetclist.row= model.getValue("/root/send/rownum");
- model.resetInstanceNode("/root/main/educetc/educetclist");
- model.resetInstanceNode("/root/main/list/educetctmplist/educetclist");
- return;
- }
- }
-
- // fDisabledSetting(true);
-
- var cur_row = grd_educetclist.row;
-
- model.setValue("/root/send/rownum", cur_row);
- // model.copyNode("/root/main/educcdrgst/educcdrgstlist", "/root/main/list/educcdrgst/educcdrgstlist["+ cur_row + "]");
-
- model.copyNode("/root/main/list/educetctmplist/educetclist", "/root/main/list/educetclist/educetclist["+ cur_row + "]");
- model.copyNode("/root/main/educetc/educetclist", "/root/main/list/educetctmplist/educetclist");
- grd_educetctmplist.nodeset = "/root/main/list/educetctmplist/educetclist";
- grd_educetctmplist.row = 1;
- // alert(model.getValue("/root/main/list/educcdrgsttmp/educcdrgstlist/educnm"));
-
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <input id="ipt_yy" ref="/root/send/yy" class="input_s_essential" navindex="1" format="yyyy" appearance="input" style="left:100px; top:18px; width:100px; height:19px; "/>
- <button id="button14" class="btn2_letter6" visibility="hidden" style="left:1009px; top:18px; width:86px; height:19px; ">
- <caption>전년도 copy</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- if(grd_educcdrgstlist.rows - grd_educcdrgstlist.fixedRows > 0)
- {
- messageBox("이미 등록된 코드들이 있어 COPY를 ","E001");
- return;
- }
- submit("TXRTC00302");
- btn_search.dispatch("DOMActivate");
- model.refresh();
-
- ]]>
- </script>
- </button>
- <caption id="cap_deptcd" class="search_name" style="left:253px; top:19px; width:99px; height:17px; ">부 서 :</caption>
- <select1 id="cmb_deptcd" ref="/root/send/deptcd" class="combo_s_essential" navindex="2" appearance="minimal" style="left:337px; top:18px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/deptcond">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fDefaultDeptSetting(cmb_deptcd);
- ]]>
- </script>
- </select1>
- <caption id="cap_scincconfentry" class="cell_1" style="left:737px; top:74px; width:100; height:162; vertical-align:middle; ">학술회의참석</caption>
- <caption id="cap_treatiseprst" class="cell_1" style="left:737px; top:239; width:100px; height:162; vertical-align:middle; ">논문제출</caption>
- <caption id="cap_anodeptdispat" class="cell_1" style="left:737px; top:404; width:100px; height:162; vertical-align:middle; ">타과 파견</caption>
- <caption id="cap_valueexam" class="cell_1" style="left:737px; top:569; width:100px; height:162; vertical-align:middle; ">평가시험</caption>
- <textarea id="tar_anodeptdispat" ref="/root/main/educetc/educetclist/anodeptdispat" disabled="true" navindex="8" style="left:839px; top:405; width:345px; height:161; padding-top:5; "/>
- <textarea id="tar_valueexam" ref="/root/main/educetc/educetclist/valueexam" disabled="true" navindex="9" style="left:839px; top:570; width:345px; height:161; padding-top:5; "/>
- <textarea id="tar_treatiseprst" ref="/root/main/educetc/educetclist/treatiseprst" disabled="true" navindex="7" style="left:839; top:240; width:345; height:161; padding-top:5; "/>
- <button id="button1" class="btn2_letter2" style="left:1095px; top:49px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(!isRequiredControls("ipt_yy"))return;
- if(!isRequiredControls("cmb_deptcd"))return;
-
- misfGridIUD(grd_educetclist, "A");
- grd_educetclist.dispatch("onrowchanged");
- grd_educetclist.valueMatrix(grd_educetclist.row, grd_educetclist.colRef("deptcd")) = cmb_deptcd.value;
- grd_educetclist.valueMatrix(grd_educetclist.row, grd_educetclist.colRef("depthngnm")) = cmb_deptcd.label;
- grd_educetclist.valueMatrix(grd_educetclist.row, grd_educetclist.colRef("yy")) = ipt_yy.value;
- fDisabledSetting(false);
- ]]>
- </script>
- </button>
- <datagrid id="grd_educetctmplist" nodeset="/root/main/list/educetctmplist/educetclist" visibility="hidden" caption="부서코드^부서과^학술회의참석^논문제출^타과파견^평가시험^년도(히든)" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:330px; width:730px; height:245px; ">
- <col ref="deptcd" visibility="visible"/>
- <col ref="depthngnm"/>
- <col ref="scincconfentry"/>
- <col ref="treatiseprst"/>
- <col ref="anodeptdispat"/>
- <col ref="valueexam"/>
- <col ref="yy" visibility="hidden"/>
- </datagrid>
- <button id="btn_createeduccd" class="btn2_letter6" visibility="hidden" style="left:1005px; top:49px; width:86px; height:19px; ">
- <caption>교육코드생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("cmb_instcd"))return;
- if(!isRequiredControls("cmb_instcd"))return;
- if(!isRequiredControls("cmb_instcd"))return;
- if(!isRequiredControls("cmb_instcd"))return;
-
- fCreateDeptcd();
-
- ]]>
- </script>
- </button>
- <textarea id="tar_scincconfentry" ref="/root/main/educetc/educetclist/scincconfentry" disabled="true" style="left:839; top:75px; width:345; height:161; "/>
- <button id="button2" class="btn2_letter2" visibility="hidden" style="left:1140px; top:49px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- misfGridIUD(grd_educetclist, "D");
-
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <button id="button8" class="btn3_letter4" visibility="hidden" style="left:0px; top:3px; width:80px; height:22px; ">
- <caption>화면이동</caption>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:1124px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- /* 새로운 데이터를 입력시 */
- if(grd_educetclist.rowStatus(grd_educetclist.row) == 1)
- {
- // fDeptcdCheck();
-
- if(!isRequiredControls("ipt_yy"))return;
- if(!isRequiredControls("cmb_deptcd"))return;
-
- model.copyNode("/root/main/list/educetctmplist/educetclist", "/root/main/educetc/educetclist");
- model.copyNode("/root/main/list/educetclist/educetclist[" + model.getValue("/root/send/rownum") + "]", "/root/main/list/educetctmplist/educetclist");
- grd_educetclist.refresh();
-
- var updtdata = getGridUpdateData(grd_educetclist);
-
- if (updtdata == "")
- {
- messageBox("변경된 데이터가","I004");
- return;
- }
-
- // 새로운 데이터를 입력시 중복데이터를 체크한다
- fCheckData();
-
- var sCheckFlag = model.getValue("/root/temp/checkflag");
-
- if(sCheckFlag == "Y")
- {
- var sYy = ipt_yy.value;
- var sDeptcd = cmb_deptcd.label;
-
- messageBox(sYy + "년도 " + sDeptcd + "는 이미 입력된 데이터", "E008");
- misfMsterDetailRetrieve();
- return;
- }
-
- misfSave("TXRTC01101");
- grd_educetctmplist.clearStatus();
- }
- /* 조회된 데이터를 수정 할때 */
- else if(grd_educetclist.rowStatus(grd_educetclist.row) == 0)
- {
- if(!isRequiredControls("ipt_yy"))return;
- if(!isRequiredControls("cmb_cmb"))return;
-
- misfGridRowStatusChange(grd_educetctmplist, "/root/main/list/educetctmplist" , "/root/main/educetc");
- misfGridRowStatusChange(grd_educetclist, "/root/main/list/educetclist" , "/root/main/list/educetctmplist");
- grd_educetclist.refresh();
-
- var updtdata = getGridUpdateData(grd_educetclist);
-
- if (updtdata == "")
- {
- messageBox("변경된 데이터가","I004");
- return;
- }
-
- misfSave("TXRTC01101");
- grd_educetctmplist.clearStatus();
- }
- btn_search.dispatch("DOMActivate");
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line11" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|