SMZMR00101_원격목적지관리.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  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>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <test/>
  10. <main>
  11. <destlist>
  12. <dstlist/>
  13. </destlist>
  14. <equiplist>
  15. <eqlist/>
  16. </equiplist>
  17. <destitem>
  18. <destnm/>
  19. <destdesc/>
  20. <fstrgstrid/>
  21. <fstrgstdt/>
  22. <lastupdtrid/>
  23. <lastupdtdt/>
  24. </destitem>
  25. </main>
  26. <send>
  27. <searchcond/>
  28. <searchvalue/>
  29. <destnm/>
  30. <destlist/>
  31. <eqlist/>
  32. </send>
  33. <init>
  34. <comcd>
  35. </comcd>
  36. </init>
  37. <hidden>
  38. <comcd/>
  39. <msg/>
  40. </hidden>
  41. </root>
  42. </instance>
  43. <script type="javascript" ev:event="xforms-ready">
  44. <![CDATA[
  45. fInitialize();
  46. ]]>
  47. </script>
  48. <submission id="TRZMR00101" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/destlist">
  49. <script type="javascript" ev:event="xforms-submit-error">
  50. <![CDATA[
  51. ]]>
  52. </script>
  53. </submission>
  54. <submission id="TRZMR00102" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/equiplist"/>
  55. <submission id="TXZMR00101" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/destlist"/>
  56. <submission id="TXZMR00102" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/equiplist"/>
  57. </model>
  58. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  59. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  60. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  61. <script type="javascript" src="../../../com/remotealertweb/js/ZMR00101.js"/>
  62. </xhtml:head>
  63. <xhtml:body guideline="1,1360;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  64. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  65. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:199px; height:14px; ">원격목적지관리</caption>
  66. </group>
  67. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  68. <button id="btn_init" class="btn4_letter3" style="left:1126px; top:3px; width:68px; height:22px; ">
  69. <caption>초기화</caption>
  70. <script type="javascript" ev:event="DOMActivate">
  71. <![CDATA[
  72. fInitialize();
  73. ]]>
  74. </script>
  75. </button>
  76. <line id="line32" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  77. </group>
  78. <group id="group5" scroll="auto" style="left:0px; top:40px; width:1195px; height:740px; ">
  79. <line id="line3" class="line_2" style="x1:463px; y1:80px; x2:1195px; y2:80px; "/>
  80. <caption id="caption26" class="tit_2" style="left:6px; top:61px; width:180px; height:13px; ">원격목적지</caption>
  81. <line id="line9" class="line_1" style="x1:0px; y1:77px; x2:450px; y2:77px; "/>
  82. <datagrid id="grd_destlist" nodeset="/root/main/destlist/dstlist" caption="목적지명^목적지설명^수정일시" colwidth="90, 206, 120" dataheight="25" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" style="left:0px; top:80px; width:450px; height:655px; text-align:center; border-color:#808080; ">
  83. <col ref="destnm" type="input"/>
  84. <col ref="destdesc" type="input" style="text-align:center; "/>
  85. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  86. <script type="javascript" ev:event="onclick">
  87. <![CDATA[
  88. fClickGrid();
  89. ]]>
  90. </script>
  91. <script type="javascript" ev:event="ondblclick">
  92. <![CDATA[
  93. fEditGrid();
  94. ]]>
  95. </script>
  96. </datagrid>
  97. <button id="btn_save_acntitem" class="btn5_letter2" style="left:407px; top:57px; width:42px; height:19px; ">
  98. <caption>저장</caption>
  99. <script type="javascript" ev:event="DOMActivate">
  100. <![CDATA[
  101. if(!checkGridUpdate(grd_destlist))
  102. {
  103. messageBox("저장할 자료가 존재하지 않습니다.", "E999");
  104. return;
  105. }
  106. if(checkGridField(grd_destlist,"destnm")==false)
  107. {
  108. messageBox("데이터중에 비어있는 필수필드가 있습니다.", "E999");
  109. return;
  110. }
  111. model.setValue("/root/send/destlist",grd_destlist.getUpdateData());
  112. if ( submit("TXZMR00101") ) {
  113. grd_destlist.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
  114. }
  115. ]]>
  116. </script>
  117. </button>
  118. <line id="line1" class="line_1" style="x1:463px; y1:108px; x2:1195px; y2:108px; "/>
  119. <datagrid id="grd_eqlist" nodeset="/root/main/equiplist/eqlist" caption="관계^장비ID^목적지명^장비명^장비설명^프린터명^수정일시" colwidth="30, 0, 0, 130, 288, 130, 120" dataheight="25" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" style="left:463px; top:111px; width:732px; height:624px; text-align:center; border-color:#808080; ">
  120. <col ref="relation" type="checkbox" checkvalue="Y,N"/>
  121. <col ref="eqmtid"/>
  122. <col ref="destnm"/>
  123. <col ref="eqmtnm" type="input" style="text-align:center; "/>
  124. <col ref="eqmtpos" type="input"/>
  125. <col ref="prntrnm" type="input" style="text-align:center; "/>
  126. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
  127. <script type="javascript" ev:event="xforms-deselect">
  128. <![CDATA[
  129. grd_eqlist.addStatus(grd_eqlist.row,"update");
  130. ]]>
  131. </script>
  132. </datagrid>
  133. <button id="button3" class="btn5_letter2" style="left:1151px; top:88px; width:42px; height:19px; ">
  134. <caption>저장</caption>
  135. <script type="javascript" ev:event="DOMActivate">
  136. <![CDATA[
  137. if(!checkGridUpdate(grd_eqlist))
  138. {
  139. messageBox("저장할 자료가 존재하지 않습니다.", "E999");
  140. return;
  141. }
  142. if(checkGridField(grd_eqlist,"eqmtnm")==false)
  143. {
  144. messageBox("데이터중에 비어있는 필수필드가 있습니다.", "E999");
  145. return;
  146. }
  147. model.setValue("/root/send/eqlist",grd_eqlist.getUpdateData());
  148. model.setValue("/root/send/destnm", model.getValue("/root/main/destitem/destnm"));
  149. if ( submit("TXZMR00102") ) {
  150. grd_eqlist.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
  151. }
  152. ]]>
  153. </script>
  154. </button>
  155. <caption id="caption1" class="tit_2" style="left:469px; top:92px; width:180px; height:13px; ">원격장비</caption>
  156. <group id="group3" style="left:0px; top:14px; width:450px; height:35px; vertical-align:top; ">
  157. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:450px; height:35px; "/>
  158. <button id="button5" class="btn1_letter2" style="left:387px; top:7px; width:56px; height:22px; ">
  159. <caption>조회</caption>
  160. <script type="javascript" ev:event="DOMActivate">
  161. <![CDATA[
  162. submit("TRZMR00101");
  163. ]]>
  164. </script>
  165. </button>
  166. <line id="line2" class="line_4" style="x1:371px; y1:7px; x2:371px; y2:29px; "/>
  167. <caption id="caption3" class="search_name" style="left:16px; top:8px; width:120px; height:17px; ">원격목적지 조회</caption>
  168. <select1 id="cmb_search" ref="/root/send/searchcond" class="combo_search" appearance="minimal" style="left:140px; top:8px; width:95px; height:19px; ">
  169. <choices>
  170. <item>
  171. <label>목적지명</label>
  172. <value>name</value>
  173. </item>
  174. <item>
  175. <label>목적지설명</label>
  176. <value>desc</value>
  177. </item>
  178. </choices>
  179. </select1>
  180. <input id="input1" ref="/root/send/searchvalue" class="input_search" style="left:245px; top:8px; width:95px; height:19px; "/>
  181. </group>
  182. <line id="line10" class="line_1" style="x1:463px; y1:29px; x2:1195px; y2:29px; "/>
  183. <caption id="caption32" class="cell_1" style="left:463px; top:34px; width:100px; height:23px; text-align:left; vertical-align:middle; ">목적지명</caption>
  184. <line id="line14" class="line_2" style="x1:463px; y1:56px; x2:1195px; y2:56px; "/>
  185. <input id="ipt_destdesc" ref="/root/main/destitem/destdesc" class="input_default" disabled="true" style="left:802px; top:35px; width:151px; height:19px; "/>
  186. <input id="ipt_destnm" ref="/root/main/destitem/destnm" class="input_default" disabled="true" style="left:566px; top:35px; width:130px; height:19px; "/>
  187. <caption id="caption27" class="tit_2" style="left:469px; top:14px; width:247px; height:14px; ">선택된 원격목적지</caption>
  188. <caption id="caption28" class="cell_1" style="left:699px; top:34px; width:100px; height:23px; text-align:left; vertical-align:middle; ">목적지설명</caption>
  189. <button id="button8" class="btn2_letter3" style="left:351px; top:57px; width:53px; height:19px; ">
  190. <caption>행추가</caption>
  191. <script type="javascript" ev:event="DOMActivate">
  192. <![CDATA[
  193. grd_destlist.addItem(); // 입력할 행 추가.
  194. ]]>
  195. </script>
  196. </button>
  197. <button id="button1" class="btn2_letter3" style="left:1039px; top:88px; width:53px; height:19px; ">
  198. <caption>행추가</caption>
  199. <script type="javascript" ev:event="DOMActivate">
  200. <![CDATA[
  201. grd_eqlist.addItem(); // 입력할 행 추가.
  202. ]]>
  203. </script>
  204. </button>
  205. <button id="button2" class="btn2_letter3" style="left:1095px; top:88px; width:53px; height:19px; ">
  206. <caption>행삭제</caption>
  207. <script type="javascript" ev:event="DOMActivate">
  208. <![CDATA[
  209. fDeleteGrid(grd_eqlist);
  210. ]]>
  211. </script>
  212. </button>
  213. <input id="ipt_fstrgstrid" ref="/root/main/destitem/fstrgstrid" class="input_default" disabled="true" style="left:1060px; top:35px; width:130px; height:19px; "/>
  214. <caption id="caption2" class="cell_1" style="left:957px; top:34px; width:100px; height:23px; text-align:left; vertical-align:middle; ">최초등록자ID</caption>
  215. <caption id="caption4" class="cell_1" style="left:463px; top:58px; width:100px; height:23px; text-align:left; vertical-align:middle; ">최초등록일시</caption>
  216. <caption id="caption5" class="cell_1" style="left:957px; top:58px; width:100px; height:23px; text-align:left; vertical-align:middle; ">최종수정일시</caption>
  217. <input id="ipt_lastupdtrid" ref="/root/main/destitem/lastupdtrid" class="input_default" disabled="true" style="left:802px; top:59px; width:151px; height:19px; "/>
  218. <input id="ipt_fstrgstdt" ref="/root/main/destitem/fstrgstdt" class="input_default" disabled="true" format="yyyy-mm-dd hh:nn:ss" style="left:566px; top:59px; width:130px; height:19px; "/>
  219. <input id="ipt_lastupdtdt" ref="/root/main/destitem/lastupdtdt" class="input_default" disabled="true" format="yyyy-mm-dd hh:nn:ss" style="left:1060px; top:59px; width:130px; height:19px; "/>
  220. <caption id="caption7" class="cell_1" style="left:699px; top:58px; width:100px; height:23px; text-align:left; vertical-align:middle; ">최종수정자ID</caption>
  221. </group>
  222. </xhtml:body>
  223. </xhtml:html>