SMRPB19300_2차평가관리.xrw 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743
  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>2차평가관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <promotnflaglist>
  11. <emplno/>
  12. <emplnm/>
  13. <deptnm/>
  14. <entcodd/>
  15. <jobrespnm/>
  16. <jobposnm/>
  17. <jobkindnm/>
  18. <ojobgradnm/>
  19. <njobgradnm/>
  20. <payclscd/>
  21. <flag/>
  22. <gradeyn1/>
  23. <gradeyn2/>
  24. <assessor1/>
  25. <assessornm1/>
  26. <assessor2/>
  27. <assessornm2/>
  28. <deptcd/>
  29. <year/>
  30. <ojobgradcd/>
  31. <njobgradcd/>
  32. <jobkindcd/>
  33. <jobposcd/>
  34. </promotnflaglist>
  35. <asmtinfo>
  36. <gigan/>
  37. <giganyn/>
  38. </asmtinfo>
  39. <list>
  40. <astemplinfo>
  41. <elemlrg/>
  42. <elemmdl/>
  43. <elemnm/>
  44. <cmt/>
  45. <elemgrd11/>
  46. <score11/>
  47. <asmta2score/>
  48. <asmtb2score/>
  49. <asmtc2score/>
  50. <asmtd2score/>
  51. <asmte2score/>
  52. <elemgrd/>
  53. <score/>
  54. <year/>
  55. <emplno/>
  56. <flag/>
  57. <asmta2yn/>
  58. <asmtb2yn/>
  59. <asmtc2yn/>
  60. <asmtd2yn/>
  61. <asmte2yn/>
  62. <score1/>
  63. <opinion1/>
  64. <score2/>
  65. <opinion2/>
  66. </astemplinfo>
  67. </list>
  68. <list1>
  69. <deptinfo>
  70. <grade_a/>
  71. <grade_b/>
  72. <grade_c/>
  73. <grade_d/>
  74. <grade_e/>
  75. <inwon/>
  76. <grade_a1/>
  77. <grade_b1/>
  78. <grade_c1/>
  79. <grade_d1/>
  80. <grade_e1/>
  81. <grade_aper/>
  82. <grade_bper/>
  83. <grade_cper/>
  84. <grade_dper/>
  85. <grade_eper/>
  86. </deptinfo>
  87. </list1>
  88. </main>
  89. <send>
  90. <retrparams>
  91. <instcd/>
  92. <year/>
  93. <flag/>
  94. <dutunitcd/>
  95. <dutunitnm/>
  96. <deptgb/>
  97. <emplno/>
  98. <emplnm/>
  99. <grade/>
  100. <avrscore1/>
  101. <avrscore/>
  102. <opinion2/>
  103. </retrparams>
  104. <execdata>
  105. <astemplinfo/>
  106. </execdata>
  107. </send>
  108. <send1>
  109. <year/>
  110. <emplno/>
  111. <flag/>
  112. </send1>
  113. <hidden/>
  114. </root>
  115. </instance>
  116. <script type="javascript" ev:event="xforms-ready">
  117. <![CDATA[
  118. misfGridInit(grd_promotnflaglist);
  119. misfGridInit(datagrid1);
  120. misfGetAndSetUserInfo();
  121. model.setValue("/root/send/retrparams/deptgb", "2");
  122. model.setValue("/root/send/retrparams/grade", "2");
  123. model.setValue("/root/send/retrparams/year", getCurrentDate().substr(0, 4));
  124. model.setValue("/root/send/retrparams/dutunitcd", DUT_TEAM_CD);
  125. model.setValue("/root/send/retrparams/dutunitnm", DUT_TEAM_NM);
  126. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","Y");
  127. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  128. submit("TRRPB19202");
  129. if (model.getValue("/root/main/asmtinfo/giganyn") != "Y"){
  130. btn_save.disabled = true;
  131. }
  132. model.refresh();
  133. ]]>
  134. </script>
  135. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  136. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  137. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  138. <script type="javascript" src="../../../mis/promotnmngtweb/js/RPH001.js"/>
  139. <script type="javascript" src="../../../mis/purccommonweb/js/PURC.js"/>
  140. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  141. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  142. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  143. <script type="javascript" src="../../../mis/valuationmngtweb/js/RPV001.js"/>
  144. <script type="javascript">
  145. <![CDATA[
  146. function fEnableUpdateButton() {
  147. btn_insert.disabled = true;
  148. btn_update.disabled = false;
  149. }
  150. function fEnableInsertButton(){
  151. btn_insert.disabled = false;
  152. btn_update.disabled = true;
  153. ipt_emplno_d.disabled=false;
  154. ipt_emplnm_d.disabled=false;
  155. btn_emplno.disabled=false;
  156. ipt_gradupym_d.disabled = false;
  157. }
  158. function readfunc1(){
  159. model.setValue("/root/send1/year", model.getValue("/root/send/retrparams/year"));
  160. model.setValue("/root/send1/emplno", model.getValue("/root/main/promotnflaglist[" + grd_promotnflaglist.row + "]/emplno"));
  161. model.setValue("/root/send1/flag", model.getValue("/root/main/promotnflaglist[" + grd_promotnflaglist.row + "]/flag"));
  162. if (submit("TRRPB19303")){
  163. model.setValue("/root/send/retrparams/avrscore1", model.getValue("/root/main/list/astemplinfo[" + 1 + "]/score1"));
  164. model.setValue("/root/send/retrparams/avrscore", model.getValue("/root/main/list/astemplinfo[" + 1 + "]/score2"));
  165. model.setValue("/root/send/retrparams/opinion2", model.getValue("/root/main/list/astemplinfo[" + 1 + "]/opinion2"));
  166. datagrid1.mergecells = "bycol";
  167. datagrid1.mergeCol(0) = false;
  168. datagrid1.mergeCol(1) = true;
  169. datagrid1.mergeCol(2) = false;
  170. datagrid1.mergeCol(3) = false;
  171. datagrid1.mergeCol(4) = false;
  172. datagrid1.mergeCol(5) = false;
  173. datagrid1.mergeCol(6) = false;
  174. datagrid1.mergeCol(7) = false;
  175. datagrid1.mergeCol(8) = false;
  176. datagrid1.mergeCol(9) = false;
  177. datagrid1.mergeCol(10) = false;
  178. datagrid1.mergeCol(11) = false;
  179. datagrid1.mergeCol(12) = false;
  180. datagrid1.mergeCol(13) = false;
  181. datagrid1.merge();
  182. }
  183. model.refresh();
  184. }
  185. ]]>
  186. </script>
  187. <submission id="TRRPB19201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/promotnflaglist"/>
  188. <submission id="TRRPB19202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/asmtinfo"/>
  189. <submission id="TRRPB19204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/list1/deptinfo"/>
  190. <submission id="TRRPB19303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send1" resultref="/root/main/list/astemplinfo"/>
  191. <submission id="TXRPB19301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/execdata" resultref="/root/hidden"/>
  192. </model>
  193. </xhtml:head>
  194. <xhtml:body guideline="2,474;2,590;2,591;1,1434;" style="margin-left:8; margin-right:8; ">
  195. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  196. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">2차 평가관리</caption>
  197. </group>
  198. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:732px; ">
  199. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  200. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:19px; width:56px; height:22px; ">
  201. <caption>조회</caption>
  202. <script type="javascript" ev:event="DOMActivate">
  203. <![CDATA[
  204. misfGridInit(grd_promotnflaglist);
  205. misfGridInit(datagrid1);
  206. submit("TRRPB19201");
  207. submit("TRRPB19204");
  208. ]]>
  209. </script>
  210. </button>
  211. <line id="line13" class="line_4" style="x1:1110px; y1:17px; x2:1110px; y2:46px; "/>
  212. <caption id="caption278" class="tit_2" style="left:5px; top:59px; width:113px; height:14px; ">평가대상자 목록</caption>
  213. <line id="line207" class="line_1" style="x1:179px; y1:78px; x2:1191px; y2:78px; "/>
  214. <!--datagrid id="promotnflaglist" nodeset="/root/main/promotnflaglist" caption="기관^부서" colwidth="60, 65" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" colsep="^" style="left:0px; top:74px; width:1195px; height:433px; ">
  215. <col ref="instcd"/>
  216. <col ref="deptcd"/>
  217. </datagrid-->
  218. <button id="button19" class="btn2_letter4" style="left:1120px; top:55px; width:64px; height:19px; ">
  219. <caption>동일적용</caption>
  220. <script type="javascript" ev:event="DOMActivate">
  221. <![CDATA[
  222. var elemgrd11 = "";
  223. var elemgrd = "";
  224. for (i = 1; i < datagrid1.rows; i ++){
  225. elemgrd11 = model.getValue("/root/main/list/astemplinfo[" + i +"]/elemgrd11");
  226. elemgrd = elemgrd11;
  227. model.setValue("/root/main/list/astemplinfo[" + i +"]/elemgrd", elemgrd11);
  228. if (elemgrd == "A"){
  229. model.setValue("/root/main/list/astemplinfo[" + i + "]/score", model.getValue("/root/main/list/astemplinfo[" + i + "]/asmta2score"));
  230. }else if (elemgrd == "B"){
  231. model.setValue("/root/main/list/astemplinfo[" + i + "]/score", model.getValue("/root/main/list/astemplinfo[" + i + "]/asmtb2score"));
  232. }else if (elemgrd == "C"){
  233. model.setValue("/root/main/list/astemplinfo[" + i + "]/score", model.getValue("/root/main/list/astemplinfo[" + i + "]/asmtc2score"));
  234. }else if (elemgrd == "D"){
  235. model.setValue("/root/main/list/astemplinfo[" + i + "]/score", model.getValue("/root/main/list/astemplinfo[" + i + "]/asmtd2score"));
  236. }else if (elemgrd == "E"){
  237. model.setValue("/root/main/list/astemplinfo[" + i + "]/score", model.getValue("/root/main/list/astemplinfo[" + i + "]/asmte2score"));
  238. }
  239. datagrid1.rowStatus(i) = 2;
  240. }
  241. var avrscore = 0;
  242. var score = 0;
  243. for (var i = 1; i < datagrid1.rows; i ++){
  244. score = model.getValue("/root/main/list/astemplinfo[" + i + "]/score");
  245. if (isNaN(score) || score == ""){
  246. score = 0;
  247. }
  248. avrscore = parseInt(avrscore) + parseInt(score);
  249. }
  250. model.setValue("/root/send/retrparams/avrscore", avrscore);
  251. model.refresh();
  252. ]]>
  253. </script>
  254. </button>
  255. <!--button id="button3" class="btn2_letter3" style="left:955px; top:48px; width:53px; height:19px; ">
  256. <caption>행추가</caption>
  257. <script type="javascript" ev:event="DOMActivate">
  258. <![CDATA[
  259. ]]>
  260. </script>
  261. </button>
  262. <button id="button4" class="btn2_letter3" style="left:1010px; top:48px; width:53px; height:19px; ">
  263. <caption>행삭제</caption>
  264. <script type="javascript" ev:event="DOMActivate">
  265. <![CDATA[
  266. ]]>
  267. </script>
  268. </button-->
  269. <datagrid id="grd_promotnflaglist" nodeset="/root/main/promotnflaglist" caption="사원번호^성명^근무부서^입사일자^직책^직위^직종^직급^신직급^호봉^평가유형^1차평가^2차평가^1차평가자^1차평가자명^2차평가자^2차평가자명^caption1^caption2^caption3^caption4^caption5^caption6" colsep="^" colwidth="72, 62, 132, 74, 87, 83, 91, 76, 85, 42, 108, 53, 51, 80, 77, 72, 79, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" frozencols="6" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:83px; width:175px; height:647px; ">
  270. <col ref="emplno" style="text-align:center; "/>
  271. <col ref="emplnm"/>
  272. <col ref="deptnm" visibility="hidden"/>
  273. <col ref="entcodd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
  274. <col ref="jobrespnm" visibility="hidden"/>
  275. <col ref="jobposnm" visibility="hidden"/>
  276. <col ref="jobkindnm" visibility="hidden"/>
  277. <col ref="ojobgradnm" visibility="hidden"/>
  278. <col ref="njobgradnm" visibility="hidden"/>
  279. <col ref="payclscd" visibility="hidden" style="text-align:center; "/>
  280. <col ref="flag" type="combo" visibility="hidden" style="left:0px; top:0px; width:0px; height:0px; ">
  281. <choices>
  282. <item>
  283. <label>팀장,과장,실장용</label>
  284. <value>A</value>
  285. </item>
  286. <item>
  287. <label>계장급용</label>
  288. <value>B</value>
  289. </item>
  290. <item>
  291. <label>간호직용</label>
  292. <value>C</value>
  293. </item>
  294. <item>
  295. <label>의료기사직,직원용</label>
  296. <value>D</value>
  297. </item>
  298. </choices>
  299. </col>
  300. <col checkvalue="Y,N" ref="gradeyn1" type="checkbox" visibility="hidden"/>
  301. <col checkvalue="Y,N" ref="gradeyn2" type="checkbox" visibility="hidden"/>
  302. <col ref="assessor1" type="inputbutton" visibility="hidden" style="text-align:right; vertical-align:middle; "/>
  303. <col ref="assessornm1" visibility="hidden"/>
  304. <col ref="assessor2" type="inputbutton" visibility="hidden" style="text-align:right; vertical-align:middle; "/>
  305. <col ref="assessornm2" visibility="hidden"/>
  306. <col ref="deptcd" visibility="hidden"/>
  307. <col ref="year" visibility="hidden"/>
  308. <col ref="ojobgradcd" visibility="hidden"/>
  309. <col ref="njobgradcd" visibility="hidden"/>
  310. <col ref="jobkindcd" visibility="hidden"/>
  311. <col ref="jobposcd" visibility="hidden"/>
  312. <script type="javascript" ev:event="onclick">
  313. <![CDATA[
  314. if (isDataCell()) {
  315. readfunc1();
  316. }
  317. ]]>
  318. </script>
  319. </datagrid>
  320. <select1 id="cmb_instcd" ref="/root/send/retrparams/instcd" class="combo_search" navindex="1" appearance="minimal" style="left:100px; top:18px; width:110px; height:19px; ">
  321. <choices>
  322. <itemset>
  323. <label/>
  324. <value/>
  325. </itemset>
  326. </choices>
  327. </select1>
  328. <caption id="caption1" class="search_name" style="left:272px; top:19px; width:86px; height:17px; ">평가년도 :</caption>
  329. <input id="ipt_appfromdd" ref="/root/send/retrparams/year" class="input_s_essential" navindex="2" inputtype="date" format="yyyy" style="left:362px; top:18px; width:93px; height:19px; text-align:center; ">
  330. <script type="javascript" ev:event="xforms-value-changed">
  331. <![CDATA[
  332. submit("TRRPB19201");
  333. if (model.getValue("/root/main/asmtinfo/giganyn") != "Y"){
  334. btn_save.disabled = true;
  335. }
  336. btn_search.dispatch("DOMActivate");
  337. ]]>
  338. </script>
  339. </input>
  340. <caption id="caption2" class="search_name" style="left:10px; top:19px; width:86px; height:17px; ">소속기관 :</caption>
  341. <button id="btn_dutdept" class="icon_search" disabled="true" visibility="hidden" style="left:692px; top:20px; width:16px; height:16px; ">
  342. <caption/>
  343. <script type="javascript" ev:event="DOMActivate">
  344. <![CDATA[
  345. // misfOpenPopUpList("02", ipt_dutdeptcd, "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd");
  346. misfOpenPopUpList("02", ipt_dutdeptcd,"","dutunitcd,dutunitnm", cmb_instcd.value + "," + ipt_appfromdd.value+"31", "instcd,basedd");
  347. model.setValue("/root/send/retrparams/appdd", model.getValue("/root/send/retrparams/dutym"));
  348. model.setValue("/root/send/retrparams/dutplcedeptcd", model.getValue("/root/send/retrparams/dutunitcd"));
  349. model.setValue("/root/send/retrparams/flag", "1");
  350. model.setValue("/root/send/retrparams2/instcd", model.getValue("/root/send/retrparams/instcd"));
  351. model.setValue("/root/send/retrparams2/dutunitcd", model.getValue("/root/send/retrparams/dutunitcd"));
  352. model.setValue("/root/send/retrparams2/dutym", model.getValue("/root/send/retrparams/dutym"));
  353. submit("TRRPD00105");
  354. model.refresh();
  355. ]]>
  356. </script>
  357. </button>
  358. <select1 id="combo1" ref="/root/send/retrparams/deptgb" visibility="hidden" appearance="minimal" style="left:805px; top:18px; width:100px; height:19px; ">
  359. <choices>
  360. <item>
  361. <label>근무지</label>
  362. <value>1</value>
  363. </item>
  364. <item>
  365. <label>소속부서</label>
  366. <value>2</value>
  367. </item>
  368. <item>
  369. <label>소속과(팀)</label>
  370. <value>3</value>
  371. </item>
  372. <item>
  373. <label>소속부(실)</label>
  374. <value>4</value>
  375. </item>
  376. </choices>
  377. <script type="javascript" ev:event="xforms-value-changed">
  378. <![CDATA[
  379. model.setValue("/root/send/retrparams2/deptgb", model.getValue("/root/send/retrparams/deptgb"));
  380. submit("TRRPD00105");
  381. ]]>
  382. </script>
  383. </select1>
  384. <caption id="caption8" class="search_name" visibility="hidden" style="left:524px; top:19px; width:99px; height:17px; ">관리부서 :</caption>
  385. <input id="ipt_dutdeptnm" ref="/root/send/retrparams/dutunitnm" class="input_search" disabled="true" visibility="hidden" style="left:715px; top:18px; width:85px; height:19px; ">
  386. <script type="javascript" ev:event="xforms-value-changed">
  387. <![CDATA[
  388. misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd");
  389. model.setValue("/root/send/retrparams/appdd", model.getValue("/root/send/retrparams/dutym"));
  390. model.setValue("/root/send/retrparams/dutplcedeptcd", model.getValue("/root/send/retrparams/dutunitcd"));
  391. model.setValue("/root/send/retrparams/flag", "1");
  392. model.setValue("/root/send/retrparams2/instcd", model.getValue("/root/send/retrparams/instcd"));
  393. model.setValue("/root/send/retrparams2/dutunitcd", model.getValue("/root/send/retrparams/dutunitcd"));
  394. model.setValue("/root/send/retrparams2/dutym", model.getValue("/root/send/retrparams/dutym"));
  395. submit("TRRPD00105");
  396. model.refresh();
  397. ]]>
  398. </script>
  399. <script type="javascript" ev:event="onkeypress">
  400. <![CDATA[
  401. if(event.keyCode == 13)
  402. {
  403. ipt_dutdeptnm.value = ipt_dutdeptnm.currentText;
  404. misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd");
  405. model.setValue("/root/send/retrparams/appdd", model.getValue("/root/send/retrparams/dutym"));
  406. model.setValue("/root/send/retrparams/dutplcedeptcd", model.getValue("/root/send/retrparams/dutunitcd"));
  407. model.setValue("/root/send/retrparams/flag", "1");
  408. model.setValue("/root/send/retrparams2/instcd", model.getValue("/root/send/retrparams/instcd"));
  409. model.setValue("/root/send/retrparams2/dutunitcd", model.getValue("/root/send/retrparams/dutunitcd"));
  410. model.setValue("/root/send/retrparams2/dutym", model.getValue("/root/send/retrparams/dutym"));
  411. submit("TRRPD00105");
  412. model.refresh();
  413. }
  414. ]]>
  415. </script>
  416. </input>
  417. <input id="ipt_dutdeptcd" ref="/root/send/retrparams/dutunitcd" class="input_search" disabled="true" visibility="hidden" maxlength="10" style="left:612px; top:18px; width:75px; height:19px; text-align:center; ">
  418. <script type="javascript" ev:event="xforms-value-changed">
  419. <![CDATA[
  420. misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd");
  421. model.setValue("/root/send/retrparams/appdd", model.getValue("/root/send/retrparams/dutym"));
  422. model.setValue("/root/send/retrparams/dutplcedeptcd", model.getValue("/root/send/retrparams/dutunitcd"));
  423. model.setValue("/root/send/retrparams/flag", "1");
  424. model.setValue("/root/send/retrparams2/instcd", model.getValue("/root/send/retrparams/instcd"));
  425. model.setValue("/root/send/retrparams2/dutunitcd", model.getValue("/root/send/retrparams/dutunitcd"));
  426. model.setValue("/root/send/retrparams2/dutym", model.getValue("/root/send/retrparams/dutym"));
  427. submit("TRRPD00105");
  428. model.refresh();
  429. ]]>
  430. </script>
  431. <script type="javascript" ev:event="onkeypress">
  432. <![CDATA[
  433. if(event.keyCode == 13)
  434. {
  435. ipt_dutdeptcd.value = ipt_dutdeptcd.currentText;
  436. misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd");
  437. model.setValue("/root/send/retrparams/appdd", model.getValue("/root/send/retrparams/dutym"));
  438. model.setValue("/root/send/retrparams/dutplcedeptcd", model.getValue("/root/send/retrparams/dutunitcd"));
  439. model.setValue("/root/send/retrparams/flag", "1");
  440. model.setValue("/root/send/retrparams2/instcd", model.getValue("/root/send/retrparams/instcd"));
  441. model.setValue("/root/send/retrparams2/dutunitcd", model.getValue("/root/send/retrparams/dutunitcd"));
  442. model.setValue("/root/send/retrparams2/dutym", model.getValue("/root/send/retrparams/dutym"));
  443. submit("TRRPD00105");
  444. model.refresh();
  445. }
  446. ]]>
  447. </script>
  448. </input>
  449. <select1 id="combo2" visibility="hidden" appearance="minimal" style="left:950px; top:18px; width:100px; height:19px; ">
  450. <choices>
  451. <item>
  452. <label>1차평가</label>
  453. <value>1</value>
  454. </item>
  455. <item>
  456. <label>2차평가</label>
  457. <value>2</value>
  458. </item>
  459. </choices>
  460. </select1>
  461. <caption id="caption3" ref="/root/main/asmtinfo/gigan" style="left:325px; top:51px; width:500px; height:25px; font-size:12pt; font-weight:bold; color:#ff0000; ">caption3</caption>
  462. <line id="line1" class="line_1" style="x1:0px; y1:78px; x2:175px; y2:78px; "/>
  463. <caption id="caption4" class="tit_2" style="left:180px; top:59px; width:113px; height:14px; ">평가내역</caption>
  464. <caption id="caption5" style="left:945px; top:55px; width:64px; height:20px; font-weight:bold; ">2차점수 :</caption>
  465. <output id="output1" ref="/root/send/retrparams/avrscore" format="###" style="left:1014px; top:55px; width:70px; height:19px; font-size:13pt; font-weight:bold; color:#0000ff; text-align:left; "/>
  466. <datagrid id="datagrid1" nodeset="/root/main/list/astemplinfo" class="datagrid2" autoresize="true" caption="평가요소(대)^평가요소^평가요소명칭^평가내용^1차등급^1차점수^A점수^B점수^C점수^D점수^E점수^2차평가^평가점수^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10^caption11^caption12" colsep="^" colwidth="103, 35, 114, 279, 67, 57, 40, 42, 42, 42, 42, 79, 57, 21, 17, 21, 17, 14, 17, 22, 13, 18, 24, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:179px; top:83px; width:1015px; height:484px; font-size:12pxpt; ">
  467. <col disabled="true" ref="elemlrg" type="combo" style="font-size:10pt; text-align:left; ">
  468. <choices>
  469. <item>
  470. <label>업무실적</label>
  471. <value>1</value>
  472. </item>
  473. <item>
  474. <label>업무수행능력</label>
  475. <value>2</value>
  476. </item>
  477. <item>
  478. <label>업무수행태도</label>
  479. <value>3</value>
  480. </item>
  481. <item>
  482. <label>업무성과</label>
  483. <value>4</value>
  484. </item>
  485. </choices>
  486. </col>
  487. <col ref="elemmdl" visibility="hidden" style="font-size:10pt; "/>
  488. <col ref="elemnm" style="font-size:10pt; "/>
  489. <col ref="cmt" style="font-size:10pt; "/>
  490. <col disabled="true" ref="elemgrd11" type="combo" style="text-align:center; ">
  491. <choices>
  492. <item>
  493. <label>A등급</label>
  494. <value>A</value>
  495. </item>
  496. <item>
  497. <label>B등급</label>
  498. <value>B</value>
  499. </item>
  500. <item>
  501. <label>C등급</label>
  502. <value>C</value>
  503. </item>
  504. <item>
  505. <label>D등급</label>
  506. <value>D</value>
  507. </item>
  508. <item>
  509. <label>E등급</label>
  510. <value>E</value>
  511. </item>
  512. </choices>
  513. </col>
  514. <col ref="score11" style="text-align:center; "/>
  515. <col ref="asmta2score" format="(-)###" style="font-size:10pt; text-align:center; "/>
  516. <col ref="asmtb2score" format="(-)###" style="font-size:10pt; text-align:center; "/>
  517. <col ref="asmtc2score" format="(-)###" style="font-size:10pt; text-align:center; "/>
  518. <col ref="asmtd2score" format="(-)###" style="font-size:10pt; text-align:center; "/>
  519. <col ref="asmte2score" format="(-)###" style="font-size:10pt; text-align:center; "/>
  520. <col ref="elemgrd" type="combo" style="font-size:10pt; text-align:center; ">
  521. <choices>
  522. <item>
  523. <label>A등급</label>
  524. <value>A</value>
  525. </item>
  526. <item>
  527. <label>B등급</label>
  528. <value>B</value>
  529. </item>
  530. <item>
  531. <label>C등급</label>
  532. <value>C</value>
  533. </item>
  534. <item>
  535. <label>D등급</label>
  536. <value>D</value>
  537. </item>
  538. <item>
  539. <label>E등급</label>
  540. <value>E</value>
  541. </item>
  542. </choices>
  543. </col>
  544. <col ref="score" format="(-)###" style="font-size:10pt; text-align:center; "/>
  545. <col ref="year" visibility="hidden"/>
  546. <col ref="emplno" visibility="hidden"/>
  547. <col ref="flag" visibility="hidden"/>
  548. <col ref="asmta2yn" visibility="hidden"/>
  549. <col ref="asmtb2yn" visibility="hidden"/>
  550. <col ref="asmtc2yn" visibility="hidden"/>
  551. <col ref="asmtd2yn" visibility="hidden"/>
  552. <col ref="asmte2yn" visibility="hidden"/>
  553. <col ref="score1" visibility="hidden"/>
  554. <col ref="opinion1" visibility="hidden"/>
  555. <col ref="score2" visibility="hidden"/>
  556. <col ref="opinion2" visibility="hidden"/>
  557. <script type="javascript" ev:event="xforms-value-changed">
  558. <![CDATA[
  559. if (datagrid1.colAttribute(datagrid1.col,"ref") == "elemgrd" ) {
  560. var elemgrd = model.getValue("/root/main/list/astemplinfo[" + datagrid1.row + "]/elemgrd");
  561. if (elemgrd == "E"){
  562. if (model.getValue("/root/main/list/astemplinfo[" + datagrid1.row + "]/asmte2score") == "" || model.getValue("/root/main/list/astemplinfo[" + datagrid1.row + "]/asmte2score") == "0"){
  563. model.setValue("/root/main/list/astemplinfo[" + datagrid1.row + "]/elemgrd", "");
  564. model.refresh();
  565. messageBox(datagrid1.row + "의 2차평가에서 E등급은 선택할 수 없습니다.", "E999", "");
  566. return;
  567. }
  568. }
  569. if (elemgrd == "A"){
  570. model.setValue("/root/main/list/astemplinfo[" + datagrid1.row + "]/score", model.getValue("/root/main/list/astemplinfo[" + datagrid1.row + "]/asmta2score"));
  571. }else if (elemgrd == "B"){
  572. model.setValue("/root/main/list/astemplinfo[" + datagrid1.row + "]/score", model.getValue("/root/main/list/astemplinfo[" + datagrid1.row + "]/asmtb2score"));
  573. }else if (elemgrd == "C"){
  574. model.setValue("/root/main/list/astemplinfo[" + datagrid1.row + "]/score", model.getValue("/root/main/list/astemplinfo[" + datagrid1.row + "]/asmtc2score"));
  575. }else if (elemgrd == "D"){
  576. model.setValue("/root/main/list/astemplinfo[" + datagrid1.row + "]/score", model.getValue("/root/main/list/astemplinfo[" + datagrid1.row + "]/asmtd2score"));
  577. }else if (elemgrd == "E"){
  578. model.setValue("/root/main/list/astemplinfo[" + datagrid1.row + "]/score", model.getValue("/root/main/list/astemplinfo[" + datagrid1.row + "]/asmte2score"));
  579. }
  580. }
  581. var avrscore = 0;
  582. var score = 0;
  583. for (var i = 1; i < datagrid1.rows; i ++){
  584. score = model.getValue("/root/main/list/astemplinfo[" + i + "]/score");
  585. if (isNaN(score) || score == ""){
  586. score = 0;
  587. }
  588. avrscore = parseInt(avrscore) + parseInt(score);
  589. }
  590. model.setValue("/root/send/retrparams/avrscore", avrscore);
  591. model.refresh();
  592. ]]>
  593. </script>
  594. </datagrid>
  595. <caption id="caption7" style="left:185px; top:580px; width:165px; height:20px; font-weight:bold; ">★ 평정자의견(40자이내) :</caption>
  596. <input id="input1" ref="/root/send/retrparams/opinion2" maxlength="80" style="left:352px; top:580px; width:560px; height:19px; ">
  597. <script type="javascript" ev:event="xforms-value-changed">
  598. <![CDATA[
  599. datagrid1.rowStatus(1) = 2;
  600. model.refresh();
  601. ]]>
  602. </script>
  603. </input>
  604. <caption id="caption9" style="left:245px; top:670px; width:100px; height:20px; text-align:center; background-color:#99ccff; ">1차 평가인원</caption>
  605. <caption id="caption10" style="left:245px; top:640px; width:100px; height:20px; text-align:center; background-color:#99ccff; ">기준 평가분포율</caption>
  606. <caption id="caption11" style="left:370px; top:610px; width:60px; height:20px; text-align:center; background-color:#99ccff; ">대상인원</caption>
  607. <caption id="caption12" style="left:470px; top:610px; width:60px; height:20px; text-align:center; background-color:#99ccff; ">A등급</caption>
  608. <caption id="caption13" style="left:570px; top:610px; width:60px; height:20px; text-align:center; background-color:#99ccff; ">B등급</caption>
  609. <caption id="caption14" style="left:665px; top:610px; width:60px; height:20px; text-align:center; background-color:#99ccff; ">C등급</caption>
  610. <caption id="caption15" style="left:760px; top:610px; width:60px; height:20px; text-align:center; background-color:#99ccff; ">D등급</caption>
  611. <caption id="caption16" style="left:860px; top:610px; width:60px; height:20px; text-align:center; background-color:#99ccff; ">E등급</caption>
  612. <caption id="caption17" style="left:245px; top:700px; width:100px; height:20px; text-align:center; background-color:#99ccff; ">1차 평가분포도</caption>
  613. <output id="output2" ref="/root/main/list1/deptinfo/grade_a" style="left:470px; top:640px; width:60px; height:19px; font-weight:bold; text-align:center; background-color:#ffffcc; "/>
  614. <output id="output3" ref="/root/main/list1/deptinfo/grade_b" style="left:570px; top:640px; width:60px; height:19px; font-weight:bold; text-align:center; background-color:#ffffcc; "/>
  615. <output id="output4" ref="/root/main/list1/deptinfo/grade_c" style="left:665px; top:640px; width:60px; height:19px; font-weight:bold; text-align:center; background-color:#ffffcc; "/>
  616. <output id="output5" ref="/root/main/list1/deptinfo/grade_d" style="left:760px; top:640px; width:60px; height:19px; font-weight:bold; text-align:center; background-color:#ffffcc; "/>
  617. <output id="output6" ref="/root/main/list1/deptinfo/grade_e" style="left:860px; top:640px; width:60px; height:19px; font-weight:bold; text-align:center; background-color:#ffffcc; "/>
  618. <output id="output7" ref="/root/main/list1/deptinfo/grade_c1" style="left:665px; top:670px; width:60px; height:19px; font-weight:bold; text-align:center; background-color:#ffffcc; "/>
  619. <output id="output8" ref="/root/main/list1/deptinfo/grade_d1" style="left:760px; top:670px; width:60px; height:19px; font-weight:bold; text-align:center; background-color:#ffffcc; "/>
  620. <output id="output9" ref="/root/main/list1/deptinfo/grade_e1" style="left:860px; top:670px; width:60px; height:19px; font-weight:bold; text-align:center; background-color:#ffffcc; "/>
  621. <output id="output10" ref="/root/main/list1/deptinfo/grade_a1" style="left:470px; top:670px; width:60px; height:19px; font-weight:bold; text-align:center; background-color:#ffffcc; "/>
  622. <output id="output11" ref="/root/main/list1/deptinfo/grade_b1" style="left:570px; top:670px; width:60px; height:19px; font-weight:bold; text-align:center; background-color:#ffffcc; "/>
  623. <output id="output12" ref="/root/main/list1/deptinfo/inwon" style="left:370px; top:670px; width:60px; height:19px; font-weight:bold; text-align:center; background-color:#ffffcc; "/>
  624. <output id="output13" ref="/root/main/list1/deptinfo/grade_aper" style="left:470px; top:700px; width:60px; height:19px; text-align:center; background-color:#ffffcc; "/>
  625. <output id="output14" ref="/root/main/list1/deptinfo/grade_bper" style="left:570px; top:700px; width:60px; height:19px; text-align:center; background-color:#ffffcc; "/>
  626. <output id="output15" ref="/root/main/list1/deptinfo/grade_cper" style="left:665px; top:700px; width:60px; height:19px; text-align:center; background-color:#ffffcc; "/>
  627. <output id="output16" ref="/root/main/list1/deptinfo/grade_dper" style="left:760px; top:700px; width:60px; height:19px; text-align:center; background-color:#ffffcc; "/>
  628. <output id="output17" ref="/root/main/list1/deptinfo/grade_eper" style="left:860px; top:700px; width:60px; height:19px; font-weight:bold; text-align:center; background-color:#ffffcc; "/>
  629. <caption id="caption18" style="left:535px; top:700px; width:20px; height:20px; ">%</caption>
  630. <caption id="caption19" style="left:635px; top:700px; width:20px; height:20px; ">%</caption>
  631. <caption id="caption20" style="left:730px; top:700px; width:20px; height:20px; ">%</caption>
  632. <caption id="caption21" style="left:825px; top:700px; width:20px; height:20px; ">%</caption>
  633. <caption id="caption22" style="left:925px; top:700px; width:20px; height:20px; ">%</caption>
  634. <output id="output18" ref="/root/main/list1/deptinfo/grade_c" style="left:665px; top:640px; width:60px; height:19px; font-weight:bold; text-align:center; background-color:#ffffcc; "/>
  635. <output id="output19" ref="/root/main/list1/deptinfo/grade_d" style="left:760px; top:640px; width:60px; height:19px; font-weight:bold; text-align:center; background-color:#ffffcc; "/>
  636. <output id="output20" ref="/root/main/list1/deptinfo/grade_a1" style="left:470px; top:670px; width:60px; height:19px; font-weight:bold; text-align:center; background-color:#ffffcc; "/>
  637. <output id="output21" ref="/root/main/list1/deptinfo/grade_e" style="left:860px; top:640px; width:60px; height:19px; font-weight:bold; text-align:center; background-color:#ffffcc; "/>
  638. <output id="output22" ref="/root/main/list1/deptinfo/grade_b1" style="left:570px; top:670px; width:60px; height:19px; font-weight:bold; text-align:center; background-color:#ffffcc; "/>
  639. <output id="output23" ref="/root/main/list1/deptinfo/grade_c1" style="left:665px; top:670px; width:60px; height:19px; font-weight:bold; text-align:center; background-color:#ffffcc; "/>
  640. <output id="output24" ref="/root/main/list1/deptinfo/inwon" style="left:370px; top:670px; width:60px; height:19px; font-weight:bold; text-align:center; background-color:#ffffcc; "/>
  641. <output id="output25" ref="/root/main/list1/deptinfo/grade_d1" style="left:760px; top:670px; width:60px; height:19px; font-weight:bold; text-align:center; background-color:#ffffcc; "/>
  642. <output id="output26" ref="/root/main/list1/deptinfo/grade_aper" style="left:470px; top:700px; width:60px; height:19px; font-weight:bold; text-align:center; background-color:#ffffcc; "/>
  643. <output id="output27" ref="/root/main/list1/deptinfo/grade_e1" style="left:860px; top:670px; width:60px; height:19px; font-weight:bold; text-align:center; background-color:#ffffcc; "/>
  644. <output id="output28" ref="/root/main/list1/deptinfo/grade_bper" style="left:570px; top:700px; width:60px; height:19px; font-weight:bold; text-align:center; background-color:#ffffcc; "/>
  645. <output id="output29" ref="/root/main/list1/deptinfo/grade_cper" style="left:665px; top:700px; width:60px; height:19px; font-weight:bold; text-align:center; background-color:#ffffcc; "/>
  646. <output id="output30" ref="/root/main/list1/deptinfo/grade_dper" style="left:760px; top:700px; width:60px; height:19px; font-weight:bold; text-align:center; background-color:#ffffcc; "/>
  647. <output id="output31" ref="/root/main/list1/deptinfo/grade_a" style="left:470px; top:640px; width:60px; height:19px; font-weight:bold; text-align:center; background-color:#ffffcc; "/>
  648. <output id="output32" ref="/root/main/list1/deptinfo/grade_b" style="left:570px; top:640px; width:60px; height:19px; font-weight:bold; text-align:center; background-color:#ffffcc; "/>
  649. <caption id="caption23" style="left:795px; top:55px; width:64px; height:20px; font-weight:bold; ">1차점수 :</caption>
  650. <output id="output33" ref="/root/send/retrparams/avrscore1" format="###" style="left:864px; top:55px; width:70px; height:19px; font-size:13pt; font-weight:bold; color:#0000ff; text-align:left; "/>
  651. </group>
  652. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:28px; ">
  653. <line id="line4" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25; "/>
  654. <button id="btn_save" class="btn4_letter2" style="left:1130px; top:3px; width:56px; height:22px; ">
  655. <caption>저장</caption>
  656. <script type="javascript" ev:event="DOMActivate">
  657. <![CDATA[
  658. var score1 = 0;
  659. for (var i = 1; i < datagrid1.rows; i ++){
  660. var score = model.getValue("/root/main/list/astemplinfo[" + i + "]/score");
  661. if (isNaN(score)){
  662. score = 0;
  663. }
  664. score1 = parseInt(score1) + parseInt(score);
  665. }
  666. for (var i = 1; i < datagrid1.rows; i ++){
  667. var elemgrd = model.getValue("/root/main/list/astemplinfo[" + i + "]/elemgrd");
  668. if (elemgrd == ""){
  669. messageBox(i + "번째에 대한 평가내역을 선택한 후 처리하시기 바랍니다.", "E999", "");
  670. return;
  671. }
  672. model.setValue("/root/main/list/astemplinfo[" + i + "]/opinion2", model.getValue("/root/send/retrparams/opinion2"));
  673. model.setValue("/root/main/list/astemplinfo[" + i + "]/score2", score1);
  674. model.refresh();
  675. }
  676. var updtdata = getGridUpdateData(datagrid1);
  677. if (updtdata == "" ) {
  678. messageBox("변경된 데이터가","I004");
  679. return;
  680. }
  681. var ret = messageBox("저장합니다.","Q003");
  682. if (ret != 6) { // not OK
  683. return;
  684. } else {
  685. model.setValue("/root/send/execdata/astemplinfo", updtdata);
  686. var irow = grd_promotnflaglist.row;
  687. if (submit("TXRPB19301")){
  688. submit("TRRPB19204");
  689. grd_promotnflaglist.row = irow;
  690. readfunc1();
  691. }
  692. }
  693. ]]>
  694. </script>
  695. </button>
  696. </group>
  697. </xhtml:body>
  698. </xhtml:html>