SMRPV03500_내부고객만족도평가자기준등록.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  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>내부고객만족도평가자등록</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <incust>
  11. <incustlist/>
  12. </incust>
  13. <deptincust>
  14. <deptincustlist/>
  15. </deptincust>
  16. <printdata>
  17. <printlist/>
  18. </printdata>
  19. </main>
  20. <send>
  21. <save>
  22. <incustlist/>
  23. </save>
  24. <deptincust>
  25. <valuyy/>
  26. <instcd/>
  27. <valuclscd>01</valuclscd>
  28. <valumdlcd>001</valumdlcd>
  29. <valuclsdetlcd>001</valuclsdetlcd>
  30. <fstscndhfyyflag/>
  31. </deptincust>
  32. <incust>
  33. <valuyy/>
  34. <instcd/>
  35. <valuclscd/>
  36. <valumdlcd/>
  37. <valuclsdetlcd/>
  38. <fstscndhfyyflag/>
  39. <deptcd/>
  40. </incust>
  41. </send>
  42. <temp/>
  43. <hidden/>
  44. </root>
  45. </instance>
  46. <script type="javascript" ev:event="xforms-ready">
  47. <![CDATA[
  48. /* Grid 초기화 */
  49. misfGridInit(grd_incustdeptlist);
  50. misfGridInit(grd_incustlist);
  51. /* Submit의 ref에 참조 될 Node들은 꼭 Instance에 생성 해야 함.*/
  52. /* Grid의 Mater, Detail관계 설정
  53. misfMsterDetailSet(관계설정할 Grid, Mater가 될 Grid, submit ID, 저장여부) */
  54. misfMsterDetailSet(grd_incustdeptlist,null, "TRRPV03502" ,"N");
  55. misfMsterDetailSet(grd_incustlist,grd_incustdeptlist, "TRRPV03501" ,"Y");
  56. var curdate = getCurrentDate();
  57. model.setValue(ipt_valuyy.attribute("ref") , curdate.substr(0, 4));
  58. rpvfComboInstCdList("cmb_instcd,grd_incustlist.valuinstcd");
  59. rpvfComboValuCdList(model.getValue(ipt_valuyy.attribute("ref")),"INOUTFLAG,FSTSCNDHFYYFLAG","grd_incustdeptlist.inoutflag,cmb_fstscndhfyyflag");
  60. model.setValue(cmb_instcd.attribute("ref") ,getUserInfo("dutplceinstcd"));
  61. addGridComboItemAll("cmb_instcd","전체","","above");
  62. model.setValue(cmb_instcd.attribute("ref") ,getUserInfo("dutplceinstcd"));
  63. //rpvfComboDisableYn("cmb_instcd","");
  64. model.refresh();
  65. ]]>
  66. </script>
  67. <submission id="TRRPV03502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptincust" resultref="/root/main/deptincust"/>
  68. <submission id="TRRPV03501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/incust" resultref="/root/main/incust"/>
  69. <submission id="TXRPV03501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
  70. <submission id="TXRPV03502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptincust" resultref="/root/hidden/temp"/>
  71. <submission id="TRRPV03505" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptincust" resultref="/root/main/incust"/>
  72. <script type="javascript" ev:event="xforms-model-destruct">
  73. <![CDATA[
  74. if (getGridUpdateData(grd_incustlist) != "" ) {
  75. var save_val = messageBox("변경된 자료가 존재 합니다. ", "Q002");
  76. if (save_val == "6") {
  77. btn_save.dispatch("DOMActivate");
  78. }
  79. }
  80. ]]>
  81. </script>
  82. <submission id="TRRPV03503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptincust" resultref="/root/main/printdata/printlist"/>
  83. </model>
  84. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  85. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  86. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  87. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  88. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  89. <script type="javascript" src="../../../mis/valuationmngtweb/js/RPV001.js"/>
  90. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  91. </xhtml:head>
  92. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  93. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  94. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">내부고객 만족도 평가자 등록</caption>
  95. </group>
  96. <group id="group2" scroll="auto" style="left:0px; top:38; width:1195px; height:744; ">
  97. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0; top:10; width:1195; height:35px; "/>
  98. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:16px; width:56px; height:22px; ">
  99. <caption>조회</caption>
  100. <script type="javascript" ev:event="DOMActivate">
  101. <![CDATA[
  102. // if ( !isRequiredControls("ipt_valuyy", "cmb_instcd","cmb_fstscndhfyyflag") ) {
  103. // return false;
  104. // }
  105. misfMsterDetailRetrieve();
  106. ]]>
  107. </script>
  108. </button>
  109. <line id="line13" class="line_4" style="x1:1110px; y1:16px; x2:1110px; y2:38px; "/>
  110. <datagrid id="grd_incustdeptlist" nodeset="/root/main/deptincust/deptincustlist" caption="기관^부서명^내외부구분^상하반기구분^평가년도^기관코드^평가분류코드^평가중분류코드^평가분류세부코드^부서코드" colsep="^" colwidth="147, 162, 88, 95, 42, 31, 29, 26, 35, 39" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:75px; width:440px; height:665px; ">
  111. <col ref="instnm"/>
  112. <col ref="deptnm"/>
  113. <col class="gridcombo" disabled="true" ref="inoutflag" type="combo">
  114. <choices>
  115. <itemset>
  116. <label/>
  117. <value/>
  118. </itemset>
  119. </choices>
  120. </col>
  121. <col ref="fstscndhfyyflag" visibility="hidden"/>
  122. <col ref="valuyy" visibility="hidden"/>
  123. <col ref="instcd" visibility="hidden"/>
  124. <col ref="valuclscd" visibility="hidden"/>
  125. <col ref="valumdlcd" visibility="hidden"/>
  126. <col ref="valuclsdetlcd" visibility="hidden"/>
  127. <col ref="deptcd" visibility="hidden"/>
  128. <script type="javascript" ev:event="onrowchanged">
  129. <![CDATA[
  130. misfMsterDetailRetrieve();
  131. var inoutflag = grd_incustdeptlist.valueMatrix(grd_incustdeptlist.row, grd_incustdeptlist.colRef("inoutflag"));
  132. if (inoutflag == "O") {
  133. btn_addgrdincustlist.disabled = true;
  134. btn_delgrdincustlist.disabled = true;
  135. }
  136. else {
  137. btn_addgrdincustlist.disabled = false;
  138. btn_delgrdincustlist.disabled = false;
  139. }
  140. ]]>
  141. </script>
  142. </datagrid>
  143. <caption id="caption4" class="tit_2" style="left:5px; top:54px; width:230px; height:14px; vertical-align:middle; ">내부고객 만족도 피평가 부서 List</caption>
  144. <line id="line1" class="line_1" style="x1:0px; y1:69px; x2:440px; y2:69px; "/>
  145. <button id="btn_addgrdincustlist" class="btn2_letter3" style="left:1083px; top:48px; width:53px; height:19px; ">
  146. <caption>행추가</caption>
  147. <script type="javascript" ev:event="DOMActivate">
  148. <![CDATA[
  149. if(!checkKeyColumn("grd_incustlist")) return;
  150. misfGridIUD(grd_incustlist, "A");
  151. ]]>
  152. </script>
  153. </button>
  154. <button id="btn_delgrdincustlist" class="btn2_letter3" style="left:1138px; top:48px; width:53px; height:19px; ">
  155. <caption>행삭제</caption>
  156. <script type="javascript" ev:event="DOMActivate">
  157. <![CDATA[
  158. misfGridIUD(grd_incustlist, "D");
  159. ]]>
  160. </script>
  161. </button>
  162. <input id="ipt_valuyy" ref="/root/send/deptincust/valuyy" class="input_s_essential" inputtype="date" format="yyyy" style="left:105px; top:17px; width:80px; height:19px; ">
  163. <script type="javascript" ev:event="xforms-value-changed">
  164. <![CDATA[
  165. var instcd = cmb_instcd.value;
  166. if( getStringLength(ipt_valuyy.value) == "4" ) {
  167. rpvfComboInstCdList("cmb_instcd",ipt_valuyy.value);
  168. cmb_instcd.value = instcd;
  169. model.refresh();
  170. }
  171. ]]>
  172. </script>
  173. </input>
  174. <caption id="caption8" class="search_name" style="left:15px; top:18px; width:90px; height:17px; vertical-align:middle; ">기준년도 :</caption>
  175. <select1 id="cmb_instcd" ref="/root/send/deptincust/instcd" class="combo_s_essential" appearance="minimal" style="left:331px; top:18px; width:159px; height:19px; ">
  176. <choices>
  177. <itemset>
  178. <label/>
  179. <value/>
  180. </itemset>
  181. </choices>
  182. </select1>
  183. <caption id="caption15" class="search_name" style="left:270px; top:19px; width:61px; height:17px; vertical-align:middle; ">기관 :</caption>
  184. <datagrid id="grd_incustlist" nodeset="/root/main/incust/incustlist" caption="기관^부서명^직책^사원번호^사원번호^성명^평가년도^기관코드^평가분류코드^평가중분류코드^평가분류세부코드^부서코드^상하반기구분" colsep="^" colwidth="195, 190, 124, 79, 20, 93, 48, 48, 28, 32, 33, 25, 100, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:445px; top:75px; width:750px; height:665px; ">
  185. <col disabled="true" ref="valuinstcd" type="combo">
  186. <choices>
  187. <itemset>
  188. <label/>
  189. <value/>
  190. </itemset>
  191. </choices>
  192. </col>
  193. <col ref="deptnm"/>
  194. <col ref="jobrespnm"/>
  195. <col ref="valupsnemplno" _key="true"/>
  196. <col ref="popup" type="inputbutton"/>
  197. <col ref="emplnm"/>
  198. <col ref="valuyy" visibility="hidden"/>
  199. <col ref="valuclscd" visibility="hidden"/>
  200. <col ref="valumdlcd" visibility="hidden"/>
  201. <col ref="valuclsdetlcd" visibility="hidden"/>
  202. <col ref="deptcd" visibility="hidden"/>
  203. <col ref="fstscndhfyyflag" visibility="hidden"/>
  204. <col ref="instcd" visibility="hidden"/>
  205. <col ref="valudeptcd" visibility="hidden"/>
  206. <script type="javascript" ev:event="xforms-value-changed">
  207. <![CDATA[
  208. if(grd_incustlist.col == grd_incustlist.colRef("valupsnemplno"))
  209. {
  210. rpbfValidationCheck("EMPLNO", "valupsnemplno,emplnm");
  211. }
  212. model.refresh();
  213. ]]>
  214. </script>
  215. <script type="javascript" ev:event="onbuttonclick">
  216. <![CDATA[
  217. model.removenode("/root/copynode");
  218. model.removenode(gvParamPath +"/SMRPV98300_/SMRPV98300_value");
  219. model.makeNode("/root/copynode");
  220. modal("SMRPV98300","","","","","/root/temp/source", "/root/target" );
  221. var cur_row = grd_incustlist.row;
  222. var CSV = model.getValue(gvParamPath +"/SMRPV98300_/SMRPV98300_value");
  223. setCSVToNode("/root/copynode", CSV, "custempllist");
  224. var node = "/root/copynode";
  225. var nodename = "custempllist";
  226. var codynode = instance1.selectNodes(node + "/*");
  227. grd_incustlist.valueMatrix(grd_incustlist.row, grd_incustlist.colRef("valupsnemplno")) = model.getValue(node +"/" + nodename + "/emplno");
  228. grd_incustlist.valueMatrix(grd_incustlist.row, grd_incustlist.colRef("emplnm")) = model.getValue(node +"/" + nodename + "/emplnm");
  229. grd_incustlist.valueMatrix(grd_incustlist.row, grd_incustlist.colRef("valuinstcd")) = model.getValue(node +"/" + nodename + "/dutinst");
  230. grd_incustlist.valueMatrix(grd_incustlist.row, grd_incustlist.colRef("valudeptcd")) = model.getValue(node +"/" + nodename + "/dutunitcd");
  231. grd_incustlist.valueMatrix(grd_incustlist.row, grd_incustlist.colRef("deptnm")) = model.getValue(node +"/" + nodename + "/dutunitnm");
  232. // if(grd_incustlist.col == grd_incustlist.colRef("valupsnemplno")){
  233. // rpbfOpenPopUpList("SPRPB00101", grd_incustlist, "valupsnemplno,emplnm","","N","N","emplno,emplnm");
  234. // }
  235. model.refresh();
  236. ]]>
  237. </script>
  238. </datagrid>
  239. <caption id="caption1" class="tit_2" style="left:445px; top:54px; width:230px; height:13px; vertical-align:middle; ">내부고객 만족도 평가자 List</caption>
  240. <line id="line2" class="line_1" style="x1:445px; y1:69px; x2:1195px; y2:69px; "/>
  241. <select1 id="cmb_fstscndhfyyflag" ref="/root/send/deptincust/fstscndhfyyflag" class="combo_s_essential" appearance="minimal" style="left:652px; top:17px; width:110px; height:19px; ">
  242. <choices>
  243. <itemset>
  244. <label/>
  245. <value/>
  246. </itemset>
  247. </choices>
  248. </select1>
  249. <caption id="caption2" class="search_name" style="left:570px; top:18px; width:81px; height:17px; vertical-align:middle; ">상하반기:</caption>
  250. </group>
  251. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  252. <line id="line6" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25; "/>
  253. <button id="btn_init" class="btn4_letter3" style="left:1064px; top:3px; width:68px; height:22px; ">
  254. <caption>초기화</caption>
  255. <script type="javascript" ev:event="DOMActivate">
  256. <![CDATA[
  257. window.reload() ;
  258. ]]>
  259. </script>
  260. </button>
  261. <button id="btn_save" class="btn4_letter2" style="left:1134px; top:3px; width:56px; height:22px; ">
  262. <caption>저장</caption>
  263. <script type="javascript" ev:event="DOMActivate">
  264. <![CDATA[
  265. if(!checkKeyColumn("grd_incustlist") ) return;
  266. misfSave("TXRPV03501");
  267. ]]>
  268. </script>
  269. </button>
  270. <button id="button1" class="btn4_letter5" style="left:970px; top:3px; width:92px; height:22px; ">
  271. <caption>평가자생성</caption>
  272. <script type="javascript" ev:event="DOMActivate">
  273. <![CDATA[
  274. if ( !isRequiredControls("ipt_valuyy", "cmb_instcd","cmb_fstscndhfyyflag") ) {
  275. return false;
  276. }
  277. if( messageBox( "기존의 자료를 삭제하고 재생성 합니다. .\n","Q003") == 6 ) {
  278. submit("TXRPV03502");
  279. submit("TRRPV03501");
  280. }
  281. ]]>
  282. </script>
  283. </button>
  284. <button id="btn_print" class="btn4_letter2" style="left:906px; top:3px; width:56px; height:22px; ">
  285. <caption>출력</caption>
  286. <script type="javascript" ev:event="DOMActivate">
  287. <![CDATA[
  288. model.resetInstanceNode("/root/main/printdata");
  289. submit("TRRPV03503");
  290. exeReportPreview("RPRPV03501", "XMLSTR");
  291. ]]>
  292. </script>
  293. </button>
  294. </group>
  295. </xhtml:body>
  296. </xhtml:html>