SMCVE00100_고객상담기록.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * Name : SMCVE00100_고객상담기록
  4. * Summary : 고객상담기록
  5. * Programmer : Roger Kim
  6. * Date Written : 2007.09.06
  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>고객상담 기록</xhtml:title>
  14. <model id="model1">
  15. <instance id="instance1">
  16. <root xmlns="">
  17. <main>
  18. <list>
  19. <vocendlist>
  20. <acptseq/>
  21. <acptdd/>
  22. <acpttype/>
  23. <acpttitl/>
  24. <acptkindlrg/>
  25. <prcsstat/>
  26. <clntnm/>
  27. <deptnm/>
  28. <fstrgstrnm/>
  29. </vocendlist>
  30. </list>
  31. </main>
  32. <send>
  33. <data>
  34. <srchacptdd1/>
  35. <srchacptdd2/>
  36. <srchacpttypecd/>
  37. <srchprcsstatcd>Z</srchprcsstatcd>
  38. <srchdeptcd/>
  39. <srchdeptnm/>
  40. <srchcintnm/>
  41. <srchpatnm/>
  42. </data>
  43. <key>
  44. <sndacptdd/>
  45. <sndacptseq/>
  46. </key>
  47. </send>
  48. <init>
  49. <C0001list>
  50. <C0001>
  51. <cdid/>
  52. <cdnm>전체</cdnm>
  53. </C0001>
  54. </C0001list>
  55. </init>
  56. </root>
  57. </instance>
  58. <submission id="TRCVE00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" resultref="/root/main/list"/>
  59. <script type="javascript" ev:event="xforms-ready">
  60. <![CDATA[
  61. model.removeNodeset("/root/main/list");
  62. var reSrchAcptDD1 = model.getValue("/root/send/data/srchacptdd1")
  63. // 처음 검색 팝업을 띄울 때에는 기본 정보를 안 보여주고, 한번 검색 한 이후에는 최종선택한 정보를 기본적으로 가져옴..
  64. if ( reSrchAcptDD1 == "" || reSrchAcptDD1 == null ){
  65. model.setValue("/root/send/data/srchacptdd1",getCurrentDate().toDate().getAddDate(-92,"D").getDateFormat());
  66. model.setValue("/root/send/data/srchacptdd2",getCurrentDate());
  67. } else {
  68. submit("TRCVE00101");
  69. model.SetFocus("grd_vocendlist");
  70. }
  71. zbcfGetCodeList( new Array("C0001"), new Array("/root/init/C0001list"), true );
  72. fCheckAuth();
  73. model.refresh();
  74. ]]>
  75. </script>
  76. <script type="javascript" ev:event="xforms-model-construct-done">
  77. <![CDATA[
  78. grd_vocendlist.mergeCol(0) = false;
  79. grd_vocendlist.mergeCol(3) = false;
  80. grd_vocendlist.mergeCol(4) = false;
  81. grd_vocendlist.mergeCol(5) = false;
  82. grd_vocendlist.mergeCol(6) = false;
  83. grd_vocendlist.mergeCol(7) = false;
  84. grd_vocendlist.mergeCol(8) = false;
  85. grd_vocendlist.mergeCol(9) = false;
  86. grd_vocendlist.mergeCol(10) = false;
  87. grd_vocendlist.mergeCol(11) = false;
  88. ]]>
  89. </script>
  90. <script type="javascript">
  91. <![CDATA[
  92. function fCheckAuth() {
  93. // 권한체크
  94. if (!checkAuth("r")) {
  95. btnicon_search1.disabled = true;
  96. btn_search.disabled = true;
  97. }
  98. if (!checkAuth("x")) {
  99. btn_print1.disabled = true;
  100. btn_print2.disabled = true;
  101. }
  102. if (!checkAuth("p")) {
  103. btn_excsave.disabled = true;
  104. }
  105. }
  106. ]]>
  107. </script>
  108. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" replace="instance"/>
  109. </model>
  110. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  111. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  112. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  113. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  114. </xhtml:head>
  115. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  116. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  117. <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:165px; height:13px; ">고객상담 기록</caption>
  118. </group>
  119. <group id="grp_johe" style="left:225px; top:23px; width:970px; height:59px; vertical-align:top; ">
  120. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:970px; height:59px; background-color:#fffbf2; border-color:#ffd799; "/>
  121. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:87px; height:17px; ">접수일자 :</caption>
  122. <input id="ipt_SrchAcptDD1" ref="/root/send/data/srchacptdd1" class="input_s_essential" inputtype="date" style="left:105px; top:8px; width:120px; height:19px; "/>
  123. <caption id="caption3" class="search_no_b" style="left:230px; top:9px; width:12px; height:17px; ">~</caption>
  124. <input id="ipt_SrchAcptDD2" ref="/root/send/data/srchacptdd2" class="input_s_essential" inputtype="date" style="left:245px; top:8px; width:120px; height:19px; "/>
  125. <caption id="caption4" class="search_name" style="left:394px; top:9px; width:87px; height:17px; ">접수구분 :</caption>
  126. <select1 id="cmb_SrchAcptTypeCd" ref="/root/send/data/srchacpttypecd" class="combo_search" appearance="minimal" style="left:483px; top:8px; width:130px; height:19px; ">
  127. <choices>
  128. <itemset nodeset="/root/init/C0001list/C0001">
  129. <label ref="cdnm"/>
  130. <value ref="cdid"/>
  131. </itemset>
  132. </choices>
  133. </select1>
  134. <caption id="caption5" class="search_name" style="left:640px; top:9px; width:87px; height:17px; ">완료여부 :</caption>
  135. <select1 id="cmb_SrchPrcsStatCd" ref="/root/send/data/srchprcsstatcd" class="combo_search" appearance="minimal" style="left:730px; top:8px; width:130px; height:19px; ">
  136. <choices>
  137. <item>
  138. <label>전체처리완료</label>
  139. <value>Z</value>
  140. </item>
  141. <item>
  142. <label>자체처리</label>
  143. <value>X</value>
  144. </item>
  145. </choices>
  146. </select1>
  147. <caption id="caption6" class="search_name" style="left:15px; top:33px; width:87px; height:17px; ">담당부서 :</caption>
  148. <output id="ipt_SrchDeptCd" ref="/root/send/data/srchdeptcd" class="output_fix" style="left:105px; top:32px; width:80px; height:19px; "/>
  149. <button id="btnicon_search1" class="icon_search" style="left:190px; top:32px; width:16px; height:16px; ">
  150. <caption/>
  151. <script type="javascript" ev:event="DOMActivate">
  152. <![CDATA[
  153. var search_term = model.getValue("/root/send/data/srchdeptcd");
  154. if ( search_term != "") {
  155. var search_condition = "deptcd";
  156. } else {
  157. var search_condition = "deptnm";
  158. }
  159. var receive_deptcd_path = "/root/send/data/srchdeptcd";
  160. var receive_deptnm_path = "/root/send/data/srchdeptnm";
  161. setParameter("search_condition", search_condition);
  162. setParameter("search_term", search_term);
  163. setParameter("receive_deptcd_path", receive_deptcd_path);
  164. setParameter("receive_deptnm_path", receive_deptnm_path);
  165. modal("SPCCM00300")
  166. clearParameter("search_condition");
  167. clearParameter("search_term");
  168. clearParameter("receive_deptcd_path");
  169. clearParameter("receive_deptnm_path");
  170. ]]>
  171. </script>
  172. </button>
  173. <input id="ipt_SrchDeptNm" ref="/root/send/data/srchdeptnm" class="input_search" style="left:210px; top:32px; width:155px; height:19px; "/>
  174. <caption id="caption8" class="search_name" style="left:394px; top:33px; width:87px; height:17px; ">환 자 명 :</caption>
  175. <input id="ipt_SrchPatNm" ref="/root/send/data/srchpatnm" class="input_search" style="left:483px; top:32px; width:130px; height:19px; ">
  176. <script type="javascript" ev:event="onkeyup">
  177. <![CDATA[
  178. inputEnterKey("btn_search", "DOMActivate");
  179. ]]>
  180. </script>
  181. </input>
  182. <caption id="caption7" class="search_name" style="left:640px; top:33px; width:87px; height:17px; ">민 원 인 :</caption>
  183. <input id="ipt_SrchCintNm" ref="/root/send/data/srchcintnm" class="input_search" style="left:730px; top:32px; width:130px; height:19px; ">
  184. <script type="javascript" ev:event="onkeyup">
  185. <![CDATA[
  186. inputEnterKey("btn_search", "DOMActivate");
  187. ]]>
  188. </script>
  189. </input>
  190. <line id="line1" class="line_4" style="x1:883px; y1:7px; x2:883px; y2:53px; "/>
  191. <button id="btn_search" class="btn1_letter2" style="left:898px; top:17px; width:56px; height:22px; ">
  192. <caption>조회</caption>
  193. <script type="javascript" ev:event="DOMActivate">
  194. <![CDATA[
  195. if (isRequiredControls("ipt_SrchAcptDD1", "ipt_SrchAcptDD2") ){
  196. model.removeNodeset("/root/main/list/vocendlist");
  197. if (model.getValue("/root/send/data/srchprcsstatcd") == "X"){
  198. model.setValue("/root/send/data/srchdeptcd", "");
  199. model.setValue("/root/send/data/srchdeptnm", "");
  200. }
  201. submit("TRCVE00101");
  202. model.SetFocus("grd_vocendlist");
  203. }
  204. ]]>
  205. </script>
  206. </button>
  207. </group>
  208. <group id="grp_customer" style="left:225px; top:82px; width:970px; height:669px; ">
  209. <caption id="caption9" class="tit_2" style="left:5px; top:10px; width:136px; height:13px; ">고객상담 완료목록</caption>
  210. <button id="btn_excsave" class="btn2_letter4" visibility="visible" style="left:903px; top:5px; width:64px; height:19px; ">
  211. <caption>엑셀저장</caption>
  212. <script type="javascript" ev:event="DOMActivate">
  213. <![CDATA[
  214. var fileName = window.fileDialog("save", ",", false, "VOC접수목록엑셀", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  215. if (fileName != "")
  216. {
  217. grd_vocendlist.saveExcel(fileName);
  218. }
  219. ]]>
  220. </script>
  221. </button>
  222. <line id="line2" class="line_1" style="x1:0px; y1:25px; x2:970px; y2:25px; "/>
  223. <datagrid id="grd_vocendlist" nodeset="/root/main/list/vocendlist" allowselection="false" caption="접수번호^접수일자^접수구분^제목^접수유형^진행상태^민원인^담당부서^등록자^부서코드" colsep="^" colwidth="70, 80, 80, 330, 70, 80, 80, 75, 75" dataheight="23" defaultrows="0" extendlastcol="scroll" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="reverseseq" rowheight="23" rowsep="|" style="left:0px; top:30px; width:970px; height:639px; ">
  224. <col class="text_center" ref="acptseq"/>
  225. <col class="text_center" ref="acptdd" format="yyyy-mm-dd"/>
  226. <col class="text_center" ref="acpttype"/>
  227. <col ref="acpttitl"/>
  228. <col class="text_center" ref="acptkindlrg"/>
  229. <col class="text_center" ref="prcsstat"/>
  230. <col class="text_center" ref="clntnm"/>
  231. <col ref="deptnm"/>
  232. <col class="text_center" ref="fstrgstrnm"/>
  233. <script type="javascript" ev:event="ondblclick">
  234. <![CDATA[
  235. var row = grd_vocendlist.row;
  236. var receive_acptdd = grd_vocendlist.valueMatrix(row, grd_vocendlist.colRef("acptdd"));
  237. var receive_acptseq = grd_vocendlist.valueMatrix(row, grd_vocendlist.colRef("acptseq"));
  238. if ((grd_vocendlist.row > 0) && grd_vocendlist.isCell(event.target)){
  239. model.setValue("/root/send/key/sndacptdd", receive_acptdd);
  240. model.setValue("/root/send/key/sndacptseq", receive_acptseq);
  241. // navigate("SMCVD00200", "", "", "", "SMCVD00200", "/root/send", "/root/main/temp");
  242. } else {
  243. }
  244. ]]>
  245. </script>
  246. </datagrid>
  247. </group>
  248. <group id="grp_btn" scroll="auto" style="left:225px; top:751px; width:970px; height:27px; ">
  249. <caption id="caption20" class="hand" style="left:100px; top:7px; width:589px; height:17px; ">고객상담기록에서는 처리완료 목록에 대하여 상담기록을 출력하실 수 있습니다.</caption>
  250. <button id="btn_print1" class="btn4_letter8" style="left:700px; top:5px; width:128px; height:22px; ">
  251. <caption>회신요청서 출력</caption>
  252. <script type="javascript" ev:event="DOMActivate">
  253. <![CDATA[
  254. var row = grd_vocendlist.row;
  255. var receive_acptdd = grd_vocendlist.valueMatrix(row, grd_vocendlist.colRef("acptdd"));
  256. var receive_acptseq = grd_vocendlist.valueMatrix(row, grd_vocendlist.colRef("acptseq"));
  257. if ((grd_vocendlist.row > 0) && (grd_vocendlist.col > 1)){
  258. model.setValue("/root/send/key/sndacptdd", receive_acptdd);
  259. model.setValue("/root/send/key/sndacptseq", receive_acptseq);
  260. // navigate("SMCVD00200", "", "", "", "SMCVD00200", "/root/send", "/root/main/temp");
  261. } else {
  262. messageBox("조회하신 후 목록을 ","C002");
  263. model.SetFocus("grd_vocendlist");
  264. }
  265. ]]>
  266. </script>
  267. </button>
  268. <button id="btn_print2" class="btn4_letter9" style="left:830px; top:5px; width:140px; height:22px; ">
  269. <caption>고객상담 기록 출력</caption>
  270. <script type="javascript" ev:event="DOMActivate">
  271. <![CDATA[
  272. var row = grd_vocendlist.row;
  273. var receive_acptdd = grd_vocendlist.valueMatrix(row, grd_vocendlist.colRef("acptdd"));
  274. var receive_acptseq = grd_vocendlist.valueMatrix(row, grd_vocendlist.colRef("acptseq"));
  275. if ((grd_vocendlist.row > 0) && (grd_vocendlist.col > 1)){
  276. model.setValue("/root/send/key/sndacptdd", receive_acptdd);
  277. model.setValue("/root/send/key/sndacptseq", receive_acptseq);
  278. // navigate("SMCVD00200", "", "", "", "SMCVD00200", "/root/send", "/root/main/temp");
  279. } else {
  280. messageBox("조회하신 후 목록을 ","C002");
  281. model.SetFocus("grd_vocendlist");
  282. }
  283. ]]>
  284. </script>
  285. </button>
  286. </group>
  287. <import id="import1" overflow="hidden" instancetype="merge" src="./SSCVA00100_LeftTree.xrw" style="left:0px; top:23px; width:215px; height:744px; "/>
  288. </xhtml:body>
  289. </xhtml:html>