123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400 |
- <?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>
- <detlschemngtlist/>
- </main>
- <send>
- <scheflag/>
- <detlschemngtlist/>
- <deptcd/>
- <init>
- <scheunit>MD</scheunit>
- <schefrom/>
- <scheto/>
- </init>
- </send>
- <init>
- <label>근무성적입력기간</label>
- <value>01</value>
- <label>수련계획입력기간</label>
- <value>02</value>
- <label>사랑나눔교육일정관리</label>
- <value>03</value>
- <label>문제은행채용실기문항등록</label>
- <value>04</value>
- <label>인턴수련인원정보</label>
- <value>05</value>
- </init>
- <temp>
- </temp>
- </root>
- </instance>
- <submission id="TRRTC00302" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/deptcond"/>
- <submission id="TRRTC01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/detlschemngtlist"/>
- <submission id="TXRTC01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/detlschemngtlist" resultref="/root/temp"/>
- <submission id="TRRTS00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqint" resultref="/root/main/tisorddeptcdlist"/>
- </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[
- /*
- 일정구분에 의해서 일정세부코드가 바뀐다. 부서코드가 될수도 있고 직종이 될수도 있다.
- 일정세부코드의 명칭을 가지고 오기위해서는 쿼리쪽에서 동적으로 조인 테이블을 조정해줘야한다
- TF단에서도 일정세부코드를 직업 그리드에 입력하는 방식이 아니라 그리드를 클릭했을시
- 팝업이나 콤보활성화를 시켜 선택후 그리드에 입력하는 방식으로 해야한다. 단 이때도 역시 일정구분에 의해서 팝업창이나 콤보의 값이 동적으로 바껴야한다.
- */
- //사용자 권한
- fCheckAuth();
- submit("TRRTS00602");
-
- misfGridInit(grd_detlschemngtlist);
-
- misfMsterDetailSet(grd_detlschemngtlist, null, "TRRTC01501", "Y");
-
- model.refresh();
-
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //========================================================================================
- //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
- //========================================================================================
- function fCheckAuth() {
- btn_search.disabled =!checkAuth("R") ;
- btn_save.disabled = !checkAuth("X") ;
- }
-
- function fGridSetting(firstrow, lastrow, flag){
-
- var sScheunit = grd_detlschemngtlist.valueMatrix(grd_detlschemngtlist.row, grd_detlschemngtlist.colRef("scheunit"));
-
- for(var i=firstrow ; i < lastrow ; i++)
- {
- if(sScheunit == "MD")
- {
- grd_detlschemngtlist.cellFormat(i, grd_detlschemngtlist.colRef("schefrom")) = "mm-dd";
- grd_detlschemngtlist.cellFormat(i, grd_detlschemngtlist.colRef("scheto")) = "mm-dd";
- }
- else if(sScheunit == "YMD")
- {
- grd_detlschemngtlist.cellFormat(i, grd_detlschemngtlist.colRef("schefrom")) = "yyyy-mm-dd";
- grd_detlschemngtlist.cellFormat(i, grd_detlschemngtlist.colRef("scheto")) = "yyyy-mm-dd";
- }
- }
- if(flag)
- {
- grd_detlschemngtlist.valueMatrix(firstrow, grd_detlschemngtlist.colRef("schefrom")) = '';
- grd_detlschemngtlist.valueMatrix(firstrow, grd_detlschemngtlist.colRef("scheto")) = '';
- }
-
- }
-
- function fControlVisible(num, check) {
-
-
- if(num == 1 || num == 2 || num == 3 || num == 4 || num == 5)
- {
- cap_deptcd_search.visible = check;
- cmb_deptcd_search.visible = check;
- }
- else if(num == 0)
- {
- cap_deptcd_search.visible = check;
- cmb_deptcd_search.visible = check;
- }
- }
-
- ]]>
- </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; ">TIS세부일정관리</caption>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
- <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_scheflag" class="search_name" style="left:15px; top:19px; width:99px; height:17px; ">일정 구분 :</caption>
- <button id="btn_search" class="btn1_letter2" navindex="3" style="left:1125px; top:16px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("cmb_scheflag"))return;
-
- var updtdata = getGridUpdateData(grd_detlschemngtlist);
-
- if ( updtdata != "")
- {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
-
- if (ret == 7) { // not OK
- return;
- }
- }
-
- misfMsterDetailRetrieve();
-
- misfSetReadOnlyCol(grd_detlschemngtlist, "schedetlcd", true);
-
- fGridSetting(1, grd_detlschemngtlist.rows, false);
-
- fControlVisible(0,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:1190; y2:69px; "/>
- <button id="btn_grddel" class="btn2_letter3" style="left:1139px; top:49px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_detlschemngtlist, "D");
- fControlVisible(0,false);
- ]]>
- </script>
- </button>
- <button id="btn_grdadd" class="btn2_letter3" style="left:1085px; top:49px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("cmb_scheflag"))return;
- misfGridIUD(grd_detlschemngtlist, "A");
- fControlVisible(0,false);
- ]]>
- </script>
- </button>
- <select1 id="cmb_scheflag" ref="/root/send/scheflag" navindex="1" appearance="minimal" style="left:105px; top:18; width:150px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <datagrid id="grd_detlschemngtlist" nodeset="/root/main/detlschemngtlist" caption="일정구분^일정세부코드^일정세부명^일정단위^일정시작^일정종료" colsep="^" colwidth="200, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:75px; width:1195; height:660; ">
- <col ref="scheflag" type="combo">
- <choices>
- <itemset nodeset="/root/init">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="schedetlcd" visibility="hidden" _key="true"/>
- <col ref="deptnm" _key="true"/>
- <col ref="scheunit" type="combo" visibility="visible">
- <choices>
- <item>
- <label>MD</label>
- <value>MD</value>
- </item>
- <item>
- <label>YMD</label>
- <value>YMD</value>
- </item>
- </choices>
- </col>
- <col ref="schefrom" type="input" format="yyyy-mm-dd"/>
- <col ref="scheto" type="input" format="yyyy-mm-dd"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- cmb_deptcd_search.value = "";
-
- var sScheflag = grd_detlschemngtlist.valueMatrix(grd_detlschemngtlist.row, grd_detlschemngtlist.colRef("scheflag"));
-
- if(sScheflag == "01" && grd_detlschemngtlist.col == grd_detlschemngtlist.colRef("deptnm"))
- {
- fControlVisible(1, true);
- }
-
- else if(sScheflag == "02" && grd_detlschemngtlist.col == grd_detlschemngtlist.colRef("deptnm"))
- {
- fControlVisible(2, true);
- }
- else if(sScheflag == "03" && grd_detlschemngtlist.col == grd_detlschemngtlist.colRef("deptnm"))
- {
- fControlVisible(3, true);
- }
- else if(sScheflag == "04" && grd_detlschemngtlist.col == grd_detlschemngtlist.colRef("deptnm"))
- {
- fControlVisible(4, true);
- }
- else if(sScheflag == "05" && grd_detlschemngtlist.col == grd_detlschemngtlist.colRef("deptnm"))
- {
- fControlVisible(5, true);
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fControlVisible(0,false);
- if(grd_detlschemngtlist.col == grd_detlschemngtlist.colRef("scheunit"))
- {
- fGridSetting(grd_detlschemngtlist.row, grd_detlschemngtlist.row, true);
- }
- ]]>
- </script>
- </datagrid>
- <select1 id="cmb_deptcd_search" ref="/root/send/deptcd" navindex="2" visibility="hidden" appearance="minimal" style="left:405px; top:18px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/tisorddeptcdlist">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_detlschemngtlist.rowStatus(grd_detlschemngtlist.row) == 1)
- {
- grd_detlschemngtlist.valueMatrix(grd_detlschemngtlist.row, grd_detlschemngtlist.colRef("schedetlcd")) = cmb_deptcd_search.value;
- grd_detlschemngtlist.valueMatrix(grd_detlschemngtlist.row, grd_detlschemngtlist.colRef("deptnm")) = cmb_deptcd_search.label;
- }
- grd_detlschemngtlist.refresh();
- ]]>
- </script>
- </select1>
- <caption id="cap_deptcd_search" class="search_name" visibility="hidden" style="left:300px; top:19px; width:105px; height:17px; ">진 료 과 :</caption>
- <button id="button1" class="btn2_letter4" style="left:1020px; top:49px; width:64px; height:19px; ">
- <caption>일괄등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(grd_detlschemngtlist.rows - grd_detlschemngtlist.fixedRows == 0)
- {
- messageBox("조회되 데이터가 ","I004");
- return;
- }
- ipt_scheto.value ="";
- ipt_schefrom.value = "";
-
- cmb_scheunit.dispatch("xforms-value-changed");
-
- group3.visible = true;
- group1.disabled = true;
- group2.disabled = true;
- group3.disabled = false;
-
- ]]>
- </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(!checkKeyColumn("grd_detlschemngtlist")) return;
- misfSave("TXRTC01501");
- btn_search.dispatch("DOMActivate");
- fControlVisible(0,false);
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line11" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
- </group>
- <group id="group3" visibility="hidden" style="left:955px; top:125px; width:235px; height:105px; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:235px; height:75px; "/>
- <caption id="caption1" class="search_name" style="left:5px; top:10px; width:99px; height:17px; ">일정 단위 :</caption>
- <select1 id="cmb_scheunit" ref="/root/send/init/scheunit" navindex="4" appearance="minimal" style="left:100px; top:10px; width:125px; height:19px; ">
- <choices>
- <item>
- <label>MD</label>
- <value>MD</value>
- </item>
- <item>
- <label>YMD</label>
- <value>YMD</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ipt_scheto.value ="";
- ipt_schefrom.value = "";
-
- if(cmb_scheunit.value == "MD")
- {
- ipt_scheto.attribute("format") = "mm-dd";
- ipt_schefrom.attribute("format") = "mm-dd";
- }
- else if(cmb_scheunit.value == "YMD")
- {
- ipt_scheto.attribute("format") = "yyyy-mm-dd";
- ipt_schefrom.attribute("format") = "yyyy-mm-dd";
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption2" class="search_name" style="left:5px; top:30px; width:99px; height:17px; ">일정 시작 :</caption>
- <caption id="caption3" class="search_name" style="left:5px; top:50px; width:99px; height:17px; ">일정 종료 :</caption>
- <input id="ipt_scheto" ref="/root/send/init/scheto" navindex="6" style="left:100px; top:50px; width:125px; height:19px; "/>
- <input id="ipt_schefrom" ref="/root/send/init/schefrom" navindex="5" style="left:100px; top:30px; width:125px; height:19px; "/>
- <button id="button2" class="btn4_letter2" navindex="7" style="left:115px; top:79px; width:56px; height:22px; ">
- <caption>입력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- for(var i=grd_detlschemngtlist.fixedRows ; i < grd_detlschemngtlist.rows ; i++)
- {
- if(cmb_scheunit.value == "MD")
- {
- grd_detlschemngtlist.cellFormat(i, grd_detlschemngtlist.colRef("schefrom")) = "mm-dd";
- grd_detlschemngtlist.cellFormat(i, grd_detlschemngtlist.colRef("scheto")) = "mm-dd";
- }
- else if(cmb_scheunit.value == "YMD")
- {
- grd_detlschemngtlist.cellFormat(i, grd_detlschemngtlist.colRef("schefrom")) = "yyyy-mm-dd";
- grd_detlschemngtlist.cellFormat(i, grd_detlschemngtlist.colRef("scheto")) = "yyyy-mm-dd";
- }
- }
-
- for(var i = grd_detlschemngtlist.fixedRows ; i < grd_detlschemngtlist.rows ; i++)
- {
- grd_detlschemngtlist.valueMatrix(i, grd_detlschemngtlist.colRef("scheunit")) = cmb_scheunit.value;
-
- grd_detlschemngtlist.valueMatrix(i, grd_detlschemngtlist.colRef("schefrom")) = ipt_schefrom.value;
- grd_detlschemngtlist.valueMatrix(i, grd_detlschemngtlist.colRef("scheto")) = ipt_scheto.value;
-
- // 조회된 데이터만 수정으로 바꿔준다
- if(grd_detlschemngtlist.rowStatus(i) == 0)
- grd_detlschemngtlist.rowStatus(i) = 2;
- }
-
- group3.visible = false;
- group1.disabled = false;
- group2.disabled = false;
- group3.disabled = true;
- ]]>
- </script>
- </button>
- <button id="button3" class="btn4_letter2" style="left:175px; top:79px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group3.visible = false;
- group1.disabled = false;
- group2.disabled = false;
- group3.disabled = true;
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|