SPPMO01000_변경취소사유입력.xrw 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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. <updtcnclresn/>
  11. <updtcnclresncd/>
  12. </main>
  13. <send/>
  14. <init/>
  15. <hidden>
  16. <enrcomncode>
  17. <chngcnclresn>
  18. <nm/>
  19. <cd/>
  20. </chngcnclresn>
  21. <remark>
  22. <nm/>
  23. <cd/>
  24. </remark>
  25. </enrcomncode>
  26. </hidden>
  27. </root>
  28. </instance>
  29. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  30. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  31. </model>
  32. </xhtml:head>
  33. <xhtml:body pagewidth="560" pageheight="360">
  34. <input id="input1" ref="/root/main/updtcnclresn" navindex="1" style="left:5px; top:290px; width:535px; height:19px; ">
  35. <script type="javascript" ev:event="onkeypress">
  36. <![CDATA[
  37. if(event.keyCode == "13") {
  38. model.setValue("/root/main/updtcnclresn", input1.currentText );
  39. btn_confirm.dispatch("DOMActivate");
  40. }
  41. ]]>
  42. </script>
  43. </input>
  44. <caption id="caption14" class="tit_2" style="left:10px; top:5px; width:105px; height:14px; ">변경취소사유</caption>
  45. <select1 id="combo2" ref="/root/main/updtcnclresncd" navindex="2" visibility="hidden" appearance="minimal" style="left:520px; top:2px; width:20px; height:19px; ">
  46. <choices>
  47. <itemset nodeset="/root/hidden/enrcomncode/chngcnclresn">
  48. <label ref="nm"/>
  49. <value ref="nm"/>
  50. </itemset>
  51. </choices>
  52. <script type="javascript" ev:event="xforms-value-changed">
  53. <![CDATA[
  54. model.setValue("/root/main/updtcnclresn", combo2.value);
  55. ]]>
  56. </script>
  57. </select1>
  58. <group id="group1" scroll="auto" style="left:0px; top:310px; width:540px; height:27px; ">
  59. <button id="btn_confirm" class="btn4_letter2" navindex="3" style="left:424px; top:5px; width:56px; height:22px; ">
  60. <caption>확인</caption>
  61. <script type="javascript" ev:event="DOMActivate">
  62. <![CDATA[
  63. if ( checkOpener() ) {
  64. opener.javascript.setParameter("SPPMO01000_updtcnclresn", model.getValue("/root/main/updtcnclresn"));
  65. opener.javascript.setParameter("SPPMO01000_updtcnclresncd", model.getValue("/root/main/updtcnclresncd"));
  66. } else {
  67. messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
  68. //return false;
  69. }
  70. opener.model.refresh();
  71. window.close();
  72. ]]>
  73. </script>
  74. </button>
  75. <button id="btn_cancel" class="btn4_letter2" navindex="4" style="left:483px; top:5px; width:56px; height:22px; ">
  76. <caption>취소</caption>
  77. <script type="javascript" ev:event="DOMActivate">
  78. <![CDATA[
  79. if ( checkOpener() ) {
  80. opener.javascript.setParameter("SPPMO01000_updtcnclresn", '-');
  81. opener.javascript.setParameter("SPPMO01000_updtcnclresncd", '-');
  82. } else {
  83. messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
  84. //return false;
  85. }
  86. window.close();
  87. ]]>
  88. </script>
  89. </button>
  90. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:540px; y2:0px; "/>
  91. </group>
  92. <datagrid id="datagrid1" nodeset="/root/hidden/enrcomncode/chngcnclresn" caption="변경취소사유^caption2" colsep="^" colwidth="501, 100" extendlastcol="noscroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:26px; width:535px; height:260px; ">
  93. <col ref="nm" type="input"/>
  94. <col ref="cd" visibility="hidden"/>
  95. <script type="javascript" ev:event="ondblclick">
  96. <![CDATA[
  97. var row = datagrid1.row;
  98. var col = datagrid1.col;
  99. if( ! isDataCell() ){
  100. return false;
  101. }
  102. model.setValue("/root/main/updtcnclresn", datagrid1.valueMatrix(row, 1));
  103. model.setValue("/root/main/updtcnclresncd", datagrid1.valueMatrix(row, 2));
  104. if( model.getValue("/root/main/updtcnclresn") != ""){
  105. btn_confirm.dispatch("DOMActivate");
  106. }
  107. ]]>
  108. </script>
  109. <script type="javascript" ev:event="onclick">
  110. <![CDATA[
  111. var row = datagrid1.row;
  112. var col = datagrid1.col;
  113. if( ! isDataCell() ){
  114. return false;
  115. }
  116. model.setValue("/root/main/updtcnclresn", datagrid1.valueMatrix(row, 1));
  117. model.setValue("/root/main/updtcnclresncd", datagrid1.valueMatrix(row, 2));
  118. ]]>
  119. </script>
  120. </datagrid>
  121. <line id="line1" class="line_1" style="x1:5px; y1:21px; x2:540px; y2:21px; "/>
  122. </xhtml:body>
  123. </xhtml:html>