PuSuppFixApprPop.jsp 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627
  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. });
  37. $(':radio[name^=test_]').click(function(){
  38. var grade = ['S','A', 'B', 'C', 'D'];
  39. var i = this.name.split('test_')[1];
  40. var index = $(':radio[name="test_' + i + '"]').index($(this));
  41. //$("#result_" + i).text($(this).val() + "점");
  42. $("#chkResultCd_" + i).val(grade[index]);
  43. });
  44. /*
  45. $(':radio[name="test_0"]').click(function(){
  46. $("#result_0").text($(':radio[name="test_0"]:checked').val() + "점");
  47. if($(':radio[name="test_0"]:checked').val() == "10")
  48. {
  49. $("#chkResultCd_0").val("A");
  50. }
  51. else if($(':radio[name="test_0"]:checked').val() == "9")
  52. {
  53. $("#chkResultCd_0").val("B");
  54. }
  55. else if($(':radio[name="test_0"]:checked').val() == "8")
  56. {
  57. $("#chkResultCd_0").val("C");
  58. }
  59. else if($(':radio[name="test_0"]:checked').val() == "7")
  60. {
  61. $("#chkResultCd_0").val("D");
  62. }
  63. else if($(':radio[name="test_0"]:checked').val() == "6")
  64. {
  65. $("#chkResultCd_0").val("E");
  66. }
  67. });
  68. $(':radio[name="test_1"]').click(function(){
  69. $("#result_1").text($(':radio[name="test_1"]:checked').val() + "점");
  70. if($(':radio[name="test_1"]:checked').val() == "15")
  71. {
  72. $("#chkResultCd_1").val("A");
  73. }
  74. else if($(':radio[name="test_1"]:checked').val() == "12")
  75. {
  76. $("#chkResultCd_1").val("B");
  77. }
  78. else if($(':radio[name="test_1"]:checked').val() == "10")
  79. {
  80. $("#chkResultCd_1").val("C");
  81. }
  82. else if($(':radio[name="test_1"]:checked').val() == "8")
  83. {
  84. $("#chkResultCd_1").val("D");
  85. }
  86. else if($(':radio[name="test_1"]:checked').val() == "6")
  87. {
  88. $("#chkResultCd_1").val("E");
  89. }
  90. });
  91. $(':radio[name="test_2"]').click(function(){
  92. $("#result_2").text($(':radio[name="test_2"]:checked').val() + "점");
  93. if($(':radio[name="test_2"]:checked').val() == "10")
  94. {
  95. $("#chkResultCd_2").val("A");
  96. }
  97. else if($(':radio[name="test_2"]:checked').val() == "8")
  98. {
  99. $("#chkResultCd_2").val("B");
  100. }
  101. else if($(':radio[name="test_2"]:checked').val() == "6")
  102. {
  103. $("#chkResultCd_2").val("C");
  104. }
  105. else if($(':radio[name="test_2"]:checked').val() == "4")
  106. {
  107. $("#chkResultCd_2").val("D");
  108. }
  109. else if($(':radio[name="test_2"]:checked').val() == "2")
  110. {
  111. $("#chkResultCd_2").val("E");
  112. }
  113. });
  114. $(':radio[name="test_3"]').click(function(){
  115. $("#result_3").text($(':radio[name="test_3"]:checked').val() + "점");
  116. if($(':radio[name="test_3"]:checked').val() == "10")
  117. {
  118. $("#chkResultCd_3").val("A");
  119. }
  120. else if($(':radio[name="test_3"]:checked').val() == "8")
  121. {
  122. $("#chkResultCd_3").val("B");
  123. }
  124. else if($(':radio[name="test_3"]:checked').val() == "6")
  125. {
  126. $("#chkResultCd_3").val("C");
  127. }
  128. else if($(':radio[name="test_3"]:checked').val() == "4")
  129. {
  130. $("#chkResultCd_3").val("D");
  131. }
  132. else if($(':radio[name="test_3"]:checked').val() == "2")
  133. {
  134. $("#chkResultCd_3").val("E");
  135. }
  136. });
  137. $(':radio[name="test_4"]').click(function(){
  138. $("#result_4").text($(':radio[name="test_4"]:checked').val() + "점");
  139. if($(':radio[name="test_4"]:checked').val() == "15")
  140. {
  141. $("#chkResultCd_4").val("A");
  142. }
  143. else if($(':radio[name="test_4"]:checked').val() == "12")
  144. {
  145. $("#chkResultCd_4").val("B");
  146. }
  147. else if($(':radio[name="test_4"]:checked').val() == "10")
  148. {
  149. $("#chkResultCd_4").val("C");
  150. }
  151. else if($(':radio[name="test_4"]:checked').val() == "8")
  152. {
  153. $("#chkResultCd_4").val("D");
  154. }
  155. else if($(':radio[name="test_4"]:checked').val() == "6")
  156. {
  157. $("#chkResultCd_4").val("E");
  158. }
  159. });
  160. $(':radio[name="test_5"]').click(function(){
  161. $("#result_5").text($(':radio[name="test_5"]:checked').val() + "점");
  162. if($(':radio[name="test_5"]:checked').val() == "5")
  163. {
  164. $("#chkResultCd_5").val("A");
  165. }
  166. else if($(':radio[name="test_5"]:checked').val() == "3")
  167. {
  168. $("#chkResultCd_5").val("B");
  169. }
  170. else if($(':radio[name="test_5"]:checked').val() == "0")
  171. {
  172. $("#chkResultCd_5").val("C");
  173. }
  174. else if($(':radio[name="test_5"]:checked').val() == "-3")
  175. {
  176. $("#chkResultCd_5").val("D");
  177. }
  178. else if($(':radio[name="test_5"]:checked').val() == "-5")
  179. {
  180. $("#chkResultCd_5").val("E");
  181. }
  182. });
  183. */
  184. $("#btn_close").click(function(){
  185. parent.fLayerPopClose('SuppFixApprPop');
  186. //window.close();
  187. });
  188. $("#btn_save").click(function(){
  189. var f = document.form1;
  190. //if("<%=params.get("P_CHARGE_CD")%>" == "C" && $("#APPR_NOTE").val().length < 1 ) {
  191. // alert("담당자 의견은 필수입니다. ");
  192. // return ;
  193. //}
  194. $("#fevent").val("GET_SAVE");
  195. if(confirm("저장하시겠습니까?"))
  196. {
  197. submitXmlRequest("/supplier/purchase/PuSuppFixApprPopSave.screen", "GET_SAVE", f);
  198. }
  199. });
  200. $(".icon_x").click(function(){
  201. parent.fLayerPopClose('SuppFixApprPop');
  202. //window.close();
  203. });
  204. });
  205. $(document).ready(function(){
  206. loadTest();
  207. if(<%=params.get("p_status")%> == "02" && "<%=params.get("P_CHARGE_CD")%>" == "S"){ //2016.5.11 완료상태에서 구매담당자 수정가능.
  208. jQuery("#save").hide();
  209. }else{
  210. jQuery("#save").show();
  211. }
  212. //2016.4.21
  213. if("<%=params.get("P_CHARGE_CD")%>" == "C"){
  214. jQuery("#WRITE_NO").val("<%=params.get("user_id")%>");
  215. jQuery("#WRITE_NM").val("<%=params.get("user_nm")%>");
  216. }
  217. //else{
  218. // $(':radio[name="test_5"]').attr("disabled", true);
  219. //}
  220. for(i=0; i < <%=getApprSrdList.size()%>; i++)
  221. {
  222. var index = $(':radio[name="test_'+i+'"]').index($(':radio[name="test_'+i+'"]:checked')) +1;
  223. if(index != 0)
  224. {
  225. if($(':radio[name="test_'+i+'"]:checked'))
  226. {
  227. $("#result_"+i+"").text($(':radio[name="test_'+i+'"]:checked').val());
  228. if(index == "1")
  229. {
  230. $("#chkResultCd_"+i).val("S");
  231. }
  232. else if(index == "2")
  233. {
  234. $("#chkResultCd_"+i).val("A");
  235. }
  236. else if(index == "3")
  237. {
  238. $("#chkResultCd_"+i).val("B");
  239. }
  240. else if(index == "4")
  241. {
  242. $("#chkResultCd_"+i).val("C");
  243. }
  244. else if(index == "5")
  245. {
  246. $("#chkResultCd_"+i).val("D");
  247. }
  248. }
  249. }
  250. }
  251. });
  252. function doResult(resultObj) {
  253. var f = document.form1;
  254. try
  255. {
  256. document.form1.isSubmit = false;
  257. if($("#fevent").val() == "GET_SAVE")
  258. {
  259. if (resultObj.getSuccess())
  260. {
  261. alert("평가표 저장이 완료되었습니다.");
  262. window.close(); //2016.4.25 중복저장 오류 제거
  263. //winClose();
  264. }
  265. else
  266. {
  267. dlgErrorMsg( resultObj );
  268. }
  269. }
  270. }
  271. catch(errorObject) {
  272. showErrorDlg("doResult()", errorObject);
  273. }
  274. }
  275. function test(obj, code) {
  276. var id = document.getElementById(obj.getAttribute("id")).getAttribute("id");
  277. var cnt = obj.name.substring(obj.name.lastIndexOf("_")+1, obj.name.length);
  278. document.getElementById("result_" + cnt).innerHTML = obj.value;
  279. var cnt2 = id.substring(id.indexOf("_")+1, id.lastIndexOf("_"));
  280. var appr_cd = "";
  281. var idx = 0;
  282. var idx2 = 0;
  283. var total_1 = 0;
  284. var total_2 = 0;
  285. var total_3 = 0;
  286. var total_4 = 0;
  287. <%
  288. for(int k=0; k < getApprSrdList.size(); k++)
  289. {
  290. %>
  291. total_1 += Number(document.getElementById("result_" + idx).innerHTML);
  292. //document.getElementById("totalAll_0").innerHTML = total_1;
  293. if(document.getElementById("test_"+cnt2+"_" + idx).checked)
  294. {
  295. if(cnt2 == "1")
  296. {
  297. document.form1.chkResultCd_<%=k%>.value = "S";
  298. }
  299. else if(cnt2 == "2")
  300. {
  301. document.form1.chkResultCd_<%=k%>.value = "A";
  302. }
  303. else if(cnt2 == "3")
  304. {
  305. document.form1.chkResultCd_<%=k%>.value = "B";
  306. }
  307. else if(cnt2 == "4")
  308. {
  309. document.form1.chkResultCd_<%=k%>.value = "C";
  310. }
  311. else if(cnt2 == "5")
  312. {
  313. document.form1.chkResultCd_<%=k%>.value = "D";
  314. }
  315. else
  316. {
  317. document.form1.chkResultCd_<%=k%>.value = "D";
  318. }
  319. }
  320. idx++;
  321. <%
  322. }
  323. %>
  324. //document.getElementById("total_rate_all").innerHTML = total_1 + total_2 + total_3 + total_4;
  325. document.getElementById("total_value").innerHTML = total_1 + total_2 + total_3 + total_4;
  326. //document.form1.appr_tot_rate.value = total_1 + total_2 + total_3 + total_4;
  327. var total_test_value = total_1 + total_2 + total_3 + total_4;
  328. if(total_test_value >= 55)
  329. {
  330. document.getElementById("total_level").innerHTML = "S등급";
  331. document.form1.item_std_cd.value = "S";
  332. }
  333. else if(total_test_value >= 50)
  334. {
  335. document.getElementById("total_level").innerHTML = "A등급";
  336. document.form1.item_std_cd.value = "A";
  337. }
  338. else if(total_test_value >= 45)
  339. {
  340. document.getElementById("total_level").innerHTML = "B등급";
  341. document.form1.item_std_cd.value = "B";
  342. }
  343. else if(total_test_value >= 35)
  344. {
  345. document.getElementById("total_level").innerHTML = "C등급";
  346. document.form1.item_std_cd.value = "C";
  347. }
  348. else
  349. {
  350. document.getElementById("total_level").innerHTML = "D등급";
  351. document.form1.item_std_cd.value = "D";
  352. }
  353. }
  354. function loadTest()
  355. {
  356. <%
  357. for (int ll = 0; ll < getApprSrdList.size(); ll++)
  358. {
  359. %>
  360. var index = $(':radio[name="test_<%=ll%>"]').index($(':radio[name="test_<%=ll%>"]:checked'))+1;
  361. if(index == "1")
  362. {
  363. $("#test_1_<%=ll%>").click();
  364. }
  365. else if(index == "2")
  366. {
  367. $("#test_2_<%=ll%>").click();
  368. }
  369. else if(index == "3")
  370. {
  371. $("#test_3_<%=ll%>").click();
  372. }
  373. else if(index == "4")
  374. {
  375. $("#test_4_<%=ll%>").click();
  376. }
  377. else if(index == "5")
  378. {
  379. $("#test_5_<%=ll%>").click();
  380. }
  381. <%
  382. }
  383. %>
  384. }
  385. //첨부파일
  386. function doAttachFile(obj) {
  387. var file_div = "payment/purchase/"+"<%=params.get("p_pur_cont_id")%>"+"/";
  388. var fileName = "현장평가표_"+"<%=params.get("corp_kor") %>";
  389. var upLoadFlg = "Y";
  390. viewFileListNew ("FIX_PUR_APPR", obj.value, document.form1.search_spot_button, upLoadFlg, file_div, null, null, null, null, "N", fileName);
  391. }
  392. </script>
  393. <modular:search id="form1">
  394. <modular:key id="fevent" />
  395. </modular:search>
  396. <form id="form1" name="form1" method="post" modular:type="search">
  397. <input type="hidden" name="fevent" id="fevent" value="">
  398. <input type=hidden name="corp_id" id="corp_id" value="<%=params.get("p_corp_id") %>" />
  399. <input type="hidden" name="corp_no" id="corp_no" value="<%=params.get("corp_no") %>" />
  400. <input type="hidden" name="dept_cd" id="dept_cd" value="<%=params.get("p_dept_cd") %>" />
  401. <input type="hidden" name="dept_nm" id="dept_nm" value="<%=params.get("dept_nm") %>" />
  402. <input type="hidden" name="doc_cd" id="doc_cd" value="<%=params.get("doc_cd") %>" />
  403. <input type="hidden" name="user_id" id="user_id" value="<%=params.get("user_id") %>" />
  404. <input type="hidden" name="user_nm" id="user_nm" value="<%=params.get("user_nm") %>" /> <!--2016.4.20 현재작성자정보 저장 -->
  405. <input type="hidden" name="user_id_before" id="user_id_before" value="<%=params.get("user_id_before") %>" />
  406. <input type="hidden" name="user_nm_before" id="user_nm_before" value="<%=params.get("user_nm_before") %>" /> <!--2016.4.20 현재작성자정보 저장 -->
  407. <input type="hidden" name="item_std_cd" id="item_std_cd" value="" />
  408. <input type="hidden" name="ord_doc_no" id="ord_doc_no" value="<%=params.get("p_ord_doc_no") %>" />
  409. <input type="hidden" name="cont_id" id="cont_id" value="<%=params.get("p_pur_cont_id") %>" />
  410. <input type="hidden" name="listSize" id="listSize" value="<%=getApprSrdList.size() %>" />
  411. <input type="hidden" name="appr_date" id="appr_date" value="<%=appr_date %>" />
  412. <input type="hidden" name="WRITE_NO" id="WRITE_NO" value="<%=vo.get("WRITE_NO") %>" />
  413. <input type="hidden" name="WRITE_NM" id="WRITE_NM" value="<%=vo.get("WRITE_NM") %>" /><!--2016.4.21 본사담당자 평가 내용 저장 -->
  414. <input type="hidden" name="CHARGE_CD" id="CHARGE_CD" value="<%=params.get("P_CHARGE_CD") %>" /><!--2016.4.21 본사담당자C,현장담당자S 구분 -->
  415. <input type="hidden" name="arr_id" id="arr_id" value="<%=vo.get("arr_id") %>" />
  416. <input type="hidden" name="p_status" id="p_status" value="<%=params.get("p_status")%>" />
  417. <div style="width: 100%; text-align: center; margin-top: 10px; margin-bottom: 15px;" >
  418. <span style="font-size: 15px; font-weight: bold;">협력업체 준공 평가표(<%=params.get("doc_cd").equals("03") ? "Manufacturer" : params.get("doc_cd").equals("04") ? "Agent" : "" %>)</span>
  419. </div>
  420. <div style="width: 100%; vertical-align: middle; float: left; text-align: left; padding-bottom: 8px;" >
  421. 평가자 : <%=params.get("user_nm_before") %>
  422. </div>
  423. <div style="width: 100%; vertical-align: middle; float: left; text-align: left; padding-bottom: 8px;" >
  424. 평가일 : <%=params.get("dt_before")%>
  425. </div>
  426. <div style="width: 100%; vertical-align: middle; float: left; text-align: left; padding-bottom: 8px;" >
  427. 업체명 : <%=params.get("corp_kor") %>
  428. </div>
  429. <table cellspacing="0" cellpadding="0" border="1" bordercolordark="#FFFFF" bordercolorlight="#d2d2d2" class="input_table" style="width: 100%;">
  430. <col width="7%">
  431. <col width="7%">
  432. <col width="14%">
  433. <col width="7%">
  434. <col width="7%">
  435. <col width="7%">
  436. <col width="7%">
  437. <col width="7%">
  438. <col width="7%">
  439. <col width="14%">
  440. <!-- <col width="*"> -->
  441. <tr style="height: 23px;">
  442. <td class="insert_table_title" colspan="3" style="text-align: center;">평가항목</td>
  443. <td class="insert_table_title" rowspan="2" style="text-align: center;">배당점수</td>
  444. <td class="insert_table_title" rowspan="2" style="text-align: center; text-indent : 0px;">평가점수</td>
  445. <td class="insert_table_title" colspan="5" style="text-align: center;">배점기준</td>
  446. <td class="insert_table_title" rowspan="2" style="text-align: center;">평가사유</td>
  447. </tr>
  448. <tr style="height: 23px;">
  449. <td class="insert_table_title" style="text-align: center;">대분류</td>
  450. <td class="insert_table_title" style="text-align: center;">중분류</td>
  451. <td class="insert_table_title" style="text-align: center;">세부항목</td>
  452. <td class="insert_table_title" style="text-align: center;">S</td>
  453. <td class="insert_table_title" style="text-align: center;">A</td>
  454. <td class="insert_table_title" style="text-align: center;">B</td>
  455. <td class="insert_table_title" style="text-align: center;">C</td>
  456. <td class="insert_table_title" style="text-align: center;">D</td>
  457. </tr>
  458. <%
  459. String chk = "";
  460. int idx = 0;
  461. int sum_stock_rate = 0;
  462. int all_sum_stock_rate = 0;
  463. String appr_cd = "";
  464. for(int i=0; i < getApprSrdList.size(); i++)
  465. {
  466. %>
  467. <tr>
  468. <td class="insert_table_title gubun" style="text-indent: 0px;"><%=getApprSrdList.getRow(i).get("GUBUN_1") %></td>
  469. <td class="insert_table_title gubun" style="text-indent: 0px;"><%=getApprSrdList.getRow(i).get("GUBUN_2") %></td>
  470. <td class="insert_table_title gubun" style="text-indent: 0px; text-align: left;"><%=getApprSrdList.getRow(i).get("GUBUN_3") %></td>
  471. <td class="insert_table_title" style="text-align: center; text-indent: 0px;"><%=getApprSrdList.getRow(i).get("STOCK_RATE") %></td>
  472. <td style="text-align: center; text-indent: 0px;">
  473. <div id="result_<%=i%>">0</div>
  474. <div style="display: none;"><input type="text" name="appr_cd_<%=i %>" id="appr_cd_<%=i %>" value="<%=getApprSrdList.getRow(i).get("APPR_CD") %>" /></div>
  475. <div style="display: none;"><input type="text" name="chkResultCd_<%=i %>" id="chkResultCd_<%=i %>" value="" /></div>
  476. </td>
  477. <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>
  478. <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>
  479. <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>
  480. <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>
  481. <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>
  482. <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>
  483. </tr>
  484. <%
  485. sum_stock_rate += Integer.parseInt(getApprSrdList.getRow(i).get("STOCK_RATE"));
  486. all_sum_stock_rate += sum_stock_rate;
  487. sum_stock_rate = 0;
  488. idx++;
  489. }%>
  490. <tr height="25">
  491. <td class="insert_table_title gubun" colspan="3" align="center" style="text-indent: 0px;">합계</td>
  492. <td style="text-align: center;" class="insert_table_title" style="text-indent: 0px;">
  493. <div name="total_rate" id="total_rate">
  494. <%=all_sum_stock_rate %>
  495. </div>
  496. </td>
  497. <td style="text-align: center;" class="insert_table_title" style="text-indent: 0px;">
  498. <div id="total_value">0</div>
  499. </td>
  500. <td style="text-align: center;" class="insert_table_title" style="text-indent: 0px;" colspan="6">
  501. &nbsp;
  502. </td>
  503. </tr>
  504. <div style="margin-top: 15px; width:100%; text-align: left;"></div>
  505. <table cellspacing="0" cellpadding="0" border="1" bordercolordark="#FFFFF" bordercolorlight="#d2d2d2" class="input_table" style="width:100%;">
  506. <col width="15%" />
  507. <col width="8%" />
  508. <col width="5%" />
  509. <col width="5%" />
  510. <col width="5%" />
  511. <col width="5%" />
  512. <col width="5%" />
  513. <col width="*" />
  514. <!-- <col width="3%" /> -->
  515. <tr>
  516. <td class="insert_table_title" style="text-align: center; text-indent: 0px;" colspan="2">등급 기준 - 기자재평가표 반영</td>
  517. <td class="insert_table_title" style="text-align: center; text-indent: 0px;" >S</td>
  518. <td class="insert_table_title" style="text-align: center; text-indent: 0px;" >A</td>
  519. <td class="insert_table_title" style="text-align: center; text-indent: 0px;" >B</td>
  520. <td class="insert_table_title" style="text-align: center; text-indent: 0px;" >C</td>
  521. <td class="insert_table_title" style="text-align: center; text-indent: 0px;" >D</td>
  522. <td class="insert_table_title" style="text-align: center; text-indent: 0px;" >REMARK</td>
  523. <!-- <td class="insert_table_title" style="text-align: center; text-indent: 0px;" >결재첨부</td> -->
  524. </tr>
  525. <tr>
  526. <td class="insert_table_title" style="text-align: center; text-indent: 0px;" >공종별 등급 기준</td>
  527. <td class="insert_table_title" style="text-align: center; text-indent: 0px;" >
  528. <div style="float: center; height: 30px; line-height: 30px;" id="total_level">등급</div>
  529. </td>
  530. <td class="insert_table_title" style="text-align: center; text-indent: 0px;" >55점↑</td>
  531. <td class="insert_table_title" style="text-align: center; text-indent: 0px;" >50점↑</td>
  532. <td class="insert_table_title" style="text-align: center; text-indent: 0px;" >45점↑</td>
  533. <td class="insert_table_title" style="text-align: center; text-indent: 0px;" >35점↑</td>
  534. <td class="insert_table_title" style="text-align: center; text-indent: 0px;" >34점↓</td>
  535. <td class="insert_table_title" style="text-align: center; text-indent: 0px;" >
  536. <textarea cols="95%" name="appr_note" id="appr_note" style="width:98%" ><%=vo.get("appr_note") %></textarea>
  537. </td>
  538. <!-- <td style="text-align: center; text-indent: 0px;" >
  539. <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;'>
  540. </td> -->
  541. </tr>
  542. </table>
  543. <div style="width: 100%; text-align: center; margin-top: 20px;">
  544. <span id="save" name="save" class="btnSearch center"><a href="javascript:void(0);" id="btn_save">저장</a></span>
  545. <span id="close" name="close" class="btnSearch center"><a href="javascript:void(0);" id="btn_close">닫기</a></span>
  546. </div>
  547. </form>