SMRTC01700_문제은행채용실기문항등록.xrw 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>문제은행채용실기문항등록</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <itempool>
  11. <itempoollist/>
  12. </itempool>
  13. </main>
  14. <send>
  15. <req>
  16. <instcd/>
  17. <trngflag/>
  18. <deptcd/>
  19. <yy/>
  20. </req>
  21. <question/>
  22. <answer/>
  23. <checkflag/>
  24. </send>
  25. <init>
  26. <deptcond/>
  27. <scheflag/>
  28. <num/>
  29. </init>
  30. <temp>
  31. </temp>
  32. <hidden>
  33. <tisorddeptcdlist/>
  34. </hidden>
  35. </root>
  36. </instance>
  37. <submission id="TRRTS00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqint" resultref="/root/main/tisorddeptcdlist"/>
  38. <submission id="TRRTC01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/itempool"/>
  39. <submission id="TXRTC01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  40. </model>
  41. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  42. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  43. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  44. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  45. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  46. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  47. <script type="javascript" src="../../../mis/tistrngeducbaseinfomngtweb/js/RTC001.js"/>
  48. <script type="javascript" ev:event="xforms-ready">
  49. <![CDATA[
  50. misfMsterDetailSet(grd_itempoollist, null, "TRRTC01701", "Y");
  51. submit("TRRTS00602");
  52. var node = instance1.selectSingleNode("/root/main/tisorddeptcdlist").length;
  53. for(var i=1 ; i<=node ; i++)
  54. {
  55. model.makeValue("/root/hidden/tisorddeptcdlist[" + i + "]/deptnm", model.getValue("/root/main/tisorddeptcdlist[" + i + "]/deptnm"));
  56. model.makeValue("/root/hidden/tisorddeptcdlist[" + i + "]/deptcd", model.getValue("/root/main/tisorddeptcdlist[" + i + "]/deptcd"));
  57. }
  58. model.copyNode("/root/hidden/tisorddeptcdlist","/root/main/tisorddeptcdlist");
  59. misfGridInit(grd_itempoollist);
  60. var today = getCurrentDate();
  61. var cur_mm = parseInt(today.substring(4, 6));
  62. var yy = parseInt(today.substring(0, 4));
  63. /*
  64. if (cur_mm >= 11)
  65. cur_yy++;
  66. */
  67. model.setValue("/root/send/req/yy", yy);
  68. ipt_yy.refresh();
  69. misfGridComboComCdList("R0305",grd_itempoollist,"instcd");
  70. misfGridComboComCdList("R0151",grd_itempoollist,"trngflag");
  71. misfComboComCdListMulti("R0305,R0151", "cmb_instcd,cmb_trngflag");
  72. addComboItem( "cmb_instcd", "전체", "", "above");
  73. addComboItem( "cmb_deptcd", "전체", "", "above");
  74. model.setValue("/root/send/req/instcd",getUserInfo("posinstcd"));
  75. var sPosdeptcd = getUserInfo("posdeptcd");
  76. // 내과 세부분과이면 내과로 세팅
  77. if(sPosdeptcd == "2010300000" || sPosdeptcd == "2010400000" || sPosdeptcd == "2010500000" || sPosdeptcd == "2010600000" || sPosdeptcd == "2010700000" || sPosdeptcd == "2010800000" || sPosdeptcd == "2010900000" || sPosdeptcd == "2011000000" || sPosdeptcd == "2011100000")
  78. {
  79. model.setValue("/root/send/req/deptcd", "2010000000"); // 진료과 설정 ;
  80. }
  81. else
  82. {
  83. model.setValue("/root/send/req/deptcd", sPosdeptcd); // 진료과 설정
  84. }
  85. fCheckAuth();
  86. cmb_deptcd.refresh();
  87. cmb_trngflag.select(0);
  88. model.refresh();
  89. ]]>
  90. </script>
  91. <script type="javascript">
  92. <![CDATA[
  93. //========================================================================================
  94. //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
  95. //========================================================================================
  96. function fCheckAuth() {
  97. btn_search.disabled =!checkAuth("R") ;
  98. btn_save.disabled = !checkAuth("X") ;
  99. // 관리자는 날짜에 관계없이 입력, 수정, 삭제를 할 수 있다
  100. if(!checkAuth("P"))
  101. {
  102. rtsfCheckTermFlag('04',cmb_deptcd.value);
  103. var from = model.getValue("/root/updtsche/list/schefrom");
  104. var to = model.getValue("/root/updtsche/list/scheto");
  105. if(from.length == 8 && to.length== 8)
  106. {
  107. var cur_yy = from.substring(0,4);
  108. var frommm = from.substring(4,6);
  109. var fromdd = to.substring(6,8);
  110. var toyy = to.substring(0,4);
  111. var tomm = to.substring(4,6);
  112. var todd = to.substring(6,8);
  113. var fromyymmdd = from;
  114. var toyymmdd = to;
  115. }
  116. else(from.length == 4 && to.length== 4)
  117. {
  118. var frommm = from.substring(0,2);
  119. var fromdd = from.substring(2,4);
  120. var tomm = to.substring(0,2);
  121. var todd = to.substring(2,4);
  122. var today = getCurrentDate();
  123. var cur_yy = parseInt(today.substring(0, 4));
  124. var fromyymmdd=cur_yy+from;
  125. var toyymmdd=cur_yy+to;
  126. }
  127. // var schefromto= cmb_deptcd.label + " 문제은행채용실기문항등록 입력기간은 "+cur_yy+"년 "+ frommm+"월 "+fromdd+"일 "+"~ "+ cur_yy+"년 "+ tomm+"월 "+todd+"일 까지 입니다.";
  128. // model.setValue("/root/init/scheflag",schefromto);
  129. if( parseInt(today) >= parseInt(fromyymmdd) && parseInt(today) <= parseInt(toyymmdd) ){
  130. btn_save.disabled=false;
  131. }else{
  132. btn_save.disabled=true;;
  133. }
  134. }
  135. }
  136. function fDisabledSetting(check){
  137. tar_question.disabled = check;
  138. tar_answer.disabled = check;
  139. }
  140. /*
  141. function fDefaultDeptSetting(control)
  142. {
  143. var sPosdeptcd = getUserInfo("posdeptcd");
  144. var sDeptcd = control.value;
  145. // 주임교수이면서 핵의학과 교수일때
  146. if(checkAuth("P") && sPosdeptcd == "2180000000")
  147. {
  148. if(sDeptcd == "2180000000" || sDeptcd == "2160000000")
  149. {}
  150. else
  151. {
  152. messageBox(control.label+ "을 선택", "E001");
  153. control.value = sPosdeptcd;
  154. // model.setValue("/root/send/deptcd", sPosdeptcd); // 진료과 설정
  155. }
  156. }
  157. // 주임교수이면서 치과 교수일때
  158. else if(checkAuth("P") && sPosdeptcd == "2240000000")
  159. {
  160. if(sDeptcd == "2240000000" || sDeptcd == "2240500000" || sDeptcd == "2240200000" || sDeptcd == "2240400000")
  161. {}
  162. else
  163. {
  164. messageBox(control.label+ "을 선택", "E001");
  165. control.value = sPosdeptcd;
  166. // model.setValue("/root/send/deptcd", sPosdeptcd); // 진료과 설정
  167. }
  168. }
  169. else if(sPosdeptcd == "2010300000" || sPosdeptcd == "2010400000" || sPosdeptcd == "2010500000" || sPosdeptcd == "2010600000" || sPosdeptcd == "2010700000" || sPosdeptcd == "2010800000" || sPosdeptcd == "2010900000" || sPosdeptcd == "2011000000" || sPosdeptcd == "2011100000")
  170. {
  171. if(sDeptcd != "2010000000")
  172. {
  173. messageBox(control.label+ "을 선택", "E001");
  174. sPosdeptcd = "2010000000";
  175. control.value = sPosdeptcd;
  176. // model.setValue("/root/send/deptcd", sPosdeptcd); // 진료과 설정
  177. }
  178. }
  179. else
  180. {
  181. if(checkAuth("P"))
  182. {}
  183. else
  184. {
  185. if(sPosdeptcd != sDeptcd)
  186. {
  187. messageBox(control.label+ "을 선택", "E001");
  188. control.value = sPosdeptcd;
  189. }
  190. }
  191. }
  192. model.refresh();
  193. }
  194. */
  195. ]]>
  196. </script>
  197. </xhtml:head>
  198. <xhtml:body style="margin-left:8; margin-right:8; ">
  199. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  200. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">문제은행채용실기문항등록</caption>
  201. </group>
  202. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  203. <line id="line6" class="line_3" style="x1:525px; y1:738px; x2:1189px; y2:738px; "/>
  204. <line id="line5" class="line_2" style="x1:525; y1:462; x2:1189px; y2:462; "/>
  205. <line id="line1" class="line_1" style="x1:525; y1:69px; x2:1190px; y2:69px; "/>
  206. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  207. <caption id="cap_yy" class="search_name" style="left:15px; top:19px; width:86px; height:17px; ">년 도 :</caption>
  208. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:16px; width:56px; height:22px; ">
  209. <caption>조회</caption>
  210. <script type="javascript" ev:event="DOMActivate">
  211. <![CDATA[
  212. if(!isRequiredControls("ipt_yy"))return;
  213. /*
  214. if(!isRequiredControls("cmb_instcd"))return;
  215. if(!isRequiredControls("cmb_deptcd"))return;
  216. if(!isRequiredControls("cmb_trngflag"))return;
  217. */
  218. var updtdata = getGridUpdateData(grd_itempoollist);
  219. if ( updtdata != "")
  220. {
  221. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
  222. if (ret == 7) { // not OK
  223. return;
  224. }
  225. }
  226. tar_question.value = "";
  227. tar_answer.value = "";
  228. submit("TRRTC01701");
  229. model.refresh();
  230. misfMsterDetailRetrieve();
  231. misfSetReadOnlyCol(grd_itempoollist, "instcd,deptcd,trngflag", true);
  232. model.setValue("/root/init/num","조회된 문제는 총 " + (grd_itempoollist.rows - grd_itempoollist.fixedRows) + "개 입니다.");
  233. model.refresh();
  234. ]]>
  235. </script>
  236. </button>
  237. <line id="line13" class="line_4" style="x1:1110px; y1:16px; x2:1110px; y2:38px; "/>
  238. <line id="line207" class="line_1" style="x1:0px; y1:69px; x2:520; y2:69px; "/>
  239. <input id="ipt_yy" ref="/root/send/req/yy" class="input_s_essential" navindex="1" format="yyyy" appearance="input" style="left:100px; top:18px; width:100px; height:19px; "/>
  240. <caption id="cap_instcd" class="search_name" style="left:281px; top:19px; width:99px; height:17px; ">기 관 :</caption>
  241. <select1 id="cmb_instcd" ref="/root/send/req/instcd" class="combo_s_essential" navindex="2" appearance="minimal" style="left:370px; top:18px; width:100px; height:19px; ">
  242. <choices>
  243. <itemset>
  244. <label/>
  245. <value/>
  246. </itemset>
  247. </choices>
  248. </select1>
  249. <caption id="cap_educgoal" class="cell_1" style="left:525px; top:73px; width:100px; height:387px; vertical-align:middle; ">문제내용</caption>
  250. <caption id="cap_praccnts" class="cell_1" style="left:525px; top:464px; width:100px; height:271px; vertical-align:middle; ">답</caption>
  251. <textarea id="tar_answer" ref="/root/send/answer" disabled="true" navindex="9" style="left:627px; top:464px; width:562px; height:271px; padding-top:5; ">
  252. <script type="javascript" ev:event="DOMFocusOut">
  253. <![CDATA[
  254. grd_itempoollist.rowstatus(grd_itempoollist.row) = 2;
  255. //grd_itempoollist.valueMatrix(grd_itempoollist.row, grd_itempoollist.colRef("question")) = tar_question.value ;
  256. grd_itempoollist.valueMatrix(grd_itempoollist.row, grd_itempoollist.colRef("answer")) = tar_question.value ;
  257. ]]>
  258. </script>
  259. </textarea>
  260. <textarea id="tar_question" ref="/root/send/question" disabled="true" navindex="7" style="left:627px; top:73px; width:562px; height:387px; padding-top:5; ">
  261. <script type="javascript" ev:event="DOMFocusOut">
  262. <![CDATA[
  263. grd_itempoollist.rowstatus(grd_itempoollist.row) = 2;
  264. grd_itempoollist.valueMatrix(grd_itempoollist.row, grd_itempoollist.colRef("question")) = tar_question.value ;
  265. // grd_itempoollist.valueMatrix(grd_itempoollist.row, grd_itempoollist.colRef("answer")) = tar_question.value ;
  266. ]]>
  267. </script>
  268. </textarea>
  269. <button id="button1" class="btn2_letter2" style="left:1060px; top:49px; width:42px; height:19px; ">
  270. <caption>추가</caption>
  271. <script type="javascript" ev:event="DOMActivate">
  272. <![CDATA[
  273. if(!isRequiredControls("ipt_yy"))return;
  274. /*
  275. if(!isRequiredControls("cmb_instcd"))return;
  276. if(!isRequiredControls("cmb_deptcd"))return;
  277. if(!isRequiredControls("cmb_trngflag"))return;
  278. */
  279. misfGridIUD(grd_itempoollist, "A");
  280. var sPosdeptcd = getUserInfo("posdeptcd");
  281. if(sPosdeptcd == "2010300000" || sPosdeptcd == "2010400000" || sPosdeptcd == "2010500000" || sPosdeptcd == "2010600000" || sPosdeptcd == "2010700000" || sPosdeptcd == "2010800000" || sPosdeptcd == "2010900000" || sPosdeptcd == "2011000000" || sPosdeptcd == "2011100000")
  282. {
  283. grd_itempoollist.valueMatrix(grd_itempoollist.row, grd_itempoollist.colRef("deptcd")) = "2010000000"; // 진료과 설정 ;
  284. }
  285. else
  286. {
  287. grd_itempoollist.valueMatrix(grd_itempoollist.row, grd_itempoollist.colRef("deptcd")) = sPosdeptcd; // 진료과 설정
  288. }
  289. grd_itempoollist.valueMatrix(grd_itempoollist.row, grd_itempoollist.colRef("instcd")) = cmb_instcd.value; // getUserInfo("posinstcd");
  290. grd_itempoollist.valueMatrix(grd_itempoollist.row, grd_itempoollist.colRef("deptcd")) = cmb_deptcd.value;
  291. grd_itempoollist.dispatch("onrowchanged");
  292. fDisabledSetting(false);
  293. model.refresh()
  294. ]]>
  295. </script>
  296. </button>
  297. <caption id="caption1" class="search_name" style="left:550px; top:19px; width:141px; height:17px; ">진 료 과 :</caption>
  298. <select1 id="cmb_deptcd" ref="/root/send/req/deptcd" appearance="minimal" style="left:655px; top:18px; width:120px; height:19px; ">
  299. <choices>
  300. <itemset nodeset="/root/main/tisorddeptcdlist">
  301. <label ref="deptnm"/>
  302. <value ref="deptcd"/>
  303. </itemset>
  304. </choices>
  305. <script type="javascript" ev:event="xforms-value-changed">
  306. <![CDATA[
  307. // fDefaultDeptSetting(cmb_deptcd);
  308. ]]>
  309. </script>
  310. </select1>
  311. <select1 id="cmb_trngflag" ref="/root/send/req/trngflag" class="combo_s_essential" navindex="2" appearance="minimal" style="left:929px; top:18px; width:100px; height:19px; ">
  312. <choices>
  313. <itemset>
  314. <label/>
  315. <value/>
  316. </itemset>
  317. </choices>
  318. </select1>
  319. <caption id="cap_trngflag" class="search_name" style="left:840px; top:19px; width:90px; height:17px; ">수련 구분:</caption>
  320. <datagrid id="grd_itempoollist" nodeset="/root/main/itempool/itempoollist" caption="년도^기관^진료과^수련구분^문제번호^문제내용^답" colsep="^" colwidth="100, 120, 140, 138, 100, 469, 298" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:73px; width:520px; height:667px; ">
  321. <col ref="yy"/>
  322. <col ref="instcd" type="combo">
  323. <choices>
  324. <itemset>
  325. <label/>
  326. <value/>
  327. </itemset>
  328. </choices>
  329. </col>
  330. <col ref="deptcd" type="combo">
  331. <choices>
  332. <itemset nodeset="/root/hidden/tisorddeptcdlist">
  333. <label ref="deptnm"/>
  334. <value ref="deptcd"/>
  335. </itemset>
  336. </choices>
  337. </col>
  338. <col ref="trngflag" type="combo">
  339. <choices>
  340. <itemset>
  341. <label/>
  342. <value/>
  343. </itemset>
  344. </choices>
  345. </col>
  346. <col ref="seqno" visibility="hidden"/>
  347. <col ref="question"/>
  348. <col ref="answer"/>
  349. <script type="javascript" ev:event="onaftersort">
  350. <![CDATA[
  351. grd_itempoollist.gridToInstance();
  352. ]]>
  353. </script>
  354. <script type="javascript" ev:event="onrowchanged">
  355. <![CDATA[
  356. fDisabledSetting(true);
  357. tar_question.value = grd_itempoollist.valueMatrix(grd_itempoollist.row, grd_itempoollist.colRef("question"));
  358. tar_answer.value = grd_itempoollist.valueMatrix(grd_itempoollist.row, grd_itempoollist.colRef("answer"));
  359. ]]>
  360. </script>
  361. <script type="javascript" ev:event="xforms-value-changed">
  362. <![CDATA[
  363. var sInstcd = grd_itempoollist.valueMatrix(grd_itempoollist.row, grd_itempoollist.colRef("instcd"));
  364. if(grd_itempoollist.colRef("instcd") == grd_itempoollist.col)
  365. {
  366. if(checkAuth("P"))
  367. {}
  368. else
  369. {
  370. if(sInstcd == getUserInfo("posinstcd"))
  371. {}
  372. else
  373. {
  374. messageBox(control.label+ "을 선택", "E001");
  375. grd_itempoollist.valueMatrix(grd_itempoollist.row, grd_itempoollist.colRef("instcd")) = getUserInfo("posinstcd");
  376. return;
  377. }
  378. }
  379. }
  380. else if(grd_itempoollist.colRef("deptcd") == grd_itempoollist.col)
  381. {
  382. var sPosdeptcd = getUserInfo("posdeptcd");
  383. var sDeptcd = grd_itempoollist.valueMatrix(grd_itempoollist.row, grd_itempoollist.colRef("deptcd"));
  384. // 주임교수이면서 핵의학과 교수일때
  385. if(sPosdeptcd == "2180000000")
  386. {
  387. if(sDeptcd == "2180000000" || sDeptcd == "2160000000")
  388. {}
  389. else
  390. {
  391. messageBox(control.label+ "을 선택", "E001");
  392. grd_itempoollist.valueMatrix(grd_itempoollist.row, grd_itempoollist.colRef("deptcd")) = sPosdeptcd;
  393. // model.setValue("/root/send/deptcd", sPosdeptcd); // 진료과 설정
  394. }
  395. }
  396. // 주임교수이면서 치과 교수일때
  397. else if(sPosdeptcd == "2240000000")
  398. {
  399. if(sDeptcd == "2240000000" || sDeptcd == "2240500000" || sDeptcd == "2240200000" || sDeptcd == "2240400000")
  400. {}
  401. else
  402. {
  403. messageBox(control.label+ "을 선택", "E001");
  404. grd_itempoollist.valueMatrix(grd_itempoollist.row, grd_itempoollist.colRef("deptcd")) = sPosdeptcd;
  405. // model.setValue("/root/send/deptcd", sPosdeptcd); // 진료과 설정
  406. }
  407. }
  408. else if(sPosdeptcd == "2010300000" || sPosdeptcd == "2010400000" || sPosdeptcd == "2010500000" || sPosdeptcd == "2010600000" || sPosdeptcd == "2010700000" || sPosdeptcd == "2010800000" || sPosdeptcd == "2010900000" || sPosdeptcd == "2011000000" || sPosdeptcd == "2011100000")
  409. {
  410. if(sDeptcd != "2010000000")
  411. {
  412. messageBox(control.label+ "을 선택", "E001");
  413. sPosdeptcd = "2010000000";
  414. grd_itempoollist.valueMatrix(grd_itempoollist.row, grd_itempoollist.colRef("deptcd")) = sPosdeptcd;
  415. // model.setValue("/root/send/deptcd", sPosdeptcd); // 진료과 설정
  416. }
  417. }
  418. else
  419. {
  420. if(checkAuth("P"))
  421. {}
  422. else
  423. {
  424. if(sPosdeptcd != sDeptcd)
  425. {
  426. messageBox(control.label+ "을 선택", "E001");
  427. control.value = sPosdeptcd;
  428. }
  429. }
  430. }
  431. model.refresh();
  432. }
  433. ]]>
  434. </script>
  435. </datagrid>
  436. <button id="button2" class="btn2_letter2" style="left:1148px; top:49px; width:42px; height:19px; ">
  437. <caption>삭제</caption>
  438. <script type="javascript" ev:event="DOMActivate">
  439. <![CDATA[
  440. misfGridIUD(grd_itempoollist, "D");
  441. model.refresh();
  442. /*
  443. var updtdata = getGridUpdateData(grd_itempoollist);
  444. if ( updtdata != "")
  445. {
  446. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
  447. if (ret == 7) { // not OK
  448. return;
  449. }
  450. }
  451. misfGridIUD(grd_itempoollist, "D");
  452. misfSave("TXRTC01701");
  453. btn_search.dispatch("DOMActivate");
  454. fDisabledSetting(true);
  455. */
  456. ]]>
  457. </script>
  458. </button>
  459. <button id="button3" class="btn2_letter2" style="left:1104px; top:49px; width:45px; height:19px; ">
  460. <caption>수정</caption>
  461. <script type="javascript" ev:event="DOMActivate">
  462. <![CDATA[
  463. if(grd_itempoollist.rows - grd_itempoollist.fixedRows > 0 ){
  464. tar_question.value = grd_itempoollist.valueMatrix(grd_itempoollist.row, grd_itempoollist.colRef("question"));
  465. tar_answer.value = grd_itempoollist.valueMatrix(grd_itempoollist.row, grd_itempoollist.colRef("answer"));
  466. model.setValue("/root/send/checkflag","Y");
  467. fDisabledSetting(false);
  468. }
  469. ]]>
  470. </script>
  471. </button>
  472. <output id="opt_scheflag" ref="/root/init/scheflag" style="left:5px; top:48px; width:595px; height:19px; font-weight:bold; color:#0000ff; "/>
  473. <output id="output1" ref="/root/init/num" style="left:605px; top:48px; width:300px; height:19px; font-weight:bold; color:#0000ff; "/>
  474. </group>
  475. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  476. <button id="button8" class="btn3_letter4" visibility="hidden" style="left:0px; top:3px; width:80px; height:22px; ">
  477. <caption>화면이동</caption>
  478. </button>
  479. <button id="btn_save" class="btn4_letter2" style="left:1124px; top:3px; width:56px; height:22px; ">
  480. <caption>저장</caption>
  481. <script type="javascript" ev:event="DOMActivate">
  482. <![CDATA[
  483. for ( var i = 1; i < grd_itempoollist.rows; i++) {
  484. if (grd_itempoollist.rowstatus(i) == 0 ){
  485. grd_itempoollist.rowstatus(i) = 3;
  486. }
  487. }
  488. //grd_itempoollist.valueMatrix(grd_itempoollist.row, grd_itempoollist.colRef("question")) = tar_question.value;
  489. //grd_itempoollist.valueMatrix(grd_itempoollist.row, grd_itempoollist.colRef("answer")) = tar_answer.value;
  490. //grd_itempoollist.refresh();
  491. if(model.getValue("/root/send/checkflag") == "Y"){
  492. grd_itempoollist.rowStatus(grd_itempoollist.row) = 2;
  493. model.setValue("/root/send/checkflag","N");
  494. }
  495. misfSave("TXRTC01701");
  496. btn_search.dispatch("DOMActivate");
  497. fDisabledSetting(true);
  498. ]]>
  499. </script>
  500. </button>
  501. <line id="line11" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  502. </group>
  503. </xhtml:body>
  504. </xhtml:html>