SMRPV03700_공유지표(S-KPI)등록.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  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. <rpvdskpilist/>
  11. </main>
  12. <send>
  13. <valuyy/>
  14. <valuclscd/>
  15. <valumdlcd/>
  16. <valuclsdetlcd/>
  17. <numberflag/>
  18. </send>
  19. <init/>
  20. <temp/>
  21. </root>
  22. </instance>
  23. <submission id="TRRPV03701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rpvdskpilist"/>
  24. <submission id="TXRPV03701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/rpvdskpilist" resultref="/root/temp"/>
  25. <submission id="TXRPV09002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  26. <script type="javascript" ev:event="xforms-model-destruct">
  27. <![CDATA[
  28. if (DUTY_VALU_YN == "Y" ) {
  29. if (getUserInfo("dutplceinstcd") == "001" ) {
  30. if (getGridUpdateData(grd_rpvdskpilist) != "" ) {
  31. var save_val = messageBox("변경된 자료가 존재 합니다. ", "Q002");
  32. if (save_val == "6") {
  33. btn_save.dispatch("DOMActivate");
  34. }
  35. }
  36. }
  37. }
  38. ]]>
  39. </script>
  40. </model>
  41. <script type="javascript" ev:event="xforms-ready">
  42. <![CDATA[
  43. //화면 Control을 초기화한다
  44. fInitialize();
  45. model.refresh();
  46. ]]>
  47. </script>
  48. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  49. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  50. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  51. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  52. <script type="javascript" src="../../../mis/valuationmngtweb/js/RPV001.js"/>
  53. <script type="javascript">
  54. <![CDATA[
  55. function fInitialize()
  56. {
  57. // 그리드 초기화
  58. misfGridInit(grd_rpvdskpilist);
  59. misfMsterDetailSet(grd_rpvdskpilist,null, "TRRPV03701" ,"Y");
  60. // 기본 조회 정보 입력.
  61. model.setValue(ipt_valuyy.attribute("ref") , getCurrentDate().toDate().getDateFormat("YYYY"));
  62. model.setValue(ipt_valuclscd.attribute("ref"), "01");
  63. model.setValue(ipt_valumdlcd.attribute("ref"), "001");
  64. model.setValue(ipt_valuclsdetlcd.attribute("ref"), "002");
  65. //화면번호 설정. 전년도 복사시 테이블을 구분하는 값이 됩니다.
  66. model.setValue("/root/send/numberflag", "03700");
  67. var instcd = getUserInfo("dutplceinstcd");
  68. var emplno = getUserInfo("userid");
  69. rpvfGetUserAuth(instcd,emplno);
  70. // if(DUTY_VALU_YN =='Y'){
  71. // cmb_instcd.disabled = false;
  72. // btn_lastcnfm.visible = true;
  73. // }else{
  74. // cmb_instcd.disabled = true;
  75. // btn_lastcnfm.visible = false;
  76. // }
  77. if (DUTY_VALU_YN == "Y" ) {
  78. if (getUserInfo("dutplceinstcd") == "001" ) {
  79. btn_copy.visible = true;
  80. btn_save.visible = true;
  81. btn_add.visible = true;
  82. btn_del.visible = true;
  83. btn_search.visible = true;
  84. }
  85. else {
  86. btn_copy.visible = false;
  87. btn_save.visible = false;
  88. btn_add.visible = false;
  89. btn_del.visible = false;
  90. btn_search.visible = true;
  91. }
  92. }
  93. else {
  94. btn_copy.visible = false;
  95. btn_save.visible = false;
  96. btn_add.visible = false;
  97. btn_del.visible = false;
  98. btn_search.visible = false;
  99. }
  100. rpvfComboValuCdList(ipt_valuyy.value , "IDXFLAG,SMALLCLSCD", "grd_rpvdskpilist.idxflag,grd_rpvdskpilist.smallclscd");
  101. }
  102. ]]>
  103. </script>
  104. </xhtml:head>
  105. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  106. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  107. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">공유지표(S-KPI) POOL 등록</caption>
  108. </group>
  109. <group id="group2" scroll="auto" style="left:0px; top:38; width:1195px; height:744; ">
  110. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0; top:10; width:1195; height:35px; "/>
  111. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:16px; width:56px; height:22px; ">
  112. <caption>조회</caption>
  113. <script type="javascript" ev:event="DOMActivate">
  114. <![CDATA[
  115. if(!isRequiredControls("ipt_valuyy")) return;
  116. submit("TRRPV03701");
  117. misfSetReadOnlyCol(grd_rpvdskpilist, "valuyy,valuclscd,valumdlcd,valuclsdetlcd,valuitemcd", true);
  118. grd_rpvdskpilist.select(grd_rpvdskpilist.rows, grd_rpvdskpilist.cols) = true;
  119. model.refresh();
  120. ]]>
  121. </script>
  122. </button>
  123. <line id="line13" class="line_4" style="x1:1110px; y1:16px; x2:1110px; y2:38px; "/>
  124. <button id="btn_add" class="btn2_letter3" visibility="hidden" style="left:1083px; top:49px; width:53px; height:19px; ">
  125. <caption>행추가</caption>
  126. <script type="javascript" ev:event="DOMActivate">
  127. <![CDATA[
  128. if(!isRequiredControls("ipt_valuyy")) return;
  129. misfGridIUD(grd_rpvdskpilist, "A");
  130. // 기본정보 입력!!
  131. grd_rpvdskpilist.valueMatrix(grd_rpvdskpilist.row, grd_rpvdskpilist.colRef("valuyy")) = ipt_valuyy.value;
  132. grd_rpvdskpilist.valueMatrix(grd_rpvdskpilist.row, grd_rpvdskpilist.colRef("valuclscd")) = ipt_valuclscd.value;
  133. grd_rpvdskpilist.valueMatrix(grd_rpvdskpilist.row, grd_rpvdskpilist.colRef("valumdlcd")) = ipt_valumdlcd.value;
  134. grd_rpvdskpilist.valueMatrix(grd_rpvdskpilist.row, grd_rpvdskpilist.colRef("valuclsdetlcd")) = ipt_valuclsdetlcd.value;
  135. model.refresh();
  136. ]]>
  137. </script>
  138. </button>
  139. <button id="btn_del" class="btn2_letter3" visibility="hidden" style="left:1138px; top:49px; width:53px; height:19px; ">
  140. <caption>행삭제</caption>
  141. <script type="javascript" ev:event="DOMActivate">
  142. <![CDATA[
  143. misfGridIUD(grd_rpvdskpilist, "D");
  144. if(grd_rpvdskpilist.rowStatus(grd_rpvdskpilist.row) == "1")
  145. {
  146. grd_rpvdskpilist.row = grd_rpvdskpilist.rows - 1;
  147. }
  148. model.refresh();
  149. ]]>
  150. </script>
  151. </button>
  152. <input id="ipt_valuyy" ref="/root/send/valuyy" class="input_s_essential" inputtype="date" format="yyyy" style="left:105px; top:17px; width:80px; height:19px; ">
  153. <script type="javascript" ev:event="xforms-value-changed">
  154. <![CDATA[
  155. if(!isRequiredControls("ipt_valuyy")) return;
  156. model.removeNodeset(grd_rpvdskpilist.nodeset);
  157. model.removeNodeset("/root/init/valucd/IDXFLAG");
  158. model.refresh();
  159. rpvfComboValuCdList(ipt_valuyy.value , "IDXFLAG,SMALLCLSCD", "grd_rpvdskpilist.idxflag,grd_rpvdskpilist.smallclscd");
  160. btn_search.dispatch("DOMActivate");
  161. ]]>
  162. </script>
  163. </input>
  164. <caption id="cap_valuyy" class="search_name" style="left:15px; top:18px; width:90px; height:17px; vertical-align:middle; ">조회년도 :</caption>
  165. <datagrid id="grd_rpvdskpilist" nodeset="/root/main/rpvdskpilist" caption="구분^소분류코드^소분류명^지표코드^업무구분^성과지표^측정방법^출력순서^지표입력^사용^평가년도^평가분류코드^평가중분류^평가분류세부|구분^소분류코드^소분류명^지표코드^업무구분^성과지표^측정방법^출력순서^지표입력^사용^평가년도^평가분류코드^평가중분류^평가분류세부" colsep="^" colwidth="71, 119, 12, 11, 238, 259, 397, 20, 37, 37, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:75px; width:1195px; height:665px; ">
  166. <col class="gridcombo" ref="idxflag" type="combo" _key="true" style="text-align:center; ">
  167. <choices>
  168. <itemset>
  169. <label/>
  170. <value/>
  171. </itemset>
  172. </choices>
  173. </col>
  174. <col class="gridcombo" ref="smallclscd" type="combo" _key="true" style="text-align:center; ">
  175. <choices>
  176. <itemset>
  177. <label/>
  178. <value/>
  179. </itemset>
  180. </choices>
  181. </col>
  182. <col ref="smallclsnm" type="input" visibility="hidden" style="text-align:center; "/>
  183. <col ref="idxcd" visibility="hidden" style="text-align:center; "/>
  184. <col ref="idxcdnm" type="input" style="text-align:left; vertical-align:middle; "/>
  185. <col ref="rsltidx" type="input" visibility="visible" style="text-align:left; "/>
  186. <col ref="inspmthd" type="input" style="text-align:left; "/>
  187. <col ref="prtseqno" type="input" visibility="hidden" format="999" maxlength="3" style="text-align:center; "/>
  188. <col checkvalue="Y,N" ref="idxinputyn" type="checkbox"/>
  189. <col checkvalue="Y,N" ref="useyn" type="checkbox"/>
  190. <col ref="valuyy" visibility="hidden" _key="true"/>
  191. <col ref="valuclscd" visibility="hidden" _key="true"/>
  192. <col ref="valumdlcd" visibility="hidden" _key="true"/>
  193. <col ref="valuclsdetlcd" visibility="hidden" _key="true"/>
  194. </datagrid>
  195. <caption id="caption1" class="tit_2" style="left:0px; top:54px; width:230px; height:14px; vertical-align:middle; ">공유지표(S-KPI) POOL 등록 List</caption>
  196. <line id="line2" class="line_1" style="x1:0px; y1:69px; x2:1195px; y2:69px; "/>
  197. <input id="ipt_valuclscd" ref="/root/send/valuclscd" visibility="hidden" style="left:200px; top:15px; width:100px; height:19px; "/>
  198. <input id="ipt_valumdlcd" ref="/root/send/valumdlcd" visibility="hidden" style="left:310px; top:15px; width:100px; height:19px; "/>
  199. <input id="ipt_valuclsdetlcd" ref="/root/send/valuclsdetlcd" visibility="hidden" style="left:425px; top:15px; width:100px; height:19px; "/>
  200. </group>
  201. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  202. <line id="line6" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25; "/>
  203. <button id="btn_init" class="btn4_letter3" visibility="visible" style="left:1124px; top:3px; width:68px; height:22px; ">
  204. <caption>초기화</caption>
  205. <script type="javascript" ev:event="DOMActivate">
  206. <![CDATA[
  207. window.reload() ;
  208. ]]>
  209. </script>
  210. </button>
  211. <button id="btn_save" class="btn4_letter2" visibility="hidden" style="left:1066px; top:3px; width:56px; height:22px; ">
  212. <caption>저장</caption>
  213. <script type="javascript" ev:event="DOMActivate">
  214. <![CDATA[
  215. var updtdata = getGridUpdateData(grd_rpvdskpilist);
  216. if (updtdata == "")
  217. {
  218. messageBox("변경된 데이터가","I004");
  219. return;
  220. }
  221. if(!checkKeyColumn("grd_rpvdskpilist")) return;
  222. rtn = messageBox("", "Q002");
  223. if(rtn != "6" ) return false;
  224. misfSave("TXRPV03701");
  225. btn_search.dispatch("DOMActivate");
  226. ]]>
  227. </script>
  228. </button>
  229. <button id="btn_copy" class="btn4_letter5" visibility="hidden" style="left:972px; top:3px; width:92px; height:22px; ">
  230. <caption>전년도 복사</caption>
  231. <script type="javascript" ev:event="DOMActivate">
  232. <![CDATA[
  233. if(!isRequiredControls("ipt_valuyy")) return;
  234. if( messageBox( ipt_valuyy.value +"년도의 Data가 모두 삭제되며\n" + (ipt_valuyy.value - 1) +"년도의 Data를 가져오게됩니다.\n","Q003") == 6 )
  235. {
  236. submit("TXRPV09002");
  237. btn_search.dispatch("DOMActivate");
  238. }else{
  239. return;
  240. }
  241. ]]>
  242. </script>
  243. </button>
  244. </group>
  245. </xhtml:body>
  246. </xhtml:html>