SPMMP02000_변경이력조회.xrw 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <cpglist>
  11. </cpglist>
  12. <search_cond/>
  13. </main>
  14. <send/>
  15. <init/>
  16. <hidden/>
  17. <temp>
  18. <size>
  19. <w/>
  20. </size>
  21. <popupmenu>
  22. <item>
  23. <name>삭제</name>
  24. <func>fCpgDelete</func>
  25. </item>
  26. </popupmenu>
  27. </temp>
  28. </root>
  29. </instance>
  30. <submission id="TRMMP02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/cpglist"/>
  31. <submission id="TXMMP02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/cpglist"/>
  32. </model>
  33. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  34. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  35. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  36. <script type="javascript">
  37. <![CDATA[
  38. function fGetCpgHist(){
  39. copyNodeListType("/root/main", "/root/main/search_cond", "replace", model, opener.model);
  40. model.removeNodeset("/root/send/reqdata");
  41. model.makeNode("/root/send/reqdata");
  42. model.copyNode("/root/send/reqdata", "/root/main/search_cond");
  43. submit("TRMMP02001", false);
  44. opener.model.setValue("/root/main/search_cond/getflag", "");
  45. model.removeNode("/root/main/search_cond")
  46. model.makeNode("/root/main/search_cond");
  47. var nodeList = instance1.selectNodes( "/root/main/cpglist/cpginfo" );
  48. var num = 1;
  49. if( nodeList.length > 0 ){
  50. for( var i=1; i<=nodeList.length; i++ ){
  51. if( model.getValue("/root/main/cpglist/cpginfo["+i+"]/cpghistseq") == "임시" ){
  52. model.makeValue("/root/main/cpglist/cpginfo["+i+"]/dispseq", model.getValue("/root/main/cpglist/cpginfo["+i+"]/cpghistseq") );
  53. }else{
  54. model.makeValue("/root/main/cpglist/cpginfo["+i+"]/dispseq", num );
  55. num++;
  56. }
  57. }
  58. }
  59. model.refresh();
  60. }
  61. function fCpgDelete(){
  62. if( model.getValue("/root/main/cpglist/cpginfo[" + datagrid1.row + "]/cpglasthistyn") == "Y" ){
  63. messageBox("유효한 CP는 삭제", "E001");
  64. return;
  65. }
  66. model.removeNodeset("/root/send/reqdata");
  67. model.makeNode("/root/send/reqdata");
  68. copyNodeType("/root/send/reqdata", "/root/main/search_cond", "replace", model, opener.model);
  69. //model.copyNode("/root/send/reqdata", "/root/main/search_cond");
  70. model.makeValue("/root/send/reqdata/cpgno" , model.getValue("/root/main/cpglist/cpginfo[" + datagrid1.row + "]/cpgno"));
  71. model.makeValue("/root/send/reqdata/cpghistseq" , model.getValue("/root/main/cpglist/cpginfo[" + datagrid1.row + "]/orghistseq"));
  72. model.makeValue("/root/send/reqdata/todd" , getCurrentDate() );
  73. model.makeValue("/root/send/reqdata/getflag" , "H" );
  74. submit("TXMMP02001", true);
  75. }
  76. ]]>
  77. </script>
  78. </xhtml:head>
  79. <xhtml:body style="margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
  80. <line id="line1" class="line_3" style="x1:0px; y1:646px; x2:375px; y2:646px; "/>
  81. <button id="btn_close" class="btn4_letter2" visibility="hidden" style="left:320px; top:649px; width:56px; height:22px; ">
  82. <caption>닫기</caption>
  83. <script type="javascript" ev:event="DOMActivate">
  84. <![CDATA[
  85. opener.window.javascript.fCloseCpgHist();
  86. ]]>
  87. </script>
  88. </button>
  89. <datagrid id="datagrid1" nodeset="/root/main/cpglist/cpginfo" autoresize="true" caption="Ver^D^CP명^적용 시작일^종료일^작성자^수정일^cpghist seq" colsep="^" colwidth="32, 25, 164, 70, 70, 70, 70, 45" ellipsis="true" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:430px; height:673px; ">
  90. <col ref="dispseq"/>
  91. <col ref="times" visibility="hidden"/>
  92. <col ref="cpgnm"/>
  93. <col ref="appdd" format="yyyy-mm-dd"/>
  94. <col ref="todd" format="yyyy-mm-dd"/>
  95. <col ref="rgstrnm"/>
  96. <col ref="lastupdtdt" format="yyyy-mm-dd"/>
  97. <col ref="cpghistseq" visibility="hidden"/>
  98. <script type="javascript" ev:event="onclick">
  99. <![CDATA[
  100. if( btn_close.attribute("left") != "420px" && datagrid1.row > 0){
  101. var iRow = opener.grd_cpglist.row;
  102. }
  103. opener.model.setValue("/root/temp/selected/cpgno", model.getValue("/root/main/cpglist/cpginfo[" + datagrid1.row + "]/cpgno"));
  104. opener.model.setValue("/root/temp/selected/cpghistseq", model.getValue("/root/main/cpglist/cpginfo[" + datagrid1.row + "]/orghistseq"));
  105. opener.model.setValue("/root/temp/selected/cpgnm", model.getValue("/root/main/cpglist/cpginfo[" + datagrid1.row + "]/cpgnm"));
  106. opener.model.setValue("/root/temp/selected/cpgflagcd", opener.model.getValue("/root/main/cpglist/cpginfo[" + opener.grd_cpglist.row + "]/cpgflagcd"));
  107. ]]>
  108. </script>
  109. <script type="javascript" ev:event="ondblclick">
  110. <![CDATA[
  111. if( opener.model.getValue("/root/main/search_cond/authflag") == "M" ){
  112. if( datagrid1.row > 0 ){
  113. opener.btn_srchver.dispatch("DOMActivate");
  114. }
  115. }
  116. ]]>
  117. </script>
  118. <script type="javascript" ev:event="onmousedown">
  119. <![CDATA[
  120. if( opener.model.getValue("/root/main/search_cond/authflag") == "M" ){
  121. if(event.button == 3){
  122. if(datagrid1.isCell(event.target) && datagrid1.mouseRow >=datagrid1.fixedrows){
  123. window.setPopupMenu(true, "/root/temp/popupmenu/item", "name", "func", false);
  124. }else{
  125. window.setPopupMenu(false);
  126. }
  127. }
  128. }
  129. ]]>
  130. </script>
  131. <script type="javascript" ev:event="DOMFocusOut">
  132. <![CDATA[
  133. window.setPopupMenu(false);
  134. ]]>
  135. </script>
  136. </datagrid>
  137. </xhtml:body>
  138. </xhtml:html>