1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195 |
- <?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>
- <intntrnghospplanlist/>
- <eduplanlist/>
- <templist>
- <guidmedispcldremplno/>
- <drname/>
- <guidmedispclinstcd/>
- <guidmedispclinstnm/>
- </templist>
- <codelist>
- <deptlist/>
- </codelist>
- <isnteduplan>
- <edulist/>
- </isnteduplan>
- </main>
- <send>
- <condition>
- <yy/>
- <supinfqurtyyflag>1</supinfqurtyyflag>
- <emplno/>
- <anual>1</anual>
- <passsbjcd/>
- <name/>
- <posinstcd/>
- <mainguidhosp/>
- <edupasssbjcd/>
- <eduinstcd/>
- <plandatayn/>
- <apprtcdrflag/>
- <jobposcd/>
- <yychangyn/>
- <refanual/>
- <preststatcd/>
- <eduyy/>
- </condition>
- <save>
- <intntrnghospplanlist/>
- </save>
- <intntrnghospplanlist>
- <emplno/>
- <yy/>
- <supinfqurtyyflag/>
- </intntrnghospplanlist>
- </send>
- <init>
- <yychang>
- <label>수련년도변경여부</label>
- <value>Y</value>
- </yychang>
- <retireyn>
- <label>전체</label>
- <value/>
- <label>퇴사</label>
- <value>06</value>
- <label>정상</label>
- <value/>
- </retireyn>
- <supinfqurtyyflag>
- <label>1</label>
- <value>1</value>
- <label>2</label>
- <value>2</value>
- </supinfqurtyyflag>
- <planinstcd/>
- <cmb_posinstcd>
- <comcodelist/>
- </cmb_posinstcd>
- <parentidx/>
- <planmmcd/>
- <planmmnm/>
- <eduplan>
- <eduplanlist/>
- </eduplan>
- <codesend>
- <instcd/>
- </codesend>
- <chgcol>
- <chgyn>Y</chgyn>
- <chgsup>1</chgsup>
- </chgcol>
- </init>
- <hidden>
- <instcd/>
- </hidden>
- <temp>
- <datayn/>
- <emplnoyn/>
- <passyn/>
- <towdatayn/>
- </temp>
- </root>
- </instance>
- <submission id="TXRTS00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
- <submission id="TRRTS00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition" resultref="/root/temp"/>
- <submission id="TRRTS00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition" resultref="/root/main/intntrnghospplanlist"/>
- <submission id="TRRTS00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition" resultref="/root/main/eduplanlist"/>
- <submission id="TXRTS00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
- <submission id="TXRTS00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition" resultref="/root/temp"/>
- <submission id="TRRTS00205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/codesend" resultref="/root/main/codelist"/>
- </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/dligclaznsmngtweb/js/RPD001.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/tistrngeducbaseinfomngtweb/js/RTC001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- gFromMonthColIdx0 = grd_intntrnghospplanlist.colRef("mardeptcd");
- gFromMonthColIdx1 = grd_intntrnghospplanlist.colRef("demardeptcd");
- gFromMonthColIdx2 = grd_intntrnghospplanlist.colRef("edmardeptcd");
- //사용자 권한
- fCheckAuth();
-
- // 그리드 초기화
- misfGridInit(grd_intntrnghospplanlist);
- misfGridInit(grd_instedulist);
-
-
- fmisfMsterDetailSet(grd_intntrnghospplanlist, null, "TRRTS00201", "Y");
- misfComboComCdList('R0305',cmb_mainguidhosp,"Y");
- misfComboComCdList('R0281',cmb_refanual);
- misfComboComCdList('R0146',cmb_preststatcd,"Y");
- misfComboComCdList('R0237',cmb_supinfqurtyyflag);
- misfComboComCdList('R0281',cmb_anual);
- // misfComboCopyItemSet(cmb_posinstcd, "/root/send/condition/posinstcd", cmb_mainguidhosp,"/root/send/condition/mainguidhosp");
- submit("TRRTS00205");
- var curDate = getCurrentDate().toDate().getDateFormat("YYYYMMDD");
- var isDate = curDate.toDate().getAddDate(2,'M').getDateFormat("YYYY");
-
- model.setValue("/root/send/condition/yy", isDate);
- model.refresh();
- //var deptcd = getUserInfo("dutplcecd");
- //cmb_passsbjcd.value= deptcd;
- //그리드의 타이틀을 누르면 sort되는 기능
- // grd_intntrnghospplanlist.explorerbar = "sort";
-
- cmb_refanual.value='4';
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //========================================================================================
- //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
- //========================================================================================
- function fCheckAuth() {
- btn_search.disabled = !checkAuth("R") ;
- btn_save.disabled = !checkAuth("X") ;
- }
-
- function fmisValueChange(){
- var cur_row=grd_intntrnghospplanlist.row;
- var posdeptcd=grd_intntrnghospplanlist.valueMatrix(cur_row, grd_intntrnghospplanlist.colRef("posdeptcd"));
- var demardeptcd=grd_intntrnghospplanlist.valueMatrix(cur_row, grd_intntrnghospplanlist.colRef("demardeptcd"));
- if (grd_intntrnghospplanlist.col == "40" ){
- if(posdeptcd=="2010000000"){
- if(demardeptcd =="MG" || demardeptcd =="MC" ||demardeptcd =="MP" ||demardeptcd =="MN" ||demardeptcd =="MH" ||demardeptcd =="MO" ||demardeptcd =="MI" ||demardeptcd =="MR"){
- }else{
- grd_intntrnghospplanlist.valueMatrix(cur_row, grd_intntrnghospplanlist.colRef("demardeptcd"))="";
- }
- }
- }
- /*<col disabled="true" ref="demardeptcd" type="input" maxlength="2" style="text-align:center; "/>
- <col disabled="true" ref="deaprdeptcd" type="input" style="text-align:center; "/>
- <col disabled="true" ref="demaydeptcd" type="input" style="text-align:center; "/>
- <col disabled="true" ref="dejundeptcd" type="input" style="text-align:center; "/>
- <col disabled="true" ref="dejuldeptcd" type="input" style="text-align:center; "/>
- <col disabled="true" ref="deaugdeptcd" type="input" style="text-align:center; "/>
- <col disabled="true" ref="desepdeptcd" type="input" style="text-align:center; "/>
- <col disabled="true" ref="deoctdeptcd" type="input" style="text-align:center; "/>
- <col disabled="true" ref="denovdeptcd" type="input" style="text-align:center; "/>
- <col disabled="true" ref="dedecdeptcd" type="input" style="text-align:center; "/>
- <col disabled="true" ref="dejandeptcd" type="input" style="text-align:center; "/>
- <col disabled="true" ref="defebdeptcd" type="input" style="text-align:center; "/>*/
- }
-
- function fmisEmpButtonClick(){
-
- var par_row = grd_intntrnghospplanlist.row;
- if (grd_intntrnghospplanlist.col == 11) {//사원번호 버튼을 눌렀을 때
- var bf_dremplno = grd_intntrnghospplanlist.valueMatrix(par_row, grd_intntrnghospplanlist.colRef("guidmedispcldremplno"));
- var recv_list = "guidmedispclinstcd,guidmedispclinstnm,drname,guidmedispcldremplno";
- misfOpenPopUpList("35", ipt_dremplno,"",recv_list);
- var dremplno = ipt_dremplno.value;
- var drname = ipt_drname.value;
- var guidmedispclinstcd = ipt_guidmedispclinstcd.value;
- var guidmedispclinstnm = ipt_guidmedispclinstnm.value;
- if(bf_dremplno != dremplno && dremplno !=""){
- grd_intntrnghospplanlist.addStatus(par_row,"update");
- }
-
- grd_intntrnghospplanlist.valueMatrix(par_row, grd_intntrnghospplanlist.colRef("drname")) = drname;
- grd_intntrnghospplanlist.valueMatrix(par_row, grd_intntrnghospplanlist.colRef("guidmedispclinstcd")) = guidmedispclinstcd;
- grd_intntrnghospplanlist.valueMatrix(par_row, grd_intntrnghospplanlist.colRef("guidmedispclinstnm")) = guidmedispclinstnm;
- grd_intntrnghospplanlist.valueMatrix(par_row, grd_intntrnghospplanlist.colRef("guidmedispcldremplno")) = dremplno;
- //신청일자 및 시간 유효성 체크
-
- for(i=grd_intntrnghospplanlist.fixedRows; i < grd_intntrnghospplanlist.rows ; i++){
- var emplno = grd_intntrnghospplanlist.valueMatrix(par_row,6);
- var emplno_ch = grd_intntrnghospplanlist.valueMatrix(i, grd_intntrnghospplanlist.colRef("emplno"));
-
- if(emplno == emplno_ch && grd_intntrnghospplanlist.valueMatrix(i, grd_intntrnghospplanlist.colRef("guidmedispcldremplno")) =="" && dremplno !=""){
- grd_intntrnghospplanlist.valueMatrix(i, grd_intntrnghospplanlist.colRef("drname"))=drname;
- grd_intntrnghospplanlist.valueMatrix(i, grd_intntrnghospplanlist.colRef("guidmedispclinstcd"))=guidmedispclinstcd;
- grd_intntrnghospplanlist.valueMatrix(i, grd_intntrnghospplanlist.colRef("guidmedispclinstnm"))=guidmedispclinstnm;
- grd_intntrnghospplanlist.valueMatrix(i, grd_intntrnghospplanlist.colRef("guidmedispcldremplno"))=dremplno;
-
- grd_intntrnghospplanlist.addStatus(i,"update");
- }
- }
- ipt_dremplno.value = "";
- ipt_drname.value = "";
- ipt_guidmedispclinstcd.value = "";
- ipt_guidmedispclinstnm.value = "";
- }
-
-
- }
- function fmisButtonClick(str_col){
- var par_row = grd_intntrnghospplanlist.row;
-
-
- if (str_col == 74 ||str_col == 75 || str_col == 76 || str_col== 77
- ||str_col== 78 ||str_col == 79 ||str_col == 80 ||str_col == 81
- ||str_col == 82 ||str_col == 83 ||str_col == 84||str_col == 85) //교육3월 눌렀을때.. 2090000000
- {
-
-
- if(str_col == 74){
- var passsbjcd = grd_intntrnghospplanlist.valueMatrix(grd_intntrnghospplanlist.row, grd_intntrnghospplanlist.colRef("demardeptcd"));
- var eduinstcd = grd_intntrnghospplanlist.valueMatrix(grd_intntrnghospplanlist.row, grd_intntrnghospplanlist.colRef("mardeptcd"));
- if(eduinstcd =="" ||passsbjcd =="" ){
- messageBox("수련계획 해당월의 수련기관(수련부서)을 먼저 ","C001");
- misfGridInit(grd_instedulist);
- eduGroup.visible = false;
- return;
- }
- model.setValue("/root/init/parentidx",par_row);
- model.setValue("/root/init/planmmcd","edmardeptcd");
-
- }else if(str_col == 75){
-
- var passsbjcd = grd_intntrnghospplanlist.valueMatrix(grd_intntrnghospplanlist.row, grd_intntrnghospplanlist.colRef("deaprdeptcd"));
- var eduinstcd = grd_intntrnghospplanlist.valueMatrix(grd_intntrnghospplanlist.row, grd_intntrnghospplanlist.colRef("aprdeptcd"));
- if(eduinstcd ==""){
- messageBox("수련계획 해당월의 기관을 먼저 ","C001");
- misfGridInit(grd_instedulist);
- eduGroup.visible = false;
- return;
- }
- model.setValue("/root/init/parentidx",par_row);
- model.setValue("/root/init/planmmcd","edaprdeptcd");
-
- }else if(str_col == 76){
- var passsbjcd = grd_intntrnghospplanlist.valueMatrix(grd_intntrnghospplanlist.row, grd_intntrnghospplanlist.colRef("demaydeptcd"));
- var eduinstcd = grd_intntrnghospplanlist.valueMatrix(grd_intntrnghospplanlist.row, grd_intntrnghospplanlist.colRef("maydeptcd"));
- if(eduinstcd ==""){
- messageBox("수련계획 해당월의 기관을 먼저 ","C001");
- misfGridInit(grd_instedulist);
- eduGroup.visible = false;
- return;
- }
- model.setValue("/root/init/parentidx",par_row);
- model.setValue("/root/init/planmmcd","edmaydeptcd");
- }else if(str_col == 77){
- var passsbjcd = grd_intntrnghospplanlist.valueMatrix(grd_intntrnghospplanlist.row, grd_intntrnghospplanlist.colRef("dejundeptcd"));
- var eduinstcd = grd_intntrnghospplanlist.valueMatrix(grd_intntrnghospplanlist.row, grd_intntrnghospplanlist.colRef("jundeptcd"));
- if(eduinstcd ==""){
- messageBox("수련계획 해당월의 기관을 먼저 ","C001");
- misfGridInit(grd_instedulist);
- eduGroup.visible = false;
- return;
- }
- model.setValue("/root/init/parentidx",par_row);
- model.setValue("/root/init/planmmcd","edjundeptcd");
- }else if(str_col== 78){
- var passsbjcd = grd_intntrnghospplanlist.valueMatrix(grd_intntrnghospplanlist.row, grd_intntrnghospplanlist.colRef("dejuldeptcd"));
- var eduinstcd = grd_intntrnghospplanlist.valueMatrix(grd_intntrnghospplanlist.row, grd_intntrnghospplanlist.colRef("juldeptcd"));
- if(eduinstcd ==""){
- messageBox("수련계획 해당월의 기관을 먼저 ","C001");
- misfGridInit(grd_instedulist);
- eduGroup.visible = false;
- return;
- }
- model.setValue("/root/init/parentidx",par_row);
- model.setValue("/root/init/planmmcd","edjuldeptcd");
- }else if(str_col == 79){
- var passsbjcd = grd_intntrnghospplanlist.valueMatrix(grd_intntrnghospplanlist.row, grd_intntrnghospplanlist.colRef("deaugdeptcd"));
- var eduinstcd = grd_intntrnghospplanlist.valueMatrix(grd_intntrnghospplanlist.row, grd_intntrnghospplanlist.colRef("augdeptcd"));
- if(eduinstcd ==""){
- messageBox("수련계획 해당월의 기관을 먼저 ","C001");
- misfGridInit(grd_instedulist);
- eduGroup.visible = false;
- return;
- }
- model.setValue("/root/init/parentidx",par_row);
- model.setValue("/root/init/planmmcd","edaugdeptcd");
- }else if(str_col== 80){
- var passsbjcd = grd_intntrnghospplanlist.valueMatrix(grd_intntrnghospplanlist.row, grd_intntrnghospplanlist.colRef("desepdeptcd"));
- var eduinstcd = grd_intntrnghospplanlist.valueMatrix(grd_intntrnghospplanlist.row, grd_intntrnghospplanlist.colRef("sepdeptcd"));
- if(eduinstcd ==""){
- messageBox("수련계획 해당월의 기관을 먼저 ","C001");
- misfGridInit(grd_instedulist);
- eduGroup.visible = false;
- return;
- }
- model.setValue("/root/init/parentidx",par_row);
- model.setValue("/root/init/planmmcd","edsepdeptcd");
- }else if(str_col == 81){
- var passsbjcd = grd_intntrnghospplanlist.valueMatrix(grd_intntrnghospplanlist.row, grd_intntrnghospplanlist.colRef("deoctdeptcd"));
- var eduinstcd = grd_intntrnghospplanlist.valueMatrix(grd_intntrnghospplanlist.row, grd_intntrnghospplanlist.colRef("octdeptcd"));
- if(eduinstcd ==""){
- messageBox("수련계획 해당월의 기관을 먼저 ","C001");
- misfGridInit(grd_instedulist);
- eduGroup.visible = false;
- return;
- }
- model.setValue("/root/init/parentidx",par_row);
- model.setValue("/root/init/planmmcd","edoctdeptcd");
- }else if(str_col== 82){
- var passsbjcd = grd_intntrnghospplanlist.valueMatrix(grd_intntrnghospplanlist.row, grd_intntrnghospplanlist.colRef("denovdeptcd"));
- var eduinstcd = grd_intntrnghospplanlist.valueMatrix(grd_intntrnghospplanlist.row, grd_intntrnghospplanlist.colRef("novdeptcd"));
- if(eduinstcd ==""){
- messageBox("수련계획 해당월의 기관을 먼저 ","C001");
- misfGridInit(grd_instedulist);
- eduGroup.visible = false;
- return;
- }
- model.setValue("/root/init/parentidx",par_row);
- model.setValue("/root/init/planmmcd","ednovdeptcd");
- }else if(str_col == 83){
- var passsbjcd = grd_intntrnghospplanlist.valueMatrix(grd_intntrnghospplanlist.row, grd_intntrnghospplanlist.colRef("dedecdeptcd"));
- var eduinstcd = grd_intntrnghospplanlist.valueMatrix(grd_intntrnghospplanlist.row, grd_intntrnghospplanlist.colRef("decdeptcd"));
- if(eduinstcd ==""){
- messageBox("수련계획 해당월의 기관을 먼저 ","C001");
- misfGridInit(grd_instedulist);
- eduGroup.visible = false;
- return;
- }
- model.setValue("/root/init/parentidx",par_row);
- model.setValue("/root/init/planmmcd","eddecdeptcd");
- }else if(str_col== 84){
- var passsbjcd = grd_intntrnghospplanlist.valueMatrix(grd_intntrnghospplanlist.row, grd_intntrnghospplanlist.colRef("dejandeptcd"));
- var eduinstcd = grd_intntrnghospplanlist.valueMatrix(grd_intntrnghospplanlist.row, grd_intntrnghospplanlist.colRef("jandeptcd"));
- if(eduinstcd =="" ||passsbjcd =="" ){
- messageBox("수련계획 해당월의 수련기관(수련부서)을 먼저 ","C001");
- misfGridInit(grd_instedulist);
- eduGroup.visible = false;
- return;
- }
- model.setValue("/root/init/parentidx",par_row);
- model.setValue("/root/init/planmmcd","edjandeptcd");
- }else if(str_col == 85){
- var passsbjcd = grd_intntrnghospplanlist.valueMatrix(grd_intntrnghospplanlist.row, grd_intntrnghospplanlist.colRef("defebdeptcd"));
- var eduinstcd = grd_intntrnghospplanlist.valueMatrix(grd_intntrnghospplanlist.row, grd_intntrnghospplanlist.colRef("febdeptcd"));
- if(eduinstcd =="" ||passsbjcd =="" ){
- messageBox("수련계획 해당월의 수련기관(수련부서)을 먼저 ","C001");
- misfGridInit(grd_instedulist);
- eduGroup.visible = false;
- return;
- }
- model.setValue("/root/init/parentidx",par_row);
- model.setValue("/root/init/planmmcd","edfebdeptcd");
- }
- if(eduinstcd =="0"){
- messageBox("기관코드가 ","E004");
- }else{
- // misfGetAndSetUserInfo();
- // var dutunitcd = model.getValue("/root/temp/userinfo/dutunitcd");
- var yy = grd_intntrnghospplanlist.valueMatrix(grd_intntrnghospplanlist.row, grd_intntrnghospplanlist.colRef("yy"));
- var anual = grd_intntrnghospplanlist.valueMatrix(grd_intntrnghospplanlist.row, grd_intntrnghospplanlist.colRef("anual"));
-
- //model.setValue("/root/send/condition/edupasssbjcd",cmb_passsbjcd.value);
- if(grd_instedulist.rows ==1){
- model.setValue("/root/send/condition/eduyy",yy);
- model.setValue("/root/send/condition/anual",anual);
-
- submit("TRRTS00203");
- }
-
- grd_instedulist.nodeset = "/root/main/eduplanlist[instcd='"+eduinstcd+"' and anual='"+ anual +"' and deptcd='"+ passsbjcd +"']";
- grd_instedulist.refresh();
-
- var rows = grd_instedulist.rows;
- if(rows==1){
- messageBox("해당부서에 등록된 교육코드가 ","I004");
- misfGridInit(grd_instedulist);
- eduGroup.visible = false;
- return;
- }
-
- eduGroup.attribute("popup") = "true";
- eduGroup.attribute("left") = window.screenLeft+150;//event.clientX-100+window.screenLeft;
- eduGroup.attribute("top") = window.screenTop+135;//event.clientY-20+window.screenTop;
- eduGroup.visible = true;
-
-
- model.setFocus("groupCombo");
- //group2.disabled = true; // addGroup 컨트롤이 나타나면 listGroup 컨트롤을 disabled 시킴
- }
- }
- }
- function fsaveCheckValue(){
- var iInsCnt = 0;
- var iDupCnt = 0;
- var bDel = false;
- var icolidx= grd_intntrnghospplanlist.colRef("supinfqurtyyflag");
- var icolidx1=grd_intntrnghospplanlist.colRef("apprtcdrflag");
- var icolidx2=grd_intntrnghospplanlist.colRef("emplno");
- var icolidx3=grd_intntrnghospplanlist.colRef("yy");
-
- for(var i=0; i<grd_intntrnghospplanlist.rows; i++)
- {
- if(grd_intntrnghospplanlist.rowStatus(i) == 1 || grd_intntrnghospplanlist.rowStatus(i) == 3)
- {
- iInsCnt = i;
- break;
- }
- }
- for(var i=iInsCnt; i<grd_intntrnghospplanlist.rows; i++)
- {
- for(var j=1; j<i; j++)
- {
- if(grd_intntrnghospplanlist.valueMatrix(i, icolidx) == grd_intntrnghospplanlist.valueMatrix(j, icolidx) && grd_intntrnghospplanlist.valueMatrix(i, icolidx1) == grd_intntrnghospplanlist.valueMatrix(j, icolidx1) && grd_intntrnghospplanlist.valueMatrix(i, icolidx2) == grd_intntrnghospplanlist.valueMatrix(j, icolidx2)
- && grd_intntrnghospplanlist.valueMatrix(i, icolidx3) == grd_intntrnghospplanlist.valueMatrix(j, icolidx3))
- {
- if(grd_intntrnghospplanlist.rowStatus(i) == 1 || grd_intntrnghospplanlist.rowStatus(i) == 3)
- { messageBox("데이타가 ","E006");
- return false;
- }
- }
- }
-
-
- }
- return true;
- }
-
- //acwon
- var gFromMonthColIdx0;
- var gFromMonthColIdx1;
- var gFromMonthColIdx2;
- function fChgColBySup()
- {
- if (model.getValue("/root/init/chgcol/chgyn") == "Y" && model.getValue("/root/init/chgcol/chgsup") != model.getValue("/root/send/condition/supinfqurtyyflag"))
- {
- model.setValue("/root/init/chgcol/chgsup", model.getValue("/root/send/condition/supinfqurtyyflag"));
-
- var colidx0 = gFromMonthColIdx0;
- var colidx1 = gFromMonthColIdx1;
- var colidx2 = gFromMonthColIdx2;
- var arr_sup0;
- var arr_sup1;
- var arr_sup2;
- var arr_supt;
-
- if (model.getValue("/root/send/condition/supinfqurtyyflag") == "1")
- {
- arr_sup0 = new Array("mardeptcd", "aprdeptcd", "maydeptcd", "jundeptcd", "juldeptcd", "augdeptcd", "sepdeptcd", "octdeptcd", "novdeptcd", "decdeptcd", "jandeptcd", "febdeptcd");
- arr_sup1 = new Array("demardeptcd", "deaprdeptcd", "demaydeptcd", "dejundeptcd", "dejuldeptcd", "deaugdeptcd", "desepdeptcd", "deoctdeptcd", "denovdeptcd", "dedecdeptcd", "dejandeptcd", "defebdeptcd");
- arr_sup2 = new Array("edmardeptcd", "edaprdeptcd", "edmaydeptcd", "edjundeptcd", "edjuldeptcd", "edaugdeptcd", "edsepdeptcd", "edoctdeptcd", "ednovdeptcd", "eddecdeptcd", "edjandeptcd", "edfebdeptcd");
- arr_supt = new Array("3월", "4월", "5월", "6월", "7월", "8월", "9월", "10월", "11월", "12월", "1월", "2월");
- }
- else
- {
- arr_sup0 = new Array("sepdeptcd", "octdeptcd", "novdeptcd", "decdeptcd", "jandeptcd", "febdeptcd", "mardeptcd", "aprdeptcd", "maydeptcd", "jundeptcd", "juldeptcd", "augdeptcd");
- arr_sup1 = new Array("desepdeptcd", "deoctdeptcd", "denovdeptcd", "dedecdeptcd", "dejandeptcd", "defebdeptcd", "demardeptcd", "deaprdeptcd", "demaydeptcd", "dejundeptcd", "dejuldeptcd", "deaugdeptcd");
- arr_sup2 = new Array("edsepdeptcd", "edoctdeptcd", "ednovdeptcd", "eddecdeptcd", "edjandeptcd", "edfebdeptcd", "edmardeptcd", "edaprdeptcd", "edmaydeptcd", "edjundeptcd", "edjuldeptcd", "edaugdeptcd");
- arr_supt = new Array("9월", "10월", "11월", "12월", "1월", "2월", "3월", "4월", "5월", "6월", "7월", "8월");
- }
-
- var idx = 0;
- while (idx < 12)
- {
- grd_intntrnghospplanlist.colAttribute(colidx0 + idx, "ref") = arr_sup0[idx];
- grd_intntrnghospplanlist.colAttribute(colidx1 + idx, "ref") = arr_sup1[idx];
- grd_intntrnghospplanlist.colAttribute(colidx2 + idx, "ref") = arr_sup2[idx];
-
- grd_intntrnghospplanlist.valueMatrix(0, colidx0 + idx) = arr_supt[idx];
- grd_intntrnghospplanlist.valueMatrix(1, colidx0 + idx) = arr_supt[idx];
- grd_intntrnghospplanlist.valueMatrix(2, colidx0 + idx) = arr_supt[idx];
-
- idx++;
- }
-
- grd_intntrnghospplanlist.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; ">
- <caption id="caption22" class="tit_2" style="left:5px; top:81px; width:219px; height:14px; ">수련계획 및 교육관리</caption>
- <group id="group6" style="left:0px; top:10px; width:1195px; height:90px; vertical-align:top; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:63px; "/>
- <caption id="cap_yy" class="search_name" style="left:15px; top:11px; width:125px; height:17px; ">년 도 :</caption>
- <caption id="cap_supinfqurtyyflag" class="search_name" style="left:285px; top:11px; width:126px; height:17px; ">상 하 반 기 :</caption>
- <caption id="cap_anual" class="search_name" style="left:539px; top:10px; width:109px; height:17px; ">전공의년차 :</caption>
- <caption id="cap_passsbjcd" class="search_name" style="left:770px; top:10px; width:109px; height:17px; ">전 공 과 :</caption>
- <select1 id="cmb_anual" ref="/root/send/condition/anual" class="combo_s_essential" appearance="minimal" style="left:642px; top:9px; width:100px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_passsbjcd" ref="/root/send/condition/passsbjcd" class="combo_s_essential" appearance="minimal" style="left:864px; top:9px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/codelist/deptlist">
- <label ref="passsbjnm"/>
- <value ref="passsbjcd"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_yy" ref="/root/send/condition/yy" class="input_default" inputtype="date" format="yyyy" style="left:145px; top:9px; width:110px; height:19px; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:35px; width:125px; height:17px; ">주지도교육병원 :</caption>
- <select1 id="cmb_mainguidhosp" ref="/root/send/condition/mainguidhosp" class="combo_s_essential" appearance="minimal" style="left:145px; top:34px; width:110px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" style="left:285px; top:35px; width:110px; height:17px; ">이 름 :</caption>
- <caption id="caption4" class="search_name" style="left:539px; top:36px; width:106px; height:17px; ">조회 년차 :</caption>
- <line id="line3" class="line_4" style="x1:1110px; y1:8px; x2:1110px; y2:51px; border-color:#ffe4bb; border-left-style:solid; "/>
- <select1 id="cmb_supinfqurtyyflag" ref="/root/send/condition/supinfqurtyyflag" class="combo_s_essential" navindex="2" appearance="minimal" style="left:400px; top:9px; width:110px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <input id="input3" ref="/root/send/condition/name" class="input_default" style="left:400px; top:34px; width:110px; height:19px; "/>
- <input id="input4" ref="/root/send/condition/emplno" class="input_default" visibility="hidden" style="left:495px; top:65px; width:100px; height:19px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:18px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //필수 입력 항목 체크(공통 ftHelper.js)
-
- if ( !isRequiredControls("ipt_yy", "cmb_supinfqurtyyflag","cmb_anual","cmb_passsbjcd") ) {
- return false;
- }
- var anual = cmb_anual.value;
-
-
- model.setValue("/root/send/condition/apprtcdrflag","R");
- submit("TRRTS00202");
- var datayn=model.getValue("/root/temp/datayn"); // 수련계획 자료등록여부
- var emplnoyn= model.getValue("/root/temp/emplnoyn");
- var passyn=model.getValue("/root/temp/passyn");
-
- if(anual=='1'){
-
- if(passyn !='Y' && anual=='1'){
- messageBox("레지던트 수련계획 1년차 레지던트 합격자가","I004");
- return;
- }
- if(emplnoyn =='Y' && anual=='1' ){
- messageBox("사원번호를 먼저 생성한 후 ","C001");
- return;
- }
- model.setValue("/root/send/condition/plandatayn","Y");
- }else{
- model.setValue("/root/send/condition/plandatayn","R2");
- }
-
- fChgColBySup();
-
-
- if(datayn !='Y'){
- submit("TXRTS00202");
- submit("TRRTS00201");
- }else{
- submit("TRRTS00201");
- }
-
- if(chk_yychang.value=='Y'){
- btn_grdadd.attribute("visibility")="visible";
- btn_grddel.attribute("visibility")="visible";
- grd_intntrnghospplanlist.colDisabled (4) = false;
- grd_intntrnghospplanlist.colDisabled (12) = false;
- grd_intntrnghospplanlist.colDisabled (72) = false;
- }else{
- btn_grdadd.attribute("visibility")="hidden";
- btn_grddel.attribute("visibility")="hidden";
- grd_intntrnghospplanlist.colDisabled (4) = true;
- grd_intntrnghospplanlist.colDisabled (12) = true;
- grd_intntrnghospplanlist.colDisabled (72) = true;
- }
-
- /* 사원별 rowcolor 표시*/
- var iYearv=cmb_refanual.value;
-
- if(cmb_passsbjcd.value == "2230000000" || cmb_passsbjcd.value.substring(0,3)=='224' && iYearv =='4'){
- iYearv ='3';
- }else{
- iYearv =iYearv;
- }
- var iYear = parseFloat(iYearv);
- var sColor = "#ffff99";
-
- icnt = 0;
- for(var i = grd_intntrnghospplanlist.fixedRows ; i < grd_intntrnghospplanlist.rows ; i++ )
- { var preststatcd = grd_intntrnghospplanlist.valueMatrix(i,grd_intntrnghospplanlist.colRef("preststatcd"));
- grd_intntrnghospplanlist.rowHeight(i) = 23;
-
- if(icnt % iYear == 0)
- {
- if(sColor == "#ffff99")
- { if(preststatcd =='4'){
- sColor="#ff99ff";
- }else{
- sColor = "#FFFFFF";
- }
- }
- else
- { if(preststatcd =='4'){
- sColor="#ff99ff";
- }else{
- sColor = "#ffff99";
- }
- }
- }
-
- grd_intntrnghospplanlist.rowStyle(i, "all", "background-color") = sColor;
-
- icnt ++;
- }
- var posdeptcd =grd_intntrnghospplanlist.valueMatrix(3,grd_intntrnghospplanlist.colRef("posdeptcd"));
- if(posdeptcd =="2230000000"){
- grd_intntrnghospplanlist.colAttribute(14,"maxlength")=2;
- grd_intntrnghospplanlist.colAttribute(15,"maxlength")=2;
- grd_intntrnghospplanlist.colAttribute(16,"maxlength")=2;
- grd_intntrnghospplanlist.colAttribute(17,"maxlength")=2;
- grd_intntrnghospplanlist.colAttribute(18,"maxlength")=2;
- grd_intntrnghospplanlist.colAttribute(19,"maxlength")=2;
- grd_intntrnghospplanlist.colAttribute(20,"maxlength")=2;
- grd_intntrnghospplanlist.colAttribute(21,"maxlength")=2;
- grd_intntrnghospplanlist.colAttribute(22,"maxlength")=2;
- grd_intntrnghospplanlist.colAttribute(23,"maxlength")=2;
- grd_intntrnghospplanlist.colAttribute(24,"maxlength")=2;
- grd_intntrnghospplanlist.colAttribute(25,"maxlength")=2;
- }
-
-
-
-
-
-
-
- /*for(var i = grd_intntrnghospplanlist.fixedRows ; i < grd_intntrnghospplanlist.rows ; i++ )
- { var posdeptcd=grd_intntrnghospplanlist.valueMatrix(i, grd_intntrnghospplanlist.colRef("posdeptcd"));
- if(posdeptcd=="2010000000" || posdeptcd=="2230000000"){
- grd_intntrnghospplanlist.colDisabled (42) = false;
- grd_intntrnghospplanlist.colDisabled (43) = false;
- grd_intntrnghospplanlist.colDisabled (44) = false;
- grd_intntrnghospplanlist.colDisabled (45) = false;
- grd_intntrnghospplanlist.colDisabled (46) = false;
- grd_intntrnghospplanlist.colDisabled (47) = false;
- }
- }*/
- ]]>
- </script>
- </button>
- <input id="input1" ref="/root/send/condition/edupasssbjcd" visibility="hidden" style="left:725px; top:65px; width:20px; height:19px; "/>
- <input id="input2" ref="/root/send/condition/eduinstcd" visibility="hidden" style="left:745px; top:65px; width:20px; height:19px; "/>
- <input id="ipt_guidmedispclinstnm" ref="/root/main/templist/guidmedispclinstnm" class="input_search" navindex="2" visibility="hidden" style="left:795px; top:65px; width:20px; height:19px; "/>
- <input id="ipt_guidmedispclinstcd" ref="/root/main/templist/guidmedispclinstcd" class="input_search" navindex="2" visibility="hidden" style="left:770px; top:65px; width:20px; height:19px; "/>
- <input id="ipt_drname" ref="/root/main/templist/drname" class="input_search" navindex="2" visibility="hidden" style="left:820px; top:65px; width:20px; height:19px; "/>
- <input id="ipt_dremplno" ref="/root/main/templist/guidmedispcldremplno" class="input_search" navindex="2" visibility="hidden" style="left:845px; top:65px; width:55px; height:19px; "/>
- <input id="input5" ref="/root/send/condition/plandatayn" class="input_search" navindex="2" visibility="hidden" style="left:675px; top:65px; width:20px; height:19px; "/>
- <input id="input6" ref="/root/temp/datayn" class="input_search" navindex="2" visibility="hidden" style="left:600px; top:65px; width:30px; height:19px; "/>
- <select id="chk_yychang" ref="/root/send/condition/yychangyn" class="checkbox_search" overflow="visible" appearance="full" cellspacing="5" cols="3" style="left:970px; top:36px; width:135px; height:16px; text-align:center; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/yychang">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(chk_yychang.value=='Y'){
- cmb_refanual.value="";
- cmb_refanual.disabled=true;
- }else{
- cmb_refanual.disabled=false;
- }
- ]]>
- </script>
- </select>
- <button id="btn_grddel" class="btn2_letter3" visibility="hidden" style="left:960px; top:65px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var d_row=grd_intntrnghospplanlist.row;
- var status = grd_intntrnghospplanlist.rowstatus(d_row);
- if (status == 4)
- {
- grd_intntrnghospplanlist.removeStatus(d_row,"delete");
- }
- else
- {
- if (misfCheckDeleteYN(grd_intntrnghospplanlist) == "Y")
- {
- // 1 : 초기 insert 한상태, 3 : insert한 Row를 Edit 한경우 3으로 변경됨
- if(status == 1 || status == 3)
- {
- grd_intntrnghospplanlist.deleteRow(d_row, true);
-
- }
- else
- {
- grd_intntrnghospplanlist.addStatus(d_row,"delete");
- }
- }
- }
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_grdadd" class="btn2_letter3" visibility="hidden" style="left:904px; top:65px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //grd_intntrnghospplanlist.addRow();
-
- if(grd_intntrnghospplanlist.rows <4 ){
- messageBox("수련년도를 변경할 전공의가 ","I004");
- return;
- }
- var p_row=grd_intntrnghospplanlist.row;
- grd_intntrnghospplanlist.insertRow(p_row,"below", "false", "true");
-
- var cur_row=grd_intntrnghospplanlist.row-2;
- var oldsupinfqurtyyflag = model.getValue("/root/main/intntrnghospplanlist["+(cur_row-1)+"]/oldsupinfqurtyyflag");
- var apprtcdrflag = model.getValue("/root/main/intntrnghospplanlist["+(cur_row-1)+"]/apprtcdrflag");
- var rregno = model.getValue("/root/main/intntrnghospplanlist["+(cur_row-1)+"]/rregno");
- var name = model.getValue("/root/main/intntrnghospplanlist["+(cur_row-1)+"]/name");
- var emplno = model.getValue("/root/main/intntrnghospplanlist["+(cur_row-1)+"]/emplno");
- var anual = model.getValue("/root/main/intntrnghospplanlist["+(cur_row-1)+"]/anual");
- var dremplno = model.getValue("/root/main/intntrnghospplanlist["+(cur_row-1)+"/dremplno");
- var guidmedispclinstcd = model.getValue("/root/main/intntrnghospplanlist["+(cur_row-1)+"]/guidmedispclinstcd");
- var posdeptcd = model.getValue("/root/main/intntrnghospplanlist["+(cur_row-1)+"]/posdeptcd");
- var posdeptnm = model.getValue("/root/main/intntrnghospplanlist["+(cur_row-1)+"]/posdeptnm");
- var drname = model.getValue("/root/main/intntrnghospplanlist["+(cur_row-1)+"]/drname");
- var yy = model.getValue("/root/main/intntrnghospplanlist["+(cur_row-1)+"]/yy");
- var trainplan = model.getValue("/root/main/intntrnghospplanlist["+(cur_row-1)+"]/trainplan");
- var armynm = model.getValue("/root/main/intntrnghospplanlist["+(cur_row-1)+"]/armynm");
- var guidmedispclinstnm = model.getValue("/root/main/intntrnghospplanlist["+(cur_row-1)+"]/guidmedispclinstnm");
- var traindept = model.getValue("/root/main/intntrnghospplanlist["+(cur_row-1)+"]/traindept");
- var mainguidhosp = model.getValue("/root/main/intntrnghospplanlist["+(cur_row-1)+"]/mainguidhosp");
- var guidmedispcldrlincno = model.getValue("/root/main/intntrnghospplanlist["+(cur_row-1)+"]/guidmedispcldrlincno");
- var trainedu = model.getValue("/root/main/intntrnghospplanlist["+(cur_row-1)+"]/trainedu");
- var supinfqurtyyflag = model.getValue("/root/main/intntrnghospplanlist["+(cur_row-1)+"]/supinfqurtyyflag");
- var passsbjcd = model.getValue("/root/main/intntrnghospplanlist["+(cur_row-1)+"]/passsbjcd");
- var apntinfono = model.getValue("/root/main/intntrnghospplanlist["+(cur_row-1)+"]/apntinfono");
- model.setValue("/root/main/intntrnghospplanlist["+cur_row+"]/oldsupinfqurtyyflag",oldsupinfqurtyyflag);
- model.setValue("/root/main/intntrnghospplanlist["+cur_row+"]/apprtcdrflag",apprtcdrflag);
- model.setValue("/root/main/intntrnghospplanlist["+cur_row+"]/rregno",rregno);
- model.setValue("/root/main/intntrnghospplanlist["+cur_row+"]/name",name);
- model.setValue("/root/main/intntrnghospplanlist["+cur_row+"]/emplno",emplno);
- model.setValue("/root/main/intntrnghospplanlist["+cur_row+"]/anual",anual);
- model.setValue("/root/main/intntrnghospplanlist["+cur_row+"]/dremplno",dremplno);
- model.setValue("/root/main/intntrnghospplanlist["+cur_row+"]/guidmedispclinstcd",guidmedispclinstcd);
- model.setValue("/root/main/intntrnghospplanlist["+cur_row+"]/posdeptcd",posdeptcd);
- model.setValue("/root/main/intntrnghospplanlist["+cur_row+"]/posdeptnm",posdeptnm);
- model.setValue("/root/main/intntrnghospplanlist["+cur_row+"]/drname",drname);
- model.setValue("/root/main/intntrnghospplanlist["+cur_row+"]/yy",yy);
- model.setValue("/root/main/intntrnghospplanlist["+cur_row+"]/trainplan",trainplan);
- model.setValue("/root/main/intntrnghospplanlist["+cur_row+"]/armynm",armynm);
- model.setValue("/root/main/intntrnghospplanlist["+cur_row+"]/guidmedispclinstnm",guidmedispclinstnm);
- model.setValue("/root/main/intntrnghospplanlist["+cur_row+"]/traindept",traindept);
- model.setValue("/root/main/intntrnghospplanlist["+cur_row+"]/mainguidhosp",mainguidhosp);
- model.setValue("/root/main/intntrnghospplanlist["+cur_row+"]/guidmedispcldrlincno",guidmedispcldrlincno );
- model.setValue("/root/main/intntrnghospplanlist["+cur_row+"]/trainedu",trainedu);
- model.setValue("/root/main/intntrnghospplanlist["+cur_row+"]/supinfqurtyyflag",supinfqurtyyflag);
- model.setValue("/root/main/intntrnghospplanlist["+cur_row+"]/demardeptcd",passsbjcd);
- model.setValue("/root/main/intntrnghospplanlist["+cur_row+"]/deaprdeptcd",passsbjcd);
- model.setValue("/root/main/intntrnghospplanlist["+cur_row+"]/demaydeptcd",passsbjcd);
- model.setValue("/root/main/intntrnghospplanlist["+cur_row+"]/dejundeptcd",passsbjcd);
- model.setValue("/root/main/intntrnghospplanlist["+cur_row+"]/dejuldeptcd",passsbjcd);
- model.setValue("/root/main/intntrnghospplanlist["+cur_row+"]/deaugdeptcd",passsbjcd);
- model.setValue("/root/main/intntrnghospplanlist["+cur_row+"]/desepdeptcd",passsbjcd);
- model.setValue("/root/main/intntrnghospplanlist["+cur_row+"]/deoctdeptcd",passsbjcd);
- model.setValue("/root/main/intntrnghospplanlist["+cur_row+"]/denovdeptcd",passsbjcd);
- model.setValue("/root/main/intntrnghospplanlist["+cur_row+"]/dedecdeptcd",passsbjcd);
- model.setValue("/root/main/intntrnghospplanlist["+cur_row+"]/dejandeptcd",passsbjcd);
- model.setValue("/root/main/intntrnghospplanlist["+cur_row+"]/defebdeptcd",passsbjcd);
- model.setValue("/root/main/intntrnghospplanlist["+cur_row+"]/apntinfono",apntinfono);
- grd_intntrnghospplanlist.rowHeight(p_row) = 23;
- //grd_intntrnghospplanlist.addStatus(p_row,"insert");
- ]]>
- </script>
- </button>
- <select1 id="cmb_refanual" ref="/root/send/condition/refanual" class="combo_s_essential" appearance="minimal" style="left:642px; top:35px; width:100px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_preststatcd" ref="/root/send/condition/preststatcd" class="combo_s_essential" appearance="minimal" style="left:863px; top:35px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/codelist/deptlist">
- <label ref="passsbjnm"/>
- <value ref="passsbjcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption5" class="search_name" style="left:770px; top:35px; width:109px; height:17px; ">근무상태 :</caption>
- <button id="btn_deptview" class="btn2_letter6" visibility="visible" style="left:20px; top:65px; width:78px; height:19px; ">
- <caption>과범례 view</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(cmb_passsbjcd.value=="2010000000"){
- deptGroup.attribute("popup") = "true";
- deptGroup.attribute("left") = window.screenLeft+15;
- deptGroup.attribute("top") = window.screenTop+135;
- deptGroup.visible = true;
- fmdeptGroup.visible = false;
- }else if(cmb_passsbjcd.value=="2230000000"){
- fmdeptGroup.attribute("popup") = "true";
- fmdeptGroup.attribute("left") = window.screenLeft+15;
- fmdeptGroup.attribute("top") = window.screenTop+135;
- deptGroup.visible = false;
- fmdeptGroup.visible = true;
- }
- instGroup.visible = false;
-
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter7" style="left:120px; top:65px; width:88px; height:19px; ">
- <caption>기관범례 view</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- instGroup.attribute("popup") = "true";
- instGroup.attribute("left") = window.screenLeft+120;
- instGroup.attribute("top") = window.screenTop+135;
- instGroup.visible = true;
- deptGroup.visible = false;
- ]]>
- </script>
- </button>
- <input id="input7" ref="/root/init/planmmcd" visibility="hidden" style="left:300px; top:65px; width:130px; height:20px; "/>
- <select id="checkbox1" ref="/root/init/chgcol/chgyn" overflow="visible" appearance="full" style="left:975px; top:10px; width:130px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>상하반기 컬럼조정</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- </group>
- <line id="line19" class="line_1" style="x1:0px; y1:95px; x2:1195px; y2:95px; "/>
- <button id="button16" class="btn5_letter8" visibility="hidden" style="left:1015px; top:75px; width:108px; height:19px; ">
- <caption>Excel자료Load</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("open", "", false);
- grd_intntrnghospplanlist.loadExcel(fileName);
-
- for (i=grd_intntrnghospplanlist.fixedRows; i<grd_intntrnghospplanlist.rows; i++)
- {
- grd_intntrnghospplanlist.rowStatus(i) = 1;
- }
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter4" style="left:1125px; top:75px; 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_intntrnghospplanlist.saveExcel(fileName, "exporttype:multi");
- }
- ]]>
- </script>
- </button>
- <multilinegrid id="grd_intntrnghospplanlist" nodeset="/root/main/intntrnghospplanlist" caption="old상하반기^전공의구분^주민번호^상
하
반
기^이름^사원번호^지도전문의사번^지도전문의기관코드^소속부서코드^전공과^지도전문의^년도^구분^3월^4월^5월^6월^7월^8월^9월^10월^11월^12월^1월^2월^현상태^old년도^채용정보번호^전공과코드^변경
여부|old상하반기^전공의구분^주민번호^상
하
반
기^이름^사원번호^지도전문의사번^지도전문의기관코드^소속부서코드^군보^근무병원^년도^구분^3월^4월^5월^6월^7월^8월^9월^10월^11월^12월^1월^2월^현상태^old년도^채용정보번호^전공과코드^변경
여부|old상하반기^전공의구분^주민번호^상
하
반
기^이름^사원번호^지도전문의사번^지도전문의기관코드^소속부서코드^주지도병원^사원번호^년차^구분^3월^4월^5월^6월^7월^8월^9월^10월^11월^12월^1월^2월^현상태^old년도^채용정보번호^전공과코드^변경
여부" colsep="^" colwidth="14, 10, 7, 26, 55, 65, 24, 26, 13, 77, 80, 47, 45, 70, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 23, 13, 21, 19, 40" ellipsis="true" rowheader="update" rowsep="|" tooltip="true" mergecellsfixedrows="bycolrec" style="left:0px; top:100px; width:1194px; height:644px; ">
- <row>
- <col ref="oldsupinfqurtyyflag" rowspan="3" visibility="hidden" style="text-align:center; "/>
- <col ref="apprtcdrflag" rowspan="3" visibility="hidden" style="text-align:center; "/>
- <col ref="rregno" rowspan="3" visibility="hidden" style="text-align:center; "/>
- <col id="supinfqurtyyflag" disabled="true" ref="supinfqurtyyflag" rowspan="3" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/supinfqurtyyflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="name" rowspan="3" style="text-align:center; "/>
- <col ref="emplno" rowspan="3" style="text-align:center; "/>
- <col ref="mainguidhosp" rowspan="3" visibility="hidden" style="text-align:center; "/>
- <col ref="guidmedispclinstcd" rowspan="3" visibility="hidden" style="text-align:center; "/>
- <col ref="posdeptcd" rowspan="3" visibility="hidden" style="text-align:center; "/>
- <col ref="posdeptnm" type="output" style="text-align:center; "/>
- <col ref="drname" type="inputbutton" style="text-align:center; "/>
- <col disabled="true" ref="yy" rowspan="2" type="input" format="yyyy" style="text-align:center; "/>
- <col ref="trainplan" style="height:25; text-align:center; "/>
- <col ref="mardeptcd" type="input" format="#,###" maxlength="2" style="text-align:center; "/>
- <col ref="aprdeptcd" type="input" format="#,###" maxlength="2" style="text-align:center; "/>
- <col ref="maydeptcd" type="input" format="#,###" maxlength="2" style="text-align:center; "/>
- <col ref="jundeptcd" type="input" format="#,###" maxlength="2" style="text-align:center; "/>
- <col ref="juldeptcd" type="input" format="#,###" maxlength="2" style="text-align:center; "/>
- <col ref="augdeptcd" type="input" format="#,###" maxlength="2" style="text-align:center; "/>
- <col ref="sepdeptcd" type="input" format="#,###" maxlength="2" style="text-align:center; "/>
- <col ref="octdeptcd" type="input" format="#,###" maxlength="2" style="text-align:center; "/>
- <col ref="novdeptcd" type="input" format="#,###" maxlength="2" style="text-align:center; "/>
- <col ref="decdeptcd" type="input" format="#,###" maxlength="2" style="text-align:center; "/>
- <col ref="jandeptcd" type="input" format="#,###" maxlength="2" style="text-align:center; "/>
- <col ref="febdeptcd" type="input" format="#,###" maxlength="2" style="text-align:center; "/>
- <col ref="preststatcd" rowspan="3" visibility="hidden" style="text-align:center; "/>
- <col ref="oldyy" rowspan="3" visibility="hidden" style="text-align:center; "/>
- <col ref="apntinfono" rowspan="3" visibility="hidden" style="text-align:center; "/>
- <col ref="passsbjcd" rowspan="3" visibility="hidden" style="text-align:center; "/>
- <col checkvalue="Y,N" ref="trainyychangyn" rowspan="3" type="checkbox"/>
- </row>
- <row>
- <col ref="armynm" style="text-align:center; "/>
- <col ref="guidmedispclinstnm" style="text-align:center; "/>
- <col ref="traindept" style="height:25; text-align:center; "/>
- <col imemode="alpha" ref="demardeptcd" type="input" format="LL" maxlength="2" style="text-align:center; "/>
- <col imemode="alpha" ref="deaprdeptcd" type="input" format="LL" maxlength="2" style="text-align:center; "/>
- <col imemode="alpha" ref="demaydeptcd" type="input" format="LL" maxlength="2" style="text-align:center; "/>
- <col imemode="alpha" ref="dejundeptcd" type="input" format="LL" maxlength="2" style="text-align:center; "/>
- <col imemode="alpha" ref="dejuldeptcd" type="input" format="LL" maxlength="2" style="text-align:center; "/>
- <col imemode="alpha" ref="deaugdeptcd" type="input" format="LL" maxlength="2" style="text-align:center; "/>
- <col imemode="alpha" ref="desepdeptcd" type="input" format="LL" maxlength="2" style="text-align:center; "/>
- <col imemode="alpha" ref="deoctdeptcd" type="input" format="LL" maxlength="2" style="text-align:center; "/>
- <col imemode="alpha" ref="denovdeptcd" type="input" format="LL" maxlength="2" style="text-align:center; "/>
- <col imemode="alpha" ref="dedecdeptcd" type="input" format="LL" maxlength="2" style="text-align:center; "/>
- <col imemode="alpha" ref="dejandeptcd" type="input" format="LL" maxlength="2" style="text-align:center; "/>
- <col imemode="alpha" ref="defebdeptcd" type="input" format="LL" maxlength="2" style="text-align:center; "/>
- </row>
- <row>
- <col ref="mainguidhospnm" style="text-align:center; "/>
- <col ref="guidmedispcldremplno" style="text-align:center; "/>
- <col ref="anual" type="input" format="#,###" maxlength="1" style="text-align:center; "/>
- <col ref="trainedu" style="text-align:center; "/>
- <col disabled="true" ref="edmardeptcd" type="input" maxlength="6" style="text-align:center; background-image:../../../com/commonweb/images/icon_btn.gif; background-position:center right; "/>
- <col disabled="true" ref="edaprdeptcd" type="inputbutton" maxlength="6" style="text-align:center; background-image:../../../com/commonweb/images/icon_btn.gif; background-position:center right; "/>
- <col disabled="true" ref="edmaydeptcd" type="inputbutton" maxlength="6" style="text-align:center; background-image:../../../com/commonweb/images/icon_btn.gif; background-position:center right; "/>
- <col ref="edjundeptcd" type="inputbutton" maxlength="6" style="text-align:center; background-image:../../../com/commonweb/images/icon_btn.gif; background-position:center right; "/>
- <col ref="edjuldeptcd" type="inputbutton" style="text-align:center; background-image:../../../com/commonweb/images/icon_btn.gif; background-position:center right; "/>
- <col ref="edaugdeptcd" type="inputbutton" style="text-align:center; background-image:../../../com/commonweb/images/icon_btn.gif; background-position:center right; "/>
- <col ref="edsepdeptcd" type="inputbutton" style="text-align:center; background-image:../../../com/commonweb/images/icon_btn.gif; background-position:center right; "/>
- <col ref="edoctdeptcd" type="inputbutton" style="text-align:center; background-image:../../../com/commonweb/images/icon_btn.gif; background-position:center right; "/>
- <col ref="ednovdeptcd" type="inputbutton" style="text-align:center; background-image:../../../com/commonweb/images/icon_btn.gif; background-position:center right; "/>
- <col ref="eddecdeptcd" type="inputbutton" style="text-align:center; background-image:../../../com/commonweb/images/icon_btn.gif; background-position:center right; "/>
- <col ref="edjandeptcd" type="inputbutton" style="text-align:center; background-image:../../../com/commonweb/images/icon_btn.gif; background-position:center right; "/>
- <col ref="edfebdeptcd" type="inputbutton" style="text-align:center; background-image:../../../com/commonweb/images/icon_btn.gif; background-position:center right; "/>
- </row>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- fmisEmpButtonClick(grd_intntrnghospplanlist.col);
- grd_intntrnghospplanlist.dispatch("onmouseup");
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fmisButtonClick(grd_intntrnghospplanlist.col);
- grd_intntrnghospplanlist.dispatch("onmouseup");
- ]]>
- </script>
- </multilinegrid>
- <group id="fmdeptGroup" visibility="hidden" popup="true" style="left:0px; top:255px; width:315px; height:415px; border-color:#666666; border-width:1px; border-style:solid; ">
- <caption id="caption8" style="left:4px; top:4px; width:165px; height:399px; font-family:돋움; font-weight:bold; vertical-align:middle; line-spacing:5; ">
- <![CDATA[*MD :내과
- *MI : 감염내과
- *ME : 내분비내과
- *MR : 류마티스내과
- *MG : 소화기내과
- *MC : 순환기(심장)내과
- *MN : 신장내과
- *MO : 종양내과
- *MH : 혈액내과
- *MB : 혈액종양내과
- *MP : 호흡기내과
- *PD : 소아청소년과
- *NU : 신경과
- *PY : 정신과
- *DR : 피부과
- *GS : 외과
- *CS : 흉부외과
- *OS : 정형외과
- *NS : 신경외과
- ]]>
- </caption>
- <button id="button6" class="btn2_letter2" style="left:239px; top:379px; width:42px; height:19px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fmdeptGroup.visible = false;
- ]]>
- </script>
- </button>
- <caption id="caption10" style="left:159px; top:4px; width:145px; height:370px; font-family:돋움; font-weight:bold; vertical-align:middle; line-spacing:5; ">
- <![CDATA[*PS : 성형외과
- *GY : 산부인과
- *EY : 안과
- *ET : 이비인후과
- *UR : 비뇨기과
- *RM : 재활의학과
- *AN : 마취통증의학과
- *RD : 영상의학과
- *RT : 방사선종양학과
- *NM : 핵의학과
- *CP : 임상병리과
- *AP : 해부병리과
- *FM : 가정의학과
- *ER : 응급의학과
- *OM : 산업의학과
- *DT : 치과
- *PT : 보철과
- *OT : 구강외과
- *OD : 교정과]]>
- </caption>
- </group>
- </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" 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;
- }
-
- if(!checkRequiredColumn("grd_intntrnghospplanlist"))return;
- var plandatayn=model.getValue("/root/send/condition/plandatayn");
- if(plandatayn == "N"){
- for (var i = grd_intntrnghospplanlist.fixedRows; i < grd_intntrnghospplanlist.rows; i++ ) {
- grd_intntrnghospplanlist.addStatus(i,"insert");
- }
- }
- if(!fsaveCheckValue())return;
- misfSave("TXRTS00201");
- model.setValue("/root/send/condition/plandatayn",'Y');
- ]]>
- </script>
- </button>
- </group>
- <group id="eduGroup" visibility="hidden" popup="true" style="left:275px; top:290px; width:230px; height:295px; border-color:#666666; border-width:1px; border-style:solid; ">
- <datagrid id="grd_instedulist" nodeset="/root/main/eduplanlist" caption="교육코드^교육명" colsep="^" colwidth="58, 123, 100, 100, 100" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:-1px; width:219px; height:255px; ">
- <col ref="educcd"/>
- <col ref="educnm"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="anual" visibility="hidden"/>
- <col ref="deptcd" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if( grd_instedulist.isCell(event.target) && grd_instedulist.row >= grd_instedulist.fixedRows )
- { var planmmcd = model.getValue("/root/init/planmmcd");
- var cur_row = grd_instedulist.row;
-
- var par_row = model.getValue("/root/init/parentidx");
- var cdid = grd_instedulist.valueMatrix(grd_instedulist.row, grd_instedulist.colRef("educcd"));
- grd_intntrnghospplanlist.valueMatrix(par_row, grd_intntrnghospplanlist.colRef(planmmcd))=cdid;
- }
- if(planmmcd=="edmardeptcd"){
- str_col=74;
- }else if(planmmcd=="edaprdeptcd"){
- str_col=75;
- }else if(planmmcd =="edmaydeptcd"){
- str_col=76;
- }else if(planmmcd =="edjundeptcd"){
- str_col=77;
- }else if(planmmcd =="edjuldeptcd"){
- str_col=78;
- }else if(planmmcd =="edaugdeptcd"){
- str_col=79;
- }else if(planmmcd =="edsepdeptcd"){
- str_col=80;
- }else if(planmmcd =="edoctdeptcd"){
- str_col=81;
- }else if(planmmcd =="ednovdeptcd"){
- str_col=82;
- }else if(planmmcd =="eddecdeptcd"){
- str_col=83;
- }else if(planmmcd =="edjandeptcd"){
- str_col=84;
- }else if(planmmcd =="edfebdeptcd"){
- str_col=85;
- }
-
-
- str_col=str_col+1;
- if(str_col==86){
- misfGridInit(grd_instedulist);
- eduGroup.visible = false;
-
- }
- fmisButtonClick(str_col);
- grd_instedulist.dispatch("onmouseup");
- ]]>
- </script>
- </datagrid>
- <button id="button2" class="btn2_letter2" style="left:154px; top:264px; width:42px; height:19px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridInit(grd_instedulist);
- eduGroup.visible = false;
- ]]>
- </script>
- </button>
- </group>
- <group id="deptGroup" visibility="hidden" popup="true" style="left:5px; top:270px; width:170px; height:235px; border-color:#666666; border-width:1px; border-style:solid; ">
- <caption id="schedulerCaption" style="left:4px; top:-1px; width:160px; height:210px; font-family:돋움; font-weight:bold; vertical-align:middle; line-spacing:5; ">
- <![CDATA[*MI : 감염내과
- *ME : 내분비내과
- *MR : 류마티스내과
- *MG : 소화기내과
- *MC : 순환기(심장)내과
- *MN : 신장내과
- *MO : 종양내과
- *MH : 혈액내과
- *MB : 혈액종양내과
- *MP : 호흡기내과 ]]>
- </caption>
- <button id="button4" class="btn2_letter2" style="left:94px; top:204px; width:42px; height:19px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- deptGroup.visible = false;
- ]]>
- </script>
- </button>
- </group>
- <group id="instGroup" visibility="hidden" popup="true" style="left:40px; top:275px; width:170px; height:275px; border-color:#666666; border-width:1px; border-style:solid; ">
- <caption id="caption7" style="left:4px; top:-1px; width:160px; height:247px; font-family:돋움; font-weight:bold; vertical-align:middle; line-spacing:5; ">
- <![CDATA[* 1 : 성모병원
- * 2 : 강남성모병원
- * 3 : 의정부성모병원
- * 4 : 성가병원
- * 5 : 성바오로병원
- * 6 : 성모자애병원
- * 7 : 성빈센트병원
- * 8 : 대전성모병원
- * 9 : 청주성모병원
- *21 : 강릉동인병원
- *22 : 대림성모
- *23 : 보바스병원
- *24 : 예산명지병원]]>
- </caption>
- <button id="button5" class="btn2_letter2" style="left:94px; top:250px; width:42px; height:19px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- instGroup.visible = false;
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|