123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184 |
- <?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>부제기 사유코드</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list01>
- <gridpirmabdm>
- </gridpirmabdm>
- </list01>
- </main>
- <send>
- <abdflag>RT</abdflag>
- <insdata>
- <insdatalist/>
- </insdata>
- </send>
- <init/>
- <hidden/>
- </root>
- </instance>
- <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"/>-->
- <submission id="TRPIR30220" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list01"/>
- <submission id="TXPIR30220" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/insdata/insdatalist" resultref="/root/main/list01/gridpirmabdm"/>
- </model>
- <script type="javascript">
- <![CDATA[
- // 부제기 사유코드 테이블에 한 Row을 추가하고 HIdden Column을 셋팅한다.
- function fAddRow() {
- // 행추가시 부제기구분만 check된 구분을 셋팅한다.
- // 나머지 컬럼은 Application Business 구현 Class에서 처리한다.
- var abdflag = model.getValue("/root/send/abdflag");
- grd_pirmabdm.addRow();
- var curr_row = grd_pirmabdm.row;
-
- model.setValue("/root/main/list01/gridpirmabdm[" + curr_row + "]/abdflag" , abdflag);
- model.refresh();
- grd_pirmabdm.topRow = curr_row;
- return true;
- }
-
- function fDelRow() {
- var cur_row = grd_pirmabdm.row;
-
- if (model.getValue("/root/main/list01/gridpirmabdm[" + cur_row + "]/useyn") == "Y") {
- model.alert("이미 사용된 부제기 코드는 삭제할 수 없습니다");
- return;
- }
- // 행삭제시 DB에 저장되어 있는 자료에 대한 Delete, Update
- // 행추가로 인한 Row 생성후 저장하지 않는 자료는 그냥 삭제한다.
- if (messageBox("선택된 부제기사유 자료를", "Q001") != 6) return;
-
-
-
- if (cur_row > 0) {
- // DB에 저장되지 않은 데이타는 그냥 삭제한다.
- // if (grd_pirmabdm.rowStatus(cur_row) == "1" || grd_pirmabdm.rowStatus(cur_row) == "3" ) {
- // grd_pirmabdm.deleteItem(cur_row);
- // model.refresh();
- // return;
-
- grd_pirmabdm.deleteRow(cur_row);
-
- // grd_pirmabdm.addStatus( cur_row, "delete");
- // model.setValue("/root/send/insdata/insdatalist", grd_pirmabdm.getUpdateData("delete"));
- // if (submit("TXPIR30220")) {
- // }
- // else
- // grd_pirmabdm.removeStatus( cur_row, "delete");
-
- // model.refresh();
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="530" pageheight="360">
- <group id="group1" scroll="auto" style="left:0px; top:305px; width:518px; height:27px; ">
- <button id="btn_cancel" class="btn4_letter2" style="left:461px; top:3px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.close();
- ]]>
- </script>
- </button>
- <line id="line88" class="line_6" style="x1:0px; y1:0px; x2:518px; y2:0px; "/>
- <button id="button2" class="btn4_letter2" style="left:404px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // var currow = grd_pirmabdm.row;
-
- // grd_pirmabdm.addStatus(currow,"insert");
- // model.setValue("/root/main/list01/gridpirmabdm["+currow+"]/status","i");
-
- // model.copyNode("/root/send/insdata/insdatalist","/root/main/list01/gridpirmabdm["+currow+"]");
-
- model.setValue("/root/send/insdata/insdatalist",grd_pirmabdm.getUpdateData());
-
- // alert(model.getValue("/root/main/list01/gridpirmabdm"));
- submit("TXPIR30220");
-
- // 자료 입력, 수정, 삭제 후 저장했을 때 저장한 자료를 재조회한다.
- submit("TRPIR30220");
- ]]>
- </script>
- </button>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:518px; height:302px; ">
- <datagrid id="grd_pirmabdm" nodeset="/root/main/list01/gridpirmabdm" caption="사유코드^부제기 TEXT^입력자^부제기구분^적용시작일자^기관코드^적용종료일자^최초등록일시^최종수정자ID^최종수정일시" colsep="^" colwidth="84, 319, 74, 100, 91, 63, 93, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="1" style="left:0px; top:87px; width:515px; height:213px; ">
- <col ref="abdresncd" type="input"/>
- <col ref="abdresntext" type="input"/>
- <col ref="fstrgstrid"/>
- <col ref="abdflag" visibility="hidden"/>
- <col ref="appfromdd" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="apptodd" visibility="hidden"/>
- <col ref="fstrgstdt" visibility="hidden"/>
- <col ref="lastupdtrid" visibility="hidden"/>
- <col ref="lastupdtdt" visibility="hidden"/>
- <col ref="useyn" visibility="hidden"/>
- </datagrid>
- <group id="group2" style="left:0px; top:23px; width:518px; height:34px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:518px; height:34px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line13" class="line_4" style="x1:435px; y1:6px; x2:435px; y2:28px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" style="left:450px; top:6px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRPIR30220");
-
- // model.resetInstanceNode("/root/main/list01");
- // model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption11" class="search_name" style="left:9px; top:9px; width:99px; height:17px; ">부제기구분 :</caption>
- <select1 id="radio3" ref="/root/send/abdflag" class="radio_search" overflow="visible" appearance="full" cellspacing="5" cols="4" style="left:110px; top:9px; width:230px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>이의신청 부제기</label>
- <value>RT</value>
- </item>
- <item>
- <label>반송 부제기</label>
- <value>AP</value>
- </item>
- </choices>
- </select1>
- </group>
- <group id="group4" style="left:0px; top:0px; width:518px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:158px; height:14px; ">부제기 사유코드</caption>
- </group>
- <caption id="caption8" class="tit_2" style="left:6px; top:67px; width:111px; height:14px; ">부제기 사유</caption>
- <line id="line5" class="line_1" style="x1:0px; y1:82px; x2:518px; y2:82px; "/>
- <button id="btn_addRow" class="btn2_letter3" style="left:456px; top:61px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fAddRow();
- ]]>
- </script>
- </button>
- <button id="btn_delRow" class="btn2_letter3" visibility="hidden" style="left:400px; top:61px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDelRow();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|