SMAEQ01200_검교정 관리.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  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. <rpireqmtlist>
  11. <item>
  12. <rgstrdt/>
  13. <excuroomcd/>
  14. <eqcd/>
  15. <eqcdnm/>
  16. <rectrpirdd/>
  17. <rpirdd/>
  18. <alertdayno/>
  19. <alertcnfmyn/>
  20. <rpircnfmyn/>
  21. <suppdeptcd/>
  22. <rpirtm/>
  23. <rpircmpynm/>
  24. <rpircmt/>
  25. <rpircnts/>
  26. <excuroomnm/>
  27. </item>
  28. </rpireqmtlist>
  29. </main>
  30. <send>
  31. <basecd/>
  32. <basecdflagdesc/>
  33. <globalinstance>
  34. <instance1/>
  35. </globalinstance>
  36. <req>
  37. <data/>
  38. </req>
  39. </send>
  40. <init>
  41. <eqmtlist>
  42. <item>
  43. <basecd/>
  44. <basecdflagdesc/>
  45. </item>
  46. </eqmtlist>
  47. <cmb_info>
  48. <initexecroom>
  49. <excuroomcdid/>
  50. <excuroomcdnm/>
  51. </initexecroom>
  52. </cmb_info>
  53. <popupmenu>
  54. <grid01>
  55. <item>
  56. <name>장비이력대장</name>
  57. <func>fPopupRpirList</func>
  58. </item>
  59. </grid01>
  60. </popupmenu>
  61. </init>
  62. <hidden/>
  63. </root>
  64. </instance>
  65. <submission id="TRAEQ01202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/eqmtlist"/>
  66. <submission id="TRAEA01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_info2"/>
  67. <submission id="TXAEQ01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req/data" replace="instance" resultref="/root/hidden"/>
  68. <submission id="TRAEQ01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rpireqmtlist"/>
  69. <script type="javascript" ev:event="xforms-ready">
  70. <![CDATA[
  71. aezfSetSuppDeptcd();
  72. model.removeNodeset("/root/main/rpireqmtlist/item");
  73. model.refresh();
  74. submit("TRAEQ01202"); // 장비코드
  75. submit("TRAEA01301"); // 검사실코드
  76. readfunc(); // 검교정관리 조회
  77. model.setFocus("input8");
  78. ]]>
  79. </script>
  80. </model>
  81. </xhtml:head>
  82. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  83. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  84. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  85. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  86. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  87. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  88. <script type="javascript">
  89. <![CDATA[
  90. /* @group : 장비검교정관리
  91. * @ver : 2008.03.14
  92. * @by : 장준원
  93. * @-----------------------------------
  94. * @type : function
  95. * @access : public
  96. * @desc : 조회를 위한 Function
  97. */
  98. function readfunc() {
  99. submit("TRAEQ01201"); // 검교정관리 조회
  100. var srchLength1 = model.instances(0).selectNodes( "/root/main/rpireqmtlist/item" ).length;
  101. if ( srchLength1 > 0 ) {
  102. for ( var i = 1; i <= srchLength1; i++ ) {
  103. if ( model.getValue("/root/main/rpireqmtlist/item[" + i + "]/rpirdd").getTrim() == "00000000" ) {
  104. grd_rpireqmtlist.rowstyle( i , "data" , "background-color" ) = "#ffffff";
  105. }else {
  106. grd_rpireqmtlist.rowstyle( i , "data" , "background-color" ) = "#49e5fb";
  107. }
  108. }
  109. }
  110. }
  111. /* @group : 장비검교정관리
  112. * @ver : 2008.03.14
  113. * @by : 장준원
  114. * @-----------------------------------
  115. * @type : function
  116. * @access : public
  117. * @desc : 장비이력대장 조회를 위한 Function
  118. */
  119. function fPopupRpirList() {
  120. var rowidx = grd_rpireqmtlist.row
  121. if ( model.getValue("/root/main/rpireqmtlist/item[" + grd_rpireqmtlist.row + "]/rpirdd") == "00000000" ) {
  122. messageBox("점검일자가 존재하지 않습니다. \n\n 장비이력대장 출력은 점검일자가 존재해야 합니다.", "E999", "");
  123. return;
  124. }
  125. model.setValue("/root/main/rpireqmtlist/item["+rowidx+"]/excuroomnm", grd_rpireqmtlist.labelMatrix(grd_rpireqmtlist.row, 2) );
  126. if(window.children.item("SPAEQ01201") == null)
  127. {
  128. var xpt = 0;
  129. var ypt = 0;
  130. aezfTopMost("SPAEQ01201",1,xpt,ypt,"SPAEQ01201","/root/main/rpireqmtlist/item["+ rowidx +"]","/root/main/rpireqmtlist/item","",0,0);
  131. }else {
  132. copyNodesetType("/root/main/rpireqmtlist/item", "/root/main/rpireqmtlist/item["+ rowidx +"]", "replace" , window.children.item("SPAEQ01201").model, model);
  133. window.children.item("SPAEQ01201").model.refresh();
  134. //window.children.item("SPAEQ01201").model.dispatch("xforms-ready");
  135. }
  136. }
  137. ]]>
  138. </script>
  139. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  140. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  141. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:137px; height:14px; ">검교정 관리</caption>
  142. </group>
  143. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  144. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  145. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  146. <line id="line13" class="line_4" style="x1:1116px; y1:6px; x2:1116px; y2:28px; "/>
  147. <button id="btn_sea" class="btn1_letter2" style="left:1124px; top:7px; width:56px; height:22px; ">
  148. <caption>조회</caption>
  149. <script type="javascript" ev:event="DOMActivate">
  150. <![CDATA[
  151. readfunc();
  152. ]]>
  153. </script>
  154. </button>
  155. <input id="input8" ref="/root/send/basecdflagdesc" class="input_search" style="left:359px; top:9px; width:100px; height:19px; ">
  156. <script type="javascript" ev:event="onkeydown">
  157. <![CDATA[
  158. if ( event.keyCode == 13 ) {
  159. setInputNodeCurText();
  160. readfunc(); // 검교정관리 조회
  161. }
  162. ]]>
  163. </script>
  164. </input>
  165. <caption id="caption25" class="search_name" style="left:255px; top:9px; width:100px; height:17px; ">장비코드명 :</caption>
  166. <input id="input1" ref="/root/send/basecd" class="input_search" style="left:124px; top:9px; width:100px; height:19px; ">
  167. <script type="javascript" ev:event="onkeydown">
  168. <![CDATA[
  169. if ( event.keyCode == 13 ) {
  170. setInputNodeCurText();
  171. readfunc(); // 검교정관리 조회
  172. }
  173. ]]>
  174. </script>
  175. </input>
  176. <caption id="caption1" class="search_name" style="left:30px; top:9px; width:100px; height:17px; ">장비코드 :</caption>
  177. </group>
  178. <datagrid id="grd_rpireqmtlist" nodeset="/root/main/rpireqmtlist/item" caption="등록일시^검사/촬영실명^장비명^장비명2^검교정예정일자^실제 점검일자^알람적용일^알람확인여부^점검확인여부^부서코드^점검시간^수리회사^수리소견^수리내용^검사실명" colsep="^" colwidth="150, 124, 375, 78, 120, 120, 70, 90, 87, 100, 60, 100, 200, 200, 100" frozencols="6" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:79px; width:1195px; height:665px; ">
  179. <col ref="rgstrdt" format="yyyy-mm-dd hh:nn:ss" validateformat="true" style="text-align:center; "/>
  180. <col ref="excuroomcd" type="combo" style="text-align:center; ">
  181. <choices>
  182. <itemset nodeset="/root/init/cmb_info/initexecroom">
  183. <label ref="excuroomcdnm"/>
  184. <value ref="excuroomcdid"/>
  185. </itemset>
  186. </choices>
  187. </col>
  188. <col ref="eqcd" type="combo">
  189. <choices>
  190. <itemset nodeset="/root/init/eqmtlist/item">
  191. <label ref="basecdflagdesc"/>
  192. <value ref="basecd"/>
  193. </itemset>
  194. </choices>
  195. </col>
  196. <col ref="eqcdnm" visibility="hidden"/>
  197. <col ref="rectrpirdd" type="inputdate" format="yyyy-mm-dd" validateformat="true" style="text-align:center; "/>
  198. <col ref="rpirdd" type="inputdate" format="yyyy-mm-dd" validateformat="true" style="text-align:center; "/>
  199. <col ref="alertdayno" type="input" format="#,###" maxlength="9999" style="text-align:center; "/>
  200. <col ref="alertcnfmyn" style="text-align:center; "/>
  201. <col ref="rpircnfmyn" style="text-align:center; "/>
  202. <col ref="suppdeptcd" visibility="hidden"/>
  203. <col ref="rpirtm"/>
  204. <col ref="rpircmpynm"/>
  205. <col ref="rpircmt"/>
  206. <col ref="rpircnts"/>
  207. <col ref="excuroomnm" visibility="hidden"/>
  208. <script type="javascript" ev:event="xforms-value-changed">
  209. <![CDATA[
  210. var colidx = grd_rpireqmtlist.col;
  211. var rowidx = grd_rpireqmtlist.row
  212. if(grd_rpireqmtlist.colAttribute(colidx, "ref") == "eqcd") {
  213. model.setValue("/root/main/rpireqmtlist/item["+rowidx+"]/eqcdnm", grd_rpireqmtlist.labelMatrix(grd_rpireqmtlist.row, 3) );
  214. model.refresh();
  215. }
  216. if(grd_rpireqmtlist.colAttribute(colidx, "ref") == "excuroomcd") {
  217. model.setValue("/root/main/rpireqmtlist/item["+rowidx+"]/excuroomnm", grd_rpireqmtlist.labelMatrix(grd_rpireqmtlist.row, 2) );
  218. model.refresh();
  219. }
  220. if(grd_rpireqmtlist.colAttribute(colidx, "ref") == "rpirdd") {
  221. model.setValue("/root/main/rpireqmtlist/item["+rowidx+"]/excuroomnm", grd_rpireqmtlist.labelMatrix(grd_rpireqmtlist.row, 2) );
  222. model.refresh();
  223. }
  224. ]]>
  225. </script>
  226. <script type="javascript" ev:event="onmousedown">
  227. <![CDATA[
  228. if ( (grd_rpireqmtlist.row >= grd_rpireqmtlist.fixedRows) && (grd_rpireqmtlist.isCell(event.target))) {
  229. if ( model.getValue("/root/main/rpireqmtlist/item[" + grd_rpireqmtlist.row + "]/rpirdd") != "" ) {
  230. setPopupMenu("grd_rpireqmtlist", false, "/root/init/popupmenu/grid01/item", "name", "func");
  231. }
  232. }
  233. ]]>
  234. </script>
  235. <script type="javascript" ev:event="DOMFocusOut">
  236. <![CDATA[
  237. initPopupMenu();
  238. ]]>
  239. </script>
  240. </datagrid>
  241. <line id="line1" class="line_1" style="x1:1px; y1:73px; x2:1195px; y2:73px; "/>
  242. <button id="button51" class="btn2_letter2" style="left:1150px; top:50px; width:42px; height:19px; ">
  243. <caption>엑셀</caption>
  244. <script type="javascript" ev:event="DOMActivate">
  245. <![CDATA[
  246. var file = window.fileDialog("save","","false","","xls","Excel Files(*.xls)|*.xls");
  247. grd_rpireqmtlist.saveExcel(file);
  248. ]]>
  249. </script>
  250. </button>
  251. <button id="btn_grdadd" class="btn2_letter3" style="left:1036px; top:50px; width:53px; height:19px; ">
  252. <caption>행추가</caption>
  253. <script type="javascript" ev:event="DOMActivate">
  254. <![CDATA[
  255. grd_rpireqmtlist.addRow();
  256. grd_rpireqmtlist.row = grd_rpireqmtlist.bottomRow;
  257. var cnt = parseInt(grd_rpireqmtlist.row);
  258. //var datetime = getCurrentDateTime();
  259. model.makeValue("/root/main/rpireqmtlist/item[" + cnt + "]/suppdeptcd", model.getValue("/root/send/globalinstance/instance1") );
  260. model.makeValue("/root/main/rpireqmtlist/item[" + cnt + "]/alertcnfmyn", "N" );
  261. model.makeValue("/root/main/rpireqmtlist/item[" + cnt + "]/rpircnfmyn", "N" );
  262. ]]>
  263. </script>
  264. </button>
  265. <button id="btn_grddel" class="btn2_letter3" style="left:1093px; top:50px; width:53px; height:19px; ">
  266. <caption>행삭제</caption>
  267. <script type="javascript" ev:event="DOMActivate">
  268. <![CDATA[
  269. deleteSelectedRows(grd_rpireqmtlist, true);
  270. ]]>
  271. </script>
  272. </button>
  273. <button id="button27" class="btn2_letter6" style="left:925px; top:50px; width:86px; height:19px; ">
  274. <caption>장비이력대장</caption>
  275. <script type="javascript" ev:event="DOMActivate">
  276. <![CDATA[
  277. if ( model.getValue("/root/main/rpireqmtlist/item[" + grd_rpireqmtlist.row + "]/rpirdd") != "00000000" ) {
  278. fPopupRpirList();
  279. }else {
  280. messageBox("점검일자가 존재하지 않습니다. \n\n 장비이력대장 출력은 점검일자가 존재해야 합니다.", "E999", "");
  281. return;
  282. }
  283. ]]>
  284. </script>
  285. </button>
  286. </group>
  287. <button id="btn_save" class="btn4_letter2" style="left:1139px; top:762px; width:56px; height:22px; ">
  288. <caption>저장</caption>
  289. <script type="javascript" ev:event="DOMActivate">
  290. <![CDATA[
  291. if ( messageBox("","Q002")==6 ) {
  292. var update = getGridUpdateData(grd_rpireqmtlist);
  293. if(update == ""){
  294. messageBox("업데이트 정보가 없습니다.", "I");
  295. return 0;
  296. } else {
  297. model.setValue("/root/send/req/data", update);
  298. submit("TXAEQ01201");
  299. }
  300. }
  301. readfunc(); // 검교정관리 조회
  302. ]]>
  303. </script>
  304. </button>
  305. </xhtml:body>
  306. </xhtml:html>