SMAEB01200_장비코드관리.xrw 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <eqmtlist>
  11. <item>
  12. <sortno/>
  13. <basecd/>
  14. <basecdflagdesc/>
  15. <basecdcnts/>
  16. <excuposseqcd/>
  17. <basesuppdeptcd/>
  18. <basecdflag/>
  19. </item>
  20. </eqmtlist>
  21. </main>
  22. <send>
  23. <basecd/>
  24. <req>
  25. <data/>
  26. </req>
  27. <globalinstance>
  28. <instance1/>
  29. </globalinstance>
  30. </send>
  31. <init>
  32. <popupmenu>
  33. <grid01>
  34. <item>
  35. <name>장비검교정관리</name>
  36. <func>fPopupRpirMngtList</func>
  37. </item>
  38. </grid01>
  39. </popupmenu>
  40. </init>
  41. <hidden>
  42. <item>
  43. </item>
  44. </hidden>
  45. </root>
  46. </instance>
  47. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  48. <submission id="TRAEB01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/eqmtlist"/>
  49. <submission id="TXAEB01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden"/>
  50. <script type="javascript" ev:event="xforms-ready">
  51. <![CDATA[
  52. aezfSetSuppDeptcd();
  53. model.removeNodeset("/root/main/eqmtlist/item");
  54. model.refresh();
  55. model.setFocus("ipt_basecd");
  56. ]]>
  57. </script>
  58. </model>
  59. </xhtml:head>
  60. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  61. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  62. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  64. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  65. <script type="javascript">
  66. <![CDATA[
  67. /* @group : 장비코드관리
  68. * @ver : 2008.03.14
  69. * @by : 장준원
  70. * @-----------------------------------
  71. * @type : function
  72. * @access : public
  73. * @desc : 장비 검교정관리를 호출하기 위한 Function
  74. */
  75. function fPopupRpirMngtList() {
  76. var rowidx = grd_eqmtlist.row;
  77. modal("SMAEQ01200","","","","SMAEQ01200", "/root/main/eqmtlist/item["+rowidx+"]/basecd", "/root/send/basecd", "min:visible; max:true; resize:true;");
  78. // modal 이 아닌 상황에서 child 를 제어하는 것은 정상작동하지 않습니다.
  79. //window.children.item("SMAEQ01200").model.refresh();
  80. //window.children.item("SMAEQ01200").model.dispatch("xforms-ready");
  81. //window.children.item("SMAEQ01200").model.setValue("/root/send/basecd", "");
  82. //window.children.item("SMAEQ01200").model.refresh();
  83. }
  84. ]]>
  85. </script>
  86. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  87. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  88. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:106px; height:14px; ">장비코드 관리</caption>
  89. </group>
  90. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  91. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  92. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  93. <line id="line13" class="line_4" style="x1:1116px; y1:7px; x2:1116px; y2:29px; "/>
  94. <button id="btn_sea" class="btn1_letter2" style="left:1125px; top:7px; width:56px; height:22px; ">
  95. <caption>조회</caption>
  96. <script type="javascript" ev:event="DOMActivate">
  97. <![CDATA[
  98. submit("TRAEB01201");
  99. ]]>
  100. </script>
  101. </button>
  102. <input id="input8" ref="/root/send/basecd" class="input_search" style="left:104px; top:9px; width:100px; height:19px; ">
  103. <script type="javascript" ev:event="onkeydown">
  104. <![CDATA[
  105. if ( event.keyCode == 13 ) {
  106. setInputNodeCurText();
  107. submit("TRAEB01201");
  108. }
  109. ]]>
  110. </script>
  111. </input>
  112. <caption id="caption25" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">장비코드 :</caption>
  113. </group>
  114. <line id="line2" class="line_1" style="x1:0px; y1:72px; x2:1194px; y2:72px; "/>
  115. <button id="btn_grdadd" class="btn2_letter3" style="left:1085px; top:50px; width:53px; height:19px; ">
  116. <caption>행추가</caption>
  117. <script type="javascript" ev:event="DOMActivate">
  118. <![CDATA[
  119. grd_eqmtlist.addRow();
  120. grd_eqmtlist.row = grd_eqmtlist.bottomRow;
  121. var cnt = parseInt(grd_eqmtlist.row);
  122. model.makeValue("/root/main/eqmtlist/item[" + cnt + "]/basesuppdeptcd", model.getValue("/root/send/globalinstance/instance1") );
  123. model.makeValue("/root/main/eqmtlist/item[" + cnt + "]/basecdflag", "J");
  124. ]]>
  125. </script>
  126. </button>
  127. <button id="btn_grddel" class="btn2_letter3" style="left:1142px; top:50px; width:53px; height:19px; ">
  128. <caption>행삭제</caption>
  129. <script type="javascript" ev:event="DOMActivate">
  130. <![CDATA[
  131. deleteSelectedRows(grd_eqmtlist, true);
  132. ]]>
  133. </script>
  134. </button>
  135. <datagrid id="grd_eqmtlist" nodeset="/root/main/eqmtlist/item" caption="순번^코드^장비명^비고^장비구분" colsep="^" colwidth="100, 241, 393, 309, 120, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:77px; width:1195px; height:667px; ">
  136. <col ref="sortno" type="input"/>
  137. <col ref="basecd" type="input"/>
  138. <col ref="basecdflagdesc" type="input"/>
  139. <col ref="basecdcnts" type="input"/>
  140. <col ref="excuposseqcd" type="input"/>
  141. <col ref="basesuppdeptcd" type="input" visibility="hidden"/>
  142. <col ref="basecdflag" type="input" visibility="hidden"/>
  143. <script type="javascript" ev:event="onmousedown">
  144. <![CDATA[
  145. if ( (grd_eqmtlist.row >= grd_eqmtlist.fixedRows) && (grd_eqmtlist.isCell(event.target))) {
  146. setPopupMenu("grd_eqmtlist", false, "/root/init/popupmenu/grid01/item", "name", "func");
  147. }
  148. ]]>
  149. </script>
  150. <script type="javascript" ev:event="DOMFocusOut">
  151. <![CDATA[
  152. initPopupMenu();
  153. ]]>
  154. </script>
  155. </datagrid>
  156. <button id="btn_fixasetcd" class="btn2_letter6" visibility="visible" style="left:997px; top:50px; width:86px; height:19px; ">
  157. <caption>장비코드조회</caption>
  158. <script type="javascript" ev:event="DOMActivate">
  159. <![CDATA[
  160. grd_eqmtlist.addRow();
  161. grd_eqmtlist.row = grd_eqmtlist.bottomRow;
  162. setParameter("SPAEB00101_param_srcXpath1", "/root/main/eqmtlist/item");
  163. setParameter("SPAEB00101_param_srcXgrid1", "grd_eqmtlist");
  164. setParameter("SPAEB00101_param_srcXrow1", grd_eqmtlist.row);
  165. setParameter("SPAEB00101_param_srcXnode1", "basecd");
  166. setParameter("SPAEB00101_param_srcXnodenm1", "basecdflagdesc");
  167. modal("SPAEB00101");
  168. model.setValue("/root/main/eqmtlist/item["+grd_eqmtlist.row+"]/sortno", "0");
  169. model.makeValue("/root/main/eqmtlist/item["+ grd_eqmtlist.row+ "]/basesuppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
  170. model.makeValue("/root/main/eqmtlist/item[" + grd_eqmtlist.row + "]/basecdflag", "J");
  171. model.refresh();
  172. //grd_eqmtlist.addStatus(grd_eqmtlist.row,"update");
  173. ]]>
  174. </script>
  175. </button>
  176. <button id="button1" visibility="hidden" style="left:590px; top:45px; width:100px; height:20px; ">
  177. <caption>button1</caption>
  178. <script type="javascript" ev:event="DOMActivate">
  179. <![CDATA[
  180. alert(grd_eqmtlist.rowstatus(grd_eqmtlist.row));
  181. ]]>
  182. </script>
  183. </button>
  184. </group>
  185. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  186. <button id="btn_save" class="btn4_letter2" style="left:1138px; top:5px; width:56px; height:22px; ">
  187. <caption>저장</caption>
  188. <script type="javascript" ev:event="DOMActivate">
  189. <![CDATA[
  190. if ( messageBox("","Q002")==6 ) {
  191. var update = getGridUpdateData(grd_eqmtlist);
  192. // var update = model.getValue("/root/send/req/data");
  193. if(update == ""){
  194. messageBox("업데이트 정보가 없습니다.", "I");
  195. return 0;
  196. } else {
  197. //alert(model.getValue("/root/send/globalinstance/instance1"));
  198. model.setValue("/root/send/req/data", update);
  199. //model.setV
  200. submit("TXAEB01201");
  201. }
  202. }
  203. submit("TRAEB01201");
  204. ]]>
  205. </script>
  206. <script type="javascript" ev:event="DOMFocusIn">
  207. <![CDATA[
  208. checkKeyColumn("grd_eqmtlist");
  209. ]]>
  210. </script>
  211. </button>
  212. </group>
  213. </xhtml:body>
  214. </xhtml:html>