SPLPR01700_블럭조회.xrw 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPLPR01700_블럭조회.xfm
  4. * 설 명 : 블럭조회
  5. * 설 계 자 : 설계자가 별도로 존재시 작성
  6. * 작 성 자 : 유동철(ACK)
  7. * 작 성 일 : 2007.11.08
  8. * 수정이력 :
  9. * 기 타 : 주석문에 반영되어야 할 사항 표기
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>블럭조회</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <keybloc>
  20. <keybloclist>
  21. <choi/>
  22. <instcd/>
  23. <ptno/>
  24. <spcacptdd/>
  25. <spcacptno/>
  26. <spcacptseqno/>
  27. <csteno/>
  28. <cstecnts/>
  29. <cstecnt/>
  30. </keybloclist>
  31. </keybloc>
  32. </main>
  33. <send/>
  34. <init>
  35. <resncd>
  36. <resncdlist>
  37. <choi/>
  38. <instcd/>
  39. <baseflagcd/>
  40. <resncd/>
  41. <resncnts/>
  42. </resncdlist>
  43. </resncd>
  44. </init>
  45. <hidden>
  46. </hidden>
  47. <temp>
  48. <keybloc/>
  49. </temp>
  50. </root>
  51. </instance>
  52. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  53. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  54. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  56. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  57. <script type="javascript" ev:event="xforms-ready">
  58. <![CDATA[
  59. fExeInitialize();
  60. ]]>
  61. </script>
  62. <submission id="TRLPZ00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/resncd/resncdlist"/>
  63. <submission id="TRLPR01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/keybloc/keybloclist"/>
  64. </model>
  65. <script type="javascript">
  66. <![CDATA[
  67. /* @group : 블럭조회
  68. * @ver : 2007.11.08 (CMCDEV-0001)
  69. * @by : 유동철(ACK)
  70. * @-----------------------------------
  71. * @type : function
  72. * @access : public
  73. * @desc : 화면 초기화 처리 Function
  74. */
  75. function fExeInitialize() {
  76. model.removeNodeset("/root/main/keybloc/keybloclist");
  77. model.removeNodeset("/root/init/resncd/resncdlist");
  78. //--------------------------
  79. // Send Node 삭제 후 재 생성
  80. model.removeNodeset("/root/send");
  81. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  82. model.makeValue("/root/send/baseflagcd", "'70'");
  83. submit("TRLPZ00103", false);
  84. //---------------------
  85. // 예문목록중 전체 삭제
  86. model.removeNodeset("/root/init/resncd/resncdlist[resncd='ZZZZ']");
  87. model.makeValue("/root/send/ptno", opener.javascript.getParameter("SMLPR00100_ptno"));
  88. //model.makeValue("/root/send/ptno", "S07000122");
  89. submit("TRLPR01701");
  90. //----------------------------------------
  91. model.makeValue("/root/temp/keybloc", opener.javascript.getParameter("SMLPR00100_keybloc"));
  92. grd_bloclist.fixedcellcheckbox(0,0) = true;
  93. grd_bloclist.fixedcellcheckbox(0,0) = true;
  94. //--------------
  95. model.refresh();
  96. }
  97. /* @group : 블럭조회
  98. * @ver : 2007.11.08 (CMCDEV-0001)
  99. * @by : 유동철(ACK)
  100. * @-----------------------------------
  101. * @type : function
  102. * @access : public
  103. * @desc : 화면 닫기 처리 Function
  104. */
  105. function fExeClose() {
  106. window.close();
  107. }
  108. /* @group : 블럭조회
  109. * @ver : 2007.11.08 (CMCDEV-0001)
  110. * @by : 유동철(ACK)
  111. * @-----------------------------------
  112. * @type : function
  113. * @access : public
  114. * @desc : 예문 그리드 클릭 처리 Function
  115. */
  116. function fExeExmpClick() {
  117. if (grd_exmplist.row > 0 && grd_exmplist.isCell(event.target) && grd_exmplist.row >= grd_exmplist.fixedRows) {
  118. fExeKeyBlocCnts();
  119. }
  120. }
  121. /* @group : 블럭조회
  122. * @ver : 2007.11.08 (CMCDEV-0001)
  123. * @by : 유동철(ACK)
  124. * @-----------------------------------
  125. * @type : function
  126. * @access : public
  127. * @desc : 예문선책 처리 Function
  128. */
  129. function fExeKeyBlocCnts() {
  130. var iRowNo = grd_exmplist.row;
  131. var iFindNo = 0;
  132. var sNode = "/root/init/resncd/resncdlist";
  133. var sBlocNode = "/root/main/keybloc/keybloclist";
  134. var sKeyBloc = "";
  135. //-------------------------------------------------------
  136. iFindNo = grd_bloclist.findRow("true", 1, 0, true, true);
  137. if (iFindNo <= 0) {
  138. messageBox("블럭을 선택하지 않았습니다! Key블럭을 작성", "E001");
  139. //-----------------------------------------------------
  140. for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++) {
  141. model.setValue(sNode+"["+iNo+"]/choi", "false");
  142. }
  143. //-----------
  144. return false;
  145. } else {
  146. for (var iNo=1; iNo <= getNodesetCount(sBlocNode); iNo++) {
  147. //---------------------------------------------------------
  148. if (model.getValue(sBlocNode+"["+iNo+"]/choi") == "true") {
  149. //-------------------
  150. if (sKeyBloc == "") {
  151. sKeyBloc += model.getValue(sBlocNode+"["+iNo+"]/cstecnts");
  152. } else {
  153. sKeyBloc += ", " + model.getValue(sBlocNode+"["+iNo+"]/cstecnts");
  154. }
  155. }
  156. }
  157. }
  158. //-----------------------------------------------------
  159. for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++) {
  160. model.setValue(sNode+"["+iNo+"]/choi", "false");
  161. }
  162. //----------------------------------------------
  163. model.setValue(sNode+"["+iRowNo+"]/choi", "true");
  164. sKeyBloc += " - " + model.getValue(sNode+"["+iRowNo+"]/resncnts");
  165. model.makeValue("/root/temp/keybloc", sKeyBloc);
  166. //---------------------
  167. grd_exmplist.refresh();
  168. tar_keybloc.refresh();
  169. }
  170. /* @group : 블럭조회
  171. * @ver : 2007.11.08 (CMCDEV-0001)
  172. * @by : 유동철(ACK)
  173. * @-----------------------------------
  174. * @type : function
  175. * @access : public
  176. * @desc : 확인버튼 처리 Function
  177. */
  178. function fExeSave() {
  179. opener.javascript.setParameter("SMLPR00100_keybloc", model.getValue("/root/temp/keybloc"));
  180. window.close();
  181. }
  182. ]]>
  183. </script>
  184. </xhtml:head>
  185. <xhtml:body pagewidth="1108" pageheight="560" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  186. <group id="grp_biz" style="left:0px; top:0px; width:1090px; height:517; ">
  187. <line id="line18" class="line_1" style="x1:273px; y1:20px; x2:595px; y2:20px; "/>
  188. <caption id="caption37" class="tit_2" style="left:278px; top:5px; width:144px; height:14px; ">예문목록</caption>
  189. <datagrid id="grd_exmplist" nodeset="/root/init/resncd/resncdlist" class="datagrid2" autoresize="true" caption="선택^기관코드^flagcd^resncd^내용" colsep="^" colwidth="50, 0, 0, 0, 250" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" navindex="2" style="left:273px; top:25px; width:322px; height:492px; ">
  190. <col ref="choi" type="checkbox"/>
  191. <col ref="instcd"/>
  192. <col ref="baseflagcd"/>
  193. <col ref="resncd"/>
  194. <col ref="resncnts"/>
  195. <script type="javascript" ev:event="onclick">
  196. <![CDATA[
  197. fExeExmpClick();
  198. ]]>
  199. </script>
  200. </datagrid>
  201. <line id="line1" class="line_1" style="x1:0px; y1:20px; x2:270px; y2:20px; "/>
  202. <caption id="caption1" class="tit_2" style="left:5px; top:5px; width:205px; height:13px; ">블럭(Cassette) 목록</caption>
  203. <datagrid id="grd_bloclist" nodeset="/root/main/keybloc/keybloclist" class="datagrid2" autoresize="true" caption="선&#xA;택^기관코드^ptno^spcacptdd^spcacptno^spcacptseqno^csteno^블럭내용^블럭내용" colsep="^" colwidth="50, 0, 0, 0, 0, 0, 0, 200, 0" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" navindex="1" style="left:0px; top:25px; width:270px; height:492; ">
  204. <col ref="choi" type="checkbox"/>
  205. <col ref="instcd"/>
  206. <col ref="ptno"/>
  207. <col ref="spcacptdd"/>
  208. <col ref="spcacptno"/>
  209. <col ref="spcacptseqno"/>
  210. <col ref="csteno"/>
  211. <col ref="cstecnts"/>
  212. <col ref="cstecnt"/>
  213. </datagrid>
  214. <line id="line2" class="line_1" style="x1:598px; y1:20px; x2:1090px; y2:20px; "/>
  215. <caption id="caption2" class="tit_2" style="left:603px; top:5px; width:144px; height:14px; ">Key블럭</caption>
  216. <textarea id="tar_keybloc" ref="/root/temp/keybloc" navindex="3" style="left:598px; top:25px; width:492px; height:492px; "/>
  217. </group>
  218. <group id="grp_btn" scroll="auto" style="left:0px; top:517; width:1090; height:27px; ">
  219. <button id="btn_exit" class="btn4_letter2" navindex="5" style="left:1034; top:5px; width:56px; height:22px; ">
  220. <caption>닫기</caption>
  221. <script type="javascript" ev:event="DOMActivate">
  222. <![CDATA[
  223. fExeClose();
  224. ]]>
  225. </script>
  226. </button>
  227. <button id="btn_save" class="btn4_letter2" navindex="4" style="left:975; top:5px; width:56px; height:22px; ">
  228. <caption>확인</caption>
  229. <script type="javascript" ev:event="DOMActivate">
  230. <![CDATA[
  231. fExeSave();
  232. ]]>
  233. </script>
  234. </button>
  235. <line id="line17" class="line_6" style="x1:0px; y1:0px; x2:1090; y2:0px; "/>
  236. </group>
  237. </xhtml:body>
  238. </xhtml:html>