SMRPH01200_재임용평가항목관리.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  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. <list>
  11. <detaillist/>
  12. </list>
  13. <edit>
  14. <valubase/>
  15. <etc/>
  16. <grdrow/>
  17. </edit>
  18. </main>
  19. <send>
  20. <condition>
  21. <instcd/>
  22. <appfrdt/>
  23. </condition>
  24. <save>
  25. <detaillist/>
  26. </save>
  27. </send>
  28. <init/>
  29. <hidden>
  30. <temp/>
  31. </hidden>
  32. <temp>
  33. </temp>
  34. </root>
  35. </instance>
  36. <script type="javascript" ev:event="xforms-ready">
  37. <![CDATA[
  38. btn_save. disabled = !checkAuth("X");
  39. fInit();
  40. // model.removenode("/root/main/promotnflag");
  41. // model.removenode("/root/main/promotnflagdetl");
  42. misfGridInit(grd_datalist);
  43. misfMsterDetailSet(grd_datalist, null, "TRRPH01201", "N"); //승진구분에 조회
  44. ]]>
  45. </script>
  46. <script type="javascript">
  47. <![CDATA[
  48. //화면 실행시 기준일자에 현제 날짜를 넣는다.
  49. function fInit()
  50. {
  51. setCurDate();
  52. // fInitialize();
  53. }
  54. function setCurDate()
  55. {
  56. var curDate = getCurrentDate().toDate();
  57. model.setValue("/root/send/condition/appfrdt", curDate.getDateFormat('YYYYMMDD'));
  58. model.setValue("/root/send/condition/instcd", getUserInfo("dutplceinstcd"));
  59. }
  60. function fAddDelRow(sStatus)
  61. {
  62. model.resetInstanceNode("/root/main/edit");
  63. if(sStatus == "A")
  64. {
  65. misfGridIUD(grd_datalist, sStatus);
  66. grd_datalist.valueMatrix(grd_datalist.row, grd_datalist.colRef("instcd")) = getUserInfo("dutplceinstcd");
  67. grd_datalist.valueMatrix(grd_datalist.row, grd_datalist.colRef("appfrdt")) = getCurrentDate();
  68. }
  69. else
  70. {
  71. misfGridIUD(grd_datalist, sStatus);
  72. }
  73. model.refresh();
  74. }
  75. function fRetrieve()
  76. {
  77. model.removeNodeset("/root/main/list/detaillist");
  78. model.refresh();
  79. misfMsterDetailRetrieve();
  80. }
  81. function fEditBaseEtc(pRow)
  82. {
  83. if ( pRow > 0 )
  84. {
  85. model.reset("/root/main/edit");
  86. model.setValue("/root/main/edit/grdrow",pRow);
  87. var strValuBase
  88. strValuBase = grd_datalist.valueMatrix(pRow, grd_datalist.colRef("valubase"));
  89. model.setValue("/root/main/edit/valubase",strValuBase);
  90. var strEtc
  91. strEtc = grd_datalist.valueMatrix(pRow, grd_datalist.colRef("etc"));
  92. model.setValue("/root/main/edit/etc",strEtc);
  93. model.refresh();
  94. }
  95. }
  96. function fChangeBaseEtcInfo(para)
  97. {
  98. var strrow ;
  99. var pRow ;
  100. strrow = model.getValue("/root/main/edit/grdrow");
  101. pRow = parseInt(strrow);
  102. var rowStaus = grd_datalist.rowStatus(pRow);
  103. // model.alert("row:" + pRow + "status :" + rowStaus);
  104. if ( para == '1')
  105. {
  106. grd_datalist.valueMatrix(pRow, grd_datalist.colRef("valubase")) = model.getValue("/root/main/edit/valubase");
  107. } else
  108. {
  109. grd_datalist.valueMatrix(pRow, grd_datalist.colRef("etc")) = model.getValue("/root/main/edit/etc");
  110. }
  111. if ( rowStaus != 3 && rowStaus != 1 ) {
  112. grd_datalist.rowStatus(pRow) = 2;
  113. }
  114. model.refresh();
  115. }
  116. ]]>
  117. </script>
  118. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  119. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  120. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  121. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  122. <submission id="TRRPH01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition" resultref="/root/main/detaillist"/>
  123. <submission id="TXRPH01202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/detaillist" resultref="/root/temp"/>
  124. </model>
  125. <script type="javascript">
  126. <![CDATA[
  127. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  128. function fInitialize() {
  129. // model.removeNodeset("/root/main/promotnflag");
  130. model.removeNodeset("/root/main/list/detaillist");
  131. model.reset("/root/main/edit");
  132. // model.resetInstanceNode("/root/send");
  133. model.refresh();
  134. }
  135. ]]>
  136. </script>
  137. </xhtml:head>
  138. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  139. <group id="group5" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
  140. <group id="appdd1111" style="left:0px; top:10px; width:1195; height:35px; vertical-align:top; ">
  141. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:35px; "/>
  142. <caption id="caption21" class="search_name" style="left:15px; top:9px; width:99px; height:17px; ">적용기준일 :</caption>
  143. <script type="javascript" ev:event="xforms-value-changed">
  144. <![CDATA[
  145. btn_search.dispatch("DOMActivate");
  146. ]]>
  147. </script>
  148. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:8px; width:56px; height:22px; ">
  149. <caption>조회</caption>
  150. <script type="javascript" ev:event="DOMActivate">
  151. <![CDATA[
  152. fRetrieve();
  153. //misfSetReadOnlyCol(grd_promotnflaglist, "promotnflag,promotnflagnm,appdd", true); // 읽기전용으로 바꾸는 공통코드
  154. ]]>
  155. </script>
  156. </button>
  157. <line id="line13" class="line_4" style="top:7; x1:1110px; y1:8px; x2:1110px; y2:30px; border-left-style:solid; "/>
  158. <input id="ipt_appfrdt" ref="/root/send/condition/appfrdt" class="input_s_essential" inputtype="date" style="left:120px; top:10px; width:120px; height:19px; "/>
  159. </group>
  160. <caption id="caption48" class="tit_2" style="left:10px; top:55px; width:100px; height:14px; ">평가항목</caption>
  161. <line id="line20" class="line_1" style="x1:0px; y1:70px; x2:1185px; y2:70px; "/>
  162. <datagrid id="grd_datalist" nodeset="/root/main/list/detaillist" caption="기관코드^대분류^중분류^소분류^평가명^평가기준^배점^적용시작일^기타" colsep="^" colwidth="0, 65, 65, 65, 301, 365, 42, 96, 157" dataheight="23" defaultrows="0" ellipsis="true" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:75px; width:1185px; height:495px; ">
  163. <col ref="instcd" visibility="hidden"/>
  164. <col ref="lrgcd" type="input" maxlength="2" style="text-align:center; vertical-align:middle; "/>
  165. <col ref="mldcd" type="input" maxlength="2" style="text-align:center; vertical-align:middle; "/>
  166. <col ref="smlcd" type="input" maxlength="2" style="text-align:center; vertical-align:middle; "/>
  167. <col ref="cdnm" type="input"/>
  168. <col ref="valubase" type="input"/>
  169. <col ref="valuscor" type="input" format="####.#" style="text-align:right; vertical-align:middle; "/>
  170. <col ref="appfrdt" type="inputdate" format="yyyy-mm-dd" style="text-align:center; vertical-align:middle; "/>
  171. <col ref="etc" type="input" style="text-align:left; vertical-align:middle; "/>
  172. <script type="javascript" ev:event="onrowchanged">
  173. <![CDATA[
  174. var cur_row = grd_datalist.row;
  175. fEditBaseEtc(cur_row);
  176. ]]>
  177. </script>
  178. <script type="javascript" ev:event="DOMFocusIn">
  179. <![CDATA[
  180. grd_datalist.dispatch("onrowchanged");
  181. ]]>
  182. </script>
  183. </datagrid>
  184. <button id="btn_promotnflaglist" class="btn2_letter3" style="left:1125px; top:50px; width:53px; height:19px; ">
  185. <caption>행삭제</caption>
  186. <script type="javascript" ev:event="onclick">
  187. <![CDATA[
  188. fAddDelRow("D");
  189. ]]>
  190. </script>
  191. </button>
  192. <button id="button2" class="btn2_letter3" style="left:1070px; top:50px; width:53px; height:19px; ">
  193. <caption>행추가</caption>
  194. <script type="javascript" ev:event="onclick">
  195. <![CDATA[
  196. fAddDelRow("A");
  197. //misfGridIUD(grd_promotnflaglist, "A"); // grd_promotnflaglist에 들어 있는 그리드에 행을 추가한다.[공동코드 = misGridUD]
  198. ]]>
  199. </script>
  200. </button>
  201. <textarea id="textarea1" ref="/root/main/edit/valubase" style="left:0px; top:600px; width:610px; height:130px; "/>
  202. <caption id="caption1" class="tit_2" style="left:0px; top:585px; width:75px; height:13px; ">평가기준</caption>
  203. <caption id="caption2" class="tit_2" style="left:655px; top:585px; width:75px; height:13px; ">기타</caption>
  204. <textarea id="textarea2" ref="/root/main/edit/etc" style="left:660px; top:600px; width:525px; height:130px; "/>
  205. <button id="button1" class="btn4_letter3" style="left:545px; top:576px; width:68px; height:22px; ">
  206. <caption>적용</caption>
  207. <script type="javascript" ev:event="DOMActivate">
  208. <![CDATA[
  209. fChangeBaseEtcInfo("1");
  210. ]]>
  211. </script>
  212. </button>
  213. <button id="button3" class="btn4_letter3" style="left:1117px; top:576px; width:68px; height:22px; ">
  214. <caption>적용</caption>
  215. <script type="javascript" ev:event="DOMActivate">
  216. <![CDATA[
  217. fChangeBaseEtcInfo("2");
  218. ]]>
  219. </script>
  220. </button>
  221. </group>
  222. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  223. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">재임용평가항목관리</caption>
  224. </group>
  225. <group id="group4" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  226. <line id="line75" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25px; "/>
  227. <button id="btn_save" class="btn4_letter2" style="left:1139px; top:3; width:56px; height:22px; ">
  228. <caption>저장</caption>
  229. <script type="javascript" ev:event="DOMActivate">
  230. <![CDATA[
  231. model.reset("/root/send/save/detaillist");
  232. model.setValue("/root/send/save/detaillist", grd_datalist.getUpdateData());
  233. model.refresh();
  234. misfSave("TXRPH01202");
  235. fRetrieve();
  236. ]]>
  237. </script>
  238. </button>
  239. <button id="btn_init" class="btn4_letter3" style="left:1069px; top:3px; width:68px; height:22px; ">
  240. <caption>초기화</caption>
  241. <script type="javascript" ev:event="DOMActivate">
  242. <![CDATA[
  243. var updtdata = getGridUpdateData(grd_datalist);
  244. if (updtdata != "") {
  245. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
  246. if (ret != 6) { // not OK
  247. return;
  248. }
  249. }
  250. fInitialize();
  251. ]]>
  252. </script>
  253. </button>
  254. </group>
  255. </xhtml:body>
  256. </xhtml:html>