123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552 |
- <?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>
- <item>
- <cmt/>
- </item>
- <humnatrsreq>
- <humnatrscorlist>
- <humnatrscorlist/>
- </humnatrscorlist>
- </humnatrsreq>
- <dgnoref>
- <dgno/>
- <yy/>
- <educfromdd/>
- <eductodd/>
- <eduinstnm/>
- <deptnm/>
- <dutinstnm/>
- </dgnoref>
- <dgnopsnnumlist/>
- <humnatreducdgcapa>
- <humnatreducdgcapalist/>
- </humnatreducdgcapa>
- </main>
- <init>
- <cnfmynlist>
- <label>확정</label>
- <value>Y</value>
- <label>미확정</label>
- <value>N</value>
- </cnfmynlist>
- </init>
- <send>
- <req>
- <yy/>
- <dgno/>
- <chdgno/>
- <deptcd/>
- <emplno/>
- <emplnm/>
- <dutinstnm/>
- <valuerslt/>
- <dutplceinstnm/>
- <seqno/>
- </req>
- <chdgnolist>
- <yy/>
- <emplno/>
- <chdgno/>
- </chdgnolist>
- <humnatrsreq>
- <humnatrscorlist/>
- </humnatrsreq>
- <dgnoreq>
- <dgno/>
- <yy/>
- </dgnoreq>
- <temp/>
- <reportlist>
- <humnatreducdgcapa>
- <humnatreducdgcapalist/>
- </humnatreducdgcapa>
- <humnatrsreq>
- <humnatrscorlist/>
- </humnatrsreq>
- </reportlist>
- </send>
- <temp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.setValue("/root/send/req/emplno", getUserInfo("userid"));
- model.getValue("/root/send/req/emplno");
-
- //함수 위치 : /tistrngeducplanmngtweb/js/SMRTS00600.js
- //의료원 실무자
- authflag1 = fGrupAuthFlag("UG00000046");
- //수련교육 관리자
- authflag2 = fGrupAuthFlag("UG00000034");
- if (authflag1 == "Y" || authflag2 == "Y"){
- caption6.attribute("text") = "사랑나눔교육 일정변경 신청 및 조회";
- btn_emplsearch.visible = true;
- btn_search.visible = true;
- btn_grdadd.visible = true;
- } else {
- caption6.attribute("text") = "사랑나눔교육 일정변경 신청";
- btn_emplsearch.visible = false;
- btn_search.visible = false;
- ipt_emplno.refresh();
- }
- misfGridInit(grd_humnatrscorlist);
-
- misfMsterDetailSet(grd_humnatrscorlist, null, "TRRTS01802", "Y");
- misfGridComboComCdList("R0256",grd_humnatrscorlist,"valuerslt");
- var today = getCurrentDate();
- var cur_mm = parseInt(today.substring(4, 6));
- var cur_yy = parseInt(today.substring(0, 4));
-
- /*if (cur_mm < 3)
- {
- cur_yy--;
- }*/
-
- model.setValue("/root/send/req/yy", cur_yy);
-
- submit("TRRTC01301");
- model.removeNodeset("/root/send/reportlist/humnatreducdgcapa");
- model.makeNode("/root/send/reportlist/humnatreducdgcapa");
- model.copyNode("/root/send/reportlist/humnatreducdgcapa", "/root/main/humnatreducdgcapa");
- addComboItem( "cmb_dgno", "차기년도", "0", "below");
- ipt_yy.refresh();
- misfComboCopyItemSet(cmb_dgno, "/root/send/req/dgno", grd_humnatrscorlist, "dgno");
- misfComboCopyItemSet(cmb_dgno, "/root/send/req/oldchdgno", grd_humnatrscorlist, "oldchdgno");
- misfComboCopyItemSet(cmb_dgno, "/root/send/req/chdgno", grd_humnatrscorlist, "chdgno");
- var jobposcd= getUserInfo("jobposcd");
- if(!checkAuth("P"))
- {
- model.setValue("/root/send/req/deptcd", getUserInfo("dutplcecd"));
- model.setValue("/root/send/req/emplno", getUserInfo("userid"));
- model.setValue("/root/send/req/emplnm", getUserInfo("usernm"));
- model.setValue("/root/send/req/dutinstnm", getUserInfo("dutplceinstnm"));
- }
- else if(checkAuth("P"))
- {
- ipt_emplno.disabled = false;
- btn_emplsearch.disabled = false;
- ipt_emplnm.disabled = false;
- }
- submit("TRRTS00602");
- submit("TRRTS01002");
-
- cmb_dgno.value = ipt_dgno.value;
- btn_search.dispatch("DOMActivate");
-
- ]]>
- </script>
- <submission id="TRRTS01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/humnatrscorlist"/>
- <submission id="TRRTC01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/humnatreducdgcapa/humnatreducdgcapalist"/>
- <submission id="TRRTS00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdept" resultref="/root/main/tisorddeptcdlist"/>
- <submission id="TRRTS01002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/dgnoref"/>
- <submission id="TRRTS01801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/chdgnolist" resultref="/root/main/list"/>
- <submission id="TRRTS01802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/humnatrsreq"/>
- <submission id="TRRTS01803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/reportlist"/>
- <submission id="TRRTS01804" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/dgnoreq" resultref="/root/main/dgnopsnnumlist"/>
- <submission id="TRRTS01805" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/dgnolist"/>
- <submission id="TRRTS01806" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/chdgnolist" resultref="/root/main/capayn"/>
- <submission id="TXRTS01802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/humnatrsreq" resultref="/root/temp"/>
- <submission id="TXRTS01803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/humnatrsreq" 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/dateHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/tistrngeducplanmngtweb/js/SMRTS00600.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript" src="../../../mis/paybnusmngtweb/js/RWP001.js"/>
- <script type="javascript">
- <![CDATA[
- var authflag1, authflag2;
- function fCheckData(cur_row) {
- grd_humnatrscorlist.valueMatrix(cur_row,grd_humnatrscorlist.colRef("dgno")) = '';
- grd_humnatrscorlist.valueMatrix(cur_row,grd_humnatrscorlist.colRef("educfromdd")) = '';
- grd_humnatrscorlist.valueMatrix(cur_row,grd_humnatrscorlist.colRef("eductodd")) = '';
- grd_humnatrscorlist.valueMatrix(cur_row,grd_humnatrscorlist.colRef("eduinstnm")) = '';
- grd_humnatrscorlist.valueMatrix(cur_row,grd_humnatrscorlist.colRef("valuerslt")) = '';
- grd_humnatrscorlist.valueMatrix(cur_row,grd_humnatrscorlist.colRef("cnfmyn")) = '';
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <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:43px; width:1195px; height:697px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:5px; width:1195px; height:61px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="cap_yy" class="search_name" style="left:5px; top:39px; width:86px; height:17px; ">년 도 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1130px; top:24px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( !isRequiredControls("ipt_yy") ) {
- return false;
- }
- model.resetInstanceNode("/root/main/item/cmt");
- model.refresh();
- misfMsterDetailRetrieve();
- txt_cmt.value = grd_humnatrscorlist.valueMatrix(grd_humnatrscorlist.row, grd_humnatrscorlist.colRef("cmt"));
- txt_cmt.refresh();
- // submit("TRRTS01001");
- ]]>
- </script>
- </button>
- <line id="line82" class="line_4" style="x1:1115px; y1:10px; x2:1115px; y2:61px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="cap_dgno" class="search_name" style="left:274px; top:39px; width:94px; height:17px; ">교육차수 :</caption>
- <caption id="caption3" class="tit_2" style="left:0px; top:255px; width:201px; height:13px; ">사랑나눔교육 변경 예정일 등록</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:275px; x2:1194px; y2:275px; "/>
- <textarea id="txt_cmt" ref="/root/main/item/cmt" maxlength="100" style="left:0px; top:90px; width:1194px; height:145px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- /*for(i=grd_humnatrscorlist.fixedRows; i < grd_humnatrscorlist.rows;i++){
- grd_humnatrscorlist.addStatus(i,"update");
- }*/
- ]]>
- </script>
- </textarea>
- <caption id="caption4" class="tit_2" style="left:0px; top:75px; width:201px; height:13px; ">변경사유</caption>
- <input id="input2" ref="/root/main/dgnoref/deptnm" class="output_fix" style="left:360px; top:13px; width:165px; height:19px; "/>
- <input id="input3" ref="/root/send/req/dutinstnm" class="output_fix" style="left:630px; top:38px; width:165px; height:19px; "/>
- <input id="ipt_yy" ref="/root/send/req/yy" class="output_fix" style="left:89px; top:38px; width:176px; height:19px; "/>
- <input id="ipt_dgno" ref="/root/main/dgnoref/dgno" class="output_fix" style="left:360px; top:38px; width:165px; height:19px; "/>
- <input id="input6" ref="/root/main/dgnoref/educfromdd" class="output_fix" format="yyyy-mm-dd" style="left:630px; top:13px; width:75px; height:19px; "/>
- <input id="input7" ref="/root/main/dgnoref/eduinstnm" class="output_fix" style="left:910px; top:13px; width:165px; height:19px; "/>
- <caption id="caption1" class="search_name" style="left:540px; top:13px; width:94px; height:17px; ">교육기간 :</caption>
- <caption id="caption2" class="search_name" style="left:820px; top:13px; width:94px; height:17px; ">교육병원 :</caption>
- <caption id="caption5" class="search_name" style="left:5px; top:13px; width:86px; height:17px; ">사 번 :</caption>
- <caption id="caption8" class="search_name" style="left:274px; top:13px; width:94px; height:17px; ">임 상 과 :</caption>
- <caption id="caption9" class="search_name" style="left:540px; top:39px; width:94px; height:17px; ">근무병원 :</caption>
- <button id="btn_grddel" class="btn2_letter3" visibility="hidden" style="left:1137px; top:254px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_humnatrscorlist,"D");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_grdadd" class="btn2_letter3" visibility="hidden" style="left:1081px; top:254px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_humnatrscorlist.rows > 2){
- messageBox("예정일 등록은 2개이상 입력 ","E001");
- return;
- }
- misfGridIUD(grd_humnatrscorlist, "A");
-
- // submit("TRRTS01805");
-
- // grd_humnatrscorlist.valueMatrix(grd_humnatrscorlist.row, grd_humnatrscorlist.colRef(""))
- var cur_row=grd_humnatrscorlist.row;
- grd_humnatrscorlist.colDisabled (9) = true;
- grd_humnatrscorlist.colDisabled (10) = true;
- grd_humnatrscorlist.valueMatrix(cur_row, grd_humnatrscorlist.colRef("emplno")) =ipt_emplno.value;
- grd_humnatrscorlist.valueMatrix(cur_row, grd_humnatrscorlist.colRef("name")) =ipt_emplnm.value;
- grd_humnatrscorlist.valueMatrix(cur_row, grd_humnatrscorlist.colRef("yy")) =ipt_yy.value;
- grd_humnatrscorlist.valueMatrix(cur_row, grd_humnatrscorlist.colRef("dgno")) =ipt_dgno.value;
- ]]>
- </script>
- </button>
- <select1 id="cmb_dgno" ref="/root/send/req/dgno" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:980px; top:70px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/humnatreducdgcapa/humnatreducdgcapalist">
- <label ref="dgno"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <input id="input4" ref="/root/main/dgnoref/eductodd" class="output_fix" format="yyyy-mm-dd" style="left:720px; top:13px; width:75px; height:19px; "/>
- <caption id="caption15" style="left:707; top:15px; width:16px; height:17px; font-weight:bold; ">~</caption>
- <input id="ipt_emplnm" ref="/root/send/req/emplnm" class="input_essential" disabled="true" navindex="21" style="left:180; top:13px; width:85px; height:19px; "/>
- <input id="ipt_emplno" ref="/root/send/req/emplno" class="input_essential" disabled="true" navindex="20" maxlength="10" style="left:89px; top:13px; width:69px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- var recv_list = "emplno,emplnm,dutplceinstnm" ;
- rpbfValidationCheck("EMPLNO", recv_list);
-
- model.setValue("/root/send/req/dutinstnm", model.getValue("/root/send/req/dutplceinstnm"));
- model.refresh();
- // rszfValidationCheck("TRRPZ00102", "empllist", "emplnm,emplno,rregno,unitcd,dutplceinst", "," + ipt_emplno.value + ",,,", "", "emplno,emplnm,rregno,instcd,prfshipflag,jobrespcd,deptcd,jobposcd,preststatcd",
- // ipt_emplno, "SPRPB00101", "emplno","ipt_emplno");
-
- submit("TRRTS01002");
-
- model.refresh();
-
- ]]>
- </script>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("ipt_emplno", "xforms-value-changed");
- ]]>
- </script>
- </input>
- <button id="btn_emplsearch" class="icon_search" disabled="true" style="left:160; top:14; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var recv_list = "emplno,emplnm,dutplceinstnm" ;
- rpbfOpenPopUpList("SPRPB00101", ipt_emplno, recv_list,"","Y");
-
- model.setValue("/root/send/req/dutinstnm", model.getValue("/root/send/req/dutplceinstnm"));
-
- // model.setValue("/root/send/instcd", cmb_instcd.value);
- // ipt_rregno.refresh();
-
- submit("TRRTS01002");
- btn_search.dispatch("DOMActivate");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="input1" ref="/root/send/req/dutplceinstnm" visibility="hidden" style="left:805px; top:70px; width:45px; height:19px; "/>
- <datagrid id="grd_humnatrscorlist" nodeset="/root/main/humnatrsreq/humnatrscorlist" visibility="visible" caption="년도^사번^일련번호^임상과^년차^성명^성별^변경전^변경전^변경후^변경후^변경후^교실(주임교수권한)확정^교육근무기관^평가결과^온라인입력여부^출력여부^CMT|년도^사번^일련번호^임상과^년차^성명^성별^차수^교육일정^(구) 차수^차수^교육일정^교실(주임교수권한)확정^교육근무기관^평가결과^온라인입력여부^출력여부^CMT" colsep="^" colwidth="55, 100, 81, 142, 69, 100, 56, 74, 200, 100, 74, 200, 123, 112, 62, 68, 73, 100" dataheight="25" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:280px; width:1195; height:350; ">
- <col ref="yy" style="text-align:center; "/>
- <col ref="emplno" style="text-align:center; "/>
- <col ref="seqno" visibility="hidden" style="text-align:center; "/>
- <col ref="orddeptnm" style="text-align:center; "/>
- <col ref="anual" style="text-align:center; "/>
- <col ref="name" style="text-align:center; "/>
- <col ref="gndr" style="text-align:center; "/>
- <col disabled="true" ref="dgno" type="combo" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="educdd" style="text-align:center; "/>
- <col disabled="true" ref="oldchdgno" type="combo" visibility="hidden" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="chdgno" type="combo" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="cheducdd" style="text-align:center; "/>
- <col disabled="true" ref="cnfmyn" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/cnfmynlist">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="eduinstnm" style="text-align:center; "/>
- <col disabled="true" ref="valuerslt" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="onlineinptyn" style="text-align:center; "/>
- <col ref="prntyn" style="text-align:center; "/>
- <col ref="cmt" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_humnatrscorlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var cur_row =grd_humnatrscorlist.row;
- if (grd_humnatrscorlist.col == grd_humnatrscorlist.colRef("chdgno")){
- var yy = grd_humnatrscorlist.valueMatrix(cur_row,grd_humnatrscorlist.colRef("yy"));
- var chdgno = grd_humnatrscorlist.valueMatrix(cur_row,grd_humnatrscorlist.colRef("chdgno"));
- var emplno = grd_humnatrscorlist.valueMatrix(cur_row,grd_humnatrscorlist.colRef("emplno"));
- if(yy =="" || chdgno =="" || emplno ==""){
- messageBox("차수는 ","I003");
- fCheckData(cur_row);
- return;
- }else if(chdgno == ipt_dgno.value){
- messageBox("교육 차수가 ","E006");
- fCheckData(cur_row);
- return;
- }
- model.setValue("/root/send/chdgnolist/yy",yy);
- model.setValue("/root/send/chdgnolist/emplno",emplno);
- model.setValue("/root/send/chdgnolist/chdgno",chdgno);
- submit("TRRTS01801");
- var chemplno = model.getValue("/root/main/list/chdgnolist/chemplno");
- if(chemplno != ""){
- messageBox("교육 차수가 ","E006");
- return;
- }
- if(model.getValue("/root/main/list/chdgnolist/cheducdd").length > 0)
- {
- grd_humnatrscorlist.valueMatrix(cur_row,grd_humnatrscorlist.colRef("cheducdd")) = model.getValue("/root/main/list/chdgnolist/cheducdd");
- grd_humnatrscorlist.valueMatrix(cur_row,grd_humnatrscorlist.colRef("eduinstnm")) = model.getValue("/root/main/list/chdgnolist/eduinstnm");
- grd_humnatrscorlist.valueMatrix(cur_row,grd_humnatrscorlist.colRef("valuerslt")) = model.getValue("/root/main/list/chdgnolist/valuerslt");
- grd_humnatrscorlist.valueMatrix(cur_row,grd_humnatrscorlist.colRef("cnfmyn")) = model.getValue("/root/main/list/chdgnolist/cnfmyn");
- grd_humnatrscorlist.valueMatrix(cur_row,grd_humnatrscorlist.colRef("ircnfmyn")) = model.getValue("/root/main/list/chdgnolist/cnfmyn");
- }
-
- model.setValue("/root/send/dgnoreq/yy", yy);
- model.setValue("/root/send/dgnoreq/dgno", chdgno);
-
- submit("TRRTS01804");
-
- grd_humnatrscorlist.valueMatrix(cur_row,grd_humnatrscorlist.colRef("psnnum")) = model.getValue("/root/main/dgnopsnnumlist/psnnum");
- grd_humnatrscorlist.refresh();
- }
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" style="left:1130px; top:2px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_humnatrscorlist);
-
- if (updtdata == "" ) {
- messageBox("변경된 데이터가","I004");
- return;
- }
-
- var retMes = messageBox("저장 하시겠습니까?", "Q999");
- if ( retMes != 6) {
- return;
- }
-
- var cmt= model.getValue("/root/main/item/cmt");
- if(cmt == ""){
- messageBox("변경사유는 ","I003");
- return;
- }
- for(i=grd_humnatrscorlist.fixedRows; i < grd_humnatrscorlist.rows;i++){
- var cnfmyn = grd_humnatrscorlist.valueMatrix(i,grd_humnatrscorlist.colRef("cnfmyn"));
- var ifcnfmyn = grd_humnatrscorlist.valueMatrix(i,grd_humnatrscorlist.colRef("ifcnfmyn"));
- var chdgno = grd_humnatrscorlist.valueMatrix(i,grd_humnatrscorlist.colRef("chdgno"));
- /*if(chdgno =='0' && grd_humnatrscorlist.rows != 1){
- messageBox("차기년도는 1건만","C001");
- return;
- }*/
- if(cnfmyn == 'Y'){
- messageBox("교육변경일정이 교실(주임교수권한)에 의해 확정되어 저장 ","E001");
- return;
- }
- if(ifcnfmyn =='Y'){
- messageBox("교육변경일정이 수련부에 의해 확정되어 저장 ","E001");
- return;
- }
- grd_humnatrscorlist.valueMatrix(i,grd_humnatrscorlist.colRef("cmt")) = cmt;
- }
- model.setValue("/root/send/chdgnolist/yy", grd_humnatrscorlist.valueMatrix(grd_humnatrscorlist.fixedRows, grd_humnatrscorlist.colRef("yy")));
- model.setValue("/root/send/chdgnolist/chdgno", grd_humnatrscorlist.valueMatrix(grd_humnatrscorlist.fixedRows, grd_humnatrscorlist.colRef("chdgno")));
- model.removeNodeset("/root/main/capayn/capayn/capayn");
- submit("TRRTS01806");
- var capayn = model.getValue("/root/main/capayn/capayn/capayn");
- var chdgno = model.getValue("root/main/humnatrsreq/humnatrscorlist/chdgno");
- var deptcd = model.getValue("root/main/humnatrsreq/humnatrscorlist/deptcd");
- var anual = model.getValue("root/main/humnatrsreq/humnatrscorlist/anual");
- if (chdgno == "0"){
- // 2009-04-14일 김영진 선생님의 요청으로 한시적으로 로직 변경, 차후 원복 요함.
- //if ((deptcd == "2230000000" && anual == "3" && chdgno == "0") || anual == "4" && chdgno == "0"){
- //messageBox("마지막 연차이므로 차기년월로 변경할 수 ","I004");
- //의료원 실무자, 수련교육 관리자일때 변경가능
- if (authflag1 == "Y" || authflag2 == "Y") {
- misfSave("TXRTS01802");
- if (model.getValue(gvErrorMsgPath + "/type") != "error") misfMsterDetailRetrieve();
- } else {
- messageBox("차기년월로 변경할 ","I004");
- }
- } else {
- if (capayn == "Y") {
- misfSave("TXRTS01802");
- if (model.getValue(gvErrorMsgPath + "/type") != "error") misfMsterDetailRetrieve();
- } else {
- messageBox("해당 차수의 정원을 ","E003");
- }
- }
-
- btn_search.dispatch("DOMActivate");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter5" style="left:1037px; top:2px; width:92px; height:22px; ">
- <caption>신청서출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/req/deptcd","");
- model.setValue("/root/send/req/dgno","");
- model.setValue("/root/send/req/valuerslt","");
- model.removeNodeset("/root/send/reportlist/humnatrsreq");
- model.makeNode("/root/send/reportlist/humnatrsreq");
- model.copyNode("/root/send/reportlist/humnatrsreq", "/root/main/humnatrsreq");
- exeReportPreview("RPRTS01901", "XMLSTR", "/root/main/send");
- grd_humnatrscorlist.valueMatrix(grd_humnatrscorlist.row, grd_humnatrscorlist.colRef("prntyn")) = 'Y';
- if (authflag==""){ // 그외... (전공의)
- for(var i = grd_humnatrscorlist.fixedRows ; i < grd_humnatrscorlist.rows ; i++ )
- {
- grd_humnatrscorlist.rowStatus(i) = "2";
- }
- submit("TXRTS01803");
- }
-
-
-
-
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|