SPZHI00130_고정자산선택팝업.xrw 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : 장비부품 현황조회.xrw
  4. * 설 명 : 장비,부품 선택 저장.
  5. * 설 계 자 : 김병국
  6. * 작 성 자 : 김병국
  7. * 작 성 일 : 2012.11.21
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  12. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  13. <xhtml:head>
  14. <xhtml:title>고정자산선택팝업</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <cond>
  20. <flag>nm</flag>
  21. <name/>
  22. <deptcd/>
  23. <deptnm/>
  24. </cond>
  25. <fixasetinfo>
  26. <fixasetlist/>
  27. </fixasetinfo>
  28. </main>
  29. <send>
  30. <reqdata/>
  31. </send>
  32. </root>
  33. </instance>
  34. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  35. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  36. <script type="javascript" src="../../../com/irmsweb/js/IrmsCom.js"/>
  37. <script type="javascript" ev:event="xforms-ready">
  38. <![CDATA[
  39. fInit();
  40. ]]>
  41. </script>
  42. <submission id="TRZHI00107" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/reqdata" replace="instance" resultref="/root/main/fixasetinfo"/>
  43. </model>
  44. <script type="javascript">
  45. <![CDATA[
  46. function fInit(){
  47. model.setValue(ipt_deptcd.attribute("ref"), getUserInfo("dutplcecd"));
  48. model.setValue(ipt_deptnm.attribute("ref"), getUserInfo("dutplcenm"));
  49. ipt_deptcd.refresh();
  50. ipt_deptnm.refresh();
  51. }
  52. /*
  53. * 조회
  54. */
  55. function fSearch(){
  56. var name = model.getValue(ipt_cdnm.attribute("ref"));
  57. if(name.length == 0) {
  58. messageBox("검색어는 한글자 이상이어야 합니다.", "I");
  59. return;
  60. }
  61. model.copyNode("/root/send/reqdata", "/root/main/cond");
  62. submit("TRZHI00107");
  63. }
  64. function fCnfm() {
  65. }
  66. ]]>
  67. </script>
  68. </xhtml:head>
  69. <xhtml:body pagewidth="534" pageheight="543" guideline="1,1194;1,517;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  70. <group id="group3" scroll="auto" style="left:0px; top:0px; width:518px; height:515px; ">
  71. <datagrid id="grd_fixasetlist" nodeset="/root/main/fixasetinfo/fixasetlist" class="datagrid2" caption="flag^자산번호^자산명^규격^모델^설치부서^관리부서" colsep="^" colwidth="0, 94, 139, 84, 91, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:100px; width:517px; height:410px; ">
  72. <col ref="flag" visibility="hidden"/>
  73. <col ref="fixasetcd"/>
  74. <col ref="fixasetnm"/>
  75. <col ref="goodspec"/>
  76. <col ref="goodmodel"/>
  77. <col ref="installplcenm"/>
  78. <col ref="mngtdeptnm"/>
  79. <script type="javascript" ev:event="ondblclick">
  80. <![CDATA[
  81. if(grd_fixasetlist.isCell(event.target) && grd_fixasetlist.mouseRow >= grd_fixasetlist.fixedrows){
  82. opener.javascript.setParameter("SPZHI00130_fixasetcd", grd_fixasetlist.valueMatrix(grd_fixasetlist.row, grd_fixasetlist.colRef("fixasetcd")));
  83. opener.javascript.setParameter("SPZHI00130_fixasetnm", grd_fixasetlist.valueMatrix(grd_fixasetlist.row, grd_fixasetlist.colRef("fixasetnm")));
  84. window.close();
  85. }
  86. ]]>
  87. </script>
  88. </datagrid>
  89. <group id="group2" style="left:0px; top:0px; width:517px; height:70px; vertical-align:top; ">
  90. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:517px; height:70px; background-color:#fffbf2; border-color:#ffd799; "/>
  91. <input id="ipt_cdnm" ref="/root/main/cond/name" class="input_search" style="left:240px; top:12px; width:150px; height:19px; ">
  92. <script type="javascript" ev:event="onkeyup">
  93. <![CDATA[
  94. inputEnterKey("btn_search", "DOMActivate");
  95. ]]>
  96. </script>
  97. </input>
  98. <line id="line13" style="x1:409px; y1:11px; x2:409px; y2:32px; border-color:#ffe4bb; border-left-style:solid; "/>
  99. <button id="btn_search" class="btn1_letter2" style="left:445px; top:12px; width:56px; height:22px; ">
  100. <caption>조회</caption>
  101. <script type="javascript" ev:event="DOMActivate">
  102. <![CDATA[
  103. fSearch();
  104. ]]>
  105. </script>
  106. </button>
  107. <select1 id="radio1" ref="/root/main/cond/flag" appearance="full" cols="3" overflow="visible" style="left:105px; top:15px; width:130px; height:15px; border-style:none; ">
  108. <choices>
  109. <item>
  110. <label>자산코드</label>
  111. <value>cd</value>
  112. </item>
  113. <item>
  114. <label>자산명</label>
  115. <value>nm</value>
  116. </item>
  117. </choices>
  118. </select1>
  119. <caption id="caption1" class="search_name" style="left:20px; top:13px; width:100px; height:17px; ">조건구분 :</caption>
  120. <caption id="caption2" class="search_name" style="left:20px; top:40px; width:85px; height:17px; ">관리부서 :</caption>
  121. <button id="button1" class="icon_search" navindex="-1" visibility="visible" style="left:210px; top:40px; width:16px; height:16px; ">
  122. <caption/>
  123. <script type="javascript" ev:event="DOMActivate">
  124. <![CDATA[
  125. fPopUpPlceInfo("ipt_deptcd", "ipt_deptnm");
  126. ]]>
  127. </script>
  128. </button>
  129. <input id="ipt_deptnm" ref="/root/main/cond/deptnm" class="output_fix" disabled="true" navindex="-1" visibility="visible" editable="false" appearance="input" style="left:230px; top:40px; width:175px; height:19px; "/>
  130. <input id="ipt_deptcd" ref="/root/main/cond/deptcd" class="input_search" visibility="visible" style="left:105px; top:40px; width:100px; height:19px; ">
  131. <script type="javascript" ev:event="xforms-value-changed">
  132. <![CDATA[
  133. ]]>
  134. </script>
  135. </input>
  136. </group>
  137. <line id="line1" class="line_1" style="x1:0px; y1:95px; x2:517px; y2:95px; "/>
  138. <caption id="caption3" class="tit_2" style="left:0px; top:80px; width:100px; height:13px; ">자산목록</caption>
  139. </group>
  140. <button id="button4" class="btn4_letter2" visibility="hidden" style="left:400px; top:515px; width:56px; height:22px; ">
  141. <caption>확인</caption>
  142. <script type="javascript" ev:event="DOMActivate">
  143. <![CDATA[
  144. fCnfm();
  145. ]]>
  146. </script>
  147. </button>
  148. <button id="button9" class="btn4_letter2" style="left:459px; top:515px; width:56px; height:22px; ">
  149. <caption>닫기</caption>
  150. <close ev:event="onclick"/>
  151. </button>
  152. </xhtml:body>
  153. </xhtml:html>