123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473 |
- <?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>
- <rpsmeduclist/>
- <rpsmeducdetaillist/>
- <rpsdedsflist/>
- <rpsdedsfdetaillist/>
- </main>
- <send>
- <codeflag/>
- <senddetail>
- <rpsmeduclist>
- <codeflag/>
- <code/>
- </rpsmeduclist>
- <rpsdedsflist>
- <codeflag/>
- <code/>
- </rpsdedsflist>
- </senddetail>
- </send>
- <init/>
- <temp/>
- <save>
- <rpsmeduclist/>
- <rpsmeducdetaillist/>
- <rpsdedsflist/>
- <rpsdedsfdetaillist/>
- </save>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fCheckAuth();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //========================================================================================
- //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
- //========================================================================================
- function fCheckAuth() {
- misfGetUserAuth();
-
- if( DUTY_EDU_YN == 'Y' || getUserInfo("dutplcecd") == "4020503000" ) {
- if( getUserInfo("dutplcecd") == "4020503000" ) {
- btn_save1.disabled = !checkAuth("X") ;
- btn_save2.disabled = !checkAuth("X") ;
- btn_save3.disabled = !checkAuth("X") ;
- btn_save4.disabled = !checkAuth("X") ;
- }
- else {
- cap_message.visible = false;
- btn_save3.disabled = !checkAuth("X") ;
- btn_save4.disabled = !checkAuth("X") ;
- }
- finit();
- }
- else {
- messageBox("사용권한이 없습니다. 서울성모 인사팀 교육Unit으로 문의하세요.","C999");
-
- btn_save1.disabled = true;
- btn_save2.disabled = true;
- btn_save3.disabled = true;
- btn_save4.disabled = true;
- }
- }
- ]]>
- </script>
- <submission id="TXRPS03201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/save/rpsmeduclist" resultref="/root/temp"/>
- <submission id="TRRPS03201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rpsmeduclist"/>
- <submission id="TRRPS03202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/senddetail/rpsmeduclist" resultref="/root/main/rpsmeducdetaillist"/>
- <submission id="TXRPS03203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/save/rpsdedsflist" resultref="/root/temp"/>
- <submission id="TRRPS03203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rpsdedsflist"/>
- <submission id="TRRPS03204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/senddetail/rpsdedsflist" resultref="/root/main/rpsdedsfdetaillist"/>
- <submission id="TXRPS03202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/save/rpsmeducdetaillist" resultref="/root/temp"/>
- <submission id="TXRPS03204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/save/rpsdedsfdetaillist" resultref="/root/temp"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/educationmngtweb/js/RPS001.js"/>
- <script type="javascript">
- <![CDATA[
- function finit()
- {
- /* Grid 초기화 */
- misfGridInit(grd_rpsmeduclist);
- misfGridInit(grd_rpsmeducdetaillist);
- misfGridInit(grd_rpsdedsflist);
- misfGridInit(grd_rpsdedsfdetaillist);
-
- submit("TRRPS03201");
- model.setValue("/root/send/senddetail/rpsmeduclist/codeflag","M01");
- model.setValue("/root/send/senddetail/rpsmeduclist/code","001");
- submit("TRRPS03202");
- submit("TRRPS03203");
- model.setValue("/root/send/senddetail/rpsdedsflist/codeflag","S01");
- model.setValue("/root/send/senddetail/rpsdedsflist/code","001");
- submit("TRRPS03204");
- model.refresh();
- }
-
- //세부항목 List 가 있으면 그룹명을 삭제 할수 없게 제어.
- function fCheckGrdDetail()
- {
- if( grd_rpsmeducdetaillist.fixedRows == grd_rpsmeducdetaillist.rows)
- {
- btn_del.disabled = false;
- }
- else{
- btn_del.disabled = true;
- }
- }
-
- function fCheckGrdSfDetail()
- {
- if(grd_rpsdedsfdetaillist.fixedRows == grd_rpsdedsfdetaillist.rows)
- {
- btn_del1.disabled = false;
- }
- else{
- btn_del1.disabled = true;
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-right:8; ">
- <group id="group1" style="left:0px; top:0px; width:1195; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:160px; height:14px; ">교육코드관리</caption>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:742px; ">
- <switch id="switch1" style="left:0px; top:23px; width:1190px; height:692px; ">
- <case id="case1" selected="true">
- <line id="line8" class="line_1" style="x1:0px; y1:25px; x2:448px; y2:26px; "/>
- <button id="btn_detailadd" class="btn2_letter3" disabled="true" style="left:1077px; top:3px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_rpsmeducdetaillist, "A");
-
- // 세부항목 key 값 설정.
- grd_rpsmeducdetaillist.valueMatrix(grd_rpsmeducdetaillist.row, grd_rpsmeducdetaillist.colRef("code")) = grd_rpsmeduclist.valueMatrix(grd_rpsmeduclist.row, grd_rpsmeduclist.colRef("code"));
-
- //세부항목 List 가 있으면 그룹명을 삭제 할수 없게 제어.
- fCheckGrdDetail();
-
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption20" class="tit_2" style="left:5px; top:9px; width:169px; height:14px; ">기초코드</caption>
- <button id="btn_del" class="btn2_letter3" disabled="true" style="left:396px; top:3px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fRow = grd_rpsmeduclist.row;
-
- misfGridIUD(grd_rpsmeduclist, "D");
-
- //삭제시 행이 없어지면 세부 항목List를 다시 조회. 세부항목 data 유무를 확인하기 위함.
- if(fRow != grd_rpsmeduclist.row)
- {
- grd_rpsmeduclist.dispatch("onrowchanged");
- }
-
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption1" class="tit_2" style="left:460px; top:9px; width:169px; height:13px; ">세부 항목 List</caption>
- <line id="line1" class="line_1" style="x1:457px; y1:25px; x2:1185px; y2:24px; "/>
- <button id="btn_detaildel" class="btn2_letter3" disabled="true" style="left:1132px; top:3px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_rpsmeducdetaillist, "D");
-
- //세부항목 List 가 있으면 그룹명을 삭제 할수 없게 제어.
- fCheckGrdDetail();
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_add" class="btn2_letter3" style="left:341px; top:3px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_rpsmeduclist, "A");
-
- misfGridInit(grd_rpsmeducdetaillist);
-
-
- btn_detailadd.disabled = true;
- btn_detaildel.disabled = true;
-
- //세부항목 List 가 있으면 그룹명을 삭제 할수 없게 제어.
- fCheckGrdDetail();
-
- model.refresh();
- ]]>
- </script>
- </button>
- <datagrid id="grd_rpsmeducdetaillist" nodeset="/root/main/rpsmeducdetaillist" caption="Code^Detail Code^사용여부^Code Name^Code flag" colsep="^" colwidth="88, 100, 100, 337, 100" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:455px; top:28px; width:733px; height:657px; ">
- <col class="input_s_essential" ref="code" visibility="hidden" style="text-align:right; "/>
- <col ref="codedetl" type="input" visibility="hidden" style="text-align:right; "/>
- <col checkvalue="Y,N" ref="useyn" type="checkbox"/>
- <col class="input_s_essential" ref="codenm" type="input" style="text-align:left; "/>
- <col ref="codeflag" visibility="hidden"/>
- </datagrid>
- <datagrid id="grd_rpsmeduclist" nodeset="/root/main/rpsmeduclist" caption="Code^Code Name^사용여부^Code flag" colsep="^" colwidth="88, 320, 60, 66" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:29px; width:450px; height:657px; ">
- <col ref="code" type="input" visibility="hidden" style="text-align:right; "/>
- <col class="input_s_essential" ref="codenm" type="input" style="text-align:left; "/>
- <col checkvalue="Y,N" ref="useyn" type="checkbox"/>
- <col ref="codeflag" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- grd_rpsmeduclist.dispatch("onmouseup");
-
- if(grd_rpsmeduclist.row < grd_rpsmeduclist.fixedRows)
- {
- btn_detailadd.disabled = true;
- btn_detaildel.disabled = true;
- }else if(grd_rpsmeduclist.rowStatus(grd_rpsmeduclist.row) == 1 )
- {
- btn_detailadd.disabled = true;
- btn_detaildel.disabled = true;
- }else{
- btn_detailadd.disabled = false;
- btn_detaildel.disabled = false;
- }
-
- model.copyNode("/root/send/senddetail/rpsmeduclist", grd_rpsmeduclist.attribute("nodeset") + "[" + grd_rpsmeduclist.row + "]" );
-
- submit("TRRPS03202");
-
- //세부항목 List 가 있으면 그룹명을 삭제 할수 없게 제어.
- fCheckGrdDetail();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_rpsmeduclist.row < grd_rpsmeduclist.fixedRows)
- {
- btn_detailadd.disabled = true;
- btn_detaildel.disabled = true;
- }else{
-
- btn_detailadd.disabled = false;
- btn_detaildel.disabled = false;
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_save1" class="btn4_letter2" style="left:276px; top:1px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( checkKeyColumn("grd_rpsmeduclist") == false) return;
- var temp =grd_rpsmeduclist.getUpdateData();
- model.setValue("/root/save/rpsmeduclist",temp) ;
- if( submit("TXRPS03201") ){
- submit("TRRPS03201");
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="btn_save2" class="btn4_letter2" style="left:1015px; top:1px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( checkKeyColumn("grd_rpsmeducdetaillist") == false) return;
-
- var temp =grd_rpsmeducdetaillist.getUpdateData();
- model.setValue("/root/save/rpsmeducdetaillist",temp) ;
- if( submit("TXRPS03202") ) {
- submit("TRRPS03202");
- model.refresh();
- }
- ]]>
- </script>
- </button>
- </case>
- <case id="case2" style="left:0px; top:0px; width:1188px; height:690px; ">
- <line id="line2" class="line_1" style="x1:0px; y1:25px; x2:448px; y2:24px; "/>
- <button id="btn_detailadd1" class="btn2_letter3" disabled="true" style="left:1077px; top:3px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_rpsdedsfdetaillist, "A");
-
- // 세부항목 key 값 설정.
- grd_rpsdedsfdetaillist.valueMatrix(grd_rpsdedsfdetaillist.row, grd_rpsdedsfdetaillist.colRef("code")) = grd_rpsdedsflist.valueMatrix(grd_rpsdedsflist.row, grd_rpsdedsflist.colRef("code"));
-
- //세부항목 List 가 있으면 그룹명을 삭제 할수 없게 제어.
- fCheckGrdSfDetail();
-
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption2" class="tit_2" style="left:5px; top:9px; width:169px; height:14px; ">만족도</caption>
- <caption id="caption3" class="tit_2" style="left:460px; top:9px; width:169px; height:14px; ">만족도 세부항목</caption>
- <button id="btn_del1" class="btn2_letter3" disabled="true" style="left:396px; top:3px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fRow = grd_rpsdedsflist.row;
-
- misfGridIUD(grd_rpsdedsflist, "D");
-
- //삭제시 행이 없어지면 세부 항목List를 다시 조회. 세부항목 data 유무를 확인하기 위함.
- if(fRow != grd_rpsdedsflist.row)
- {
- grd_rpsdedsflist.dispatch("onrowchanged");
- }
-
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line3" class="line_1" style="x1:456px; y1:25px; x2:1184px; y2:24px; "/>
- <button id="btn_detaildel1" class="btn2_letter3" disabled="true" style="left:1132px; top:3px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_rpsdedsfdetaillist, "D");
-
- //세부항목 List 가 있으면 그룹명을 삭제 할수 없게 제어.
- fCheckGrdSfDetail();
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_add1" class="btn2_letter3" style="left:341px; top:3px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_rpsdedsflist, "A");
-
- misfGridInit(grd_rpsdedsfdetaillist);
-
-
- btn_detailadd1.disabled = true;
- btn_detaildel1.disabled = true;
-
- //세부항목 List 가 있으면 그룹명을 삭제 할수 없게 제어.
- fCheckGrdDetail();
-
- model.refresh();
- ]]>
- </script>
- </button>
- <datagrid id="grd_rpsdedsflist" nodeset="/root/main/rpsdedsflist" caption="Code^Code Name^사용여부^Code flag" colsep="^" colwidth="88, 320, 60, 100" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:28px; width:450px; height:657px; ">
- <col class="input_s_essential" ref="code" type="input" visibility="hidden" style="text-align:right; "/>
- <col class="input_s_essential" ref="codenm" type="input" style="text-align:left; "/>
- <col checkvalue="Y,N" ref="useyn" type="checkbox"/>
- <col ref="codeflag" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- grd_rpsdedsflist.dispatch("onmouseup");
-
- if(grd_rpsdedsflist.row < grd_rpsdedsflist.fixedRows)
- {
- btn_detailadd1.disabled = true;
- btn_detaildel1.disabled = true;
- }else if(grd_rpsdedsflist.rowStatus(grd_rpsdedsflist.row) == 1 )
- {
- btn_detailadd1.disabled = true;
- btn_detaildel1.disabled = true;
- }else{
- btn_detailadd1.disabled = false;
- btn_detaildel1.disabled = false;
- }
-
- model.copyNode("/root/send/senddetail/rpsdedsflist", grd_rpsdedsflist.attribute("nodeset") + "[" + grd_rpsdedsflist.row + "]" );
-
- submit("TRRPS03204");
- model.refresh();
-
- //세부항목 List 가 있으면 그룹명을 삭제 할수 없게 제어.
- fCheckGrdSfDetail();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_rpsdedsflist.row < grd_rpsdedsflist.fixedRows)
- {
- btn_detailadd1.disabled = true;
- btn_detaildel1.disabled = true;
- }else{
-
- btn_detailadd1.disabled = false;
- btn_detaildel1.disabled = false;
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_rpsdedsfdetaillist" nodeset="/root/main/rpsdedsfdetaillist" caption="Code^Detail Code^사용여부^Code Name^Code flag" colsep="^" colwidth="88, 100, 100, 337, 100" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:455px; top:28px; width:733px; height:657px; ">
- <col class="input_s_essential" ref="code" visibility="hidden" style="text-align:right; "/>
- <col ref="codedetl" type="input" visibility="hidden" style="text-align:right; "/>
- <col checkvalue="Y,N" ref="useyn" type="checkbox"/>
- <col class="input_s_essential" ref="codenm" type="input" style="text-align:left; "/>
- <col ref="codeflag" visibility="hidden"/>
- </datagrid>
- <button id="btn_save3" class="btn4_letter2" style="left:275px; top:1px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( checkKeyColumn("grd_rpsdedsflist") == false) return;
- for( var idx = grd_rpsdedsflist.fixedRows; idx < grd_rpsdedsflist.rows; idx++ ) {
- if( grd_rpsdedsflist.valueMatrix(idx,grd_rpsdedsflist.colRef("codenm")) == "" ) {
- messageBox("코드명은 필수입력입니다.","I999");
- return;
- }
- }
-
- var temp =grd_rpsdedsflist.getUpdateData();
- model.setValue("/root/save/rpsdedsflist",temp) ;
- if( submit("TXRPS03203") ) {
- submit("TRRPS03203");
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="btn_save4" class="btn4_letter2" style="left:1010px; top:1px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( checkKeyColumn("grd_rpsdedsfdetaillist") == false) return;
- for( var idx = grd_rpsdedsfdetaillist.fixedRows; idx < grd_rpsdedsfdetaillist.rows; idx++ ) {
- if( grd_rpsdedsfdetaillist.valueMatrix(idx,grd_rpsdedsfdetaillist.colRef("codenm")) == "" ) {
- messageBox("코드명은 필수입력입니다.","I999");
- return;
- }
- }
-
- var temp =grd_rpsdedsfdetaillist.getUpdateData();
- model.setValue("/root/save/rpsdedsfdetaillist",temp) ;
- if( submit("TXRPS03204") ) {
- submit("TRRPS03204");
- model.refresh();
- }
- ]]>
- </script>
- </button>
- </case>
- </switch>
- <button id="button5" class="btn_sw" group="tab_1" selected="true" style="left:0px; top:3px; width:100px; height:22px; ">
- <caption>기초코드</caption>
- <toggle case="case1" ev:event="onclick"/>
- </button>
- <button id="button6" class="btn_sw" group="tab_1" style="left:100px; top:3px; width:100px; height:22px; ">
- <caption>만족도</caption>
- <toggle case="case2" ev:event="onclick"/>
- </button>
- <caption id="cap_message" visibility="hidden" style="left:365px; top:3px; width:655px; height:20px; font-weight:bold; color:#ff0000; ">* 기초코드는 서울성모병원 인사팀 교육Unit 에서만 관리합니다. 필요한 사항은 교육Unit으로 문의하세요.</caption>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195; height:27px; "/>
- </xhtml:body>
- </xhtml:html>
|