SPMNR03000_상세속성정보 조회.xrw 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. <attrinfo>
  11. <check/>
  12. <attrnm/>
  13. <attrcd/>
  14. </attrinfo>
  15. </main>
  16. <send/>
  17. <hidden/>
  18. <init>
  19. </init>
  20. </root>
  21. </instance>
  22. <script type="javascript" ev:event="xforms-ready">
  23. <![CDATA[
  24. model.makeValue("/root/send/attrcd", opener.javascript.getParameter("SPMNR03000_Param"));
  25. submit("TRMNR03001");
  26. opener.javascript.setParameter("SPMNR03000_Return","");
  27. ]]>
  28. </script>
  29. <submission id="TRMNR03001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main"/>
  30. </model>
  31. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  32. </xhtml:head>
  33. <xhtml:body pagewidth="360" pageheight="320" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  34. <button id="btn_attrrgst" class="btn2_letter2" style="left:295px; top:4px; width:42px; height:19px; ">
  35. <caption>등록</caption>
  36. <script type="javascript" ev:event="DOMActivate">
  37. <![CDATA[
  38. var xPath = "/root/main/attrinfo";
  39. var sAttrInfo1 = "";
  40. var sAttrInfo2 = "";
  41. for(var iRow=grd_attrinfo.fixedrows; iRow<=grd_attrinfo.rows; iRow++){
  42. if(model.getValue(xPath+"["+iRow+"]/check") == "true"){
  43. sAttrInfo1 += model.getValue(xPath+"["+iRow+"]/attrnm")+",";
  44. sAttrInfo2 += model.getValue(xPath+"["+iRow+"]/attrcd")+",";
  45. }
  46. }
  47. if(sAttrInfo1 == "") return;
  48. sAttrInfo1 = sAttrInfo1.substr(0,sAttrInfo1.length-1);
  49. sAttrInfo2 = sAttrInfo2.substr(0,sAttrInfo2.length-1);
  50. opener.javascript.setParameter("SPMNR03000_Return",sAttrInfo1+"▦"+sAttrInfo2);
  51. model.close();
  52. ]]>
  53. </script>
  54. </button>
  55. <caption id="caption1" class="tit_2" style="left:0px; top:12px; width:95px; height:14px; margin-left:8; margin-right:8; ">속성등록</caption>
  56. <line id="line7" class="line_1" style="x1:0px; y1:26px; x2:339px; y2:26px; "/>
  57. <datagrid id="grd_attrinfo" nodeset="/root/main/attrinfo" overflow="== " caption="선택^항목명^항목코드" colsep="^" colwidth="38, 244, 0" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:4px; top:31px; width:335px; height:254px; ">
  58. <col ref="check" type="checkbox"/>
  59. <col ref="attrnm"/>
  60. <col ref="attrcd"/>
  61. <script type="javascript" ev:event="onclick">
  62. <![CDATA[
  63. var iRow = grd_attrinfo.row;
  64. var iCol = grd_attrinfo.col;
  65. if(iCol <= 1) return;
  66. if(iRow<1) return;
  67. if(model.getValue("/root/main/attrinfo["+iRow+"]/check") == "true"){
  68. model.setValue("/root/main/attrinfo["+iRow+"]/check","false");
  69. }else{
  70. model.setValue("/root/main/attrinfo["+iRow+"]/check","true");
  71. }
  72. ]]>
  73. </script>
  74. </datagrid>
  75. </xhtml:body>
  76. </xhtml:html>