SMAHB00700_결과예문관리.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMAHB00700.xrw
  4. * 설 명 : 결과예문관리
  5. * 설 계 자 :
  6. * 작 성 자 :
  7. * 작 성 일 :
  8. * 수정이력 : 2007.10.04 김다영 화면권한추가
  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. <rsltexmpcdlst>
  20. <item>
  21. <afseq/>
  22. <rsltexmpcd/>
  23. <rsltexmpcnts/>
  24. <lastupdtrid/>
  25. <lastupdtdt/>
  26. </item>
  27. </rsltexmpcdlst>
  28. <rsltexmpcntslst>
  29. <item>
  30. <afseq/>
  31. <rsltexmpcd/>
  32. <rsltexmpcnts/>
  33. </item>
  34. </rsltexmpcntslst>
  35. </main>
  36. <send>
  37. <srchrsltexmpcd/>
  38. <srchrsltexmpcnts/>
  39. <srchratype/>
  40. <save>
  41. </save>
  42. <srchinstcd/>
  43. </send>
  44. <init/>
  45. <hidden/>
  46. </root>
  47. </instance>
  48. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  49. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  50. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  51. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  52. <script type="javascript" ev:event="xforms-ready">
  53. <![CDATA[
  54. //화면권한추가
  55. btn_search.disabled = ! checkAuth("R");
  56. btn_save.disabled = ! checkAuth("X");
  57. btn_clear.disabled = ! checkAuth("X");
  58. btn_print.disabled = ! checkAuth("P");
  59. model.removeNodeset("/root/main/rsltexmpcdlst/item");
  60. model.removeNodeset("/root/main/rsltexmpcnts/item");
  61. model.refresh();
  62. ]]>
  63. </script>
  64. <submission id="TRAHB00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rsltexmpcdlst"/>
  65. <submission id="TRAHB00702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rsltexmpcntslst"/>
  66. <submission id="TXAHB00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/hidden"/>
  67. </model>
  68. <script type="javascript">
  69. <![CDATA[
  70. function fGetRexmCdList(){
  71. fInit(false);
  72. // ipt_exmpcd.disabled = false
  73. // model.removeNodeset("/root/main/rsltexampcdlst/item");
  74. // model.removeNodeset("/root/main/rsltexmpcntslst/item");
  75. if(model.getValue("/root/send/srchratype") == ""){
  76. messageBox("구분을","C002");
  77. model.setFocus("ipt_afseq");
  78. }
  79. model.setvalue("root/send/srchinstcd",getUserInfo("dutplceinstcd"));
  80. submit("TRAHB00701");
  81. // model.resetInstanceNode("/root/send/srchrsltexmpcd");
  82. // model.resetInstanceNode("/root/send/srchrsltexmpcnts");
  83. }
  84. function fGetRexmCnts(bCopy){
  85. var idx = grd_rexm.Row;
  86. if( idx < 1) return ;
  87. ipt_exmpcd.disabled = !bCopy ;
  88. model.setvalue("root/send/srchinstcd",getUserInfo("dutplceinstcd"));
  89. model.setValue("/root/send/srchrsltexmpcd",model.getValue("/root/main/rsltexmpcdlst/item[" +idx+ "]/rsltexmpcd" ));
  90. submit("TRAHB00702");
  91. model.resetInstanceNode("/root/send/srchrsltexmpcd");
  92. model.refresh();
  93. if(bCopy == true ) {
  94. model.setValue("/root/main/rsltexmpcnts","");
  95. model.refresh();
  96. model.setFocus("ipt_exmpcd");
  97. }
  98. }
  99. function fSaveRexmCd(vDel){
  100. if(vDel == true ) {
  101. if ( messageBox("정보를","Q001") !=6 ) return ;
  102. }
  103. else {
  104. if ( messageBox("정보를","Q002") !=6 ) return ;
  105. }
  106. //if(!fCheckVal()) return ;
  107. model.copyNode("/root/send/save", "/root/main/rsltexmpcntslst/item");
  108. var vMode = "/root/send/save/mode";
  109. model.makeNode(vMode);
  110. if( ipt_exmpcd.disabled == true ){
  111. //update
  112. if(vDel == false ) {
  113. model.setValue(vMode, "u");
  114. }
  115. else {
  116. model.setValue(vMode, "d");
  117. }
  118. }
  119. else {
  120. //신규생성
  121. model.setValue(vMode, "i");
  122. }
  123. //var tmp = model.getvalue(vMode);
  124. //alert(tmp);
  125. var vTmp = "/root/send/save/srchinstcd";
  126. model.makeNode(vTmp);
  127. model.setvalue(vTmp,getUserInfo("dutplceinstcd"));
  128. var vTmp2 = "/root/send/save/srchratype";
  129. model.makeNode(vTmp2);
  130. model.setvalue(vTmp2,model.getValue("/root/send/srchratype"));
  131. if(submit("TXAHB00701")) {
  132. fGetRexmCdList();
  133. }
  134. }
  135. function fInit(vInput){
  136. ipt_exmpcd.disabled = false;
  137. if( vInput == false ) {
  138. //model.removeNodeset("/root/main/rsltexmpcdlst/item");
  139. model.resetInstanceNode("/root/main/rsltexmpcntslst/item");
  140. }
  141. model.resetInstanceNode("/root/main/rsltexmpcnts");
  142. model.setFocus("ipt_afseq");
  143. model.refresh();
  144. }
  145. function fCheckVal(){
  146. var vCd = model.getValue("/root/main/rsltexmpcntslst/item/rsltexmpcd");
  147. if(vCd == "") {
  148. messageBox("결과예문코드는","I003");
  149. model.setFocus("ipt_exmpcd");
  150. }
  151. return true;
  152. }
  153. function fGetExmpDetlInfo(bCopy){
  154. var idx = grd_rexm.Row;
  155. if( idx < 1) return ;
  156. ipt_exmpcd.disabled = !bCopy ;
  157. model.setValue("/root/send/srchinstcd",getUserInfo("dutplceinstcd"));
  158. model.setValue("/root/send/srchjudgexmpcd2",model.getValue("/root/main/judgexmpcdlst/item[" +idx+ "]/judgexmpcd" ));
  159. submit("TRAHB00802");
  160. if(bCopy == true ) {
  161. model.setValue("/root/main/judgexmpdetl/item/judgexmpcd","");
  162. model.refresh();
  163. model.setFocus("ipt_exmpcd");
  164. }
  165. }
  166. ]]>
  167. </script>
  168. </xhtml:head>
  169. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  170. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  171. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:255px; height:13px; ">
  172. <![CDATA[결과예문관리 & 추후관리예문]]>
  173. </caption>
  174. </group>
  175. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  176. <caption id="caption1" class="tit_2" style="left:720px; top:55px; width:78px; height:14px; ">예문작성란</caption>
  177. <line id="line10" class="line_3" style="x1:715px; y1:725px; x2:1194px; y2:725px; "/>
  178. <line id="line1" class="line_1" style="x1:715px; y1:70px; x2:1194px; y2:70px; "/>
  179. <line id="line2" class="line_2" style="x1:715px; y1:97px; x2:1194px; y2:97px; "/>
  180. <line id="line3" class="line_2" style="x1:715px; y1:121px; x2:1194px; y2:121px; "/>
  181. <caption id="caption7" class="cell_1" style="left:715px; top:98px; width:79px; height:23px; font-family:돋움; vertical-align:middle; ">예문코드</caption>
  182. <caption id="caption3" class="tit_2" style="left:5px; top:55px; width:90px; height:14px; ">예문내역</caption>
  183. <line id="line4" class="line_1" style="x1:0px; y1:70px; x2:710px; y2:70px; "/>
  184. <line id="line5" class="line_2" style="x1:715px; y1:145px; x2:1194px; y2:145px; "/>
  185. <line id="line8" class="line_2" style="x1:715px; y1:273px; x2:1194px; y2:273px; "/>
  186. <input id="ipt_exmpcd" ref="/root/main/rsltexmpcntslst/item/rsltexmpcd" class="input_essential" style="left:797px; top:99px; width:388px; height:19px; ">
  187. <script type="javascript" ev:event="onkeyup">
  188. <![CDATA[
  189. if( event.keyCode == 13) {
  190. model.setFocus("ipt_shrthang");
  191. }
  192. ]]>
  193. </script>
  194. </input>
  195. <textarea id="tar_hangcnts" ref="/root/main/rsltexmpcntslst/item/rsltexmpcnts" scroll="vertical" style="left:796px; top:122px; width:392px; height:590px; "/>
  196. <group id="grp_search" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  197. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  198. <caption id="caption21" class="search_name" style="left:291px; top:8px; width:86px; height:17px; ">예문코드 :</caption>
  199. <button id="btn_search" class="btn1_letter2" style="left:1122px; top:7px; width:56px; height:22px; ">
  200. <caption>조회</caption>
  201. <script type="javascript" ev:event="DOMActivate">
  202. <![CDATA[
  203. fGetRexmCdList();
  204. ]]>
  205. </script>
  206. </button>
  207. <line id="line18" class="line_4" style="x1:1104px; y1:7px; x2:1104px; y2:29px; border-left-style:solid; "/>
  208. <input id="ipt_examcnts" ref="/root/send/srchrsltexmpcnts" class="input_search" style="left:750px; top:8px; width:290px; height:19px; ">
  209. <script type="javascript" ev:event="onkeyup">
  210. <![CDATA[
  211. inputEnterKey("btn_search", "DOMActivate");
  212. ]]>
  213. </script>
  214. </input>
  215. <input id="ipt_examcd" ref="/root/send/srchrsltexmpcd" class="input_search" style="left:380px; top:8px; width:165px; height:19px; ">
  216. <script type="javascript" ev:event="onkeyup">
  217. <![CDATA[
  218. inputEnterKey("btn_search", "DOMActivate");
  219. ]]>
  220. </script>
  221. </input>
  222. <caption id="caption22" class="search_name" style="left:660px; top:8px; width:86px; height:17px; ">예문내용 :</caption>
  223. <select1 id="cmb_srchhealexamflag" ref="/root/send/srchratype" class="combo_search" appearance="minimal" style="left:75px; top:8px; width:115px; height:19px; ">
  224. <choices>
  225. <item>
  226. <label>결과예문</label>
  227. <value>A</value>
  228. </item>
  229. <item>
  230. <label>추후관리예문</label>
  231. <value>B</value>
  232. </item>
  233. </choices>
  234. </select1>
  235. <caption id="caption12" class="search_name" style="left:11px; top:8px; width:86px; height:17px; ">구분 :</caption>
  236. </group>
  237. <caption id="caption2" class="cell_1" style="left:715px; top:122px; width:79px; height:590px; font-family:돋움; vertical-align:middle; ">예문내용</caption>
  238. <datagrid id="grd_rexm" nodeset="/root/main/rsltexmpcdlst/item" caption="순서^예문코드^예문내용^최종수정자^최종수정일시" colsep="^" colwidth="30,78, 448, 64, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:75px; width:710px; height:650px; ">
  239. <col ref="afseq"/>
  240. <col ref="rsltexmpcd"/>
  241. <col ref="rsltexmpcnts"/>
  242. <col ref="lastupdtrid"/>
  243. <col ref="lastupdtdt"/>
  244. <script type="javascript" ev:event="ondblclick">
  245. <![CDATA[
  246. fGetRexmCnts(false);
  247. ]]>
  248. </script>
  249. </datagrid>
  250. <caption id="caption4" class="cell_1" style="left:715px; top:74px; width:79px; height:23px; font-family:돋움; vertical-align:middle; ">정렬순서</caption>
  251. <input id="ipt_afseq" ref="/root/main/rsltexmpcntslst/item/afseq" class="input_essential" style="left:798px; top:75px; width:388px; height:19px; ">
  252. <script type="javascript" ev:event="onkeyup">
  253. <![CDATA[
  254. if( event.keyCode == 13) {
  255. model.setFocus("ipt_exmpcd");
  256. }
  257. ]]>
  258. </script>
  259. </input>
  260. </group>
  261. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  262. <button id="btn_print" class="btn6_letter2" style="left:0px; top:5px; width:56px; height:22px; ">
  263. <caption>출력</caption>
  264. </button>
  265. <button id="btn_save" class="btn4_letter2" style="left:1007px; top:5px; width:56px; height:22px; ">
  266. <caption>저장</caption>
  267. <script type="javascript" ev:event="DOMActivate">
  268. <![CDATA[
  269. fSaveRexmCd(false);
  270. ]]>
  271. </script>
  272. </button>
  273. <button id="btn_del" class="btn4_letter2" style="left:1067px; top:5px; width:56px; height:22px; ">
  274. <caption>삭제</caption>
  275. <script type="javascript" ev:event="DOMActivate">
  276. <![CDATA[
  277. fSaveRexmCd(true);
  278. ]]>
  279. </script>
  280. </button>
  281. <button id="btn_clear" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
  282. <caption>초기화</caption>
  283. <script type="javascript" ev:event="DOMActivate">
  284. <![CDATA[
  285. fInit(false);
  286. ]]>
  287. </script>
  288. </button>
  289. </group>
  290. </xhtml:body>
  291. </xhtml:html>