SPCVO01000_VOC내용팝업.xrw 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * Name : SPCVO01000_VOC내용팝업
  4. * Summary : VOC 내용 팝업
  5. * Programmer : 김준규
  6. * Date Written : 2007.10.21
  7. * History :
  8. * Remark :
  9. -->
  10. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  11. <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">
  12. <xhtml:head>
  13. <xhtml:title>VOC 내용 팝업</xhtml:title>
  14. <model id="model1">
  15. <instance id="instance1">
  16. <root xmlns="">
  17. <main>
  18. <vocpopup>
  19. <title/>
  20. <contents/>
  21. <inputmode/>
  22. <receive_path/>
  23. </vocpopup>
  24. </main>
  25. <temp/>
  26. <init/>
  27. </root>
  28. </instance>
  29. </model>
  30. <script type="javascript" ev:event="xforms-ready">
  31. <![CDATA[
  32. var reTitle = model.getValue("/root/main/vocpopup/title")
  33. var reContents = model.getValue("/root/main/vocpopup/contents")
  34. var reInputmode = model.getValue("/root/main/vocpopup/inputmode")
  35. if (reInputmode == "i"){
  36. btn_input.disabled = false;
  37. tar_Cnts.attribute("editable") = "true";
  38. } else {
  39. btn_input.disabled = true;
  40. tar_Cnts.attribute("editable") = "false";
  41. if (( reTitle == "" || reTitle == null ) || ( reContents == "" || reContents == null )) {
  42. tar_Cnts.disabled = true;
  43. var rtn = messageBox("표시할 내용이 없거나 필요한 정보가 전달되지", "E007");
  44. if(rtn == 1){
  45. window.close();
  46. }
  47. } else {
  48. }
  49. }
  50. fCheckAuth();
  51. model.refresh();
  52. ]]>
  53. </script>
  54. <script type="javascript">
  55. <![CDATA[
  56. function fCheckAuth() {
  57. // 권한체크
  58. if (!checkAuth("r")) {
  59. }
  60. if (!checkAuth("x")) {
  61. }
  62. if (!checkAuth("p")) {
  63. }
  64. }
  65. ]]>
  66. </script>
  67. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  68. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  69. </xhtml:head>
  70. <xhtml:body pagewidth="630" pageheight="310" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  71. <group id="grp_tle" style="left:0px; top:0px; width:610px; height:13px; ">
  72. <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:132px; height:14px; ">VOC 내용 팝업</caption>
  73. </group>
  74. <group id="grp_cnts" style="left:0px; top:13px; width:610px; height:252px; ">
  75. <line id="line2" class="line_1" style="x1:0px; y1:5px; x2:610px; y2:5px; "/>
  76. <line id="line7" class="line_3" style="x1:0px; y1:249px; x2:610px; y2:249px; "/>
  77. <caption id="caption10" ref="/root/main/vocpopup/title" class="cell_1" style="left:0px; top:10px; width:105px; height:240px; text-align:center; vertical-align:middle; "/>
  78. <textarea id="tar_Cnts" ref="/root/main/vocpopup/contents" scroll="vertical" style="left:108px; top:10px; width:500px; height:236px; "/>
  79. </group>
  80. <group id="grp_btn" scroll="auto" style="left:0px; top:265px; width:610px; height:27px; ">
  81. <caption id="caption30" class="hand" style="left:100px; top:7px; width:332px; height:17px; ">보고서 출력시 현재 화면에 보이는 대로 출력됩니다.</caption>
  82. <button id="btn_input" class="btn4_letter2" disabled="true" style="left:492px; top:5px; width:56px; height:22px; ">
  83. <caption>입력</caption>
  84. <script type="javascript" ev:event="DOMActivate">
  85. <![CDATA[
  86. var reContents = model.getValue("/root/main/vocpopup/contents")
  87. var receive_path = model.getValue("/root/main/vocpopup/receive_path");
  88. opener.model.setValue(receive_path, reContents);
  89. opener.model.refresh();
  90. window.close();
  91. ]]>
  92. </script>
  93. </button>
  94. <button id="btn_close" class="btn4_letter2" style="left:550px; top:5px; width:56px; height:22px; ">
  95. <caption>닫기</caption>
  96. <close ev:event="DOMActivate"/>
  97. </button>
  98. </group>
  99. </xhtml:body>
  100. </xhtml:html>