SPPIR30220_부제기사유코드.xrw 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>부제기 사유코드</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list01>
  11. <gridpirmabdm>
  12. </gridpirmabdm>
  13. </list01>
  14. </main>
  15. <send>
  16. <abdflag>RT</abdflag>
  17. <insdata>
  18. <insdatalist/>
  19. </insdata>
  20. </send>
  21. <init/>
  22. <hidden/>
  23. </root>
  24. </instance>
  25. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  26. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  27. <!-- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>-->
  28. <submission id="TRPIR30220" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list01"/>
  29. <submission id="TXPIR30220" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/insdata/insdatalist" resultref="/root/main/list01/gridpirmabdm"/>
  30. </model>
  31. <script type="javascript">
  32. <![CDATA[
  33. // 부제기 사유코드 테이블에 한 Row을 추가하고 HIdden Column을 셋팅한다.
  34. function fAddRow() {
  35. // 행추가시 부제기구분만 check된 구분을 셋팅한다.
  36. // 나머지 컬럼은 Application Business 구현 Class에서 처리한다.
  37. var abdflag = model.getValue("/root/send/abdflag");
  38. grd_pirmabdm.addRow();
  39. var curr_row = grd_pirmabdm.row;
  40. model.setValue("/root/main/list01/gridpirmabdm[" + curr_row + "]/abdflag" , abdflag);
  41. model.refresh();
  42. grd_pirmabdm.topRow = curr_row;
  43. return true;
  44. }
  45. function fDelRow() {
  46. var cur_row = grd_pirmabdm.row;
  47. if (model.getValue("/root/main/list01/gridpirmabdm[" + cur_row + "]/useyn") == "Y") {
  48. model.alert("이미 사용된 부제기 코드는 삭제할 수 없습니다");
  49. return;
  50. }
  51. // 행삭제시 DB에 저장되어 있는 자료에 대한 Delete, Update
  52. // 행추가로 인한 Row 생성후 저장하지 않는 자료는 그냥 삭제한다.
  53. if (messageBox("선택된 부제기사유 자료를", "Q001") != 6) return;
  54. if (cur_row > 0) {
  55. // DB에 저장되지 않은 데이타는 그냥 삭제한다.
  56. // if (grd_pirmabdm.rowStatus(cur_row) == "1" || grd_pirmabdm.rowStatus(cur_row) == "3" ) {
  57. // grd_pirmabdm.deleteItem(cur_row);
  58. // model.refresh();
  59. // return;
  60. grd_pirmabdm.deleteRow(cur_row);
  61. // grd_pirmabdm.addStatus( cur_row, "delete");
  62. // model.setValue("/root/send/insdata/insdatalist", grd_pirmabdm.getUpdateData("delete"));
  63. // if (submit("TXPIR30220")) {
  64. // }
  65. // else
  66. // grd_pirmabdm.removeStatus( cur_row, "delete");
  67. // model.refresh();
  68. }
  69. }
  70. ]]>
  71. </script>
  72. </xhtml:head>
  73. <xhtml:body pagewidth="530" pageheight="360">
  74. <group id="group1" scroll="auto" style="left:0px; top:305px; width:518px; height:27px; ">
  75. <button id="btn_cancel" class="btn4_letter2" style="left:461px; top:3px; width:56px; height:22px; ">
  76. <caption>닫기</caption>
  77. <script type="javascript" ev:event="DOMActivate">
  78. <![CDATA[
  79. model.close();
  80. ]]>
  81. </script>
  82. </button>
  83. <line id="line88" class="line_6" style="x1:0px; y1:0px; x2:518px; y2:0px; "/>
  84. <button id="button2" class="btn4_letter2" style="left:404px; top:3px; width:56px; height:22px; ">
  85. <caption>저장</caption>
  86. <script type="javascript" ev:event="DOMActivate">
  87. <![CDATA[
  88. // var currow = grd_pirmabdm.row;
  89. // grd_pirmabdm.addStatus(currow,"insert");
  90. // model.setValue("/root/main/list01/gridpirmabdm["+currow+"]/status","i");
  91. // model.copyNode("/root/send/insdata/insdatalist","/root/main/list01/gridpirmabdm["+currow+"]");
  92. model.setValue("/root/send/insdata/insdatalist",grd_pirmabdm.getUpdateData());
  93. // alert(model.getValue("/root/main/list01/gridpirmabdm"));
  94. submit("TXPIR30220");
  95. // 자료 입력, 수정, 삭제 후 저장했을 때 저장한 자료를 재조회한다.
  96. submit("TRPIR30220");
  97. ]]>
  98. </script>
  99. </button>
  100. </group>
  101. <group id="group3" scroll="auto" style="left:0px; top:0px; width:518px; height:302px; ">
  102. <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; ">
  103. <col ref="abdresncd" type="input"/>
  104. <col ref="abdresntext" type="input"/>
  105. <col ref="fstrgstrid"/>
  106. <col ref="abdflag" visibility="hidden"/>
  107. <col ref="appfromdd" visibility="hidden"/>
  108. <col ref="instcd" visibility="hidden"/>
  109. <col ref="apptodd" visibility="hidden"/>
  110. <col ref="fstrgstdt" visibility="hidden"/>
  111. <col ref="lastupdtrid" visibility="hidden"/>
  112. <col ref="lastupdtdt" visibility="hidden"/>
  113. <col ref="useyn" visibility="hidden"/>
  114. </datagrid>
  115. <group id="group2" style="left:0px; top:23px; width:518px; height:34px; vertical-align:top; ">
  116. <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; "/>
  117. <line id="line13" class="line_4" style="x1:435px; y1:6px; x2:435px; y2:28px; border-color:#ffe4bb; border-left-style:solid; "/>
  118. <button id="btn_search" class="btn1_letter2" style="left:450px; top:6px; width:56px; height:22px; ">
  119. <caption>조회</caption>
  120. <script type="javascript" ev:event="DOMActivate">
  121. <![CDATA[
  122. submit("TRPIR30220");
  123. // model.resetInstanceNode("/root/main/list01");
  124. // model.refresh();
  125. ]]>
  126. </script>
  127. </button>
  128. <caption id="caption11" class="search_name" style="left:9px; top:9px; width:99px; height:17px; ">부제기구분 :</caption>
  129. <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; ">
  130. <choices>
  131. <item>
  132. <label>이의신청 부제기</label>
  133. <value>RT</value>
  134. </item>
  135. <item>
  136. <label>반송 부제기</label>
  137. <value>AP</value>
  138. </item>
  139. </choices>
  140. </select1>
  141. </group>
  142. <group id="group4" style="left:0px; top:0px; width:518px; height:13px; ">
  143. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:158px; height:14px; ">부제기 사유코드</caption>
  144. </group>
  145. <caption id="caption8" class="tit_2" style="left:6px; top:67px; width:111px; height:14px; ">부제기 사유</caption>
  146. <line id="line5" class="line_1" style="x1:0px; y1:82px; x2:518px; y2:82px; "/>
  147. <button id="btn_addRow" class="btn2_letter3" style="left:456px; top:61px; width:53px; height:19px; ">
  148. <caption>행추가</caption>
  149. <script type="javascript" ev:event="DOMActivate">
  150. <![CDATA[
  151. fAddRow();
  152. ]]>
  153. </script>
  154. </button>
  155. <button id="btn_delRow" class="btn2_letter3" visibility="hidden" style="left:400px; top:61px; width:53px; height:19px; ">
  156. <caption>행삭제</caption>
  157. <script type="javascript" ev:event="DOMActivate">
  158. <![CDATA[
  159. fDelRow();
  160. ]]>
  161. </script>
  162. </button>
  163. </group>
  164. </xhtml:body>
  165. </xhtml:html>