SPAEB00101_부서별장비코드조회.xrw 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <subfixasetcdlist>
  12. <check/>
  13. <fixasetcd/>
  14. <goodmodel/>
  15. <goodflaghngnm/>
  16. <goodflagengnm/>
  17. <goodspec/>
  18. <suplplcenm/>
  19. <suplplcecd/>
  20. </subfixasetcdlist>
  21. </fixasetcdlist>
  22. </main>
  23. <send>
  24. <globalinstance>
  25. <instance1/>
  26. </globalinstance>
  27. <instdeptcd/>
  28. </send>
  29. <init>
  30. <cmb_instdeptcd>
  31. <instdeptcd>
  32. <cdid/>
  33. <cdnm/>
  34. </instdeptcd>
  35. </cmb_instdeptcd>
  36. </init>
  37. <hidden>
  38. </hidden>
  39. </root>
  40. </instance>
  41. <script type="javascript" ev:event="xforms-ready">
  42. <![CDATA[
  43. aezfSetSuppDeptcd();
  44. // 부서코드조회
  45. submit("TRAEB00103");
  46. ]]>
  47. </script>
  48. <submission id="TRAEB00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_instdeptcd"/>
  49. <submission id="TRAEB00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/fixasetcdlist"/>
  50. </model>
  51. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  52. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  53. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  54. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  55. </xhtml:head>
  56. <xhtml:body pagewidth="820" pageheight="720" guideline="1,1194;2,690;1,811;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  57. <group id="group3" scroll="auto" style="left:0px; top:0px; width:810px; height:680px; ">
  58. <caption id="caption1" class="tit_2" style="left:5px; top:54px; width:150px; height:13px; ">부서별장비코드</caption>
  59. <line id="line1" class="line_1" style="x1:0px; y1:69px; x2:790px; y2:69px; "/>
  60. <datagrid id="grd_fixasetcd" nodeset="/root/main/fixasetcdlist/subfixasetcdlist" autoresize="true" caption="선택^자산코드^모델명^품명_한글^품명_영문^물품규격^공급처명^공급처코드" colsep="^" colwidth="36, 73, 120, 180, 180, 100, 90, 90" ellipsis="true" explorerbar="sortshow" frozencols="5" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:75px; width:790px; height:595px; ">
  61. <col checkvalue="Y,N" ref="check" type="radio"/>
  62. <col ref="fixasetcd" style="text-align:left; "/>
  63. <col ref="goodmodel" style="text-align:left; "/>
  64. <col ref="goodflaghngnm" style="text-align:left; "/>
  65. <col ref="goodflagengnm" style="text-align:left; "/>
  66. <col ref="goodspec" style="text-align:left; "/>
  67. <col ref="suplplcenm" style="text-align:left; "/>
  68. <col ref="suplplcecd" style="text-align:left; "/>
  69. <script type="javascript" ev:event="ondblclick">
  70. <![CDATA[
  71. // model.setAttribute("Cnclresncd", model.getvalue("/root/main/cnclcodelist/cnclcode["+ grd_basecd.row +"]/basecd"));
  72. ]]>
  73. </script>
  74. </datagrid>
  75. <button id="btn_cls" class="btn4_letter2" style="left:734px; top:46px; width:56px; height:22px; ">
  76. <caption>닫기</caption>
  77. <close ev:event="DOMActivate"/>
  78. </button>
  79. <button id="btn_cfm" class="btn4_letter2" style="left:675px; top:46px; width:56px; height:22px; ">
  80. <caption>선택</caption>
  81. <script type="javascript" ev:event="DOMActivate">
  82. <![CDATA[
  83. if ( grd_fixasetcd.row == 0 ) return;
  84. var srcXpath1 = opener.javascript.getParameter("SPAEB00101_param_srcXpath1");
  85. var srcXgrid1 = opener.javascript.getParameter("SPAEB00101_param_srcXgrid1");
  86. var srcXrow1 = opener.javascript.getParameter("SPAEB00101_param_srcXrow1");
  87. var srcXnode1 = opener.javascript.getParameter("SPAEB00101_param_srcXnode1");
  88. var srcXnodenm1 = opener.javascript.getParameter("SPAEB00101_param_srcXnodenm1");
  89. //alert('srcXpath1->'+srcXpath1+', srcXrow1->'+srcXrow1+', srcXnode1->'+srcXnode1+', srcXgrid1->'+srcXgrid1);
  90. // setParameter("SPAEB00101_param_srcXpath1", "/root/main/examcurelist/item");
  91. // setParameter("SPAEB00101_param_srcXrow1", grd_examcureroom.row);
  92. // setParameter("SPAEB00101_param_srcXnode1", "excuposseqcd");
  93. var srchLength1 = model.instances(0).selectNodes( "/root/main/fixasetcdlist/subfixasetcdlist" ).length;
  94. //alert('srchLength1->'+srchLength1);
  95. if ( srchLength1 > 0 ) {
  96. for ( var i = 1; i <= srchLength1; i++ ) {
  97. if ( model.getValue("/root/main/fixasetcdlist/subfixasetcdlist[" + i + "]/check") == "Y" ) {
  98. // alert('fixasetcd['+ i +']=>'+model.getValue("/root/main/fixasetcdlist/subfixasetcdlist["+ i +"]/fixasetcd" ) );
  99. if ( srcXnode1 != "" ) {
  100. opener.model.setValue(srcXpath1+"["+srcXrow1+"]/"+srcXnode1 , model.getValue("/root/main/fixasetcdlist/subfixasetcdlist["+ i +"]/fixasetcd" ) );
  101. }
  102. if ( srcXnodenm1 != "" ) {
  103. opener.model.setValue(srcXpath1+"["+srcXrow1+"]/"+srcXnodenm1 , model.getValue("/root/main/fixasetcdlist/subfixasetcdlist["+ i +"]/goodmodel" ) );
  104. }
  105. }
  106. }
  107. opener.model.refresh();
  108. window.close();
  109. }
  110. ]]>
  111. </script>
  112. </button>
  113. <group id="group2" style="left:0px; top:0px; width:790px; height:40px; vertical-align:top; ">
  114. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:785px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  115. <caption id="caption2" class="search_name" style="left:16px; top:12px; width:86px; height:17px; ">설치장소 :</caption>
  116. <button id="btn_search" class="btn1_letter2" style="left:720px; top:10px; width:56px; height:22px; ">
  117. <caption>조회</caption>
  118. <script type="javascript" ev:event="DOMActivate">
  119. <![CDATA[
  120. submit("TRAEB00104");
  121. ]]>
  122. </script>
  123. </button>
  124. <line id="line13" style="x1:704px; y1:9px; x2:704px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
  125. <select1 id="cmb_instdeptcd" ref="/root/send/instdeptcd" class="combo_search" appearance="minimal" style="left:105px; top:11px; width:170px; height:19px; ">
  126. <choices>
  127. <itemset nodeset="/root/init/cmb_instdeptcd/instdeptcd">
  128. <label ref="cdnm"/>
  129. <value ref="cdid"/>
  130. </itemset>
  131. </choices>
  132. <script type="javascript" ev:event="xforms-select">
  133. <![CDATA[
  134. btn_search.dispatch("DOMActivate");
  135. ]]>
  136. </script>
  137. </select1>
  138. </group>
  139. </group>
  140. </xhtml:body>
  141. </xhtml:html>