123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>SMRPA09000_오프라인문서관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <clubcodelist/>
- <item>
- <instnm/>
- <psnworkaprvid/>
- <prsdinstcd/>
- <prsdinstnm/>
- <prsddeptcd/>
- <prsddeptnm/>
- <prsdjobrespcd/>
- <prsdjobrespnm/>
- <prsdnjobgradcd/>
- <gnrlinstcd/>
- <gnrlinstnm/>
- <gnrldeptcd/>
- <gnrljobrespcd/>
- <gnrljobrespnm/>
- <gnrlnjobgradcd/>
- <prsdjobposcd/>
- <prsdjobposnm/>
- <gnrljobposnm/>
- <gnrljobposcd/>
- <prsddutplceinst/>
- <prsddutplceinstnm/>
- <gnrldutplceinst/>
- <gnrldutplceinstnm/>
- <prsdrecedd/>
- <prsdenddd/>
- <prsddocsanm/>
- <prsddocno/>
- <prsdsendpt/>
- <prsdrecedpt/>
- <prsdocpage/>
- <prsdocps/>
- <prsdplace/>
- <prsdsubject/>
- <prsdetc/>
- <instcd/>
- <deptcd/>
- <prsdatchyn/>
- <prsdsegrd/>
- <prsdsaveyn/>
- <docseq/>
- </item>
- </main>
- <send>
- <workgbn/>
- <attach>
- <file/>
- </attach>
- <clubcodelist>
- <deptcdnew/>
- <deptnmnew/>
- <prsdenddd_s/>
- <prsdenddd_d/>
- <prsdocps_s/>
- <prsdsubject_s/>
- <prsddocsanm_s/>
- <nowdeptcd/>
- <prsdsegrd_s/>
- </clubcodelist>
- <save>
- <clubcodelist/>
- </save>
- </send>
- <temp>
- </temp>
- <init>
- <prsdatchyn>
- <label>있음</label>
- <value>Y</value>
- <label>없음</label>
- <value>N</value>
- </prsdatchyn>
- <prsdsegrd>
- <label>대외비</label>
- <value>Y</value>
- <label>일반문서</label>
- <value>N</value>
- </prsdsegrd>
- <prsdsaveyn>
- <label>영구</label>
- <value>Y</value>
- <label>준영구</label>
- <value>N</value>
- </prsdsaveyn>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- misfGridInit(grd_clubcodelist); //mis.js - removeNodeset - 노드셋으로 되어있는 컨트롤들의 노드를 삭제해 줄 때 사용할 수 있는 함수
- misfMsterDetailSet(grd_clubcodelist,null,"TRRPA09001","Y"); //(pGrid_name, pMaster_Grid, pSubmit_Id, pSave_Yn, pSelectionMode) 노드를 그려준다
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript">
- <![CDATA[
-
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- fEnableInsertButton();
- model.removeNodeset("/root/main/clubcodelist"); //nodeset xpath 에 해당하는 노드를 모두 지운다
- model.resetInstanceNode("/root/send/clubcodelist"); // 같은 node name을 갖는 노드들은 삭제시켜준다
- model.resetInstanceNode("/root/main/item");
- model.refresh();
-
-
- //값 셋팅
- model.setValue("/root/main/item/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/main/item/instnm", getUserInfo("dutplceinstnm"));
- model.setValue("/root/main/item/deptcd", getUserInfo("dutplcecd"));
- model.setValue("/root/main/item/prsddeptnm", getUserInfo("dutplcenm"));
- model.setValue("/root/send/clubcodelist/deptcdnew", getUserInfo("dutplcecd"));
- model.setValue("/root/send/clubcodelist/deptnmnew", getUserInfo("dutplcenm"));
- model.setValue("/root/send/clubcodelist/nowdeptcd", getUserInfo("dutplcecd"));
- model.setValue(rdo_prsdatchyn.attribute("ref"), 'N');
- model.setValue(rdo_prsdsegrd.attribute("ref"),'N');
- model.setValue(rdo_prsdsaveyn.attribute("ref"),'Y');
- model.setValue(rdo_prsdsegrd_s.attribute("ref"),'N');
-
- model.refresh();
- }
-
- function fEnableInsertButton() {
- btn_insert.disabled = false;
- btn_update.disabled = true;
- cal_prsdenddd.disabled = false;
- ipt_prsddocsanm.disabled = false;
- ipt_prsddocno.disabled = false;
- ipt_prsdocpage.disabled = false;
- ipt_prsdocps.disabled = false;
- rdo_prsdsegrd.disabled = false;
- ipt_prsdsubject.disabled = false;
- rdo_prsdatchyn.disabled = false;
- rdo_prsdsaveyn.disabled = false;
- }
-
- function fEnableUpdateButton() {
- btn_insert.disabled = true;
- btn_update.disabled = false;
- rdo_prsdsaveyn.disabled = true;
- cal_prsdenddd.disabled = true;
- ipt_prsddocsanm.disabled = true;
- ipt_prsdocpage.disabled = true;
- ipt_prsdocps.disabled = true;
- ipt_prsddocno.disabled = true;
- ipt_prsdsubject.disabled = true;
- rdo_prsdatchyn.disabled = true;
- rdo_prsdsegrd.disabled = true;
- }
-
- function fChangeGridValue(cur_row) {
- model.setValue("/root/main/clubcodelist[" + cur_row + "]/instnm",ipt_instnm.label); //기관명
- }
-
- function fCsvUpload() {
-
- var maxsize = upload1.attribute("filesize");
- var filename = window.fileDialog("open", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- var filelist = filename.split("|");
- model.removeNodeset("/root/main/clubcodelist");
- model.removeNodeset("/root/send/attach");
- //타이틀을 획득한다.
- var s = new String(filelist[filelist.length-1]);
- var ss = s.split("\\");
- if(filename !=""){
- if(grd_clubcodelist.row>1){
- messageBox("해당월의 자료가 ","E006");
- return;
- }else{
- //작업 전 row를 추가 >파일명 유/무에 따른 분기>
- for(var i = 0 ; i < filelist.length ; i++ ){
- grd_attach.addRow(false);
-
- if(filelist[i] == ""){
- //alert(grd_attach.rows - 1);
- grd_attach.removeRow(false);
- grd_attach.refresh();
- }else{
- grd_attach.valueMatrix(grd_attach.rows - 1, 0) = filelist[i];
- //파일크기('tfHelper.checkFileSize' 참조)
- var fileCnt = upload1.getFileCount();
- var lastIndex = fileCnt - 1;
- var fileSize = upload1.getFileSize(lastIndex);
- grd_attach.textmatrix(grd_attach.rows - 1,1) = fileSize;
-
- if (!checkFileSize(upload1)){
- grd_attach.removeItem();
- messageBox("파일 크기가 최대치("+maxsize+"Byte)를", "E003");
- return;
- }
- }
- }
- openLoadingBar("파일업로드 작업중입니다... ") ;
- submit("TXRPA09002");
- closeLoadingBar();
- //btn_search.dispatch("DOMActivate");
- }
- }
- }
-
-
- ]]>
- </script>
- <submission id="TXRPA09001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
- <submission id="TXRPA09002" mediatype="multipart/form-data" method="form-data-post" ref="/root/send" resultref="/root/main/list01"/>
- <submission id="TRRPA09001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/clubcodelist"/>
- </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:38px; width:1195px; height:577px; ">
- <line id="line204" class="line_2" style="x1:0px; y1:494px; x2:1195px; y2:494px; "/>
- <line id="line2" class="line_3" style="x1:0px; y1:569px; x2:1195px; y2:569px; "/>
- <line id="line206" class="line_2" style="x1:0px; y1:542px; x2:1195px; y2:542px; "/>
- <line id="line205" class="line_2" style="x1:0px; y1:518px; x2:1195px; y2:518px; "/>
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:70px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:36px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_clubcodelist);
- //ipt_workgbn.value="rpamclub";
- if ( updtdata != "" ) {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
- if (ret != 6) { // not OK
- return;
- }
- }
-
- var n_check1 = "";
- var n_check2 ="";
- var n_prsdsegrd = "";
- n_check1 = model.getValue("/root/send/clubcodelist/deptcdnew");
- n_check2 =model.getValue("/root/send/clubcodelist/nowdeptcd");
- n_prsdsegrd =model.getValue("/root/send/clubcodelist/prsdsegrd_s");
-
- if(n_check1 != n_check2 && n_prsdsegrd == "Y"){
- messageBox("근무부서의 대외비문서만 검색하실수 있습니다.","E002");
- return;
- }
-
- misfGridInit(grd_clubcodelist)
- misfMsterDetailRetrieve();
- //submit("TRRPA09001");
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1110px; y1:16px; x2:1110px; y2:75px; "/>
- <caption id="caption278" class="tit_2" style="left:5px; top:90px; width:162px; height:13px; ">문서등록 현황</caption>
- <line id="line207" class="line_1" style="x1:0px; y1:105px; x2:1195px; y2:105px; "/>
- <caption id="cap_cmntcd" class="cell_1" style="left:0px; top:496px; width:100px; height:23px; vertical-align:middle; ">소속부서</caption>
- <caption id="caption283" class="tit_2" style="left:5px; top:451px; width:118px; height:13px; ">문서등록 및 수정</caption>
- <caption id="cap_prsddocsanm" class="cell_1" style="left:302px; top:472px; width:120px; height:23px; vertical-align:middle; ">기록물철(문서철)명</caption>
- <line id="line203" class="line_1" style="x1:0px; y1:466px; x2:1195px; y2:466px; "/>
- <input id="ipt_prsddeptnm" ref="/root/main/item/prsddeptnm" class="input_search" disabled="true" imemode="disabled" style="left:103px; top:497px; width:195px; height:19px; "/>
- <caption id="caption5" class="search_name" style="left:685px; top:20px; width:120px; height:17px; ">문서 담당자 :</caption>
- <caption id="cap_prsddocno" class="cell_1" style="left:302px; top:496px; width:120px; height:23px; vertical-align:middle; ">문서번호</caption>
- <caption id="cap_prsdsendpt" class="cell_1" style="left:302px; top:520px; width:120px; height:23px; vertical-align:middle; ">발신처</caption>
- <caption id="caption15" class="search_name" style="left:311px; top:20px; width:120px; height:17px; ">결재 완료일자 :</caption>
- <caption id="cap_prsdrecedd" class="cell_1" style="left:0px; top:520px; width:100px; height:23px; vertical-align:middle; ">문서접수일자</caption>
- <input id="cal_prsdrecedd" ref="/root/main/item/prsdrecedd" inputtype="date" format="yyyy-mm-dd" style="left:103px; top:520px; width:195px; height:19px; "/>
- <caption id="cap_prsdenddd" class="cell_1" style="left:0px; top:544px; width:100px; height:23px; vertical-align:middle; ">결재완료일자</caption>
- <input id="cal_prsdenddd" ref="/root/main/item/prsdenddd" class="input_essential" inputtype="date" format="yyyy-mm-dd" style="left:103px; top:545px; width:195px; height:19px; "/>
- <input id="ipt_prsddocsanm" ref="/root/main/item/prsddocsanm" class="input_essential" imemode="hangul" maxlength="20" style="left:425px; top:472px; width:180px; height:19px; "/>
- <input id="ipt_prsdinstcd" ref="/root/main/item/prsdinstcd" visibility="hidden"/>
- <input id="ipt_prsdinstnm" ref="/root/main/item/prsdinstnm" visibility="hidden"/>
- <input id="ipt_prsddutplceinst" ref="/root/main/item/prsddutplceinst" visibility="hidden"/>
- <input id="ipt_prsddutplceinstnm" ref="/root/main/item/prsddutplceinstnm" visibility="hidden"/>
- <input id="ipt_prsddeptcd" ref="/root/main/item/prsddeptcd" visibility="hidden"/>
- <input id="ipt_prsdocpage" ref="/root/main/item/prsdocpage" class="input_essential" imemode="hangul" maxlength="20" style="left:711px; top:473px; width:87px; height:19px; "/>
- <input id="ipt_prsdjobrespcd" ref="/root/main/item/prsdjobrespcd" visibility="hidden"/>
- <input id="ipt_prsdjobrespnm" ref="/root/main/item/prsdjobrespnm" visibility="hidden"/>
- <input id="ipt_prsdjobposcd" ref="/root/main/item/prsdjobposcd" visibility="hidden"/>
- <input id="ipt_prsdjobposnm" ref="/root/main/item/prsdjobposnm" visibility="hidden"/>
- <input id="ipt_prsdnjobgradcd" ref="/root/main/item/prsdnjobgradcd" visibility="hidden"/>
- <input id="ipt_prsdsubject" ref="/root/main/item/prsdsubject" class="input_essential" imemode="hangul" maxlength="100" style="left:904px; top:473px; width:286px; height:19px; "/>
- <input id="ipt_prsddocno" ref="/root/main/item/prsddocno" class="input_essential" imemode="hangul" maxlength="20" style="left:425px; top:497px; width:180px; height:19px; "/>
- <input id="ipt_gnrlinstcd" ref="/root/main/item/gnrlinstcd" visibility="hidden"/>
- <input id="ipt_gnrlinstnm" ref="/root/main/item/gnrlinstnm" visibility="hidden"/>
- <input id="ipt_gnrldutplceinst" ref="/root/main/item/gnrldutplceinst" visibility="hidden"/>
- <input id="ipt_gnrldutplceinstnm" ref="/root/main/item/gnrldutplceinstnm" visibility="hidden"/>
- <input id="ipt_gnrldeptcd" ref="/root/main/item/gnrldeptcd" visibility="hidden"/>
- <input id="ipt_prsdocps" ref="/root/main/item/prsdocps" class="input_essential" imemode="hangul" maxlength="10" style="left:711px; top:497px; width:87px; height:19px; "/>
- <input id="ipt_gnrljobrespcd" ref="/root/main/item/gnrljobrespcd" visibility="hidden"/>
- <input id="ipt_gnrljobrespnm" ref="/root/main/item/gnrljobrespnm" visibility="hidden"/>
- <input id="ipt_gnrljobposcd" ref="/root/main/item/gnrljobposcd" visibility="hidden"/>
- <input id="ipt_gnrljobposnm" ref="/root/main/item/gnrljobposnm" visibility="hidden"/>
- <input id="ipt_gnrlnjobgradcd" ref="/root/main/item/gnrlnjobgradcd" visibility="hidden"/>
- <caption id="cap_prsdplace" class="cell_1" style="left:609px; top:520px; width:100px; height:23px; vertical-align:middle; ">보존장소</caption>
- <caption id="cap_prsdsubject" class="cell_1" style="left:802px; top:472px; width:100px; height:23px; vertical-align:middle; ">문서제목</caption>
- <caption id="cap_prsdocpage" class="cell_1" style="left:609px; top:472px; width:100px; height:23px; vertical-align:middle; ">페이지</caption>
- <caption id="cap_prsdatchyn" class="cell_1" style="left:802px; top:496px; width:100px; height:23px; vertical-align:middle; ">첨부파일유무</caption>
- <caption id="cap_prsdocps" class="cell_1" style="left:609px; top:496px; width:100px; height:23px; vertical-align:middle; ">문서담당자</caption>
- <caption id="cap_prsdetc" class="cell_1" style="left:802px; top:520px; width:100px; height:23px; vertical-align:middle; ">비고</caption>
- <input id="ipt_prsdsendpt" ref="/root/main/item/prsdsendpt" class="input_default" imemode="hangul" maxlength="20" style="left:425px; top:521px; width:180px; height:19px; "/>
- <input id="ipt_prsdplace" ref="/root/main/item/prsdplace" class="input_default" imemode="hangul" maxlength="20" style="left:711px; top:521px; width:87px; height:19px; "/>
- <input id="ipt_prsdetc" ref="/root/main/item/prsdetc" class="input_default" imemode="hangul" maxlength="20" style="left:904px; top:521px; width:286px; height:19px; "/>
- <caption id="cap_prsdsegrd" class="cell_1" style="left:609px; top:544px; width:100px; height:23px; vertical-align:middle; ">문서보안등급</caption>
- <input id="ipt_prsdrecedpt" ref="/root/main/item/prsdrecedpt" class="input_default" imemode="hangul" maxlength="20" style="left:425px; top:545px; width:180px; height:19px; "/>
- <caption id="cap_prsdrecedpt" class="cell_1" style="left:302px; top:544px; width:120px; height:23px; vertical-align:middle; ">수신처</caption>
- <caption id="cap_cmninstcd" class="cell_1" style="left:0px; top:472px; width:100px; height:23px; vertical-align:middle; ">문서접수기관</caption>
- <caption id="cap_cmntnm" class="cell_1" style="left:0px; top:520px; width:100px; height:23px; vertical-align:middle; ">문서접수일자</caption>
- <datagrid id="grd_clubcodelist" nodeset="/root/main/clubcodelist" caption="일련번호^*보존기준^*근무기관코드^*근무부서코드^*근무기관명^*근무부서명^문서접수일자^*기록물철명^*페이지^*문서번호^*결재완료일자^발신처^수신처^*문서제목^*문서담당자^보존장소^*첨부파일유무^ *문서보안등급^비고" colsep="^" colwidth="60, 100, 100, 100, 113, 111, 100, 100, 100, 100, 87, 100, 100, 192, 80, 80, 100, 107, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:112px; width:1195px; height:330px; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <col ref="docseq" type="output"/>
- <col disabled="true" ref="prsdsaveyn" type="combo">
- <choices>
- <item>
- <label>영구</label>
- <value>Y</value>
- </item>
- <item>
- <label>준영구</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="instcd" type="output"/>
- <col ref="deptcd"/>
- <col ref="instnm" style="text-align:center; "/>
- <col ref="prsddeptnm" style="text-align:center; "/>
- <col ref="prsdrecedd" format="yyyy/mm/dd" style="text-align:center; "/>
- <col ref="prsddocsanm" style="text-align:right; "/>
- <col ref="prsdocpage" style="text-align:center; "/>
- <col ref="prsddocno"/>
- <col ref="prsdenddd" format="yyyy/mm/dd" style="text-align:center; "/>
- <col ref="prsdsendpt"/>
- <col ref="prsdrecedpt"/>
- <col ref="prsdsubject"/>
- <col ref="prsdocps" style="text-align:right; "/>
- <col ref="prsdplace"/>
- <col disabled="true" ref="prsdatchyn" type="combo">
- <choices>
- <item>
- <label>있음</label>
- <value>Y</value>
- </item>
- <item>
- <label>없음</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="prsdsegrd" type="combo">
- <choices>
- <item>
- <label>대외비</label>
- <value>Y</value>
- </item>
- <item>
- <label>일반문서</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="prsdetc"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- var cur_row = grd_clubcodelist.row;
- if ( cur_row > 0 ) {
- fEnableUpdateButton();
- model.copyNode("/root/main/item","/root/main/clubcodelist["+cur_row+"]");
- model.refresh();
- }
- //ipt_cmntcd.disabled = true;
- if(model.getValue("/root/main/clubcodelist["+cur_row+"]/psnworkaprvyn")=='Y'){
- // ipt_psnworkaprvdd.disabled=false;
- }else{
- // ipt_psnworkaprvdd.disabled=true;
- //rdo_psnworkaprvyn.value="N";
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_clubcodelist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <input id="ipt_prsdenddd_s" ref="/root/send/clubcodelist/prsdenddd_s" class="input_s_essential" inputtype="date" style="left:436px; top:19px; width:100px; height:19px; "/>
- <input id="ipt_psnworkaprvid" ref="/root/main/item/psnworkaprvid" visibility="hidden"/>
- <input id="ipt_instnm" ref="/root/main/item/instnm" class="input_search" disabled="true" appearance="minimal" style="left:103px; top:472px; width:195px; height:19px; "/>
- <input id="ipt_workgbn" ref="/root/send/workgbn" visibility="hidden"/>
- <input id="ipt_prsdocps_s" ref="/root/send/clubcodelist/prsdocps_s" class="input_search" navindex="2" imemode="hangul" style="left:801px; top:19px; width:80px; height:19px; "/>
- <input id="ipt_instcd" ref="/root/main/item/instcd" disabled="true" visibility="hidden" style="left:162px; top:472px; width:70px; height:19px; "/>
- <input id="ipt_deptcd" ref="/root/main/item/deptcd" disabled="true" visibility="hidden" style="left:163px; top:497px; width:70px; height:19px; "/>
- <select1 id="rdo_prsdatchyn" ref="/root/main/item/prsdatchyn" appearance="full" cols="2" overflow="visible" style="left:905px; top:500px; width:96px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/prsdatchyn">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="rdo_prsdsegrd" ref="/root/main/item/prsdsegrd" appearance="full" cols="2" overflow="visible" style="left:715px; top:546px; width:150px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/prsdsegrd">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_upload" class="btn2_letter5" style="left:1045px; top:83px; width:75px; height:19px; ">
- <caption>파일업로드</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (fileName.length > 0 ) {
-
- grd_clubcodelist.loadExcel(fileName, 1, true);
- grd_clubcodelist.deleteRow(1);
- grd_clubcodelist.refresh();
-
- var sCnt = grd_clubcodelist.rows;
- grd_clubcodelist.clearStatus();
- grd_clubcodelist.rowStatus(1) = 0;
- for ( var i = 1; i < sCnt; i++) {
- grd_clubcodelist.rowStatus(i) = 1;
- }
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="btn_exceldetail" class="btn2_letter4" style="left:1125px; top:83px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_clubcodelist.saveExcel(fileName, "SheetName", false, false, "", "");
- }
- ]]>
- </script>
- </button>
- <upload id="upload1" nodeset="/root/send/attach/file" ext="xls" filecount="1" filesize="41943040" validate="true" style="left:1015px; top:84px; width:15px; height:20px; "/>
- <datagrid id="grd_attach" nodeset="/root/send/attach" class="datagrid1" visibility="hidden" caption="File Name^File Size" colsep="^" colwidth="403, 93" dataheight="23" ellipsis="true" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" style="left:280px; top:235px; width:505px; height:69px; ">
- <col ref="file" style="text-align:center; "/>
- <col ref="filesize" format="#,###" style="text-align:right; "/>
- </datagrid>
- <caption id="cap_prsdsaveyn" class="cell_1" style="left:1018px; top:495px; width:67px; height:23px; vertical-align:middle; ">보존기준</caption>
- <select1 id="rdo_prsdsaveyn" ref="/root/main/item/prsdsaveyn" appearance="full" cols="2" overflow="visible" style="left:1087px; top:498px; width:96px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/prsdsaveyn">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption1" class="search_name" style="left:16px; top:50px; width:120px; height:17px; ">문서제목 :</caption>
- <input id="ipt_prsdsubject_s" ref="/root/send/clubcodelist/prsdsubject_s" class="input_search" navindex="10" imemode="hangul" style="left:109px; top:49px; width:182px; height:19px; "/>
- <caption id="caption2" style="left:547px; top:22px; width:15px; height:17px; ">~</caption>
- <input id="ipt_prsdenddd_d" ref="/root/send/clubcodelist/prsdenddd_d" class="input_s_essential" inputtype="date" style="left:566px; top:19px; width:100px; height:19px; "/>
- <caption id="caption3" class="search_name" style="left:16px; top:19px; width:85px; height:17px; ">부 서 :</caption>
- <input id="ipt_deptcdnew" ref="/root/send/clubcodelist/deptcdnew" class="combo_default" appearance="minimal" style="left:108px; top:19px; width:80px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_deptcdnew.value.length == 0)
- ipt_deptnmnew.value = "";
- else
- rszfValidationCheck("TRRPA09001", "deptcodelist", "refcond,deptcd",
- "deptcd," + ipt_deptcdnew.value, "", "deptcdnew,deptnmnew",
- ipt_deptcdnew, "SPRPZ00200", "","");
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_windeptcd" class="icon_search" style="left:193px; top:21px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "deptcdnew,deptnmnew";
- misfOpenPopUpList("02", ipt_deptcdnew,"", recv_list,"", "deptcdnew,deptnmnew") ;
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_deptnmnew" ref="/root/send/clubcodelist/deptnmnew" class="combo_default" appearance="minimal" style="left:213px; top:19px; width:80px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_deptnmnew.value.length == 0)
- ipt_deptcdnew.value = "";
- else
- rszfValidationCheck("TRRPA09001", "deptcodelist", "refcond,deptnm",
- "deptnm," + ipt_deptnmnew.value, "", "deptcdnew,deptnmnew",
- ipt_deptnmnew, "SPRPZ00200", "","");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_prsddocsanm_s" ref="/root/send/clubcodelist/prsddocsanm_s" class="input_search" navindex="10" imemode="hangul" style="left:436px; top:49px; width:230px; height:19px; "/>
- <caption id="caption4" class="search_name" style="left:311px; top:50px; width:120px; height:17px; ">기 록 물 철 명 :</caption>
- <caption id="caption7" class="search_name" style="left:685px; top:50px; width:120px; height:17px; ">문서보안등급 :</caption>
- <input id="ipt_nowdeptcd" ref="/root/send/clubcodelist/nowdeptcd" class="combo_default" visibility="hidden" appearance="minimal" style="left:910px; top:83px; width:80px; height:19px; "/>
- <select1 id="rdo_prsdsegrd_s" ref="/root/send/clubcodelist/prsdsegrd_s" class="radio_search" appearance="full" cols="2" overflow="visible" style="left:804px; top:50px; width:186px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/prsdsegrd">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <line id="line11" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
- <button id="btn_clear" class="btn4_letter3" style="left:1011px; top:2px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_clubcodelist);
- if (updtdata != "" ) {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
- if (ret != 6) { // not OK
- return;
- }
- }
- fInitialize();
-
- ]]>
- </script>
- </button>
- <button id="btn_delete" class="btn4_letter2" style="left:1081px; top:2px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_clubcodelist,"D");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:1139px; top:2px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_clubcodelist);
- if (updtdata == "" ) {
- messageBox("변경된 데이터가","I004");
- return;
- }
-
- for(var i=1;i<=grd_clubcodelist.rows-1;i++)
- {
- null_check1 = model.getValue(grd_clubcodelist.attribute("nodeset")+"["+i+"]/cmninstcd");
- null_check2 = model.getValue(grd_clubcodelist.attribute("nodeset")+"["+i+"]/cmntcd");
- }
- model.removenode("/root/send/save"); //값을 초기화
- //model.makeNode("/root/send/save"); //노드를 그려준후에
- model.makeValue("/root/send/save/clubcodelist",updtdata); //저장할 값을 맵핑한다
- misfSave("TXRPA09001"); //submmitID로 저장
- //btn_search.dispatch("DOMActivate"); //저장후에 select와동일한 기능
-
- ]]>
- </script>
- </button>
- </group>
- <button id="btn_update" class="btn2_letter2" navindex="13" style="left:1147px; top:483px; width:42px; height:19px; ">
- <caption>수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("cmb_instcd_i", "ipt_cmntcd", "ipt_cmntnm"))return;
- var cur_row = grd_clubcodelist.row; // 행 번호 가져오기
- if (cur_row > 0) {
- // 그리드에 추가
- model.copyNode("/root/main/clubcodelist["+cur_row+"]","/root/main/item");
- //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_clubcodelist.addStatus(cur_row,"update"); // 행을 업데이트 상태로 변경
- model.refresh();
-
- }
- ]]>
- </script>
- </button>
- <button id="btn_insert" class="btn2_letter2" navindex="12" style="left:1102px; top:483px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- function fdoubleCheck(){
- if(!isRequiredControls("cal_prsdenddd","ipt_prsddocsanm","ipt_prsddocno","ipt_prsdocpage","ipt_prsdocps","rdo_prsdsegrd","ipt_prsdsubject","rdo_prsdatchyn","rdo_prsdsaveyn"))return;
-
- var double_check_instcd="";
- var double_check_deptcd="";
-
- for(var i =1 ; i < grd_clubcodelist.rows; i++)
- {
- double_check_instcd=model.getValue(grd_clubcodelist.attribute("nodeset")+"["+i+"]/instcd");
- double_check_deptcd=model.getValue(grd_clubcodelist.attribute("nodeset")+"["+i+"]/deptcd");
- }
- return true;
- }
- if (!fdoubleCheck()) return;
- if(!isRequiredControls("ipt_instnm","ipt_deptcd","ipt_prsddeptnm"))return;
- grd_clubcodelist.addrow(); // 입력할 행 추가.
- var cur_row = grd_clubcodelist.row; // 추가된 행 번호 가져오기
- // 그리드에 추가
- model.copyNode("/root/main/clubcodelist["+cur_row+"]","/root/main/item");
- model.refresh();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|