SMPMB03101_영수증가야할곳코드조회.xrw 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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. <codelist>
  11. <code>
  12. <cdid/>
  13. <cdnm/>
  14. </code>
  15. </codelist>
  16. </main>
  17. <init>
  18. <initcode>
  19. <codelist>
  20. <code>
  21. <select/>
  22. <cdid/>
  23. <cdnm/>
  24. </code>
  25. </codelist>
  26. </initcode>
  27. </init>
  28. </root>
  29. </instance>
  30. <script type="javascript" ev:event="xforms-ready">
  31. <![CDATA[
  32. model.resetInstanceNode("/root/init/initcode/codelist");
  33. model.copyNode("/root/init/initcode/codelist", opener.root.send.codelist);
  34. model.refresh();
  35. ]]>
  36. </script>
  37. </model>
  38. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  39. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  40. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  41. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  42. <script type="javascript" src="../../../com/batchinfoweb/js/ZSB001.js"/>
  43. </xhtml:head>
  44. <xhtml:body pagewidth="411" pageheight="500">
  45. <caption id="caption57" class="tit_2" style="left:15px; top:5px; width:203px; height:13px; ">코드조회</caption>
  46. <line id="line18" class="line_1" style="x1:11px; y1:20px; x2:401px; y2:20px; "/>
  47. <button id="btn_pretrgtman" class="btn2_letter2" _auth="R" style="left:355px; top:272px; width:42px; height:19px; ">
  48. <caption>삭제</caption>
  49. <script type="javascript" ev:event="DOMActivate">
  50. <![CDATA[
  51. var row = grd_select.row;
  52. grd_select.deleteRow(row);
  53. ]]>
  54. </script>
  55. </button>
  56. <button id="btn_nexttrgtman" class="btn2_letter2" _auth="R" style="left:311px; top:272px; width:42px; height:19px; ">
  57. <caption>추가</caption>
  58. <script type="javascript" ev:event="DOMActivate">
  59. <![CDATA[
  60. var nodeList = instance1.selectNodes("/root/init/initcode/codelist");
  61. var srcnt = nodeList.length;
  62. for( var i = 1 ; i <= grd_init.rows ; i++) {
  63. if(grd_init.valueMatrix(i,1) == "Y") {
  64. model.makeValue("/root/main/codelist/code[" + srcnt +"]/cdid", model.getValue("/root/init/initcode/codelist/code["+ i +"]/cdid"));
  65. model.makeValue("/root/main/codelist/code["+ srcnt +"]/cdnm", model.getValue("/root/init/initcode/codelist/code["+ i +"]/cdnm"));
  66. srcnt++;
  67. }
  68. }
  69. model.refresh();
  70. ]]>
  71. </script>
  72. </button>
  73. <button id="button2" class="btn5_letter2" style="left:267px; top:272px; width:42px; height:19px; ">
  74. <caption>적용</caption>
  75. <script type="javascript" ev:event="DOMActivate">
  76. <![CDATA[
  77. var selectCode = "";
  78. for( var i = 1 ; i < grd_select.rows ; i++) {
  79. if(selectCode != "") {
  80. selectCode = selectCode + ",";
  81. }
  82. if (grd_select.valueMatrix(i,3) == "Y") {
  83. selectCode = selectCode + "!" + grd_select.valueMatrix(i,1);
  84. } else {
  85. selectCode = selectCode + grd_select.valueMatrix(i,1);
  86. }
  87. }
  88. opener.javascript.setParameter("SMPMB03101_selectCode", selectCode);
  89. model.close();
  90. ]]>
  91. </script>
  92. </button>
  93. <caption id="caption1" class="tit_2" style="left:15px; top:278px; width:203px; height:13px; ">선택코드</caption>
  94. <line id="line1" class="line_1" style="x1:11px; y1:293px; x2:401px; y2:293px; "/>
  95. <datagrid id="grd_init" nodeset="/root/init/initcode/codelist/code" class="datagrid2" autoresize="false" caption="^코드^코드명^명칭" colsep="^" colwidth="25, 100, 250" dataheight="25" defaultrows="2" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:11px; top:25px; width:390px; height:237px; ">
  96. <col checkvalue="Y,N" ref="select" type="checkbox"/>
  97. <col ref="cdid" style="text-align:center; "/>
  98. <col ref="cdnm"/>
  99. </datagrid>
  100. <datagrid id="grd_select" nodeset="/root/main/codelist/code" class="datagrid2" autoresize="false" caption="코드^명칭^False" colsep="^" colwidth="100, 230, 40" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:11px; top:298px; width:390px; height:192px; ">
  101. <col ref="cdid" style="text-align:center; "/>
  102. <col ref="cdnm" format="yyyy-mm-dd hh:nn:ss"/>
  103. <col checkvalue="Y,N" ref="false" type="checkbox"/>
  104. <script type="javascript" ev:event="onclick">
  105. <![CDATA[
  106. ]]>
  107. </script>
  108. </datagrid>
  109. </xhtml:body>
  110. </xhtml:html>