123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272 |
- <?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>
- <list>
- <doculist>
- <docuid/>
- <docunm/>
- <docuinfo/>
- <fstrgstrid/>
- <fstrgstdt/>
- <lastupdtrid/>
- <lastupdtdt/>
- </doculist>
- </list>
- </main>
- <send>
- <srchcond/>
- <srchcnts/>
- <doculist/>
- </send>
- <init/>
- <temp/>
- </root>
- </instance>
- <script ev:event="xforms-ready" type="javascript">
- <![CDATA[
-
- // 화면초기화
- fInitialize();
-
- // 모든 조건으로 설정
- model.setValue("/root/send/srchcond","0");
- ipt_srchcnts.disabled = true;
-
- model.refresh();
- // 조회
- submit("TRZMR00201");
-
- ]]>
- </script>
- <submission id="TRZMR00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
- <submission id="TXZMR00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- </model>
- <script src="../../../com/commonweb/js/common.js" type="javascript"/>
- <script src="../../../com/commonweb/js/tfHelper.js" type="javascript"/>
- <script src="../../../com/commonweb/js/dateHelper.js" type="javascript"/>
- <script type="javascript">
- <![CDATA[
-
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- model.removeNodeset("/root/main/list");
- model.resetInstanceNode("/root/send");
- model.resetInstanceNode("/root/main");
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1196;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:248px; height:14px; ">원격 출력 서식 관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <line id="line4" class="line_2" style="x1:0px; y1:176px; x2:1194px; y2:176px; "/>
- <line id="line3" class="line_2" style="x1:0px; y1:152px; x2:1194px; y2:152px; "/>
- <line id="line2" class="line_2" style="x1:0px; y1:128px; x2:1194px; y2:128px; "/>
- <line id="line6" class="line_2" style="x1:0px; y1:104px; x2:1194px; y2:104px; "/>
- <group id="group2" style="left:0px; top:14px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <caption id="caption2" class="search_name" style="left:16px; top:8px; width:91px; height:17px; ">검색조건 :</caption>
- <line id="line13" class="line_4" style="x1:1106px; y1:7px; x2:1106px; y2:29px; "/>
- <input id="ipt_srchcnts" ref="/root/send/srchcnts" class="input_search" navindex="3" style="left:311px; top:8px; width:374px; height:19px; ">
- <script ev:event="xforms-value-changed" type="javascript">
- <![CDATA[
-
- if (model.getValue("/root/send/srchcond") == "0") {
- model.setValue("/root/send/srchcnts","");
- }
- model.refresh();
-
- ]]>
- </script>
- </input>
- <select1 id="cmb_srchcond" ref="/root/send/srchcond" class="combo_search" navindex="1" appearance="minimal" style="left:110px; top:8px; width:200px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>0</value>
- </item>
- <item>
- <label>서식ID/서식명칭</label>
- <value>1</value>
- </item>
- <item>
- <label>서식ID</label>
- <value>2</value>
- </item>
- <item>
- <label>서식명칭</label>
- <value>3</value>
- </item>
- </choices>
- <script ev:event="xforms-value-changed" type="javascript">
- <![CDATA[
-
- if (model.getValue("/root/send/srchcond") == "0") {
- model.setValue("/root/send/srchcnts","");
- ipt_srchcnts.disabled = true;
-
- submit("TRZMR00201");
- } else {
-
- ipt_srchcnts.disabled = false;
- }
- model.refresh();
-
- ]]>
- </script>
- </select1>
- <button id="btn_search" class="btn1_letter2" style="left:1112; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script ev:event="DOMActivate" type="javascript">
- <![CDATA[
-
- submit("TRZMR00201");
-
- ]]>
- </script>
- </button>
- </group>
- <line id="line8" class="line_1" style="x1:0px; y1:77px; x2:1194px; y2:77px; "/>
- <line id="line7" class="line_3" style="x1:0px; y1:741px; x2:1194px; y2:741px; "/>
- <button id="button3" class="btn2_letter3" style="left:1140px; top:54px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script ev:event="DOMActivate" type="javascript">
- <![CDATA[
-
- var cur_row = grd_list.row; // 행 번호 가져오기
- var iStatus = grd_list.rowstatus(cur_row);
-
- if(cur_row<0) {
- alert("삭제할 행을 선택해주세요");
- return;
- }
-
- if (iStatus == 1) { // 새로 삽입된 행이면
- grd_list.deleteitem(cur_row);
- } else if (iStatus == 3) { // DB에서 가져온 값은 아니고 임시로 입력한 값이면
- grd_list.deleteitem(cur_row);
- } else {
- messageBox("기존 서식을 삭제", "E001");
- }
-
- ]]>
- </script>
- </button>
- <button id="button11" class="btn2_letter3" style="left:1084px; top:54px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script ev:event="DOMActivate" type="javascript">
- <![CDATA[
-
- grd_list.addItem();
- grd_list.editCell();
-
- ]]>
- </script>
- </button>
- <caption id="caption1" class="tit_2" style="left:5px; top:60px; width:149px; height:13px; ">원격 출력 서식 리스트</caption>
- <datagrid id="grd_list" nodeset="/root/main/list/doculist" caption="서식ID^서식명칭^서식정보 (URL)^최초등록자^등록일시^최종수정자^최종수정일시" colwidth="70, 268, 374, 100, 130, 100, 130" dataheight="25" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" style="left:0px; top:82px; width:1194px; height:660px; border-color:#808080; ">
- <col ref="docuid" type="input" maxlength="10" _key="true"/>
- <col ref="docunm" type="input" maxlength="60"/>
- <col ref="docuinfo" type="input" maxlength="200"/>
- <col class="output_fix" ref="fstrgstrid"/>
- <col class="output_fix" ref="fstrgstdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col class="output_fix" ref="lastupdtrid"/>
- <col class="output_fix" ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
- <script ev:event="xforms-value-changed" type="javascript">
- <![CDATA[
-
- // 그리드의 한 셀에 값을 입력하는 시점에 등록일시, 최종수정자, 최종수정일이 자동으로 기록되도록 함
- var cur_row = grd_list.row; // 행 번호 가져오기
-
- if (model.getValue("/root/main/list/doculist[" + cur_row + "]/fstrgstdt") == ""){ // 등록일시가 없는 경우에만 등록일시, 최초등록자를 setting해줌
- model.setValue("/root/main/list/doculist[" + cur_row + "]/fstrgstrid", getUserId()); // 최초등록자
- model.setValue("/root/main/list/doculist[" + cur_row + "]/fstrgstdt", getCurrentDate()+getCurrentTime()); // 등록일시
- }
- model.setValue("/root/main/list/doculist[" + cur_row + "]/lastupdtrid", getUserId()); // 최종수정자
- model.setValue("/root/main/list/doculist[" + cur_row + "]/lastupdtdt", getCurrentDate()+getCurrentTime()); // 최종수정일시
-
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <line id="line32" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="btn_save" class="btn4_letter2" navindex="15" style="left:1068px; top:2px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script ev:event="DOMActivate" type="javascript">
- <![CDATA[
-
- var updtdata = getGridUpdateData(grd_list);
- if (updtdata == "") {
- messageBox("변경된 데이터가","I004");
- return;
- }
- var total_row = grd_list.rows; // 전체 행의 수 가져오기
- var iStatus;
-
- for (var i = 1; i<total_row; i++){
-
- iStatus = grd_list.rowstatus(i);
- if (( iStatus == "1")
- && (model.getValue("/root/main/list/doculist[" + i + "]/docuid") == ""
- || model.getValue("/root/main/list/doculist[" + i + "]/docunm") == ""
- || model.getValue("/root/main/list/doculist[" + i + "]/docuinfo") == "" )) {
-
- grd_list.deleteitem(i);
- model.refresh();
- return;
-
- }
-
- if ((iStatus == "2" || iStatus == "3") // 0: 상태 없음 2: 수정 3: 추가
- && (model.getValue("/root/main/list/doculist[" + i + "]/docuid") == ""
- || model.getValue("/root/main/list/doculist[" + i + "]/docunm") == ""
- || model.getValue("/root/main/list/doculist[" + i + "]/docuinfo") == "" )) {
-
- messageBox("정보가 입력되지 않은 항목이 있어서, 데이터를 저장/수정", "E001");
- return;
- }
-
- }
-
- model.setValue("/root/send/doculist",grd_list.getUpdateData());
- if ( submit("TXZMR00201") ) {
- grd_list.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- }
-
- submit("TRZMR00201");
- ]]>
- </script>
- </button>
- </group>
- <button id="button5" class="btn4_letter3" style="left:1126px; top:15px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script ev:event="DOMActivate" type="javascript">
- <![CDATA[
-
- model.removeNodeset("/root/main/list");
- model.resetInstanceNode("/root/main");
- model.resetInstanceNode("/root/send");
- model.refresh();
-
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|