SMRPB19800_시용평가관리.xrw 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634
  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. <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. <asmta1score/>
  46. <asmtb1score/>
  47. <asmtc1score/>
  48. <asmtd1score/>
  49. <asmte1score/>
  50. <elemgrd/>
  51. <score/>
  52. <year/>
  53. <emplno/>
  54. <flag/>
  55. <asmta1yn/>
  56. <asmtb1yn/>
  57. <asmtc1yn/>
  58. <asmtd1yn/>
  59. <asmte1yn/>
  60. <score1/>
  61. <opinion1/>
  62. <deptcd/>
  63. </astemplinfo>
  64. </list>
  65. <list1>
  66. <deptinfo>
  67. <grade_a/>
  68. <grade_b/>
  69. <grade_c/>
  70. <grade_d/>
  71. <grade_e/>
  72. <inwon/>
  73. <grade_a1/>
  74. <grade_b1/>
  75. <grade_c1/>
  76. <grade_d1/>
  77. <grade_e1/>
  78. <grade_aper/>
  79. <grade_bper/>
  80. <grade_cper/>
  81. <grade_dper/>
  82. <grade_eper/>
  83. </deptinfo>
  84. </list1>
  85. </main>
  86. <send>
  87. <retrparams>
  88. <instcd/>
  89. <year/>
  90. <flag/>
  91. <dutunitcd/>
  92. <dutunitnm/>
  93. <deptgb/>
  94. <emplno/>
  95. <emplnm/>
  96. <grade/>
  97. <avrscore/>
  98. <opinion1/>
  99. </retrparams>
  100. <execdata>
  101. <astemplinfo/>
  102. </execdata>
  103. </send>
  104. <send1>
  105. <year/>
  106. <emplno/>
  107. <flag/>
  108. </send1>
  109. <hidden/>
  110. </root>
  111. </instance>
  112. <script type="javascript" ev:event="xforms-ready">
  113. <![CDATA[
  114. misfGridInit(grd_promotnflaglist);
  115. misfGridInit(datagrid1);
  116. misfGetAndSetUserInfo();
  117. model.setValue("/root/send/retrparams/deptgb", "2");
  118. model.setValue("/root/send/retrparams/grade", "4");
  119. model.setValue("/root/send/retrparams/year", getCurrentDate().substr(0, 4));
  120. model.setValue("/root/send/retrparams/dutunitcd", DUT_TEAM_CD);
  121. model.setValue("/root/send/retrparams/dutunitnm", DUT_TEAM_NM);
  122. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","Y");
  123. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  124. submit("TRRPB19202");
  125. if (model.getValue("/root/main/asmtinfo/giganyn") != "Y"){
  126. btn_save.disabled = true;
  127. }
  128. misfGetUserAuth();
  129. if (DUTY_VALU_YN == "Y" ) {
  130. ipt_dutdeptcd.disabled = false;
  131. btn_dutdept.disabled = false;
  132. }
  133. else {
  134. ipt_dutdeptcd.disabled = true;
  135. btn_dutdept.disabled = true;
  136. }
  137. model.refresh();
  138. ]]>
  139. </script>
  140. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  141. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  142. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  143. <script type="javascript" src="../../../mis/promotnmngtweb/js/RPH001.js"/>
  144. <script type="javascript" src="../../../mis/purccommonweb/js/PURC.js"/>
  145. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  146. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  147. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  148. <script type="javascript" src="../../../mis/valuationmngtweb/js/RPV001.js"/>
  149. <script type="javascript">
  150. <![CDATA[
  151. function fEnableUpdateButton() {
  152. btn_insert.disabled = true;
  153. btn_update.disabled = false;
  154. }
  155. function fEnableInsertButton(){
  156. btn_insert.disabled = false;
  157. btn_update.disabled = true;
  158. ipt_emplno_d.disabled=false;
  159. ipt_emplnm_d.disabled=false;
  160. btn_emplno.disabled=false;
  161. ipt_gradupym_d.disabled = false;
  162. }
  163. function readfunc1(){
  164. model.setValue("/root/send1/year", model.getValue("/root/send/retrparams/year"));
  165. model.setValue("/root/send1/emplno", model.getValue("/root/main/promotnflaglist[" + grd_promotnflaglist.row + "]/emplno"));
  166. model.setValue("/root/send1/flag", model.getValue("/root/main/promotnflaglist[" + grd_promotnflaglist.row + "]/flag"));
  167. if (submit("TRRPB19803")){
  168. model.setValue("/root/send/retrparams/avrscore", model.getValue("/root/main/list/astemplinfo[" + 1 + "]/score1"));
  169. model.setValue("/root/send/retrparams/opinion1", model.getValue("/root/main/list/astemplinfo[" + 1 + "]/opinion1"));
  170. datagrid1.mergecells = "bycol";
  171. datagrid1.mergeCol(0) = false;
  172. datagrid1.mergeCol(1) = true;
  173. datagrid1.mergeCol(2) = false;
  174. datagrid1.mergeCol(3) = false;
  175. datagrid1.mergeCol(4) = false;
  176. datagrid1.mergeCol(5) = false;
  177. datagrid1.mergeCol(6) = false;
  178. datagrid1.mergeCol(7) = false;
  179. datagrid1.mergeCol(8) = false;
  180. datagrid1.mergeCol(9) = false;
  181. datagrid1.mergeCol(10) = false;
  182. datagrid1.mergeCol(11) = false;
  183. datagrid1.merge();
  184. }
  185. model.refresh();
  186. }
  187. ]]>
  188. </script>
  189. <submission id="TRRPB19801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/promotnflaglist"/>
  190. <submission id="TRRPB19202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/asmtinfo"/>
  191. <submission id="TRRPB19204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/list1/deptinfo"/>
  192. <submission id="TRRPB19803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send1" resultref="/root/main/list/astemplinfo"/>
  193. <submission id="TXRPB19801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/execdata" resultref="/root/hidden"/>
  194. </model>
  195. </xhtml:head>
  196. <xhtml:body guideline="2,474;2,590;2,591;1,1434;" style="margin-left:8; margin-right:8; ">
  197. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  198. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">시용평가관리</caption>
  199. </group>
  200. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:732px; ">
  201. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  202. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:19px; width:56px; height:22px; ">
  203. <caption>조회</caption>
  204. <script type="javascript" ev:event="DOMActivate">
  205. <![CDATA[
  206. misfGridInit(grd_promotnflaglist);
  207. misfGridInit(datagrid1);
  208. submit("TRRPB19801");
  209. //submit("TRRPB19204");
  210. ]]>
  211. </script>
  212. </button>
  213. <line id="line13" class="line_4" style="x1:1110px; y1:17px; x2:1110px; y2:46px; "/>
  214. <caption id="caption278" class="tit_2" style="left:5px; top:59px; width:113px; height:14px; ">평가대상자 목록</caption>
  215. <line id="line207" class="line_1" style="x1:179px; y1:78px; x2:1191px; y2:78px; "/>
  216. <!--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; ">
  217. <col ref="instcd"/>
  218. <col ref="deptcd"/>
  219. </datagrid-->
  220. <button id="button19" class="btn2_letter4" visibility="hidden" style="left:1120px; top:55px; width:64px; height:19px; ">
  221. <caption>엑셀저장</caption>
  222. <script type="javascript" ev:event="DOMActivate">
  223. <![CDATA[
  224. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  225. if (fileName != "")
  226. {
  227. grd_promotnflaglist.saveExcel(fileName, "SheetName", true, true, "", "");
  228. }
  229. ]]>
  230. </script>
  231. </button>
  232. <!--button id="button3" class="btn2_letter3" style="left:955px; top:48px; width:53px; height:19px; ">
  233. <caption>행추가</caption>
  234. <script type="javascript" ev:event="DOMActivate">
  235. <![CDATA[
  236. ]]>
  237. </script>
  238. </button>
  239. <button id="button4" class="btn2_letter3" style="left:1010px; top:48px; width:53px; height:19px; ">
  240. <caption>행삭제</caption>
  241. <script type="javascript" ev:event="DOMActivate">
  242. <![CDATA[
  243. ]]>
  244. </script>
  245. </button-->
  246. <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; ">
  247. <col ref="emplno" style="text-align:center; "/>
  248. <col ref="emplnm"/>
  249. <col ref="deptnm" visibility="hidden"/>
  250. <col ref="entcodd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
  251. <col ref="jobrespnm" visibility="hidden"/>
  252. <col ref="jobposnm" visibility="hidden"/>
  253. <col ref="jobkindnm" visibility="hidden"/>
  254. <col ref="ojobgradnm" visibility="hidden"/>
  255. <col ref="njobgradnm" visibility="hidden"/>
  256. <col ref="payclscd" visibility="hidden" style="text-align:center; "/>
  257. <col ref="flag" type="combo" visibility="hidden" style="left:0px; top:0px; width:0px; height:0px; ">
  258. <choices>
  259. <item>
  260. <label>팀장,과장,실장용</label>
  261. <value>A</value>
  262. </item>
  263. <item>
  264. <label>계장급용</label>
  265. <value>B</value>
  266. </item>
  267. <item>
  268. <label>간호직용</label>
  269. <value>C</value>
  270. </item>
  271. <item>
  272. <label>의료기사직,직원용</label>
  273. <value>D</value>
  274. </item>
  275. </choices>
  276. </col>
  277. <col checkvalue="Y,N" ref="gradeyn1" type="checkbox" visibility="hidden"/>
  278. <col checkvalue="Y,N" ref="gradeyn2" type="checkbox" visibility="hidden"/>
  279. <col ref="assessor1" type="inputbutton" visibility="hidden" style="text-align:right; vertical-align:middle; "/>
  280. <col ref="assessornm1" visibility="hidden"/>
  281. <col ref="assessor2" type="inputbutton" visibility="hidden" style="text-align:right; vertical-align:middle; "/>
  282. <col ref="assessornm2" visibility="hidden"/>
  283. <col ref="deptcd" visibility="hidden"/>
  284. <col ref="year" visibility="hidden"/>
  285. <col ref="ojobgradcd" visibility="hidden"/>
  286. <col ref="njobgradcd" visibility="hidden"/>
  287. <col ref="jobkindcd" visibility="hidden"/>
  288. <col ref="jobposcd" visibility="hidden"/>
  289. <script type="javascript" ev:event="onclick">
  290. <![CDATA[
  291. if (isDataCell()) {
  292. readfunc1();
  293. }
  294. ]]>
  295. </script>
  296. </datagrid>
  297. <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; ">
  298. <choices>
  299. <itemset>
  300. <label/>
  301. <value/>
  302. </itemset>
  303. </choices>
  304. </select1>
  305. <caption id="caption1" class="search_name" style="left:272px; top:19px; width:86px; height:17px; ">평가년도 :</caption>
  306. <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; ">
  307. <script type="javascript" ev:event="xforms-value-changed">
  308. <![CDATA[
  309. submit("TRRPB19801");
  310. if (model.getValue("/root/main/asmtinfo/giganyn") != "Y"){
  311. btn_save.disabled = true;
  312. }
  313. btn_search.dispatch("DOMActivate");
  314. ]]>
  315. </script>
  316. </input>
  317. <caption id="caption2" class="search_name" style="left:10px; top:19px; width:86px; height:17px; ">소속기관 :</caption>
  318. <button id="btn_dutdept" class="icon_search" disabled="true" style="left:692px; top:20px; width:16px; height:16px; ">
  319. <caption/>
  320. <script type="javascript" ev:event="DOMActivate">
  321. <![CDATA[
  322. // misfOpenPopUpList("02", ipt_dutdeptcd, "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd");
  323. misfOpenPopUpList("02", ipt_dutdeptcd,"","dutunitcd,dutunitnm", cmb_instcd.value + "," + ipt_appfromdd.value+"31", "instcd,basedd");
  324. btn_search.dispatch("DOMActivate");
  325. ]]>
  326. </script>
  327. </button>
  328. <select1 id="combo1" ref="/root/send/retrparams/deptgb" visibility="hidden" appearance="minimal" style="left:805px; top:18px; width:100px; height:19px; ">
  329. <choices>
  330. <item>
  331. <label>근무지</label>
  332. <value>1</value>
  333. </item>
  334. <item>
  335. <label>소속부서</label>
  336. <value>2</value>
  337. </item>
  338. <item>
  339. <label>소속과(팀)</label>
  340. <value>3</value>
  341. </item>
  342. <item>
  343. <label>소속부(실)</label>
  344. <value>4</value>
  345. </item>
  346. </choices>
  347. <script type="javascript" ev:event="xforms-value-changed">
  348. <![CDATA[
  349. model.setValue("/root/send/retrparams2/deptgb", model.getValue("/root/send/retrparams/deptgb"));
  350. submit("TRRPD00105");
  351. ]]>
  352. </script>
  353. </select1>
  354. <caption id="caption8" class="search_name" style="left:524px; top:19px; width:99px; height:17px; ">관리부서 :</caption>
  355. <input id="ipt_dutdeptnm" ref="/root/send/retrparams/dutunitnm" class="input_search" disabled="true" style="left:715px; top:18px; width:85px; height:19px; ">
  356. <script type="javascript" ev:event="xforms-value-changed">
  357. <![CDATA[
  358. misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd");
  359. model.setValue("/root/send/retrparams/appdd", model.getValue("/root/send/retrparams/dutym"));
  360. model.setValue("/root/send/retrparams/dutplcedeptcd", model.getValue("/root/send/retrparams/dutunitcd"));
  361. model.setValue("/root/send/retrparams/flag", "1");
  362. model.setValue("/root/send/retrparams2/instcd", model.getValue("/root/send/retrparams/instcd"));
  363. model.setValue("/root/send/retrparams2/dutunitcd", model.getValue("/root/send/retrparams/dutunitcd"));
  364. model.setValue("/root/send/retrparams2/dutym", model.getValue("/root/send/retrparams/dutym"));
  365. submit("TRRPD00105");
  366. model.refresh();
  367. ]]>
  368. </script>
  369. <script type="javascript" ev:event="onkeypress">
  370. <![CDATA[
  371. if(event.keyCode == 13)
  372. {
  373. ipt_dutdeptnm.value = ipt_dutdeptnm.currentText;
  374. misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd");
  375. model.setValue("/root/send/retrparams/appdd", model.getValue("/root/send/retrparams/dutym"));
  376. model.setValue("/root/send/retrparams/dutplcedeptcd", model.getValue("/root/send/retrparams/dutunitcd"));
  377. model.setValue("/root/send/retrparams/flag", "1");
  378. model.setValue("/root/send/retrparams2/instcd", model.getValue("/root/send/retrparams/instcd"));
  379. model.setValue("/root/send/retrparams2/dutunitcd", model.getValue("/root/send/retrparams/dutunitcd"));
  380. model.setValue("/root/send/retrparams2/dutym", model.getValue("/root/send/retrparams/dutym"));
  381. submit("TRRPD00105");
  382. model.refresh();
  383. }
  384. ]]>
  385. </script>
  386. </input>
  387. <input id="ipt_dutdeptcd" ref="/root/send/retrparams/dutunitcd" class="input_search" disabled="true" maxlength="10" style="left:612px; top:18px; width:75px; height:19px; text-align:center; ">
  388. <script type="javascript" ev:event="xforms-value-changed">
  389. <![CDATA[
  390. misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd");
  391. btn_search.dispatch("DOMActivate");
  392. ]]>
  393. </script>
  394. <script type="javascript" ev:event="onkeypress">
  395. <![CDATA[
  396. if(event.keyCode == 13)
  397. {
  398. ipt_dutdeptcd.value = ipt_dutdeptcd.currentText;
  399. misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd");
  400. model.setValue("/root/send/retrparams/appdd", model.getValue("/root/send/retrparams/dutym"));
  401. model.setValue("/root/send/retrparams/dutplcedeptcd", model.getValue("/root/send/retrparams/dutunitcd"));
  402. model.setValue("/root/send/retrparams/flag", "1");
  403. model.setValue("/root/send/retrparams2/instcd", model.getValue("/root/send/retrparams/instcd"));
  404. model.setValue("/root/send/retrparams2/dutunitcd", model.getValue("/root/send/retrparams/dutunitcd"));
  405. model.setValue("/root/send/retrparams2/dutym", model.getValue("/root/send/retrparams/dutym"));
  406. submit("TRRPD00105");
  407. model.refresh();
  408. }
  409. ]]>
  410. </script>
  411. </input>
  412. <select1 id="combo2" visibility="hidden" appearance="minimal" style="left:950px; top:18px; width:100px; height:19px; ">
  413. <choices>
  414. <item>
  415. <label>1차평가</label>
  416. <value>1</value>
  417. </item>
  418. <item>
  419. <label>2차평가</label>
  420. <value>2</value>
  421. </item>
  422. </choices>
  423. </select1>
  424. <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>
  425. <line id="line1" class="line_1" style="x1:0px; y1:78px; x2:175px; y2:78px; "/>
  426. <caption id="caption4" class="tit_2" style="left:180px; top:59px; width:113px; height:14px; ">평가내역</caption>
  427. <caption id="caption5" style="left:945px; top:55px; width:64px; height:20px; font-weight:bold; ">합계점수 :</caption>
  428. <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; "/>
  429. <datagrid id="datagrid1" nodeset="/root/main/list/astemplinfo" class="datagrid2" autoresize="true" caption="고려요소^평가요소^고려요소명칭^평가내용^A점수^B점수^C점수^D점수^E점수^평가등급^평가점수^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10" colsep="^" colwidth="116, 35, 124, 287, 40, 42, 42, 42, 42, 122, 67, 21, 17, 21, 17, 14, 17, 22, 13, 18, 24" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:179px; top:83px; width:1015px; height:609px; font-size:12pxpt; ">
  430. <col disabled="true" ref="elemlrg" type="combo" style="font-size:10pt; text-align:left; ">
  431. <choices>
  432. <item>
  433. <label>업무실적</label>
  434. <value>1</value>
  435. </item>
  436. <item>
  437. <label>업무수행능력</label>
  438. <value>2</value>
  439. </item>
  440. <item>
  441. <label>업무수행태도</label>
  442. <value>3</value>
  443. </item>
  444. <item>
  445. <label>업무성과</label>
  446. <value>4</value>
  447. </item>
  448. <item>
  449. <label>생활면</label>
  450. <value>5</value>
  451. </item>
  452. <item>
  453. <label>친절면</label>
  454. <value>6</value>
  455. </item>
  456. </choices>
  457. </col>
  458. <col ref="elemmdl" visibility="hidden" style="font-size:10pt; "/>
  459. <col ref="elemnm" style="font-size:10pt; "/>
  460. <col ref="cmt" style="font-size:10pt; "/>
  461. <col ref="asmta1score" format="(-)###" style="font-size:10pt; text-align:center; "/>
  462. <col ref="asmtb1score" format="(-)###" style="font-size:10pt; text-align:center; "/>
  463. <col ref="asmtc1score" format="(-)###" style="font-size:10pt; text-align:center; "/>
  464. <col ref="asmtd1score" format="(-)###" style="font-size:10pt; text-align:center; "/>
  465. <col ref="asmte1score" format="(-)###" style="font-size:10pt; text-align:center; "/>
  466. <col ref="elemgrd" type="combo" style="font-size:10pt; text-align:center; ">
  467. <choices>
  468. <item>
  469. <label>A등급</label>
  470. <value>A</value>
  471. </item>
  472. <item>
  473. <label>B등급</label>
  474. <value>B</value>
  475. </item>
  476. <item>
  477. <label>C등급</label>
  478. <value>C</value>
  479. </item>
  480. <item>
  481. <label>D등급</label>
  482. <value>D</value>
  483. </item>
  484. <item>
  485. <label>E등급</label>
  486. <value>E</value>
  487. </item>
  488. </choices>
  489. </col>
  490. <col ref="score" format="(-)###" style="font-size:10pt; text-align:center; "/>
  491. <col ref="year" visibility="hidden"/>
  492. <col ref="emplno" visibility="hidden"/>
  493. <col ref="flag" visibility="hidden"/>
  494. <col ref="asmta1yn" visibility="hidden"/>
  495. <col ref="asmtb1yn" visibility="hidden"/>
  496. <col ref="asmtc1yn" visibility="hidden"/>
  497. <col ref="asmtd1yn" visibility="hidden"/>
  498. <col ref="asmte1yn" visibility="hidden"/>
  499. <col ref="score1" visibility="hidden"/>
  500. <col ref="opinion1" visibility="hidden"/>
  501. <col ref="deptcd" visibility="hidden"/>
  502. <script type="javascript" ev:event="xforms-value-changed">
  503. <![CDATA[
  504. if (datagrid1.colAttribute(datagrid1.col,"ref") == "elemgrd" ) {
  505. var elemgrd = model.getValue("/root/main/list/astemplinfo[" + datagrid1.row + "]/elemgrd");
  506. if (elemgrd == "E"){
  507. if (model.getValue("/root/main/list/astemplinfo[" + datagrid1.row + "]/asmte1score") == "" || model.getValue("/root/main/list/astemplinfo[" + datagrid1.row + "]/asmte1score") == "0"){
  508. model.setValue("/root/main/list/astemplinfo[" + datagrid1.row + "]/elemgrd", "");
  509. model.refresh();
  510. messageBox(datagrid1.row + "의 1차평가에서 E등급은 선택할 수 없습니다.", "E999", "");
  511. return;
  512. }
  513. }
  514. if (elemgrd == "A"){
  515. model.setValue("/root/main/list/astemplinfo[" + datagrid1.row + "]/score", model.getValue("/root/main/list/astemplinfo[" + datagrid1.row + "]/asmta1score"));
  516. }else if (elemgrd == "B"){
  517. model.setValue("/root/main/list/astemplinfo[" + datagrid1.row + "]/score", model.getValue("/root/main/list/astemplinfo[" + datagrid1.row + "]/asmtb1score"));
  518. }else if (elemgrd == "C"){
  519. model.setValue("/root/main/list/astemplinfo[" + datagrid1.row + "]/score", model.getValue("/root/main/list/astemplinfo[" + datagrid1.row + "]/asmtc1score"));
  520. }else if (elemgrd == "D"){
  521. model.setValue("/root/main/list/astemplinfo[" + datagrid1.row + "]/score", model.getValue("/root/main/list/astemplinfo[" + datagrid1.row + "]/asmtd1score"));
  522. }else if (elemgrd == "E"){
  523. model.setValue("/root/main/list/astemplinfo[" + datagrid1.row + "]/score", model.getValue("/root/main/list/astemplinfo[" + datagrid1.row + "]/asmte1score"));
  524. }
  525. }
  526. var avrscore = 0;
  527. var score = 0;
  528. for (var i = 1; i < datagrid1.rows; i ++){
  529. score = model.getValue("/root/main/list/astemplinfo[" + i + "]/score");
  530. if (isNaN(score) || score == ""){
  531. score = 0;
  532. }
  533. avrscore = parseInt(avrscore) + parseInt(score);
  534. }
  535. model.setValue("/root/send/retrparams/avrscore", avrscore);
  536. model.refresh();
  537. ]]>
  538. </script>
  539. </datagrid>
  540. <caption id="caption7" style="left:265px; top:700px; width:80px; height:20px; font-weight:bold; ">★ 기타의견:</caption>
  541. <input id="input1" ref="/root/send/retrparams/opinion1" maxlength="150" style="left:352px; top:700px; width:793px; height:19px; ">
  542. <script type="javascript" ev:event="xforms-value-changed">
  543. <![CDATA[
  544. datagrid1.rowStatus(1) = 2;
  545. model.refresh();
  546. ]]>
  547. </script>
  548. </input>
  549. </group>
  550. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:28px; ">
  551. <line id="line4" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25; "/>
  552. <button id="btn_save" class="btn4_letter2" style="left:1130px; top:3px; width:56px; height:22px; ">
  553. <caption>저장</caption>
  554. <script type="javascript" ev:event="DOMActivate">
  555. <![CDATA[
  556. var score1 = 0;
  557. for (var i = 1; i < datagrid1.rows; i ++){
  558. var score = model.getValue("/root/main/list/astemplinfo[" + i + "]/score");
  559. if (isNaN(score)){
  560. score = 0;
  561. }
  562. score1 = parseInt(score1) + parseInt(score);
  563. }
  564. for (var i = 1; i < datagrid1.rows; i ++){
  565. var elemgrd = model.getValue("/root/main/list/astemplinfo[" + i + "]/elemgrd");
  566. if (elemgrd == ""){
  567. messageBox(i + "번째에 대한 평가내역을 선택한 후 처리하시기 바랍니다.", "E999", "");
  568. return;
  569. }
  570. model.setValue("/root/main/list/astemplinfo[" + i + "]/opinion1", model.getValue("/root/send/retrparams/opinion1"));
  571. model.setValue("/root/main/list/astemplinfo[" + i + "]/score1", score1);
  572. model.setValue("/root/main/list/astemplinfo[" + i + "]/deptcd", model.getValue("/root/send/retrparams/dutunitcd"));
  573. model.refresh();
  574. }
  575. var updtdata = getGridUpdateData(datagrid1);
  576. if (updtdata == "" ) {
  577. messageBox("변경된 데이터가","I004");
  578. return;
  579. }
  580. var ret = messageBox("저장합니다.","Q003");
  581. if (ret != 6) { // not OK
  582. return;
  583. } else {
  584. model.setValue("/root/send/execdata/astemplinfo", updtdata);
  585. var irow = grd_promotnflaglist.row;
  586. if (submit("TXRPB19801")){
  587. //submit("TRRPB19204");
  588. grd_promotnflaglist.row = irow;
  589. readfunc1();
  590. }
  591. }
  592. ]]>
  593. </script>
  594. </button>
  595. </group>
  596. </xhtml:body>
  597. </xhtml:html>