PuSuppFixApprPopErp.jsp 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787
  1. <%--
  2. - FileName : PuSuppFixApprPop.jsp
  3. - Author(s) : lsm
  4. -
  5. --%>
  6. <%@ page contentType="text/html; charset=utf-8" %>
  7. <%@ page import="com.udapsoft.waf.system.HandlerStorage" %>
  8. <%@ page import="kr.co.hsnc.common.util.ValueObject" %>
  9. <%@ page import="kr.co.hsnc.common.sql.RowSet" %>
  10. <%@ page import="com.udapsoft.waf.common.ui.*" %>
  11. <%@ page import="com.udapsoft.waf.common.util.StringUtils" %>
  12. <%@ page import="kr.co.hsnc.common.config.WAFConfig" %>
  13. <%@ include file="/jsp/work/taglib.jsp" %>
  14. <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
  15. <%
  16. ctx.init(request, response);
  17. HandlerStorage storage = ctx.getHandlerStorage();
  18. ValueObject params = storage.getParams();
  19. ValueObject user = storage.getUser();
  20. String event = storage.getEvent();
  21. RowSet getApprSrdList = storage.getRowSet("getApprSrdList");
  22. ValueObject vo = storage.getValueObject("getAppr");
  23. String yyyymmdd = (new java.text.SimpleDateFormat ("yyyy년 MM월 dd일")).format (new java.util.Date());
  24. String appr_date = (new java.text.SimpleDateFormat ("yyyyMMdd")).format (new java.util.Date());
  25. %>
  26. <script type="text/javascript">
  27. $(function(){
  28. $(window).load(function () {
  29. $(".gubun").each(function () {
  30. var rows = $(".gubun:contains('" + $(this).text() + "')");
  31. if (rows.length > 1) {
  32. rows.eq(0).attr("rowspan", rows.length);
  33. rows.not(":eq(0)").remove();
  34. }
  35. });
  36. //jQuery("#sign_space").hide();
  37. });
  38. $(':radio[name^=test_]').click(function(){
  39. var grade = ['S','A', 'B', 'C', 'D'];
  40. var i = this.name.split('test_')[1];
  41. var index = $(':radio[name="test_' + i + '"]').index($(this));
  42. //$("#result_" + i).text($(this).val() + "점");
  43. $("#chkResultCd_" + i).val(grade[index]);
  44. });
  45. /*
  46. $(':radio[name="test_0"]').click(function(){
  47. $("#result_0").text($(':radio[name="test_0"]:checked').val() + "점");
  48. if($(':radio[name="test_0"]:checked').val() == "10")
  49. {
  50. $("#chkResultCd_0").val("A");
  51. }
  52. else if($(':radio[name="test_0"]:checked').val() == "9")
  53. {
  54. $("#chkResultCd_0").val("B");
  55. }
  56. else if($(':radio[name="test_0"]:checked').val() == "8")
  57. {
  58. $("#chkResultCd_0").val("C");
  59. }
  60. else if($(':radio[name="test_0"]:checked').val() == "7")
  61. {
  62. $("#chkResultCd_0").val("D");
  63. }
  64. else if($(':radio[name="test_0"]:checked').val() == "6")
  65. {
  66. $("#chkResultCd_0").val("E");
  67. }
  68. });
  69. $(':radio[name="test_1"]').click(function(){
  70. $("#result_1").text($(':radio[name="test_1"]:checked').val() + "점");
  71. if($(':radio[name="test_1"]:checked').val() == "15")
  72. {
  73. $("#chkResultCd_1").val("A");
  74. }
  75. else if($(':radio[name="test_1"]:checked').val() == "12")
  76. {
  77. $("#chkResultCd_1").val("B");
  78. }
  79. else if($(':radio[name="test_1"]:checked').val() == "10")
  80. {
  81. $("#chkResultCd_1").val("C");
  82. }
  83. else if($(':radio[name="test_1"]:checked').val() == "8")
  84. {
  85. $("#chkResultCd_1").val("D");
  86. }
  87. else if($(':radio[name="test_1"]:checked').val() == "6")
  88. {
  89. $("#chkResultCd_1").val("E");
  90. }
  91. });
  92. $(':radio[name="test_2"]').click(function(){
  93. $("#result_2").text($(':radio[name="test_2"]:checked').val() + "점");
  94. if($(':radio[name="test_2"]:checked').val() == "10")
  95. {
  96. $("#chkResultCd_2").val("A");
  97. }
  98. else if($(':radio[name="test_2"]:checked').val() == "8")
  99. {
  100. $("#chkResultCd_2").val("B");
  101. }
  102. else if($(':radio[name="test_2"]:checked').val() == "6")
  103. {
  104. $("#chkResultCd_2").val("C");
  105. }
  106. else if($(':radio[name="test_2"]:checked').val() == "4")
  107. {
  108. $("#chkResultCd_2").val("D");
  109. }
  110. else if($(':radio[name="test_2"]:checked').val() == "2")
  111. {
  112. $("#chkResultCd_2").val("E");
  113. }
  114. });
  115. $(':radio[name="test_3"]').click(function(){
  116. $("#result_3").text($(':radio[name="test_3"]:checked').val() + "점");
  117. if($(':radio[name="test_3"]:checked').val() == "10")
  118. {
  119. $("#chkResultCd_3").val("A");
  120. }
  121. else if($(':radio[name="test_3"]:checked').val() == "8")
  122. {
  123. $("#chkResultCd_3").val("B");
  124. }
  125. else if($(':radio[name="test_3"]:checked').val() == "6")
  126. {
  127. $("#chkResultCd_3").val("C");
  128. }
  129. else if($(':radio[name="test_3"]:checked').val() == "4")
  130. {
  131. $("#chkResultCd_3").val("D");
  132. }
  133. else if($(':radio[name="test_3"]:checked').val() == "2")
  134. {
  135. $("#chkResultCd_3").val("E");
  136. }
  137. });
  138. $(':radio[name="test_4"]').click(function(){
  139. $("#result_4").text($(':radio[name="test_4"]:checked').val() + "점");
  140. if($(':radio[name="test_4"]:checked').val() == "15")
  141. {
  142. $("#chkResultCd_4").val("A");
  143. }
  144. else if($(':radio[name="test_4"]:checked').val() == "12")
  145. {
  146. $("#chkResultCd_4").val("B");
  147. }
  148. else if($(':radio[name="test_4"]:checked').val() == "10")
  149. {
  150. $("#chkResultCd_4").val("C");
  151. }
  152. else if($(':radio[name="test_4"]:checked').val() == "8")
  153. {
  154. $("#chkResultCd_4").val("D");
  155. }
  156. else if($(':radio[name="test_4"]:checked').val() == "6")
  157. {
  158. $("#chkResultCd_4").val("E");
  159. }
  160. });
  161. $(':radio[name="test_5"]').click(function(){
  162. $("#result_5").text($(':radio[name="test_5"]:checked').val() + "점");
  163. if($(':radio[name="test_5"]:checked').val() == "5")
  164. {
  165. $("#chkResultCd_5").val("A");
  166. }
  167. else if($(':radio[name="test_5"]:checked').val() == "3")
  168. {
  169. $("#chkResultCd_5").val("B");
  170. }
  171. else if($(':radio[name="test_5"]:checked').val() == "0")
  172. {
  173. $("#chkResultCd_5").val("C");
  174. }
  175. else if($(':radio[name="test_5"]:checked').val() == "-3")
  176. {
  177. $("#chkResultCd_5").val("D");
  178. }
  179. else if($(':radio[name="test_5"]:checked').val() == "-5")
  180. {
  181. $("#chkResultCd_5").val("E");
  182. }
  183. });
  184. */
  185. $("#btn_save").click(function(){
  186. var f = document.form1;
  187. /* if($("#APPR_NOTE").val().length < 1 ) {
  188. alert("담당자 의견은 필수입니다. ");
  189. return ;
  190. } */
  191. $("#fevent").val("GET_SAVE");
  192. if(confirm("저장하시겠습니까?"))
  193. {
  194. submitXmlRequest("/supplier/purchase/PuSuppFixApprPopSave.screen", "GET_SAVE", f);
  195. }
  196. });
  197. /* $("#btn_print").click(function(){
  198. jQuery("#btn_save").hide();
  199. jQuery("#btn_print").hide();
  200. jQuery("#btn_close").hide();
  201. jQuery("#sign_space").show();
  202. window.print();
  203. jQuery("#btn_save").show();
  204. jQuery("#btn_print").show();
  205. jQuery("#btn_close").show();
  206. jQuery("#sign_space").hide();
  207. //self.close();
  208. });
  209. $("#btn_close").click(function(){
  210. self.close();
  211. }); */
  212. });
  213. $(document).ready(function(){
  214. loadTest();
  215. jQuery("#WRITE_NO").val("<%=params.get("user_id")%>");
  216. jQuery("#WRITE_NM").val("<%=params.get("user_nm")%>");
  217. for(i=0; i < <%=getApprSrdList.size()%>; i++)
  218. {
  219. var index = $(':radio[name="test_'+i+'"]').index($(':radio[name="test_'+i+'"]:checked')) +1;
  220. if(index != 0)
  221. {
  222. if($(':radio[name="test_'+i+'"]:checked'))
  223. {
  224. $("#result_"+i+"").text($(':radio[name="test_'+i+'"]:checked').val());
  225. if(index == "1")
  226. {
  227. $("#chkResultCd_"+i).val("S");
  228. }
  229. else if(index == "2")
  230. {
  231. $("#chkResultCd_"+i).val("A");
  232. }
  233. else if(index == "3")
  234. {
  235. $("#chkResultCd_"+i).val("B");
  236. }
  237. else if(index == "4")
  238. {
  239. $("#chkResultCd_"+i).val("C");
  240. }
  241. else if(index == "5")
  242. {
  243. $("#chkResultCd_"+i).val("D");
  244. }
  245. }
  246. }
  247. }
  248. });
  249. function doResult(resultObj) {
  250. var f = document.form1;
  251. try
  252. {
  253. document.form1.isSubmit = false;
  254. if($("#fevent").val() == "GET_SAVE")
  255. {
  256. if (resultObj.getSuccess())
  257. {
  258. alert("평가표 저장이 완료되었습니다.");
  259. }
  260. else
  261. {
  262. dlgErrorMsg( resultObj );
  263. }
  264. }
  265. }
  266. catch(errorObject) {
  267. showErrorDlg("doResult()", errorObject);
  268. }
  269. }
  270. function test(obj, code) {
  271. var id = document.getElementById(obj.getAttribute("id")).getAttribute("id");
  272. var cnt = obj.name.substring(obj.name.lastIndexOf("_")+1, obj.name.length);
  273. document.getElementById("result_" + cnt).innerHTML = obj.value;
  274. var cnt2 = id.substring(id.indexOf("_")+1, id.lastIndexOf("_"));
  275. var appr_cd = "";
  276. var idx = 0;
  277. var idx2 = 0;
  278. var total_1 = 0;
  279. var total_2 = 0;
  280. var total_3 = 0;
  281. var total_4 = 0;
  282. <%
  283. for(int k=0; k < getApprSrdList.size(); k++)
  284. {
  285. %>
  286. total_1 += Number(document.getElementById("result_" + idx).innerHTML);
  287. //document.getElementById("totalAll_0").innerHTML = total_1;
  288. if(document.getElementById("test_"+cnt2+"_" + idx).checked)
  289. {
  290. if(cnt2 == "1")
  291. {
  292. document.form1.chkResultCd_<%=k%>.value = "S";
  293. }
  294. else if(cnt2 == "2")
  295. {
  296. document.form1.chkResultCd_<%=k%>.value = "A";
  297. }
  298. else if(cnt2 == "3")
  299. {
  300. document.form1.chkResultCd_<%=k%>.value = "B";
  301. }
  302. else if(cnt2 == "4")
  303. {
  304. document.form1.chkResultCd_<%=k%>.value = "C";
  305. }
  306. else if(cnt2 == "5")
  307. {
  308. document.form1.chkResultCd_<%=k%>.value = "D";
  309. }
  310. else
  311. {
  312. document.form1.chkResultCd_<%=k%>.value = "D";
  313. }
  314. }
  315. idx++;
  316. <%-- if("01" == "<%=getApprSrdList.getRow(k).get("APPR_CD").substring(0,2)%>") {
  317. total_1 += Number(document.getElementById("result_" + idx).innerHTML);
  318. //document.getElementById("totalAll_0").innerHTML = total_1;
  319. if(document.getElementById("test_"+cnt2+"_" + idx).checked)
  320. {
  321. if(cnt2 == "1")
  322. {
  323. document.form1.chkResultCd_<%=k%>.value = "S";
  324. }
  325. else if(cnt2 == "2")
  326. {
  327. document.form1.chkResultCd_<%=k%>.value = "A";
  328. }
  329. else if(cnt2 == "3")
  330. {
  331. document.form1.chkResultCd_<%=k%>.value = "B";
  332. }
  333. else if(cnt2 == "4")
  334. {
  335. document.form1.chkResultCd_<%=k%>.value = "C";
  336. }
  337. else if(cnt2 == "5")
  338. {
  339. document.form1.chkResultCd_<%=k%>.value = "D";
  340. }
  341. else
  342. {
  343. document.form1.chkResultCd_<%=k%>.value = "D";
  344. }
  345. }
  346. idx++;
  347. }
  348. else if("02" == "<%=getApprSrdList.getRow(k).get("APPR_CD").substring(0,2)%>")
  349. {
  350. total_2 += Number(document.getElementById("result_" + idx).innerHTML);
  351. //document.getElementById("totalAll_1").innerHTML = total_2;
  352. if(document.getElementById("test_"+cnt2+"_" + idx).checked)
  353. {
  354. if(cnt2 == "1")
  355. {
  356. document.form1.chkResultCd_<%=k%>.value = "S";
  357. }
  358. else if(cnt2 == "2")
  359. {
  360. document.form1.chkResultCd_<%=k%>.value = "A";
  361. }
  362. else if(cnt2 == "3")
  363. {
  364. document.form1.chkResultCd_<%=k%>.value = "B";
  365. }
  366. else if(cnt2 == "4")
  367. {
  368. document.form1.chkResultCd_<%=k%>.value = "C";
  369. }
  370. else if(cnt2 == "5")
  371. {
  372. document.form1.chkResultCd_<%=k%>.value = "D";
  373. }
  374. }
  375. idx++;
  376. }
  377. else if("03" == "<%=getApprSrdList.getRow(k).get("APPR_CD").substring(0,2)%>")
  378. {
  379. total_3 += Number(document.getElementById("result_" + idx).innerHTML);
  380. //document.getElementById("totalAll_2").innerHTML = total_3;
  381. if(document.getElementById("test_"+cnt2+"_" + idx).checked)
  382. {
  383. if(cnt2 == "1")
  384. {
  385. document.form1.chkResultCd_<%=k%>.value = "S";
  386. }
  387. else if(cnt2 == "2")
  388. {
  389. document.form1.chkResultCd_<%=k%>.value = "A";
  390. }
  391. else if(cnt2 == "3")
  392. {
  393. document.form1.chkResultCd_<%=k%>.value = "B";
  394. }
  395. else if(cnt2 == "4")
  396. {
  397. document.form1.chkResultCd_<%=k%>.value = "C";
  398. }
  399. else if(cnt2 == "5")
  400. {
  401. document.form1.chkResultCd_<%=k%>.value = "D";
  402. }
  403. }
  404. idx++;
  405. }
  406. else if("06" == "<%=getApprSrdList.getRow(k).get("APPR_CD").substring(0,2)%>")
  407. {
  408. total_4 += Number(document.getElementById("result_" + idx).innerHTML);
  409. //document.getElementById("totalAll_3").innerHTML = total_4;
  410. if(document.getElementById("test_"+cnt2+"_" + idx).checked)
  411. {
  412. if(cnt2 == "1")
  413. {
  414. document.form1.chkResultCd_<%=k%>.value = "S";
  415. }
  416. else if(cnt2 == "2")
  417. {
  418. document.form1.chkResultCd_<%=k%>.value = "A";
  419. }
  420. else if(cnt2 == "3")
  421. {
  422. document.form1.chkResultCd_<%=k%>.value = "B";
  423. }
  424. else if(cnt2 == "4")
  425. {
  426. document.form1.chkResultCd_<%=k%>.value = "C";
  427. }
  428. else if(cnt2 == "5")
  429. {
  430. document.form1.chkResultCd_<%=k%>.value = "D";
  431. }
  432. }
  433. idx++;
  434. } --%>
  435. <%
  436. }
  437. %>
  438. //document.getElementById("total_rate_all").innerHTML = total_1 + total_2 + total_3 + total_4;
  439. document.getElementById("total_value").innerHTML = total_1 + total_2 + total_3 + total_4;
  440. //document.form1.appr_tot_rate.value = total_1 + total_2 + total_3 + total_4;
  441. var total_test_value = total_1 + total_2 + total_3 + total_4;
  442. if(total_test_value >= 55)
  443. {
  444. document.getElementById("total_level").innerHTML = "S등급";
  445. document.form1.item_std_cd.value = "S";
  446. }
  447. else if(total_test_value >= 50)
  448. {
  449. document.getElementById("total_level").innerHTML = "A등급";
  450. document.form1.item_std_cd.value = "A";
  451. }
  452. else if(total_test_value >= 45)
  453. {
  454. document.getElementById("total_level").innerHTML = "B등급";
  455. document.form1.item_std_cd.value = "B";
  456. }
  457. else if(total_test_value >= 35)
  458. {
  459. document.getElementById("total_level").innerHTML = "C등급";
  460. document.form1.item_std_cd.value = "C";
  461. }
  462. else
  463. {
  464. document.getElementById("total_level").innerHTML = "D등급";
  465. document.form1.item_std_cd.value = "D";
  466. }
  467. }
  468. function loadTest()
  469. {
  470. <%
  471. for (int ll = 0; ll < getApprSrdList.size(); ll++)
  472. {
  473. %>
  474. var index = $(':radio[name="test_<%=ll%>"]').index($(':radio[name="test_<%=ll%>"]:checked'))+1;
  475. if(index == "1")
  476. {
  477. $("#test_1_<%=ll%>").click();
  478. }
  479. else if(index == "2")
  480. {
  481. $("#test_2_<%=ll%>").click();
  482. }
  483. else if(index == "3")
  484. {
  485. $("#test_3_<%=ll%>").click();
  486. }
  487. else if(index == "4")
  488. {
  489. $("#test_4_<%=ll%>").click();
  490. }
  491. else if(index == "5")
  492. {
  493. $("#test_5_<%=ll%>").click();
  494. }
  495. <%
  496. }
  497. %>
  498. }
  499. //첨부파일
  500. <%-- function doAttachFile(obj) {
  501. var file_div = "payment/purchase/"+"<%=params.get("p_pur_cont_id")%>"+"/";
  502. var fileName = "현장평가표_"+"<%=params.get("corp_kor") %>";
  503. var upLoadFlg = "Y";
  504. viewFileListNew ("FIX_PUR_APPR", obj.value, document.form1.search_spot_button, upLoadFlg, file_div, null, null, null, null, "N", fileName);
  505. } --%>
  506. </script>
  507. <modular:search id="form1">
  508. <modular:key id="fevent" />
  509. </modular:search>
  510. <form id="form1" name="form1" method="post" modular:type="search">
  511. <input type="hidden" name="fevent" id="fevent" value="">
  512. <input type=hidden name="corp_id" id="corp_id" value="<%=params.get("p_corp_id") %>" />
  513. <input type="hidden" name="corp_no" id="corp_no" value="<%=params.get("corp_no") %>" />
  514. <input type="hidden" name="dept_cd" id="dept_cd" value="<%=params.get("p_dept_cd") %>" />
  515. <input type="hidden" name="dept_nm" id="dept_nm" value="<%=params.get("dept_nm") %>" />
  516. <input type="hidden" name="doc_cd" id="doc_cd" value="<%=params.get("doc_cd") %>" />
  517. <input type="hidden" name="user_id" id="user_id" value="<%=params.get("user_id") %>" />
  518. <input type="hidden" name="user_nm" id="user_nm" value="<%=params.get("user_nm") %>" /> <!--2016.4.20 현재작성자정보 저장 -->
  519. <input type="hidden" name="user_id_before" id="user_id_before" value="<%=params.get("user_id_before") %>" />
  520. <input type="hidden" name="user_nm_before" id="user_nm_before" value="<%=params.get("user_nm_before") %>" /> <!--2016.4.20 현재작성자정보 저장 -->
  521. <input type="hidden" name="item_std_cd" id="item_std_cd" value="" />
  522. <input type="hidden" name="ord_doc_no" id="ord_doc_no" value="<%=params.get("p_ord_doc_no") %>" />
  523. <input type="hidden" name="cont_id" id="cont_id" value="<%=params.get("p_pur_cont_id") %>" />
  524. <input type="hidden" name="listSize" id="listSize" value="<%=getApprSrdList.size() %>" />
  525. <input type="hidden" name="appr_date" id="appr_date" value="<%=appr_date %>" />
  526. <input type="hidden" name="WRITE_NO" id="WRITE_NO" value="<%=vo.get("WRITE_NO") %>" />
  527. <input type="hidden" name="WRITE_NM" id="WRITE_NM" value="<%=vo.get("WRITE_NM") %>" /><!--2016.4.21 본사담당자 평가 내용 저장 -->
  528. <input type="hidden" name="arr_id" id="arr_id" value="<%=vo.get("arr_id") %>" />
  529. <input type="hidden" name="p_status" id="p_status" value="<%=params.get("p_status")%>" />
  530. <div style="width: 100%; text-align: center; margin-top: 10px; margin-bottom: 15px;" >
  531. <span style="font-size: 15px; font-weight: bold;">협력업체 준공 평가표(<%=params.get("doc_cd").equals("03") ? "Manufacturer" : params.get("doc_cd").equals("04") ? "Agent" : "" %>)</span>
  532. </div>
  533. <%-- <table cellspacing="0" cellpadding="0" border="0" bordercolordark="#FFFFF" bordercolorlight="#d2d2d2" class="input_table" style="width: 100%;">
  534. <col width="80%">
  535. <col width="*">
  536. <tr>
  537. <td>
  538. <table cellspacing="0" cellpadding="0" border="0" bordercolordark="#FFFFF" bordercolorlight="#d2d2d2" class="input_table" style="width: 100%;">
  539. <tr><td><BR>평가자 : <%=params.get("user_nm_before") %></BR></td></tr>
  540. <tr><td><BR>평가일 : <%=params.get("dt_before")%></BR></td></tr>
  541. <tr><td><BR>업체명 : <%=params.get("corp_kor") %></BR></td></tr>
  542. </table>
  543. <td>
  544. <table id="sign_space" cellspacing="0" cellpadding="0" border="1" bordercolordark="#FFFFF" bordercolorlight="#d2d2d2" class="input_table" style="width: 250px;">
  545. <col width="10%">
  546. <col width="30%">
  547. <col width="30%">
  548. <col width="*">
  549. <TR><TD ROWSPAN="3" class="title" align="center">결재</TD>
  550. <td class="title" align="center">담당자</td>
  551. <td class="title" align="center"></td>
  552. <td class="title" align="center"></td>
  553. </TR>
  554. <tr>
  555. <td style="height: 80px;"></td>
  556. <td style="height: 80px;"></td>
  557. <td style="height: 80px;"></td>
  558. </tr>
  559. </table>
  560. </table>
  561. </td>
  562. </tr>
  563. <BR></BR> --%>
  564. <div style="width: 100%; vertical-align: middle; float: left; text-align: left; padding-bottom: 8px;" >
  565. 평가자 : <%=params.get("user_nm_before") %>
  566. </div>
  567. <div style="width: 100%; vertical-align: middle; float: left; text-align: left; padding-bottom: 8px;" >
  568. 평가일 : <%=params.get("dt_before")%>
  569. </div>
  570. <div style="width: 100%; vertical-align: middle; float: left; text-align: left; padding-bottom: 8px;" >
  571. 업체명 : <%=params.get("corp_kor") %>
  572. </div>
  573. <table cellspacing="0" cellpadding="0" border="1" bordercolordark="#FFFFF" bordercolorlight="#d2d2d2" class="input_table" style="width: 100%;">
  574. <col width="7%">
  575. <col width="7%">
  576. <col width="14%">
  577. <col width="7%">
  578. <col width="7%">
  579. <col width="7%">
  580. <col width="7%">
  581. <col width="7%">
  582. <col width="7%">
  583. <col width="7%">
  584. <col width="14%">
  585. <!-- <col width="*"> -->
  586. <tr style="height: 23px;">
  587. <td class="insert_table_title" colspan="3" style="text-align: center;">평가항목</td>
  588. <td class="insert_table_title" rowspan="2" style="text-align: center;">배당점수</td>
  589. <td class="insert_table_title" rowspan="2" style="text-align: center; text-indent : 0px;">평가점수</td>
  590. <td class="insert_table_title" colspan="5" style="text-align: center;">배점기준</td>
  591. <td class="insert_table_title" rowspan="2" style="text-align: center;">평가사유</td>
  592. <!-- <td class="insert_table_title" rowspan="2" style="text-align: center;">REMARK</td> -->
  593. </tr>
  594. <tr style="height: 23px;">
  595. <td class="insert_table_title" style="text-align: center;">대분류</td>
  596. <td class="insert_table_title" style="text-align: center;">중분류</td>
  597. <td class="insert_table_title" style="text-align: center;">세부항목</td>
  598. <td class="insert_table_title" style="text-align: center;">S</td>
  599. <td class="insert_table_title" style="text-align: center;">A</td>
  600. <td class="insert_table_title" style="text-align: center;">B</td>
  601. <td class="insert_table_title" style="text-align: center;">C</td>
  602. <td class="insert_table_title" style="text-align: center;">D</td>
  603. </tr>
  604. <%
  605. String chk = "";
  606. int idx = 0;
  607. int sum_stock_rate = 0;
  608. int all_sum_stock_rate = 0;
  609. String appr_cd = "";
  610. for(int i=0; i < getApprSrdList.size(); i++)
  611. {
  612. %>
  613. <tr>
  614. <td class="insert_table_title gubun" style="text-indent: 0px;"><%=getApprSrdList.getRow(i).get("GUBUN_1") %></td>
  615. <td class="insert_table_title gubun" style="text-indent: 0px;"><%=getApprSrdList.getRow(i).get("GUBUN_2") %></td>
  616. <td class="insert_table_title gubun" style="text-indent: 0px; text-align: left;"><%=getApprSrdList.getRow(i).get("GUBUN_3") %></td>
  617. <td class="insert_table_title" style="text-align: center; text-indent: 0px;"><%=getApprSrdList.getRow(i).get("STOCK_RATE") %></td>
  618. <td style="text-align: center; text-indent: 0px;">
  619. <div id="result_<%=i%>">0</div>
  620. <div style="display: none;"><input type="text" name="appr_cd_<%=i %>" id="appr_cd_<%=i %>" value="<%=getApprSrdList.getRow(i).get("APPR_CD") %>" /></div>
  621. <div style="display: none;"><input type="text" name="chkResultCd_<%=i %>" id="chkResultCd_<%=i %>" value="" /></div>
  622. </td>
  623. <td style="text-align: center; text-indent: 0px;"><input type="radio" name="test_<%=i %>" id="test_1_<%=i %>" value="<%=getApprSrdList.getRow(i).get("A_RATE").replace("점", "") %>" onclick="test(this, '<%=getApprSrdList.getRow(i).get("APPR_CD").substring(0,2)%>');" <%=getApprSrdList.getRow(i).get("A_RATE").replace("점", "").equals(getApprSrdList.getRow(i).get("APPR_RATE")) ? "checked=\"checked\" " : ""%> /><div>(<%=getApprSrdList.getRow(i).get("A_RATE") %>)</div></td>
  624. <td style="text-align: center; text-indent: 0px;"><input type="radio" name="test_<%=i %>" id="test_2_<%=i %>" value="<%=getApprSrdList.getRow(i).get("B_RATE").replace("점", "") %>" onclick="test(this, '<%=getApprSrdList.getRow(i).get("APPR_CD").substring(0,2)%>');" <%=getApprSrdList.getRow(i).get("B_RATE").replace("점", "").equals(getApprSrdList.getRow(i).get("APPR_RATE")) ? "checked=\"checked\" " : ""%> /><div>(<%=getApprSrdList.getRow(i).get("B_RATE") %>)</div></td>
  625. <td style="text-align: center; text-indent: 0px;"><input type="radio" name="test_<%=i %>" id="test_3_<%=i %>" value="<%=getApprSrdList.getRow(i).get("C_RATE").replace("점", "") %>" onclick="test(this, '<%=getApprSrdList.getRow(i).get("APPR_CD").substring(0,2)%>');" <%=getApprSrdList.getRow(i).get("C_RATE").replace("점", "").equals(getApprSrdList.getRow(i).get("APPR_RATE")) ? "checked=\"checked\" " : ""%> /><div>(<%=getApprSrdList.getRow(i).get("C_RATE") %>)</div></td>
  626. <td style="text-align: center; text-indent: 0px;"><input type="radio" name="test_<%=i %>" id="test_4_<%=i %>" value="<%=getApprSrdList.getRow(i).get("D_RATE").replace("점", "") %>" onclick="test(this, '<%=getApprSrdList.getRow(i).get("APPR_CD").substring(0,2)%>');" <%=getApprSrdList.getRow(i).get("D_RATE").replace("점", "").equals(getApprSrdList.getRow(i).get("APPR_RATE")) ? "checked=\"checked\" " : ""%> /><div>(<%=getApprSrdList.getRow(i).get("D_RATE") %>)</div></td>
  627. <td style="text-align: center; text-indent: 0px;"><input type="radio" name="test_<%=i %>" id="test_5_<%=i %>" value="<%=getApprSrdList.getRow(i).get("E_RATE").replace("점", "") %>" onclick="test(this, '<%=getApprSrdList.getRow(i).get("APPR_CD").substring(0,2)%>');" <%=getApprSrdList.getRow(i).get("E_RATE").replace("점", "").equals(getApprSrdList.getRow(i).get("APPR_RATE")) ? "checked=\"checked\" " : ""%> /><div>(<%=getApprSrdList.getRow(i).get("E_RATE") %>)</div></td>
  628. <td style="text-align: left; text-indent: 0px;"><textarea maxlength="250" cols="95%" name="appr_reason_<%=i %>" id="appr_reason_<%=i %>" style="width:98%" ><%=getApprSrdList.getRow(i).get("APPR_REASON") %></textarea></td>
  629. </tr>
  630. <%
  631. sum_stock_rate += Integer.parseInt(getApprSrdList.getRow(i).get("STOCK_RATE"));
  632. all_sum_stock_rate += sum_stock_rate;
  633. sum_stock_rate = 0;
  634. idx++;
  635. }
  636. %>
  637. <tr height="25">
  638. <td class="insert_table_title gubun" colspan="3" align="center" style="text-indent: 0px;">합계</td>
  639. <td style="text-align: center;" class="insert_table_title" style="text-indent: 0px;">
  640. <div name="total_rate" id="total_rate">
  641. <%=all_sum_stock_rate %>
  642. </div>
  643. </td>
  644. <td style="text-align: center;" class="insert_table_title" style="text-indent: 0px;">
  645. <div id="total_value">0</div>
  646. </td>
  647. <td style="text-align: center;" class="insert_table_title" style="text-indent: 0px;" colspan="6">
  648. &nbsp;
  649. </td>
  650. </tr>
  651. <%-- <TR style="height: 23px;" >
  652. <TD class="insert_table_title" style="text-align: center;" colspan="2">담당자의견</TD>
  653. <TD style="text-align: left;" colspan="8">&nbsp;<input type="text" class="input byteChk ctrlTarget" style="width: 98%;" name="APPR_NOTE" id="APPR_NOTE" value="<%=vo.get("APPR_NOTE") %>" /></TD>
  654. </TR> --%>
  655. </table>
  656. <div style="margin-top: 15px; width:100%; text-align: left;"></div>
  657. <table cellspacing="0" cellpadding="0" border="1" bordercolordark="#FFFFF" bordercolorlight="#d2d2d2" class="input_table" style="width:100%;">
  658. <col width="15%" />
  659. <col width="8%" />
  660. <col width="5%" />
  661. <col width="5%" />
  662. <col width="5%" />
  663. <col width="5%" />
  664. <col width="5%" />
  665. <col width="*" />
  666. <!-- <col width="3%" /> -->
  667. <tr>
  668. <td class="insert_table_title" style="text-align: center; text-indent: 0px;" colspan="2">등급 기준 - 기자재평가표 반영</td>
  669. <td class="insert_table_title" style="text-align: center; text-indent: 0px;" >S</td>
  670. <td class="insert_table_title" style="text-align: center; text-indent: 0px;" >A</td>
  671. <td class="insert_table_title" style="text-align: center; text-indent: 0px;" >B</td>
  672. <td class="insert_table_title" style="text-align: center; text-indent: 0px;" >C</td>
  673. <td class="insert_table_title" style="text-align: center; text-indent: 0px;" >D</td>
  674. <td class="insert_table_title" style="text-align: center; text-indent: 0px;" >REMARK</td>
  675. <!-- <td class="insert_table_title" style="text-align: center; text-indent: 0px;" >결재첨부</td> -->
  676. </tr>
  677. <tr>
  678. <td class="insert_table_title" style="text-align: center; text-indent: 0px;" >공종별 등급 기준</td>
  679. <td class="insert_table_title" style="text-align: center; text-indent: 0px;" >
  680. <div style="float: center; height: 30px; line-height: 30px;" id="total_level">등급</div>
  681. </td>
  682. <td class="insert_table_title" style="text-align: center; text-indent: 0px;" >55점↑</td>
  683. <td class="insert_table_title" style="text-align: center; text-indent: 0px;" >50점↑</td>
  684. <td class="insert_table_title" style="text-align: center; text-indent: 0px;" >45점↑</td>
  685. <td class="insert_table_title" style="text-align: center; text-indent: 0px;" >35점↑</td>
  686. <td class="insert_table_title" style="text-align: center; text-indent: 0px;" >34점↓</td>
  687. <td class="insert_table_title" style="text-align: center; text-indent: 0px;" >
  688. <textarea cols="95%" name="appr_note" id="appr_note" style="width:98%" ><%=vo.get("appr_note") %></textarea>
  689. </td>
  690. <!-- <td style="text-align: center; text-indent: 0px;" >
  691. <IMG id='search_spot_button' onClick="doAttachFile(document.form1.cont_id);" src='/img/buyer/button/bt_change.gif' border='0' align="top" align='absmiddle' alt='[Attach File]' style='cursor:pointer;'>
  692. </td> -->
  693. </tr>
  694. </table>
  695. <div style="width: 100%; text-align: center; margin-top: 20px;">
  696. <span id="save" name="save" class="btnSearch center"><a href="javascript:void(0);" id="btn_save">저장</a></span>
  697. <!-- <span id="print" name="print" class="btnSearch center"><a href="javascript:void(0);" id="btn_print">인쇄</a></span>
  698. <span id="close" name="close" class="btnSearch center"><a href="javascript:void(0);" id="btn_close">닫기</a></span> -->
  699. </div>
  700. </form>