SPRSS00101_장비코드조회.xrw 5.8 KB

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