SPCVO02800_VOC고객회신관리.xrw 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * Name : SPCVO02800_VOC고객회신관리
  4. * Summary : VOC 고객회신관리
  5. * Programmer : 김준규
  6. * Date Written : 2007.10.23
  7. * History :
  8. * Remark :
  9. -->
  10. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <aprvdata>
  19. <acptdd/>
  20. <acptseq/>
  21. <aprvreqdd/>
  22. <aprvreqnm/>
  23. <aprvdd/>
  24. <aprvkindflag/>
  25. <csteamclntnotidt/>
  26. <csteamclntnoticnts/>
  27. <prcsstat/>
  28. <rgstseq/>
  29. <pid/>
  30. <acpviewdd/>
  31. </aprvdata>
  32. <temp>
  33. <key>
  34. <sndacptdd/>
  35. <sndacptseq/>
  36. <sndrgstseq/>
  37. <pid/>
  38. </key>
  39. </temp>
  40. </main>
  41. <temp/>
  42. <send>
  43. <data>
  44. </data>
  45. </send>
  46. <init/>
  47. </root>
  48. </instance>
  49. <submission id="TXCVO01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/aprvdata"/>
  50. <submission id="TXCVO01702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/aprvdata"/>
  51. <submission id="TRCVO01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/temp/key" resultref="/root/main/aprvdata"/>
  52. </model>
  53. <script type="javascript" ev:event="xforms-ready">
  54. <![CDATA[
  55. var reAcptDD = model.getValue("/root/main/temp/key/sndacptdd")
  56. var reAcptSeq = model.getValue("/root/main/temp/key/sndacptseq")
  57. var reRgstSeq = model.getValue("/root/main/temp/key/sndrgstseq")
  58. var pid = model.getValue("/root/main/temp/key/pid");
  59. var acpviewdd = model.getValue("/root/main/temp/key/acpviewdd");
  60. if (( reAcptDD == "" || reAcptDD == null ) || ( reAcptSeq == "" || reAcptSeq == null ) || ( reRgstSeq == "" || reRgstSeq == null )) {
  61. var rtn = messageBox("조회에 필요한 항목이 전달되지", "E007");
  62. if(rtn == 1){
  63. window.close();
  64. }
  65. } else {
  66. submit("TRCVO01701");
  67. model.setValue("/root/main/aprvdata/pid", pid);
  68. model.setValue("/root/main/aprvdata/acpviewdd", acpviewdd);
  69. var rePrcsstat = model.getValue("/root/main/aprvdata/prcsstat")
  70. if(( rePrcsstat == "승인요청" ) || ( rePrcsstat == "부서장승인" )) {
  71. btn_rplcustomer.visible = true;
  72. cpt_Notice.visible = true;
  73. } else {
  74. btn_rplcustomer.visible = false;
  75. cpt_Notice.visible = false;
  76. }
  77. }
  78. fCheckAuth();
  79. model.refresh();
  80. ]]>
  81. </script>
  82. <script type="javascript">
  83. <![CDATA[
  84. function fCheckAuth() {
  85. // 권한체크
  86. if (!checkAuth("r")) {
  87. }
  88. if (!checkAuth("x")) {
  89. btn_rplcustomer.disable = false;
  90. btn_input.disable = false;
  91. }
  92. if (!checkAuth("p")) {
  93. }
  94. }
  95. ]]>
  96. </script>
  97. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  98. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  99. </xhtml:head>
  100. <xhtml:body pagewidth="630" pageheight="370" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  101. <group id="grp_tle" style="left:0px; top:0px; width:610px; height:13px; ">
  102. <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:132px; height:14px; ">VOC 고객회신 정보</caption>
  103. </group>
  104. <group id="grp_customer" style="left:0px; top:13px; width:610px; height:307px; ">
  105. <line id="line2" class="line_1" style="x1:0px; y1:5px; x2:610px; y2:5px; "/>
  106. <line id="line7" class="line_2" style="x1:0px; y1:33px; x2:610px; y2:33px; "/>
  107. <line id="line1" class="line_3" style="x1:0px; y1:304px; x2:610px; y2:304px; "/>
  108. <caption id="caption6" class="cell_1" style="left:0px; top:10px; width:105px; height:23px; text-align:center; vertical-align:middle; ">고객통보일시</caption>
  109. <input id="ipt_Notidt" ref="/root/main/aprvdata/csteamclntnotidt" class="input_essential" format="yyyy-mm-dd hh:nn" showmask="true" style="left:109px; top:11px; width:115px; height:19px; "/>
  110. <caption id="caption2" class="cell_1" style="left:0px; top:35px; width:105px; height:270px; text-align:center; vertical-align:middle; ">고객통보내역</caption>
  111. <textarea id="tar_Noticnts" ref="/root/main/aprvdata/csteamclntnoticnts" scroll="vertical" style="left:108px; top:35px; width:500px; height:267px; "/>
  112. <caption id="caption18" style="left:235px; top:15px; width:338px; height:14px; font-weight:bold; ">예) 2009-05-01 15:30 처럼 몇 시 몇 분까지 입력하세요.</caption>
  113. </group>
  114. <group id="grp_btn" scroll="auto" style="left:0px; top:320px; width:610px; height:27px; ">
  115. <button id="btn_close" class="btn4_letter2" style="left:550px; top:5px; width:56px; height:22px; ">
  116. <caption>닫기</caption>
  117. <close ev:event="DOMActivate"/>
  118. </button>
  119. <button id="btn_input" class="btn4_letter2" style="left:492px; top:5px; width:56px; height:22px; ">
  120. <caption>저장</caption>
  121. <script type="javascript" ev:event="DOMActivate">
  122. <![CDATA[
  123. var reAcptSeq = model.getValue("/root/main/temp/key/sndacptseq")
  124. if ( reAcptSeq == "" || reAcptSeq == null ) {
  125. var rtn = messageBox("저장에 필요한 항목이 전달되지", "E007");
  126. if(rtn == 1){
  127. window.close();
  128. }
  129. } else {
  130. // var rtn = messageBox("고객회신 내용만 저장됩니다.", "Q003");
  131. // if(rtn == 6){
  132. if ( ( ipt_Notidt.value.length > 0 ) && (ipt_Notidt.value.length < 12) ){
  133. messageBox("고객통보일시는 2009-05-01 15:30 처럼 날짜와 시간을 함께 ", "C001");
  134. model.setFocus("ipt_Notidt");
  135. } else {
  136. if (submit("TXCVO01701")){
  137. messageBox("고객회신 저장이 ", "I002");
  138. window.close();
  139. }
  140. }
  141. // }
  142. }
  143. ]]>
  144. </script>
  145. </button>
  146. <button id="btn_rplcustomer" class="btn4_letter7" visibility="hidden" style="left:374px; top:5px; width:116px; height:22px; ">
  147. <caption>고객회신 완료</caption>
  148. <script type="javascript" ev:event="DOMActivate">
  149. <![CDATA[
  150. var rePrcsstat = model.getValue("/root/main/aprvdata/prcsstat");
  151. if(( rePrcsstat == "승인요청" ) || ( rePrcsstat == "부서장승인" )) {
  152. var rtn = messageBox("고객회신 내용 저장 및 고객회신 처리가 끝나게 됩니다.", "Q003");
  153. if(rtn == 6){
  154. if (isRequiredControls("ipt_Notidt") ){
  155. if ( ( ipt_Notidt.value.length > 0 ) && (ipt_Notidt.value.length < 12) ){
  156. messageBox("고객통보일시는 2009-05-01 15:30 처럼 날짜와 시간을 함께 ", "C001");
  157. model.setFocus("ipt_Notidt");
  158. } else {
  159. if (submit("TXCVO01702")){
  160. messageBox("고객회신 처리가 ", "I002");
  161. opener.javascript.navigate("SMCVO01900", "", "", "", "SMCVO01900", "/root/main/temp", "/root/main/temp");
  162. window.close();
  163. }
  164. }
  165. }
  166. }
  167. } else {
  168. messageBox("승인요청이나 부서장승인 상태가 아니면 고객회신 완료 처리를 ", "E001");
  169. }
  170. ]]>
  171. </script>
  172. </button>
  173. <caption id="cpt_Notice" class="hand" visibility="hidden" style="left:5px; top:7px; width:365px; height:17px; ">고객회신 완료 버튼을 누르시면 고객회신 상태가 됩니다.</caption>
  174. </group>
  175. </xhtml:body>
  176. </xhtml:html>