ContChgRcvDetail.jsp 40 KB

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