123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <?xml-stylesheet type="text/css" href="C:/CMCOracle/application/webapps/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>
- <educcdrgst>
- <educcdrgstlist/>
- </educcdrgst>
- <list>
- <educcdrgst>
- <educcdrgstlist/>
- </educcdrgst>
- <educcdrgsttmp>
- <educcdrgstlist/>
- </educcdrgsttmp>
- </list>
- <tmpeducdlist>
- <educcd/>
- </tmpeducdlist>
- </main>
- <send>
- <yy/>
- <instcd/>
- <rownum/>
- <deptcd/>
- <anual/>
- <educcd/>
- <checkflag/>
- <req>
- <instcd/>
- <anual/>
- <deptcd/>
- </req>
- </send>
- <init>
- <deptcond/>
- </init>
- <temp>
- <checkflag/>
- </temp>
- </root>
- </instance>
- <submission id="TRRTC00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list/educcdrgst/educcdrgstlist"/>
- <submission id="TXRTC00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list/educcdrgst/educcdrgstlist" resultref="/root/temp"/>
- <submission id="TRRTC00302" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/deptcond"/>
- <submission id="TXRTC00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TRRTC00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TRRTS00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqint" resultref="/root/main/tisorddeptcdlist"/>
- <submission id="TRRTC00304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/tmpeducdlist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../mis/tistrngeducbaseinfomngtweb/js/RTC001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //사용자 권한
- fCheckAuth();
- submit("TRRTS00602");
-
- misfGridInit(grd_educcdrgstlist);
- var today = getCurrentDate();
- var cur_mm = parseInt(today.substring(4, 6));
- var cur_yy = parseInt(today.substring(0, 4));
-
- if (cur_mm >= 11)
- cur_yy++;
-
- model.setValue("/root/send/yy", cur_yy);
- ipt_yy.refresh();
-
- misfComboComCdListMulti("R0305", "cmb_instcd");
- addComboItem( "cmb_instcd", "전체", "", "above");
-
- var sPosdeptcd = getUserInfo("posdeptcd");
-
- // 내과 세부분과이면 내과로 세팅
- if(sPosdeptcd == "2010300000" || sPosdeptcd == "2010400000" || sPosdeptcd == "2010500000" || sPosdeptcd == "2010600000" || sPosdeptcd == "2010700000" || sPosdeptcd == "2010800000" || sPosdeptcd == "2010900000" || sPosdeptcd == "2011000000" || sPosdeptcd == "2011100000")
- {
- model.setValue("/root/send/deptcd", "2010000000"); // 진료과 설정 ;
- }
- else
- {
- model.setValue("/root/send/deptcd", sPosdeptcd); // 진료과 설정
- }
- cmb_deptcd_search.refresh();
-
- misfMsterDetailSet(grd_educcdrgstlist, null, "TRRTC00301", "Y");
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //========================================================================================
- //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
- //========================================================================================
- function fCheckAuth() {
- btn_search.disabled =!checkAuth("R") ;
- btn_save.disabled = !checkAuth("X") ;
- }
-
- function fDisabledSetting(check){
- ipt_educnm.disabled = check;
- tar_educgoal.disabled = check;
- tar_therycnts.disabled = check;
- tar_praccnts.disabled = check;
- }
-
- function fDeptcdCheck()
- {
- var sNodeLength = instance1.selectSingleNode("/root/main/list/educcdrgst/educcdrgstlist").length;
- var sEduccd = model.getValue("/root/main/educcdrgst/educcdrgstlist/educcd");
-
- for(var i=1 ; i <= sNodeLength ; i++)
- {
- var node = instance1.selectSingleNode("/root/main/list/educcdrgst/educcdrgstlist[" + i + "]/educcd");
- if(node.text == sEduccd)
- {
- messageBox("코드값이 ","E006");
- return;
- }
- }
- }
-
- function fCreateDeptcd()
- {
- var node = instance1.selectSingleNode("/root/main/tisorddeptcdlist[deptcd=" + model.getValue("/root/main/educcdrgst/educcdrgstlist/deptcd") + "]/tisdeptcd");
-
- model.setValue("/root/send/req/deptcd", node.text);
-
- var sInstcd = model.getValue("/root/send/instcd").substr(2,1);
- model.setValue("/root/send/req/instcd", sInstcd);
-
- model.setValue("/root/send/req/anual", model.getValue("/root/main/educcdrgst/educcdrgstlist/anual"));
-
- submit("TRRTC00304");
-
- var sEduccd = node.text + sInstcd + model.getValue("/root/main/educcdrgst/educcdrgstlist/anual") + model.getValue("/root/main/tmpeducdlist/educcd");
-
- model.setValue("/root/main/educcdrgst/educcdrgstlist/educcd", sEduccd);
- model.refresh();
-
- }
-
- // 새로운 데이터를 입력시 중복데이터를 체크한다
- function fCheckData()
- {
-
- model.setValue("/root/send/deptcd", model.getValue("/root/main/educcdrgst/educcdrgstlist/deptcd"));
- model.setValue("/root/send/anual", model.getValue("/root/main/educcdrgst/educcdrgstlist/anual"));
- model.setValue("/root/send/educcd", model.getValue("/root/main/educcdrgst/educcdrgstlist/educcd"));
-
- submit("TRRTC00303");
- }
-
- function fDefaultDeptSetting(control)
- {
- var sPosdeptcd = getUserInfo("posdeptcd");
- var sDeptcd = control.value;
-
- // 주임교수이면서 핵의학과 교수일때
- if(sPosdeptcd == "2180000000" || sPosdeptcd == "2160000000")
- {
- if(sDeptcd == "2180000000" || sDeptcd == "2160000000")
- {}
- else
- {
- messageBox(control.label+ "을 선택", "E001");
- control.value = sPosdeptcd;
- // model.setValue("/root/send/deptcd", sPosdeptcd); // 진료과 설정
- }
- }
-
- // 주임교수이면서 치과 교수일때
- else if(sPosdeptcd == "2240000000")
- {
- if(sDeptcd == "2240000000" || sDeptcd == "2240500000" || sDeptcd == "2240200000" || sDeptcd == "2240400000")
- {}
- else
- {
- messageBox(control.label+ "을 선택", "E001");
- control.value = sPosdeptcd;
- // model.setValue("/root/send/deptcd", sPosdeptcd); // 진료과 설정
- }
- }
-
- else if(sPosdeptcd == "2010300000" || sPosdeptcd == "2010400000" || sPosdeptcd == "2010500000" || sPosdeptcd == "2010600000" || sPosdeptcd == "2010700000" || sPosdeptcd == "2010800000" || sPosdeptcd == "2010900000" || sPosdeptcd == "2011000000" || sPosdeptcd == "2011100000")
- {
- if(sDeptcd != "2010000000")
- {
- messageBox(control.label+ "을 선택", "E001");
- sPosdeptcd = "2010000000";
- control.value = sPosdeptcd;
- // model.setValue("/root/send/deptcd", sPosdeptcd); // 진료과 설정
- }
- }
-
- else
- {
- if(checkAuth("P"))
- {}
- else
- {
- if(sPosdeptcd != sDeptcd)
- {
- messageBox(control.label+ "을 선택", "E001");
- control.value = sPosdeptcd;
- }
- }
- }
-
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-right:8; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">레지던트 교육코드 등록</caption>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
- <line id="line6" class="line_3" style="x1:737; y1:733px; x2:1183; y2:733px; "/>
- <line id="line5" class="line_2" style="x1:737; y1:478; x2:1183; y2:478; "/>
- <line id="line4" class="line_2" style="x1:737; y1:228; x2:1183; y2:228; "/>
- <line id="line3" class="line_2" style="x1:737; y1:120px; x2:1183; y2:120px; "/>
- <line id="line2" class="line_2" style="x1:737; y1:96px; x2:1183; y2:96px; "/>
- <line id="line1" class="line_1" style="x1:737; y1:69px; x2:1183; y2:69px; "/>
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="cap_yy" class="search_name" style="left:15px; top:19px; width:86px; height:17px; ">년 도 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:16px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // if(!isRequiredControls("cmb_instcd"))return;
- if(!isRequiredControls("cmb_deptcd_search"))return;
-
- misfGridRowStatusChange(grd_educcdrgsttmplist, "/root/main/list/educcdrgsttmp" , "/root/main/educcdrgst");
-
- var updtdata = getGridUpdateData(grd_educcdrgsttmplist);
-
- if ( updtdata != "")
- {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
-
- if (ret == 7) { // not OK
- return;
- }
- }
- model.resetInstanceNode("/root/main/educcdrgst/educcdrgstlist");
- model.resetInstanceNode("/root/main/list/educcdrgsttmp/educcdrgstlist");
- grd_educcdrgsttmplist.clearStatus();
-
- misfMsterDetailRetrieve();
- // grd_educcdrgsttmplist.gridToInstance();
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1110px; y1:16px; x2:1110px; y2:38px; "/>
- <line id="line207" class="line_1" style="x1:0; y1:69; x2:732; y2:69px; "/>
- <datagrid id="grd_educcdrgstlist" nodeset="/root/main/list/educcdrgst/educcdrgstlist" caption="기관명^진료과코드^진료과^년차^교육코드^과목명^교육목표^이론^술기^년도(히든)^기관코드(히든)" colsep="^" colwidth="100, 100, 100, 50, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:74px; width:732px; height:660px; ">
- <col ref="instnm"/>
- <col ref="deptcd" visibility="hidden"/>
- <col ref="depthngnm"/>
- <col ref="anual" style="text-align:center; "/>
- <col ref="educcd"/>
- <col ref="educnm" visibility="visible"/>
- <col ref="educgoal" visibility="visible"/>
- <col ref="therycnts"/>
- <col ref="praccnts"/>
- <col ref="yy" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- misfGridRowStatusChange(grd_educcdrgsttmplist, "/root/main/list/educcdrgsttmp" , "/root/main/educcdrgst");
- grd_educcdrgsttmplist.refresh();
-
- var updtdata = getGridUpdateData(grd_educcdrgsttmplist);
-
- if ( updtdata != "")
- {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
-
- if (ret == 7) { // not OK
- grd_educcdrgstlist.row= model.getValue("/root/send/rownum");
- model.resetInstanceNode("/root/main/educcdrgst/educcdrgstlist");
- model.resetInstanceNode("/root/main/list/educcdrgsttmp/educcdrgstlist");
- return;
- }
- }
- ipt_anual.disabled = true;
- fDisabledSetting(false);
-
- var cur_row = grd_educcdrgstlist.row;
-
- model.setValue("/root/send/rownum", cur_row);
- // model.copyNode("/root/main/educcdrgst/educcdrgstlist", "/root/main/list/educcdrgst/educcdrgstlist["+ cur_row + "]");
-
- model.copyNode("/root/main/list/educcdrgsttmp/educcdrgstlist", "/root/main/list/educcdrgst/educcdrgstlist["+ cur_row + "]");
- model.copyNode("/root/main/educcdrgst/educcdrgstlist", "/root/main/list/educcdrgsttmp/educcdrgstlist");
- grd_educcdrgsttmplist.nodeset = "/root/main/list/educcdrgsttmp/educcdrgstlist";
- grd_educcdrgsttmplist.row = 1;
- // alert(model.getValue("/root/main/list/educcdrgsttmp/educcdrgstlist/educnm"));
-
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <input id="ipt_yy" ref="/root/send/yy" class="input_s_essential" navindex="1" format="yyyy" appearance="input" style="left:100px; top:18px; width:100px; height:19px; "/>
- <button id="btn_copy" class="btn2_letter6" style="left:1009px; top:18px; width:86px; height:19px; ">
- <caption>전년도 copy</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(messageBox("기존에 있는 데이터는 삭제 됩니다. ", "Q003") != 6)
- {
- return;
- }
- else
- {
- model.setValue("/root/send/checkflag","D");
- submit("TXRTC00302");
- model.setValue("/root/send/checkflag","I");
- submit("TXRTC00302");
- btn_search.dispatch("DOMActivate");
- model.refresh();
-
- }
- ]]>
- </script>
- </button>
- <caption id="cap_instcd" class="search_name" style="left:601px; top:19; width:99px; height:17px; ">기 관 :</caption>
- <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" navindex="2" appearance="minimal" style="left:685px; top:18; width:100px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_depthngnm" class="cell_1" style="left:737px; top:74px; width:100; height:23px; vertical-align:middle; ">진료과</caption>
- <caption id="cap_anual" class="cell_1" style="left:962px; top:74px; width:100px; height:23px; vertical-align:middle; ">년차</caption>
- <input id="ipt_anual" ref="/root/main/educcdrgst/educcdrgstlist/anual" disabled="true" navindex="4" format="9" style="left:1064px; top:76px; width:120px; height:19px; "/>
- <caption id="cap_educnm" class="cell_1" style="left:962px; top:98px; width:100px; height:23px; vertical-align:middle; ">과목명</caption>
- <caption id="cap_educcd" class="cell_1" style="left:737px; top:98px; width:100px; height:23px; vertical-align:middle; ">교육코드</caption>
- <caption id="cap_educgoal" class="cell_1" style="left:737px; top:122px; width:100px; height:107; vertical-align:middle; ">교육목표</caption>
- <caption id="cap_therycnts" class="cell_1" style="left:737px; top:230; width:100px; height:249; vertical-align:middle; ">이론</caption>
- <caption id="cap_praccnts" class="cell_1" style="left:737px; top:480; width:100px; height:254; vertical-align:middle; ">술기</caption>
- <textarea id="tar_therycnts" ref="/root/main/educcdrgst/educcdrgstlist/therycnts" disabled="true" navindex="8" style="left:839px; top:232; width:345px; height:245; padding-top:5; "/>
- <textarea id="tar_praccnts" ref="/root/main/educcdrgst/educcdrgstlist/praccnts" disabled="true" navindex="9" style="left:839px; top:482; width:345px; height:250; padding-top:5; "/>
- <input id="ipt_deptcd" ref="/root/main/educcdrgst/educcdrgstlist/deptcd" navindex="10" visibility="hidden" style="left:740px; top:50px; width:100px; height:19px; "/>
- <input id="ipt_educnm" ref="/root/main/educcdrgst/educcdrgstlist/educnm" disabled="true" navindex="6" style="left:1064px; top:100px; width:120; height:19px; "/>
- <textarea id="tar_educgoal" ref="/root/main/educcdrgst/educcdrgstlist/educgoal" disabled="true" navindex="7" style="left:839; top:124; width:345; height:100px; padding-top:5; "/>
- <input id="ipt_educcd" ref="/root/main/educcdrgst/educcdrgstlist/educcd" disabled="true" navindex="5" maxlength="10" style="left:839; top:100px; width:120; height:19; "/>
- <button id="button1" class="btn2_letter2" style="left:1095px; top:49px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(!isRequiredControls("ipt_yy"))return;
- if(!isRequiredControls("cmb_instcd"))return;
-
- misfGridIUD(grd_educcdrgstlist, "A");
- cmb_deptcd.value = cmb_deptcd_search.value;
- grd_educcdrgstlist.dispatch("onrowchanged");
- cmb_deptcd.disabled = false
- ipt_anual.disabled = false;
- ipt_educcd.disabled = false;
- fDisabledSetting(false);
- ]]>
- </script>
- </button>
- <datagrid id="grd_educcdrgsttmplist" nodeset="/root/main/list/educcdrgsttmp/educcdrgstlist" visibility="hidden" caption="진료과코드^진료과^년차^교육코드^과목명^교육목표^이론^술기^년도(히든)^기관코드(히든)" colsep="^" colwidth="100, 100, 50, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:330px; width:730px; height:245px; ">
- <col ref="deptcd" visibility="visible"/>
- <col ref="depthngnm"/>
- <col ref="anual" style="text-align:center; "/>
- <col ref="educcd"/>
- <col ref="educnm"/>
- <col ref="educgoal"/>
- <col ref="therycnts"/>
- <col ref="praccnts"/>
- <col ref="yy" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- </datagrid>
- <select1 id="cmb_deptcd" ref="/root/main/educcdrgst/educcdrgstlist/deptcd" disabled="true" navindex="3" appearance="minimal" style="left:840px; top:75px; 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[
- fDefaultDeptSetting(cmb_deptcd);
- ]]>
- </script>
- </select1>
- <button id="btn_createeduccd" class="btn2_letter6" style="left:1005px; top:49px; width:86px; height:19px; ">
- <caption>교육코드생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("cmb_instcd"))return;
- if(!isRequiredControls("cmb_deptcd"))return;
- if(!isRequiredControls("ipt_anual"))return;
-
- fCreateDeptcd();
-
- ]]>
- </script>
- </button>
- <caption id="caption1" class="search_name" style="left:300; top:19px; width:141px; height:17px; ">진 료 과 :</caption>
- <select1 id="cmb_deptcd_search" ref="/root/send/deptcd" 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[
- fDefaultDeptSetting(cmb_deptcd_search);
- ]]>
- </script>
- </select1>
- <input id="input1" ref="/root/send/req/instcd" visibility="hidden" style="left:845px; top:50px; width:50px; height:19px; "/>
- <input id="input2" ref="/root/send/req/deptcd" visibility="hidden" style="left:900px; top:50px; width:30px; height:19px; "/>
- <input id="input3" ref="/root/send/req/anual" visibility="hidden" style="left:935px; top:50px; width:30px; height:19px; "/>
- <input id="input4" ref="/root/main/tmpeducdlist/educcd" visibility="hidden" style="left:970px; top:50px; width:30px; height:19px; "/>
- <button id="button2" class="btn2_letter2" visibility="hidden" style="left:1140px; top:49px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- misfGridIUD(grd_educcdrgstlist, "D");
-
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <button id="button8" class="btn3_letter4" visibility="hidden" style="left:0px; top:3px; width:80px; height:22px; ">
- <caption>화면이동</caption>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:1124px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- /* 새로운 데이터를 입력시 */
- if(grd_educcdrgstlist.rowStatus(grd_educcdrgstlist.row) == 1)
- {
- // 교육코드 자동생성
- //btn_createeduccd.dispatch("DOMActivate");
- // 년차 확인
- var sAnual = model.getValue("/root/main/educcdrgst/educcdrgstlist/anual");
-
- if(parseInt(sAnual) > 4 || parseInt(sAnual) < 1){
- messageBox("년차를 ","I007");
- return;
- }
-
- fDeptcdCheck();
-
- if(!isRequiredControls("ipt_yy"))return;
- if(!isRequiredControls("cmb_instcd"))return;
- if(!isRequiredControls("cmb_deptcd"))return;
- if(!isRequiredControls("ipt_anual"))return;
- if(!isRequiredControls("ipt_educcd"))return;
-
- model.copyNode("/root/main/list/educcdrgsttmp/educcdrgstlist", "/root/main/educcdrgst/educcdrgstlist");
- model.copyNode("/root/main/list/educcdrgst/educcdrgstlist[" + model.getValue("/root/send/rownum") + "]", "/root/main/list/educcdrgsttmp/educcdrgstlist");
- grd_educcdrgstlist.refresh();
-
- // 새로운 데이터를 입력시 중복데이터를 체크한다
- fCheckData();
-
- var sCheckFlag = model.getValue("/root/temp/checkflag");
-
- if(sCheckFlag == "Y")
- {
- messageBox("이미 입력된 코드입니다. 새로운 코드를 ","C001");
- return;
- }
-
- var updtdata = getGridUpdateData(grd_educcdrgstlist);
-
- if (updtdata == "")
- {
- messageBox("변경된 데이터가","I004");
- return;
- }
-
- misfSave("TXRTC00301");
- grd_educcdrgsttmplist.clearStatus();
- }
- /* 조회된 데이터를 수정 할때 */
- else if(grd_educcdrgstlist.rowStatus(grd_educcdrgstlist.row) == 0)
- {
- if(!isRequiredControls("ipt_yy"))return;
- if(!isRequiredControls("cmb_instcd"))return;
-
- misfGridRowStatusChange(grd_educcdrgsttmplist, "/root/main/list/educcdrgsttmp" , "/root/main/educcdrgst");
- misfGridRowStatusChange(grd_educcdrgstlist, "/root/main/list/educcdrgst" , "/root/main/list/educcdrgsttmp");
- grd_educcdrgstlist.refresh();
-
- var updtdata = getGridUpdateData(grd_educcdrgstlist);
-
- if (updtdata == "")
- {
- messageBox("변경된 데이터가","I004");
- return;
- }
-
- misfSave("TXRTC00301");
- grd_educcdrgsttmplist.clearStatus();
- }
- else if(grd_educcdrgstlist.rowStatus(grd_educcdrgstlist.row) == 4){
- misfSave("TXRTC00301");
- grd_educcdrgsttmplist.clearStatus();
- }
- btn_search.dispatch("DOMActivate");
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line11" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|