SMAHA03190_사전질의코드관리.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMAHB00100.xrw
  4. * 설 명 : 검사코드관리
  5. * 설 계 자 : 손주연
  6. * 작 성 자 : 박원희
  7. * 작 성 일 : 2007.03.13
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>사전질의코드 관리</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <inqrlst>
  20. <item>
  21. <inqrcd/>
  22. <inqrnm/>
  23. <answcnt/>
  24. <useyn/>
  25. <inqrdispseq/>
  26. <lastupdtrid/>
  27. <lastupdtdt/>
  28. </item>
  29. </inqrlst>
  30. <anslst>
  31. <item>
  32. <inqrcd/>
  33. <answcd/>
  34. <answcnts/>
  35. <answengcnts/>
  36. <reminptyn/>
  37. <lastupdtrid/>
  38. <lastupdtdt/>
  39. </item>
  40. </anslst>
  41. <roomlst>
  42. <item>
  43. <inqrcd/>
  44. <answcd/>
  45. <testroomcd/>
  46. <lastupdtrid/>
  47. <lastupdtdt/>
  48. </item>
  49. </roomlst>
  50. </main>
  51. <send>
  52. <srchinqrflag/>
  53. <srchinqrcd/>
  54. <srchinqrcnts/>
  55. <srchinstcd/>
  56. <save>
  57. <saveinqrcd/>
  58. <instcd/>
  59. <inqrflag/>
  60. <userid/>
  61. <saveinqrans/>
  62. <inqrcd/>
  63. <saveinqransroom/>
  64. </save>
  65. <ansinqrcd/>
  66. <answcd/>
  67. </send>
  68. <init>
  69. <baseinfo>
  70. <inqrflaglst/>
  71. <answflaglst/>
  72. </baseinfo>
  73. <room>
  74. <roomlst/>
  75. </room>
  76. </init>
  77. <hidden/>
  78. </root>
  79. </instance>
  80. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  81. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  82. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  83. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  84. <submission id="TRAHB03191" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/inqrlst"/>
  85. <submission id="TRZBC00101"/>
  86. <script type="javascript" ev:event="xforms-ready">
  87. <![CDATA[
  88. btn_search. disabled = ! checkAuth("R") ;
  89. btn_save. disabled = ! checkAuth("X") ;
  90. btn_print. disabled = ! checkAuth("P") ;
  91. fGetInqrFlag();
  92. submit("TRAHB01502");
  93. ]]>
  94. </script>
  95. <submission id="TRAHB01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/room/roomlst"/>
  96. <submission id="TRAHB03192" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/anslst"/>
  97. <submission id="TRAHB03193" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/roomlst"/>
  98. <submission id="TXAHB03191" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/hidden"/>
  99. </model>
  100. <script type="javascript">
  101. <![CDATA[
  102. function fGetInqrlst(){
  103. var selRow = grd_inqrlst.row;
  104. //var tmp = cmb_inqrflag.value ;
  105. model.setValue("/root/send/srchinstcd", getUserInfo("posinstcd") );
  106. if(submit("TRAHB03191")) {
  107. if(selRow > 0) {
  108. fGetInqrAns();
  109. }
  110. }
  111. model.removeNodeset("/root/main/roomlst/item");
  112. model.refresh();
  113. }
  114. /**
  115. * 사전질의 답안내역 가져오기
  116. */
  117. function fGetInqrAns(){
  118. var tmpinqrflag = model.getvalue("root/send/srchinqrflag");
  119. model.setValue("/root/send/srchinstcd", getUserInfo("posinstcd") );
  120. model.setValue("/root/send/srchinqrflag" , tmpinqrflag);
  121. model.setValue("/root/send/ansinqrcd" , grd_inqrlst.valueMatrix(grd_inqrlst.row, 1) );
  122. //var tmp = model.getValue("/root/send/inqrcd" );
  123. //alert(tmp );
  124. submit("TRAHB03192");
  125. }
  126. /**
  127. * 사전질의 답안내역 가져오기
  128. */
  129. function fGetInqrAnsRoom(){
  130. var tmpinqrflag = model.getvalue("root/send/srchinqrflag");
  131. model.setValue("/root/send/srchinstcd", getUserInfo("posinstcd") );
  132. model.setValue("/root/send/srchinqrflag" , tmpinqrflag);
  133. model.setValue("/root/send/ansinqrcd" , grd_inqrlst.valueMatrix(grd_inqrlst.row, 1) );
  134. model.setValue("/root/send/answcd" , grd_answlst.valueMatrix(grd_answlst.row, 2) );
  135. //var tmp = model.getValue("/root/send/inqrcd" );
  136. //alert(tmp );
  137. submit("TRAHB03193");
  138. }
  139. /**
  140. * 사전질의분류 가져오기
  141. */
  142. function fGetInqrFlag(){
  143. model.removeNodeset("/root/init/baseinfo/inqrflaglst/A0106");
  144. zbcfGetCodeList( new Array("A0106","A0066" ),
  145. new Array("/root/init/baseinfo/inqrflaglst"
  146. ,"/root/init/baseinfo/answflaglst" ) );
  147. submit("TRZBC00101");
  148. }
  149. /**
  150. * 초기화
  151. */
  152. function fInitInqrLst(){
  153. model.removeNodeset("/root/main/inqrlst/item");
  154. model.removeNodeset("/root/main/anslst/item");
  155. //model.reset();
  156. //. model.resetInstanceNode("/root/send/srchinqrflag");
  157. model.refresh();
  158. }
  159. /**
  160. * Save function,사전질의코드
  161. */
  162. function fSaveInqrCd() {
  163. var ret = false;
  164. if( messageBox("사전질의코드정보를","Q002") == 6){
  165. model.setValue("/root/send/save/saveinqrcd", grd_inqrlst.getUpdateData());
  166. model.setValue("/root/send/save/saveinqrans", grd_answlst.getUpdateData());
  167. model.setValue("/root/send/save/saveinqransroom", grd_roomlst.getUpdateData());
  168. ret = submit("TXAHB03191");
  169. return ret;
  170. }
  171. return ret;
  172. }
  173. ]]>
  174. </script>
  175. </xhtml:head>
  176. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  177. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  178. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:119px; height:14px; ">사전질의코드관리</caption>
  179. </group>
  180. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  181. <datagrid id="grd_answlst" nodeset="/root/main/anslst/item" caption="사전질의코드^코드^답안^영문답안^비고입력여부^최종수정자^최종수정일시" colsep="^" colwidth="100, 100, 313, 153, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:594px; top:75px; width:600px; height:325px; ">
  182. <col ref="inqrcd" visibility="hidden"/>
  183. <col ref="answcd" type="input" style="left:0px; top:23px; width:100px; height:23px; "/>
  184. <col ref="answcnts" type="input" style="left:100px; top:23px; width:441px; height:23px; "/>
  185. <col ref="answengcnts" type="input" visibility="hidden"/>
  186. <col type="input" visibility="hidden"/>
  187. <col ref="reminptyn"/>
  188. <col ref="lastupdtrid"/>
  189. <script type="javascript" ev:event="onclick">
  190. <![CDATA[
  191. fGetInqrAnsRoom();
  192. ]]>
  193. </script>
  194. </datagrid>
  195. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  196. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  197. <caption id="caption3" class="search_name" style="left:11px; top:9px; width:112px; height:17px; ">사전질의코드 :</caption>
  198. <input id="ipt_inqrcnts" ref="/root/send/srchinqrcnts" class="input_search" style="left:435px; top:8px; width:340px; height:19px; "/>
  199. <button id="btn_search" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  200. <caption>조회</caption>
  201. <script type="javascript" ev:event="DOMActivate">
  202. <![CDATA[
  203. model.removenode("/root/main/anslst");
  204. model.removenode("/root/main/inqrlst");
  205. fGetInqrlst();
  206. ]]>
  207. </script>
  208. </button>
  209. <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
  210. <caption id="caption5" class="search_name" style="left:316px; top:9px; width:119px; height:17px; ">사전질의내역 :</caption>
  211. <input id="ipt_inqrcd" ref="/root/send/srchinqrcd" class="input_search" style="left:130px; top:8px; width:160px; height:19px; "/>
  212. </group>
  213. <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:78px; height:14px; ">사전질의코드</caption>
  214. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:590px; y2:70px; "/>
  215. <datagrid id="grd_inqrlst" nodeset="/root/main/inqrlst/item" caption="코드^사전질의내역^답안선택수^사용여부^최종수정자^최종수정일시" colsep="^" colwidth="70, 260, 80, 50, 100, 100" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:75px; width:590px; height:660px; ">
  216. <col ref="inqrcd" type="input"/>
  217. <col ref="inqrnm" type="input"/>
  218. <col ref="answcnt" type="input"/>
  219. <col checkvalue="Y,N" ref="useyn" type="checkbox"/>
  220. <col ref="lastupdtrid"/>
  221. <col ref="lastupdtdt" type="input"/>
  222. <script type="javascript" ev:event="ondbclick">
  223. <![CDATA[
  224. //fGetInqrAns();
  225. alert(grd_inqrlst.valueMatrix(grd_inqrlst.row, grd_inqrlst.col));
  226. ]]>
  227. </script>
  228. <script type="javascript" ev:event="onclick">
  229. <![CDATA[
  230. fGetInqrAns();
  231. ]]>
  232. </script>
  233. </datagrid>
  234. <caption id="caption4" class="tit_2" style="left:599px; top:55px; width:107px; height:14px; ">선택형답안</caption>
  235. <line id="line2" class="line_1" style="x1:594px; y1:70px; x2:1194px; y2:70px; "/>
  236. <button id="btn_grddel" class="btn2_letter3" style="left:537px; top:50px; width:53px; height:19px; ">
  237. <caption>행삭제</caption>
  238. <script type="javascript" ev:event="DOMActivate">
  239. <![CDATA[
  240. //grd_inqrlst.addStatus(grd_inqrlst.row,"delete");
  241. deleteSelectedRows(grd_inqrlst,true);
  242. ]]>
  243. </script>
  244. </button>
  245. <button id="btn_grdadd" class="btn2_letter3" style="left:482px; top:50px; width:53px; height:19px; ">
  246. <caption>행추가</caption>
  247. <script type="javascript" ev:event="DOMActivate">
  248. <![CDATA[
  249. grd_inqrlst.addRow();
  250. ]]>
  251. </script>
  252. </button>
  253. <button id="btn_ansadd" class="btn2_letter3" style="left:1085px; top:50px; width:53px; height:19px; ">
  254. <caption>행추가</caption>
  255. <script type="javascript" ev:event="DOMActivate">
  256. <![CDATA[
  257. grd_answlst.addRow();
  258. model.setValue("/root/main/anslst/item[" + (grd_answlst.rows - 1) + "]/inqrcd", model.getValue("/root/main/inqrlst/item[" + grd_inqrlst.row + "]/inqrcd"));
  259. model.refresh();
  260. ]]>
  261. </script>
  262. </button>
  263. <button id="btn_ansdel" class="btn2_letter3" style="left:1139px; top:50px; width:53px; height:19px; ">
  264. <caption>행삭제</caption>
  265. <script type="javascript" ev:event="DOMActivate">
  266. <![CDATA[
  267. //grd_answlst.addStatus(grd_answlst.row,"delete");
  268. deleteSelectedRows(grd_answlst,true);
  269. ]]>
  270. </script>
  271. </button>
  272. <datagrid id="grd_roomlst" nodeset="/root/main/roomlst/item" caption="사전질의코드^답안코드^검사실명^최종수정자^최종수정일시" colsep="^" colwidth="100, 100, 151, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:594px; top:430px; width:600px; height:305px; ">
  273. <col ref="inqrcd" visibility="hidden"/>
  274. <col ref="answcd" visibility="hidden"/>
  275. <col ref="testroomcd" type="combo" style="left:0px; top:23px; width:100px; height:23px; ">
  276. <choices>
  277. <itemset nodeset="/root/init/room/roomlst/itemroom">
  278. <label ref="testroomnm"/>
  279. <value ref="testroomcd"/>
  280. </itemset>
  281. </choices>
  282. </col>
  283. <col ref="lastupdtrid"/>
  284. <col ref="lastupdtdt"/>
  285. </datagrid>
  286. <button id="button1" class="btn2_letter3" style="left:1085px; top:405px; width:53px; height:19px; ">
  287. <caption>행추가</caption>
  288. <script type="javascript" ev:event="DOMActivate">
  289. <![CDATA[
  290. grd_roomlst.addRow();
  291. model.setValue("/root/main/roomlst/item[" + (grd_roomlst.rows - 1) + "]/inqrcd", model.getValue("/root/main/anslst/item[" + grd_answlst.row + "]/inqrcd"));
  292. model.setValue("/root/main/roomlst/item[" + (grd_roomlst.rows - 1) + "]/answcd", model.getValue("/root/main/anslst/item[" + grd_answlst.row + "]/answcd"));
  293. model.refresh();
  294. ]]>
  295. </script>
  296. </button>
  297. <caption id="caption2" class="tit_2" style="left:599px; top:410px; width:126px; height:14px; ">답안별 통보검사실</caption>
  298. <button id="button2" class="btn2_letter3" style="left:1139px; top:405px; width:53px; height:19px; ">
  299. <caption>행삭제</caption>
  300. <script type="javascript" ev:event="DOMActivate">
  301. <![CDATA[
  302. //grd_answlst.addStatus(grd_answlst.row,"delete");
  303. deleteSelectedRows(grd_roomlst,true);
  304. ]]>
  305. </script>
  306. </button>
  307. <line id="line3" class="line_1" style="x1:594px; y1:425px; x2:1194px; y2:425px; "/>
  308. </group>
  309. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  310. <button id="btn_print" class="btn6_letter2" style="left:0px; top:5px; width:56px; height:22px; ">
  311. <caption>출력</caption>
  312. </button>
  313. <button id="btn_init" class="btn4_letter3" style="left:1067px; top:5px; width:68px; height:22px; ">
  314. <caption>초기화</caption>
  315. <script type="javascript" ev:event="DOMActivate">
  316. <![CDATA[
  317. fInitInqrLst();
  318. ]]>
  319. </script>
  320. </button>
  321. <button id="btn_save" class="btn4_letter2" style="left:1138px; top:5px; width:56px; height:22px; ">
  322. <caption>저장</caption>
  323. <script type="javascript" ev:event="DOMActivate">
  324. <![CDATA[
  325. if(fSaveInqrCd()) {
  326. fGetInqrlst();
  327. }
  328. ]]>
  329. </script>
  330. </button>
  331. </group>
  332. </xhtml:body>
  333. </xhtml:html>