123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513 |
- <?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>
- <piemedillist>
- <instcd/>
- <docuno/>
- <verno/>
- <filenm/>
- <itemnm/>
- <itemcd/>
- <charsize/>
- <position/>
- <itemdesc/>
- <sortno/>
- <rem/>
- <fstrgstrid/>
- <fstrgstdt/>
- <lastupdtrid/>
- <lastupdtdt/>
- <chk/>
- </piemedillist>
- </main>
- <send>
- <req>
- <docuno/>
- <verno/>
- <filenm/>
- <itemnm/>
- </req>
- <setValue>
- <docuno/>
- <verno/>
- <filenm/>
- <itemcd/>
- </setValue>
- </send>
- <init>
- <PK098list>
- <PK098>
- <cdid/>
- <cdnm/>
- </PK098>
- </PK098list>
- <PK099list>
- <PK099>
- <cdid/>
- <cdnm/>
- </PK099>
- </PK099list>
- <filenmlist>
- <filenm/>
- </filenmlist>
- </init>
- <hidden>
- <piemedillist/>
- </hidden>
- <popupmenu>
- <item>
- <label>행추가</label>
- <func>fGridAddRow</func>
- </item>
- <item>
- <label>행삭제</label>
- <func>setRowDel</func>
- </item>
- <item>
- <label>행복사</label>
- <func>fSetCopyRow</func>
- </item>
- <item>
- <label>삭제 취소</label>
- <func>fRowsYCencel</func>
- </item>
- <item>
- <label>항목 일괄 변경</label>
- <func>fCellAllUpdate</func>
- </item>
- </popupmenu>
- </root>
- </instance>
- <submission id="TRPIE50301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/piemedillist"/>
- <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRPIE50302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/filenmlist"/>
- <submission id="TRPIE50303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/piemedillist" resultref="/root/main/piemedillist"/>
- <submission id="TXPIE50304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/piemedillist" resultref="/root/main/piemedillist"/>
- </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="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 초기화
- fInit();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- var row = grd_piemedillist.row;
- var rows = grd_piemedillist.selectedRows;
- var startRow = grd_piemedillist.fixedRows;
- var endRow = grd_piemedillist.row;
-
- //초기화
- function fInit(){
- getPamCode();
- submit("TRPIE50302");
- fSelectList();
- }
-
- //조회
- function fSelectList(){
-
- submit("TRPIE50301");
- grd_piemedillist.clearStatus();
- }
-
- //Pam 공통코드조회
- function getPamCode(){
- pamfGetCodeList(new Array("PK098","PK099"), new Array("/root/init/PK098list", "/root/init/PK099list"));
- }
-
- //행삭제
- function setRowDel(){
- var chkcnt = getNodesetCount(grd_piemedillist.nodeset+"[chk='Y']");
- var rowno = 1;
- for( var i=0; i < chkcnt; i++ ){
- rowno = grd_piemedillist.findRow("Y", rowno, grd_piemedillist.colRef("chk"), true, true );
- grd_piemedillist.addStatus(rowno, "delete");
- grd_piemedillist.valueMatrix(rowno, grd_piemedillist.colRef("chk")) = "N";
- rowno = rowno + 1;
- }
- }
- //행복사
- function fSetCopyRow(){
- var chkcnt = getNodesetCount(grd_piemedillist.nodeset+"[chk='Y']");
- var row = grd_piemedillist.row;
- var rowno = 1;
- if( chkcnt > 0 ){
- for (var i=0; i < chkcnt; i++ ) {
- rowno = grd_piemedillist.findRow("Y", rowno, grd_piemedillist.colRef("chk"), true, true );
- grd_piemedillist.insertRow(row+i, "below", false, false );
- grd_piemedillist.valueMatrix(row+(i+1), grd_piemedillist.colRef("docuno")) = grd_piemedillist.valueMatrix(rowno, grd_piemedillist.colRef("docuno"));
- grd_piemedillist.valueMatrix(row+(i+1), grd_piemedillist.colRef("verno")) = grd_piemedillist.valueMatrix(rowno, grd_piemedillist.colRef("verno"));
- grd_piemedillist.valueMatrix(row+(i+1), grd_piemedillist.colRef("filenm")) = grd_piemedillist.valueMatrix(rowno, grd_piemedillist.colRef("filenm"));
- grd_piemedillist.valueMatrix(row+(i+1), grd_piemedillist.colRef("itemnm")) = grd_piemedillist.valueMatrix(rowno, grd_piemedillist.colRef("itemnm"));
- grd_piemedillist.valueMatrix(row+(i+1), grd_piemedillist.colRef("itemcd")) = grd_piemedillist.valueMatrix(rowno, grd_piemedillist.colRef("itemcd"));
- grd_piemedillist.valueMatrix(row+(i+1), grd_piemedillist.colRef("charsize")) = grd_piemedillist.valueMatrix(rowno, grd_piemedillist.colRef("charsize"));
- grd_piemedillist.valueMatrix(row+(i+1), grd_piemedillist.colRef("position")) = grd_piemedillist.valueMatrix(rowno, grd_piemedillist.colRef("position"));
- grd_piemedillist.valueMatrix(row+(i+1), grd_piemedillist.colRef("itemdesc")) = grd_piemedillist.valueMatrix(rowno, grd_piemedillist.colRef("itemdesc"));
- grd_piemedillist.valueMatrix(row+(i+1), grd_piemedillist.colRef("sortno")) = grd_piemedillist.valueMatrix(rowno, grd_piemedillist.colRef("sortno"));
- grd_piemedillist.valueMatrix(row+(i+1), grd_piemedillist.colRef("rem")) = grd_piemedillist.valueMatrix(rowno, grd_piemedillist.colRef("rem"));
-
- grd_piemedillist.valueMatrix(row+(i+1), grd_piemedillist.colRef("chk")) = "Y";
-
- grd_piemedillist.removeStatus(rowno, "update");
- grd_piemedillist.valueMatrix(rowno, grd_piemedillist.colRef("chk")) = "N";
-
- rowno = rowno + 1;
- }
- } else {
- messageBox("복사할 행을","C002");
- return;
- }
-
- }
-
- //행추가
- function fGridAddRow(){
- var rows = grd_piemedillist.selectedRows;
- if( rows >= 1 ){
- for( var i=0; i < rows; i++ ){
- grd_piemedillist.insertRow(grd_piemedillist.row, "below", false, false);
- }
- } else {
- grd_piemedillist.insertRow(0, "below", false, false);
- }
- }
-
- // 선택된 row 삭제 취소
- function fRowsYCencel(){
- var chkcnt = getNodesetCount(grd_piemedillist.nodeset+"[chk='Y']");
- var rowno = 1;
- for( var i=0; i < chkcnt; i++ ){
- rowno = grd_piemedillist.findRow("Y", rowno, grd_piemedillist.colRef("chk"), true, true );
- grd_piemedillist.rowStatus(rowno) = 0;
- grd_piemedillist.valueMatrix(rowno, grd_piemedillist.colRef("chk")) = "N";
- rowno = rowno + 1;
- }
- }
-
- //처음 선택한 cell의 데이터로 일괄 변경
- function fCellAllUpdate(){
- var chkcnt = getNodesetCount(grd_piemedillist.nodeset+"[chk='Y']");
- var rowno = 1;
-
- if( chkcnt == 0 ){
- messageBox("변경 할 행을","C002");
- return;
- }
- for( var i=0; i < chkcnt; i++ ){
- rowno = grd_piemedillist.findRow("Y", rowno, grd_piemedillist.colRef("chk"), true, true );
-
- var setDocuno = model.getValue("/root/send/setValue/docuno");
- var setVerno = model.getValue("/root/send/setValue/verno");
- var setFilenm = model.getValue("/root/send/setValue/filenm");
- var setItemcd = model.getValue("/root/send/setValue/itemcd");
-
- if( setDocuno == "" && setFilenm == "" && setFilenm == "" && setItemcd == "" ){
- messageBox("일괄 입력 할 항목의 데이터를 ","C002");
- return;
- }
-
- //서식명 변경
- if( setDocuno != "" ){
- grd_piemedillist.valueMatrix(rowno, grd_piemedillist.colRef("docuno")) = setDocuno;
- }
-
- //버전 변경
- if( setVerno != "" ){
- grd_piemedillist.valueMatrix(rowno, grd_piemedillist.colRef("verno")) = setVerno;
- }
-
- //파일명 변경
- if( setFilenm != "" ){
- grd_piemedillist.valueMatrix(rowno, grd_piemedillist.colRef("filenm")) = setFilenm;
- }
-
- //항목코드 변경
- if( setItemcd != "" ){
- grd_piemedillist.valueMatrix(rowno, grd_piemedillist.colRef("itemcd")) = setItemcd;
- }
-
- grd_piemedillist.addStatus(rowno, "update");
- grd_piemedillist.valueMatrix(rowno, grd_piemedillist.colRef("chk")) = "N";
- rowno = rowno + 1;
- }
- }
-
- //엑셀업로드
- function fExcelUpload(){
- var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- grd_piemedillist.loadExcel(fileName, 1, true);
- grd_piemedillist.refresh();
- var rows = grd_piemedillist.rows;
- for( var i=1; i < rows; i++){
- grd_piemedillist.addStatus(i, "insert");
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <group id="group1" style="left:0px; top:0px; width:1185px; height:20px; ">
- <caption id="caption1" class="tit_1" style="left:0
 px; top:0px; width:170px; height:13px; font-family:굴림; ">심사결과통보서 기준자료</caption>
- </group>
- <group id="group2" style="left:0px; top:20px; width:1185px; height:85px; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1185px; height:45px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:5px; top:15px; width:85px; height:17px; font-family:굴림; ">서 식 명 :</caption>
- <select1 id="cmb_docuno" ref="/root/send/req/docuno" class="combo_search" appearance="minimal" style="left:100px; top:15px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/PK098list/PK098">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" style="left:215px; top:15px; width:85px; height:17px; font-family:굴림; ">버 전 :</caption>
- <select1 id="cmb_verno" ref="/root/send/req/verno" class="combo_search" appearance="minimal" style="left:310px; top:15px; width:135px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/PK099list/PK099">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption4" class="search_name" style="left:455px; top:15px; width:85px; height:17px; font-family:굴림; ">파 일 명 :</caption>
- <input id="inp_filenm" ref="/root/send/req/filenm" style="left:550px; top:15px; width:215px; height:19px; "/>
- <button id="btn_serch" class="btn1_letter2" style="left:1110px; top:15px; width:56px; height:22px; font-family:굴림; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSelectList();
- ]]>
- </script>
- </button>
- <line id="line1" class="line_4" style="x1:1095px; y1:10px; x2:1095px; y2:40px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption5" class="search_name" style="left:775px; top:15px; width:85px; height:17px; font-family:굴림; ">항 목 명 :</caption>
- <input id="inp_itemnm" ref="/root/send/req/itemnm" style="left:870px; top:15px; width:215px; height:19px; "/>
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:50px; width:1185px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption6" style="left:10px; top:58px; width:85px; height:22px; font-family:굴림; font-weight:bold; ">일괄입력</caption>
- <line id="line2" class="line_4" style="x1:70px; y1:55px; x2:70px; y2:80px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption7" class="search_name" style="left:80px; top:62px; width:85px; height:17px; font-family:굴림; ">서 식 명 :</caption>
- <select1 id="set_docuno" ref="/root/send/setValue/docuno" class="combo_search" appearance="minimal" style="left:170px; top:60px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/PK098list/PK098">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption8" class="search_name" style="left:280px; top:60px; width:85px; height:17px; font-family:굴림; ">버 전 :</caption>
- <select1 id="combo2" ref="/root/send/setValue/verno" class="combo_search" appearance="minimal" style="left:370px; top:59px; width:135px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/PK099list/PK099">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption9" class="search_name" style="left:520px; top:60px; width:85px; height:17px; font-family:굴림; ">파 일 명 :</caption>
- <select1 id="combo3" ref="/root/send/setValue/filenm" class="combo_search" appearance="minimal" style="left:615px; top:58px; width:135px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/filenmlist">
- <label ref="filenm"/>
- <value ref="filenm"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption10" class="search_name" style="left:765px; top:59px; width:95px; height:17px; font-family:굴림; ">항목코드 :</caption>
- <input id="input1" ref="/root/send/setValue/itemcd" style="left:865px; top:58px; width:215px; height:19px; "/>
- <button id="button8" class="btn2_letter3" style="left:1113px; top:57px; width:53px; height:19px; ">
- <caption>변 경</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fCellAllUpdate();
- ]]>
- </script>
- </button>
- </group>
- <group id="group3" style="left:0px; top:110px; width:1195px; height:595px; ">
- <button id="button1" class="btn2_letter3" style="left:860px; top:4px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- setRowDel();
- ]]>
- </script>
- </button>
- <button id="button6" class="btn2_letter3" style="left:920px; top:4px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fGridAddRow();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter3" style="left:980px; top:4px; width:53px; height:19px; ">
- <caption>행복사</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSetCopyRow();
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter4" style="left:1040px; top:4px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- grd_piemedillist.gridToInstance();
-
- if( grd_piemedillist.rows > 1 ){
- var fileName = window.fileDialog("save", "", false, caption1.value, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if( !isNull(fileName) ){
- grd_piemedillist.saveExcel(fileName, "sheetname:;colhiddenextend:true;rowhiddenextend:false;col_3:label;col_4:label;col_5:label;col_6:label;");
- messageBox("EXCEL 저장이 완료되었습니다.","I999");
- }
- } else {
- messageBox("저장할 내역이", "I004");
- }
- ]]>
- </script>
- </button>
- <button id="button4" class="btn2_letter5" style="left:1110px; top:4px; width:75px; height:19px; ">
- <caption>엑셀업로드</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fExcelUpload();
- ]]>
- </script>
- </button>
- <datagrid id="grd_piemedillist" nodeset="/root/main/piemedillist" overflow="scroll" scroll="auto" caption="^서식명^버전^파일명^항목명^항목코드^항목길이^POSITION^항목상세설명^순번^비고" colsep="^" colwidth="30, 70, 70, 64, 100, 100, 70, 70, 460, 50, 120" explorerbar="sortshowmove" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" selectionmode="byrow" style="left:0px; top:25px; width:1185px; height:540px; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col disabled="true" editmode="input" ref="docuno" type="combo" maxlength="8">
- <choices>
- <itemset nodeset="/root/init/PK098list/PK098">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" editmode="input" ref="verno" type="combo" format="#,###" maxbyte="12">
- <choices>
- <itemset nodeset="/root/init/PK099list/PK099">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" editmode="input" ref="filenm" type="combo" maxbyte="8">
- <choices>
- <itemset nodeset="/root/init/filenmlist">
- <label ref="filenm"/>
- <value ref="filenm"/>
- </itemset>
- </choices>
- </col>
- <col ref="itemnm" type="input" maxbyte="500" style="text-align:left; "/>
- <col disabled="true" ref="itemcd" type="input" maxbyte="50" tyle="text-align:center;"/>
- <col ref="charsize" type="input" format="#,###" maxbyte="12" style="text-align:center; "/>
- <col ref="position" type="input" format="#,###" maxbyte="12" style="text-align:center; "/>
- <col ref="itemdesc" type="input" maxbyte="4000" style="text-align:left; "/>
- <col ref="sortno" type="input" format="#,###" maxbyte="12" style="text-align:center; "/>
- <col ref="rem" type="input" maxbyte="2630" style="text-align:center; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_piemedillist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if( event.button == 3 ){ // 마우스 오른쪽 버튼
- if( grd_piemedillist.isCell(event.target) && grd_piemedillist.mouseRow >= grd_piemedillist.fixedRows ){
- window.setPopupMenu(true, "/root/popupmenu/item", "label", "func", false);
- } else {
- window.setPopupMenu(false);
- }
-
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- window.setPopupMenu(false);
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- grd_piemedillist.colStatus(grd_piemedillist.colRef("chk")) = false;
- ]]>
- </script>
- </datagrid>
- <button id="button5" class="btn2_letter3" style="left:1130px; top:570px; width:53px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var updtdata = grd_piemedillist.getUpdateData();
- if( getGridUpdateData(grd_piemedillist) == "" ){
- messageBox("변경된 데이터가", "I004");
- return;
- }
-
- if( messageBox("저장", "S001") != 6 ){
- return;
- }
-
- var docunoCnt = getNodesetCount(grd_piemedillist.nodeset+"[docuno='']");
- if( docunoCnt > 0 ){
- messageBox("서식명은 필수 항목입니다.", "I000");
- return;
- }
-
- var vernoCnt = getNodesetCount(grd_piemedillist.nodeset+"[verno='']");
- if( vernoCnt > 0 ){
- messageBox("버전은 필수 항목입니다.", "I000");
- return;
- }
-
- var filenmCnt = getNodesetCount(grd_piemedillist.nodeset+"[filenm='']");
- if( filenmCnt > 0 ){
- messageBox("파일명은 필수 항목입니다.", "I000");
- return;
- }
-
- var itemcdCnt = getNodesetCount(grd_piemedillist.nodeset+"[itemcd='']");
- if( itemcdCnt > 0 ){
- messageBox("항목코드는 필수 항목입니다.", "I000");
- return;
- }
- model.removenode("/root/hidden/piemedillist");
- model.makeValue("/root/hidden/piemedillist", updtdata);
-
- if( submit("TXPIE50304", false)){
- messageBox("정상적으로 저장", "I002");
- grd_piemedillist.clearStatus();
- model.refresh();
- }
-
- ]]>
- </script>
- </button>
- <button id="button7" class="btn2_letter3" style="left:1070px; top:570px; width:53px; height:19px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fInit();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|