SMRPV03800_역량평가POOL등록.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>역량평가POOL등록</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <ablity>
  12. <ablitylist/>
  13. </ablity>
  14. </list>
  15. </main>
  16. <send>
  17. <ablity>
  18. <valuyy/>
  19. <valuclscd/>
  20. <valumdlcd>002</valumdlcd>
  21. <valuclsdetlcd/>
  22. <instcd/>
  23. <deptcd/>
  24. <deptnm/>
  25. </ablity>
  26. <preablity>
  27. </preablity>
  28. <save>
  29. <ablitylist/>
  30. </save>
  31. </send>
  32. <init>
  33. <grd_ABLTYFLAG>
  34. <ABLTYFLAG>
  35. <ABLTYFLAG>
  36. </ABLTYFLAG>
  37. </ABLTYFLAG>
  38. </grd_ABLTYFLAG>
  39. </init>
  40. <hidden/>
  41. <temp/>
  42. </root>
  43. </instance>
  44. <script type="javascript" ev:event="xforms-ready">
  45. <![CDATA[
  46. /* Grid 초기화 */
  47. misfGridInit(grd_ablity);
  48. /* Submit의 ref에 참조 될 Node들은 꼭 Instance에 생성 해야 함.*/
  49. /* Grid의 Mater, Detail관계 설정
  50. misfMsterDetailSet(관계설정할 Grid, Mater가 될 Grid, submit ID, 저장여부) */
  51. misfMsterDetailSet(grd_ablity,null, "TRRPV03801" ,"Y");
  52. var curdate = getCurrentDate();
  53. model.setValue(ipt_valuyy.attribute("ref") , curdate.substr(0, 4));
  54. rpvfComboValuCdList(model.getValue(ipt_valuyy.attribute("ref")) , "ABLTYFLAG,ABLTYDEFINECD,VALUCLSCD", "cmb_valuclsdetlcd,grd_ablity.abltydefinecd,cmb_valuclscd");
  55. model.copyNode("/root/init/grd_ABLTYFLAG/ABLTYFLAG","/root/init/valucd/ABLTYFLAG");
  56. addGridComboItemAll("cmb_valuclsdetlcd","","","above");
  57. model.refresh();
  58. ]]>
  59. </script>
  60. <submission id="TRRPV03801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/ablity" resultref="/root/main/list/ablity"/>
  61. <submission id="TRRPV03802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/preablity" resultref="/root/main/list/preablity"/>
  62. <submission id="TXRPV03801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
  63. <submission id="TXRPV03802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/ablity" resultref="/root/temp"/>
  64. <script type="javascript" ev:event="xforms-model-destruct">
  65. <![CDATA[
  66. if (getGridUpdateData(grd_ablity) != "" ) {
  67. var save_val = messageBox("변경된 자료가 존재 합니다. ", "Q002");
  68. if (save_val == "6") {
  69. btn_save.dispatch("DOMActivate");
  70. }
  71. }
  72. ]]>
  73. </script>
  74. </model>
  75. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  76. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  77. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  78. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  79. <script type="javascript" src="../../../mis/valuationmngtweb/js/RPV001.js"/>
  80. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  81. <script type="javascript">
  82. <![CDATA[
  83. function fGetMaxPrtSeqNo()
  84. {
  85. var maxprtseqno = "";
  86. for(var currow = grd_ablity.fixedRows ; currow < grd_ablity.rows; currow++)
  87. {
  88. if(maxprtseqno < parseInt(grd_ablity.valueMatrix(currow , grd_ablity.colRef("prtseqno"))))
  89. maxprtseqno = grd_ablity.valueMatrix(currow , grd_ablity.colRef("prtseqno"));
  90. }
  91. if(maxprtseqno.length== 0)maxprtseqno = 1;
  92. else maxprtseqno = parseInt(maxprtseqno) + 1;
  93. return maxprtseqno;
  94. }
  95. function fGetPreIdxCopy()
  96. {
  97. if(!isRequiredControls("ipt_valuyy")) return;
  98. if( messageBox("전년도 복사시 " + ipt_valuyy.value + "년도의 Data는 모두 지워집니다.", "Q003") != '6') return;
  99. submit("TXRPV03802");
  100. btn_search.dispatch("DOMActivate");
  101. // if ( !isRequiredControls("ipt_valuyy" , "cmb_valuclsdetlcd") ) {
  102. // return false;
  103. // }
  104. // var curyear = model.getValue(ipt_valuyy.attribute("ref"));
  105. // var preyear = parseInt(curyear) -1;
  106. // model.copyNode("/root/send/preablity", "root/send/ablity");
  107. //
  108. // model.makeNode("/root/send/preablity/useyn");
  109. // model.setValue("/root/send/preablity/valuyy",preyear);
  110. // model.setValue("/root/send/preablity/useyn","Y");
  111. // submit("TRRPV03802");
  112. //
  113. // var node = "/root/main/list/preablity";
  114. // var nodename = "ablitylist";
  115. // var codynode = instance1.selectNodes(node + "/*");
  116. // var addRow = grd_ablity.rows - grd_ablity.fixedRows;
  117. // var duplchk = false;
  118. //
  119. // if(model.getValue(grd_ablity.nodeset + "[" + addRow + "]/abltydefinecd").length > 0)addRow = addRow + 1;
  120. // for (var j = 1; j <= codynode.length ; j++) {
  121. // duplchk = false;
  122. // for(var row = grd_ablity.fixedRows ; row < grd_ablity.rows ; row++)
  123. // {
  124. // if(grd_ablity.valueMatrix(row , grd_ablity.colRef("corelang")) == model.getValue(node +"/" + nodename + "[" + j + "]/corelang") &&
  125. // grd_ablity.valueMatrix(row , grd_ablity.colRef("actidx")) == model.getValue(node +"/" + nodename + "[" + j + "]/actidx"))
  126. // {
  127. // duplchk = true;
  128. // break;
  129. // }
  130. // }
  131. //
  132. // if(duplchk == false)
  133. // {
  134. // if(addRow == 0 || addRow > grd_ablity.rows - grd_ablity.fixedRows)
  135. // {
  136. // misfGridIUD(grd_ablity,"A");
  137. // addRow = grd_ablity.rows - grd_ablity.fixedRows;
  138. //
  139. // model.setValue(grd_ablity.attribute("nodeset")+"["+addRow+"]/valuyy", model.getValue(ipt_valuyy.attribute("ref")));
  140. // model.setValue(grd_ablity.attribute("nodeset")+"["+addRow+"]/prtseqno", fGetMaxPrtSeqNo());
  141. // model.setValue(grd_ablity.attribute("nodeset")+"["+addRow+"]/useyn", "Y");
  142. // model.setValue(grd_ablity.attribute("nodeset")+"["+addRow+"]/valuclscd", model.getValue("/root/send/ablity/valuclscd"));
  143. // model.setValue(grd_ablity.attribute("nodeset")+"["+addRow+"]/valumdlcd", model.getValue("/root/send/ablity/valumdlcd"));
  144. // model.setValue(grd_ablity.attribute("nodeset")+"["+addRow+"]/valuclsdetlcd", model.getValue(cmb_valuclsdetlcd.attribute("ref")));
  145. // }
  146. // model.setValue(grd_ablity.nodeset + "[" + addRow + "]/abltydefinecd" , model.getValue(node +"/" + nodename + "[" + j + "]/abltydefinecd"));
  147. // model.setValue(grd_ablity.nodeset + "[" + addRow + "]/corelangcd" , model.getValue(node +"/" + nodename + "[" + j + "]/corelangcd"));
  148. // model.setValue(grd_ablity.nodeset + "[" + addRow + "]/corelang" , model.getValue(node +"/" + nodename + "[" + j + "]/corelang"));
  149. // model.setValue(grd_ablity.nodeset + "[" + addRow + "]/actidx" , model.getValue(node +"/" + nodename + "[" + j + "]/actidx"));
  150. // addRow = addRow + 1;
  151. // }
  152. // }
  153. // model.refresh();
  154. }
  155. ]]>
  156. </script>
  157. </xhtml:head>
  158. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  159. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  160. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">역량평가POOL등록</caption>
  161. </group>
  162. <group id="group2" scroll="auto" style="left:0px; top:38; width:1195px; height:744; ">
  163. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0; top:10; width:1195; height:35px; "/>
  164. <line id="line13" class="line_4" style="x1:1110px; y1:16px; x2:1110px; y2:38px; "/>
  165. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:16px; width:56px; height:22px; ">
  166. <caption>조회</caption>
  167. <script type="javascript" ev:event="DOMActivate">
  168. <![CDATA[
  169. if ( !isRequiredControls("ipt_valuyy" ) ) {
  170. return false;
  171. }
  172. misfMsterDetailRetrieve();
  173. ]]>
  174. </script>
  175. </button>
  176. <line id="line2" class="line_1" style="x1:0px; y1:69px; x2:1195px; y2:69px; "/>
  177. <button id="btn_insert" class="btn2_letter3" style="left:1083px; top:48px; width:53px; height:19px; ">
  178. <caption>행추가</caption>
  179. <script type="javascript" ev:event="DOMActivate">
  180. <![CDATA[
  181. if ( !isRequiredControls("ipt_valuyy") ) {
  182. return false;
  183. }
  184. misfGridIUD(grd_ablity, "A");
  185. model.setValue(grd_ablity.attribute("nodeset")+"["+(grd_ablity.row - grd_ablity.fixedRows + 1)+"]/valuyy", model.getValue(ipt_valuyy.attribute("ref")));
  186. model.setValue(grd_ablity.attribute("nodeset")+"["+(grd_ablity.row - grd_ablity.fixedRows + 1)+"]/prtseqno", fGetMaxPrtSeqNo());
  187. model.setValue(grd_ablity.attribute("nodeset")+"["+(grd_ablity.row - grd_ablity.fixedRows + 1)+"]/useyn", "Y");
  188. model.setValue(grd_ablity.attribute("nodeset")+"["+(grd_ablity.row - grd_ablity.fixedRows + 1)+"]/valuclscd", model.getValue("/root/send/ablity/valuclscd"));
  189. model.setValue(grd_ablity.attribute("nodeset")+"["+(grd_ablity.row - grd_ablity.fixedRows + 1)+"]/valumdlcd", model.getValue("/root/send/ablity/valumdlcd"));
  190. model.setValue(grd_ablity.attribute("nodeset")+"["+(grd_ablity.row - grd_ablity.fixedRows + 1)+"]/valuclsdetlcd", model.getValue(cmb_valuclsdetlcd.attribute("ref")));
  191. ]]>
  192. </script>
  193. </button>
  194. <button id="btn_delete" class="btn2_letter3" style="left:1138px; top:48px; width:53px; height:19px; ">
  195. <caption>행삭제</caption>
  196. <script type="javascript" ev:event="DOMActivate">
  197. <![CDATA[
  198. misfGridIUD(grd_ablity, "D");
  199. ]]>
  200. </script>
  201. </button>
  202. <select1 id="cmb_valuclsdetlcd" ref="/root/send/ablity/valuclsdetlcd" class="combo_s_essential" appearance="minimal" style="left:631px; top:18px; width:219px; height:19px; ">
  203. <choices>
  204. <itemset>
  205. <label/>
  206. <value/>
  207. </itemset>
  208. </choices>
  209. </select1>
  210. <caption id="cap_valuclsdetlcd" class="search_name" style="left:575px; top:19px; width:61px; height:17px; vertical-align:middle; ">역량구분 :</caption>
  211. <caption id="caption1" class="tit_2" style="left:0px; top:54px; width:230px; height:14px; vertical-align:middle; ">
  212. <![CDATA[>역량평가POOL등록]]>
  213. </caption>
  214. <caption id="cap_valuyy" class="search_name" style="left:15px; top:19px; width:100px; height:17px; vertical-align:middle; ">기준년도 :</caption>
  215. <input id="ipt_valuyy" ref="/root/send/ablity/valuyy" class="input_s_essential" inputtype="date" format="yyyy" style="left:103px; top:18px; width:125px; height:19px; "/>
  216. <datagrid id="grd_ablity" nodeset="/root/main/list/ablity/ablitylist" caption="역량구분^역량정의^핵심어명^행동지표^사용" colsep="^" colwidth="100, 318, 199, 508, 31, 100, 100, 100, 100, 100" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:75px; width:1195px; height:665px; ">
  217. <col class="gridcombo" ref="valuclsdetlcd" type="combo" _key="true">
  218. <choices>
  219. <itemset nodeset="/root/init/grd_ABLTYFLAG/ABLTYFLAG/ABLTYFLAG">
  220. <label ref="valucdnm"/>
  221. <value ref="valucd"/>
  222. </itemset>
  223. </choices>
  224. </col>
  225. <col class="gridcombo" ref="abltydefinecd" type="combo" _key="true">
  226. <choices>
  227. <itemset>
  228. <label/>
  229. <value/>
  230. </itemset>
  231. </choices>
  232. </col>
  233. <col ref="corelang" type="input" _key="true"/>
  234. <col ref="actidx" type="input"/>
  235. <col checkvalue="Y,N" ref="useyn" type="checkbox"/>
  236. <col ref="prtseqno" type="input" visibility="hidden" format="#,###" maxlength="3" style="text-align:right; "/>
  237. <col ref="corelangcd" type="input" visibility="hidden"/>
  238. <col ref="valuyy" visibility="hidden"/>
  239. <col ref="valuclscd" visibility="hidden"/>
  240. <col ref="valumdlcd" visibility="hidden"/>
  241. </datagrid>
  242. <select1 id="cmb_valuclscd" ref="/root/send/ablity/valuclscd" appearance="minimal" style="left:360px; top:18px; width:180px; height:19px; ">
  243. <choices>
  244. <itemset>
  245. <label/>
  246. <value/>
  247. </itemset>
  248. </choices>
  249. </select1>
  250. <caption id="cap_valuclscd" class="search_name" style="left:270px; top:19px; width:100px; height:17px; vertical-align:middle; ">평가그룹</caption>
  251. </group>
  252. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  253. <button id="btn_save" class="btn4_letter2" style="left:1139px; top:3px; width:56px; height:22px; ">
  254. <caption>저장</caption>
  255. <script type="javascript" ev:event="DOMActivate">
  256. <![CDATA[
  257. if(!checkKeyColumn("grd_ablity")) return;
  258. misfSave("TXRPV03801");
  259. ]]>
  260. </script>
  261. </button>
  262. <line id="line11" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  263. <button id="btn_init" class="btn4_letter3" style="left:1069px; top:3px; width:68px; height:22px; ">
  264. <caption>초기화</caption>
  265. <script type="javascript" ev:event="DOMActivate">
  266. <![CDATA[
  267. window.reload() ;
  268. ]]>
  269. </script>
  270. </button>
  271. <button id="btn_preidxcopy" class="btn4_letter5" style="left:977px; top:3px; width:92px; height:22px; ">
  272. <caption>전년도복사</caption>
  273. <script type="javascript" ev:event="DOMActivate">
  274. <![CDATA[
  275. fGetPreIdxCopy();
  276. ]]>
  277. </script>
  278. </button>
  279. </group>
  280. </xhtml:body>
  281. </xhtml:html>