ContChgRcvDetail.jsp 40 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039
  1. <%--
  2. - Author(s) : kyj
  3. - Date : 2015.01.22
  4. - Description: 변경계약접수 상세
  5. --%>
  6. <%@page import="java.sql.Clob"%>
  7. <%@ page contentType="text/html; charset=utf-8" %>
  8. <%@ page import="com.udapsoft.waf.system.HandlerStorage" %>
  9. <%@ page import="com.udapsoft.waf.common.ui.*" %>
  10. <%@ page import="com.udapsoft.waf.common.util.*" %>
  11. <%@ page import="kr.co.udapsoft.common.code.*" %>
  12. <%@ page import="kr.co.hsnc.common.util.*"%>
  13. <%@ page import="kr.co.hsnc.common.sql.*" %>
  14. <%@ page import="kr.co.hsnc.common.config.WAFConfig" %>
  15. <%@ include file="/jsp/work/taglib.jsp" %>
  16. <%@ page import="kr.co.hsnc.common.util.Formatter"%>
  17. <%@page import="java.net.URLEncoder"%>
  18. <%@ page import="kr.co.udapsoft.ebid.buyer.common.file.FileManager"%>
  19. <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
  20. <%
  21. ctx.init(request, response);
  22. HandlerStorage storage = ctx.getHandlerStorage();
  23. ValueObject params = storage.getParams();
  24. ValueObject user = storage.getUser();
  25. ValueObject ContInfo = storage.getValueObject("ContInfo");
  26. RowSet getFileListRowSet = storage.getRowSet("getFileListRowSet");
  27. RowSet modGbRow = CommCodeManager.getCodeRowsetStatic("MOD_GB");
  28. ValueObject sign_info = storage.getValueObject("SIGN_INFO");
  29. %>
  30. <LINK href="/css/cont/cont_style.css" rel="stylesheet" type="text/css">
  31. <SCRIPT language="JavaScript">
  32. /*예약함수*/
  33. var sheet1;
  34. var sheet1Row;
  35. var sheet1PageNo = 1;
  36. var pageLastRowIndex = 1;
  37. var validationResult = false;
  38. var filterShow = false;
  39. function _onReady(){
  40. //저장된 첨부파일 리스트 불러오기
  41. getFileListForTextarea();
  42. //도급
  43. jQuery("#p_bef_cont_amt").blur(function () {
  44. logic(this,"cont");
  45. });
  46. jQuery("#p_aft_cont_amt").blur(function () {
  47. logic(this,"cont");
  48. logic(this,"bug");
  49. });
  50. //예산
  51. jQuery("#p_bef_bug_amt").blur(function () {
  52. logic(this,"bug");
  53. });
  54. jQuery("#p_aft_bug_amt").blur(function () {
  55. logic(this,"bug");
  56. logic(this,"supp");
  57. });
  58. //계약
  59. jQuery("#p_bef_supp_amt").blur(function () {
  60. logic(this,"supp");
  61. });
  62. jQuery("#p_aft_supp_amt").blur(function () {
  63. logic(this,"supp");
  64. });
  65. //계약기간 변경후
  66. jQuery("#p_aft_cont_date").change(function () {
  67. if(jQuery("#p_aft_cont_date").val().length > 10){
  68. alert("10자 이상 입력하실 수 없습니다.");
  69. }else{
  70. if(jQuery("#p_aft_cont_date").val().length == 8){
  71. jQuery("#p_aft_cont_date").val(jQuery("#p_aft_cont_date").val().substring(0,4)+"-"+jQuery("#p_aft_cont_date").val().substring(4,6)+"-"+jQuery("#p_aft_cont_date").val().substring(6,8));
  72. }
  73. }
  74. var date = new Date();
  75. var bef_cont_date = "<%=ContInfo.get("BEF_CONT_DATE")%>";
  76. bef_cont_date = bef_cont_date.replace(/-/gi, "");
  77. bef_cont_date = new Date(parse(bef_cont_date));
  78. var p_aft_cont_date = new Date(parse(jQuery("#p_aft_cont_date").val().replace(/-/gi, "")));
  79. var p_cont_date_nm = p_aft_cont_date - bef_cont_date;
  80. p_cont_date_nm = (p_cont_date_nm/(24 * 3600 * 1000));
  81. jQuery("#p_chg_cont_date").val(p_cont_date_nm);
  82. p_cont_date_nm = p_cont_date_nm+"일";
  83. jQuery("#p_cont_date_nm").val(p_cont_date_nm);
  84. //document.getElementById("CHG_CONT_DATE_VIEW").innerHTML=c;
  85. });
  86. jQuery("#btnSave").click(function() {
  87. if(!valCheck()||!doCheck()){
  88. return;
  89. }
  90. var f = document.form1;
  91. jQuery("#flag").val("save");
  92. submitXmlRequest("/cont/outside/ContChgRcvDetail_form.screen", "DUP_CHK", f, "VALUEOBJECT");
  93. document.form1.isSubmit = false;
  94. });
  95. jQuery("#btnReject").click(function() {
  96. var f = document.form1;
  97. jQuery("#flag").val("reject");
  98. submitXmlRequest("/cont/outside/ContChgRcvDetail_form.screen", "DUP_CHK", f, "VALUEOBJECT");
  99. document.form1.isSubmit = false;
  100. });
  101. jQuery("#btnResolve").click(function() {
  102. if(!valCheck()||!doCheck()){
  103. return;
  104. }
  105. var f = document.form1;
  106. jQuery("#flag").val("resolve");
  107. submitXmlRequest("/cont/outside/ContChgRcvDetail_form.screen", "DUP_CHK", f, "VALUEOBJECT");
  108. document.form1.isSubmit = false;
  109. });
  110. //2019.09.17 사업자번호변경 추가
  111. $("#btnChgCorp").click(function(){
  112. var win_id = "corp";
  113. var link = "/common/corp/SuppChoicePop.screen";
  114. link += "?pop_win_id="+win_id+"&BID_KIND=O&OUT_ITEM_CD="+"<%=ContInfo.get("OUT_ITEM_CD")%>";
  115. fLayerPop(win_id, link, 800,400, '','', 'NO');
  116. });
  117. $.test = function(resultVal)
  118. {
  119. var aftVendCd = resultVal[1][0].replace(/(\d{3})(\d{2})(\d{5})/, '$1-$2-$3');
  120. $('#p_aft_corp_id').val(resultVal[0][0]);
  121. $('#p_aft_vend_cd').val(aftVendCd);
  122. $('#p_aft_member_nm').val(resultVal[2][0]);
  123. $('#p_aft_boss_nm').val(resultVal[3][0]);
  124. setTimeout(function(){fLayerPopClose('corp'); },100);
  125. };
  126. }
  127. function parse(str) {
  128. if(!/^(\d){8}$/.test(str)) return "invalid date";
  129. var y = str.substr(0,4),
  130. m = str.substr(4,2),
  131. d = str.substr(6,2);
  132. return new Date(y,m-1,d);
  133. }
  134. function logic(obj,gb) {
  135. //정수자리 제한 검사
  136. var strArray = jQuery(obj).val().split(".");
  137. if(strArray[0].replace(/,/gi, "").length > 12){
  138. alert("소수점 아랫부분을 제외한 정수는 12자리까지만 입력 가능합니다.");
  139. jQuery(obj).focus();
  140. }
  141. //통화구분에 맞춰서 소수점 자리와, 천단위 쉼표를 맞춘다.
  142. if(jQuery("#digit").val() != ""){
  143. jQuery(obj).val(jQuery(obj).val().replace(/(\,|\:)/g,""));
  144. jQuery(obj).val(Number(jQuery(obj).val()).toFixed(jQuery("#digit").val()));
  145. jQuery(obj).val(jQuery(obj).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  146. jQuery(obj).val(jQuery(obj).val().replace("-,","-"))
  147. }
  148. if(gb=="cont"){
  149. var bef_cont_amt = jQuery("#p_bef_cont_amt").val().replace(/(\,|\:)/g,"");
  150. var aft_cont_amt = jQuery("#p_aft_cont_amt").val().replace(/(\,|\:)/g,"");
  151. var chg_cont_amt = aft_cont_amt-bef_cont_amt;
  152. chg_cont_amt = Number(chg_cont_amt).toFixed(jQuery("#digit").val());
  153. jQuery("#p_chg_cont_amt").val(Number(chg_cont_amt).toFixed(jQuery("#digit").val()));
  154. jQuery("#p_chg_cont_amt").val(jQuery("#p_chg_cont_amt").val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  155. jQuery("#p_chg_cont_amt").val(jQuery("#p_chg_cont_amt").val().replace("-,","-"));
  156. }
  157. else if(gb=="bug"){
  158. //증감 구하기
  159. var bef_bug_amt = jQuery("#p_bef_bug_amt").val().replace(/(\,|\:)/g,"");
  160. var aft_bug_amt = jQuery("#p_aft_bug_amt").val().replace(/(\,|\:)/g,"");
  161. var chg_bug_amt = aft_bug_amt-bef_bug_amt;
  162. jQuery("#p_chg_bug_amt").val(Number(chg_bug_amt).toFixed(jQuery("#digit").val()));
  163. jQuery("#p_chg_bug_amt").val(jQuery("#p_chg_bug_amt").val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  164. jQuery("#p_chg_bug_amt").val(jQuery("#p_chg_bug_amt").val().replace("-,","-"));
  165. //증감율 구하기
  166. if(jQuery("#p_aft_cont_amt").val() == "" || jQuery("#p_aft_cont_amt").val() == 0){
  167. jQuery("#p_chg_bug_rate").val("");
  168. }else{
  169. var aft_cont_amt = jQuery("#p_aft_cont_amt").val().replace(/(\,|\:)/g,"");
  170. if((aft_bug_amt/aft_cont_amt*100).toFixed(9).replace("NaN","0")!="0.0000000000"){
  171. var chg_bug_rate = "도급대비: "+((aft_bug_amt/aft_cont_amt*100).toFixed(1)).replace("NaN","0")+"%";
  172. }
  173. jQuery("#p_chg_bug_rate").val(chg_bug_rate);
  174. }
  175. }
  176. else{
  177. //증감 구하기
  178. var bef_supp_amt = jQuery("#p_bef_supp_amt").val().replace(/(\,|\:)/g,"");
  179. var aft_supp_amt = jQuery("#p_aft_supp_amt").val().replace(/(\,|\:)/g,"");
  180. var chg_supp_amt = aft_supp_amt-bef_supp_amt;
  181. jQuery("#p_chg_supp_amt").val(Number(chg_supp_amt).toFixed(jQuery("#digit").val()));
  182. jQuery("#p_chg_supp_amt").val(jQuery("#p_chg_supp_amt").val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  183. jQuery("#p_chg_supp_amt").val(jQuery("#p_chg_supp_amt").val().replace("-,","-"));
  184. //증감율 구하기
  185. if(jQuery("#p_aft_bug_amt").val() == "" || jQuery("#p_aft_bug_amt").val() == 0){
  186. jQuery("#p_chg_supp_rate").val("");
  187. }else{
  188. var aft_bug_amt = jQuery("#p_aft_bug_amt").val().replace(/(\,|\:)/g,"");
  189. if((aft_supp_amt/aft_bug_amt*100).toFixed(9).replace("NaN","0")!="0.0000000000"){
  190. var chg_supp_rate = "예산대비: "+((aft_supp_amt/aft_bug_amt*100).toFixed(1)).replace("NaN","0")+"%";
  191. }
  192. jQuery("#p_chg_supp_rate").val(chg_supp_rate);
  193. }
  194. }
  195. }
  196. function valCheck(){
  197. if ( stringByteSize4UTF($("#p_remark").val()) > 2000 ) {
  198. alert("변경사유는 500자까지 입력하실 수 있습니다.");
  199. jQuery("#p_remark").focus();
  200. return;
  201. }
  202. if ( stringByteSize4UTF($("#p_sp_remark").val()) > 2000 ) {
  203. alert("특이사항는 500자까지 입력하실 수 있습니다.");
  204. jQuery("#p_sp_remark").focus();
  205. return;
  206. }
  207. if ( stringByteSize4UTF($("#p_bef_etc").val()) > 300 ) {
  208. alert("기타변경 변경전은 100자까지 입력하실 수 있습니다.");
  209. jQuery("#p_bef_etc").focus();
  210. return;
  211. }
  212. if ( stringByteSize4UTF($("#p_aft_etc").val()) > 300 ) {
  213. alert("기타변경 변경후 100자까지 입력하실 수 있습니다.");
  214. jQuery("#p_aft_etc").focus();
  215. return;
  216. }
  217. if ( stringByteSize4UTF($("#p_chg_etc").val()) > 300 ) {
  218. alert("기타변경 증감은 100자까지 입력하실 수 있습니다.");
  219. jQuery("#p_chg_etc").focus();
  220. return;
  221. }
  222. if ( $("#p_po_prc").val() == null || $("#p_po_prc").val() =='') {
  223. alert("발주진행율 등록해주십시오");
  224. jQuery("#p_po_prc").focus();
  225. return;
  226. }
  227. if ( $("#p_res_prc").val() == null || $("#p_res_prc").val() =='' ) {
  228. alert("실적진행율 등록해주십시오");
  229. jQuery("#p_res_prc").focus();
  230. return;
  231. }
  232. return true;
  233. }
  234. function goListProc(){
  235. var f = document.form1;
  236. f.fevent.value ="";
  237. f.action = "/cont/outside/ContChgRcvList.screen";
  238. f.target = "_self";
  239. f.submit();
  240. }
  241. function doResult(resultObj) {
  242. try {
  243. if( resultObj.getRequestEvent() == "FORM_SELECT") {
  244. if( resultObj.getSuccess() ) {
  245. }
  246. else {
  247. dlgErrorMsg(resultObj);
  248. }
  249. }else if( resultObj.getRequestEvent() == "FORM_SAVE") {
  250. if( resultObj.getSuccess() ) {
  251. if(jQuery("#flag").val() == "save"){
  252. alert("저장 되었습니다.");
  253. refresh();
  254. }else if(jQuery("#flag").val() == "resolve"){
  255. document.form1.isSubmit = false;
  256. var sign_cont_mod_id = $("#SUB_CONT_MOD_ID").val();
  257. dlgSignForm('ebid_ocpoD', '/cont/outside/contChgRcvSign.screen?sign_cont_mod_id='+sign_cont_mod_id+'^acct_id='+"<%=user.get("ACCT_ID")%>");
  258. }
  259. }
  260. else {
  261. dlgErrorMsg(resultObj);
  262. }
  263. }
  264. else if(resultObj.getRequestEvent() == "GET_ATTACHFILE")
  265. {
  266. if( resultObj.getSuccess() ) {
  267. document.form1.p_AttachFile1.value = resultObj.getValueObject().get("AttachFile");
  268. }else {
  269. dlgErrorMsg(resultObj);
  270. }
  271. document.form1.isSubmit = false;
  272. }
  273. else if( resultObj.getRequestEvent() == "DUP_CHK") {
  274. if( resultObj.getSuccess() ) {
  275. var vo = resultObj.getValueObject();
  276. var cnt = vo.get("cnt");
  277. //alert("cnt: "+cnt);
  278. //alert("flag: "+jQuery("#flag").val());
  279. if(cnt > 0){
  280. if(jQuery("#flag").val() == "resolve"){
  281. alert("이미 결재중 입니다.");
  282. }else if(jQuery("#flag").val() == "fileDw"){
  283. jQuery("#signCheck").val("N");
  284. //doAttachFile(document.form1.SUB_CONT_REQ_ID, jQuery("#fileDetailCd").val() ,jQuery("#fileDetailNm").val());
  285. doAttachFile2(jQuery("#fileGB").val(), jQuery("#fileID").val());
  286. }else if(jQuery("#flag").val() == "fileCk"){
  287. jQuery("#signCheck").val("N");
  288. fileAfterCheck(jQuery("#ckVal").val());
  289. }
  290. return;
  291. }else{
  292. var f = document.form1;
  293. if(jQuery("#flag").val() == "resolve"){//결재
  294. //jQuery("#fevent").val("FORM_SAVE");
  295. if (confirm("저장후 결재 요청을 하시겠습니까?")){
  296. submitXmlRequest("/cont/outside/ContChgRcvDetail_form.screen", "FORM_SAVE", f);
  297. }else{
  298. return;
  299. }
  300. }else if(jQuery("#flag").val() == "reject"){//반려
  301. var win_id = "_RejectPop";
  302. var link = "/cont/outside/CancelContChgPop.screen";
  303. link += "?pop_win_id="+win_id;
  304. link += "&SUB_CONT_REQ_ID="+"<%=ContInfo.get("SUB_CONT_REQ_ID")%>";
  305. link += "&SUB_CONT_MOD_ID="+"<%=ContInfo.get("SUB_CONT_MOD_ID")%>";
  306. fLayerPop(win_id, link, 600,210, '', '', 'NO');
  307. }else if(jQuery("#flag").val() == "fileDw"){//결재중이 아니면 파일 수정가능
  308. jQuery("#signCheck").val("");
  309. //doAttachFile(document.form1.SUB_CONT_REQ_ID, jQuery("#fileDetailCd").val() ,jQuery("#fileDetailNm").val());
  310. doAttachFile2(jQuery("#fileGB").val(), jQuery("#fileID").val());
  311. }else if(jQuery("#flag").val() == "fileCk"){//결재중이 아니면 파일 수정가능
  312. jQuery("#signCheck").val("");
  313. fileAfterCheck(jQuery("#ckVal").val());
  314. }else{//저장
  315. submitXmlRequest("/cont/outside/ContChgRcvDetail_form.screen", "FORM_SAVE", f);
  316. }
  317. }
  318. }
  319. else {
  320. dlgErrorMsg(resultObj);
  321. }
  322. document.form1.isSubmit = false;
  323. }
  324. }
  325. catch(errorObject) {
  326. showErrorDlg("doResult()", errorObject);
  327. }
  328. }
  329. function PopClose(win_id,result){
  330. if( result != null ){
  331. if(win_id == "_RejectPop"){
  332. if(result[0] == 0){
  333. setTimeout(function(){fLayerPopClose(win_id);},100);
  334. if(result[1].length> 0)alert(result[1]);
  335. goListProc();
  336. }else if(result[0] == 1){
  337. setTimeout(function(){ fLayerPopClose(win_id);},100);
  338. if(result[1].length> 0)alert(result[1]);
  339. $("#fevent").val("FORM_SELECT");
  340. $("#form1").attr("action", "/cont/outside/ContChgRcvDetail.screen");
  341. $("#form1").attr("target", "_self");
  342. $("#form1").attr("method", "post");
  343. $("#form1").submit();
  344. }
  345. }
  346. }else{
  347. setTimeout(function(){fLayerPopClose(win_id);},100);
  348. }
  349. }
  350. function doDupChk(subContReqId,detailCd,detailNm) {
  351. var f = document.form1;
  352. jQuery("#flag").val("fileDw");
  353. jQuery("#fileDetailCd").val(detailCd);
  354. jQuery("#fileDetailNm").val(detailNm);
  355. submitXmlRequest("/cont/outside/ContChgRcvDetail_form.screen", "DUP_CHK", f, "VALUEOBJECT");
  356. document.form1.isSubmit = false;
  357. }
  358. function doDupChk2(fileGB, id, editYN) {
  359. var f = document.form1;
  360. jQuery("#flag").val("fileDw");
  361. jQuery("#fileGB").val(fileGB);
  362. jQuery("#fileID").val(id);
  363. jQuery("#fileEditYN").val(editYN);
  364. submitXmlRequest("/cont/outside/ContChgRcvDetail_form.screen", "DUP_CHK", f, "VALUEOBJECT");
  365. document.form1.isSubmit = false;
  366. }
  367. function doAttachFile(obj,No,fileName) {
  368. if(obj.value != ''){
  369. //alert(jQuery("#flag").val());
  370. var upLoadFlg = "Y";
  371. if(!jQuery("#signCheck").val() == ""){
  372. upLoadFlg = "N";
  373. }
  374. if(!((document.getElementById("STATUS_CD_3000").value=="30") || (document.getElementById("STATUS_CD_3000").value=="80")) ){
  375. upLoadFlg = "N";
  376. }
  377. viewFileListNew1('SUB_REQFILE_'+obj.value, No, document.form1.p_AttachFile2, upLoadFlg, "sub/reqfile/"+obj.value, null, fileName);
  378. }
  379. }
  380. function doAttachFile2(fileGB, id, editYN) {
  381. if(fileGB != ''){
  382. var file_div = "sub/reqfile/" + document.form1.SUB_CONT_REQ_ID.value + "/";
  383. var upLoadFlg = "Y";
  384. if((jQuery("#signCheck").val() != "") || (jQuery("#fileEditYN").val() == "N")){
  385. upLoadFlg = "N";
  386. }
  387. if(!((document.getElementById("STATUS_CD_3000").value=="30") || (document.getElementById("STATUS_CD_3000").value=="80")) ){
  388. upLoadFlg = "N";
  389. }
  390. viewFileListNew1(fileGB, id, document.form1.p_AttachFile2, upLoadFlg, file_div, null, null);
  391. }
  392. }
  393. function viewFileListNew1(fileGB, id, obj, isModify, isDrectory, iframeID, user_filename) {
  394. var win_id = "_viewFileList";
  395. var link = "/common/file/FileListNew.screen";
  396. link += "?pop_win_id="+win_id;
  397. link += "&extFunction=viewFileListClose1";
  398. link += "&file_gb=" + fileGB;
  399. link += "&id=" + id;
  400. if( obj.id != null )
  401. link += "&obj_id=" + obj.id;
  402. if( iframeID != null )
  403. link += "&iframeID=" + iframeID;
  404. if( isModify != null )
  405. link += "&is_modify=" + isModify;
  406. if( isDrectory != null )
  407. link += "&sys_gb=" + isDrectory;
  408. if( user_filename != null )
  409. link += "&user_filename=" + user_filename;
  410. fLayerPop(win_id, link, 750,430, '', '', 'NO', '200');
  411. }
  412. //첨부목록 조회
  413. function getFileListForTextarea(){
  414. document.form1.p_AttachFile1.value = "";
  415. var f = document.form1;
  416. jQuery("#fevent").val("GET_ATTACHFILE");
  417. submitXmlRequest("/cont/outside/ContChgRcvDetail_form.screen", "GET_ATTACHFILE", f, "VALUEOBJECT");
  418. }
  419. //결재
  420. function dlgSignForm( sign_class_cd, uri ) {
  421. var f = document.form1;
  422. var sheet1 = document.all.sheet1;
  423. var url = "/contOutsideSign/contChgRcvSign_form.screen";
  424. url += "?sign_class_cd=" + sign_class_cd;
  425. url += "&uri=" + uri;
  426. url += "&sign_cont_req_id=" + $("#SUB_CONT_REQ_ID").val();
  427. url += "&sign_cont_mod_id=" + $("#SUB_CONT_MOD_ID").val();
  428. url += "&acct_type=1";
  429. window.open(url, "_blank","width=200,height=100,SCROLLBARS=no");
  430. }
  431. function doCheck(){
  432. var value=document.form1.p_mode_gb.value;
  433. var result=false;
  434. if(value=="01"){ //증액
  435. if(noChgCorp()==true && noChgDate()==true){
  436. result=incAmt();
  437. }
  438. }else if(value=="02"){ //감액
  439. if(noChgCorp()==true && noChgDate()==true){
  440. result=decAmt();
  441. }
  442. }else if(value=="10"){ //연장
  443. if(noChgCorp()==true && noChgAmt()==true){
  444. result=incDate();
  445. }
  446. }else if(value=="11"){ //연장증액
  447. if(noChgCorp()==true && incAmt()==true){
  448. result=incDate();
  449. }
  450. }else if(value=="12"){ //연장감액
  451. if(noChgCorp()==true && decAmt()==true){
  452. result=incDate();
  453. }
  454. }else if(value=="20"){ //단축
  455. if(noChgCorp()==true && noChgAmt()==true){
  456. result=decDate();
  457. }
  458. }else if(value=="21"){ //단축증액
  459. if(noChgCorp()==true && incAmt()==true){
  460. result=decDate();
  461. }
  462. }else if(value=="22"){ //단축감액
  463. if(noChgCorp()==true && decAmt()==true){
  464. result=decDate();
  465. }
  466. }else if(value=="98"){ //타절
  467. if(chkChgCorp()==true){
  468. if(noChgAmt()==true){
  469. result=noChgDate();
  470. }
  471. }
  472. }else if(value=="99"){ //기타
  473. if(noChgCorp()==true){
  474. result=true;
  475. }
  476. }
  477. return result;
  478. }
  479. function incAmt(){
  480. if(Number($("#p_chg_supp_amt").val().replace(/,/gi, "")) <=0){
  481. alert("변경후 계약금액을 확인해 주세요.");
  482. $("#p_aft_supp_amt").focus();
  483. return;
  484. }
  485. return true;
  486. }
  487. function decAmt(){
  488. if(Number($("#p_chg_supp_amt").val().replace(/,/gi, "")) >=0){
  489. alert("변경후 계약금액을 확인해 주세요.");
  490. $("#p_aft_supp_amt").focus();
  491. return;
  492. }
  493. return true;
  494. }
  495. function incDate(){
  496. var befDate=$("#p_bef_cont_date").val().replace(/-/gi, "");
  497. var aftDate=$("#p_aft_cont_date").val().replace(/-/gi, "");
  498. if(aftDate-befDate<=0){
  499. alert("변경후 계약기간을 확인해 주세요.");
  500. $("#p_aft_cont_date").focus();
  501. return;
  502. }
  503. return true;
  504. }
  505. function decDate(){
  506. var befDate=$("#p_bef_cont_date").val().replace(/-/gi, "");
  507. var aftDate=$("#p_aft_cont_date").val().replace(/-/gi, "");
  508. if(aftDate-befDate>=0){
  509. alert("변경후 계약기간을 확인해 주세요.");
  510. $("#p_aft_cont_date").focus();
  511. return;
  512. }
  513. return true;
  514. }
  515. function noChgAmt(){
  516. if(Number($("#p_chg_supp_amt").val().replace(/,/gi, "")) != 0){
  517. alert("변경후 계약금액이 변경되었습니다.");
  518. $("#p_aft_supp_amt").focus();
  519. return;
  520. }
  521. return true;
  522. }
  523. function noChgDate(){
  524. var befDate=$("#p_bef_cont_date").val().replace(/-/gi, "");
  525. var aftDate=$("#p_aft_cont_date").val().replace(/-/gi, "");
  526. if(aftDate-befDate!="0"){
  527. alert("변경후 계약기간이 변경되었습니다.");
  528. $("#p_aft_cont_date").focus();
  529. return;
  530. }
  531. return true;
  532. }
  533. function noChgCorp(){
  534. var befCorp=$("#p_bef_corp_id").val();
  535. var aftCorp=$("#p_aft_corp_id").val();
  536. if(befCorp!=aftCorp){
  537. alert("변경후 사업자번호가 변경되었습니다.");
  538. $("#p_aft_corp_id").focus();
  539. return;
  540. }
  541. return true;
  542. }
  543. function chkChgCorp(){
  544. var befCorp=$("#p_bef_corp_id").val();
  545. var aftCorp=$("#p_aft_corp_id").val();
  546. if(befCorp==aftCorp){
  547. alert("변경후 사업자번호가 동일합니다.");
  548. $("#p_aft_corp_id").focus();
  549. return;
  550. }
  551. return true;
  552. }
  553. function fileCheck(val){
  554. //alert(val);
  555. var f = document.form1;
  556. jQuery("#flag").val("fileCk");
  557. jQuery("#ckVal").val(val);
  558. submitXmlRequest("/cont/outside/ContChgRcvDetail_form.screen", "DUP_CHK", f, "VALUEOBJECT");
  559. document.form1.isSubmit = false;
  560. }
  561. function fileAfterCheck(val){
  562. if(!jQuery("#signCheck").val() == ""){
  563. var obj = eval("document.getElementById('p_" + val + "')");
  564. alert("결재중엔 파일 수정이 불가합니다.");
  565. jQuery(obj).attr("checked",false);
  566. return;
  567. }else{
  568. var obj = eval("document.getElementById('" + val + "')");
  569. if(obj.style.display == "none"){
  570. obj.style.display = "inline";
  571. }else{
  572. obj.style.display = "none";
  573. }
  574. }
  575. }
  576. function refresh(){//저장
  577. $("#fevent").val("FORM_SELECT");
  578. $("#form1").attr("action", "/cont/outside/ContChgRcvDetail.screen");
  579. $("#form1").attr("target", "_self");
  580. $("#form1").attr("method", "post");
  581. $("#form1").submit();
  582. }
  583. function doSignFile(doc_id, year) {
  584. var link = "";
  585. if(doc_id == ""){
  586. alert("결재 정보가 없습니다.");
  587. return;
  588. }
  589. var doc_chk = doc_id.substring(doc_id.length-3, doc_id.length);
  590. doc_chk = doc_chk * 1;
  591. if (year > "20151213"){
  592. link = "https://gw.sgcenc.co.kr/upload_approval/TEC/doc/" + year.substr(0,4) + "/" + doc_chk + "/"+ doc_id+".mht";
  593. }
  594. else
  595. {
  596. link = "https://gw.sgcenc.co.kr/upload_approval/TEC/doc/" + doc_chk + "/"+ doc_id+".mht";
  597. }
  598. window.open(link,"_viewDraft","");
  599. }
  600. </SCRIPT>
  601. <modular:search id="form1">
  602. <modular:key id="fevent" />
  603. </modular:search>
  604. <form id="form1" name="form1" method="post" modular:type="search">
  605. <INPUT type="hidden" name="fevent" id="fevent" value="<%= params.get("fevent") %>">
  606. <INPUT type="hidden" name="acct_id" value="<%= params.get("acct_id") %>">
  607. <INPUT type="hidden" name="p_dept_cd" value="<%= params.get("p_dept_cd") %>">
  608. <INPUT type="hidden" name="p_dept_nm" value="<%= params.get("p_dept_nm") %>">
  609. <INPUT type="hidden" name="p_dealer_nm" value="<%= params.get("p_dealer_nm") %>">
  610. <INPUT type="hidden" name="ContFromDt" value="<%= params.get("ContFromDt") %>">
  611. <INPUT type="hidden" name="ContToDt" value="<%= params.get("ContToDt") %>">
  612. <INPUT type="hidden" name="p_build_nm" value="<%= params.get("p_build_nm") %>">
  613. <INPUT type="hidden" name="p_cont_req_status" value="<%= params.get("p_cont_req_status") %>">
  614. <!-- 검색 조건 끝-->
  615. <INPUT type="hidden" name="CONT_STATUS" value="<%=ContInfo.get("CONT_STATUS")%>">
  616. <INPUT type="hidden" name="SUB_CONT_REQ_ID" value="<%=ContInfo.get("SUB_CONT_REQ_ID")%>">
  617. <INPUT type="hidden" name="SUB_CONT_MOD_ID" value="<%=ContInfo.get("SUB_CONT_MOD_ID")%>">
  618. <INPUT type="hidden" name="STATUS_CD" value="<%=ContInfo.get("STATUS_CD")%>">
  619. <INPUT type="hidden" name="STATUS_CD_3000" value="<%=ContInfo.get("STATUS_CD_3000")%>">
  620. <input type="hidden" name="p_AttachFile2" id="p_AttachFile2" onPropertyChange="JavaScript:getFileListForTextarea();"/>
  621. <INPUT type="hidden" name="digit" id="digit" value="<%=ContInfo.get("DIGIT")%>">
  622. <INPUT type="hidden" name="flag" id="flag" value="">
  623. <INPUT type="hidden" name="chk_gb" id="chk_gb" value="">
  624. <INPUT type="hidden" name="p_chg_cont_date" id="p_chg_cont_date" value="<%=ContInfo.get("CONT_DATE_NM")%>">
  625. <INPUT type="hidden" id="fileDetailCd" value="">
  626. <INPUT type="hidden" id="fileDetailNm" value="">
  627. <INPUT type="hidden" id="signCheck" value="">
  628. <INPUT type="hidden" id="ckVal" value="">
  629. <INPUT type="hidden" id="fileGB" value="">
  630. <INPUT type="hidden" id="fileID" value="">
  631. <INPUT type="hidden" id="fileEditYN" value="">
  632. <!-- 제목 및 버튼 -->
  633. <table width="100%">
  634. <colgroup>
  635. <col width="500" />
  636. <col width="*" />
  637. </colgroup>
  638. <tr>
  639. <th>
  640. <div align="left" id="title">
  641. <ul>
  642. <li>외주_변경계약접수</font></li>
  643. </ul>
  644. </div>
  645. </th>
  646. <td align="right">
  647. <%if(ContInfo.get("STATUS_CD_3000").equals("30") || ContInfo.get("STATUS_CD_3000").equals("80")){ %> <!-- 2018.07.11 전자조달 30.80만 수정가능 -->
  648. <span class="btnSearch center" id="btnSave"><a href="javascript:void(0);">저장</a></span>
  649. <span class="btnSearch center" id="btnResolve"><a href="javascript:void(0);">접수</a></span>
  650. <span class="btnSearch center" id="btnReject"><a href="javascript:void(0);">반려</a></span>
  651. <%}%>
  652. <span class="btnSearch center" id="btnList"><a href="javascript:goListProc();">목록</a></span>
  653. </td>
  654. </tr>
  655. </table>
  656. <%@ include file="/jsp/ko_KR/buyer/cont/outside/ContChgRcvInfo.jsp" %>
  657. <div class="application-info magT10">
  658. <div class="application-sub-title">
  659. <span class="title">변경계약 접수 정보</span>
  660. &nbsp;&nbsp;&nbsp;변경구분
  661. <%= HTMLMaker.getSelectTag(modGbRow, "CODE", "NAME", "p_mode_gb", "style='width:100px; margin-bottom: 2px;' disabled", "", ContInfo.get("MOD_GB")) %>
  662. </div>
  663. </div>
  664. <!-- 변경계약요청정보 들어갈곳 -->
  665. <div class="tab_container">
  666. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; margin-left: 0px; margin-top: 0px;">
  667. <tr>
  668. <td align="left">
  669. <table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table">
  670. <col width="7%" />
  671. <col width="8%" />
  672. <col width="20%" />
  673. <col width="*" />
  674. <col width="20%" />
  675. <col width="20%" />
  676. <tr>
  677. <th colspan="2" style="text-align: center;">
  678. 구분
  679. </th>
  680. <th style="text-align: center;">
  681. 변경전
  682. </th>
  683. <th style="text-align: center;">
  684. 변경후
  685. </th>
  686. <th style="text-align: center;">
  687. 증감
  688. </th>
  689. <th style="text-align: center;">
  690. 증감율(%)
  691. </th>
  692. </tr>
  693. <tr>
  694. <th colspan="2" style="text-align: center;">
  695. 사업자번호
  696. </th>
  697. <td style="text-align: center;">
  698. <INPUT type="hidden" name="p_bef_corp_id" id="p_bef_corp_id" value="<%=ContInfo.get("BEF_C_CORP_ID")%>">
  699. <%=InputText.get("p_bef_vend_cd",StringUtils.getBizNo(ContInfo.get("BEF_C_VEND_CD")), 98,20, "PerSize, center,readonly") %>
  700. </td>
  701. <td style="text-align: center;">
  702. <INPUT type="hidden" name="p_aft_corp_id" id="p_aft_corp_id" value="<%=ContInfo.get("C_CORP_ID")%>">
  703. <INPUT type="hidden" name="p_aft_member_nm" id="p_aft_member_nm" value="<%=ContInfo.get("C_MEMBER_NAME")%>">
  704. <INPUT type="hidden" name="p_aft_boss_nm" id="p_aft_boss_nm" value="<%=ContInfo.get("C_BOSS_NAME")%>">
  705. <%if(ContInfo.get("MOD_GB").equals("98")){ %>
  706. <%=InputText.get("p_aft_vend_cd",StringUtils.getBizNo(ContInfo.get("C_VENDCD")), 70,20, "PerSize, center,readonly") %>
  707. <span class="btnSearch center" id="btnChgCorp"><a href="javascript:void(0);">사업자번호변경</a></span>
  708. <%}else{ %>
  709. <%=InputText.get("p_aft_vend_cd",StringUtils.getBizNo(ContInfo.get("C_VENDCD")), 98,20, "PerSize, center,readonly") %>
  710. <%} %>
  711. </td>
  712. <td>
  713. </td>
  714. <td>
  715. </td>
  716. </tr>
  717. <tr>
  718. <th rowspan="5" style="text-align: center;">
  719. 계약변경<br>요청내역<br>(부가세별도)
  720. </th>
  721. <th style="text-align: center;">
  722. 도급금액
  723. </th>
  724. <td id="td_bef_cont_amt" style="text-align: right;">
  725. <%if(ContInfo.get("MOD_GB").equals("10") ||ContInfo.get("MOD_GB").equals("20") ||ContInfo.get("MOD_GB").equals("98")){ %>
  726. <%= ContInfo.get("BEF_CONT_AMT")%>
  727. <%}else{ %>
  728. <%-- <input name="p_bef_cont_amt" id="p_bef_cont_amt" value="<%= ContInfo.get("BEF_CONT_AMT")%>" class="input" style="width: 98%;text-align: right;"/> --%>
  729. <%=InputText.get("p_bef_cont_amt",Formatter2.currency(ContInfo.get("BEF_CONT_AMT")), 98,20, "PerSize,Number, right","Number") %>
  730. <%} %>
  731. </td>
  732. <td style="text-align: right;">
  733. <%if(ContInfo.get("MOD_GB").equals("10") ||ContInfo.get("MOD_GB").equals("20") ||ContInfo.get("MOD_GB").equals("98")){ %>
  734. <%= ContInfo.get("AFT_CONT_AMT")%>
  735. <%}else{ %>
  736. <%-- <input name="p_aft_cont_amt" id="p_aft_cont_amt" value="<%= ContInfo.get("AFT_CONT_AMT")%>" class="input" style="width: 98%;text-align: right;"/> --%>
  737. <%=InputText.get("p_aft_cont_amt",Formatter2.currency(ContInfo.get("AFT_CONT_AMT")), 98,20, "PerSize,Number, right","Number") %>
  738. <%} %>
  739. </td>
  740. <td id="td_chg_cont_amt" style="text-align: right;">
  741. <%if(ContInfo.get("MOD_GB").equals("10") ||ContInfo.get("MOD_GB").equals("20") ||ContInfo.get("MOD_GB").equals("98")){ %>
  742. <%= ContInfo.get("CHG_CONT_AMT")%>
  743. <%}else{ %>
  744. <%-- <input name="p_chg_cont_amt" id="p_chg_cont_amt" value="<%= ContInfo.get("CHG_CONT_AMT")%>" class="input" style="width: 98%;text-align: right;" readonly="readonly"/> --%>
  745. <%=InputText.get("p_chg_cont_amt",Formatter2.currency(ContInfo.get("CHG_CONT_AMT")), 98,20, "PerSize,Number, right,readonly","Number") %>
  746. <%} %>
  747. </td>
  748. <td>
  749. </td>
  750. </tr>
  751. <tr>
  752. <th style="text-align: center;">
  753. 예산금액
  754. </th>
  755. <td style="text-align: right;">
  756. <%if(ContInfo.get("MOD_GB").equals("10") ||ContInfo.get("MOD_GB").equals("20") ||ContInfo.get("MOD_GB").equals("98")){ %>
  757. <%= ContInfo.get("BEF_BUG_AMT")%>
  758. <%}else{ %>
  759. <%-- <input name="p_bef_bug_amt" id="p_bef_bug_amt" value="<%= ContInfo.get("BEF_BUG_AMT")%>" class="input" style="width: 98%;text-align: right;"/> --%>
  760. <%=InputText.get("p_bef_bug_amt",Formatter2.currency(ContInfo.get("BEF_BUG_AMT")), 98,20, "PerSize,Number, right","Number") %>
  761. <%} %>
  762. </td>
  763. <td style="text-align: right;">
  764. <%if(ContInfo.get("MOD_GB").equals("10") ||ContInfo.get("MOD_GB").equals("20") ||ContInfo.get("MOD_GB").equals("98")){ %>
  765. <%= ContInfo.get("AFT_BUG_AMT")%>
  766. <%}else{ %>
  767. <%-- <input name="p_aft_bug_amt" id="p_aft_bug_amt" value="<%= ContInfo.get("AFT_BUG_AMT")%>" class="input" style="width: 98%;text-align: right;"/> --%>
  768. <%=InputText.get("p_aft_bug_amt",Formatter2.currency(ContInfo.get("AFT_BUG_AMT")), 98,20, "PerSize,Number, right","Number") %>
  769. <%} %>
  770. </td>
  771. <td style="text-align: right;">
  772. <%if(ContInfo.get("MOD_GB").equals("10") ||ContInfo.get("MOD_GB").equals("20") ||ContInfo.get("MOD_GB").equals("98")){ %>
  773. <%= ContInfo.get("CHG_BUG_AMT")%>
  774. <%}else{ %>
  775. <%-- <input name="p_chg_bug_amt" id="p_chg_bug_amt" value="<%= ContInfo.get("CHG_BUG_AMT")%>" class="input" style="width: 98%;text-align: right;" readonly="readonly"/> --%>
  776. <%=InputText.get("p_chg_bug_amt",Formatter2.currency(ContInfo.get("CHG_BUG_AMT")), 98,20, "PerSize,Number, right,readonly","Number") %>
  777. <%} %>
  778. </td>
  779. <td style="text-align: left;">
  780. <%if(ContInfo.get("MOD_GB").equals("10") ||ContInfo.get("MOD_GB").equals("20") ||ContInfo.get("MOD_GB").equals("98")){ %>
  781. <%= ContInfo.get("CHG_BUG_RATE")%>
  782. <input type="hidden" name="p_chg_bug_rate" id="p_chg_bug_rate" value="<%= ContInfo.get("CHG_BUG_RATE")%>" class="input" style="width: 98%;text-align: left; border:none; cursor:default;" readonly="readonly"/>
  783. <%}else{ %>
  784. <input name="p_chg_bug_rate" id="p_chg_bug_rate" value="<%= ContInfo.get("CHG_BUG_RATE")%>" class="input" style="width: 98%;text-align: left; border:none; cursor:default;" readonly="readonly"/>
  785. <%} %>
  786. </td>
  787. </tr>
  788. <tr>
  789. <th style="text-align: center;">
  790. 계약금액
  791. </th>
  792. <td style="text-align: right;">
  793. <%if(ContInfo.get("MOD_GB").equals("10") ||ContInfo.get("MOD_GB").equals("20") ||ContInfo.get("MOD_GB").equals("98")){ %>
  794. <%= ContInfo.get("BEF_SUPP_AMT")%>
  795. <%}else{ %>
  796. <%-- <input name="p_bef_supp_amt" id="p_bef_supp_amt" value="<%= ContInfo.get("BEF_SUPP_AMT")%>" class="input" style="width: 98%;text-align: right;"/> --%>
  797. <%=InputText.get("p_bef_supp_amt",Formatter2.currency(ContInfo.get("BEF_SUPP_AMT")), 98,20, "PerSize,Number, right","Number") %>
  798. <%} %>
  799. </td>
  800. <td style="text-align: right;">
  801. <%if(ContInfo.get("MOD_GB").equals("10") ||ContInfo.get("MOD_GB").equals("20") ||ContInfo.get("MOD_GB").equals("98")){ %>
  802. <input type="hidden" name="p_aft_supp_amt" id="p_aft_supp_amt" value="<%= ContInfo.get("AFT_SUPP_AMT")%>"/>
  803. <%= ContInfo.get("AFT_SUPP_AMT")%>
  804. <%}else{ %>
  805. <%-- <input name="p_aft_supp_amt" id="p_aft_supp_amt" value="<%= ContInfo.get("AFT_SUPP_AMT")%>" class="input" style="width: 98%;text-align: right;"/> --%>
  806. <%=InputText.get("p_aft_supp_amt",Formatter2.currency(ContInfo.get("AFT_SUPP_AMT")), 98,20, "PerSize,Number, right","Number") %>
  807. <%} %>
  808. </td>
  809. <td style="text-align: right;">
  810. <%if(ContInfo.get("MOD_GB").equals("10") ||ContInfo.get("MOD_GB").equals("20") ||ContInfo.get("MOD_GB").equals("98")){ %>
  811. <input type="hidden" name="p_chg_supp_amt" id="p_chg_supp_amt" value="<%= ContInfo.get("CHG_SUPP_AMT")%>"/>
  812. <%= ContInfo.get("CHG_SUPP_AMT")%>
  813. <%}else{ %>
  814. <%-- <input name="p_chg_supp_amt" id="p_chg_supp_amt" value="<%= ContInfo.get("CHG_SUPP_AMT")%>" class="input" style="width: 98%;text-align: right;" readonly="readonly"/> --%>
  815. <%=InputText.get("p_chg_supp_amt",Formatter2.currency(ContInfo.get("CHG_SUPP_AMT")), 98,20, "PerSize,Number, right,readonly","Number") %>
  816. <%} %>
  817. </td>
  818. <td style="text-align: left;">
  819. <%if(ContInfo.get("MOD_GB").equals("10") ||ContInfo.get("MOD_GB").equals("20") ||ContInfo.get("MOD_GB").equals("98")){ %>
  820. <%= ContInfo.get("CHG_SUPP_RATE")%>
  821. <%}else{ %>
  822. <input name="p_chg_supp_rate" id="p_chg_supp_rate" value="<%= ContInfo.get("CHG_SUPP_RATE")%>" class="input" style="width: 98%;text-align: left; border:none; cursor:default;" readonly="readonly"/>
  823. <%} %>
  824. </td>
  825. </tr>
  826. <tr>
  827. <th style="text-align: center;">
  828. 계약기간
  829. </th>
  830. <td style="text-align: center;">
  831. <%-- <input name="p_bef_cont_date" id="p_bef_cont_date" value="<%= ContInfo.get("BEF_CONT_DATE")%>" class="input" style="width: 98%;text-align: center;" readonly="readonly"/> --%>
  832. <%=InputText.get("p_bef_cont_date",Formatter2.currency(ContInfo.get("BEF_CONT_DATE")), 98,20, "PerSize, center,readonly") %>
  833. </td>
  834. <td style="text-align: center;">
  835. <%if(ContInfo.get("MOD_GB").equals("01") ||ContInfo.get("MOD_GB").equals("02") ||ContInfo.get("MOD_GB").equals("98")){ %>
  836. <%-- <input name="p_aft_cont_date" id="p_aft_cont_date" value="<%= ContInfo.get("AFT_CONT_DATE")%>" class="input" style="width: 98%;text-align: center;" readonly="readonly"/> --%>
  837. <%=InputText.get("p_aft_cont_date",Formatter2.currency(ContInfo.get("AFT_CONT_DATE")), 98,20, "PerSize, center,readonly") %>
  838. <%}else{ %>
  839. <%-- <input name="p_aft_cont_date" id="p_aft_cont_date" value="<%= ContInfo.get("AFT_CONT_DATE")%>" class="input" style="width: 98%;text-align: center;"/> --%>
  840. <%=InputText.get("p_aft_cont_date",Formatter2.currency(ContInfo.get("AFT_CONT_DATE")), 85,20, "PerSize, center,readonly") %>
  841. <IMG name="start_img" id="calender_from" src="/img/buyer/button/bt_calender.gif" border="0" align="absmiddle" style="cursor:pointer;" onClick="JavaScript:dlgCalendar('p_aft_cont_date');">
  842. <%} %>
  843. </td>
  844. <td style="text-align: center;">
  845. <%if(ContInfo.get("MOD_GB").equals("01") ||ContInfo.get("MOD_GB").equals("02") ||ContInfo.get("MOD_GB").equals("98")){ %>
  846. <%-- <%= ContInfo.get("CONT_DATE_NM")%> --%>
  847. <%=InputText.get("p_cont_date_nm",Formatter2.currency(ContInfo.get("CONT_DATE_NM")), 98,20, "PerSize, center,readonly") %>
  848. <%}else{ %>
  849. <%-- <input name="p_cont_date_nm" id="p_cont_date_nm" value="<%= ContInfo.get("CONT_DATE_NM")%>" class="input" style="width: 98%;text-align: center;" readonly="readonly"/> --%>
  850. <%=InputText.get("p_cont_date_nm",Formatter2.currency(ContInfo.get("CONT_DATE_NM")), 98,20, "PerSize, center,readonly") %>
  851. <%} %>
  852. </td>
  853. <td>
  854. </td>
  855. </tr>
  856. <tr>
  857. <th style="text-align: center;">
  858. 기타변경
  859. </th>
  860. <td>
  861. <%-- <input name="p_bef_etc" id="p_bef_etc" value="<%= ContInfo.get("BEF_ETC")%>" class="input" style="width: 98%;"/> --%>
  862. <%=InputText.get("p_bef_etc",ContInfo.get("BEF_ETC"), 98,50, "PerSize,left") %>
  863. <%-- <%= ContInfo.get("BEF_ETC")%> --%>
  864. </td>
  865. <td>
  866. <%-- <input name="p_aft_etc" id="p_aft_etc" value="<%= ContInfo.get("AFT_ETC")%>" class="input" style="width: 98%;"/> --%>
  867. <%=InputText.get("p_aft_etc",ContInfo.get("AFT_ETC"), 98,50, "PerSize,left") %>
  868. <%-- <%= ContInfo.get("AFT_ETC")%> --%>
  869. </td>
  870. <td>
  871. <%= ContInfo.get("CHG_ETC")%>
  872. </td>
  873. <td>
  874. </td>
  875. </tr>
  876. <tr>
  877. <th colspan="2" style="text-align: center;">
  878. 외주 발주진행율 누계
  879. </th>
  880. <TD><%= InputText.get("p_po_prc", ContInfo.get("PO_PRC"), 5, 5, "Right,Float","Float") %>%</TD>
  881. <th style="text-align: center;">
  882. 외주 발주실적율 누계
  883. </th>
  884. <TD colspan="2"><%= InputText.get("p_res_prc", ContInfo.get("RES_PRC"), 5, 5, "Right,Float","Float") %>%</TD>
  885. </tr>
  886. <tr>
  887. <tr>
  888. <th colspan="2" style="text-align: center;">
  889. 변경사유
  890. </th>
  891. <td colspan="4">
  892. <textarea name="p_remark" id="p_remark" style="width:99%;height:80px" rows="1" class="input" ><%= ContInfo.get("REMARK")%></textarea>
  893. </td>
  894. </tr>
  895. <tr>
  896. <th colspan="2" style="text-align: center;">
  897. 특기사항
  898. </th>
  899. <td colspan="4">
  900. <textarea name="p_sp_remark" id="p_sp_remark" style="width:99%;height:80px" rows="1" class="input" ><%= ContInfo.get("SP_REMARK")%></textarea>
  901. </td>
  902. </tr>
  903. <tr >
  904. <th colspan="2" style="text-align: center;">
  905. 첨부파일
  906. </th>
  907. <td colspan="2" id="input01">
  908. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  909. <%
  910. if(getFileListRowSet.size() > 0){
  911. int i_mod = 0;
  912. for(int i = 0; getFileListRowSet.size() > i; i++){
  913. i_mod = i%2;
  914. if(i_mod == 0){ %>
  915. <TR>
  916. <% } %>
  917. <td width="50%">
  918. <label for="p_<%=getFileListRowSet.getRow(i).get("DETAILCD") %>"><input type="checkbox" name="<%=getFileListRowSet.getRow(i).get("DETAILNM") %>" id="p_<%=getFileListRowSet.getRow(i).get("DETAILCD") %>" value="<%=getFileListRowSet.getRow(i).get("DETAILCD") %>" style="cursor:pointer;" onClick="fileCheck('<%=getFileListRowSet.getRow(i).get("DETAILCD") %>')" <%if(!getFileListRowSet.getRow(i).get("DOC_CD").equals("")){out.print("checked");} %> <%if(getFileListRowSet.getRow(i).get("EDIT_YN").equals("N")){out.print("disabled");} %>> <%=getFileListRowSet.getRow(i).get("DETAILNM") %></label>
  919. </td>
  920. <td width="5%" height="24">
  921. <% if(getFileListRowSet.getRow(i).get("DETAILCD").equals("160")) { %>
  922. <IMG src="/img/supplier/button/bt_attach_file.gif" id="<%=getFileListRowSet.getRow(i).get("DETAILCD") %>" alt="첨부파일 관리" align="top" style="display:inline;" onClick="doSignFile('<%=sign_info.get("doc_id")%>', '<%=sign_info.get("year")%>');" class="button">
  923. <%}else{ %>
  924. <IMG src="/img/supplier/button/bt_attach_file.gif" id="<%=getFileListRowSet.getRow(i).get("DETAILCD") %>" alt="첨부파일 관리" align="top" style="display:<%if(!getFileListRowSet.getRow(i).get("DOC_CD").equals("")){out.print("inline");}else{out.print("none");} %>" onClick="doDupChk2('<%=getFileListRowSet.getRow(i).get("FILE_GB") %>', '<%=getFileListRowSet.getRow(i).get("ID")%>', '<%=getFileListRowSet.getRow(i).get("EDIT_YN")%>');" class="button">
  925. <%} %>
  926. </td>
  927. <% if(i_mod == 2) { %>
  928. </TR>
  929. <% } %>
  930. <%
  931. }
  932. for(int i=i_mod+1; i<2; i++){ %>
  933. <td></td>
  934. <% }
  935. if(i_mod == 0 || i_mod == 1){ %>
  936. </TR>
  937. <% }
  938. }
  939. %>
  940. </table>
  941. </TD>
  942. <td colspan="2" id="input01">
  943. <textarea name="p_AttachFile1" id="p_AttachFile1" style="width:98%;height:100px" rows="1" class="input" readOnly></textarea>
  944. <!-- <img id="search_spot_button" src='/img/buyer/button/bt_change.gif' border='0' align="top" align='absmiddle' alt='[Attach File]' style='cursor:pointer; vertical-align: middle; margin-bottom: 20px;'> -->
  945. </td>
  946. </tr>
  947. </table>
  948. </td>
  949. </tr>
  950. </table>
  951. </div>
  952. </form>