SPCIT00700_설문지가져오기.xrw 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * Name : SPCIT00700_설문지가져오기
  4. * Summary : 설문지 가져오기
  5. * Programmer : 황현석
  6. * Date Written : 2010.06.28
  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>설문지 가져오기</xhtml:title>
  14. <model id="model1">
  15. <instance id="instance1">
  16. <root xmlns="">
  17. <main>
  18. <satsfctqestlist>
  19. <qpaprtitlcnts/>
  20. <qpaprgoalcd/>
  21. <itemgrupkindcd/>
  22. <stinqestcnt/>
  23. <wrtestatcd/>
  24. <rgstdeptcd/>
  25. <rgstid/>
  26. <wrteenddd/>
  27. <qpaprseqno/>
  28. <qpaprdesccnts/>
  29. <startgidewrdncnts/>
  30. <hstndeptcnts/>
  31. <endgidewrndcnts/>
  32. <rgstdeptnm/>
  33. <rgstnm/>
  34. <qestitemgrupcnt/>
  35. <humtrafactposcd/>
  36. </satsfctqestlist>
  37. <qestbasesetup>
  38. <qpaprtitlcnts/>
  39. <qpaprgoalcd/>
  40. <qpaprdesccnts/>
  41. <startgidewrdncnts/>
  42. <hstndeptcnts/>
  43. <endgidewrndcnts/>
  44. <wrtestatcd/>
  45. <wrteenddd/>
  46. <rgstdeptcd/>
  47. <rgstid/>
  48. <savemode>I</savemode>
  49. <rgstdeptnm/>
  50. <rgstnm/>
  51. <qpaprseqno/>
  52. <qestcomps>
  53. <qestitemgrupcnt/>
  54. <humtrafactposcd/>
  55. <qestgruplist>
  56. <qestitemgrupnm/>
  57. <qestitemcnt/>
  58. <qpaprseqno/>
  59. </qestgruplist>
  60. <stinqestcnt/>
  61. </qestcomps>
  62. </qestbasesetup>
  63. </main>
  64. <send>
  65. <rgstfromdd/>
  66. <rgsttodd/>
  67. <qpaprtitlcnts/>
  68. <wrtestatcd/>
  69. <qpaprgoalcd/>
  70. <qpaprseqno/>
  71. <srch_qpaprseqno/>
  72. </send>
  73. <temp>
  74. <satsfctqestlist>
  75. <qestitemgrupcnt/>
  76. <humtrafactposcd/>
  77. </satsfctqestlist>
  78. </temp>
  79. <init>
  80. <C0106list>
  81. </C0106list>
  82. <C0107list/>
  83. <C0108list/>
  84. </init>
  85. <hidden>
  86. <kindcd/>
  87. <buttonmode/>
  88. </hidden>
  89. </root>
  90. </instance>
  91. <submission id="TRCIT00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/satsfctqestlist"/>
  92. <submission id="TRCIT00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/qestbasesetup/qestcomps/qestgruplist"/>
  93. <submission id="TXCIT00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
  94. </model>
  95. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  96. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  97. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  98. <script type="javascript" ev:event="xforms-ready">
  99. <![CDATA[
  100. // 공통코드 C0107 : 작성상태, C0106 : 설문목적, C0108 : 기초설문위치
  101. zbcfGetCodeList( new Array("C0107", "C0106", "C0108"), new Array("/root/init/C0107list", "/root/init/C0106list", "/root/init/C0108list"));
  102. // 부모창의 파람값을 가져온다.
  103. var kindcd = opener.window.javascript.getParameter("kindcd");
  104. model.setValue("/root/hidden/kindcd", kindcd);
  105. // 시작 화면에 오늘 날짜 & 1년 전 보여주기
  106. model.setValue("/root/send/rgstfromdd", getCurrentDate().toDate().getAddDate(-1,"Y").getDateFormat());
  107. model.setValue("/root/send/rgsttodd", getCurrentDate());
  108. // 시작시 화면에 보여주는 값
  109. model.setValue("/root/send/wrtestatcd", "1");
  110. // 그리드 초기화
  111. model.removeNodeset("/root/main/satsfctqestlist");
  112. model.removeNodeset("/root/main/qestbasesetup/qestcomps/qestgruplist");
  113. model.setValue("/root/hidden/buttonmode", "I");
  114. fSetButtons();
  115. model.refresh();
  116. ]]>
  117. </script>
  118. <script type="javascript">
  119. <![CDATA[
  120. function fSetButtons() {
  121. var mode = model.getValue("/root/hidden/buttonmode");
  122. if (mode == "I") {
  123. btn_qestprvw.disabled = true;
  124. } else {
  125. btn_qestprvw.disabled = false;
  126. }
  127. }
  128. ]]>
  129. </script>
  130. </xhtml:head>
  131. <xhtml:body pagewidth="960" pageheight="730" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  132. <group id="group1" style="left:0px; top:10px; width:930px; height:59px; ">
  133. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:930; height:59; "/>
  134. <caption id="caption2" class="search_name" style="left:15; top:9; width:80; height:17; ">등록기간</caption>
  135. <input id="ipt_rgstformdd" ref="/root/send/rgstfromdd" class="input_search" inputtype="date" style="left:98; top:8; width:100; height:19; "/>
  136. <caption id="caption3" style="left:203; top:8; width:12; height:19; ">~</caption>
  137. <input id="ipt_rgsttodd" ref="/root/send/rgsttodd" class="input_search" inputtype="date" style="left:220; top:8; width:100; height:19px; "/>
  138. <caption id="caption4" class="search_name" style="left:332; top:9; width:100px; height:17; ">설문지 제목</caption>
  139. <input id="ipt_srch_qpaprtitlcnts" ref="/root/send/qpaprtitlcnts" class="input_search" style="left:437px; top:8px; width:180px; height:19px; ">
  140. <script type="javascript" ev:event="onkeyup">
  141. <![CDATA[
  142. inputEnterKey("btn_search", "DOMActivate");
  143. ]]>
  144. </script>
  145. </input>
  146. <caption id="caption5" class="search_name" style="left:629px; top:9px; width:80px; height:17px; ">작성상태</caption>
  147. <select1 id="cmb_wrtestatcd" ref="/root/send/wrtestatcd" class="combo_search" disabled="true" appearance="minimal" style="left:714px; top:8px; width:100px; height:19px; ">
  148. <choices>
  149. <itemset nodeset="/root/init/C0107list/C0107">
  150. <label ref="cdnm"/>
  151. <value ref="cdid"/>
  152. </itemset>
  153. </choices>
  154. </select1>
  155. <caption id="caption6" class="search_name" style="left:15px; top:33; width:100px; height:17px; ">설문지 목적</caption>
  156. <select1 id="cmb_srch_qpaprgoalcd" ref="/root/send/qpaprgoalcd" class="combo_search" appearance="minimal" style="left:120px; top:34px; width:200; height:19px; ">
  157. <choices>
  158. <itemset nodeset="/root/init/C0106list/C0106">
  159. <label ref="cdnm"/>
  160. <value ref="cdid"/>
  161. </itemset>
  162. </choices>
  163. </select1>
  164. <line id="line1" class="line_4" style="x1:843px; y1:7px; x2:843px; y2:53px; "/>
  165. <button id="btn_search" class="btn1_letter2" style="left:858px; top:17px; width:56px; height:22px; ">
  166. <caption>조회</caption>
  167. <script type="javascript" ev:event="DOMActivate">
  168. <![CDATA[
  169. var search_condition = model.getValue("/root/send/srch/qpaprtitlcnts");
  170. submit("TRCIT00301");
  171. /*
  172. if (ipt_srch_qpaprtitlcnts.value.length < 2) {
  173. messageBox("설문지 제목은 최소 2글자 이상 ", "C001");
  174. model.setFocus("ipt_srch_qpaprtitlcnts");
  175. } else {
  176. //fGetMsgTmplList();
  177. } */
  178. ]]>
  179. </script>
  180. </button>
  181. </group>
  182. <line id="line21" class="line_1" style="x1:0px; y1:99px; x2:930px; y2:99px; "/>
  183. <caption id="caption7" class="tit_2" style="left:0px; top:84px; width:140px; height:13px; ">만족도 설문지 목록</caption>
  184. <button id="btn_saveexcel" class="btn2_letter4" style="left:866px; top:78px; width:64px; height:19px; ">
  185. <caption>엑셀저장</caption>
  186. <script type="javascript" ev:event="DOMActivate">
  187. <![CDATA[
  188. var fileName = window.fileDialog("save", ",", false, "문항그룹명", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  189. if (fileName != "") {
  190. grd_patlist.saveExcel(fileName);
  191. }
  192. ]]>
  193. </script>
  194. </button>
  195. <datagrid id="grd_satsfctqestlist" nodeset="/root/main/satsfctqestlist" caption="설문지 제목^설문지 목적^설문지 구성^설문 총 문항수^작성상태^등록부서^등록자^작성완료일자" colsep="^" colwidth="300, 150, 150, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0" ellipsis="true" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:104px; width:930px; height:220px; ">
  196. <col ref="qpaprtitlcnts"/>
  197. <col disabled="true" ref="qpaprgoalcd" type="combo">
  198. <choices>
  199. <itemset nodeset="/root/init/C0106list/C0106">
  200. <label ref="cdnm"/>
  201. <value ref="cdid"/>
  202. </itemset>
  203. </choices>
  204. </col>
  205. <col ref="itemgrupkindcd"/>
  206. <col ref="stinqestcnt"/>
  207. <col disabled="true" ref="wrtestatcd" type="combo">
  208. <choices>
  209. <itemset nodeset="/root/init/C0107list/C0107">
  210. <label ref="cdnm"/>
  211. <value ref="cdid"/>
  212. </itemset>
  213. </choices>
  214. </col>
  215. <col ref="rgstdeptnm"/>
  216. <col ref="rgstnm" style="text-align:center; "/>
  217. <col ref="wrteenddd" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  218. <col ref="rgstdeptcd" visibility="hidden"/>
  219. <col ref="rgstid" visibility="hidden"/>
  220. <col ref="qpaprseqno" visibility="hidden"/>
  221. <col ref="qpaprdesccnts" visibility="hidden"/>
  222. <col ref="startgidewrdncnts" visibility="hidden"/>
  223. <col ref="hstndeptcnts" visibility="hidden"/>
  224. <col ref="endgidewrndcnts" visibility="hidden"/>
  225. <col ref="qestitemgrupcnt" visibility="hidden"/>
  226. <col ref="humtrafactposcd" visibility="hidden"/>
  227. <script type="javascript" ev:event="ondblclick">
  228. <![CDATA[
  229. // fNewMsg(); // 문항보기 내용 초기화
  230. model.removeNodeset("/root/main/qestcntattr/qestitemchoilist");
  231. model.removeNodeset("/root/main/qestbasesetup/qestcomps/qestgruplist");
  232. if( grd_satsfctqestlist.isCell(event.target) && grd_satsfctqestlist.row >= grd_satsfctqestlist.fixedRows ){
  233. var row = grd_satsfctqestlist.row;
  234. // 선택한 설문지 목록을 설문기 기본설정과 구성으로 넘겨준다.
  235. var qpaprtitlcnts = grd_satsfctqestlist.valueMatrix(row, grd_satsfctqestlist.colRef("qpaprtitlcnts"));
  236. var qpaprgoalcd = grd_satsfctqestlist.valueMatrix(row, grd_satsfctqestlist.colRef("qpaprgoalcd"));
  237. var itemgrupkindcd = grd_satsfctqestlist.valueMatrix(row, grd_satsfctqestlist.colRef("itemgrupkindcd"));
  238. var stinqestcnt = grd_satsfctqestlist.valueMatrix(row, grd_satsfctqestlist.colRef("stinqestcnt"));
  239. var wrtestatcd = grd_satsfctqestlist.valueMatrix(row, grd_satsfctqestlist.colRef("wrtestatcd"));
  240. var rgstdeptnm = grd_satsfctqestlist.valueMatrix(row, grd_satsfctqestlist.colRef("rgstdeptnm"));
  241. var rgstnm = grd_satsfctqestlist.valueMatrix(row, grd_satsfctqestlist.colRef("rgstnm"));
  242. var wrteenddd = grd_satsfctqestlist.valueMatrix(row, grd_satsfctqestlist.colRef("wrteenddd"));
  243. var rgstdeptcd = grd_satsfctqestlist.valueMatrix(row, grd_satsfctqestlist.colRef("rgstdeptcd"));
  244. var rgstid = grd_satsfctqestlist.valueMatrix(row, grd_satsfctqestlist.colRef("rgstid"));
  245. var qpaprseqno = grd_satsfctqestlist.valueMatrix(row, grd_satsfctqestlist.colRef("qpaprseqno"));
  246. var qpaprdesccnts = grd_satsfctqestlist.valueMatrix(row, grd_satsfctqestlist.colRef("qpaprdesccnts"));
  247. var startgidewrdncnts = grd_satsfctqestlist.valueMatrix(row, grd_satsfctqestlist.colRef("startgidewrdncnts"));
  248. var hstndeptcnts = grd_satsfctqestlist.valueMatrix(row, grd_satsfctqestlist.colRef("hstndeptcnts"));
  249. var endgidewrndcnts = grd_satsfctqestlist.valueMatrix(row, grd_satsfctqestlist.colRef("endgidewrndcnts"));
  250. var qestitemgrupcnt = grd_satsfctqestlist.valueMatrix(row, grd_satsfctqestlist.colRef("qestitemgrupcnt"));
  251. var humtrafactposcd = grd_satsfctqestlist.valueMatrix(row, grd_satsfctqestlist.colRef("humtrafactposcd"));
  252. model.setValue("/root/main/qestbasesetup/qpaprtitlcnts",qpaprtitlcnts);
  253. model.setValue("/root/main/qestbasesetup/qpaprgoalcd",qpaprgoalcd);
  254. model.setValue("/root/main/qestbasesetup/qpaprdesccnts",qpaprdesccnts);
  255. model.setValue("/root/main/qestbasesetup/startgidewrdncnts",startgidewrdncnts);
  256. model.setValue("/root/main/qestbasesetup/hstndeptcnts",hstndeptcnts);
  257. model.setValue("/root/main/qestbasesetup/wrtestatcd",wrtestatcd);
  258. model.setValue("/root/main/qestbasesetup/wrteenddd",wrteenddd);
  259. model.setValue("/root/main/qestbasesetup/endgidewrndcnts",endgidewrndcnts);
  260. model.setValue("/root/main/qestbasesetup/rgstdeptnm",rgstdeptnm);
  261. model.setValue("/root/main/qestbasesetup/rgstnm",rgstnm);
  262. model.setValue("/root/main/qestbasesetup/rgstdeptcd",rgstdeptcd);
  263. model.setValue("/root/main/qestbasesetup/rgstid",rgstid);
  264. model.setValue("/root/main/qestbasesetup/qpaprseqno",qpaprseqno);
  265. // 설문지 구성 그리드
  266. model.setValue("/root/main/qestbasesetup/qestcomps/qestitemgrupcnt",qestitemgrupcnt);
  267. model.setValue("/root/main/qestbasesetup/qestcomps/humtrafactposcd",humtrafactposcd);
  268. model.setValue("/root/main/qestbasesetup/qestcomps/stinqestcnt",stinqestcnt);
  269. model.setValue("/root/hidden/buttonmode", "U");
  270. // 설문지 구성에대한 값을 조회한다.
  271. model.setValue("/root/send/qpaprseqno", qpaprseqno);
  272. submit("TRCIT00302");
  273. // 다른 곳의 내용을 안바꾸기위해 여기서 값을 바꿔준다.
  274. model.setValue("/root/send/srch_qpaprseqno", qpaprseqno); // 새로운 설문지번호
  275. var seqno = opener.window.javascript.getParameter("qpaprseqno");
  276. model.setValue("/root/send/qpaprseqno", seqno); // 기존 설문지번호
  277. // 기초설문을 사용하지 않을때 1번에 글을 입력시킨다.
  278. var humtafactposcd = model.getValue("/root/main/qestbasesetup/qestcomps/humtrafactposcd");
  279. var qestitemgrupcnt = model.getValue("/root/main/qestbasesetup/qestcomps/qestitemgrupcnt");
  280. if (humtafactposcd == 0 && qestitemgrupcnt != 0) {
  281. model.setValue("/root/main/qestbasesetup/qestcomps/qestgruplist[" + 1 + "]/qestitemgrupnm", "기초설문을 사용하지 않습니다.");
  282. } else if (humtafactposcd == 0 && qestitemgrupcnt == 0) {
  283. alert("등록된 설문지가 없습니다.");
  284. }
  285. // 버튼의 활성화 유무를 확인
  286. fSetButtons();
  287. model.refresh();
  288. }
  289. ]]>
  290. </script>
  291. </datagrid>
  292. <line id="line2" class="line_3" style="x1:0px; y1:350px; x2:930px; y2:350px; "/>
  293. <button id="btn_qestprvw" class="btn2_letter7" style="left:833px; top:329px; width:97px; height:19px; ">
  294. <caption>설문지 미리보기</caption>
  295. <script type="javascript" ev:event="DOMActivate">
  296. <![CDATA[
  297. var qpaprseqno = model.getValue("/root/main/qestbasesetup/qpaprseqno");
  298. setParameter("qpaprseqno", qpaprseqno);
  299. modal("SPCIT00400");
  300. clearParameter("qpaprseqno");
  301. model.refresh();
  302. ]]>
  303. </script>
  304. </button>
  305. <line id="line3" class="line_1" style="x1:0px; y1:375px; x2:510px; y2:375px; "/>
  306. <caption id="caption8" class="tit_2" style="left:0px; top:360px; width:120px; height:13px; ">설문지 기본설정</caption>
  307. <line id="line4" class="line_2" style="x1:0px; y1:402px; x2:510px; y2:402px; "/>
  308. <caption id="caption9" class="cell_1" style="left:0px; top:380px; width:110px; height:23px; ">설문지 제목</caption>
  309. <input id="ipt_qpaprtitlcnts" ref="/root/main/qestbasesetup/qpaprtitlcnts" disabled="true" style="left:113px; top:381px; width:397px; height:19px; "/>
  310. <line id="line5" class="line_2" style="x1:0px; y1:426px; x2:510px; y2:426px; "/>
  311. <caption id="caption10" class="cell_1" style="left:0px; top:404px; width:110px; height:23px; ">설문지 목적</caption>
  312. <select1 id="ipt_qpaprgoalcd" ref="/root/main/qestbasesetup/qpaprgoalcd" disabled="true" appearance="minimal" style="left:113px; top:405px; width:240px; height:19px; ">
  313. <choices>
  314. <itemset nodeset="/root/init/C0106list/C0106">
  315. <label ref="cdnm"/>
  316. <value ref="cdid"/>
  317. </itemset>
  318. </choices>
  319. </select1>
  320. <line id="line6" class="line_2" style="x1:0px; y1:477px; x2:510px; y2:477px; "/>
  321. <caption id="caption11" class="cell_1" style="left:0px; top:428px; width:110px; height:50px; ">설문지 설명</caption>
  322. <textarea id="tar_qpaprdesccnts" ref="/root/main/qestbasesetup/qpaprdesccnts" disabled="true" style="left:113px; top:429px; width:397px; height:46px; "/>
  323. <line id="line7" class="line_2" style="x1:0px; y1:529px; x2:510px; y2:529px; "/>
  324. <caption id="caption12" class="cell_1" style="left:0px; top:480px; width:110px; height:50px; ">설문시작 안내문구</caption>
  325. <textarea id="tar_startgidewrdncnts" ref="/root/main/qestbasesetup/startgidewrdncnts" disabled="true" style="left:113px; top:481px; width:397px; height:46px; "/>
  326. <line id="line8" class="line_2" style="x1:0px; y1:580px; x2:510px; y2:580px; "/>
  327. <caption id="caption13" class="cell_1" style="left:0px; top:531px; width:110px; height:50px; ">주최부서내용</caption>
  328. <textarea id="tar_hstndeptcnts" ref="/root/main/qestbasesetup/hstndeptcnts" disabled="true" style="left:113px; top:532px; width:397px; height:46px; "/>
  329. <line id="line9" class="line_2" style="x1:0px; y1:631px; x2:510px; y2:631px; "/>
  330. <caption id="caption14" class="cell_1" style="left:0px; top:582px; width:110px; height:50px; ">설문종료 안내문구</caption>
  331. <textarea id="tar_endgidewrndcnts" ref="/root/main/qestbasesetup/endgidewrndcnts" disabled="true" style="left:113px; top:583px; width:397px; height:46px; "/>
  332. <line id="line10" class="line_2" style="x1:0px; y1:655px; x2:510px; y2:655px; "/>
  333. <caption id="caption15" class="cell_1" style="left:0px; top:633px; width:110px; height:23px; ">작성상태</caption>
  334. <select1 id="ipt_wrtestatcd" ref="/root/main/qestbasesetup/wrtestatcd" disabled="true" appearance="minimal" style="left:113px; top:634px; width:150px; height:19px; ">
  335. <choices>
  336. <itemset nodeset="/root/init/C0107list/C0107">
  337. <label ref="cdnm"/>
  338. <value ref="cdid"/>
  339. </itemset>
  340. </choices>
  341. </select1>
  342. <caption id="caption16" class="cell_1" style="left:266px; top:633px; width:110px; height:23px; ">작성완료일자</caption>
  343. <input id="ipt_wrteenddd" ref="/root/main/qestbasesetup/wrteenddd" disabled="true" style="left:379px; top:634px; width:131px; height:19px; "/>
  344. <line id="line11" class="line_3" style="x1:0px; y1:679px; x2:510px; y2:679px; "/>
  345. <caption id="caption17" class="cell_1" style="left:0px; top:657px; width:110px; height:23px; ">등록부서</caption>
  346. <input id="ipt_rgstdeptcd" ref="/root/main/qestbasesetup/rgstdeptnm" disabled="true" style="left:113px; top:658px; width:150px; height:19px; "/>
  347. <caption id="caption18" class="cell_1" style="left:266px; top:657px; width:110px; height:23px; ">등록자</caption>
  348. <input id="ipt_rgstid" ref="/root/main/qestbasesetup/rgstnm" disabled="true" style="left:379px; top:658px; width:131px; height:19px; "/>
  349. <line id="line12" class="line_1" style="x1:520px; y1:375px; x2:930px; y2:375px; "/>
  350. <caption id="caption19" class="tit_2" style="left:520px; top:360px; width:100px; height:13px; ">설문지 구성</caption>
  351. <line id="line13" class="line_2" style="x1:520px; y1:402px; x2:930px; y2:402px; "/>
  352. <caption id="caption20" class="cell_1" style="left:520px; top:380px; width:90px; height:23px; ">문항 그룹수</caption>
  353. <caption id="caption21" class="cell_1" style="left:726px; top:380px; width:90px; height:23px; ">기초설문 위치</caption>
  354. <input id="ipt_qestitemgrupcnt" ref="/root/main/qestbasesetup/qestcomps/qestitemgrupcnt" disabled="true" appearance="minimal" style="left:613px; top:381px; width:110px; height:19px; "/>
  355. <select1 id="ipt_baseqestgrupyn" ref="/root/main/qestbasesetup/qestcomps/humtrafactposcd" disabled="true" appearance="minimal" style="left:819px; top:381px; width:111px; height:19px; ">
  356. <choices>
  357. <itemset nodeset="/root/init/C0108list/C0108">
  358. <label ref="cdnm"/>
  359. <value ref="cdid"/>
  360. </itemset>
  361. </choices>
  362. </select1>
  363. <datagrid id="grd_qestgruplist" nodeset="/root/main/qestbasesetup/qestcomps/qestgruplist" allowuserresize="false" caption="그룹 명^설문 문항수" colsep="^" colwidth="313, 75" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:520px; top:404px; width:410px; height:252px; ">
  364. <col ref="qestitemgrupnm"/>
  365. <col ref="qestitemcnt"/>
  366. </datagrid>
  367. <line id="line14" class="line_3" style="x1:540px; y1:679px; x2:930px; y2:679px; "/>
  368. <caption id="caption22" class="cell_1" style="left:520px; top:657px; width:90px; height:23px; ">설문 총 문항수</caption>
  369. <output id="opt_stinqestcnt" ref="/root/main/qestbasesetup/qestcomps/stinqestcnt" style="left:623px; top:658px; width:20px; height:19px; "/>
  370. <caption id="caption23" style="left:646px; top:657px; width:15px; height:23px; ">건</caption>
  371. <group id="group2" style="left:0px; top:680px; width:930px; height:27px; ">
  372. <button id="button1" class="btn4_letter2" style="left:456px; top:5px; width:56px; height:22px; ">
  373. <caption>확인</caption>
  374. <script type="javascript" ev:event="DOMActivate">
  375. <![CDATA[
  376. var qpaprtitlcnts = model.getValue("/root/main/qestbasesetup/qpaprtitlcnts");
  377. var kindcd = model.getValue("/root/hidden/kindcd");
  378. if (qpaprtitlcnts == "") {
  379. messageBox("설문지를 선택 하지", "E007");
  380. } else {
  381. if (kindcd == "B") {
  382. var rtn = messageBox("기존의 설문이 삭제되고 선택하실 설문으로 입력됩니다.", "Q003");
  383. if (rtn == "6") {
  384. if (submit("TXCIT00701")) {
  385. messageBox("설문지 변경이", "I002");
  386. var receive_qestitemgrupcnt_path = opener.window.javascript.getParameter("receive_qestitemgrupcnt_path");
  387. var receive_humtrafactposcd_path = opener.window.javascript.getParameter("receive_humtrafactposcd_path");
  388. var qestitemgrupcnt = model.getValue("/root/main/qestbasesetup/qestcomps/qestitemgrupcnt");
  389. var humtrafactposcd = model.getValue("/root/main/qestbasesetup/qestcomps/humtrafactposcd");
  390. window.opener.model.setValue(receive_qestitemgrupcnt_path, qestitemgrupcnt);
  391. window.opener.model.setValue(receive_humtrafactposcd_path, humtrafactposcd);
  392. opener.model.refresh();
  393. opener.javascript.fSetRelod();
  394. window.close();
  395. }
  396. } else {
  397. messageBox("설문지 변경을 하지", "E007");
  398. }
  399. } else if (kindcd == "F") {
  400. // 실행목록에서 넘어온 설문지 제목 & 일련번호의 경로
  401. var receive_qpaprtitlcnts_path = opener.window.javascript.getParameter("receive_qpaprtitlcnts_path");
  402. var receive_qpaprseqno_path = opener.window.javascript.getParameter("receive_qpaprseqno_path");
  403. // 실행목록에 넘겨줄 설문지 제목 & 일련번호
  404. var qpaprtitlcnts = model.getValue("/root/main/qestbasesetup/qpaprtitlcnts");
  405. var qpaprseqno = model.getValue("/root/main/qestbasesetup/qpaprseqno");
  406. if (qpaprtitlcnts == "") {
  407. messageBox("설문지를 선택 하지", "E007");
  408. } else {
  409. window.opener.model.setValue(receive_qpaprtitlcnts_path, qpaprtitlcnts);
  410. window.opener.model.setValue(receive_qpaprseqno_path, qpaprseqno);
  411. opener.model.refresh();
  412. }
  413. window.close();
  414. }
  415. }
  416. ]]>
  417. </script>
  418. </button>
  419. <button id="button2" class="btn4_letter2" style="left:520px; top:5px; width:56px; height:22px; ">
  420. <caption>닫기</caption>
  421. <script type="javascript" ev:event="DOMActivate">
  422. <![CDATA[
  423. window.close();
  424. ]]>
  425. </script>
  426. </button>
  427. </group>
  428. </xhtml:body>
  429. </xhtml:html>