SPMNG00500_장비코드조회.xrw 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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. <!--(20101201) 경북대 -->
  10. <init>
  11. <instcd/>
  12. </init>
  13. <!--(20101201) 경북대 -->
  14. <main>
  15. <fixasetcdlist>
  16. <chkyn/>
  17. <fixasetcd/>
  18. <goodflaghngnm/>
  19. </fixasetcdlist>
  20. <duplnode>
  21. <fixasetcdlist/>
  22. </duplnode>
  23. </main>
  24. <send>
  25. <instcd/>
  26. </send>
  27. <temp/>
  28. </root>
  29. </instance>
  30. <script type="javascript" ev:event="xforms-ready">
  31. <![CDATA[
  32. //화면 Control을 초기화한다
  33. // fCheckAuth();
  34. fInitialize();
  35. ]]>
  36. </script>
  37. <submission id="TRMNG00502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/fixasetcdlist"/>
  38. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  39. </model>
  40. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  41. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  42. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  43. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  44. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  45. <script type="javascript">
  46. <![CDATA[
  47. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  48. function fInitialize() {
  49. misfGridInit(grd_equipment);
  50. // misfComboComCdListMulti("Z0007", "cmb_instcd"); //기관코드,set 제제약 구분
  51. zbcfGetCodeList (new Array("Z0007"),new Array("/root/init/instcd"),true);
  52. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  53. cmb_instcd.refresh();
  54. grd_equipment.fixedcellcheckbox(0, grd_equipment.colRef("chkyn")) = true;
  55. btn_search.dispatch("DOMActivate");
  56. }
  57. function fCheckAuth() {
  58. btn_search.disabled = !checkAuth("R") ;
  59. btn_save.disabled = !checkAuth("X") ;
  60. }
  61. ]]>
  62. </script>
  63. </xhtml:head>
  64. <xhtml:body pagewidth="740" pageheight="500" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  65. <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:720px; height:475px; ">
  66. <group id="grp_sea" style="left:0px; top:0px; width:720px; height:35px; vertical-align:top; ">
  67. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:720px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  68. <button id="btn_search" class="btn1_letter2" style="left:654px; top:5px; width:56px; height:22px; ">
  69. <caption>조회</caption>
  70. <script type="javascript" ev:event="DOMActivate">
  71. <![CDATA[
  72. model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd")); // 기관 설정
  73. model.makeValue("/root/send/reqdata/goodflag", "E"); // 물품 설정
  74. model.makeValue("/root/send/reqdata/cntrdeptcd", "308%"); // 귀속부서 설정
  75. submit("TRMNG00502");
  76. ]]>
  77. </script>
  78. </button>
  79. <line id="line13" class="line_4" style="x1:639px; y1:5px; x2:639px; y2:27px; border-color:#ffe4bb; border-left-style:solid; "/>
  80. <caption id="caption62" class="search_name" style="left:10px; top:9px; width:86px; height:17px; ">기관코드 :</caption>
  81. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_essential" disabled="true" appearance="minimal" style="left:97px; top:8px; width:138px; height:19px; ">
  82. <choices>
  83. <!--(20101201) 경북대
  84. <itemset nodeset="/root/init/instcd">
  85. -->
  86. <itemset nodeset="/root/init/instcd/Z0007">
  87. <!--(20101201) 경북대 -->
  88. <label ref="cdnm"/>
  89. <value ref="cdid"/>
  90. </itemset>
  91. </choices>
  92. <script type="javascript" ev:event="xforms-value-changed">
  93. <![CDATA[
  94. btn_search.dispatch("DOMActivate");
  95. ]]>
  96. </script>
  97. </select1>
  98. </group>
  99. <line id="line1" class="line_1" style="x1:0px; y1:61px; x2:720px; y2:61px; "/>
  100. <caption id="caption4" class="tit_2" style="left:5px; top:46px; width:100px; height:14px; ">장비코드내역</caption>
  101. <datagrid id="grd_equipment" nodeset="/root/main/fixasetcdlist" caption="^장비코드^장비명^규격^모델^제조원^관리번호" colsep="^" colwidth="21, 80, 173, 100, 100, 127, 80" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:66px; width:720px; height:409px; ">
  102. <col checkvalue="Y,N" ref="chkyn" type="checkbox"/>
  103. <col ref="fixasetcd"/>
  104. <col ref="goodflaghngnm"/>
  105. <col ref="goodspec"/>
  106. <col ref="goodmodel"/>
  107. <col ref="prodcmpynm"/>
  108. <col ref="mngtno"/>
  109. <script type="javascript" ev:event="ondblclick">
  110. <![CDATA[
  111. ///fGridDataInsert();
  112. ]]>
  113. </script>
  114. </datagrid>
  115. <button id="btn_comfirm" class="btn2_letter4" style="left:655px; top:40px; width:64px; height:19px; ">
  116. <caption>선택적용</caption>
  117. <script type="javascript" ev:event="DOMActivate">
  118. <![CDATA[
  119. var chkyn;
  120. var header = "fixasetcd▦goodflaghngnm▦prodcmpynm▦mngtno▩";
  121. var data = "";
  122. for(var i = 1; i < grd_equipment.rows; i++) {
  123. chkyn = grd_equipment.valueMatrix(i, grd_equipment.colRef("chkyn"));
  124. if(chkyn == "Y") {
  125. copyNodesetType("/root/main/duplnode/fixasetcdlist", "/root/main/fixasetcdlist[" + i + "]", "after");
  126. data += grd_equipment.valueMatrix(i, grd_equipment.colRef("fixasetcd")) + "▦"
  127. + grd_equipment.valueMatrix(i, grd_equipment.colRef("goodflaghngnm")) + "▦"
  128. + grd_equipment.valueMatrix(i, grd_equipment.colRef("prodcmpynm")) + "▦"
  129. + grd_equipment.valueMatrix(i, grd_equipment.colRef("mngtno")) + "▩"
  130. }
  131. }
  132. if ( checkOpener() ) {
  133. opener.javascript.setParameter("SPMNG00500_", header+data);
  134. } else {
  135. var rtn = messageBox("상위화면을 찾을 수", "E001");
  136. }
  137. window.close();
  138. ]]>
  139. </script>
  140. </button>
  141. </group>
  142. </xhtml:body>
  143. </xhtml:html>