SMCIT01100_만족도결과분석관리.xrw 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * Name : SMCIT01100_만족도결과분석관리
  4. * Summary : 만족도 결과 분석 관리
  5. * Programmer : 황현석
  6. * Date Written : 2010.07.02.
  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. <satsfctexeclist>
  19. <stintitlcnts/>
  20. <stinexecperd/>
  21. <stintrgtflagcd/>
  22. <stininvsmthdcd/>
  23. <qpaprtitlcnts/>
  24. <answprsncnt/>
  25. <execdeptnm/>
  26. <execdeptcd/>
  27. <execnm/>
  28. <execid/>
  29. <stinexecstartdd/>
  30. <stinexecenddd/>
  31. <stinseqno/>
  32. <qpaprseqno/>
  33. <stintrgtnopl/>
  34. <stintrgtdesccnts/>
  35. <execrsltenddd/>
  36. <execrsltendyn/>
  37. </satsfctexeclist>
  38. <execrsltenddd/>
  39. <stinnctslist>
  40. <stininnscnts/>
  41. <stinexecstartdd/>
  42. <stinexecenddd/>
  43. <stintrgtnopl/>
  44. <stintrgtdesccnts/>
  45. <stintrgtflagcd/>
  46. <stininvsmthdcd/>
  47. <stintitlcnts/>
  48. <qpaprtitlcnts/>
  49. </stinnctslist>
  50. <stinexecrslt>
  51. <answprsncnt/>
  52. <answrate/>
  53. </stinexecrslt>
  54. <rsltlist>
  55. <row>
  56. <qestitemgrupseqno/>
  57. <qestitemgrupnm/>
  58. <stingrupavg/>
  59. </row>
  60. </rsltlist>
  61. </main>
  62. <send>
  63. <srch>
  64. <stinexecstartdd/>
  65. <stinexecenddd/>
  66. <stintitlcnts/>
  67. <execdeptnm/>
  68. <execdeptcd/>
  69. <stinprcsstatcd/>
  70. </srch>
  71. <valuesrch>
  72. <stinseqno/>
  73. <qpaprseqno/>
  74. <view_chart_yn>N</view_chart_yn>
  75. </valuesrch>
  76. </send>
  77. <init>
  78. <C0109list/>
  79. <C0111list/>
  80. </init>
  81. <hidden>
  82. <ref>
  83. <refgbn/>
  84. </ref>
  85. <buttonmode/>
  86. </hidden>
  87. <test>
  88. <rsltlist/>
  89. </test>
  90. </root>
  91. </instance>
  92. <submission id="TRCIT00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srch" resultref="/root/main/satsfctexeclist"/>
  93. <submission id="TRCIT01002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/valuesrch" resultref="/root/main/stinexecrslt"/>
  94. <submission id="TRCIT01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/valuesrch" resultref="/root/test/rsltlist"/>
  95. <submission id="TXCIT01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedate"/>
  96. </model>
  97. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  98. <script type="javascript" src="../../../com/commonweb/js/rexpert30.js"/>
  99. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  100. <script type="javascript" src="../../../com/commonweb/js/tchartHelper.js"/>
  101. <script type="javascript" src="../../../crm/crmweb/js/CCZ001.js"/>
  102. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  103. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  104. <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
  105. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  106. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  107. <script type="javascript" ev:event="xforms-ready">
  108. <![CDATA[
  109. // 전역변수 선언
  110. var gRow = 0;
  111. // 공통코드 C0109 : 만족도 대상구분, C0111 : 만족도 조사방법
  112. zbcfGetCodeList( new Array("C0109", "C0111"), new Array("/root/init/C0109list", "/root/init/C0111list"));
  113. //사용자 부서 설정
  114. var dutplcenm = getUserInfo("dutplcenm");
  115. model.setValue("/root/send/srch/execdeptnm", dutplcenm);
  116. var dutplcecd = getUserInfo("dutplcecd");
  117. model.setValue("/root/send/srch/execdeptcd", dutplcecd);
  118. // 시작 화면에 오늘 날짜 & 1년 전 보여주기
  119. model.setValue("/root/send/srch/stinexecstartdd", getCurrentDate().toDate().getAddDate(-1,"Y").getDateFormat());
  120. model.setValue("/root/send/srch/stinexecenddd", getCurrentDate());
  121. model.setValue("/root/main/execrsltenddd", getCurrentDate());
  122. model.setValue("/root/hidden/buttonmode", "I");
  123. model.removeNodeset("/root/main/satsfctexeclist");
  124. // 화면 오픈시 전체결과 선택
  125. btn_allrslt.selected = true;
  126. chk_chart.disabled = true;
  127. fSetButton();
  128. fSetInit();
  129. ]]>
  130. </script>
  131. <script type="javascript">
  132. <![CDATA[
  133. function fGetNResultRef() {
  134. var cols = datagrid2.cols-datagrid2.fixedCols;
  135. var rows = datagrid2.rows-datagrid2.fixedRows;
  136. for( var i = 0; i < cols; i++ ) {
  137. datagrid2.removeColumn(false);
  138. }
  139. for( var i = 0; i < rows; i++ ) {
  140. datagrid2.removeRow(false);
  141. }
  142. model.removeNodeset("/root/main/rsltlist");
  143. submit("TRCIT01101" , false);
  144. var gridCaption = model.getValue("/root/test/rsltlist/header/caption");
  145. if(gridCaption == "") return;
  146. //ref 정보
  147. var gridColRef = model.getValue("/root/test/rsltlist/header/colref");
  148. var gridColRefArray = gridColRef.split("^");
  149. var gridColType = model.getValue("/root/test/rsltlist/header/type");
  150. var gridColTypeArray = gridColType.split("^");
  151. for( var i = 0; i < gridColRefArray.length; i++ ) {
  152. datagrid2.addColumn("ref:" + gridColRefArray[i] + "; type:"+gridColTypeArray[i]+"; ", false);
  153. datagrid2.colWidth(i+1) = 90;
  154. }
  155. datagrid2.caption = gridCaption;
  156. var node = instance1.selectSingleNode("/root/main");
  157. node.replaceChild(instance1.root.test.rsltlist, instance1.root.main.rsltlist);
  158. datagrid2.rowheight(0) = 30;
  159. datagrid2.rebuild();
  160. model.refresh();
  161. }
  162. function fSetButton(){
  163. var btn_mode = model.getValue("/root/hidden/buttonmode");
  164. if (btn_mode == "I") {
  165. btn_viewchrt.disabled = true; // 챠트보기
  166. btn_qestprnt.disabled = true; // 결과출력
  167. btn_qestprnt2.disabled = true; // 과별출력
  168. btn_execansw.disabled = true; // 엑셀답변정보
  169. chk_chart.disabled = true;
  170. } else {
  171. btn_viewchrt.disabled = false;
  172. btn_qestprnt.disabled = false;
  173. btn_qestprnt2.disabled = false;
  174. btn_execansw.disabled = false;
  175. chk_chart.disabled = false;
  176. }
  177. model.refresh();
  178. }
  179. function fSetInit(ref){
  180. if(ref != 2) {
  181. datagrid2.rowHeight(0) = 30;
  182. if(ref == 1) {
  183. var cols = datagrid2.cols-datagrid2.fixedCols;
  184. var rows = datagrid2.rows-datagrid2.fixedRows;
  185. for( var i = 0; i < cols; i++ ) {
  186. datagrid2.removeColumn(false);
  187. }
  188. for( var i = 0; i < rows; i++ ) {
  189. datagrid2.removeRow(false);
  190. }
  191. model.makeNode("/root/main/rsltlist/row");
  192. }
  193. }
  194. createTChart("object1", 5, 5, 700, 200, case2); //그래프 object 생성
  195. model.refresh();
  196. }
  197. function fDrawGraph(){
  198. model.refresh();
  199. drawLine999(object1, datagrid2, "문항그룹별 점수", true);
  200. }
  201. // 챠트
  202. function drawLine999(tChartObj, gridObj, title, refresh) {
  203. // TChart 초기화
  204. if( refresh ) {
  205. tChartObj.RemoveAllSeries();
  206. tChartObj.Tools.clear();
  207. }
  208. if( title != null || title == "" ) {
  209. tChartObj.Header.Text(0) = title; // Title 설정
  210. }
  211. tChartObj.Aspect.View3D = 0; // 모양 설정 :: 0 = 2D | 1 = 3D
  212. // tChartObj.Themes = 8; // 0~8
  213. tChartObj.Legend.CheckBoxes = true;
  214. tChartObj.Legend.Alignment = 1; // Legend 위치 설정 :: 0 = left | 1 = right | 2 = top| 3 = bottom
  215. var Rnd1, Rnd2, Rnd3;
  216. var cColor;
  217. var i;
  218. var x, y;
  219. for(j = 1; j<gridObj.rows; j++){
  220. // if(gridObj.valueMatrix(j, 1) == "true"){
  221. tChartObj.AddSeries(1); // TChart Type 설정 :: 0 = Line | 1 = Bar ..
  222. var seriesIndex = tChartObj.SeriesCount -1;
  223. tChartObj.Series(seriesIndex).Title = "백분율"; //datagrid2.valueMatrix(0, j);
  224. tChartObj.Axis.Bottom.Labels.Angle = 0; //270
  225. tChartObj.Axis.Bottom.Labels.Visible = false;
  226. // tChartObj.Series(seriesIndex).Marks.Visible = true;
  227. tChartObj.Series(seriesIndex).Marks.Style = 4; // 0~4
  228. cColor = window.rgb(204, 232, 255);
  229. tChartObj.Series(seriesIndex).Color = cColor;
  230. for( i = 1; i < gridObj.cols; i++ ){
  231. Rnd1 = Math.random();
  232. Rnd2 = Math.random();
  233. Rnd3 = Math.random();
  234. cColor2 = window.rgb( (255 - 1) * Rnd1 + 1, (255 - 1) * Rnd2 + 1 , (255 - 1) * Rnd3 + 1);
  235. x = datagrid2.valueMatrix(0, i);
  236. y = datagrid2.valueMatrix(j, i);
  237. if(y != "" && !isNaN(y)){
  238. // tChartObj.Series(seriesIndex).Add (y, x, tChartObj.Series(seriesIndex).Color);
  239. tChartObj.Series(seriesIndex).Add (y, x, cColor2);
  240. tChartObj.Series(seriesIndex).LegendItemColor(cColor2);
  241. }
  242. }
  243. // }
  244. }
  245. }
  246. function fSetupBase(row) {
  247. if(row > 0 && grd_satsfctexeclist.fixedRows > 0){
  248. // 선택한 설문문항 그룹 목록을 그룹 목록 보기로 념거준다
  249. var stintitlcnts = grd_satsfctexeclist.valueMatrix(row, grd_satsfctexeclist.colRef("stintitlcnts"));
  250. var stintrgtflagcd = grd_satsfctexeclist.valueMatrix(row, grd_satsfctexeclist.colRef("stintrgtflagcd"));
  251. var stininvsmthdcd = grd_satsfctexeclist.valueMatrix(row, grd_satsfctexeclist.colRef("stininvsmthdcd"));
  252. var qpaprtitlcnts = grd_satsfctexeclist.valueMatrix(row, grd_satsfctexeclist.colRef("qpaprtitlcnts"));
  253. var stinseqno = grd_satsfctexeclist.valueMatrix(row, grd_satsfctexeclist.colRef("stinseqno"));
  254. var stininnscnts = grd_satsfctexeclist.valueMatrix(row, grd_satsfctexeclist.colRef("stininnscnts"));
  255. var qpaprseqno = grd_satsfctexeclist.valueMatrix(row, grd_satsfctexeclist.colRef("qpaprseqno"));
  256. var stintrgtnopl = grd_satsfctexeclist.valueMatrix(row, grd_satsfctexeclist.colRef("stintrgtnopl"));
  257. var stintrgtdesccnts = grd_satsfctexeclist.valueMatrix(row, grd_satsfctexeclist.colRef("stintrgtdesccnts"));
  258. var stinexecstartdd = grd_satsfctexeclist.valueMatrix(row, grd_satsfctexeclist.colRef("stinexecstartdd"));
  259. var stinexecenddd = grd_satsfctexeclist.valueMatrix(row, grd_satsfctexeclist.colRef("stinexecenddd"));
  260. var execrsltenddd = grd_satsfctexeclist.valueMatrix(row, grd_satsfctexeclist.colRef("execrsltenddd"));
  261. var execrsltendyn = grd_satsfctexeclist.valueMatrix(row, grd_satsfctexeclist.colRef("execrsltendyn"));
  262. model.setValue("/root/main/stinnctslist/stintitlcnts", stintitlcnts);
  263. model.setValue("/root/main/stinnctslist/stintrgtflagcd", stintrgtflagcd);
  264. model.setValue("/root/main/stinnctslist/stininvsmthdcd", stininvsmthdcd);
  265. model.setValue("/root/main/stinnctslist/qpaprtitlcnts", qpaprtitlcnts);
  266. model.setValue("/root/main/stinnctslist/stininnscnts", stininnscnts);
  267. model.setValue("/root/main/stinnctslist/stintrgtnopl", stintrgtnopl);
  268. model.setValue("/root/main/stinnctslist/stintrgtdesccnts", stintrgtdesccnts);
  269. model.setValue("/root/main/stinnctslist/stinexecstartdd", stinexecstartdd);
  270. model.setValue("/root/main/stinnctslist/stinexecenddd", stinexecenddd);
  271. model.setValue("/root/main/execrsltenddd", execrsltenddd);
  272. // 만족도 마감시에 마감일자 수정불가
  273. if (execrsltendyn == "Y") {
  274. ipt_execrsltenddd.disabled = true;
  275. btn_stinend.disabled = true; // 마감하기
  276. btn_endcncl.disabled = false;
  277. } else {
  278. ipt_execrsltenddd.disabled = false;
  279. btn_stinend.disabled = false; // 마감하기
  280. btn_endcncl.disabled = true;
  281. model.setValue("/root/main/execrsltenddd", getCurrentDate());
  282. }
  283. model.setValue("/root/send/valuesrch/stinseqno", stinseqno);
  284. model.setValue("/root/send/valuesrch/qpaprseqno", qpaprseqno);
  285. if (submit("TRCIT01002")){
  286. fGetNResultRef();
  287. }
  288. // 응답률 계산하기
  289. var answprsncnt = model.getValue("/root/main/stinexecrslt/answprsncnt");
  290. if (answprsncnt < 1 ) {
  291. model.setValue("/root/main/stinexecrslt/answrate", "0");
  292. } else {
  293. model.setValue("/root/main/stinexecrslt/answrate", ((answprsncnt / stintrgtnopl) * 100));
  294. }
  295. model.setValue("/root/hidden/buttonmode", "U");
  296. }
  297. model.toggle("case1");
  298. btn_allrslt.selected = true;
  299. model.setValue("/root/send/valuesrch/view_chart_yn", "Y");
  300. fSetButton();
  301. model.refresh();
  302. }
  303. ]]>
  304. </script>
  305. </xhtml:head>
  306. <xhtml:body pagewidth="1195" pageheight="784" guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  307. <caption id="caption1" class="tit_1" style="left:5px; top:0px; width:150; height:13px; ">만족도 결과분석 관리</caption>
  308. <group id="group1" style="left:0px; top:23px; width:1195px; height:35px; ">
  309. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:35px; "/>
  310. <caption id="caption2" class="search_name" style="left:15; top:9; width:80; height:17; ">조사기간</caption>
  311. <input id="ipt_srch_stinexecstartdd" ref="/root/send/srch/stinexecstartdd" class="input_search" inputtype="date" style="left:98; top:8; width:90; height:19; "/>
  312. <caption id="caption3" style="left:193; top:8; width:12; height:19; ">~</caption>
  313. <input id="ipt_srch_stinexecenddd" ref="/root/send/srch/stinexecenddd" class="input_search" inputtype="date" style="left:210; top:8; width:90; height:19px; "/>
  314. <caption id="caption4" class="search_name" style="left:310px; top:9px; width:100px; height:17px; ">만족도 제목</caption>
  315. <input id="ipt_srch_stintitlcnts" ref="/root/send/srch/stintitlcnts" class="input_search" style="left:415px; top:8px; width:180px; height:19px; ">
  316. <script type="javascript" ev:event="onkeyup">
  317. <![CDATA[
  318. inputEnterKey("btn_search", "DOMActivate");
  319. ]]>
  320. </script>
  321. </input>
  322. <caption id="caption6" class="search_name" style="left:605px; top:9px; width:80px; height:17px; ">실행부서</caption>
  323. <input id="ipt_scrh_execdeptcd" ref="/root/send/srch/execdeptnm" disabled="true" style="left:690px; top:8px; width:120px; height:19px; "/>
  324. <button id="btn_execschr" class="icon_search" style="left:813px; top:8px; width:16px; height:16px; ">
  325. <caption/>
  326. <script type="javascript" ev:event="DOMActivate">
  327. <![CDATA[
  328. var search_condition = "deptnm";
  329. var search_term = model.getValue("/root/send/srch/execdeptnm");
  330. var receive_deptcd_path = "/root/send/srch/execdeptcd";
  331. var receive_deptnm_path = "/root/send/srch/execdeptnm";
  332. cczfOpenSelectDept(search_condition, search_term, receive_deptcd_path, receive_deptnm_path);
  333. ]]>
  334. </script>
  335. </button>
  336. <input id="ipt_scrh_execid" ref="/root/send/srch/execdeptcd" disabled="true" style="left:832px; top:8px; width:70px; height:19px; "/>
  337. <line id="line1" class="line_4" style="x1:1112px; y1:7px; x2:1112px; y2:29px; "/>
  338. <button id="btn_search" class="btn1_letter2" style="left:1127; top:7; width:56px; height:22px; ">
  339. <caption>조회</caption>
  340. <script type="javascript" ev:event="DOMActivate">
  341. <![CDATA[
  342. // model.setValue("/root/send/srch/stinprcsstatcd", "1");
  343. submit("TRCIT00801");
  344. ]]>
  345. </script>
  346. </button>
  347. </group>
  348. <caption id="caption7" class="tit_2" style="left:0px; top:68px; width:200px; height:13px; ">만족도 실행 결과 목록</caption>
  349. <button id="btn_saveexcel" class="btn2_letter4" style="left:1131px; top:62px; width:64px; height:19px; ">
  350. <caption>엑셀저장</caption>
  351. <script type="javascript" ev:event="DOMActivate">
  352. <![CDATA[
  353. var fileName = window.fileDialog("save", ",", false, "만족도 결과 목록", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  354. if (fileName != "") {
  355. grd_satsfctexeclist.saveExcel(fileName);
  356. }
  357. ]]>
  358. </script>
  359. </button>
  360. <line id="line21" class="line_1" style="x1:0px; y1:83px; x2:1195px; y2:83px; "/>
  361. <datagrid id="grd_satsfctexeclist" nodeset="/root/main/satsfctexeclist" caption="만족도 제목^조사기간^조사대상^조사방법^설문지^응답수^실행부서^실행자" colsep="^" colwidth="300, 150, 90, 130, 277, 46, 100, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0" ellipsis="true" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:88px; width:1195px; height:346px; ">
  362. <col ref="stintitlcnts"/>
  363. <col ref="stinexecperd"/>
  364. <col disabled="true" ref="stintrgtflagcd" type="combo">
  365. <choices>
  366. <itemset nodeset="/root/init/C0109list/C0109">
  367. <label ref="cdnm"/>
  368. <value ref="cdid"/>
  369. </itemset>
  370. </choices>
  371. </col>
  372. <col disabled="true" ref="stininvsmthdcd" type="combo">
  373. <choices>
  374. <itemset nodeset="/root/init/C0111list/C0111">
  375. <label ref="cdnm"/>
  376. <value ref="cdid"/>
  377. </itemset>
  378. </choices>
  379. </col>
  380. <col ref="qpaprtitlcnts"/>
  381. <col ref="answprsncnt"/>
  382. <col ref="execdeptnm"/>
  383. <col ref="execnm" style="text-align:center; "/>
  384. <col ref="execdeptcd" visibility="hidden"/>
  385. <col ref="execid" visibility="hidden"/>
  386. <col ref="stinexecenddd" visibility="hidden"/>
  387. <col ref="stinexecstartdd" visibility="hidden"/>
  388. <col ref="stinseqno" visibility="hidden"/>
  389. <col ref="qpaprseqno" visibility="hidden"/>
  390. <col ref="stintrgtnopl" visibility="hidden"/>
  391. <col ref="stintrgtdesccnts" visibility="hidden"/>
  392. <col ref="execrsltenddd" visibility="hidden"/>
  393. <col ref="execrsltendyn" visibility="hidden"/>
  394. <script type="javascript" ev:event="ondblclick">
  395. <![CDATA[
  396. gRow = grd_satsfctexeclist.row;
  397. fSetupBase(gRow);
  398. ]]>
  399. </script>
  400. </datagrid>
  401. <line id="line2" class="line_1" style="x1:0px; y1:459px; x2:1195px; y2:459px; "/>
  402. <caption id="caption5" class="tit_2" style="left:0px; top:444px; width:149px; height:13px; ">만족도 결과 분석 내용</caption>
  403. <caption id="caption8" style="left:843px; top:440px; width:60px; height:17px; ">마감일자 :</caption>
  404. <input id="ipt_execrsltenddd" ref="/root/main/execrsltenddd" inputtype="date" style="left:906px; top:438px; width:100px; height:19px; "/>
  405. <button id="btn_endcncl" class="btn5_letter6" style="left:1009px; top:438px; width:86px; height:19px; ">
  406. <caption>마감 취소하기</caption>
  407. <script type="javascript" ev:event="DOMActivate">
  408. <![CDATA[
  409. model.makeValue("/root/send/savedate/execrsltendyn", "N");
  410. model.makeValue("/root/send/savedate/execrsltenddd", " ");
  411. model.makeValue("/root/send/savedate/stinseqno", model.getValue("/root/send/valuesrch/stinseqno"));
  412. if (submit("TXCIT01001")) {
  413. messageBox("만족도 마감 여부가 취소","I001");
  414. submit("TRCIT00801");
  415. }
  416. fSetupBase(gRow);
  417. ]]>
  418. </script>
  419. </button>
  420. <button id="btn_stinend" class="btn5_letter7" style="left:1098px; top:438px; width:97px; height:19px; ">
  421. <caption>만족도 마감하기</caption>
  422. <script type="javascript" ev:event="DOMActivate">
  423. <![CDATA[
  424. var execrsltenddd = model.getValue("/root/main/execrsltenddd");
  425. if (execrsltenddd != "") {
  426. model.makeValue("/root/send/savedate/execrsltendyn", "Y");
  427. model.makeValue("/root/send/savedate/execrsltenddd", execrsltenddd);
  428. model.makeValue("/root/send/savedate/stinseqno", model.getValue("/root/send/valuesrch/stinseqno"));
  429. if (submit("TXCIT01001")) {
  430. messageBox("만족도가 마감","I001");
  431. submit("TRCIT00801");
  432. }
  433. fSetupBase(gRow);
  434. } else {
  435. messageBox("마감일자를","C001");
  436. model.setFocus("/root/main/execrsltenddd");
  437. }
  438. model.removeNodeset("/root/send/savedate");
  439. model.refresh();
  440. ]]>
  441. </script>
  442. </button>
  443. <line id="line3" class="line_2" style="x1:0px; y1:486px; x2:1195px; y2:486px; "/>
  444. <caption id="caption9" class="cell_1" style="left:0px; top:464px; width:90px; height:23px; ">만족도 제목</caption>
  445. <input id="ipt_stintitlcnts" ref="/root/main/stinnctslist/stintitlcnts" disabled="true" style="left:93px; top:465px; width:1102px; height:19px; "/>
  446. <line id="line4" class="line_3" style="x1:0px; y1:510px; x2:1195px; y2:510px; "/>
  447. <caption id="caption10" class="cell_1" style="left:0px; top:488px; width:90px; height:23px; ">설문지</caption>
  448. <input id="ipt_qpaprtitlcnts" ref="/root/main/stinnctslist/qpaprtitlcnts" disabled="true" style="left:93px; top:489px; width:1102px; height:19px; "/>
  449. <line id="line5" class="line_1" style="x1:0px; y1:536px; x2:432px; y2:536px; "/>
  450. <caption id="caption11" class="tit_2" style="left:0px; top:521px; width:100px; height:13px; ">조사개요</caption>
  451. <line id="line6" class="line_2" style="x1:0px; y1:590px; x2:432px; y2:590px; "/>
  452. <caption id="caption12" class="cell_1" style="left:0px; top:541px; width:90px; height:50px; ">조사목적</caption>
  453. <textarea id="textarea1" ref="/root/main/stinnctslist/stininnscnts" disabled="true" style="left:93px; top:542px; width:339px; height:47px; "/>
  454. <line id="line7" class="line_2" style="x1:0px; y1:614px; x2:432px; y2:614px; "/>
  455. <caption id="caption13" class="cell_1" style="left:0px; top:592px; width:90px; height:23px; ">조사기간</caption>
  456. <input id="ipt_stinexecstartdd" ref="/root/main/stinnctslist/stinexecstartdd" disabled="true" style="left:93px; top:593px; width:85px; height:19px; "/>
  457. <caption id="caption14" style="left:181px; top:594px; width:13px; height:17px; ">~</caption>
  458. <input id="ipt_stinexecenddd" ref="/root/main/stinnctslist/stinexecenddd" disabled="true" style="left:197px; top:593px; width:85px; height:19px; "/>
  459. <line id="line8" class="line_2" style="x1:0px; y1:638px; x2:432px; y2:638px; "/>
  460. <caption id="caption15" class="cell_1" style="left:0px; top:616px; width:90px; height:23px; ">조사대상</caption>
  461. <caption id="caption16" style="left:93px; top:619px; width:106px; height:17px; ">설문대상 인원 수 :</caption>
  462. <select1 id="cmb_stintrgtflagcd" ref="/root/main/stinnctslist/stintrgtflagcd" disabled="true" appearance="minimal" style="left:202px; top:617px; width:150px; height:19px; ">
  463. <choices>
  464. <itemset nodeset="/root/init/C0109list/C0109">
  465. <label ref="cdnm"/>
  466. <value ref="cdid"/>
  467. </itemset>
  468. </choices>
  469. </select1>
  470. <input id="ipt_stintrgtnopl" ref="/root/main/stinnctslist/stintrgtnopl" disabled="true" style="left:355px; top:617px; width:50px; height:19px; "/>
  471. <caption id="caption17" style="left:408px; top:619px; width:24px; height:17px; ">(명)</caption>
  472. <line id="line9" class="line_2" style="x1:0px; y1:662px; x2:432px; y2:662px; "/>
  473. <caption id="caption18" class="cell_1" style="left:0px; top:640px; width:90px; height:23px; ">답변 인원 수</caption>
  474. <input id="ipt_wrtestatcd" ref="/root/main/stinexecrslt/answprsncnt" disabled="true" style="left:93px; top:641px; width:50px; height:19px; "/>
  475. <caption id="caption19" style="left:146px; top:643px; width:24px; height:17px; ">(명)</caption>
  476. <line id="line10" class="line_2" style="x1:0px; y1:686px; x2:432px; y2:686px; "/>
  477. <caption id="caption20" class="cell_1" style="left:0px; top:664px; width:90px; height:23px; ">응답률</caption>
  478. <input id="ipt_cnfmperc" ref="/root/main/stinexecrslt/answrate" disabled="true" style="left:93px; top:665px; width:50px; height:19px; "/>
  479. <caption id="caption21" style="left:146px; top:666px; width:14px; height:17px; ">%</caption>
  480. <line id="line11" class="line_2" style="x1:0px; y1:737px; x2:432px; y2:737px; "/>
  481. <caption id="caption22" class="cell_1" style="left:0px; top:688px; width:90px; height:50px; ">대상 설명</caption>
  482. <textarea id="tar_stintrgtdesccnts" ref="/root/main/stinnctslist/stintrgtdesccnts" disabled="true" style="left:93px; top:689px; width:339px; height:47px; "/>
  483. <line id="line12" class="line_3" style="x1:0px; y1:761px; x2:432px; y2:761px; "/>
  484. <caption id="caption23" class="cell_1" style="left:0px; top:739px; width:90px; height:23px; ">조사방법</caption>
  485. <select1 id="cmb_stininvsmthdcd" ref="/root/main/stinnctslist/stininvsmthdcd" disabled="true" appearance="minimal" style="left:93px; top:740px; width:339px; height:19px; ">
  486. <choices>
  487. <itemset nodeset="/root/init/C0111list/C0111">
  488. <label ref="cdnm"/>
  489. <value ref="cdid"/>
  490. </itemset>
  491. </choices>
  492. </select1>
  493. <switch id="switch1" style="left:452px; top:545px; width:743px; height:225px; ">
  494. <case id="case1" selected="true">
  495. <datagrid id="datagrid2" nodeset="/root/main/rsltlist/row" backcoloralternate="transparent" colsep="^" dataheight="25" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="free" style="left:0px; top:5px; width:730px; height:210px; "/>
  496. </case>
  497. <case id="case2"/>
  498. </switch>
  499. <button id="btn_viewchrt" class="btn_sw8" group="tab" style="left:528px; top:524px; width:93px; height:22px; ">
  500. <caption>그룹 평균 그래프</caption>
  501. <script type="javascript" ev:event="onclick">
  502. <![CDATA[
  503. model.setvalue("/root/hidden/ref/refgbn","2");
  504. model.toggle("case2");
  505. fDrawGraph();
  506. ]]>
  507. </script>
  508. </button>
  509. <button id="btn_execansw" class="btn2_letter7" style="left:941px; top:523px; width:97px; height:19px; ">
  510. <caption>만족도답변정보</caption>
  511. <script type="javascript" ev:event="DOMActivate">
  512. <![CDATA[
  513. // 설문지 일련번호 만족도일련번호 셋팅하기
  514. var qpaprseqno = model.getValue("/root/send/valuesrch/qpaprseqno");
  515. var stinseqno = model.getValue("/root/send/valuesrch/stinseqno");
  516. var stintitlcnts = model.getValue("/root/main/stinnctslist/stintitlcnts");
  517. var qpaprtitlcnts = model.getValue("/root/main/stinnctslist/qpaprtitlcnts");
  518. var answprsncnt = model.getValue("/root/main/stinexecrslt/answprsncnt");
  519. var stintrgtflagcd = model.getValue("/root/main/stinnctslist/stintrgtflagcd");
  520. setParameter("qpaprseqno", qpaprseqno);
  521. setParameter("stinseqno", stinseqno);
  522. setParameter("stintitlcnts", stintitlcnts);
  523. setParameter("qpaprtitlcnts", qpaprtitlcnts);
  524. setParameter("answprsncnt", answprsncnt);
  525. setParameter("stintrgtflagcd", stintrgtflagcd);
  526. modal("SPCIT01800");
  527. clearParameter("qpaprseqno");
  528. clearParameter("stinseqno");
  529. clearParameter("stintitlcnts");
  530. clearParameter("qpaprtitlcnts");
  531. clearParameter("answprsncnt");
  532. clearParameter("stintrgtid");
  533. model.refresh();
  534. ]]>
  535. </script>
  536. </button>
  537. <button id="btn_qestprnt" class="btn2_letter6" style="left:1041px; top:523px; width:86px; height:19px; ">
  538. <caption>결과분석출력</caption>
  539. <script type="javascript" ev:event="DOMActivate">
  540. <![CDATA[
  541. // 설문지 일련번호 만족도일련번호 셋팅하기
  542. var qpaprseqno = model.getValue("/root/send/valuesrch/qpaprseqno");
  543. var stinseqno = model.getValue("/root/send/valuesrch/stinseqno");
  544. var view_chart_yn = model.getValue("/root/send/valuesrch/view_chart_yn");
  545. if (view_chart_yn == "") {
  546. model.setValue("/root/send/valuesrch/view_chart_yn", "N");
  547. }
  548. if (qpaprseqno != "" && stinseqno != ""){
  549. var obj = new Object();
  550. var option = "open=0;save=1;directprint=0;printdailog=0;print=1;stop=1;excel=1;zoomin=1;zoomout=1;moveprev=1;movenext=1;combo=1;movefirst=1;movelast=1;help=1";
  551. obj.instcd = getUserInfo("dutplceinstcd");
  552. obj.stinseqno = stinseqno;
  553. obj.qpaprseqno = qpaprseqno;
  554. obj.view_chart_yn = view_chart_yn;
  555. obj.instnm = getUserInfo("dutplceinstnm");
  556. exeReportPreview30("RPCIT01100",obj, option);
  557. }
  558. ]]>
  559. </script>
  560. </button>
  561. <select id="chk_chart" ref="/root/send/valuesrch/view_chart_yn" overflow="visible" appearance="full" style="left:867px; top:527px; width:70px; height:13px; border-style:none; ">
  562. <choices>
  563. <item>
  564. <label>차트 출력</label>
  565. <value>Y</value>
  566. </item>
  567. </choices>
  568. <script type="javascript" ev:event="xforms-value-changed">
  569. <![CDATA[
  570. model.setValue("/root/send/valuesrch/view_chart_yn", "Y");
  571. ]]>
  572. </script>
  573. </select>
  574. <button id="btn_allrslt" class="btn_sw5" group="tab" style="left:452px; top:524px; width:64px; height:22px; ">
  575. <caption>전체 결과</caption>
  576. <script type="javascript" ev:event="onclick">
  577. <![CDATA[
  578. model.setvalue("/root/hidden/ref/refgbn","1");
  579. model.toggle("case1");
  580. ]]>
  581. </script>
  582. </button>
  583. <button id="btn_qestprnt2" class="btn2_letter4" style="left:1131px; top:523px; width:64px; height:19px; ">
  584. <caption>과별출력</caption>
  585. <script type="javascript" ev:event="DOMActivate">
  586. <![CDATA[
  587. // 설문지 일련번호 만족도일련번호 셋팅하기
  588. var qpaprseqno = model.getValue("/root/send/valuesrch/qpaprseqno");
  589. var stinseqno = model.getValue("/root/send/valuesrch/stinseqno");
  590. var view_chart_yn = model.getValue("/root/send/valuesrch/view_chart_yn");
  591. if (view_chart_yn == "") {
  592. model.setValue("/root/send/valuesrch/view_chart_yn", "N");
  593. }
  594. if (qpaprseqno != "" && stinseqno != ""){
  595. var obj = new Object();
  596. var option = "open=0;save=1;directprint=0;printdailog=0;print=1;stop=1;excel=1;zoomin=1;zoomout=1;moveprev=1;movenext=1;combo=1;movefirst=1;movelast=1;help=1";
  597. obj.instcd = getUserInfo("dutplceinstcd");
  598. obj.stinseqno = stinseqno;
  599. obj.qpaprseqno = qpaprseqno;
  600. obj.view_chart_yn = view_chart_yn;
  601. obj.instnm = getUserInfo("dutplceinstnm");
  602. exeReportPreview30("RPCIT01101",obj, option);
  603. }
  604. ]]>
  605. </script>
  606. </button>
  607. </xhtml:body>
  608. </xhtml:html>