SPZSA20400_메뉴권한그룹변경.xrw 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <?xml version="1.0" encoding="UTF-8"?>
  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. </main>
  11. <send>
  12. <menuauthnm/>
  13. <menuauthcd/>
  14. </send>
  15. <init>
  16. </init>
  17. <temp/>
  18. <hidden/>
  19. </root>
  20. </instance>
  21. <script type="javascript" ev:event="xforms-ready">
  22. <![CDATA[
  23. btn_setacntgrupnm.disabled = !checkAuth("X");
  24. ]]>
  25. </script>
  26. <submission id="TXZSA20410" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden"/>
  27. </model>
  28. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  29. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  30. <script type="javascript">
  31. <![CDATA[
  32. /**
  33. * @group :
  34. * @ver : 2006.12.20
  35. * @by : 이상준
  36. * @---------------------------------------------------
  37. * @type : function
  38. * @access : public
  39. * @desc : 폼값을 체크하여 서브밋
  40. * @return :
  41. * @---------------------------------------------------
  42. */
  43. function fRenameSubmit()
  44. {
  45. // 각 필드값을 체크한다.
  46. if(model.getValue("/root/send/menuauthnm").getTrim()=="")
  47. {
  48. messageBox("메뉴권한명은 ", "I003");
  49. model.setFocus("ipt_menugrupnm");
  50. return;
  51. }
  52. // 각 필드값을 체크한다.
  53. if(model.getValue("/root/send/menuauthcd").getTrim()=="")
  54. {
  55. messageBox("메뉴권한코드가 입력되지 않았습니다. ", "I003");
  56. window.close();
  57. }
  58. // 서브밋하여 결과를 표시한다.
  59. if (submit("TXZSA20410"))
  60. {
  61. messageBox(model.getValue("/root/hidden/result/contents"), "I999");
  62. // 정상적으로 처리되었을 경우에만 부모창으로 변경된 값을 전달
  63. if (parseInt(model.getValue("/root/hidden/result/count")) == 1)
  64. {
  65. var menuauthnm = model.getValue("/root/send/menuauthnm");
  66. if (checkOpener())
  67. {
  68. opener.javascript.setParameter("SPZSA20400_", menuauthnm);
  69. }
  70. }
  71. window.close();
  72. }
  73. else
  74. {
  75. messageBox("처리도중 에러가 발생하였습니다.", "I999");
  76. window.close();
  77. }
  78. }
  79. /*
  80. 초기화 작업을 합니다.
  81. */
  82. function fInitialize(){
  83. // model.removeNodeset("/root/send/menugrupnm");
  84. // model.refresh();
  85. }
  86. ]]>
  87. </script>
  88. </xhtml:head>
  89. <xhtml:body pagewidth="534" pageheight="160" style="border-color:#c7a3cf; ">
  90. <group id="grp_tle" style="left:0px; top:0px; width:534px; height:13px; ">
  91. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:525px; height:14px; ">메뉴권한그룹 변경</caption>
  92. </group>
  93. <group id="grp_input" scroll="auto" style="left:0px; top:36px; width:530px; height:119px; ">
  94. <caption id="caption9" class="tit_2" style="left:0px; top:10px; width:126px; height:14px; vertical-align:middle; ">메뉴권한그룹 변경</caption>
  95. <line id="line12" class="line_1" style="x1:0px; y1:27px; x2:529px; y2:26px; "/>
  96. <caption id="caption5" class="cell_1" style="left:0px; top:59px; width:105px; height:23px; vertical-align:middle; ">계정그룹 코드</caption>
  97. <output id="opt_menuauthcd" ref="/root/send/menuauthcd" class="ouput_fix" navindex="2" appearance="output" style="left:108px; top:60px; width:189px; height:19px; border-style:solid; "/>
  98. <caption id="caption1" class="cell_1" style="left:0px; top:34px; width:105px; height:23px; vertical-align:middle; ">메뉴권한그룹 명</caption>
  99. <input id="ipt_menuauthnm" ref="/root/send/menuauthnm" class="input_essential" navindex="1" style="left:109px; top:35px; width:189px; height:19px; "/>
  100. </group>
  101. <group id="grp_btn" style="left:0px; top:13px; width:531px; height:27px; ">
  102. <button id="btn_setacntgrupnm" class="btn4_letter2" navindex="3" style="left:474px; top:1px; width:56px; height:22px; ">
  103. <caption>확인</caption>
  104. <script type="javascript" ev:event="DOMActivate">
  105. <![CDATA[
  106. fRenameSubmit();
  107. ]]>
  108. </script>
  109. </button>
  110. <line id="line1" class="line_6" style="x1:0px; y1:25px; x2:525px; y2:25px; "/>
  111. </group>
  112. </xhtml:body>
  113. </xhtml:html>