123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588 |
- <?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>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <educcodelist>
- <hosinhosoutflag/>
- <instnm/>
- <instcd/>
- <chrgdeptnm/>
- <chrgdeptcd/>
- <educfalgnm/>
- <educfalgcd/>
- <cmpltcursstdyflagnm/>
- <cmpltcursstdyflagcd/>
- <cmpltcursstdypnt/>
- <educcdnm/>
- <educcd/>
- <eductrgtnm/>
- <eductrgtcd/>
- <fstrgstdt/>
- <fstrgstrid/>
- <lastupdtrid/>
- <lastupdtdt/>
- <useyn/>
- <useyncd/>
- <cmt/>
- </educcodelist>
- </main>
- <init/>
- <send>
- <instcd_s/>
- <chrgdeptcd/>
- <chrgdeptnm/>
- <educfalg/>
- <educcd/>
- <educcdnm/>
- <cmpltcursstdyflag/>
- <educcodelist/>
- </send>
- <temp>
- <savelist>
- <hosinhosoutflag/>
- <instnm/>
- <instcd/>
- <chrgdeptnm/>
- <chrgdeptcd/>
- <educfalgnm/>
- <educfalgcd/>
- <cmpltcursstdyflagnm/>
- <cmpltcursstdyflagcd>E</cmpltcursstdyflagcd>
- <educcdnm/>
- <educcd/>
- <eductrgtnm/>
- <eductrgtcd/>
- <fstrgstrid/>
- <cmpltcursstdypnt/>
- <useyn>0</useyn>
- <fstrgstdt/>
- <cmt/>
- <useyncd/>
- <lastupdtrid/>
- <lastupdtdt/>
- </savelist>
- <count/>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- misfGridInit(grd_educlist);
- misfMsterDetailSet(grd_educlist,null,"TRRPS00101","Y");
- // 공통코드 바인딩 silver
- //misfComboComCdList('Z0007', cmb_instcd);
- misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","Y");
- misfComboComCdList('Z0007', cmb_instcd_i);
-
- ]]>
- </script>
- <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="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- fEnableInsertButton();
- model.removeNodeset("/root/main/educcodelist");
- model.resetInstanceNode("/root/send");
- model.resetInstanceNode("/root/temp/savelist");
- model.refresh();
- }
-
- function fEnableInsertButton() {
- btn_insert.disabled = false;
- btn_update.disabled = true;
- }
- function fEnableUpdateButton() {
- btn_insert.disabled = true;
- btn_update.disabled = false;
- }
-
-
-
- function fDeleteSelectedRows(grd,markonly) {
- var rowIdx;
- if (grd.selectedRows > 0) {
- var selectedRows = Array(grd.selectedRows);
- for(i=0;i<grd.selectedRows;i++) {
- selectedRows[i] = grd.selectedRow(i);
- }
- if (markonly != null && markonly == true) { // mark delete
- for(i=selectedRows.length-1;i>=0;i--) {
- rowIdx = selectedRows[i];
- if(grd.rowstatus(rowIdx) == 1 ) { // just inserted row
- grd.deleterow(rowIdx,false);
- } else {
- grd.addStatus(rowIdx,"delete");
- }
- }
- } else {
- for(i=selectedRows.length-1;i>=0;i--) {
- rowIdx = selectedRows[i];
- grd.deleterow(rowIdx,false);
- }
- }
- }
- }
- function fChangeGridValue(cur_row) {
- if(rdo_hosinhosoutflag_i.value==""){
- model.setValue("/root/main/educcodelist[" + cur_row + "]/hosinhosoutflag","0"); //원내외구분
- }else{
- model.setValue("/root/main/educcodelist[" + cur_row + "]/hosinhosoutflag",rdo_hosinhosoutflag_i.value); //원내외구분
- }
- model.setValue("/root/main/educcodelist[" + cur_row + "]/instnm", cmb_instcd_i.label); //기관명
- model.setValue("/root/main/educcodelist[" + cur_row + "]/educfalgnm", cmb_educflagcd_i.label); //교육구분
- model.setValue("/root/main/educcodelist[" + cur_row + "]/eductrgtnm", cmb_eductrgt_i.label);//교육대상
- model.setValue("/root/main/educcodelist[" + cur_row + "]/cmpltcursstdyflagnm", rdo_cmpltcursstdyflag_i.label); // 이수구분
- if(rdo_useyn_i.value==""){
- model.setValue("/root/main/educcodelist[" + cur_row + "]/useyn", 'Y');
- }else{
- model.setValue("/root/main/educcodelist[" + cur_row + "]/useyn", rdo_useyn_i.value); // 사용여부
- }
- }
- // 사용빈도 : 중
- // 함수명: 실수,정수,금액 유효성 체크 및 허용하지 않는 문자는 경고 없이 자동 삭제
- // 인 자: 필수 : obj(입력 컨트롤명), cmd(숫자 유형)
-
- function mis_numberOnly(obj, cmd) {
-
- var objstr=obj.value;
-
- var cobjstr = "";
- var tempstr = "";
-
- if(cmd == "real") {
- cobjstr = "0123456789.-"; //실수
- } else if(cmd == "real2") {
- cobjstr = "0123456789."; //양의실수
- } else if(cmd=="int"){
- cobjstr="0123456789-"; //정수
- } else if(cmd=="money"){
- cobjstr="0123456789,"; //금액
- } else if(cmd == "real3"){
- cobjstr = "0123456789.-,"; //실수 : , 포함
- }else if(cmd=='numeric'){
- cobjstr = "0123456789"; //숫자
- }
-
- //거꾸로 돌려야 함
- if(objstr.length) {
- var leng = objstr.length;
- for(var i=leng-1; i>=0; i--) {
- if(cobjstr.lastIndexOf(objstr.charAt(i)) == -1) {
- objstr = objstr.substring(0, i)+ objstr.substring(i+1);
- obj.value = objstr;
- }
- }
- }
- }
-
-
- ]]>
- </script>
- <submission id="TRRPS00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/educcodelist"/>
- <submission id="TXRPS00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- </model>
- </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:40px; 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; "/>
- <line id="line13" class="line_4" style="x1:1120px; y1:16px; x2:1120px; y2:38px; "/>
- <caption id="caption1" class="search_name" style="left:195px; top:19px; width:86px; height:17px; ">주관부서 :</caption>
- <line id="line8" class="line_1" style="x1:0px; y1:70px; x2:1195px; y2:70px; "/>
- <caption id="caption20" class="tit_2" style="left:5px; top:54px; width:169px; height:14px; ">교육코드관리</caption>
- <caption id="caption10" class="search_name" style="left:15px; top:19; width:90px; height:17px; ">기 관 :</caption>
- <caption id="caption3" class="search_name" style="left:450px; top:21px; width:91px; height:17px; ">교육구분 :</caption>
- <caption id="caption4" class="search_name" style="left:645px; top:21px; width:86px; height:17px; ">교육코드 :</caption>
- <caption id="caption28" class="search_name" style="left:929px; top:19px; width:86px; height:17px; ">이수구분 :</caption>
- <datagrid id="grd_educlist" nodeset="/root/main/educcodelist" caption="원내구분^기 관^기관코드^주관부서^주관부서코드^교육구분^교육구분코드^이수구분^이수구분코드^이수학점^교육코드명^교육코드^교육대상^교육대상코드^등록일자^등 록 자^수정자^수정일^사용여부^사용여부코드^비고사항" colsep="^" colwidth="8, 140, 24, 147, 23, 100, 17, 100, 21, 74, 93, 77, 100, 21, 56, 67, 14, 12, 78, 19, 118" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:73px; width:1194px; height:536px; ">
- <col ref="hosinhosoutflag" visibility="hidden"/>
- <col ref="instnm" type="output"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="chrgdeptnm" type="output"/>
- <col ref="chrgdeptcd" visibility="hidden"/>
- <col ref="educfalgnm" type="output"/>
- <col ref="educfalgcd" visibility="hidden"/>
- <col ref="cmpltcursstdyflagnm" type="hidden"/>
- <col ref="cmpltcursstdyflagcd" visibility="hidden"/>
- <col ref="cmpltcursstdypnt"/>
- <col ref="educcdnm" type="output"/>
- <col ref="educcd" visibility="output"/>
- <col ref="eductrgtnm" type="output"/>
- <col ref="eductrgtcd" visibility="hidden"/>
- <col ref="fstrgstdt" type="output"/>
- <col ref="fstrgstrid"/>
- <col ref="lastupdtrid" visibility="hidden"/>
- <col ref="lastupdtdt" visibility="hidden"/>
- <col checkvalue="Y,N" ref="useyn" type="checkbox"/>
- <col ref="useyncd" visibility="hidden"/>
- <col ref="cmt" type="output"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- var cur_row = grd_educlist.row;
- if ( cur_row > 0 ) {
- fEnableUpdateButton();
- model.copyNode("/root/temp/savelist","/root/main/educcodelist["+cur_row+"]");
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <line id="line205" class="line_2" style="x1:0px; y1:685px; x2:840px; y2:685px; "/>
- <line id="line206" class="line_2" style="x1:0px; y1:709px; x2:805px; y2:710px; "/>
- <caption id="caption30" class="cell_1" style="left:425px; top:713px; width:85px; height:23px; vertical-align:middle; ">등록일</caption>
- <line id="line209" class="line_3" style="x1:0px; y1:733px; x2:1192px; y2:733px; "/>
- <caption id="caption5" class="cell_1" style="left:211px; top:638px; width:85px; height:23px; vertical-align:middle; ">교육구분</caption>
- <caption id="caption11" class="cell_1" style="left:425px; top:639px; width:85px; height:23px; vertical-align:middle; ">주관부서</caption>
- <caption id="caption7" class="cell_1" style="left:0px; top:687px; width:85px; height:23px; vertical-align:middle; ">이수구분</caption>
- <caption id="caption8" class="cell_1" style="left:0px; top:639px; width:85px; height:23px; vertical-align:middle; ">기관</caption>
- <caption id="caption26" class="cell_1" style="left:425px; top:663px; width:85px; height:23px; vertical-align:middle; ">교육대상</caption>
- <caption id="caption283" class="tit_2" style="left:0px; top:619px; width:144px; height:13px; ">등록 및 수정</caption>
- <caption id="caption9" class="cell_1" style="left:0px; top:663px; width:85px; height:23px; vertical-align:middle; ">교육코드명</caption>
- <caption id="caption12" class="cell_1" style="left:425px; top:688px; width:85px; height:23px; vertical-align:middle; ">등록자</caption>
- <line id="line203" class="line_1" style="x1:0px; y1:634px; x2:1192px; y2:634px; "/>
- <line id="line204" class="line_2" style="x1:0px; y1:661px; x2:855px; y2:660px; "/>
- <caption id="caption14" class="cell_1" style="left:210px; top:712px; width:85px; height:23px; vertical-align:middle; ">사용여부</caption>
- <caption id="caption13" class="cell_1" style="left:-2px; top:711px; width:85px; height:23px; vertical-align:middle; ">이수학점</caption>
- <caption id="caption15" class="cell_1" style="left:805px; top:640px; width:85px; height:85px; vertical-align:middle; ">비고사항</caption>
- <button id="button7" class="icon_search" style="left:796px; top:21px; width:16px; height:16px; ">
- <caption/>
- </button>
- <select1 id="cmb_instcd" ref="/root/send/instcd_s" class="combo_search" appearance="minimal" style="left:100px; top:19px; width:95px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/init">
- <label ref="instcd"/>
- <value ref="instnm"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_educfalg" ref="/root/send/educfalg" class="combo_search" appearance="minimal" style="left:540px; top:19px; width:95px; height:19px; ">
- <choices>
- <item>
- <label>공통</label>
- <value>001</value>
- </item>
- <item>
- <label>보안교육</label>
- <value>002</value>
- </item>
- </choices>
- </select1>
- <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[
- var updtdata = getGridUpdateData(grd_educlist);
- if ( updtdata != "" ) {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
- if (ret != 6) { // not OK
- return;
- }
- }
- submit("TRRPS00101");
- ]]>
- </script>
- </button>
- <select1 id="rdo_cmpltcursstdyflag" ref="/root/send/cmpltcursstdyflag" class="radio_search" appearance="full" cols="2" overflow="visible" style="left:1017px; top:18px; width:90px; height:16px; text-align:center; border-style:none; ">
- <choices>
- <item>
- <label>필수</label>
- <value>E</value>
- </item>
- <item>
- <label>선택</label>
- <value>S</value>
- </item>
- </choices>
- </select1>
- <button id="button1" class="icon_search" style="left:600px; top:643px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var precv_list = "chrgdeptcd" + "," + "chrgdeptnm";
- misfOpenPopUpList("02", ipt_chrgdeptcd_i, "", precv_list);
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_chrgdeptcd_i" ref="/root/temp/savelist/chrgdeptcd" class="input_default" style="left:515px; top:640px; width:80px; height:19px; "/>
- <select1 id="cmb_instcd_i" ref="/root/temp/savelist/instcd" class="combo_s_essential" appearance="minimal" style="left:88px; top:640px; width:120px; height:19px; ">
- <choices>
- <itemset>
- <label ref="instnm"/>
- <value ref="instcd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_educflagcd_i" ref="/root/temp/savelist/educfalgcd" class="combo_search" appearance="minimal" style="left:299px; top:639px; width:120px; height:19px; ">
- <choices>
- <item>
- <label>공통</label>
- <value>001</value>
- </item>
- <item>
- <label>보안교육</label>
- <value>002</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_chrgdeptnm_i" ref="/root/temp/savelist/chrgdeptnm" class="input_default" style="left:620px; top:640px; width:132px; height:19px; "/>
- <input id="ipt_educcdnm" ref="/root/send/educcd" class="input_default" style="left:739px; top:19px; width:55px; height:19px; "/>
- <input id="ipt_educcd" ref="/root/send/educcdnm" class="input_default" style="left:815px; top:19px; width:102px; height:19px; "/>
- <input id="ipt_educnm" ref="/root/temp/savelist/educcdnm" class="input_essential" style="left:88px; top:664px; width:117px; height:19px; "/>
- <input id="ipt_educcd_i" ref="/root/temp/savelist/educcd" class="input_essential" maxlength="5" style="left:300px; top:665px; width:115px; height:19px; "/>
- <select1 id="cmb_eductrgt_i" ref="/root/temp/savelist/eductrgtcd" class="combo_search" appearance="minimal" style="left:515px; top:665px; width:120px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>001</value>
- </item>
- <item>
- <label>교원</label>
- <value>002</value>
- </item>
- <item>
- <label>전공의</label>
- <value>003</value>
- </item>
- <item>
- <label>기타</label>
- <value>004</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_fstrgstrid" ref="/root/temp/savelist/fstrgstrid" class="input_default" style="left:515px; top:690px; width:97px; height:19px; "/>
- <input id="ipt_cmpltcursstdypnt_i" ref="/root/temp/savelist/cmpltcursstdypnt" class="input_default" maxlength="3" style="left:88px; top:711px; width:115px; height:19px; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- mis_numberOnly(ipt_cmpltcursstdypnt_i, 'real');
- ]]>
- </script>
- </input>
- <select1 id="rdo_useyn_i" ref="/root/temp/savelist/useyn" class="radio_search" appearance="full" cols="2" overflow="visible" style="left:305px; top:715px; width:99px; height:16px; text-align:center; border-style:none; ">
- <choices>
- <item>
- <label>Yes</label>
- <value>Y</value>
- </item>
- <item>
- <label>No</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_fstrgstdt_i" ref="/root/temp/savelist/fstrgstdt" class="input_default" inputtype="date" style="left:515px; top:712px; width:97px; height:19px; "/>
- <textarea id="txt_cmt_i" ref="/root/temp/savelist/cmt" style="left:890px; top:640px; width:295px; height:85px; "/>
- <button id="btn_deptcdhelp" class="icon_search" style="left:340px; top:20px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var precv_list = "chrgdeptcd" + "," + "chrgdeptnm";
- misfOpenPopUpList("02", ipt_chrgdeptcd, "", precv_list);
- model.refresh();
-
- ]]>
- </script>
- </button>
- <input id="ipt_chrgdeptcd" ref="/root/send/chrgdeptcd" class="input_default" style="left:280px; top:18px; width:55px; height:19px; "/>
- <input id="ipt_chrgdeptnm" ref="/root/send/chrgdeptnm" class="input_default" style="left:360px; top:18px; width:85px; height:19px; "/>
- <button id="btn_update" class="btn2_letter2" navindex="13" style="left:1047px; top:612px; width:42px; height:19px; ">
- <caption>수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //if ( !fCheckMandatoryInput() ) return;
-
-
- var cur_row = grd_educlist.row; // 행 번호 가져오기
- if (cur_row > 0) {
- // 그리드에 추가
- model.copyNode("/root/main/educcodelist["+cur_row+"]","/root/temp/savelist");
- //messageBox(cmb_inst_i.label.elementName);
- //alert(cmb_inst_i.label);
- // 그리드의 레이블을 변경한다.
- fChangeGridValue(cur_row);
- //grd_educlist.cellStyle("background-image", cur_row, 1) = "../../../com/commonweb/images/icon_u.gif";
- grd_educlist.addStatus(cur_row,"update"); // 행을 업데이트 상태로 변경
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="button4" class="btn2_letter3" navindex="14" style="left:1092px; top:612px; width:53px; height:19px; ">
- <caption>지우기</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fEnableInsertButton();
- model.resetInstanceNode("/root/temp/savelist");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_insert" class="btn2_letter2" navindex="12" style="left:1002px; top:612px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- function doubleCheck(){
-
- var double_check_cmp="";
- var double_check_instcd="";
- var double_check_educcd="";
-
- for(var i =1 ; i < grd_educlist.rows; i++)
- {
- double_check_cmp=model.getValue(grd_educlist.attribute("nodeset")+"["+i+"]/cmpltcursstdyflagcd");
- double_check_instcd=model.getValue(grd_educlist.attribute("nodeset")+"["+i+"]/instcd");
- double_check_educcd=model.getValue(grd_educlist.attribute("nodeset")+"["+i+"]/educcd");
- if( double_check_cmp== rdo_cmpltcursstdyflag_i.value
- && double_check_instcd == cmb_instcd_i.value
- && double_check_educcd== ipt_educcd_i.value){
- alert("중복된 코드가 존재합니다.");
- return false;
- }
- }
- return true;
- }
-
- function nullCheck(){
- var null_check1 = "";
- var null_check2 = "";
- var null_check3 = "";
-
- null_check1 =cmb_instcd_i.value;
- null_check2 =rdo_cmpltcursstdyflag_i.value;
- null_check3 =ipt_educcd_i.value;
-
- if(null_check1 =="") {
- messageBox("기관코드는","I003");
- return false;
- } else if(null_check2 == "") {
- messageBox("이수구분코드는","I003");
- return false;
- }else if(null_check3 == ""){
- messageBox("교육코드는","I003");
- return false;
- }
- return true;
- }
- if (!doubleCheck()) return;
- if (!nullCheck()) return;
- grd_educlist.addItem(); // 입력할 행 추가.
- var cur_row = grd_educlist.row; // 추가된 행 번호 가져오기
- // 그리드에 추가
- model.copyNode("/root/main/educcodelist["+cur_row+"]","/root/temp/savelist");
- fChangeGridValue(cur_row); // 그리드의 레이블을 변경한다.
- fEnableUpdateButton();
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="rdo_cmpltcursstdyflag_i" ref="/root/temp/savelist/cmpltcursstdyflagcd" class="radio_search" appearance="full" cols="2" overflow="visible" style="left:89px; top:690px; width:90px; height:16px; text-align:center; border-style:none; ">
- <choices>
- <item>
- <label>필수</label>
- <value>E</value>
- </item>
- <item>
- <label>선택</label>
- <value>S</value>
- </item>
- </choices>
- </select1>
- <caption id="caption2" class="cell_1" style="left:210px; top:687px; width:85px; height:23px; vertical-align:middle; ">원내/외구분</caption>
- <select1 id="rdo_hosinhosoutflag_i" ref="/root/temp/savelist/hosinhosoutflag" class="radio_search" appearance="full" cols="2" overflow="visible" style="left:305px; top:690px; width:99px; height:16px; text-align:center; border-style:none; ">
- <choices>
- <item>
- <label>원내</label>
- <value>0</value>
- </item>
- <item>
- <label>원외</label>
- <value>1</value>
- </item>
- </choices>
- </select1>
- <caption id="caption16" class="cell_1" style="left:211px; top:662px; width:85px; height:23px; vertical-align:middle; ">교육코드</caption>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:15px; width:1195px; height:27px; ">
- <button id="button42" class="btn4_letter2" style="left:1060px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_educlist);
- if (updtdata == "" ) {
- messageBox("변경된 데이터가","I004");
- return;
- }
-
- var null_check1 = "";
- var null_chech2 = "";
- var null_chech3 = "";
-
- for(var i=1;i<=grd_educlist.rows-1;i++)
- {
- null_check1 = model.getValue(grd_educlist.attribute("nodeset")+"["+i+"]/instcd");
- null_check2 = model.getValue(grd_educlist.attribute("nodeset")+"["+i+"]/cmpltcursstdyflagcd");
- null_check3 = model.getValue(grd_educlist.attribute("nodeset")+"["+i+"]/educcd");
- if(null_check1 =="") {
- messageBox("기관코드는","I003");
- return;
- } else if(null_check2 == "") {
- messageBox("이수구분코드는","I003");
- return;
- }else if(null_check3 == ""){
- messageBox("교육코드는","I003");
- return;
- }
- }
- misfSave("TXRPS00101");
-
- //rdo_hosinhosoutflag_i.value="0";
- //rdo_cmpltcursstdyflag_i.value="E";
- //rdo_useyn_i.value='Y';
-
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter3" style="left:1120px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_educlist);
- if (updtdata != "" ) {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
- if (ret != 6) { // not OK
- return;
- }
- }
- fInitialize();
- ]]>
- </script>
- </button>
- <button id="button3" class="btn4_letter2" style="left:1000px; top:5px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_educlist,"D");
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|