SMCIT00100_만족도설문문항그룹관리.xrw 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * Name : SMCPC00100_만족도설문문항관리
  4. * Summary : 만족도 설문 문항 관리
  5. * Programmer : 황현석
  6. * Date Written : 2010.06.24.
  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. <qestitemgruplist>
  19. <qestitemgrupnm/>
  20. <qestitemgrupdesc/>
  21. <qestitemlrgcd/>
  22. <qestitemmdlcd/>
  23. <rgstdeptcd/>
  24. <qestrgstid/>
  25. <qestrgstdd/>
  26. <qestitemgrupseqno/>
  27. <qestitemlrgnm/>
  28. <qestitemmdlnm/>
  29. <qestseqnocount/>
  30. <rgstdeptnm/>
  31. <qestrgstnm/>
  32. </qestitemgruplist>
  33. <qestgrup>
  34. <qestitemlrgcd/>
  35. <qestitemmdlcd/>
  36. <qestitemgrupnm/>
  37. <qestitemgrupdesc/>
  38. <rgstdeptnm/>
  39. <rgstdeptcd/>
  40. <qestrgstnm/>
  41. <qestrgstid/>
  42. <qestrgstdd/>
  43. <useyn/>
  44. <savemode>I</savemode>
  45. <qestitemmdlnm/>
  46. </qestgrup>
  47. <qestgoalcls>
  48. <qestitemlist>
  49. <qestitemgrupnm/>
  50. <qestseqnocount/>
  51. <qestvw/>
  52. <qestitemlrgcd/>
  53. <qestitemmdlcd/>
  54. <qestitemgrupseqno/>
  55. <setPoint/>
  56. <qestcnts/>
  57. <qestrgstdeptcd/>
  58. <qestrgstdeptnm/>
  59. </qestitemlist>
  60. <qestitemlrgnm/>
  61. <qestitemmdlnm/>
  62. </qestgoalcls>
  63. </main>
  64. <send>
  65. <qestsrch>
  66. <qestitemmdlcd>
  67. </qestitemmdlcd>
  68. <qestitemlrgcd>
  69. </qestitemlrgcd>
  70. <qestitemgrupnm/>
  71. <setPoint/>
  72. </qestsrch>
  73. <info>
  74. <qestitemlrgcd/>
  75. </info>
  76. </send>
  77. <init>
  78. <qestitemlrgcd/>
  79. <qestitemmdlcd/>
  80. <qestitemlrglist/>
  81. <qestitemmdllist/>
  82. <menuid/>
  83. <srch>
  84. <qestitemmdllist/>
  85. </srch>
  86. </init>
  87. <hidden>
  88. <scrnflag>G</scrnflag>
  89. </hidden>
  90. </root>
  91. </instance>
  92. <submission id="TRCIT00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/qestsrch" resultref="/root/main/qestitemgruplist"/>
  93. <submission id="TRCIT00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/info" resultref="/root/init/qestitemlrglist/qestitemlrggrup"/>
  94. <submission id="TRCIT00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/info" resultref="/root/init/qestitemmdllist/qestitemmdlgrup"/>
  95. <submission id="TRCIT01404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/info" resultref="/root/init/srch/qestitemmdllist/qestitemmdlgrup"/>
  96. <submission id="TXCIT00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/qestgrup"/>
  97. <submission id="TXCIT00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/qestgrup"/>
  98. </model>
  99. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  100. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  101. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  102. <script type="javascript" ev:event="xforms-ready">
  103. <![CDATA[
  104. var setPoint = model.getValue("/root/send/qestsrch/setPoint");
  105. //사용자 부서 설정
  106. var dutplcenm = getUserInfo("dutplcenm");
  107. model.setValue("/root/main/qestgrup/rgstdeptnm", dutplcenm);
  108. var dutplcecd = getUserInfo("dutplcecd");
  109. model.setValue("/root/main/qestgrup/rgstdeptcd", dutplcecd);
  110. //사용자 설정
  111. var usernm = getUserInfo("usernm");
  112. model.setValue("/root/main/qestgrup/qestrgstnm", usernm);
  113. var userid = getUserInfo("userid");
  114. model.setValue("/root/main/qestgrup/qestrgstid", userid);
  115. // 등록일의 값이 없으면 최근한달로 셋팅한다.
  116. var qestrgstdd = model.getValue("/root/main/qestgrup/qestrgstdd");
  117. if (qestrgstdd == "") {
  118. model.setValue("/root/main/qestgrup/qestrgstdd",getCurrentDate());
  119. }
  120. // 메시지 대그룹을 가져온다
  121. submit("TRCIT00102");
  122. if (setPoint == "R") {
  123. var srchLrgcd = model.getValue("/root/send/qestsrch/qestitemlrgcd");
  124. if (srchLrgcd != "") {
  125. fGetSrchQestItemMdlCd();
  126. submit("TRCIT00101");
  127. } else {
  128. model.removeNodeset("/root/main/qestitemgruplist"); // 문항그룹목록
  129. }
  130. } else {
  131. model.removeNodeset("/root/main/qestitemgruplist"); // 문항그룹목록
  132. }
  133. fSetButtons(); // 버튼의 활성화 유무를 확인
  134. model.refresh();
  135. ]]>
  136. </script>
  137. <script type="javascript">
  138. <![CDATA[
  139. //만족도 설문 문항 조회
  140. function fGetMsgTmplList() {
  141. /*
  142. var ipt_srch_qestitemgrupnm = model.getValue("/root/send/qestsrch/qestitemgrupnm");
  143. if(ipt_srch_qestitemgrupnm == ""){
  144. messageBox("문항 그룹명이 입력 되지", "E007");
  145. return false;
  146. }getQPaprList
  147. model.removeNodeset("/root/main/qestitemgruplist");*/
  148. submit("TRCIT00101");
  149. }
  150. // 선택한 채널관리 대분류에 따른 채널관리 중분류를 가져온다.
  151. function fGetQestItemMdlCd() {
  152. var qestitemlrgcd = model.getValue("/root/main/qestgrup/qestitemlrgcd");
  153. model.setValue("/root/send/info/qestitemlrgcd", "");
  154. model.setValue("/root/send/info/qestitemlrgcd",qestitemlrgcd);
  155. submit("TRCIT00103");
  156. }
  157. // 검색부에서 대분류에 따른 채널관리 중분류를 가져온다.
  158. function fGetSrchQestItemMdlCd() {
  159. var qestitemlrgcd = model.getValue("/root/send/qestsrch/qestitemlrgcd");
  160. model.setValue("/root/send/info/qestitemlrgcd", "");
  161. model.setValue("/root/send/info/qestitemlrgcd",qestitemlrgcd);
  162. submit("TRCIT01404");
  163. }
  164. // 문항 그룹 등록 및 수정
  165. function fSaveMsg() {
  166. if (submit("TXCIT00101")) {
  167. messageBox("문항 그룹 저장이", "I002", "");
  168. submit("TRCIT00101");
  169. } else {
  170. alert("오류");
  171. }
  172. model.refresh();
  173. }
  174. //저장시 정합성 체크
  175. function fMsgValid(){
  176. var cmb_qestitemlrgcd = model.getValue("/root/main/qestgrup/qestitemlrgcd");
  177. var cmb_qestitemmdlcd = model.getValue("/root/main/qestgrup/qestitemmdlcd");
  178. var ipt_qestitemgrupnm = model.getValue("/root/main/qestgrup/qestitemgrupnm");
  179. var tar_qestitemgrupdesc = model.getValue("/root/main/qestgrup/qestitemgrupdesc");
  180. if(cmb_qestitemlrgcd == ""){
  181. messageBox("설문 목적 분류의 대그룹이 선택 되지", "E007");
  182. return false;
  183. }
  184. if(cmb_qestitemmdlcd == ""){
  185. messageBox("설문 목적 분류의 중그룹이 선택 되지", "E007");
  186. return false;
  187. }
  188. if(ipt_qestitemgrupnm == ""){
  189. messageBox("문항 그룹명이 입력 되지", "E007");
  190. return false;
  191. }
  192. if(tar_qestitemgrupdesc == ""){
  193. messageBox("문항 그룹설명 입력 되지", "E007");
  194. return false;
  195. }
  196. return true;
  197. }
  198. // 버튼의 활성화 유무
  199. function fSetButtons() {
  200. var savemode = model.getValue("/root/main/qestgrup/savemode");
  201. if (savemode == "I") {
  202. btn_grupqestprvw.disabled = true;
  203. btn_updt.disabled = true;
  204. btn_save.disabled = false;
  205. btn_del.disabled = true;
  206. btn_qestprvw.disabled = true;
  207. } else if (savemode == "U") {
  208. btn_grupqestprvw.disabled = false; // 회의 끝나면 false 로 바꿀것.
  209. btn_updt.disabled = false;
  210. btn_save.disabled = true;
  211. btn_del.disabled = false;
  212. btn_qestprvw.disabled = false;
  213. }
  214. }
  215. // 그룹 상세보기 초기화
  216. function fNewMsg() {
  217. model.setValue("/root/main/qestgrup/qestitemlrgcd", "");
  218. model.setValue("/root/main/qestgrup/qestitemmdlcd", "");
  219. model.setValue("/root/main/qestgrup/qestitemgrupnm", "");
  220. model.setValue("/root/main/qestgrup/qestitemgrupdesc", "");
  221. model.removeNodeset("/root/init/qestitemmdllist/qestitemmdllist");
  222. //사용자 부서 설정
  223. var dutplcenm = getUserInfo("dutplcenm");
  224. model.setValue("/root/main/qestgrup/rgstdeptnm", dutplcenm);
  225. var dutplcecd = getUserInfo("dutplcecd");
  226. model.setValue("/root/main/qestgrup/rgstdeptcd", dutplcecd);
  227. //사용자 설정
  228. var usernm = getUserInfo("usernm");
  229. model.setValue("/root/main/qestgrup/qestrgstnm", usernm);
  230. var userid = getUserInfo("userid");
  231. model.setValue("/root/main/qestgrup/qestrgstid", userid);
  232. // 등록일의 값이 없으면 최근한달로 셋팅한다.
  233. var qestrgstdd = model.getValue("/root/main/qestgrup/qestrgstdd");
  234. if (qestrgstdd == "") {
  235. model.setValue("/root/main/qestgrup/qestrgstdd",getCurrentDate());
  236. }
  237. model.refresh();
  238. }
  239. ]]>
  240. </script>
  241. </xhtml:head>
  242. <xhtml:body pagewidth="1195" pageheight="784" guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  243. <caption id="caption1" class="tit_1" style="left:0; top:0; width:215; height:13; ">만족도 목적 분류</caption>
  244. <group id="group1" style="left:0px; top:23px; width:215px; height:757px; ">
  245. <import id="import1" src="SSCIT01600_만족도그룹트리.xrw" style="left:0px; top:13px; width:215px; height:744px; "/>
  246. </group>
  247. <group id="group2" style="left:225; top:0; width:970; height:767; ">
  248. <caption id="caption2" class="tit_1" style="left:5; top:0; width:970; height:13; ">만족도 설문 문항 그룹 관리</caption>
  249. <group id="group3" style="left:0; top:23; width:970; height:35; ">
  250. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:5; top:0px; width:960; height:35px; "/>
  251. <caption id="caption3" class="search_name" style="left:15px; top:9; width:100px; height:17; ">문항 그룹명</caption>
  252. <input id="ipt_srch_qestitemgrupnm" ref="/root/send/qestsrch/qestitemgrupnm" class="input_search" maxlength="30" style="left:128; top:7; width:250; height:19; ">
  253. <script type="javascript" ev:event="onkeyup">
  254. <![CDATA[
  255. inputEnterKey("btn_search", "DOMActivate");
  256. ]]>
  257. </script>
  258. </input>
  259. <caption id="caption4" class="search_name" style="left:381px; top:9px; width:115px; height:17px; ">설문 목적 분류</caption>
  260. <select1 id="cmb_srch_qestitemlrgcd" ref="/root/send/qestsrch/qestitemlrgcd" class="combo_search" appearance="minimal" style="left:499px; top:7px; width:130; height:19px; ">
  261. <choices>
  262. <itemset nodeset="/root/init/qestitemlrglist/qestitemlrglist">
  263. <label ref="qestitemlrgnm"/>
  264. <value ref="qestitemlrgcd"/>
  265. </itemset>
  266. </choices>
  267. <script type="javascript" ev:event="xforms-value-changed">
  268. <![CDATA[
  269. // 기존에 선택된 중분류를 초기화한다.
  270. model.removenodeset("/root/init/srch/qestitemmdllist/qestitemmdllist");
  271. model.removenodeset("/root/init/qestitemmdllist/qestitemmdllist");
  272. // 선택한 만족도관리 대분류에 따른 만족도관리 중분류를 가져온다.
  273. fGetSrchQestItemMdlCd();
  274. ]]>
  275. </script>
  276. </select1>
  277. <select1 id="cmb_srch_qestitemmdlcd" ref="/root/send/qestsrch/qestitemmdlcd" class="combo_search" appearance="minimal" style="left:632px; top:7px; width:140px; height:19px; ">
  278. <choices>
  279. <itemset nodeset="/root/init/srch/qestitemmdllist/qestitemmdllist">
  280. <label ref="qestitemmdlnm"/>
  281. <value ref="qestitemmdlcd"/>
  282. </itemset>
  283. </choices>
  284. </select1>
  285. <line id="line1" class="line_4" style="x1:883px; y1:7px; x2:883px; y2:29px; "/>
  286. <button id="btn_search" class="btn1_letter2" style="left:898px; top:7px; width:56px; height:22px; ">
  287. <caption>조회</caption>
  288. <script type="javascript" ev:event="DOMActivate">
  289. <![CDATA[
  290. /*
  291. if (ipt_srch_qestitemgrupnm.value.length < 2) {
  292. messageBox("부서명 검색은 최소 2글자 이상 ", "C001");
  293. model.setFocus("ipt_srch_qestitemgrupnm");
  294. } else {
  295. fGetMsgTmplList();
  296. }*/
  297. fGetMsgTmplList();
  298. // 등록화면 초기화
  299. // model.resetInstanceNode("/root/main/qestgrup");
  300. model.setValue("/root/main/qestgrup/savemode", "I");
  301. ]]>
  302. </script>
  303. </button>
  304. </group>
  305. <group id="group4" style="left:0; top:58; width:970; height:328; ">
  306. <line id="line21" class="line_1" style="x1:5px; y1:25px; x2:965px; y2:25px; "/>
  307. <caption id="caption5" class="tit_2" style="left:5; top:10; width:200; height:13; ">만족도 설문 문항 그룹 목록</caption>
  308. <datagrid id="grd_qestitemgruplist" nodeset="/root/main/qestitemgruplist" caption="문항 그룹명^문항 그룹설명^설문문항 대분류^설문문항 중분류^등록부서^등록자^등록일^^^" colsep="^" colwidth="230, 168, 110, 140, 110, 110, 90, 0, 0, 0, 0, 0, 0" ellipsis="true" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:30px; width:960px; height:295px; ">
  309. <col ref="qestitemgrupnm"/>
  310. <col ref="qestitemgrupdesc"/>
  311. <col ref="qestitemlrgnm"/>
  312. <col ref="qestitemmdlnm"/>
  313. <col ref="rgstdeptnm"/>
  314. <col ref="qestrgstnm" style="text-align:center; "/>
  315. <col ref="qestrgstdd" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  316. <col ref="qestitemgrupseqno" visibility="hidden"/>
  317. <col ref="rgstdeptcd" visibility="hidden"/>
  318. <col ref="qestrgstid" visibility="hidden"/>
  319. <col ref="qestitemlrgcd" visibility="hidden"/>
  320. <col ref="qestitemmdlcd" visibility="hidden"/>
  321. <col ref="qestseqnocount" visibility="hidden"/>
  322. <script type="javascript" ev:event="ondblclick">
  323. <![CDATA[
  324. fNewMsg();
  325. if( grd_qestitemgruplist.isCell(event.target) && grd_qestitemgruplist.row >= grd_qestitemgruplist.fixedRows ){
  326. var row = grd_qestitemgruplist.row;
  327. // 선택한 설문문항 그룹 목록을 그룹 목록 보기로 념거준다
  328. var qestitemlrgcd = grd_qestitemgruplist.valueMatrix(row, grd_qestitemgruplist.colRef("qestitemlrgcd"));
  329. var qestitemmdlcd = grd_qestitemgruplist.valueMatrix(row, grd_qestitemgruplist.colRef("qestitemmdlcd"));
  330. var qestitemmdlnm = grd_qestitemgruplist.valueMatrix(row, grd_qestitemgruplist.colRef("qestitemmdlnm"));
  331. var qestitemgrupnm = grd_qestitemgruplist.valueMatrix(row, grd_qestitemgruplist.colRef("qestitemgrupnm"));
  332. var qestitemgrupdesc = grd_qestitemgruplist.valueMatrix(row, grd_qestitemgruplist.colRef("qestitemgrupdesc"));
  333. var rgstdeptcd = grd_qestitemgruplist.valueMatrix(row, grd_qestitemgruplist.colRef("rgstdeptcd"));
  334. var rgstdeptnm = grd_qestitemgruplist.valueMatrix(row, grd_qestitemgruplist.colRef("rgstdeptnm"));
  335. var qestrgstid = grd_qestitemgruplist.valueMatrix(row, grd_qestitemgruplist.colRef("qestrgstid"));
  336. var qestrgstnm = grd_qestitemgruplist.valueMatrix(row, grd_qestitemgruplist.colRef("qestrgstnm"));
  337. var qestrgstdd = grd_qestitemgruplist.valueMatrix(row, grd_qestitemgruplist.colRef("qestrgstdd"));
  338. var qestitemgrupseqno = grd_qestitemgruplist.valueMatrix(row, grd_qestitemgruplist.colRef("qestitemgrupseqno"));
  339. model.setValue("/root/main/qestgrup/qestitemlrgcd",qestitemlrgcd);
  340. model.setValue("/root/main/qestgrup/qestitemmdlcd",qestitemmdlcd);
  341. model.setValue("/root/main/qestgrup/qestitemmdlnm",qestitemmdlnm);
  342. model.setValue("/root/main/qestgrup/qestitemgrupnm",qestitemgrupnm);
  343. model.setValue("/root/main/qestgrup/qestitemgrupdesc",qestitemgrupdesc);
  344. model.setValue("/root/main/qestgrup/rgstdeptcd",rgstdeptcd);
  345. model.setValue("/root/main/qestgrup/rgstdeptnm",rgstdeptnm);
  346. model.setValue("/root/main/qestgrup/qestrgstid",qestrgstid);
  347. model.setValue("/root/main/qestgrup/qestrgstnm",qestrgstnm);
  348. model.setValue("/root/main/qestgrup/qestrgstdd",qestrgstdd);
  349. model.makeValue("/root/main/qestgrup/qestitemgrupseqno",qestitemgrupseqno);
  350. model.setValue("/root/main/qestgrup/savemode","U");
  351. // 버튼의 활성화 유무를 확인
  352. fSetButtons();
  353. // 선택한 설문문항 그룹 목록을 설문 목적 분류로 념거준다
  354. var goal_qestitemlrgnm = grd_qestitemgruplist.valueMatrix(row, grd_qestitemgruplist.colRef("qestitemlrgnm"));
  355. var goal_qestitemmdlnm = grd_qestitemgruplist.valueMatrix(row, grd_qestitemgruplist.colRef("qestitemmdlnm"));
  356. var goal_qestitemgrupnm = grd_qestitemgruplist.valueMatrix(row, grd_qestitemgruplist.colRef("qestitemgrupnm"));
  357. var goal_qestseqnocount = grd_qestitemgruplist.valueMatrix(row, grd_qestitemgruplist.colRef("qestseqnocount"));
  358. model.setValue("/root/main/qestgoalcls/qestitemlrgnm",goal_qestitemlrgnm);
  359. model.setValue("/root/main/qestgoalcls/qestitemmdlnm",goal_qestitemmdlnm);
  360. model.setValue("/root/main/qestgoalcls/qestitemlist/qestitemlrgcd",qestitemlrgcd);
  361. model.setValue("/root/main/qestgoalcls/qestitemlist/qestitemmdlcd",qestitemmdlcd);
  362. model.setValue("/root/main/qestgoalcls/qestitemlist/qestitemgrupseqno",qestitemgrupseqno);
  363. model.setValue("/root/main/qestgoalcls/qestitemlist/qestitemgrupnm",goal_qestitemgrupnm);
  364. model.setValue("/root/main/qestgoalcls/qestitemlist/qestseqnocount",goal_qestseqnocount);
  365. model.refresh();
  366. // 선택한 만족도관리 대분류에 따른 만족도관리 중분류를 가져온다.
  367. fGetQestItemMdlCd();
  368. //저장 수정버튼 활성화 구분
  369. //fGetMsgStatus();
  370. //model.setValue("/root/hidden/msgsmlcd",grd_msgtmpllist.valueMatrix(grd_msgtmpllist.row,grd_msgtmpllist.colRef("msgsmlcd")));
  371. }
  372. ]]>
  373. </script>
  374. </datagrid>
  375. <button id="btn_saveexcel" class="btn2_letter4" style="left:901; top:5; width:64; height:19; ">
  376. <caption>엑셀저장</caption>
  377. <script type="javascript" ev:event="DOMActivate">
  378. <![CDATA[
  379. var fileName = window.fileDialog("save", ",", false, "문항그룹명", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  380. if (fileName != "")
  381. {
  382. grd_qestitemgruplist.saveExcel(fileName);
  383. }
  384. ]]>
  385. </script>
  386. </button>
  387. </group>
  388. <group id="group5" style="left:0; top:386; width:520; height:374; ">
  389. <script type="javascript" ev:event="onrowchanged">
  390. <![CDATA[
  391. // // 선택한 리스트에 대한 내용을 가져온다.
  392. // var row = grd_qestitemgruplist.row;
  393. // var qestitemgrupseqno = grd_qestitemgruplist.valueMatrix( row, grd_qestitemgruplist.colRef("qestitemgrupseqno"));
  394. //
  395. // if (qestitemgrupseqno != "" && row > 0) {
  396. // model.setValue("/root/send/qestitemgrupseqno", qestitemgrupseqno);
  397. //
  398. // model.removenodeset("/root/main/qestgrup");
  399. // submit("TRCIT00102","TRCIT00103");
  400. // }
  401. // grd_qestitemlrglist.dispatch("onmouseup");
  402. // ]]>
  403. </script>
  404. <line id="line3" class="line_1" style="x1:5px; y1:25px; x2:510px; y2:25px; "/>
  405. <caption id="caption6" class="tit_2" style="left:5; top:10; width:100px; height:13; ">문항 그룹</caption>
  406. <button id="btn_del" class="btn5_letter2" style="left:468px; top:4px; width:42px; height:19px; ">
  407. <caption>삭제</caption>
  408. <script type="javascript" ev:event="DOMActivate">
  409. <![CDATA[
  410. submit("TXCIT00102");
  411. model.resetInstanceNode("/root/main/qestgrup");
  412. submit("TRCIT00101");
  413. fNewMsg();
  414. ]]>
  415. </script>
  416. </button>
  417. <button id="btn_save" class="btn5_letter2" style="left:423px; top:4px; width:42px; height:19px; ">
  418. <caption>저장</caption>
  419. <script type="javascript" ev:event="DOMActivate">
  420. <![CDATA[
  421. if(fMsgValid()){
  422. model.setValue("/root/main/qestgrup/useyn","Y");
  423. var savemode = model.getValue("/root/main/qestgrup/savemode");
  424. fSaveMsg(); //문항그룹 속성 저장(I:등록, U:수정)
  425. fNewMsg();
  426. }
  427. ]]>
  428. </script>
  429. </button>
  430. <button id="btn_updt" class="btn5_letter2" style="left:378px; top:4px; width:42px; height:19px; ">
  431. <caption>수정</caption>
  432. <script type="javascript" ev:event="DOMActivate">
  433. <![CDATA[
  434. if(fMsgValid()){
  435. model.setValue("/root/main/qestgrup/useyn","Y");
  436. model.setValue("/root/main/qestgrup/savemode","U");
  437. var savemode = model.getValue("/root/main/qestgrup/savemode");
  438. fSaveMsg(); //문항그룹 속성 저장(I:등록, U:수정)
  439. fNewMsg();
  440. }
  441. ]]>
  442. </script>
  443. </button>
  444. <button id="btn_new" class="btn2_letter2" style="left:333px; top:4px; width:42px; height:19px; ">
  445. <caption>신규</caption>
  446. <script type="javascript" ev:event="DOMActivate">
  447. <![CDATA[
  448. model.setValue("/root/main/qestgrup/savemode","I");
  449. fNewMsg();
  450. fSetButtons();
  451. ]]>
  452. </script>
  453. </button>
  454. <button id="btn_grupqestprvw" class="btn2_letter8" style="left:222px; top:4px; width:108px; height:19px; ">
  455. <caption>그룹설문 미리보기</caption>
  456. <script type="javascript" ev:event="DOMActivate">
  457. <![CDATA[
  458. var qestitemlrgcd = model.getValue("/root/main/qestgrup/qestitemlrgcd");
  459. var qestitemmdlcd = model.getValue("/root/main/qestgrup/qestitemmdlcd");
  460. var qestitemgrupseqno = model.getValue("/root/main/qestgoalcls/qestitemlist/qestitemgrupseqno");
  461. setParameter("qestseqno", "");
  462. setParameter("qestitemlrgcd", qestitemlrgcd);
  463. setParameter("qestitemmdlcd", qestitemmdlcd);
  464. setParameter("qestitemgrupseqno", qestitemgrupseqno);
  465. modal("SPCIT00200");
  466. clearParameter("qestitemlrgcd");
  467. clearParameter("qestitemmdlcd");
  468. clearParameter("qestitemgrupseqno");
  469. model.refresh();
  470. ]]>
  471. </script>
  472. </button>
  473. <button id="btn_qestitmemngt" class="btn2_letter7" style="left:122px; top:4px; width:97px; height:19px; ">
  474. <caption>설문 문항 관리</caption>
  475. <script type="javascript" ev:event="DOMActivate">
  476. <![CDATA[
  477. model.setValue("/root/main/qestgoalcls/qestitemlist/qestitemgrupnm", "");
  478. model.setValue("/root/main/qestgoalcls/qestitemlist/qestseqnocount", "");
  479. model.setValue("/root/main/qestgoalcls/qestitemlist/qestitemlrgcd", "");
  480. model.setValue("/root/main/qestgoalcls/qestitemlist/qestitemmdlcd", "");
  481. model.setValue("/root/main/qestgoalcls/qestitemlist/qestitemgrupseqno", "");
  482. model.setValue("/root/main/qestgoalcls/qestitemlist/qestcnts", "");
  483. model.setValue("/root/main/qestgoalcls/qestitemlist/setPoint", "B");
  484. navigate("SMCIT01400", "", "", "", "SMCIT01400", "/root/main/qestgoalcls/qestitemlist", "/root/send/srch");
  485. ]]>
  486. </script>
  487. </button>
  488. <line id="line4" class="line_2" style="x1:5px; y1:52px; x2:510px; y2:52px; "/>
  489. <caption id="caption7" class="cell_1" style="left:5; top:30; width:100px; height:23; ">설문 목적 분류</caption>
  490. <select1 id="cmb_qestitemlrgcd" ref="/root/main/qestgrup/qestitemlrgcd" class="combo_essential" appearance="minimal" style="left:108; top:31; width:130; height:19; ">
  491. <choices>
  492. <itemset nodeset="/root/init/qestitemlrglist/qestitemlrglist">
  493. <label ref="qestitemlrgnm"/>
  494. <value ref="qestitemlrgcd"/>
  495. </itemset>
  496. </choices>
  497. <script type="javascript" ev:event="xforms-value-changed">
  498. <![CDATA[
  499. // 기존에 선택된 중분류를 초기화한다.
  500. model.removenodeset("/root/init/qestitemmdllist/qestitemmdllist");
  501. // 선택한 만족도관리 대분류에 따른 만족도관리 중분류를 가져온다.
  502. fGetQestItemMdlCd();
  503. model.setFocus("cmb_msgmdlcd");
  504. ]]>
  505. </script>
  506. </select1>
  507. <select1 id="cmb_qestitemmdlcd" ref="/root/main/qestgrup/qestitemmdlcd" class="combo_essential" appearance="minimal" style="left:241; top:31; width:150; height:19; ">
  508. <choices>
  509. <itemset nodeset="/root/init/qestitemmdllist/qestitemmdllist">
  510. <label ref="qestitemmdlnm"/>
  511. <value ref="qestitemmdlcd"/>
  512. </itemset>
  513. </choices>
  514. </select1>
  515. <line id="line5" class="line_2" style="x1:5px; y1:76; x2:510px; y2:76; "/>
  516. <caption id="caption8" class="cell_1" style="left:5; top:54; width:100px; height:23; ">문항 그룹명</caption>
  517. <input id="ipt_qestitemgrupnm" ref="/root/main/qestgrup/qestitemgrupnm" class="input_essential" maxlength="30" style="left:108; top:55; width:400; height:19; "/>
  518. <line id="line6" class="line_2" style="x1:5px; y1:301px; x2:510px; y2:301px; "/>
  519. <caption id="caption9" class="cell_1" style="left:5px; top:78; width:100px; height:224; ">문항 그룹설명</caption>
  520. <textarea id="tar_qestitemgrupdesc" ref="/root/main/qestgrup/qestitemgrupdesc" class="input_essential" style="left:108; top:79; width:400; height:220; "/>
  521. <line id="line7" class="line_2" style="x1:5px; y1:325; x2:510px; y2:325; "/>
  522. <caption id="caption10" class="cell_1" style="left:5px; top:303px; width:100px; height:23px; ">등록 부서</caption>
  523. <input id="ipt_qestrgstdeptcd" ref="/root/main/qestgrup/rgstdeptnm" class="input_default" disabled="true" style="left:108px; top:304px; width:150px; height:19px; "/>
  524. <line id="line8" class="line_2" style="x1:5px; y1:349px; x2:510px; y2:349px; "/>
  525. <caption id="caption11" class="cell_1" style="left:5px; top:327px; width:100px; height:23px; ">등록자</caption>
  526. <input id="ipt_qestrgstid" ref="/root/main/qestgrup/qestrgstnm" class="input_default" disabled="true" style="left:108px; top:328px; width:150px; height:19px; "/>
  527. <line id="line2" class="line_3" style="x1:5px; y1:373px; x2:510px; y2:373px; "/>
  528. <caption id="caption12" class="cell_1" style="left:5px; top:351px; width:100px; height:23px; ">등록일자</caption>
  529. <input id="ipt_qestrgstdd" ref="/root/main/qestgrup/qestrgstdd" class="input_default" disabled="true" style="left:108px; top:352px; width:150px; height:19px; "/>
  530. </group>
  531. <group id="group6" style="left:520; top:386; width:450; height:374; ">
  532. <line id="line9" class="line_1" style="x1:5px; y1:25; x2:445; y2:25; "/>
  533. <caption id="caption13" class="tit_2" style="left:5; top:10px; width:120; height:13; ">설문 목적 분류 :</caption>
  534. <caption id="caption14" style="left:253px; top:6px; width:10px; height:20px; ">
  535. <![CDATA[>]]>
  536. </caption>
  537. <input id="ipt_goal_qestitemlrgcd" ref="/root/main/qestgoalcls/qestitemlrgnm" class="input_default" disabled="true" style="left:128; top:5; width:120; height:19px; "/>
  538. <input id="ipt_goal_qestitemmdlcd" ref="/root/main/qestgoalcls/qestitemmdlnm" class="input_default" disabled="true" style="left:268; top:5; width:177; height:19px; "/>
  539. <datagrid id="grd_qestgoalcls" nodeset="/root/main/qestgoalcls/qestitemlist" allowuserresize="false" caption="문항 그룹명^문항수^설문보기" colsep="^" colwidth="298, 60, 80, 0, 0, 0, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:30px; width:440px; height:341px; ">
  540. <col ref="qestitemgrupnm"/>
  541. <col ref="qestseqnocount"/>
  542. <col ref="qestvw" type="output"/>
  543. <col ref="qestitemlrgcd" visibility="visible"/>
  544. <col ref="qestitemmdlcd" visibility="visible"/>
  545. <col ref="qestitemgrupseqno" visibility="visible"/>
  546. <col ref="setPoint" visibility="visible"/>
  547. <col ref="qestrgstdeptcd" visibility="visible"/>
  548. <col ref="qestrgstdeptnm" visibility="visible"/>
  549. <col ref="qestcnts" visibility="visible"/>
  550. </datagrid>
  551. <button id="btn_qestprvw" class="btn5_letter5" style="left:365px; top:55px; width:69px; height:19px; ">
  552. <caption>설문보기</caption>
  553. <script type="javascript" ev:event="DOMActivate">
  554. <![CDATA[
  555. model.setValue("/root/main/qestgoalcls/qestitemlist/setPoint", "A");
  556. navigate("SMCIT01400", "", "", "", "SMCIT01400", "/root/main/qestgoalcls/qestitemlist", "/root/send/srch");
  557. ]]>
  558. </script>
  559. </button>
  560. </group>
  561. </group>
  562. </xhtml:body>
  563. </xhtml:html>