SuppOwn.jsp 110 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864
  1. <%--
  2. - FileName : PuSupplier.jsp
  3. - Author(s) : 이성민
  4. - Date : 2014.06.26
  5. -
  6. - Description: 협력업체현황 상세
  7. --%>
  8. <%@ page contentType="text/html; charset=utf-8" %>
  9. <%@ page import="com.udapsoft.waf.system.HandlerStorage" %>
  10. <%@ page import="com.udapsoft.waf.common.ui.*" %>
  11. <%@ page import="com.udapsoft.waf.common.util.DateUtil"%>
  12. <%@ page import="kr.co.hsnc.common.util.*"%>
  13. <%@ page import="kr.co.hsnc.common.sql.*" %>
  14. <%@ page import="kr.co.hsnc.common.sql.RowSet" %>
  15. <%@ page import="kr.co.udapsoft.common.code.*" %>
  16. <%@ page import="com.udapsoft.waf.common.util.StringUtils" %>
  17. <%@ page import="com.udapsoft.waf.common.util.Formatter2"%>
  18. <%@ include file="/jsp/work/taglib.jsp" %>
  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. String event = storage.getEvent();
  26. ValueObject vo = storage.getValueObject("InfoBaseList");
  27. ValueObject filein = storage.getValueObject("TERMS_AGREE_INFO");
  28. ValueObject corpInfoVo = storage.getValueObject("corpInfoVo");
  29. String yyyy = (new java.text.SimpleDateFormat ("yyyy")).format (new java.util.Date());
  30. int year = Integer.parseInt(storage.getRowSet("g_base_year").getRow(0).get("G_BASE_YEAR"));
  31. //Integer.toString(year+1)+ "|" +
  32. String yesrCombo = Integer.toString(year) + "|" + Integer.toString(year-1) + "|" + Integer.toString(year-2) + "|" + Integer.toString(year-3) + "|" + Integer.toString(year-4);
  33. String yesrCombo_new = Integer.toString(year-1) + "|" + Integer.toString(year-2) + "|" + Integer.toString(year-3) ;
  34. RowSet rowset = storage.getRowSet("out_main");
  35. RowSet getFileListRowSet = storage.getRowSet("getFileListRowSet");
  36. RowSet licMasterList = storage.getRowSet("licMasterList");
  37. String lic_code = "";
  38. String lic_name = "";
  39. for (int i = 0; i < licMasterList.size(); i++) {
  40. lic_code = lic_code + "|"
  41. + (licMasterList.getRow(i).get("LIC_CD"));
  42. lic_name = lic_name + "|"
  43. + (licMasterList.getRow(i).get("LIC_NM"));
  44. }
  45. String sToday = DateUtil.getSystemDate().substring(0,8);
  46. %>
  47. <!-- CSS -->
  48. <link href="/css/buyer/member_style.css" rel="stylesheet" type="text/css" />
  49. <!-- SCROPT -->
  50. <script type="text/javascript">
  51. <!--
  52. var now = new Date();
  53. var now_DY = now.getFullYear();
  54. var now_MM = (now.getMonth() + 1);
  55. if(now_MM < 10){
  56. now_MM = "0"+ now_MM;
  57. }
  58. var now_dd = now.getDate();
  59. if(now_dd < 10){
  60. now_dd = "0"+now_dd;
  61. }
  62. now_DY = now_DY+now_MM+now_dd;
  63. var credit_yn = "<%=vo.get("credit_yn")%>";
  64. var job_div = "<%=params.get("job_div")%>";
  65. var class_gubun = "<%=vo.get("ITEM_STD_CD")%>";
  66. var corp_reg_gubun = "<%=vo.get("CORP_REG_NO") %>";
  67. corp_reg_gubun = corp_reg_gubun.trim().substring(3,5);
  68. var search_flag_4 = "N";
  69. var search_flag_5 = "N";
  70. var search_flag_6 = "N";
  71. var search_flag_7 = "N";
  72. var search_flag_8 = "N";
  73. var search_flag_9 = "N";
  74. $(document).ready(function(){
  75. var init_sheet = {};
  76. init_sheet.Cfg = {SearchMode:2, MergeSheet:msHeaderOnly, Page:30,ChildPage:10};
  77. init_sheet.Cols = [
  78. {Header:"레벨", Type:"Text", TreeCol:1, LevelSaveName:"MATERIAL_LEVEL", SaveName:"MATERIAL_LEVEL" , Width:250},
  79. {Header:"대분류", Type:"Text", SaveName:"GUBUN_1", Width:80, Align:"Center", Hidden:"True"},
  80. {Header:"중분류", Type:"Text", SaveName:"GUBUN_2", Width:80, Align:"Center", Hidden:"True"},
  81. {Header:"소분류", Type:"Text", SaveName:"GUBUN_3", Width:80, Align:"Center", Hidden:"True"},
  82. {Header:"LEVEL", Type:"Text", SaveName:"LEVEL", Width:0, Align:"Center", Hidden:"True"},
  83. {Header:"CODE", Type:"Text", SaveName:"MATERIALGROUP", Width:100, Align:"Center", Hidden:"True"}
  84. ];
  85. init_sheet.HeaderMode = {Sort:1};
  86. IBS_InitSheet(sheet1, init_sheet);
  87. sheet1.SetDataAutoTrim(0);
  88. sheet1.SetEditable(false);
  89. sheet1.SetCountPosition(0);
  90. sheet1.FitColWidth();
  91. /***********************sheet2*****************************/
  92. var init_sheet = {};
  93. init_sheet.Cfg = {SearchMode:2, MergeSheet:msHeaderOnly, Page:10};
  94. init_sheet.Cols = [
  95. {Header:"삭제", Type:"DelCheck", SaveName:"DEL_CHECK", Width:50, Align:"Center"},
  96. {Header:'Status', Type:"Status", SaveName:"STATUS", Width:0, Align:"Center", Hidden:"True"},
  97. {Header:"대분류", Type:"Text", SaveName:"KIND_BIG_NAME", Width:110, Align:"Left" },
  98. {Header:"중분류", Type:"Text", SaveName:"KIND_MID_NAME", Width:110, Align:"Left"},
  99. {Header:"소분류", Type:"Text", SaveName:"KIND_SMALL_NAME", Width:110, Align:"Left"},
  100. <%if(params.get("job_div").equals("P")){%>
  101. {Header:"대표ITEM", Type:"Radio", SaveName:"MAIN_ITEM", Width:80, Align:"Center"},
  102. <%}else{%>
  103. {Header:"대표공종", Type:"Radio", SaveName:"MAIN_ITEM", Width:80, Align:"Center"},
  104. <%}%>
  105. {Header:"ITEM_CODE", Type:"Text", SaveName:"ITEM_CODE", Width:0, Align:"Center", Hidden:"True"}
  106. ];
  107. init_sheet.HeaderMode = {Sort:1};
  108. IBS_InitSheet(sheet2, init_sheet);
  109. sheet2.SetDataAutoTrim(0);
  110. sheet2.SetEditable(true);
  111. sheet2.SetCountPosition(0);
  112. sheet2.FitColWidth();
  113. /*********************** *****************************/
  114. var init_sheet = {};
  115. init_sheet.Cfg = {SearchMode:2, MergeSheet:msHeaderOnly, Page:10};
  116. init_sheet.Cols = [
  117. {Header:'Status', Type:"Status", SaveName:"STATUS", Width:0, Align:"Center", Hidden:"True"},
  118. {Header:"신용평가사", Type:"Text", SaveName:"CREDIT_CORP_CD", Width:100, Edit:"False"},
  119. {Header:"신용등급", Type:"Text", SaveName:"CREDIT_GRADE", Width:100, Align:"Center"},
  120. {Header:"현금흐름등급", Type:"Text", SaveName:"CASH_GRADE", Width:100, Align:"Center"},
  121. {Header:"신용평가만료일", Type:"Date", SaveName:"CREDIT_END_DY", Width:100, Align:"Center"},
  122. {Header:"신용평가사코드", Type:"Text", SaveName:"GUBUN_CODE", Width:100, Align:"Center", Hidden:"True"}
  123. ];
  124. init_sheet.HeaderMode = {Sort:1};
  125. IBS_InitSheet(sheet3, init_sheet);
  126. sheet3.SetDataAutoTrim(0);
  127. sheet3.SetEditable(false);
  128. sheet3.SetCountPosition(0);
  129. sheet3.FitColWidth();
  130. /***********************sheet4*****************************/
  131. var init_sheet = {};
  132. init_sheet.Cfg = {SearchMode:2, MergeSheet:msHeaderOnly, Page:10};
  133. init_sheet.Cols = [
  134. {Header:'Status', Type:"Status", SaveName:"STATUS", Width:0, Align:"Center", Hidden:"True"},
  135. {Header:"ID", Type:"Text", SaveName:"USER_ID", Width:140},
  136. {Header:"비밀번호", Type:"Text", SaveName:"PASSWD", Width:140, Align:"Center", Hidden:"True"},
  137. {Header:"담당자명", Type:"Text", SaveName:"USER_NAME", Width:140, Align:"Center"},
  138. {Header:"부서명", Type:"Text", SaveName:"DIVISION", Width:140, Align:"Center"},
  139. {Header:"직위", Type:"Text", SaveName:"POSITION", Width:140, Align:"Center"},
  140. {Header:"이메일", Type:"Text", SaveName:"EMAIL", Width:140, Align:"Center"},
  141. {Header:"전화번호", Type:"Text", SaveName:"TEL_NUM", Width:160, Align:"Center"},
  142. {Header:"FAX번호", Type:"Text", SaveName:"FAX_NUM", Width:160, Align:"Center"},
  143. {Header:"휴대전화", Type:"Text", SaveName:"HP1", Width:30, Align:"Center", EditLen:"3"},
  144. {Header:"휴대전화", Type:"Text", SaveName:"BAR1", Width:12, Align:"Left", Edit:"false"},
  145. {Header:"휴대전화", Type:"Text", SaveName:"HP2", Width:30, Align:"Center", EditLen:"4"},
  146. {Header:"휴대전화", Type:"Text", SaveName:"BAR2", Width:12, Align:"Left", Edit:"false"},
  147. {Header:"휴대전화", Type:"Text", SaveName:"HP3", Width:30, Align:"Center", EditLen:"4"},
  148. {Header:"비고", Type:"Text", SaveName:"NOTE", Width:160, Align:"Left"}
  149. ];
  150. init_sheet.HeaderMode = {Sort:1};
  151. IBS_InitSheet(sheet4, init_sheet);
  152. sheet4.SetDataAutoTrim(0);
  153. sheet4.SetEditable(false);
  154. sheet4.SetCountPosition(0);
  155. sheet4.FitColWidth();
  156. /***********************납품실적*****************************/
  157. var init_sheet = {};
  158. init_sheet.Cfg = {SearchMode:2, MergeSheet:msHeaderOnly, Page:10};
  159. if(job_div == "P")
  160. {
  161. init_sheet.Cols = [
  162. {Header:'삭제', Type:"DelCheck", SaveName:"DEL_CHECK", Width:60, Align:"Center"},
  163. {Header:"상태", Type:"Status", SaveName:"STATUS" , Width:0, Hidden:"True"},
  164. {Header:"납품처명", Type:"Text", SaveName:"DELI_CORP_NM" , Width:140, Align:"Left"},
  165. {Header:"납품처사업자번호", Type:"Text", SaveName:"DELI_CORP_NO", Width:120, Align:"Left", Format:"SaupNo"},
  166. {Header:"품목명", Type:"Text", SaveName:"ITEM_NM", Width:120, Align:"Left"},
  167. {Header:"계약금액", Type:"Int", SaveName:"CONT_AMT", Width:120, Align:"Right", Format:"#,##0"},
  168. {Header:"수량", Type:"Text", SaveName:"QTY", Width:120, Align:"Right"},
  169. {Header:"규격", Type:"Text", SaveName:"STD", Width:120, Align:"Left"},
  170. {Header:"납품시작일", Type:"Date", SaveName:"DELI_START_DY", Width:140, Align:"Center"}, //, Format:"Ym"
  171. {Header:"납품종료일", Type:"Date", SaveName:"DELI_END_DY", Width:140, Align:"Center"},
  172. {Header:'☞첨부', Type:"Text", SaveName:"FILE_YN", Width:60, Align:"center", Edit:"false", Cursor:'pointer'},
  173. {Header:'승인여부', Type:"Text", SaveName:"DELIRESULT_CONFIRM_NM", Width:60, Align:"center", Edit:"false"},
  174. {Header:'DELIRESULT_CONFIRM', Type:"Text", SaveName:"DELIRESULT_CONFIRM", Width:60, Align:"center", Hidden:"true"},
  175. {Header:'DELI_FILE_ID', Type:"Text", SaveName:"DELI_FILE_ID", Width:0, Align:"center", Hidden:"true"},
  176. {Header:'FILE_ID', Type:"Text", SaveName:"FILE_ID", Width:0, Align:"center", Hidden:"true"},
  177. {Header:"SEQ", Type:"Text", SaveName:"SEQ", Width:0, Align:"Center", Hidden:"True"},
  178. {Header:"CREDIT_END_DY", Type:"Text", SaveName:"CREDIT_END_DY", Width:0, Align:"Center", Hidden:"True"},
  179. {Header:"CREDIT_YN", Type:"Text", SaveName:"CREDIT_YN", Width:0, Align:"Center", Hidden:"True"}
  180. ];
  181. }
  182. else
  183. {
  184. init_sheet.Cols = [
  185. {Header:'삭제', Type:"DelCheck", SaveName:"DEL_CHECK", Width:70, Align:"Center"},
  186. {Header:"상태", Type:"Status", SaveName:"STATUS" , Width:0, Hidden:"True"},
  187. {Header:"기준년도", Type:"Combo", SaveName:"BASE_YEAR", Width:80, Align:"Center", ComboText:"<%=yesrCombo_new%>", ComboCode:"<%=yesrCombo_new%>", KeyField:"True"},
  188. {Header:"공사명", Type:"Text", SaveName:"CONT_NM", Width:250, Align:"Left",EditLen:"250", KeyField:"True"},
  189. {Header:"당사여부", Type:"Combo", SaveName:"ETEC_YN", Width:150, Align:"Left", ComboText:"SGC이앤씨|타사", ComboCode:"Y|N", KeyField:"True"},
  190. {Header:"발주처명", Type:"Text", SaveName:"ORDR_ORG_NM", Width:150, Align:"Left",EditLen:"60", KeyField:"True"},
  191. {Header:"도급사", Type:"Text", SaveName:"ORDR_NM", Width:150, Align:"Left", EditLen:"60", KeyField:"True"},
  192. {Header:"당년도 계약금액", Type:"Int", SaveName:"CONT_AMT", Width:120, Align:"Right", Format:"#,##0", KeyField:"True"},
  193. {Header:"계약년월", Type:"Date", SaveName:"CONT_DY", Width:70, Align:"Center", Format:"Ym", KeyField:"True"},
  194. {Header:"착공년월", Type:"Date", SaveName:"CONT_STA_DY", Width:70, Align:"Center", Format:"Ym", Hidden:"True"},
  195. {Header:"준공년월", Type:"Date", SaveName:"CONT_END_DY", Width:70, Align:"Center", Format:"Ym", KeyField:"True"}, //, Format:"Ym"
  196. {Header:"CONT_SEQ", Type:"Text", SaveName:"CONT_SEQ", Width:0, Align:"Center", Hidden:"True"},
  197. {Header:"CREDIT_END_DY", Type:"Text", SaveName:"CREDIT_END_DY", Width:0, Align:"Center", Hidden:"True"},
  198. {Header:"CREDIT_YN", Type:"Text", SaveName:"CREDIT_YN", Width:0, Align:"Center", Hidden:"True"}
  199. ];
  200. }
  201. init_sheet.HeaderMode = {Sort:1};
  202. IBS_InitSheet(sheet5, init_sheet);
  203. sheet5.SetDataAutoTrim(0);
  204. /* if(credit_yn == "Y")
  205. {
  206. sheet5.SetEditable(false);
  207. } */
  208. sheet5.SetCountPosition(0);
  209. sheet5.SetImageList(1,"/img/buyer/button/bt_change.gif");
  210. sheet5.FitColWidth();
  211. /***********************인증서*****************************/
  212. var init_sheet = {};
  213. init_sheet.Cfg = {SearchMode:2, MergeSheet:msHeaderOnly, Page:10};
  214. if(job_div == "P")
  215. {
  216. init_sheet.Cols = [
  217. {Header:'삭제', Type:"DelCheck", SaveName:"DEL_CHECK", Width:60, Align:"Center"},
  218. {Header:"상태", Type:"Status", SaveName:"STATUS" , Width:0, Hidden:"True"},
  219. {Header:"종류", Type:"Combo", SaveName:"CERT_DIV_CD", Width:120, Align:"Center", ComboText:"ISO9001|ISO14000|KOSHA|KS|기타", ComboCode:"01|02|03|04|99"},
  220. {Header:"인증번호", Type:"Text", SaveName:"CERT_NO", Width:150, Align:"Left"},
  221. {Header:"인증명", Type:"Text", SaveName:"CERT_CTNT", Width:150, Align:"Left"},
  222. {Header:"인증범위", Type:"Text", SaveName:"CERT_SCOPE", Width:150, Align:"Left"},
  223. {Header:"인증기관", Type:"Text", SaveName:"CERT_GOV", Width:150, Align:"Left"},
  224. {Header:"취득일", Type:"Date", SaveName:"EXP_STA_DY", Width:150, Align:"Center"},
  225. {Header:"만기일", Type:"Date", SaveName:"EXP_END_DY", Width:140, Align:"Center"},
  226. {Header:'☞첨부', Type:"Text", SaveName:"FILE_YN", Width:60, Align:"center", Edit:"false", Cursor:'pointer'},
  227. {Header:'승인여부', Type:"Text", SaveName:"CERT_CONFIRM_NM", Width:60, Align:"center", Edit:"false"},
  228. {Header:'CERT_CONFIRM', Type:"Text", SaveName:"CERT_CONFIRM", Width:60, Align:"center", Hidden:"true"},
  229. {Header:'CERT_FILE_ID', Type:"Text", SaveName:"CERT_FILE_ID", Width:0, Align:"center", Hidden:"true"},
  230. {Header:'FILE_ID', Type:"Text", SaveName:"FILE_ID", Width:0, Align:"center", Hidden:"true"},
  231. {Header:"CERT_SEQ", Type:"Text", SaveName:"CERT_SEQ", Width:0, Align:"Center", Hidden:"True"},
  232. {Header:"CREDIT_END_DY", Type:"Text", SaveName:"CREDIT_END_DY", Width:0, Align:"Center", Hidden:"True"},
  233. {Header:"CREDIT_YN", Type:"Text", SaveName:"CREDIT_YN", Width:0, Align:"Center", Hidden:"True"}
  234. ];
  235. }
  236. else
  237. {
  238. if ("<%=params.get("p_doc_cd")%>" == "14" ) //설계,인허가
  239. {
  240. init_sheet.Cols = [
  241. {Header:"삭제|삭제", Type:"DelCheck", SaveName:"DEL_CHECK", Width:50, Align:"Center"},
  242. {Header:"상태|상태", Type:"Status", SaveName:"STATUS" , Width:0, Hidden:"True"},
  243. {Header:"기준년도|기준년도", Type:"Combo", SaveName:"BASE_YEAR", Width:80, Align:"Center", ComboText:"<%=yesrCombo%>", ComboCode:"<%=yesrCombo%>", KeyField:"True"},
  244. {Header:"면허명|면허명", Type:"Text", SaveName:"LIC_NM", Width:150, Align:"Left", EditLen:"60",KeyField:"True"},
  245. {Header:"면허번호|면허번호", Type:"Text", SaveName:"LIC_NO", Width:150, Align:"Left", EditLen:"40",KeyField:"True"},
  246. {Header:"취득일자|취득일자", Type:"Date", SaveName:"CONREYR", Width:100, Align:"Center", KeyField:"True"},
  247. {Header:"시공능력평가액|시공능력평가액", Type:"Int", SaveName:"CON_ABI_AMT", Width:140, Align:"Right"},
  248. {Header:"지역순위|순위", Type:"Int", SaveName:"AREA_LANK", Width:100, Align:"Right"},
  249. {Header:"지역순위|전체", Type:"Int", SaveName:"AREA_ALL_LANK", Width:100, Align:"Right"},
  250. {Header:"전국순위|순위", Type:"Int", SaveName:"NATION_LANK", Width:100, Align:"Right"},
  251. {Header:"전국순위|전체", Type:"Int", SaveName:"NATION_ALL_LANK", Width:100, Align:"Right"},
  252. {Header:"CON_SEQ", Type:"Text", SaveName:"CON_SEQ", Width:0, Align:"Center", Hidden:"True"},
  253. {Header:"CREDIT_END_DY", Type:"Text", SaveName:"CREDIT_END_DY", Width:0, Align:"Center", Hidden:"True"},
  254. {Header:"CREDIT_YN", Type:"Text", SaveName:"CREDIT_YN", Width:0, Align:"Center", Hidden:"True"}
  255. ];
  256. }
  257. else
  258. {
  259. init_sheet.Cols = [
  260. {Header:"삭제|삭제", Type:"DelCheck", SaveName:"DEL_CHECK", Width:50, Align:"Center"},
  261. {Header:"상태|상태", Type:"Status", SaveName:"STATUS" , Width:0, Hidden:"True"},
  262. {Header:"기준년도|기준년도", Type:"Combo", SaveName:"BASE_YEAR", Width:80, Align:"Center", ComboText:"<%=yesrCombo%>", ComboCode:"<%=yesrCombo%>", KeyField:"True"},
  263. {Header:"면허명|면허명", Type:"Combo", SaveName:"LIC_CD", Width:150, Align:"Left", EditLen:"60",ComboText:"<%=lic_name%>", ComboCode:"<%=lic_code%>", KeyField:"True"},
  264. {Header:"면허번호|면허번호", Type:"Text", SaveName:"LIC_NO", Width:150, Align:"Left", EditLen:"40",KeyField:"True"},
  265. {Header:"취득일자|취득일자", Type:"Date", SaveName:"CONREYR", Width:100, Align:"Center", KeyField:"True"},
  266. {Header:"시공능력평가액|시공능력평가액", Type:"Int", SaveName:"CON_ABI_AMT", Width:140, Align:"Right", KeyField:"True"},
  267. {Header:"지역순위|순위", Type:"Int", SaveName:"AREA_LANK", Width:100, Align:"Right", KeyField:"True"},
  268. {Header:"지역순위|전체", Type:"Int", SaveName:"AREA_ALL_LANK", Width:100, Align:"Right", KeyField:"True"},
  269. {Header:"전국순위|순위", Type:"Int", SaveName:"NATION_LANK", Width:100, Align:"Right", KeyField:"True"},
  270. {Header:"전국순위|전체", Type:"Int", SaveName:"NATION_ALL_LANK", Width:100, Align:"Right", KeyField:"True"},
  271. {Header:"CON_SEQ", Type:"Text", SaveName:"CON_SEQ", Width:0, Align:"Center", Hidden:"True"},
  272. {Header:"CREDIT_END_DY", Type:"Text", SaveName:"CREDIT_END_DY", Width:0, Align:"Center", Hidden:"True"},
  273. {Header:"CREDIT_YN", Type:"Text", SaveName:"CREDIT_YN", Width:0, Align:"Center", Hidden:"True"}
  274. ];
  275. }
  276. }
  277. init_sheet.HeaderMode = {Sort:1};
  278. IBS_InitSheet(sheet6, init_sheet);
  279. sheet6.SetDataAutoTrim(0);
  280. /* if(credit_yn == "Y")
  281. {
  282. sheet6.SetEditable(false);
  283. } */
  284. sheet6.SetCountPosition(0);
  285. sheet6.SetImageList(1,"/img/buyer/button/bt_change.gif");
  286. sheet6.FitColWidth();
  287. /***********************포상실적*****************************/
  288. var init_sheet = {};
  289. init_sheet.Cfg = {SearchMode:2, MergeSheet:msHeaderOnly, Page:10};
  290. if(job_div == "P")
  291. {
  292. init_sheet.Cols = [
  293. {Header:'삭제', Type:"DelCheck", SaveName:"DEL_CHECK", Width:60, Align:"Center"},
  294. {Header:"상태", Type:"Status", SaveName:"STATUS" , Width:0, Hidden:"True"},
  295. {Header:"수상일", Type:"Date", SaveName:"PRZ_DY", Width:220, Align:"Center"},
  296. {Header:"수상자", Type:"Text", SaveName:"PRZ_NM", Width:200, Align:"Center"},
  297. {Header:"수여자", Type:"Text", SaveName:"PRZ_GIVER", Width:200, Align:"Left"},
  298. {Header:"수상내용", Type:"Text", SaveName:"PRZ_INFO", Width:400, Align:"Left"},
  299. {Header:"PRZ_SEQ", Type:"Text", SaveName:"PRZ_SEQ", Width:0, Align:"Center", Hidden:"True"},
  300. {Header:"CREDIT_END_DY", Type:"Text", SaveName:"CREDIT_END_DY", Width:0, Align:"Center", Hidden:"True"},
  301. {Header:"CREDIT_YN", Type:"Text", SaveName:"CREDIT_YN", Width:0, Align:"Center", Hidden:"True"}
  302. ];
  303. }
  304. else
  305. {
  306. init_sheet.Cols = [
  307. {Header:'삭제', Type:"DelCheck", SaveName:"DEL_CHECK", Width:60, Align:"Center"},
  308. {Header:"상태", Type:"Status", SaveName:"STATUS" , Width:0, Hidden:"True"},
  309. {Header:"이름", Type:"Text", SaveName:"NM", Width:120, Align:"Center", KeyField:"True"},
  310. {Header:"생년월일", Type:"Text", SaveName:"BIRTHDAY", Width:100, Align:"Center", Format:"Ymd", Hidden:"True"},
  311. {Header:"직위", Type:"Text", SaveName:"POSITION", Width:100, Align:"Left"},
  312. {Header:"자격종목 및 등급", Type:"Text", SaveName:"QUAL_ITEM_CLASS", Width:150, Align:"Left", EditLen:"60",KeyField:"True"},
  313. {Header:"등록번호", Type:"Text", SaveName:"REG_NO", Width:150, Align:"Left", EditLen:"40",KeyField:"True"},
  314. {Header:"분야", Type:"Text", SaveName:"FIELD", Width:150, Align:"Left", EditLen:"50"},
  315. {Header:"기술등급", Type:"Text", SaveName:"TECH_CLASS", Width:150, Align:"Left"},
  316. {Header:"SEQ", Type:"Text", SaveName:"SEQ", Width:0, Align:"Center", Hidden:"True"},
  317. {Header:"CREDIT_END_DY", Type:"Text", SaveName:"CREDIT_END_DY", Width:0, Align:"Center", Hidden:"True"},
  318. {Header:"CREDIT_YN", Type:"Text", SaveName:"CREDIT_YN", Width:0, Align:"Center", Hidden:"True"}
  319. ];
  320. }
  321. init_sheet.HeaderMode = {Sort:1};
  322. IBS_InitSheet(sheet7, init_sheet);
  323. sheet7.SetDataAutoTrim(0);
  324. /* if(credit_yn == "Y")
  325. {
  326. sheet7.SetEditable(false);
  327. } */
  328. sheet7.SetCountPosition(0);
  329. sheet7.FitColWidth();
  330. /***********************특허*****************************/
  331. var init_sheet = {};
  332. init_sheet.Cfg = {SearchMode:2, MergeSheet:msHeaderOnly, Page:10};
  333. if(job_div == "P")
  334. {
  335. init_sheet.Cols = [
  336. {Header:'삭제', Type:"DelCheck", SaveName:"DEL_CHECK", Width:60, Align:"Center"},
  337. {Header:"상태", Type:"Status", SaveName:"STATUS" , Width:0, Hidden:"True"},
  338. {Header:"산업재산권구분", Type:"Combo", SaveName:"PAT_CD", Width:250, Align:"Center", ComboText:"실용신안|의장권|특허권|상표권|기타", ComboCode:"01|02|03|04|99"},
  339. {Header:"특허일", Type:"Date", SaveName:"PAT_DY", Width:220, Align:"Center"},
  340. {Header:"명칭", Type:"Text", SaveName:"PAT_INFO", Width:540, Align:"Left"},
  341. {Header:"PAT_SEQ", Type:"Text", SaveName:"PAT_SEQ", Width:0, Align:"Center", Hidden:"True"},
  342. {Header:"CREDIT_END_DY", Type:"Text", SaveName:"CREDIT_END_DY", Width:0, Align:"Center", Hidden:"True"},
  343. {Header:"CREDIT_YN", Type:"Text", SaveName:"CREDIT_YN", Width:0, Align:"Center", Hidden:"True"}
  344. ];
  345. }
  346. else
  347. {
  348. init_sheet.Cols = [
  349. {Header:'삭제', Type:"DelCheck", SaveName:"DEL_CHECK", Width:60, Align:"Center"},
  350. {Header:"상태", Type:"Status", SaveName:"STATUS" , Width:0, Hidden:"True"},
  351. {Header:"종류", Type:"Combo", SaveName:"CERT_DIV_CD", Width:100, Align:"Center", ComboText:"ISO9001|ISO14000|KOSHA|KS|기타", ComboCode:"01|02|03|04|99", KeyField:"True"},
  352. {Header:"인증번호", Type:"Text", SaveName:"CERT_NO", Width:100, Align:"Left", KeyField:"True"},
  353. {Header:"인증명", Type:"Text", SaveName:"CERT_CTNT", Width:100, Align:"Left", KeyField:"True"},
  354. {Header:"인증범위", Type:"Text", SaveName:"CERT_SCOPE", Width:300, Align:"Left", KeyField:"True"},
  355. {Header:"인증기관", Type:"Text", SaveName:"CERT_GOV", Width:100, Align:"Left", KeyField:"True"},
  356. {Header:"취득일", Type:"Date", SaveName:"EXP_STA_DY", Width:100, Align:"Center", KeyField:"True"},
  357. {Header:"만기일", Type:"Date", SaveName:"EXP_END_DY", Width:100, Align:"Center", KeyField:"True"},
  358. {Header:"CERT_SEQ", Type:"Text", SaveName:"CERT_SEQ", Width:0, Align:"Center", Hidden:"True"},
  359. {Header:"CREDIT_END_DY", Type:"Text", SaveName:"CREDIT_END_DY", Width:0, Align:"Center", Hidden:"True"},
  360. {Header:"CREDIT_YN", Type:"Text", SaveName:"CREDIT_YN", Width:0, Align:"Center", Hidden:"True"}
  361. ];
  362. }
  363. init_sheet.HeaderMode = {Sort:1};
  364. IBS_InitSheet(sheet8, init_sheet);
  365. sheet8.SetDataAutoTrim(0);
  366. /* if(credit_yn == "Y")
  367. {
  368. sheet8.SetEditable(false);
  369. } */
  370. sheet8.SetCountPosition(0);
  371. sheet8.FitColWidth();
  372. /***********************건설면허*****************************/
  373. if(job_div == "P")
  374. {
  375. var init_sheet = {};
  376. init_sheet.Cfg = {SearchMode:2, MergeSheet:msHeaderOnly, Page:10};
  377. init_sheet.Cols = [
  378. {Header:'삭제', Type:"DelCheck", SaveName:"DEL_CHECK", Width:60, Align:"Center"},
  379. {Header:"상태", Type:"Status", SaveName:"STATUS" , Width:0, Hidden:"True"},
  380. {Header:"기준년도", Type:"Combo", SaveName:"BASE_YEAR", Width:100, Align:"Center", ComboText:"<%=yesrCombo%>", ComboCode:"<%=yesrCombo%>"},
  381. {Header:"면허명", Type:"Combo", SaveName:"LIC_CD", Width:100, Align:"Left", ComboText:"<%=lic_name%>", ComboCode:"<%=lic_code%>"},
  382. {Header:"면허코드", Type:"Text", SaveName:"LIC_NM", Width:100, Align:"Left", Hidden:"True"},
  383. {Header:"면허번호", Type:"Text", SaveName:"LIC_NO", Width:100, Align:"Left"},
  384. {Header:"취득일자", Type:"Date", SaveName:"CONREYR", Width:100, Align:"Center"},
  385. {Header:"CON_SEQ", Type:"Text", SaveName:"CON_SEQ", Width:0, Align:"Center", Hidden:"True"},
  386. {Header:"CREDIT_END_DY", Type:"Text", SaveName:"CREDIT_END_DY", Width:0, Align:"Center", Hidden:"True"},
  387. {Header:"CREDIT_YN", Type:"Text", SaveName:"CREDIT_YN", Width:0, Align:"Center", Hidden:"True"}
  388. ];
  389. init_sheet.HeaderMode = {Sort:1};
  390. IBS_InitSheet(sheet9, init_sheet);
  391. sheet9.SetDataAutoTrim(0);
  392. sheet9.SetCountPosition(0);
  393. sheet9.FitColWidth();
  394. }
  395. /* if(credit_yn == "Y")
  396. {
  397. $("[name=sheet_save_btn]").css("display", "none");
  398. } */
  399. getFileListForTextarea();
  400. });
  401. $(function(){
  402. //------------대기, 가등록일때 수정 : 2015.7.24 mklee
  403. //if($("#p_status").val()!="01"){
  404. if($("#p_status").val()== "03" && $("#p_status").val() == "O"){ //등록상태일때만 수정불가-->2016.8.1 구매는 수정가능.
  405. $("div[name*='sheet_save_btn']").hide();
  406. sheet4.SetEditable(false);
  407. sheet5.SetEditable(false);
  408. sheet6.SetEditable(false);
  409. sheet7.SetEditable(false);
  410. sheet8.SetEditable(false);
  411. sheet9.SetEditable(false);
  412. }
  413. /*$(document).on("keyup", "input:text[numberOnly]", function(){
  414. $(this).val( $(this).val().replace(/[^0-9]/gi,"") );
  415. });
  416. $(document).on("keyup", "input:text[noHangelEng]", function() {
  417. $(this).val( $(this).val().replace( /[^0-9-]/gi, "") );
  418. });*/
  419. $(document).on("keyup", "input:text[noHangelEng]", function() {$(this).val( $(this).val().replace( /[^0-9-]/gi, "") );});
  420. //equals("N") 2015.8.12
  421. <%-- <%if(corpInfoVo.get("re_yn").equals("A")){ %>
  422. $(".numberic").each(function(){
  423. $("input").attr("readonly",true);
  424. });
  425. <%} %> --%>
  426. $(".numberic").each(function(){
  427. // $(this).val($(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  428. });
  429. if(job_div == "P")
  430. {
  431. $.getList = function()
  432. {
  433. $("#fevent").val("GET_LIST");
  434. var url = Modular.model.PageContext.CONTEXT_ROOT + "/supplier/purchase/PuSupplier_sheet.screen";
  435. Modular.view.IBSheet7.doSearch(sheet1, url, $("#form1"), 10, "");
  436. };
  437. $.getList2 = function()
  438. {
  439. $("#fevent").val("GET_MY_LIST");
  440. var url = Modular.model.PageContext.CONTEXT_ROOT + "/supplier/purchase/PuSupplier_sheet.screen";
  441. Modular.view.IBSheet7.doSearch(sheet2, url, $("#form1"), 10, "");
  442. sheet2.FitColWidth();
  443. };
  444. $.getList3 = function()
  445. {
  446. $("#fevent").val("GET_APPR_LIST");
  447. var url = Modular.model.PageContext.CONTEXT_ROOT + "/supplier/purchase/PuSupplier_sheet.screen";
  448. Modular.view.IBSheet7.doSearch(sheet3, url, $("#form1"), 10, "");
  449. sheet3.FitColWidth();
  450. };
  451. $.getList4 = function()
  452. {
  453. $("#fevent").val("GET_CHARGE_LIST");
  454. var url = Modular.model.PageContext.CONTEXT_ROOT + "/supplier/purchase/PuSupplier_sheet.screen";
  455. Modular.view.IBSheet7.doSearch(sheet4, url, $("#form1"), 10, "");
  456. };
  457. $.getDeliverList = function()
  458. {
  459. $("#fevent").val("GET_DELIVER_LIST");
  460. var url = Modular.model.PageContext.CONTEXT_ROOT + "/supplier/purchase/PuSupplier_sheet.screen";
  461. Modular.view.IBSheet7.doSearch(sheet5, url, $("#form1"), 10, "");
  462. };
  463. $.getCertList = function()
  464. {
  465. $("#fevent").val("GET_CRET_LIST");
  466. var url = Modular.model.PageContext.CONTEXT_ROOT + "/supplier/purchase/PuSupplier_sheet.screen";
  467. Modular.view.IBSheet7.doSearch(sheet6, url, $("#form1"), 10, "");
  468. };
  469. $.getPrizeList = function()
  470. {
  471. $("#fevent").val("GET_PRIZE_LIST");
  472. var url = Modular.model.PageContext.CONTEXT_ROOT + "/supplier/purchase/PuSupplier_sheet.screen";
  473. Modular.view.IBSheet7.doSearch(sheet7, url, $("#form1"), 10, "");
  474. };
  475. $.getSuppPatTent = function()
  476. {
  477. $("#fevent").val("GET_PATENT_LIST");
  478. var url = Modular.model.PageContext.CONTEXT_ROOT + "/supplier/purchase/PuSupplier_sheet.screen";
  479. Modular.view.IBSheet7.doSearch(sheet8, url, $("#form1"), 10, "");
  480. };
  481. $.getCert2List = function() //면허
  482. {
  483. $("#fevent").val("GET_CRET2_LIST");
  484. var url = Modular.model.PageContext.CONTEXT_ROOT + "/supplier/purchase/PuSupplier_sheet.screen";
  485. Modular.view.IBSheet7.doSearch(sheet9, url, $("#form1"), 10, "");
  486. };
  487. $.getList();
  488. /* $.getList2();
  489. $.getList3();
  490. if(credit_yn.trim() == "N" || credit_yn.trim() == "")
  491. {
  492. $.getList4();
  493. $.getDeliverList();
  494. $.getCertList();
  495. $.getPrizeList();
  496. $.getSuppPatTent();
  497. } */
  498. }
  499. else
  500. {
  501. $.getList = function()
  502. {
  503. $("#fevent").val("GET_LIST");
  504. var url = Modular.model.PageContext.CONTEXT_ROOT + "/supplier/outside/OutSupplier_sheet.screen";
  505. Modular.view.IBSheet7.doSearch(sheet1, url, $("#form1"), 10, "");
  506. // sheet1.DoSearch("/test/TestList_data.screen", $("#form1"));
  507. };
  508. $.getList2 = function()
  509. {
  510. $("#fevent").val("GET_MY_LIST");
  511. var url = Modular.model.PageContext.CONTEXT_ROOT + "/supplier/outside/OutSupplier_sheet.screen";
  512. Modular.view.IBSheet7.doSearch(sheet2, url, $("#form1"), 10, "");
  513. };
  514. $.getList3 = function()
  515. {
  516. $("#fevent").val("GET_MY_LIST");
  517. var url = Modular.model.PageContext.CONTEXT_ROOT + "/supplier/outside/OutSupplier_sheet.screen";
  518. Modular.view.IBSheet7.doSearch(sheet3, url, $("#form1"), 10, "");
  519. };
  520. $.getChargeList = function()
  521. {
  522. $("#fevent").val("GET_CHARGE_LIST");
  523. var url = Modular.model.PageContext.CONTEXT_ROOT + "/supplier/outside/OutSupplier_sheet.screen";
  524. Modular.view.IBSheet7.doSearch(sheet4, url, $("#form1"), 10, "");
  525. };
  526. $.getConResultList = function()
  527. {
  528. $("#fevent").val("GET_CON_RESULT_LIST");
  529. var url = Modular.model.PageContext.CONTEXT_ROOT + "/supplier/outside/OutSupplier_sheet.screen";
  530. Modular.view.IBSheet7.doSearch(sheet5, url, $("#form1"), 10, "");
  531. };
  532. $.getConAbilltyList = function()
  533. {
  534. $("#fevent").val("GET_CON_ABILLTY_LIST");
  535. var url = Modular.model.PageContext.CONTEXT_ROOT + "/supplier/outside/OutSupplier_sheet.screen";
  536. Modular.view.IBSheet7.doSearch(sheet6, url, $("#form1"), 10, "");
  537. };
  538. $.getConTechManList = function()
  539. {
  540. $("#fevent").val("GET_TECH_MAN_LIST");
  541. var url = Modular.model.PageContext.CONTEXT_ROOT + "/supplier/outside/OutSupplier_sheet.screen";
  542. Modular.view.IBSheet7.doSearch(sheet7, url, $("#form1"), 10, "");
  543. };
  544. $.getCertList = function()
  545. {
  546. $("#fevent").val("GET_CRET_LIST");
  547. var url = Modular.model.PageContext.CONTEXT_ROOT + "/supplier/outside/OutSupplier_sheet.screen";
  548. Modular.view.IBSheet7.doSearch(sheet8, url, $("#form1"), 10, "");
  549. };
  550. $.getList();
  551. /* $.getList2();
  552. if(credit_yn.trim() == "N" || credit_yn.trim() == "")
  553. {
  554. $.getChargeList();
  555. $.getConResultList();
  556. $.getConAbilltyList();
  557. $.getConTechManList();
  558. $.getCertList();
  559. } */
  560. }
  561. });
  562. $(function(){
  563. var main_cd = "";
  564. <%
  565. for(int i=0; i < rowset.size(); i++)
  566. {
  567. %>
  568. main_cd = "<%=rowset.getRow(i).get("OUT_MAIN_CD")%>";
  569. $(":checkbox[name='out_main_cd']").each(function(pi,po){
  570. if(main_cd == $(this).val())
  571. {
  572. $(this).attr("checked", true);
  573. }
  574. });
  575. <%
  576. }
  577. %>
  578. /******* 탭메뉴 ********/
  579. $(".tab_content").hide();
  580. $(".tab_content:first").show();
  581. $("ul.tabs li").click(function () {
  582. $("ul.tabs li").removeClass("active").css("color", "#333");
  583. //$(this).addClass("active").css({"color": "darkred","font-weight": "bolder"});
  584. $(this).addClass("active").css("color", "darkred");
  585. $(".tab_content").hide()
  586. var activeTab = $(this).attr("rel");
  587. $("#" + activeTab).fadeIn();
  588. if(job_div == "P")
  589. {
  590. if(credit_yn == "Y")
  591. {
  592. if(activeTab == "tab2")
  593. {
  594. $.getList4();
  595. }
  596. else if(activeTab == "tab3")
  597. {
  598. $.getDeliverList();
  599. }
  600. else if(activeTab == "tab4")
  601. {
  602. $.getCertList();
  603. }
  604. else if(activeTab == "tab5")
  605. {
  606. $.getPrizeList();
  607. }
  608. else if(activeTab == "tab6")
  609. {
  610. $.getSuppPatTent();
  611. }
  612. else if(activeTab == "tab8")//면허
  613. {
  614. $.getCert2List();
  615. }
  616. else if(activeTab == "tab7")
  617. {
  618. $(".readTable").attr("readonly",true);
  619. }
  620. }
  621. else
  622. {
  623. if(activeTab == "tab2")
  624. {
  625. if(search_flag_4 == "N")
  626. {
  627. search_flag_4 = "Y";
  628. }
  629. sheet4.FitColWidth();
  630. }
  631. else if(activeTab == "tab3")
  632. {
  633. if(search_flag_5 == "N")
  634. {
  635. search_flag_5 = "Y";
  636. }
  637. sheet5.FitColWidth();
  638. }
  639. else if(activeTab == "tab4")
  640. {
  641. if(search_flag_6 == "N")
  642. {
  643. search_flag_6 = "Y";
  644. }
  645. sheet6.FitColWidth();
  646. }
  647. else if(activeTab == "tab5")
  648. {
  649. if(search_flag_7 == "N")
  650. {
  651. search_flag_7 = "Y";
  652. }
  653. sheet7.FitColWidth();
  654. }
  655. else if(activeTab == "tab6")
  656. {
  657. if(search_flag_8 == "N")
  658. {
  659. search_flag_8 = "Y";
  660. }
  661. sheet8.FitColWidth();
  662. }
  663. else if(activeTab == "tab8")
  664. {
  665. if(search_flag_9 == "N")
  666. {
  667. search_flag_9 = "Y";
  668. }
  669. sheet9.FitColWidth();
  670. }
  671. }
  672. }
  673. else
  674. {
  675. if(credit_yn == "Y")
  676. {
  677. if(activeTab == "tab2")
  678. {
  679. $.getChargeList();
  680. }
  681. else if(activeTab == "tab3")
  682. {
  683. $.getConResultList();
  684. }
  685. else if(activeTab == "tab4")
  686. {
  687. $.getConAbilltyList();
  688. }
  689. else if(activeTab == "tab5")
  690. {
  691. $.getConTechManList();
  692. }
  693. else if(activeTab == "tab6")
  694. {
  695. $.getCertList();
  696. }
  697. else if(activeTab == "tab7")
  698. {
  699. $(".readTable").attr("readonly",true);
  700. }
  701. }
  702. else
  703. {
  704. if(activeTab == "tab2")
  705. {
  706. if(search_flag_4 == "N")
  707. {
  708. search_flag_4 = "Y";
  709. }
  710. sheet4.FitColWidth();
  711. }
  712. else if(activeTab == "tab3")
  713. {
  714. if(search_flag_5 == "N")
  715. {
  716. search_flag_5 = "Y";
  717. }
  718. sheet5.FitColWidth();
  719. }
  720. else if(activeTab == "tab4")
  721. {
  722. if(search_flag_6 == "N")
  723. {
  724. search_flag_6 = "Y";
  725. }
  726. sheet6.FitColWidth();
  727. }
  728. else if(activeTab == "tab5")
  729. {
  730. if(search_flag_7 == "N")
  731. {
  732. search_flag_7 = "Y";
  733. }
  734. sheet7.FitColWidth();
  735. }
  736. else if(activeTab == "tab6")
  737. {
  738. if(search_flag_8 == "N")
  739. {
  740. search_flag_8 = "Y";
  741. }
  742. sheet8.FitColWidth();
  743. }
  744. }
  745. }
  746. });
  747. $("#esta_date_img").click(function(){
  748. $.callCalendar($(this).attr("id"));
  749. });
  750. $("#esta_date").click(function(){
  751. $.callCalendar($(this).attr("id"));
  752. });
  753. //첨부파일
  754. $("#search_spot_button").click(function(){
  755. var obj = $("#p_corp_id").val()
  756. var no = "1";
  757. var corp_id = "<%=params.get("p_corp_id")%>";
  758. if(no == 1)
  759. {
  760. if(job_div == "P")
  761. {
  762. viewFileListNew("TERMS_AGREE_INFO", obj, document.form1.p_AttachFile1, "Y", "own/purchase/" + corp_id);
  763. }
  764. else
  765. {
  766. viewFileListNew("TERMS_AGREE_INFO", obj, document.form1.p_AttachFile1, "Y", "own/outside/" + corp_id);
  767. }
  768. }
  769. });
  770. $.callCalendar = function(id){
  771. var str_value = id;
  772. var re = new RegExp("_", "ig");
  773. var resultArray = str_value.match(re);
  774. if(resultArray.length == 1)
  775. {
  776. dlgCalendar(id);
  777. }
  778. else if(resultArray.length == 2)
  779. {
  780. id = id.substring(0, id.lastIndexOf("_"));
  781. dlgCalendar(id);
  782. }
  783. };
  784. $("#btn_list").click(function(){
  785. // $("#form1").attr("action" , "/supplier/notice.screen");
  786. // $("#form1").submit();
  787. top.location.href="/mainPortal.screen";
  788. });
  789. $("#btn_save").click(function()
  790. {
  791. if(!confirm("업체정보를 수정하시겠습니까?")) return;
  792. var f = document.form1;
  793. var gubun = "N";
  794. for(var i=1; i<=sheet2.LastRow(); i++)
  795. {
  796. if(sheet2.GetCellValue(i, "MAIN_ITEM") == "1")
  797. {
  798. gubun = "Y";
  799. }
  800. if((sheet2.GetCellValue(i, "MAIN_ITEM") == "1")&&(sheet2.GetCellValue(i, "DEL_CHECK") == "1"))
  801. {
  802. gubun = "N";
  803. <%if(params.get("job_div").equals("P")){%>
  804. alert("대표 ITEM을 삭제 할 수 없습니다.");
  805. <%}else{%>
  806. alert("대표 공종을 삭제 할 수 없습니다.");
  807. <%}%>
  808. return;
  809. }
  810. }
  811. for(var i=1; i<=sheet4.LastRow(); i++)
  812. {
  813. if(stringByteSize4UTF(sheet4.GetCellValue(i, "NOTE"))>500){
  814. alert("비고는 500자를 넘을 수 없습니다.");
  815. return;
  816. }
  817. }
  818. if(gubun == "N")
  819. {
  820. alert("대표 구분을 지정하세요.");
  821. return;
  822. }
  823. if(corp_reg_gubun == "85")
  824. {
  825. if($("#head_corp_reg_n").val().trim() == "")
  826. {
  827. alert("본사 사업자번호를 입력해 주세요.");
  828. return $("#head_corp_reg_n").focus();
  829. }
  830. }
  831. if(corp_reg_gubun > "80" && corp_reg_gubun < "90")
  832. {
  833. if($("#copr_no").val().trim() == "")
  834. {
  835. alert("법인번호를 입력해 주세요.");
  836. return $("#copr_no").focus();
  837. }
  838. }
  839. if($("#corp_kor").val().trim() == "")
  840. {
  841. alert("업체명을 입력해 주세요.");
  842. return $("#corp_kor").focus();
  843. }
  844. if($("#rep_name").val().trim() == "")
  845. {
  846. alert("대표자명을 입력해 주세요.");
  847. return $("#rep_name").focus();
  848. }
  849. if($("#corp_sts").val().trim() == "")
  850. {
  851. alert("업태를 입력해 주세요.");
  852. return $("#corp_sts").focus();
  853. }
  854. if($("#biz_form").val().trim() == "")
  855. {
  856. alert("업종을 입력해 주세요.");
  857. return $("#biz_form").focus();
  858. }
  859. if($("#esta_date").val().trim() == "")
  860. {
  861. alert("설립일자를 입력해 주세요.");
  862. return $("#esta_date").focus();
  863. }
  864. if($("#corp_tel").val().trim() == "")
  865. {
  866. alert("전화번호를 입력해 주세요.");
  867. return $("#corp_tel").focus();
  868. }
  869. if($("#corp_fax").val().trim() == "")
  870. {
  871. alert("FAX번호를 입력해 주세요.");
  872. return $("#corp_fax").focus();
  873. }
  874. if($("#float_asset").val().trim() == "")
  875. {
  876. alert("유동자산을 입력해 주세요.");
  877. return $("#float_asset").focus();
  878. }
  879. if($("#float_debt").val().trim() == "")
  880. {
  881. alert("유동부채를 입력해 주세요.");
  882. return $("#float_debt").focus();
  883. }
  884. if($("#tot_cap").val().trim() == "")
  885. {
  886. alert("자본총계를 입력해 주세요.");
  887. return $("#tot_cap").focus();
  888. }
  889. if($("#gross_asset").val().trim() == "")
  890. {
  891. alert("부채총계를 입력해 주세요.");
  892. return $("#gross_asset").focus();
  893. }
  894. if($("#capital_amt").val().trim() == "")
  895. {
  896. alert("자본금을 입력해 주세요.");
  897. return $("#capital_amt").focus();
  898. }
  899. if($("#cur_profit").val().trim() == "")
  900. {
  901. alert("당기순이익을 입력해 주세요.");
  902. return $("#cur_profit").focus();
  903. }
  904. if($("#cur_sales_amt").val().trim() == "")
  905. {
  906. alert("당기매출액을 입력해 주세요.");
  907. return $("#cur_sales_amt").focus();
  908. }
  909. if($("#pri_sales_amt").val().trim() == "")
  910. {
  911. alert("전기매출액을 입력해 주세요.");
  912. return $("#pri_sales_amt").focus();
  913. }
  914. if($("#base_year").val()<1900)
  915. {
  916. alert("기준년도를 확인 해 주세요");
  917. return $("#base_year").focus();
  918. }
  919. //은행계좌 확인 2019.05.09
  920. if($("#bank_cd").val().trim() == "" || $("#bank_acct").val().trim() == "")
  921. {
  922. alert("계좌정보를 입력해 주세요.");
  923. return $("#bank_acct").focus();
  924. }
  925. for(var i=1; i<=sheet5.LastRow(); i++)
  926. {
  927. if(stringByteSize4UTF(sheet5.GetCellValue(i, "ORDR_ORG_NM"))>90){
  928. alert("발주처명은 영문 60자 한글 20자를 넘을 수 없습니다.");
  929. return;
  930. }
  931. if(job_div == "P"){
  932. if(sheet5.GetCellValue(i, "DELIRESULT_CONFIRM") == "Y" && (sheet5.GetCellValue(i, "STATUS") == "D" || sheet5.GetCellValue(i, "STATUS") == "U")){ //승인 되어 있는 경우
  933. alert("승인된 납품실적은 삭제/수정 불가합니다.(" + i.toString() + ")\n구매팀에 문의하시기 바랍니다.");
  934. return false;
  935. }
  936. }
  937. }
  938. /*for(var i=1; i<=sheet5.LastRow(); i++)
  939. {
  940. if(sheet5.GetCellValue(i, "DELI_END_DY") != ""){
  941. if(sheet5.GetCellValue(i, "DELI_END_DY")-sheet5.GetCellValue(i, "DELI_START_DY")<0){
  942. alert("납품시작일과 종료일을 확인해 주세요.");
  943. return false;
  944. }
  945. }else{
  946. if(sheet5.GetCellValue(i, "DELI_START_DY") == ""){
  947. alert("납품시작일을 확인해 주세요.");
  948. return false;
  949. }
  950. }
  951. }
  952. for(var i=1; i<=sheet5.LastRow(); i++)
  953. {
  954. if(sheet5.GetCellValue(i, "CONT_END_DY")-sheet5.GetCellValue(i, "CONT_DY")<0){ //2015.8.24 CONT_STA_DY->CONT_DY
  955. alert("계약일과 준공일을 확인해 주세요.");
  956. return false;
  957. }
  958. }2019.05.10 황의훈 사원요청. 체크제외 */
  959. for(var i=1; i<=sheet6.LastRow(); i++)
  960. {
  961. if(sheet6.GetCellValue(i, "EXP_END_DY")-sheet6.GetCellValue(i, "EXP_STA_DY")<0){
  962. alert("인증서 취득일과 만료일을 확인해 주세요.");
  963. return false;
  964. }
  965. if(job_div == "P"){
  966. if(sheet6.GetCellValue(i, "CERT_CONFIRM") == "Y" && (sheet6.GetCellValue(i, "STATUS") == "D" || sheet6.GetCellValue(i, "STATUS") == "U")){ //승인 되어 있는 경우
  967. alert("승인된 인증서는 삭제/수정 불가합니다.(" + i.toString() + ")\n구매팀에 문의하시기 바랍니다.");
  968. return false;
  969. }
  970. }
  971. }
  972. for(var i=1; i<=sheet8.LastRow(); i++)
  973. {
  974. if(sheet8.GetCellValue(i, "EXP_END_DY")-sheet8.GetCellValue(i, "EXP_STA_DY")<0){
  975. alert("인증서 취득일과 만료일을 확인해 주세요.");
  976. return false;
  977. }
  978. }
  979. if($(':radio[name="tax_addr_cd"]:checked').val() == "B")
  980. {
  981. if($("#post_no_1").val().trim() == "")
  982. {
  983. alert("본점 소재지를 입력해 주세요");
  984. //return $("#search_addr").focus();
  985. // $("body,html").scrollTop(0);
  986. return $("#search_addr").click();
  987. }
  988. }
  989. else
  990. {
  991. if($("#place_post_no_1").val().trim() == "")
  992. {
  993. alert("사업장 소재지를 입력해 주세요");
  994. //return $("#search_addr_sub").focus();
  995. // $("body,html").scrollTop(0);
  996. return $("#place_address").click();
  997. }
  998. }
  999. if($(':radio[name="factor_cd"]:checked').val() == '9') $("#factor_confirm").val("N"); //미승인 상태로 변경
  1000. var Row = sheet2.ColValueDup("6");
  1001. if(Row != -1)
  1002. {
  1003. alert("구분선택에 중복된 내용이 존재합니다.");
  1004. return;
  1005. }
  1006. else
  1007. {
  1008. if(job_div == "P")
  1009. {
  1010. if($(':radio[name="factor_cd"]:checked').val() == undefined)
  1011. {
  1012. alert("공장유무를 선택해 주세요.");
  1013. // $("body,html").scrollTop(0);
  1014. return $("#factor_cd_1").focus();
  1015. }
  1016. if($(':radio[name="mftr_div_cd"]:checked').val() == undefined)
  1017. {
  1018. alert("manufacturer 구분을 선택해 주세요");
  1019. $("body,html").scrollTop(0);
  1020. return $("#mftr_div_cd_1").focus();
  1021. }
  1022. /*2014-12-08 추가*/
  1023. if($("#p_status").val() == "02" || $("#p_status").val() == "03" ){
  1024. $("#p_right_id").val("149");
  1025. }else{
  1026. $("#p_right_id").val("159");
  1027. }
  1028. $("#fevent").val("SAVE_DATA");
  1029. var url = Modular.model.PageContext.CONTEXT_ROOT + "/supplier/purchase/PuSupplier_sheet.screen";
  1030. var result = Modular.view.IBSheet7.doSave(sheet2, url, $("#form1"), false);
  1031. }
  1032. else
  1033. {
  1034. var chked_val = "";
  1035. $(":checkbox[name='out_main_cd']:checked").each(function(pi,po){
  1036. chked_val += ","+po.value;
  1037. });
  1038. if(chked_val!="") chked_val = chked_val.substring(1);
  1039. if(chked_val.trim() == "")
  1040. {
  1041. alert("주력분야는 반드시 하나 이상은 선택하셔야 합니다.");
  1042. $("body,html").scrollTop(0);
  1043. return $("#out_main_cd_1").focus();
  1044. }
  1045. $("#out_main_check").val(chked_val);
  1046. /*2014-12-08 추가*/
  1047. if($("#p_status").val() == "02" || $("#p_status").val() == "03" ){
  1048. $("#p_right_id").val("160");
  1049. }else{
  1050. $("#p_right_id").val("159");
  1051. }
  1052. $("#fevent").val("SAVE_DATA");
  1053. var url = Modular.model.PageContext.CONTEXT_ROOT + "/supplier/outside/OutSupplier_sheet.screen";
  1054. var result = Modular.view.IBSheet7.doSave(sheet2, url, $("#form1"), false);
  1055. }
  1056. }
  1057. });
  1058. $(':radio[name="factor_cd"]').click(function(){
  1059. if($(':radio[name="factor_cd"]:checked').val() == "9")
  1060. {
  1061. $("#mftr_div_cd_1").prop("disabled", true);
  1062. $("#mftr_div_cd_1").prop("checked", false);
  1063. $("#mftr_div_cd_2").prop("checked", true);
  1064. return;
  1065. }
  1066. else
  1067. {
  1068. $("#mftr_div_cd_1").prop("disabled", false);
  1069. return;
  1070. }
  1071. });
  1072. $("#mftr_div_cd_2").click(function(){
  1073. $("#factor_cd_3").prop("disabled", false);
  1074. return;
  1075. });
  1076. $("#sheet4_add").click(function(){
  1077. sheet4.DataInsert(-1);
  1078. });
  1079. $("#sheet5_add").click(function(){
  1080. sheet5.DataInsert(-1);
  1081. });
  1082. $("#sheet6_add").click(function(){
  1083. var irow = sheet6.DataInsert(-1);
  1084. sheet6.SetCellValue(irow, "BASE_YEAR", '<%=year%>');
  1085. });
  1086. $("#sheet7_add").click(function(){
  1087. sheet7.DataInsert(-1);
  1088. });
  1089. $("#sheet8_add").click(function(){
  1090. sheet8.DataInsert(-1);
  1091. });
  1092. $("#sheet9_add").click(function(){
  1093. sheet9.DataInsert(-1);
  1094. });
  1095. $("#search_addr").click(function() {
  1096. /* var url = "/common/lib/dlgSearchZipCode.screen";
  1097. var win_id = "_searchPostCode";
  1098. url += "?pop_win_id="+win_id;
  1099. $("#addr_gubun").val("A");
  1100. fLayerPop(win_id, url, 550,540, '', '', 'NO'); */
  1101. $("#addr_gubun").val("A");
  1102. var pop = window.open("/lib/dlgjusoPopup.screen","pop","width=570,height=420, scrollbars=yes, resizable=yes");
  1103. });
  1104. $("#search_addr_sub").click(function() {
  1105. /* var url = "/common/lib/dlgSearchZipCode.screen";
  1106. var win_id = "_searchPostCode";
  1107. url += "?pop_win_id="+win_id;
  1108. $("#addr_gubun").val("B");
  1109. fLayerPop(win_id, url, 550,540, '', '', 'NO'); */
  1110. $("#addr_gubun").val("B");
  1111. var pop = window.open("/lib/dlgjusoPopup.screen","pop","width=570,height=420, scrollbars=yes, resizable=yes");
  1112. });
  1113. });
  1114. function jusoCallBack(roadFullAddr,roadAddrPart1,addrDetail,roadAddrPart2,engAddr, jibunAddr, zipNo, admCd, rnMgtSn, bdMgtSn){
  1115. // 팝업페이지에서 주소입력한 정보를 받아서, 현 페이지에 정보를 등록합니다.
  1116. /*document.form.roadFullAddr.value = roadFullAddr;경기도 고양시 덕양구 도래울로 85, 213-202 (도내동, 엘에이치원흥도래울마을2단지)
  1117. document.form.roadAddrPart1.value = roadAddrPart1;경기도 고양시 덕양구 도래울로 85
  1118. document.form.roadAddrPart2.value = roadAddrPart2;213-202
  1119. document.form.addrDetail.value = addrDetail;(도내동, 엘에이치원흥도래울마을2단지)
  1120. document.form.engAddr.value = engAddr;85, Doraeul-ro, Deogyang-gu, Goyang-si, Gyeonggi-do
  1121. document.form.jibunAddr.value = jibunAddr;경기도 고양시 덕양구 도내동 983 엘에이치원흥도래울마을2단지
  1122. document.form.zipNo.value = zipNo; 10551
  1123. document.form.admCd.value = admCd;4128110500
  1124. document.form.rnMgtSn.value = rnMgtSn;412813194082
  1125. document.form.bdMgtSn.value = bdMgtSn;4128110500109830000000001*/
  1126. //2017.04.18
  1127. if($("#addr_gubun").val() == "A"){
  1128. $("#address").val( roadAddrPart1+ ' ' +roadAddrPart2 + ' ' + addrDetail );
  1129. $("#post_no_1").val( zipNo);
  1130. }else{
  1131. $("#place_address").val( roadAddrPart1+ ' ' +roadAddrPart2 + ' ' + addrDetail );
  1132. $("#place_post_no_1").val( zipNo);
  1133. }
  1134. }
  1135. function searchPostCodeClose(result) {
  1136. if( result != null ){
  1137. if($("#addr_gubun").val() == "A")
  1138. {
  1139. $("#post_no_1").val(result[0].substring(0,3));
  1140. $("#post_no_2").val(result[0].substring(4,7));
  1141. $("#address").val(result[2]);
  1142. }
  1143. else
  1144. {
  1145. $("#place_post_no_1").val(result[0].substring(0,3));
  1146. $("#place_post_no_2").val(result[0].substring(4,7));
  1147. $("#place_address").val(result[2]);
  1148. }
  1149. $("#addr_gubun").val("");
  1150. }
  1151. fLayerPopClose('_searchPostCode');
  1152. }
  1153. function doResult(resultObj)
  1154. {
  1155. try
  1156. {
  1157. if( resultObj.getRequestEvent() == "SAVE_DATA")
  1158. {
  1159. if( resultObj.getSuccess() )
  1160. {
  1161. alert("저장되었습니다.");
  1162. document.form1.isSubmit = false;
  1163. }
  1164. else
  1165. {
  1166. // dlgErrorMsg(resultObj.getMessage);
  1167. alert(resultObj.getValueObject().get("errMsg"));
  1168. document.form1.isSubmit = false;
  1169. }
  1170. }
  1171. else if(resultObj.getRequestEvent() == "GET_CREADIT_REG_CHK")
  1172. {
  1173. document.form1.isSubmit = false;
  1174. var url = resultObj.getValueObject().get("returnUrl");
  1175. window.open(url, "pop", "width=1024,height=600, resizable=yes, scrollbars=yes");
  1176. }
  1177. else if(resultObj.getRequestEvent() == "GET_CREADIT_REG_CHK2")
  1178. {
  1179. document.form1.isSubmit = false;
  1180. var url = resultObj.getValueObject().get("return_url");
  1181. var open = window.open('',"go_ksrm","width=900,height=600,scrollbar=auto");
  1182. var f = document.form1;
  1183. f.action = url;
  1184. f.target = "go_ksrm";
  1185. f.method = "post";
  1186. f.submit();
  1187. }else if(resultObj.getRequestEvent() == "GET_ATTACHFILE")
  1188. {
  1189. if( resultObj.getSuccess() ) {
  1190. document.form1.p_AttachFile1.value = resultObj.getValueObject().get("AttachFile");
  1191. }else {
  1192. dlgErrorMsg(resultObj);
  1193. }
  1194. document.form1.isSubmit = false;
  1195. }
  1196. }
  1197. catch(errorObject)
  1198. {
  1199. showErrorDlg("doResult()", errorObject);
  1200. }
  1201. }
  1202. /**********dbl CLick***************/
  1203. function sheet1_OnDblClick(Row, Col, Value)
  1204. {
  1205. var rowIndex = "";
  1206. var sheetObj = document.all.sheet1;
  1207. if(sheet1.GetCellValue(Row, "LEVEL") == "2")
  1208. {
  1209. // sheet2.RowDelete(1, 0);
  1210. rowIndex = sheet2.DataInsert(-1);
  1211. sheet2.SetCellValue(rowIndex, "KIND_BIG_NAME", sheet1.GetCellValue(Row, "GUBUN_1"));
  1212. sheet2.SetCellValue(rowIndex, "KIND_MID_NAME", sheet1.GetCellValue(Row, "GUBUN_2"));
  1213. sheet2.SetCellValue(rowIndex, "KIND_SMALL_NAME", sheet1.GetCellValue(Row, "GUBUN_3"));
  1214. sheet2.SetCellValue(rowIndex, "ITEM_CODE", sheet1.GetCellValue(Row, "MATERIALGROUP"));
  1215. }
  1216. else
  1217. {
  1218. // dlgAlert("ㅁㄴ야ㅕ모뉴야ㅕㅁ뉴야며늉먄유");
  1219. //alert("소분류를 선택해 주세요.");
  1220. if(sheet1.GetRowExpanded(Row) == 0){
  1221. sheet1.SetRowExpanded(Row, 1);
  1222. }else{
  1223. sheet1.SetRowExpanded(Row, 0);
  1224. }
  1225. }
  1226. }
  1227. function sheet3_OnDblClick(Row, Col, Value)
  1228. {
  1229. var s_name = sheet3.ColSaveName(Col);
  1230. var code = sheet3.GetCellValue(Row, "GUBUN_CODE");
  1231. var reg_no = "<%=vo.get("CORP_REG_NO")%>";
  1232. if(s_name == "CREDIT_GRADE")
  1233. {
  1234. /*
  1235. 이크레더블 : E
  1236. 서울신용평가 : S
  1237. 나이스디앤비 : N
  1238. 한국기업데이터 : K
  1239. 나이스평가정보:M
  1240. */
  1241. if(code == "E")
  1242. {
  1243. var u = "2d2d424547494e204349504845522d2d313131310000000b3030303030303030eef0492ff42855bbffb697d670d4e3d109dafed98f4d7900293e8d4b9c1dcebd28eb9d58fd4c815c4d4829f1415fdfb730302d2d454e44204349504845522d2d";
  1244. var p = "2d2d424547494e204349504845522d2d313131310000000830303030303030301bb8ae01f161a326e30cc8d45f3844afd1bd2d39f5da22e9405f40dff013966445d4ea4029f89ad1385c4624cf679cc230302d2d454e44204349504845522d2d";
  1245. var i = reg_no; //협력업체사업자번호
  1246. var k = ""; //협력업체법인번호
  1247. var m ='3';
  1248. var link ='http://www.esrm.co.kr/esrm/SrmplusLogin?u='+ u +'&p='+ p +'&i='+ i +'&k='+ k +'&c=7&m='+ m +'&g=2';
  1249. var features ='height=768, width=1024, status=no, scrollbars=auto, resizable=yes';
  1250. window.open(link, 'watchwin', features);
  1251. }
  1252. else if(code == "S")
  1253. {
  1254. var link = "http://www.bizrating.co.kr/url/urlPage.do?param1=ZXRlY2g=&param2=YWV0ZWNo&param3=" + reg_no;
  1255. window.open(link, "pop", "width=975,height=600, resizable=yes, scrollbars=yes");
  1256. }
  1257. else if(code == "N")
  1258. {
  1259. var f = document.form1;
  1260. $("#p_corp_reg_no").val(reg_no);
  1261. $("#fevent").val("GET_CREADIT_REG_CHK");
  1262. submitXmlRequest("/supplier/purchase/PuSupplierList_form.screen", "GET_CREADIT_REG_CHK", f, "VALUEOBJECT");
  1263. }
  1264. else if(code == "K")
  1265. {
  1266. var f = document.form1;
  1267. $("#p_corp_reg_no").val(reg_no);
  1268. $("#fevent").val("GET_CREADIT_REG_CHK2");
  1269. submitXmlRequest("/supplier/purchase/PuSupplierList_form.screen", "GET_CREADIT_REG_CHK2", f, "VALUEOBJECT");
  1270. }
  1271. else if(code == "M")
  1272. {
  1273. var vnk = "<%= sToday%>" * 677;
  1274. var link = "http://service.ecredit.co.kr/p01/A0001M001.nice?bizno=" + reg_no + "&eid=ETECENC&nk=" + vnk;
  1275. window.open(link, "pop", "width=975,height=600, resizable=yes, scrollbars=yes");
  1276. }
  1277. }
  1278. }
  1279. function sheet5_OnDblClick(Row, Col, Value, CellX, CellY, CellW, CellH) {
  1280. if(Row == 0)return;
  1281. if (sheet5.ColSaveName(Col) == "FILE_YN") {
  1282. var modify = 'N';
  1283. if(sheet5.GetCellValue(Row, "DELIRESULT_CONFIRM")=='Y') modify = 'N';
  1284. else modify = 'Y';
  1285. if(sheet5.GetCellValue(Row, "DELI_FILE_ID")=='0'){
  1286. alert("신용평가사 등록 정보 입니다.");
  1287. }
  1288. else if(sheet5.GetCellValue(Row, "DELI_FILE_ID")=='' || sheet5.GetCellValue(Row, "STATUS")=="I"){
  1289. alert("입력한 내용을 저장을 한 후 파일을 첨부할 수 있습니다.");
  1290. }
  1291. else{
  1292. var FILE_ID = sheet5.GetCellValue(Row, "DELI_FILE_ID")
  1293. var corp_id = $("#p_corp_id").val();
  1294. viewFileListNew2('DELIRESULT', FILE_ID, "", modify, "own/purchase/"+corp_id+"/deliresult/"+FILE_ID, "", "", "", "N");
  1295. }
  1296. }
  1297. }
  1298. function sheet6_OnDblClick(Row, Col, Value, CellX, CellY, CellW, CellH) {
  1299. if(Row == 0)return;
  1300. if (sheet6.ColSaveName(Col) == "FILE_YN") {
  1301. var modify = 'N';
  1302. if(sheet6.GetCellValue(Row, "CERT_CONFIRM")=='Y') modify = 'N';
  1303. else modify = 'Y';
  1304. if(sheet6.GetCellValue(Row, "CERT_FILE_ID")=='0'){
  1305. alert("신용평가사 등록 정보 입니다.");
  1306. }
  1307. else if(sheet6.GetCellValue(Row, "CERT_FILE_ID")=='' || sheet6.GetCellValue(Row, "STATUS")=="I"){
  1308. alert("입력한 내용을 저장을 한 후 파일을 첨부할 수 있습니다.");
  1309. }
  1310. else{
  1311. var FILE_ID = sheet6.GetCellValue(Row, "CERT_FILE_ID")
  1312. var corp_id = $("#p_corp_id").val();
  1313. viewFileListNew2('CERT', FILE_ID, "", modify, "own/purchase/"+corp_id+"/cert/"+FILE_ID, "", "", "", "N");
  1314. }
  1315. }
  1316. }
  1317. function viewFileListNew2(fileGB, id, obj, isModify, isDrectory, iframeID, user_filename, file_size, multi_yn) {
  1318. var win_id = "_puSupplierFileList";
  1319. var link = "/common/file/FileListNew.screen";
  1320. link += "?pop_win_id="+win_id;
  1321. link += "&file_gb=" + fileGB;
  1322. link += "&id=" + id;
  1323. if( obj.id != null )
  1324. link += "&obj_id=" + obj.id;
  1325. if( iframeID != null )
  1326. link += "&iframeID=" + iframeID;
  1327. if( isModify != null )
  1328. link += "&is_modify=" + isModify;
  1329. if( isDrectory != null )
  1330. link += "&sys_gb=" + isDrectory;
  1331. if( file_size != null )
  1332. link += "&file_size=" + file_size;
  1333. if( multi_yn != null )
  1334. link += "&multi_yn=" + multi_yn;
  1335. if( user_filename != null )
  1336. link += "&user_filename=" + encodeURIComponent(user_filename);
  1337. fLayerPop(win_id, link, 750,430, '', '', 'NO', '200');
  1338. }
  1339. /* function fLayerPopClose(layerID){
  1340. var oNode = document.getElementById(layerID);
  1341. if(oNode != null)
  1342. {
  1343. $('#'+layerID+ '_divcontent').empty();
  1344. $('#'+layerID).bPopup().close();
  1345. document.body.removeChild(oNode);
  1346. }
  1347. if(layerID == "_puSupplierFileList"){
  1348. research();
  1349. }
  1350. } */
  1351. //sheet1 searchend
  1352. function sheet1_OnSearchEnd(code, message) {
  1353. if(code == 0){
  1354. $.getList2();
  1355. sheet1.ShowTreeLevel(0, 1);
  1356. sheet1.FitColWidth();
  1357. }else{
  1358. alert(message);
  1359. }
  1360. }
  1361. function sheet2_OnSearchEnd(code, message) {
  1362. if(code == 0){
  1363. $.getList3();
  1364. }else{
  1365. alert(message);
  1366. }
  1367. }
  1368. function sheet3_OnSearchEnd(code, message) {
  1369. if(code == 0){
  1370. if(credit_yn.trim() == "N" || credit_yn.trim() == "")
  1371. {
  1372. if(job_div == "P")
  1373. {
  1374. $.getList4();
  1375. }else{
  1376. $.getChargeList();
  1377. }
  1378. }
  1379. }else{
  1380. alert(message);
  1381. }
  1382. }
  1383. function sheet4_OnSearchEnd(code, message)
  1384. {
  1385. if(code == 0){
  1386. if(credit_yn.trim() == "N" || credit_yn.trim() == "")
  1387. {
  1388. if(job_div == "P")
  1389. {
  1390. $.getDeliverList();
  1391. }else{
  1392. $.getConResultList();
  1393. }
  1394. }
  1395. if(search_flag_4 == "N" && credit_yn == "Y")
  1396. {
  1397. sheet4.FitColWidth();
  1398. search_flag_4 = "Y";
  1399. }
  1400. }else{
  1401. alert(message);
  1402. }
  1403. }
  1404. function sheet5_OnSearchEnd(code, message)
  1405. {
  1406. var info = {Type: "Image"};
  1407. if(code == 0){
  1408. if(job_div == "P")
  1409. {
  1410. for(i=1; i <= sheet5.RowCount(); i++){
  1411. if(sheet5.GetCellValue(i, "FILE_ID")!=""){
  1412. sheet5.InitCellProperty(i, "FILE_YN", info);
  1413. }
  1414. if(sheet5.GetCellValue(i, "DELI_FILE_ID")!="0"){
  1415. sheet5.SetCellFontColor(i,"FILE_YN", "#0000ff");
  1416. }
  1417. }
  1418. }
  1419. if(credit_yn.trim() == "N" || credit_yn.trim() == "")
  1420. {
  1421. if(job_div == "P")
  1422. {
  1423. $.getCertList();
  1424. }else{
  1425. $.getConAbilltyList();
  1426. }
  1427. }
  1428. if(search_flag_5 == "N" && credit_yn == "Y")
  1429. {
  1430. sheet5.FitColWidth();
  1431. search_flag_5 = "Y";
  1432. }
  1433. var credit_end_dy = sheet5.GetCellValue(1,"CREDIT_END_DY");
  1434. if(credit_end_dy == -1){
  1435. return;
  1436. }else{
  1437. if(credit_end_dy > now_DY){
  1438. /* $("#span_sheet5_add").hide();
  1439. sheet5.SetEditable(false); */
  1440. }
  1441. }
  1442. }else{
  1443. alert(message);
  1444. }
  1445. }
  1446. function sheet6_OnSearchEnd(code, message)
  1447. {
  1448. var info = {Type: "Image"};
  1449. if(code == 0){
  1450. if(job_div == "P")
  1451. {
  1452. for(i=1; i <= sheet6.RowCount(); i++){
  1453. if(sheet6.GetCellValue(i, "FILE_ID")!=""){
  1454. sheet6.InitCellProperty(i, "FILE_YN", info);
  1455. }
  1456. if(sheet6.GetCellValue(i, "CERT_FILE_ID")!="0"){
  1457. sheet6.SetCellFontColor(i,"FILE_YN", "#0000ff");
  1458. }
  1459. }
  1460. }
  1461. if(credit_yn.trim() == "N" || credit_yn.trim() == "")
  1462. {
  1463. if(job_div == "P")
  1464. {
  1465. $.getPrizeList();
  1466. }else{
  1467. $.getConTechManList();
  1468. }
  1469. }
  1470. if(search_flag_6 == "N" && credit_yn == "Y")
  1471. {
  1472. sheet6.FitColWidth();
  1473. search_flag_6 = "Y";
  1474. }
  1475. var credit_end_dy = sheet6.GetCellValue(1,"CREDIT_END_DY");
  1476. if(credit_end_dy == -1){
  1477. return;
  1478. }else{
  1479. if(credit_end_dy > now_DY){
  1480. /* $("#span_sheet6_add").hide();
  1481. sheet6.SetEditable(false); */
  1482. }
  1483. }
  1484. }else{
  1485. alert(message);
  1486. }
  1487. }
  1488. function sheet7_OnSearchEnd(code, message)
  1489. {
  1490. if(code == 0){
  1491. if(credit_yn.trim() == "N" || credit_yn.trim() == "")
  1492. {
  1493. if(job_div == "P")
  1494. {
  1495. $.getSuppPatTent();
  1496. }else{
  1497. $.getCertList();
  1498. }
  1499. }
  1500. if(search_flag_7 == "N" && credit_yn == "Y")
  1501. {
  1502. sheet7.FitColWidth();
  1503. search_flag_7 = "Y";
  1504. }
  1505. var credit_end_dy = sheet7.GetCellValue(1,"CREDIT_END_DY");
  1506. if(credit_end_dy == -1){
  1507. return;
  1508. }else{
  1509. if(credit_end_dy > now_DY){
  1510. /* $("#span_sheet7_add").hide();
  1511. sheet7.SetEditable(false); */
  1512. }
  1513. }
  1514. }else{
  1515. alert(message);
  1516. }
  1517. }
  1518. function sheet8_OnSearchEnd(code, message)
  1519. {
  1520. if(code == 0){
  1521. if(credit_yn.trim() == "N" || credit_yn.trim() == "")
  1522. {
  1523. if(job_div == "P")
  1524. {
  1525. $.getCert2List();
  1526. }
  1527. }
  1528. if(search_flag_8 == "N" && credit_yn == "Y")
  1529. {
  1530. sheet8.FitColWidth();
  1531. search_flag_8 = "Y";
  1532. }
  1533. var credit_end_dy = sheet7.GetCellValue(1,"CREDIT_END_DY");
  1534. if(credit_end_dy == -1){
  1535. return;
  1536. }else{
  1537. if(credit_end_dy > now_DY){
  1538. /* $("#span_sheet8_add").hide();
  1539. sheet8.SetEditable(false); */
  1540. }
  1541. }
  1542. }else{
  1543. alert(message);
  1544. }
  1545. }
  1546. function sheet9_OnSearchEnd(code, message)
  1547. {
  1548. if(code == 0){
  1549. if(search_flag_9 == "N" && credit_yn == "Y")
  1550. {
  1551. sheet9.FitColWidth();
  1552. search_flag_9 = "Y";
  1553. }
  1554. var credit_end_dy = sheet9.GetCellValue(1,"CREDIT_END_DY");
  1555. if(credit_end_dy == -1){
  1556. return;
  1557. }else{
  1558. if(credit_end_dy > now_DY){
  1559. $("#span_sheet9_add").hide();
  1560. sheet9.SetEditable(false);
  1561. }
  1562. }
  1563. }
  1564. }
  1565. function sheet2_OnSaveEnd(code, msg)
  1566. {
  1567. var event = $("#fevent").val();
  1568. var f = document.form1;
  1569. document.form1.isSubmit = false;
  1570. if(event == "SAVE_DATA")
  1571. {
  1572. if(code >= "0")
  1573. {
  1574. if(credit_yn.trim() == "N" || credit_yn.trim() == ""||credit_yn.trim() == "Y")
  1575. {
  1576. if(job_div == "P")
  1577. {
  1578. //alert(event);
  1579. $("#fevent").val("SAVE_DELIRESUT");
  1580. var url = Modular.model.PageContext.CONTEXT_ROOT + "/supplier/purchase/PuSupplier_sheet.screen";
  1581. var result = Modular.view.IBSheet7.doSave(sheet5, url, $("#form1"), false);
  1582. }
  1583. else
  1584. {
  1585. $("#fevent").val("SAVE_RESULT");
  1586. var url = Modular.model.PageContext.CONTEXT_ROOT + "/supplier/outside/OutSupplier_sheet.screen";
  1587. var result = Modular.view.IBSheet7.doSave(sheet5, url, $("#form1"), false);
  1588. }
  1589. }
  1590. else
  1591. {
  1592. alert("저장되었습니다.");
  1593. document.form1.isSubmit = false;
  1594. }
  1595. }
  1596. else
  1597. {
  1598. alert("등록실패.");
  1599. }
  1600. }
  1601. }
  1602. function sheet5_OnSaveEnd(code, msg)
  1603. {
  1604. var event = $("#fevent").val();
  1605. var f = document.form1;
  1606. document.form1.isSubmit = false;
  1607. if(event == "SAVE_DELIRESUT")
  1608. {
  1609. if(code >= "0")
  1610. {
  1611. if(credit_yn.trim() == "N" || credit_yn.trim() == ""||credit_yn.trim() == "Y")
  1612. {
  1613. $("#fevent").val("SAVE_CERT");
  1614. var url = Modular.model.PageContext.CONTEXT_ROOT + "/supplier/purchase/PuSupplier_sheet.screen";
  1615. var result = Modular.view.IBSheet7.doSave(sheet6, url, $("#form1"), false);
  1616. }
  1617. else
  1618. {
  1619. alert("등록실패.");
  1620. }
  1621. }
  1622. }
  1623. if(event == "SAVE_RESULT")
  1624. {
  1625. if(code >= "0")
  1626. {
  1627. if(credit_yn.trim() == "N" || credit_yn.trim() == ""||credit_yn.trim() == "Y")
  1628. {
  1629. $("#fevent").val("SAVE_ABILLTY");
  1630. var url = Modular.model.PageContext.CONTEXT_ROOT + "/supplier/outside/OutSupplier_sheet.screen";
  1631. var result = Modular.view.IBSheet7.doSave(sheet6, url, $("#form1"), false);
  1632. }
  1633. }
  1634. else
  1635. {
  1636. alert("등록실패.");
  1637. }
  1638. }
  1639. }
  1640. function sheet6_OnSaveEnd(code, msg)
  1641. {
  1642. var event = $("#fevent").val();
  1643. var f = document.form1;
  1644. document.form1.isSubmit = false;
  1645. if(event == "SAVE_CERT")
  1646. {
  1647. if(code >= "0")
  1648. {
  1649. if(credit_yn.trim() == "N" || credit_yn.trim() == ""||credit_yn.trim() == "Y")
  1650. {
  1651. $("#fevent").val("SAVE_PRIZE");
  1652. var url = Modular.model.PageContext.CONTEXT_ROOT + "/supplier/purchase/PuSupplier_sheet.screen";
  1653. var result = Modular.view.IBSheet7.doSave(sheet7, url, $("#form1"), false);
  1654. }
  1655. }
  1656. else
  1657. {
  1658. alert("등록실패.");
  1659. }
  1660. }
  1661. else
  1662. {
  1663. if(code >= "0")
  1664. {
  1665. if(credit_yn.trim() == "N" || credit_yn.trim() == ""||credit_yn.trim() == "Y")
  1666. {
  1667. $("#fevent").val("SAVE_TECH_MAN");
  1668. var url = Modular.model.PageContext.CONTEXT_ROOT + "/supplier/outside/OutSupplier_sheet.screen";
  1669. var result = Modular.view.IBSheet7.doSave(sheet7, url, $("#form1"), false);
  1670. }
  1671. }
  1672. else
  1673. {
  1674. alert("등록실패.");
  1675. }
  1676. }
  1677. }
  1678. function sheet7_OnSaveEnd(code, msg)
  1679. {
  1680. var event = $("#fevent").val();
  1681. var f = document.form1;
  1682. document.form1.isSubmit = false;
  1683. if(event == "SAVE_PRIZE")
  1684. {
  1685. if(code >= "0")
  1686. {
  1687. if(credit_yn.trim() == "N" || credit_yn.trim() == ""||credit_yn.trim() == "Y")
  1688. {
  1689. $("#fevent").val("SAVE_PATENT");
  1690. var url = Modular.model.PageContext.CONTEXT_ROOT + "/supplier/purchase/PuSupplier_sheet.screen";
  1691. var result = Modular.view.IBSheet7.doSave(sheet8, url, $("#form1"), false);
  1692. }
  1693. }
  1694. else
  1695. {
  1696. alert("등록실패.");
  1697. }
  1698. }
  1699. else
  1700. {
  1701. if(code >= "0")
  1702. {
  1703. if(credit_yn.trim() == "N" || credit_yn.trim() == ""||credit_yn.trim() == "Y")
  1704. {
  1705. $("#fevent").val("SAVE_CERT");
  1706. var url = Modular.model.PageContext.CONTEXT_ROOT + "/supplier/outside/OutSupplier_sheet.screen";
  1707. var result = Modular.view.IBSheet7.doSave(sheet8, url, $("#form1"), false);
  1708. }
  1709. }
  1710. else
  1711. {
  1712. alert("등록실패.");
  1713. }
  1714. }
  1715. }
  1716. function sheet8_OnSaveEnd(code, msg)
  1717. {
  1718. var event = $("#fevent").val();
  1719. var f = document.form1;
  1720. document.form1.isSubmit = false;
  1721. if(event == "SAVE_PATENT")
  1722. {
  1723. if(code >= "0")
  1724. {
  1725. if(credit_yn.trim() == "N" || credit_yn.trim() == ""||credit_yn.trim() == "Y")
  1726. {
  1727. $("#fevent").val("SAVE_CERT2");
  1728. var url = Modular.model.PageContext.CONTEXT_ROOT + "/supplier/purchase/PuSupplier_sheet.screen";
  1729. var result = Modular.view.IBSheet7.doSave(sheet9, url, $("#form1"), false);
  1730. }
  1731. }
  1732. else
  1733. {
  1734. alert("등록실패.");
  1735. }
  1736. }
  1737. else
  1738. {
  1739. if(code >= "0")
  1740. {
  1741. alert("수정 되었습니다.");
  1742. }
  1743. else
  1744. {
  1745. alert("등록실패.");
  1746. }
  1747. }
  1748. }
  1749. function sheet9_OnSaveEnd(code, msg)
  1750. {
  1751. var event = $("#fevent").val();
  1752. var f = document.form1;
  1753. document.form1.isSubmit = false;
  1754. if(code >= "0")
  1755. {
  1756. alert("수정 되었습니다.");
  1757. }
  1758. else
  1759. {
  1760. alert("등록실패.");
  1761. }
  1762. }
  1763. function sheet4_OnSmartResize(Width, Height) {
  1764. sheet4.FitColWidth();
  1765. }
  1766. function sheet5_OnSmartResize(Width, Height) {
  1767. sheet5.FitColWidth();
  1768. }
  1769. function sheet6_OnSmartResize(Width, Height) {
  1770. sheet6.FitColWidth();
  1771. }
  1772. function sheet7_OnSmartResize(Width, Height) {
  1773. sheet7.FitColWidth();
  1774. }
  1775. function sheet8_OnSmartResize(Width, Height) {
  1776. sheet8.FitColWidth();
  1777. }
  1778. function sheet9_OnSmartResize(Width, Height) {
  1779. sheet9.FitColWidth();
  1780. }
  1781. function fileCheck(checkObj, val){
  1782. var f = document.form1;
  1783. var obj = eval("document.getElementById('" + val + "')");
  1784. if(obj.style.display == "none"){
  1785. obj.style.display = "inline";
  1786. checkObj.checked = true;
  1787. }else{
  1788. obj.style.display = "none";
  1789. checkObj.checked = false;
  1790. }
  1791. }
  1792. //첨부목록 조회
  1793. function getFileListForTextarea(){
  1794. document.form1.p_AttachFile1.value = "";
  1795. var f = document.form1;
  1796. jQuery("#fevent").val("GET_ATTACHFILE");
  1797. submitXmlRequest("/supplier/purchase/PuSupplierList_form.screen", "GET_ATTACHFILE", f, "VALUEOBJECT");
  1798. }
  1799. function doAttachFile(obj,No,fileName) {
  1800. if(obj.value == ''){
  1801. alert("데이터를 저장 후, 파일을 첨부할 수가 있습니다.");
  1802. }
  1803. else if(obj.value != ''){
  1804. if(No == 1){
  1805. viewFileListNew1('TERMS_AGREE_INFO_'+obj.value, No, document.form1.p_AttachFile2, "Y", "own/outside/"+obj.value);
  1806. }else{
  1807. var upLoadFlg = "Y";
  1808. if(jQuery("#statusCd").val() == "10"){ //상태값이 기성신청(03), 결재완료(10) 일때는 첨부파일 다운로드만 가능
  1809. upLoadFlg = "N";
  1810. }
  1811. //2017.07.04 협력업체등록증은 수정불가
  1812. if (No == "180"){
  1813. upLoadFlg = "N";
  1814. }
  1815. viewFileListNew1('TERMS_AGREE_INFO_'+obj.value, No, document.form1.p_AttachFile2, upLoadFlg, "own/outside/"+obj.value, null, fileName);
  1816. }
  1817. }
  1818. //기성첨부파일 목록 조회
  1819. //getFileListForTextarea();
  1820. }
  1821. function viewFileListNew1(fileGB, id, obj, isModify, isDrectory, iframeID, user_filename) {
  1822. var win_id = "_viewFileList";
  1823. var link = "/common/file/FileListNew.screen";
  1824. link += "?pop_win_id="+win_id;
  1825. link += "&extFunction=viewFileListClose1";
  1826. link += "&file_gb=" + fileGB;
  1827. link += "&id=" + id;
  1828. if( obj.id != null )
  1829. link += "&obj_id=" + obj.id;
  1830. if( iframeID != null )
  1831. link += "&iframeID=" + iframeID;
  1832. if( isModify != null )
  1833. link += "&is_modify=" + isModify;
  1834. if( isDrectory != null )
  1835. link += "&sys_gb=" + isDrectory;
  1836. if( user_filename != null )
  1837. link += "&user_filename=" + user_filename;
  1838. fLayerPop(win_id, link, 750,430, '', '', 'NO', '200');
  1839. }
  1840. function research() {
  1841. jQuery("#fevent").val("");
  1842. jQuery("#form1").attr("action", "/supplier/portal/own/SuppOwn.screen");
  1843. jQuery("#form1").attr("target", "_self");
  1844. jQuery("#form1").attr("method", "post");
  1845. jQuery("#form1").submit();
  1846. }
  1847. //-->
  1848. </script>
  1849. <!-- SHEET -->
  1850. <modular:search id="form1">
  1851. <modular:key id="fevent" />
  1852. </modular:search>
  1853. <form id="form1" name="form1" method="post" modular:type="search">
  1854. <input type="hidden" name="fevent" id="fevent" value="">
  1855. <input type="hidden" name="p_corp_id" id="p_corp_id" value="<%=params.get("p_corp_id") %>" />
  1856. <input type="hidden" name="p_corp_reg_no" id="p_corp_reg_no" value="<%=params.get("p_corp_reg_no") %>" />
  1857. <input type="hidden" name="p_eval_cmp" id="p_eval_cmp" value="<%=params.get("p_eval_cmp") %>" />
  1858. <input type="hidden" name="job_div" id="job_div" value="<%=params.get("job_div") %>" />
  1859. <input type="hidden" name="p_base_year" id="p_base_year" value="<%=params.get("p_base_year") %>" />
  1860. <input type="hidden" name="finance_gbn" id="finance_gbn" value="<%=corpInfoVo.get("base_year") %>" />
  1861. <input type="hidden" name="out_main_check" id="out_main_check" value="" />
  1862. <input type="hidden" name="addr_gubun" id="addr_gubun" value="" />
  1863. <input type="hidden" name="credit_yn" id="credit_yn" value="<%=vo.get("credit_yn") %>" />
  1864. <input type="hidden" name="factor_confirm" id="factor_confirm" value="<%=vo.get("factor_confirm") %>" />
  1865. <input type="hidden" name="p_status" id="p_status" value="<%=vo.get("status_code") %>" />
  1866. <input type="hidden" name="use_end_dy" id="use_end_dy" value="<%=vo.get("use_end_dy") %>" />
  1867. <input type="hidden" name="reg_req_dt" id="reg_req_dt" value="<%=vo.get("reg_req_dt") %>" />
  1868. <input type="hidden" name="reg_dt" id="reg_dt" value="<%=vo.get("reg_dt") %>" />
  1869. <input type="hidden" name="appr_dt" id="appr_dt" value="<%=vo.get("appr_dt") %>" />
  1870. <input type="hidden" name="can_dt" id="can_dt" value="<%=vo.get("can_dt") %>" />
  1871. <input type="hidden" name="comment" id="comment" value="<%=vo.get("comment") %>" />
  1872. <input type="hidden" name="o_comment" id="o_comment" value="<%=vo.get("o_comment") %>" />
  1873. <input type="hidden" name="p_right_id" id="p_right_id" value="" />
  1874. <input type="hidden" name="taget" id="taget" value="portal" />
  1875. <%-- <input type="hidden" name="G_BASE_YEAR" id="G_BASE_YEAR" value="<%=year %>" /> --%>
  1876. <input type="hidden" name="4" id="p_AttachFile2" onPropertyChange="JavaScript:getFileListForTextarea();"/>
  1877. <div id="join_wrap" align="center">
  1878. <!-- TITLE -->
  1879. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%;">
  1880. <tr>
  1881. <td><!-- 제목 및 버튼 -->
  1882. <table width="100%">
  1883. <colgroup>
  1884. <col width="500" />
  1885. <col width="*" />
  1886. </colgroup>
  1887. <tr>
  1888. <th>
  1889. <div align="left" id="title">
  1890. <ul>
  1891. <li><span id="resultListDivTitle">자사정보관리</span></li>
  1892. </ul>
  1893. </div>
  1894. </th>
  1895. <td align="right">
  1896. <span class="btnSearch center"><a href="javascript:void(0);" id="btn_list">돌아가기</a></span>
  1897. <span class="btnSearch center"><a href="javascript:void(0);" id="btn_save">저장</a></span>
  1898. </td>
  1899. </tr>
  1900. </table>
  1901. </td>
  1902. </tr>
  1903. <tr>
  1904. <td>
  1905. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  1906. <tr>
  1907. <td>
  1908. <div id="container">
  1909. <ul class="tabs">
  1910. <%if(params.get("job_div").equals("P")){ %>
  1911. <li class="active" rel="tab1">기본정보</li>
  1912. <li rel="tab2">담당자 정보</li>
  1913. <li rel="tab3">납품실적</li>
  1914. <li rel="tab4">인증서 현황</li>
  1915. <li rel="tab5">포상실적</li>
  1916. <li rel="tab6">특허</li>
  1917. <li rel="tab8">건설면허</li>
  1918. <li rel="tab7">재무정보</li>
  1919. <%}else{ %>
  1920. <li class="active" rel="tab1">기본정보</li>
  1921. <li rel="tab2">담당자 정보</li>
  1922. <li rel="tab3">계약실적</li>
  1923. <li rel="tab4" style="width: 120px;">시공능력 및 면허</li>
  1924. <li rel="tab5" style="width: 120px;">기술인력보유 현황</li>
  1925. <li rel="tab6">인증서 현황</li>
  1926. <li rel="tab7">재무정보</li>
  1927. <%} %>
  1928. </ul>
  1929. <div class="tab_container">
  1930. <div id="tab1" class="tab_content">
  1931. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  1932. <colgroup>
  1933. <col width="450px%"/>
  1934. <col width="70px"/>
  1935. <col width="460px"/>
  1936. <col width="30px"/>
  1937. <col width="*"/>
  1938. <col/>
  1939. </colgroup>
  1940. <tr>
  1941. <td valign="top">
  1942. <div class="application-info magT20">
  1943. <div class="application-sub-title">
  1944. <%if(params.get("job_div").equals("P")){ %>
  1945. <span class="title">공급ITEM</span>
  1946. <%}else{%>
  1947. <span class="title">공종</span>
  1948. <%}%>
  1949. </div>
  1950. </div>
  1951. <div id="table01" style="width: 450px; height: 200px;">
  1952. <script>createIBSheet("sheet1","100%", "100%");</script>
  1953. </div>
  1954. <!-- table width="100%" border="0" cellspacing="0" cellpadding="0">
  1955. <tr>
  1956. <td align="left">
  1957. <div style="margin-bottom: 0px; margin-top: 10px; font-size: 12px;" class="screen_title_text">
  1958. <img src="/img/buyer/common/subtitle_bullet.gif" style="vertical-align: middle;">&nbsp;구분
  1959. </div>
  1960. </td>
  1961. </tr>
  1962. </table -->
  1963. </td>
  1964. <td align="center" valign="middle" style="width: 70px;">
  1965. <table width="40" border="0" cellspacing="0" cellpadding="0">
  1966. <tr>
  1967. <td height="30" align="center" valign="middle">
  1968. <img src="/img/buyer/icon/icon_in.gif" width="27" height="17" /></td>
  1969. </tr>
  1970. <tr>
  1971. <td height="30" align="center" valign="middle">
  1972. <img src="/img/buyer/icon/icon_out.gif" alt="" width="27" height="17" />
  1973. </td>
  1974. </tr>
  1975. </table>
  1976. </td>
  1977. <td valign="top">
  1978. <div class="application-info magT20">
  1979. <div class="application-sub-title">
  1980. <%if(params.get("job_div").equals("P")){ %>
  1981. <span class="title">등록희망 공급ITEM</span>
  1982. <%}else{%>
  1983. <span class="title">선택공종</span>
  1984. <%}%>
  1985. </div>
  1986. </div>
  1987. <div id="table01" style="width: 460px;height: 200px;">
  1988. <script>createIBSheet("sheet2","100%", "100%");</script>
  1989. </div>
  1990. </td>
  1991. <td align="center" valign="middle">
  1992. <div style="width: 30px;"></div>
  1993. </td>
  1994. <td align="left">
  1995. <div class="application-info magT20">
  1996. <div class="application-sub-title">
  1997. <span class="title">신용평가정보</span>
  1998. </div>
  1999. </div>
  2000. <div id="table01" style="width: 401px;height: 200px;">
  2001. <script>createIBSheet("sheet3","100%", "100%");</script>
  2002. </div>
  2003. </td>
  2004. </tr>
  2005. </table>
  2006. <div class="application-info magT20">
  2007. <div class="application-sub-title">
  2008. <span class="title">기본정보</span>
  2009. </div>
  2010. </div>
  2011. <table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table">
  2012. <col width="150px"/>
  2013. <col width="40%"/>
  2014. <col width="150px"/>
  2015. <col/>
  2016. <tr>
  2017. <th style="text-align: left;">
  2018. 사업자번호
  2019. </th>
  2020. <td>
  2021. <%=StringUtils.getBizNo(vo.get("CORP_REG_NO")) %>
  2022. </td>
  2023. <th id="p_head_corp_reg_n" style="text-align: left;">
  2024. 본사 사업자번호
  2025. </th>
  2026. <td>
  2027. <input type="text" name="head_corp_reg_n" id="head_corp_reg_n" value="<%=vo.get("head_corp_reg_n") %>" maxlength="10" numberOnly="true" style="width: 250px;" />
  2028. </td>
  2029. </tr>
  2030. <tr>
  2031. <th id="p_corp_no" style="text-align: left;">
  2032. 법인번호
  2033. </th>
  2034. <td>
  2035. <input type="text" name="copr_no" id="copr_no" value="<%=vo.get("copr_no") %>" maxlength="13" numberOnly="true" style="width: 250px;" />
  2036. </td>
  2037. <th style="text-align: left;">
  2038. 종사업장번호
  2039. </th>
  2040. <td>
  2041. <input type="text" name="sub_place_no" id="sub_place_no" value="<%=vo.get("sub_place_no") %>" maxlength="4" numberOnly="true"style="width: 250px;" />
  2042. </td>
  2043. </tr>
  2044. <tr>
  2045. <th class="required" style="text-align: left;">
  2046. 업체명
  2047. </th>
  2048. <td >
  2049. <input type="text" name="corp_kor" id="corp_kor" value="<%=vo.get("corp_kor") %>" style="width: 250px;" />
  2050. </td>
  2051. <th class="required" style="text-align: left;">
  2052. 대표자명
  2053. </th>
  2054. <td >
  2055. <input type="text" name="rep_name" id="rep_name" value="<%=vo.get("rep_name") %>" style="width: 250px;" />
  2056. </td>
  2057. </tr>
  2058. <tr>
  2059. <th class="required" style="text-align: left;">
  2060. 업태
  2061. </th>
  2062. <td>
  2063. <input type="text" name="corp_sts" id="corp_sts" value="<%=vo.get("corp_sts") %>" style="width: 250px;" />
  2064. </td>
  2065. <th class="required" style="text-align: left;">
  2066. 업종
  2067. </th>
  2068. <td>
  2069. <input type="text" name="biz_form" id="biz_form" value="<%=vo.get("biz_form") %>" style="width: 250px;" />
  2070. </td>
  2071. </tr>
  2072. <tr>
  2073. <th class="required" style="text-align: left;">
  2074. 사업자구분
  2075. </th>
  2076. <td>
  2077. <input type="radio" name="corp_div_cd" id="corp_div_cd_1" value="1" <%=vo.get("corp_div_cd").equals("1") ? "checked=\"checked\"" : ""%> disabled="disabled"/> 법인
  2078. <input type="radio" name="corp_div_cd" id="corp_div_cd_2" value="2"<%=vo.get("corp_div_cd").equals("2") ? "checked=\"checked\"" : ""%> disabled="disabled"/> 개인
  2079. </td>
  2080. <th class="required" style="text-align: left;">
  2081. 설립일자
  2082. </th>
  2083. <td>
  2084. <input type="text" name="esta_date" id="esta_date" value="<%=vo.get("esta_date") %>" style="width: 250px; background-color: rgb(238, 238, 238);" readonly="readonly"/>
  2085. <img alt="달력" id="esta_date_img" name="date_img" src="/img/buyer/btn/bt_calender.gif" style="vertical-align: middle; cursor: pointer;"/>
  2086. </td>
  2087. </tr>
  2088. <tr>
  2089. <th class="required" style="text-align: left;">
  2090. 전화번호
  2091. </th>
  2092. <td>
  2093. <input type="text" name="corp_tel" id="corp_tel" value="<%=vo.get("corp_tel") %>" style="width: 250px;" maxlength="15" noHangelEng="true" /> <span style="color: red; font-size: 11px;">ex)000-0000-0000</span>
  2094. </td>
  2095. <th class="required" style="text-align: left;">
  2096. FAX번호
  2097. </th>
  2098. <td>
  2099. <input type="text" name="corp_fax" id="corp_fax" value="<%=vo.get("corp_fax") %>" style="width: 250px;" maxlength="15" noHangelEng="true"/> <span style="color: red; font-size: 11px;">ex)000-0000-0000</span>
  2100. </td>
  2101. </tr>
  2102. <tr>
  2103. <th class="required" style="text-align: left;">
  2104. 회사규모
  2105. </th>
  2106. <td>
  2107. <input type="radio" name="corp_scale" id="corp_scale_1" value="B" <%=vo.get("corp_scale").equals("B") ? "checked=\"checked\"" : ""%> /> 대기업
  2108. <input type="radio" name="corp_scale" id="corp_scale_2" value="S"<%=vo.get("corp_scale").equals("S") ? "checked=\"checked\"" : ""%> /> 중소기업
  2109. </td>
  2110. <th class="required" style="text-align: left;">
  2111. 계좌정보
  2112. </th>
  2113. <td>
  2114. <%=CommCodeManager.getSelectCodeList("ERP_BANK","bank_cd","height=18;","<option value=''>--선택--</option>",vo.get("bank_cd")) %>
  2115. <input type="text" name="bank_acct" id="bank_acct" value="<%=vo.get("bank_acct") %>" style="width: 250px;" />
  2116. </td>
  2117. </tr>
  2118. <tr>
  2119. <th class="required" style="text-align: left;">
  2120. 본점 소재지
  2121. </th>
  2122. <td colspan="5">
  2123. <%-- <input type="text" name="post_no_1" id="post_no_1" value="<%=!vo.get("post_no").equals("") ? vo.get("post_no").substring(0, 3) : ""%>" class="input" style="background-color: rgb(218, 227, 244); width: 80px;" readonly="readonly">
  2124. &nbsp;-&nbsp;
  2125. <input type="text" name="post_no_2" id="post_no_2" value="<%=!vo.get("post_no").equals("") ? vo.get("post_no").substring(3, 6) : ""%>" class="input" style="background-color: rgb(218, 227, 244); width: 80px;" readonly="readonly">
  2126. --%>
  2127. <input type="text" name="post_no_1" id="post_no_1" value="<%=!vo.get("post_no").equals("") ? vo.get("post_no") : ""%>" class="input" style="background-color: rgb(218, 227, 244); width: 80px;" readonly="readonly">
  2128. &nbsp;
  2129. <input type="text" name="address" id="address" value="<%=vo.get("address") %>" style="width: 50%;"/>
  2130. <img id="search_addr" name="search_addr" style="vertical-align: middle; cursor: pointer;" src="/img/buyer/btn/btn_add_find.gif" />
  2131. </td>
  2132. </tr>
  2133. <tr>
  2134. <th class="required" style="text-align: left;">
  2135. 사업장 소재지
  2136. </th>
  2137. <td colspan="3">
  2138. <div id="input01">
  2139. <%-- <input type="text" name="place_post_no_1" id="place_post_no_1" value="<%=!vo.get("place_post_no").equals("") ? vo.get("place_post_no").substring(0, 3) : "" %>" class="input" style="background-color: rgb(218, 227, 244); width: 80px;" readonly="readonly">
  2140. &nbsp;-&nbsp;
  2141. <input type="text" name="place_post_no_2" id="place_post_no_2" value="<%=!vo.get("place_post_no").equals("") ? vo.get("place_post_no").substring(3, 6) : "" %>" class="input" style="background-color: rgb(218, 227, 244); width: 80px;" readonly="readonly">
  2142. --%>
  2143. <input type="text" name="place_post_no_1" id="place_post_no_1" value="<%=!vo.get("place_post_no").equals("") ? vo.get("place_post_no") : ""%>" class="input" style="background-color: rgb(218, 227, 244); width: 80px;" readonly="readonly">
  2144. &nbsp;
  2145. <input type="text" name="place_address" id="place_address" value="<%=vo.get("place_address") %>" style="width: 50%;"/>
  2146. <img src="/img/buyer/btn/btn_add_find.gif" id="search_addr_sub" name="search_addr_sub" style="vertical-align: middle; cursor: pointer;" src="/img/buyer/btn/btn_add_find.gif" />
  2147. </td>
  2148. </tr>
  2149. <tr>
  2150. <th class="required" style="text-align: left;">
  2151. 세금계산서 발행주소
  2152. </th>
  2153. <td colspan="3">
  2154. <input type="radio" name="tax_addr_cd" id="tax_addr_cd_1" value="B" <%=vo.get("tax_addr_cd").equals("B") ? "checked=\"checked\"" : ""%> /> 본사
  2155. <input type="radio" name="tax_addr_cd" id="tax_addr_cd_2" value="S" <%=vo.get("tax_addr_cd").equals("S") ? "checked=\"checked\"" : ""%> /> 사업장
  2156. </td>
  2157. </tr>
  2158. <%if(params.get("job_div").equals("P")){ %>
  2159. <tr>
  2160. <th class="required" style="text-align: left;">
  2161. 공장유무
  2162. </th>
  2163. <td>
  2164. <input type="radio" name="factor_cd" id="factor_cd_1" value="1" <%=vo.get("factor_cd").equals("1") ? "checked=\"checked\"" : ""%> /> 유
  2165. <%-- <input type="radio" name="factor_cd" id="factor_cd_2" value="2" <%=vo.get("factor_cd").equals("2") ? "checked=\"checked\"" : ""%> /> 임대공장 --%>
  2166. <input type="radio" name="factor_cd" id="factor_cd_3" value="9" <%=vo.get("factor_cd").equals("9") ? "checked=\"checked\"" : ""%> /> 무
  2167. &nbsp;&nbsp;<%=vo.get("factor_confirm_nm") %>
  2168. </td>
  2169. <th class="required" style="text-align: left;">
  2170. manufacturer 구분
  2171. </th>
  2172. <td>
  2173. <input type="radio" name="mftr_div_cd" id="mftr_div_cd_1" value="1" <%=vo.get("mftr_div_cd").equals("1") ? "checked=\"checked\"" : ""%> /> manufacturer
  2174. <input type="radio" name="mftr_div_cd" id="mftr_div_cd_2" value="2" <%=vo.get("mftr_div_cd").equals("2") ? "checked=\"checked\"" : ""%> /> agent
  2175. </td>
  2176. </tr>
  2177. <%}else{ %>
  2178. <tr>
  2179. <th class="required" style="text-align: left;">주력분야</th>
  2180. <td colspan="3">
  2181. <div id="input01">
  2182. <ul>
  2183. <li><input type="checkbox" name="out_main_cd" id="out_main_cd_1" value="31" style="vertical-align: middle;" />&nbsp;주택분야</li>
  2184. <li><input type="checkbox" name="out_main_cd" id="out_main_cd_2" value="32" style="vertical-align: middle;" />&nbsp;공동주택</li>
  2185. <li><input type="checkbox" name="out_main_cd" id="out_main_cd_3" value="33" style="vertical-align: middle;" />&nbsp;산업플랜트</li>
  2186. <li><input type="checkbox" name="out_main_cd" id="out_main_cd_4" value="34" style="vertical-align: middle;" />&nbsp;발전플랜트</li>
  2187. <li><input type="checkbox" name="out_main_cd" id="out_main_cd_5" value="35" style="vertical-align: middle;" />&nbsp;화공플랜트</li>
  2188. <li><input type="checkbox" name="out_main_cd" id="out_main_cd_6" value="36" style="vertical-align: middle;" />&nbsp;환경플랜트</li>
  2189. <li><input type="checkbox" name="out_main_cd" id="out_main_cd_7" value="37" style="vertical-align: middle;" />&nbsp;제약플랜트</li>
  2190. </ul>
  2191. </div>
  2192. </td>
  2193. </tr>
  2194. <%} %>
  2195. <%if(params.get("job_div").equals("P")){ %>
  2196. <tr>
  2197. <th style="text-align: left;">
  2198. 첨부파일
  2199. </th>
  2200. <td colspan="3" id="input01">
  2201. <textarea name="p_AttachFile1" id="p_AttachFile1" style="width:85%;height:80px" rows="1" class="input" readOnly><%=filein.get("TERMS_AGREE_INFO") %></textarea>
  2202. <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;'>
  2203. </td>
  2204. </tr>
  2205. <%}else{ %>
  2206. <tr >
  2207. <th rowspan="2">
  2208. 첨부파일
  2209. </th>
  2210. <td colspan="3" id="input01">
  2211. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  2212. <%
  2213. if(getFileListRowSet.size() > 0){
  2214. int i_mod = 0;
  2215. for(int i = 0; getFileListRowSet.size() > i; i++){
  2216. i_mod = i%3;
  2217. if(i_mod == 0){ %>
  2218. <TR>
  2219. <% } %>
  2220. <td width="2%">
  2221. <input type="checkbox" name="<%=getFileListRowSet.getRow(i).get("DETAILSORTNM") %>" value="<%=getFileListRowSet.getRow(i).get("DETAILCD") %>" style="cursor:pointer;" onClick="fileCheck(this,'<%=getFileListRowSet.getRow(i).get("DETAILCD") %>')" <%if(!getFileListRowSet.getRow(i).get("DOC_CD").equals("")){out.print("checked");} %>>
  2222. </td>
  2223. <td width="20%">
  2224. <%=getFileListRowSet.getRow(i).get("DETAILNM") %>
  2225. </td>
  2226. <td width="7%" height="24">
  2227. <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="doAttachFile(document.form1.p_corp_id, '<%=getFileListRowSet.getRow(i).get("DETAILCD") %>', '<%=getFileListRowSet.getRow(i).get("DETAILNM")%>');" class="button">
  2228. </td>
  2229. <% if(i_mod == 2) { %>
  2230. </TR>
  2231. <% } %>
  2232. <%
  2233. }
  2234. for(int i=i_mod+1; i<3; i++){ %>
  2235. <td></td>
  2236. <% }
  2237. if(i_mod == 0 || i_mod == 1){ %>
  2238. </TR>
  2239. <% }
  2240. }
  2241. %>
  2242. </table>
  2243. </TD>
  2244. </tr>
  2245. <tr>
  2246. <td colspan="3" id="input01">
  2247. <textarea name="p_AttachFile1" id="p_AttachFile1" style="width:85%;height:80px" rows="1" class="input" readOnly><%=filein.get("TERMS_AGREE_INFO") %></textarea>
  2248. <!-- <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;'> -->
  2249. </td>
  2250. </tr>
  2251. <%} %>
  2252. </table>
  2253. </div>
  2254. <!-- #tab1 -->
  2255. <div id="tab2" class="tab_content" style="width:98%;">
  2256. <div id="title02" name="sheet_info" style="margin-top:10px; float:right; text-align: right; vertical-align: top;">
  2257. <span style="font-size: 11px; color: red;"><b>※ 담당자 추가 및 삭제는 담당자 정보관리 메뉴에서 이용 가능합니다.</b></span>&nbsp;
  2258. </div>
  2259. <div id="table01" style="width: 100%; height: 100%;">
  2260. <script>createIBSheet("sheet4","100%", "350px");</script>
  2261. </div>
  2262. </div>
  2263. <!-- #tab2 -->
  2264. <%if(params.get("job_div").equals("P")){ %>
  2265. <div id="tab3" class="tab_content" style="width:98%;">
  2266. <div id="title02" name="sheet_save_btn" style="margin-top:5px; float:right; text-align: right; height: 25px; vertical-align: top;">
  2267. <span class="btnSearch center" id="span_sheet5_add"><a href="javascript:void(0);" id="sheet5_add" name="sheet5_add">추가</a></span>
  2268. </div>
  2269. <div id="title02" name="sheet_info" style="margin-top:10px; float:right; text-align: right; vertical-align: top;">
  2270. <span style="font-size: 11px; color: red;"><b>(* 금액 단위 : 천원)</b></span>&nbsp;
  2271. </div>
  2272. <div id="table01" style="width: 100%; height: 100%;">
  2273. <script>createIBSheet("sheet5","100%", "350px");</script>
  2274. </div>
  2275. </div>
  2276. <!-- #tab3 -->
  2277. <div id="tab4" class="tab_content" style="width:98%;">
  2278. <div id="title02" name="sheet_save_btn" style="margin-top:5px; float:right; text-align: right; height: 25px; vertical-align: top;">
  2279. <span class="btnSearch center" id="span_sheet6_add"><a href="javascript:void(0);" id="sheet6_add" name="sheet6_add">추가</a></span>
  2280. </div>
  2281. <div id="title02" name="sheet_info" style="margin-top:10px; float:right; text-align: right; vertical-align: top;">
  2282. </div>
  2283. <div id="table01" style="width: 100%; height: 100%;">
  2284. <script>createIBSheet("sheet6","100%", "350px");</script>
  2285. </div>
  2286. </div>
  2287. <!-- #tab4 -->
  2288. <div id="tab5" class="tab_content" style="width:98%;">
  2289. <div id="title02" name="sheet_save_btn" style="margin-top:5px; float:right; text-align: right; height: 25px; vertical-align: top;">
  2290. <span class="btnSearch center" id="span_sheet7_add"><a href="javascript:void(0);" id="sheet7_add" name="sheet7_add">추가</a></span>
  2291. </div>
  2292. <div id="title02" name="sheet_info" style="margin-top:10px; float:right; text-align: right; vertical-align: top;">
  2293. </div>
  2294. <div id="table01" style="width: 100%; height: 100%;">
  2295. <script>createIBSheet("sheet7","100%", "350px");</script>
  2296. </div>
  2297. </div>
  2298. <!-- #tab5 -->
  2299. <div id="tab6" class="tab_content" style="width:98%;">
  2300. <div id="title02" name="sheet_save_btn" style="margin-top:5px; float:right; text-align: right; height: 25px; vertical-align: top;">
  2301. <span class="btnSearch center" id="span_sheet8_add"><a href="javascript:void(0);" id="sheet8_add" name="sheet8_add">추가</a></span>
  2302. </div>
  2303. <div id="title02" name="sheet_info" style="margin-top:10px; float:right; text-align: right; vertical-align: top;">
  2304. </div>
  2305. <div id="table01" style="width: 100%; height: 100%;">
  2306. <script>createIBSheet("sheet8","100%", "350px");</script>
  2307. </div>
  2308. </div>
  2309. <!-- #tab6 -->
  2310. <div id="tab8" class="tab_content" style="width:98%;">
  2311. <div id="title02" name="sheet_save_btn" style="margin-top:5px; float:right; text-align: right; height: 25px; vertical-align: top;">
  2312. <span class="btnSearch center" id="span_sheet9_add"><a href="javascript:void(0);" id="sheet9_add" name="sheet9_add">추가</a></span>
  2313. </div>
  2314. <div id="title02" name="sheet_info" style="margin-top:10px; float:right; text-align: right; vertical-align: top;">
  2315. <span style="float: right; font-size: 11px; color: red;"><b> </b></span>
  2316. </div>
  2317. <div id="table01" style="width: 100%; height: 100%;">
  2318. <script>createIBSheet("sheet9","100%", "350px");</script>
  2319. </div>
  2320. </div>
  2321. <!-- #tab7 -->
  2322. <%}else{ %>
  2323. <div id="tab3" class="tab_content" style="width:98%;">
  2324. <div id="title02" name="sheet_save_btn" style="margin-top:5px; float:right; text-align: right; height: 25px; vertical-align: top;">
  2325. <span class="btnSearch center" id="span_sheet5_add"><a href="javascript:void(0);" id="sheet5_add" name="sheet5_add">추가</a></span>
  2326. </div>
  2327. <div id="title02" name="sheet_info" style="margin-top:10px; float:right; text-align: right; vertical-align: top;">
  2328. <span style="font-size: 11px; color: red;"><b>당해년도 계약금액(천원)</b></span>&nbsp;
  2329. </div>
  2330. <div id="table01" style="width: 100%; height: 100%;">
  2331. <script>createIBSheet("sheet5","100%", "350px");</script>
  2332. </div>
  2333. </div>
  2334. <!-- #tab3 -->
  2335. <div id="tab4" class="tab_content" style="width:98%;">
  2336. <div id="title02" name="sheet_save_btn" style="margin-top:5px; float:right; text-align: right; height: 25px; vertical-align: top;">
  2337. <span class="btnSearch center" id="span_sheet6_add"><a href="javascript:void(0);" id="sheet6_add" name="sheet6_add">추가</a></span>
  2338. </div>
  2339. <div id="title02" name="sheet_info" style="margin-top:10px; float:right; text-align: right; vertical-align: top;">
  2340. <span style="font-size: 11px; color: red;"><b>기준년도는 시공능력평가년도 기준 시공능력평가액(천원)</b></span>&nbsp;
  2341. </div>
  2342. <div id="table01" style="width: 100%; height: 100%;">
  2343. <script>createIBSheet("sheet6","100%", "350px");</script>
  2344. </div>
  2345. </div>
  2346. <!-- #tab4 -->
  2347. <div id="tab5" class="tab_content" style="width:98%;">
  2348. <div id="title02" name="sheet_save_btn" style="margin-top:5px; float:right; text-align: right; height: 25px; vertical-align: top;">
  2349. <span class="btnSearch center" id="span_sheet7_add"><a href="javascript:void(0);" id="sheet7_add" name="sheet7_add">추가</a></span>
  2350. </div>
  2351. <div id="title02" name="sheet_info" style="margin-top:10px; float:right; text-align: right; vertical-align: top;">
  2352. </div>
  2353. <div id="table01" style="width: 100%; height: 100%;">
  2354. <script>createIBSheet("sheet7","100%", "350px");</script>
  2355. </div>
  2356. </div>
  2357. <!-- #tab5 -->
  2358. <div id="tab6" class="tab_content" style="width:98%;">
  2359. <div id="title02" name="sheet_save_btn" style="margin-top:5px; float:right; text-align: right; height: 25px; vertical-align: top;">
  2360. <span class="btnSearch center" id="span_sheet8_add"><a href="javascript:void(0);" id="sheet8_add" name="sheet8_add">추가</a></span>
  2361. </div>
  2362. <div id="title02" name="sheet_info" style="margin-top:10px; float:right; text-align: right; vertical-align: top;">
  2363. <span style="float: right; font-size: 11px; color: red;"><b>만기일이 없을시 취득일과 동일하게 설정하세요 </b></span>
  2364. </div>
  2365. <div id="table01" style="width: 100%; height: 100%;">
  2366. <script>createIBSheet("sheet8","100%", "350px");</script>
  2367. </div>
  2368. </div>
  2369. <!-- #tab6 -->
  2370. <%} %>
  2371. <div id="tab7" class="tab_content">
  2372. <div id="title02" name="sheet_save_btn" style="margin-top:5px; float:right; text-align: right; height: 25px; vertical-align: top;">
  2373. </div>
  2374. <div id="title02" name="sheet_info" style="margin-top:10px; float:right; text-align: right; vertical-align: top;">
  2375. <span style="font-size: 11px; color: red;"><b>(* 금액 단위 : 원)</b></span>
  2376. </div>
  2377. <table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table">
  2378. <colgroup>
  2379. <col width="150px"/>
  2380. <col/>
  2381. <col width="150px"/>
  2382. <col/>
  2383. </colgroup>
  2384. <tr>
  2385. <th class="required" style="text-align: left;">
  2386. 기준년도
  2387. </th>
  2388. <td colspan="3">
  2389. <input type="text" id="base_year" name="base_year" style="width: 50px; text-align: center;" value="<%=corpInfoVo.get("base_year")%>" numberOnly="true" maxlength="4"/> 년도
  2390. </td>
  2391. </tr>
  2392. <tr>
  2393. <th class="required" style="text-align: left;">
  2394. 유동자산
  2395. </th>
  2396. <td>
  2397. <%=InputText.get("float_asset",Formatter2.currency(corpInfoVo.get("float_asset")), 30,15, "PerSize,Number,Minus,right,class=numberic","Number") %>
  2398. <%-- <input type="text" class="numberic readTable" name="float_asset" id="float_asset" value="<%=corpInfoVo.get("float_asset") %>" numberCommaOnly="true"style="padding-right:3px; width: 150px; text-align: right;" <%=corpInfoVo.get("re_yn").equals("Y") ? "readonly=\"readonly\" " : "" %> maxlength="15"/> --%>
  2399. </td>
  2400. <th class="required" style="text-align: left;">
  2401. 유동부채
  2402. </th>
  2403. <td>
  2404. <%=InputText.get("float_debt",Formatter2.currency(corpInfoVo.get("float_debt")), 30,15, "PerSize,Number,Minus,right,class=numberic","Number") %>
  2405. <%-- <input type="text" class="numberic readTable" name="float_debt" id="float_debt" value="<%=corpInfoVo.get("float_debt") %>" numberCommaOnly="true" style="padding-right:3px; width: 150px; text-align: right;" <%=corpInfoVo.get("re_yn").equals("Y") ? "readonly=\"readonly\" " : "" %> maxlength="15"/> --%>
  2406. </td>
  2407. </tr>
  2408. <tr>
  2409. <th class="required" style="text-align: left;">
  2410. 자본총계
  2411. </th>
  2412. <td>
  2413. <%=InputText.get("tot_cap",Formatter2.currency(corpInfoVo.get("tot_cap")), 30,15, "PerSize,Number,Minus,right,class=numberic","Number") %>
  2414. <%-- <input type="text" class="numberic readTable" name="tot_cap" id="tot_cap" value="<%=corpInfoVo.get("tot_cap") %>" numberCommaOnly="true" style="padding-right:3px; width: 150px; text-align: right;" <%=corpInfoVo.get("re_yn").equals("Y") ? "readonly=\"readonly\" " : "" %> maxlength="15"/> --%>
  2415. </td>
  2416. <th class="required" style="text-align: left;">
  2417. 부채총계
  2418. </th>
  2419. <td>
  2420. <%=InputText.get("gross_asset",Formatter2.currency(corpInfoVo.get("gross_asset")), 30,15, "PerSize,Number,Minus,right,class=numberic","Number") %>
  2421. <%-- <input type="text" class="numberic readTable" name="gross_asset" id="gross_asset" value="<%=corpInfoVo.get("gross_asset") %>" numberCommaOnly="true" style="padding-right:3px; width: 150px; text-align: right;" <%=corpInfoVo.get("re_yn").equals("Y") ? "readonly=\"readonly\" " : "" %> maxlength="15"/> --%>
  2422. </td>
  2423. </tr>
  2424. <tr>
  2425. <th class="required" style="text-align: left;">
  2426. 자본금
  2427. </th>
  2428. <td>
  2429. <%=InputText.get("capital_amt",Formatter2.currency(corpInfoVo.get("capital_amt")), 30,15, "PerSize,Number,Minus,right,class=numberic","Number") %>
  2430. <%-- <input type="text" class="numberic readTable" name="capital_amt" id="capital_amt" value="<%=corpInfoVo.get("capital_amt") %>" numberCommaOnly="true" style="padding-right:3px; width: 150px; text-align: right;" <%=corpInfoVo.get("re_yn").equals("Y") ? "readonly=\"readonly\" " : "" %> maxlength="15"/> --%>
  2431. </td>
  2432. <th class="required" style="text-align: left;">
  2433. 당기순이익
  2434. </th>
  2435. <td>
  2436. <%=InputText.get("cur_profit",Formatter2.currency(corpInfoVo.get("cur_profit")), 30,15, "PerSize,Number,Minus,right,class=numberic","Number") %>
  2437. <%-- <input type="text" class="numberic readTable" name="cur_profit" id="cur_profit" value="<%=corpInfoVo.get("cur_profit") %>" numberCommaOnly="true" style="padding-right:3px; width: 150px; text-align: right;" <%=corpInfoVo.get("re_yn").equals("Y") ? "readonly=\"readonly\" " : "" %> maxlength="15"/> --%>
  2438. </td>
  2439. </tr>
  2440. <tr>
  2441. <th class="required" style="text-align: left;">
  2442. 당기매출액
  2443. </th>
  2444. <td>
  2445. <%=InputText.get("cur_sales_amt",Formatter2.currency(corpInfoVo.get("cur_sales_amt")), 30,15, "PerSize,Number,Minus,right,class=numberic","Number") %>
  2446. <%-- <input type="text" class="numberic readTable" name="cur_sales_amt" id="cur_sales_amt" value="<%=corpInfoVo.get("cur_sales_amt") %>" numberCommaOnly="true" style="padding-right:3px; width: 150px; text-align: right;" <%=corpInfoVo.get("re_yn").equals("Y") ? "readonly=\"readonly\" " : "" %> maxlength="15"/> --%>
  2447. <th class="required" style="text-align: left;">
  2448. 전기매출액
  2449. </thtd>
  2450. <td>
  2451. <%=InputText.get("pri_sales_amt",Formatter2.currency(corpInfoVo.get("pri_sales_amt")), 30,15, "PerSize,Number,Minus,right,class=numberic","Number") %>
  2452. <%-- <input type="text" class="numberic readTable" name="pri_sales_amt" id="pri_sales_amt" value="<%=corpInfoVo.get("pri_sales_amt") %>" numberCommaOnly="true" style="padding-right:3px; width: 150px; text-align: right;" <%=corpInfoVo.get("re_yn").equals("Y") ? "readonly=\"readonly\" " : "" %> maxlength="15"/> --%>
  2453. <input type="hidden" name="own_cap" id="own_cap" value="<%=corpInfoVo.get("own_cap") %>"/>
  2454. <input type="hidden" name="sales_amt" id="sales_amt" value="<%=corpInfoVo.get("sales_amt") %>"/>
  2455. </td>
  2456. </tr>
  2457. </table>
  2458. </div>
  2459. </div>
  2460. <!-- .tab_container -->
  2461. </div>
  2462. <!-- #container -->
  2463. </td>
  2464. </tr>
  2465. </table>
  2466. </td>
  2467. </tr>
  2468. </table>
  2469. </div>
  2470. </form>