SACDOCreatePDF7.java 83 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265
  1. package kr.co.udapsoft.common.commonSign.util;
  2. import java.awt.Color;
  3. import java.io.IOException;
  4. import java.io.OutputStream;
  5. import java.sql.Connection;
  6. import javax.servlet.http.HttpServletRequest;
  7. import com.lowagie.text.Document;
  8. import com.lowagie.text.DocumentException;
  9. import com.lowagie.text.Element;
  10. import com.lowagie.text.Font;
  11. import com.lowagie.text.Image;
  12. import com.lowagie.text.PageSize;
  13. import com.lowagie.text.Paragraph;
  14. import com.lowagie.text.Rectangle;
  15. import com.lowagie.text.pdf.BaseFont;
  16. import com.lowagie.text.pdf.PdfPCell;
  17. import com.lowagie.text.pdf.PdfPTable;
  18. import com.lowagie.text.pdf.PdfWriter;
  19. /*
  20. * 외주기성고 계산서 : http://172.17.217.243/lib/dlgReport.screen?&WINDOW_TITLE=%20&REPORT_NAME=%2Fjsp%2Fko_kr%2Fsub%2Freport%2FSUBAcmpBillList.mrd&REPORT_OPTION=%2Frf&HIDE_STATUS_BAR=false&HIDE_TOOL_BAR=false&ZOOM_RATIO=100&HIDE_STATUS_DLG=false&P_0=6250A10401&P_1=200808&P_2='SUBO06110064'%2C'SUBO06110089'%2C'SUBO07010064'%2C'SUBO07030114'%2C'SUBO07030116'%2C'SUBO07050041'%2C'SUBO07070043'%2C'SUBO08040034'%2C'SUBO08040127'%2C'SUBO08050150'%2C'SUBO08070004'%2C'SUBO08070023'%2C'SUBO08070026'%2C'SUBO06110066'%2C'SUBO07010039'%2C'SUBO06110040'%2C'SUBO07020049'%2C'SUBO07090060'%2C'SUBO07110105'%2C'SUBO07110107'%2C'SUBO07120076'%2C'SUBO07120085'%2C'SUBO07120109'%2C'SUBO07120131'%2C'SUBO07120133'%2C'SUBO08010025'%2C'SUBO08010058'%2C'SUBO08020050'%2C'SUBO08030015'%2C'SUBO08040100'%2C'SUBO08040141'%2C'SUBO08060015'%2C'SUBO08060040'%2C'SUBO08060078'%2C'SUBO08070074'%2C'SUBO07010081'%2C'SUBO07030115'%2C'SUBO07060089'%2C'SUBO07070013'%2C'SUBO07070053'%2C'SUBO07070086'%2C'SUBO07070088'%2C'SUBO07070089'%2C'SUBO07100113'%2C'SUBO07100118'%2C'SUBO07100124'%2C'SUBO07110030'%2C'SUBO08030034'%2C'SUBO08030122'%2C'SUBO06120108'%2C'SUBO07020069'%2C'SUBO07020083'%2C'SUBO07030125'%2C'SUBO07050062'%2C'SUBO07060070'%2C'SUBO07070051'%2C'SUBO07070119'%2C'SUBO07070122'%2C'SUBO07100123'%2C'SUBO07120055'%2C'SUBO07120062'%2C'SUBO07120113'%2C'SUBO08030075'%2C'SUBO08060115'%2C'SUBO08060118'%2C'SUBO08070006'%2C'SUBO08070037'%2C'SUBO08070167'%2C'SUBO08070168'%2C'SUBO08080030'%2C'SUBO06120082'%2C'SUBO07030006'%2C'SUBO07030110'%2C'SUBO07040059'%2C'SUBO07040075'%2C'SUBO07090007'%2C'SUBO07110067'%2C'SUBO07120004'%2C'SUBO07120081'%2C'SUBO08010023'%2C'SUBO08010104'%2C'SUBO08010171'%2C'SUBO08030099'%2C'SUBO08040027'%2C'SUBO08040089'%2C'SUBO08060018'%2C'SUBO08090001'&P_SIZE=3
  21. *
  22. */
  23. import com.udapsoft.waf.system.HandlerStorage;
  24. import kr.co.hsnc.common.base.WAFLogger;
  25. import kr.co.hsnc.common.config.WAFConfig;
  26. import kr.co.hsnc.common.sql.RowSet;
  27. import kr.co.hsnc.common.sql.RowSetImpl;
  28. import kr.co.hsnc.common.sql.persistent.Persistent;
  29. import kr.co.hsnc.common.sql.persistent.PersistentImpl;
  30. import kr.co.hsnc.common.sql.search.Search;
  31. import kr.co.hsnc.common.sql.search.SearchImpl;
  32. import kr.co.hsnc.common.sql.util.RowSetUtility;
  33. import kr.co.hsnc.common.util.ValueObject;
  34. public class SACDOCreatePDF7 {
  35. public static BaseFont bfKorean = null;
  36. /*
  37. * private static Font FontKorean = null;
  38. */
  39. public static Font FontBold = null;
  40. private static String strClassName = (new Throwable()).getStackTrace()[0]
  41. .getClassName();
  42. // private static String strFileName = "d:\\temp\\pdf\\" + strClassName +
  43. // ".pdf";
  44. private static String strFileName = WAFConfig.get("waf.repository.path")
  45. + "\\" + strClassName + ".pdf";
  46. private static Color borderColor = Color.BLACK;
  47. private static String strGubun = null;
  48. private static float BorderW = 0.1f;
  49. private static Rectangle border = new Rectangle(0f, 0f);
  50. private static boolean isGray = false;
  51. private static boolean LineisGray = false; //데이터 로
  52. /**
  53. * @param args
  54. */
  55. public void doBiz1(Connection con, OutputStream outputStream, String tmpslipID, HttpServletRequest request) {
  56. WAFLogger.debug("\n\t #################### 준공 검사 보고서 시작");
  57. // step 1
  58. Document document = new Document(PageSize.A4, 25f, 25f, 35f, 10f);
  59. try {
  60. // step 2
  61. PdfWriter writer = PdfWriter.getInstance(document, outputStream);
  62. // step 3
  63. document.open();
  64. BaseFont bfKorean = BaseFont.createFont("HYGoThic-Medium", "UniKS-UCS2-H", BaseFont.NOT_EMBEDDED);
  65. Font FontTitle = new Font(bfKorean, 9, Font.NORMAL);
  66. Font FontTitle1 = new Font(bfKorean, 8, Font.NORMAL);
  67. FontTitle.setColor(borderColor);
  68. Font FontData = new Font(bfKorean, 4.8f, Font.NORMAL);
  69. Font FontTitle2 = new Font(bfKorean, 20, Font.BOLD);
  70. PdfPTable table = null;
  71. PdfPCell cell = null;
  72. /*
  73. * 정보 검색 시작 ---------------------------------------------
  74. */
  75. ValueObject params = new ValueObject();
  76. HandlerStorage storage = new HandlerStorage();
  77. storage.setParams(params);
  78. ValueObject listRowSet = null;
  79. RowSet rowSet = null;
  80. /*
  81. * 정보 검색 시작 ---------------------------------------------
  82. */
  83. String subContModId = getSubContModId(con,tmpslipID);
  84. //listRowSet = getPayReqList(tmpslipID);
  85. listRowSet = getPayReqList1(con, tmpslipID, subContModId);
  86. rowSet = getPayReqList2(tmpslipID);
  87. // 정보 검색 끝 ---------------------------------------------
  88. /*
  89. * ===========================================================================================
  90. * 제목 생성
  91. * ===========================================================================================
  92. */
  93. makeTitle(document, FontTitle, FontTitle2, request);
  94. //본문생성
  95. setBorder(border, true, true, true, true);
  96. //1행
  97. PdfPTable table11 = new PdfPTable(9);
  98. table11.setWidthPercentage(100);
  99. table11.setSpacingBefore(7f);
  100. table11.setSpacingAfter(7f);
  101. float[] table11Width = {12f,12f,3f,15f,3f,15f,3f,12f,6f};
  102. table11.setWidths(table11Width);
  103. // 1행
  104. PT_addCell(table11, new String [] { "계 약 번 호" }, FontTitle, border,
  105. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f ,false);
  106. PT_addCell(table11, listRowSet.get("CON_DOC_NO"), FontTitle, border,
  107. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 3, 30f ,false);
  108. PT_addCell(table11, new String [] { "작 성 일 자" }, FontTitle, border,
  109. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 2, 30f ,false);
  110. PT_addCell(table11, listRowSet.get("ACMP_DATE"), FontTitle, border,
  111. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 3, 30f,false);
  112. //2019.08.29 주석처리
  113. //PT_addCell(table11, new String [] { "주 관 부 서" }, FontTitle, border,
  114. // Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f ,false);
  115. //PT_addCell(table11,listRowSet.get("DEPART_DEPT_NM"), FontTitle, border,
  116. // Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 3, 30f ,false);
  117. //PT_addCell(table11, new String [] { "협 조 부 서" }, FontTitle, border,
  118. // Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 2, 30f ,false);
  119. //PT_addCell(table11,listRowSet.get("ACC_DEPT_NM"), FontTitle, border,
  120. // Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 3, 30f,false);
  121. PT_addCell(table11, new String [] { "PROJECT 명" }, FontTitle, border,
  122. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f ,false);
  123. PT_addCell(table11, listRowSet.get("DEPT_NAME"), FontTitle, border,
  124. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 3, 30f ,false);
  125. PT_addCell(table11, new String [] { "PROJECT번호" }, FontTitle, border,
  126. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 2, 30f ,false);
  127. PT_addCell(table11, listRowSet.get("CONCD"), FontTitle, border,
  128. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 3, 30f,false);
  129. PT_addCell(table11, new String [] { "계 약 명 " }, FontTitle, border,
  130. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f ,false);
  131. PT_addCell(table11, listRowSet.get("BUILD_NAME"), FontTitle, border,
  132. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 8, 30f ,false);
  133. if(listRowSet.get("CON_CUR_CD").equals("KRW")){
  134. PT_addCell(table11, new String [] { "공사비 내역\n(부가세 별도)" }, FontTitle, border,
  135. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 360f ,false);
  136. }else {
  137. PT_addCell(table11, new String [] { "공사비 내역\n(부가세 별도)" }, FontTitle, border,
  138. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 420f ,false);
  139. }
  140. PdfPTable table21 = new PdfPTable(9);
  141. float[] table21Width = {12f,3f,15f,3f,10f,5f,3f,15f,3f};
  142. table21.setWidths(table21Width);
  143. PdfPCell permission = new PdfPCell(table21);
  144. PT_addCell(table21, new String [] { "구 분" }, FontTitle, border,
  145. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f ,false);
  146. PT_addCell(table21, new String [] { "원 설 계" }, FontTitle, border,
  147. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 2, 30f ,false);
  148. PT_addCell(table21, new String [] { "준 공 액" }, FontTitle, border,
  149. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 3, 30f ,false);
  150. PT_addCell(table21, new String [] { "증 ▲ 감 ▽" }, FontTitle, border,
  151. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 3, 30f ,false);
  152. PT_addCell(table21, new String [] { "총 공 사 비" }, FontTitle, border,
  153. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f ,false);
  154. setBorder(border, true, false, true, true);
  155. PT_addCell(table21, listRowSet.get("CUR_CD"), FontTitle, border,
  156. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  157. setBorder(border, false, true, true, true);
  158. PT_addCell(table21, listRowSet.get("FIRST_CON_AMT"), FontTitle, border,
  159. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 1, 30f,false);
  160. setBorder(border, true, false, true, true);
  161. PT_addCell(table21, listRowSet.get("CUR_CD"), FontTitle, border,
  162. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  163. setBorder(border, false, true, true, true);
  164. PT_addCell(table21, listRowSet.get("LAST_CON_AMT"), FontTitle, border,
  165. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 2, 30f,false);
  166. setBorder(border, true, false, true, true);
  167. PT_addCell(table21, listRowSet.get("CUR_CD"), FontTitle, border,
  168. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  169. setBorder(border, false, false, true, true);
  170. PT_addCell(table21, listRowSet.get("VAR_AMT"), FontTitle, border,
  171. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 1, 30f,false);
  172. setBorder(border, false, true, true, true);
  173. PT_addCell(table21, listRowSet.get("VAR_MARK"), FontTitle, border,
  174. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 1, 30f,false);
  175. PT_addCell(table21, new String [] { "지 급 자 재 비" }, FontTitle, border,
  176. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f ,false);
  177. setBorder(border, true, false, true, true);
  178. PT_addCell(table21, new String [] { " " }, FontTitle, border,
  179. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  180. setBorder(border, false, true, true, true);
  181. PT_addCell(table21, new String [] { " " }, FontTitle, border,
  182. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  183. setBorder(border, true, false, true, true);
  184. PT_addCell(table21, new String [] { " " }, FontTitle, border,
  185. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  186. setBorder(border, false, true, true, true);
  187. PT_addCell(table21, new String [] { " " }, FontTitle, border,
  188. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 2, 30f,false);
  189. setBorder(border, true, false, true, true);
  190. PT_addCell(table21, new String [] { " " }, FontTitle, border,
  191. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  192. setBorder(border, false, false, true, true);
  193. PT_addCell(table21, new String [] { " " }, FontTitle, border,
  194. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  195. setBorder(border, false, true, true, true);
  196. PT_addCell(table21, new String [] { " " }, FontTitle, border,
  197. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  198. PT_addCell(table21, new String [] { "도 급 공 사 비" }, FontTitle, border,
  199. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f ,false);
  200. setBorder(border, true, false, true, true);
  201. PT_addCell(table21, new String [] { " " }, FontTitle, border,
  202. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  203. setBorder(border, false, true, true, true);
  204. PT_addCell(table21, new String [] { " " }, FontTitle, border,
  205. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  206. setBorder(border, true, false, true, true);
  207. PT_addCell(table21, new String [] { " " }, FontTitle, border,
  208. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  209. setBorder(border, false, true, true, true);
  210. PT_addCell(table21, new String [] { " " }, FontTitle, border,
  211. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 2, 30f,false);
  212. setBorder(border, true, false, true, true);
  213. PT_addCell(table21, new String [] { " " }, FontTitle, border,
  214. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  215. setBorder(border, false, false, true, true);
  216. PT_addCell(table21, new String [] { " " }, FontTitle, border,
  217. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  218. setBorder(border, false, true, true, true);
  219. PT_addCell(table21, new String [] { " " }, FontTitle, border,
  220. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  221. if(listRowSet.get("CON_CUR_CD").equals("KRW")){
  222. PT_addCell(table21, new String [] { "기 지 불 액" }, FontTitle, border,
  223. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f ,false);
  224. setBorder(border, true, false, true, true);
  225. PT_addCell(table21, new String [] { "금" }, FontTitle, border,
  226. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  227. setBorder(border, false, false, true, true);
  228. PT_addCell(table21, listRowSet.get("HAN_PRE_PAYED"), FontTitle, border,
  229. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 3, 30f,false);
  230. setBorder(border, false, false, true, true);
  231. PT_addCell(table21, new String [] { "원정 (" }, FontTitle, border,
  232. Element.ALIGN_RIGHT, Element.ALIGN_MIDDLE, 1, 30f ,false);
  233. setBorder(border, false, false, true, true);
  234. PT_addCell(table21, listRowSet.get("CUR_CD"), FontTitle, border,
  235. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  236. setBorder(border, false, false, true, true);
  237. PT_addCell(table21, listRowSet.get("PRE_PAYED_AMT"), FontTitle, border,
  238. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 1, 30f,false);
  239. setBorder(border, false, true, true, true);
  240. PT_addCell(table21, new String [] { ")" }, FontTitle, border,
  241. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  242. PT_addCell(table21, new String [] { "금 회 청 구 액" }, FontTitle, border,
  243. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f ,false);
  244. setBorder(border, true, false, true, true);
  245. PT_addCell(table21, new String [] { "금" }, FontTitle, border,
  246. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  247. setBorder(border, false, false, true, true);
  248. PT_addCell(table21, listRowSet.get("HAN_REQU_AMT"), FontTitle, border,
  249. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 3, 30f,false);
  250. setBorder(border, false, false, true, true);
  251. PT_addCell(table21, new String [] { "원정 (" }, FontTitle, border,
  252. Element.ALIGN_RIGHT, Element.ALIGN_MIDDLE, 1, 30f ,false);
  253. setBorder(border, false, false, true, true);
  254. PT_addCell(table21, listRowSet.get("CUR_CD"), FontTitle, border,
  255. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  256. setBorder(border, false, false, true, true);
  257. PT_addCell(table21, listRowSet.get("REQU_AMT"), FontTitle, border,
  258. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 1, 30f,false);
  259. setBorder(border, false, true, true, true);
  260. PT_addCell(table21, new String [] { ")" }, FontTitle, border,
  261. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  262. PT_addCell(table21, new String [] { "(과 세)" }, FontTitle, border,
  263. Element.ALIGN_RIGHT, Element.ALIGN_MIDDLE, 1, 30f ,false);
  264. setBorder(border, true, false, true, true);
  265. PT_addCell(table21, new String [] { "금" }, FontTitle, border,
  266. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  267. setBorder(border, false, false, true, true);
  268. PT_addCell(table21, listRowSet.get("HAN_REQU_TAMT"), FontTitle, border,
  269. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 3, 30f,false);
  270. setBorder(border, false, false, true, true);
  271. PT_addCell(table21, new String [] { "원정 (" }, FontTitle, border,
  272. Element.ALIGN_RIGHT, Element.ALIGN_MIDDLE, 1, 30f ,false);
  273. setBorder(border, false, false, true, true);
  274. PT_addCell(table21, listRowSet.get("CUR_CD"), FontTitle, border,
  275. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  276. setBorder(border, false, false, true, true);
  277. PT_addCell(table21, listRowSet.get("REQU_TAMT"), FontTitle, border,
  278. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 1, 30f,false);
  279. setBorder(border, false, true, true, true);
  280. PT_addCell(table21, new String [] { ")" }, FontTitle, border,
  281. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  282. PT_addCell(table21, new String [] { "(면 세)" }, FontTitle, border,
  283. Element.ALIGN_RIGHT, Element.ALIGN_MIDDLE, 1, 30f ,false);
  284. setBorder(border, true, false, true, true);
  285. PT_addCell(table21, new String [] { "금" }, FontTitle, border,
  286. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  287. setBorder(border, false, false, true, true);
  288. PT_addCell(table21, listRowSet.get("HAN_REQU_NAMT"), FontTitle, border,
  289. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 3, 30f,false);
  290. setBorder(border, false, false, true, true);
  291. PT_addCell(table21, new String [] { "원정 (" }, FontTitle, border,
  292. Element.ALIGN_RIGHT, Element.ALIGN_MIDDLE, 1, 30f ,false);
  293. setBorder(border, false, false, true, true);
  294. PT_addCell(table21, listRowSet.get("CUR_CD"), FontTitle, border,
  295. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  296. setBorder(border, false, false, true, true);
  297. PT_addCell(table21, listRowSet.get("REQU_NAMT"), FontTitle, border,
  298. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 1, 30f,false);
  299. setBorder(border, false, true, true, true);
  300. PT_addCell(table21, new String [] { ")" }, FontTitle, border,
  301. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  302. PT_addCell(table21, new String [] { "잔 액" }, FontTitle, border,
  303. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f ,false);
  304. setBorder(border, true, false, true, true);
  305. PT_addCell(table21, new String [] { "금" }, FontTitle, border,
  306. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  307. setBorder(border, false, false, true, true);
  308. PT_addCell(table21, new String [] { "없음" }, FontTitle, border,
  309. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 3, 30f,false);
  310. setBorder(border, false, false, true, true);
  311. PT_addCell(table21, new String [] { "원정 (" }, FontTitle, border,
  312. Element.ALIGN_RIGHT, Element.ALIGN_MIDDLE, 1, 30f ,false);
  313. setBorder(border, false, false, true, true);
  314. PT_addCell(table21, listRowSet.get("CUR_CD"), FontTitle, border,
  315. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  316. setBorder(border, false, false, true, true);
  317. PT_addCell(table21, new String [] { "0" }, FontTitle, border,
  318. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 1, 30f,false);
  319. setBorder(border, false, true, true, true);
  320. PT_addCell(table21, new String [] { ")" }, FontTitle, border,
  321. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  322. PT_addCell(table21, new String [] { "선 급 금" }, FontTitle, border,
  323. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f ,false);
  324. setBorder(border, true, false, true, true);
  325. PT_addCell(table21, new String [] { "금" }, FontTitle, border,
  326. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  327. setBorder(border, false, false, true, true);
  328. PT_addCell(table21, listRowSet.get("HAN_PREPAY_SUPPLY_AMT"), FontTitle, border,
  329. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 3, 30f,false);
  330. setBorder(border, false, false, true, true);
  331. PT_addCell(table21, new String [] { "원정 (" }, FontTitle, border,
  332. Element.ALIGN_RIGHT, Element.ALIGN_MIDDLE, 1, 30f ,false);
  333. setBorder(border, false, false, true, true);
  334. PT_addCell(table21, listRowSet.get("CUR_CD"), FontTitle, border,
  335. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  336. setBorder(border, false, false, true, true);
  337. PT_addCell(table21, listRowSet.get("PREPAY_SUPPLY_AMT"), FontTitle, border,
  338. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 1, 30f,false);
  339. setBorder(border, false, true, true, true);
  340. PT_addCell(table21, new String [] { ")" }, FontTitle, border,
  341. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  342. PT_addCell(table21, new String [] { "선 급 금\n전 회 공 제" }, FontTitle, border,
  343. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f ,false);
  344. setBorder(border, true, false, true, true);
  345. PT_addCell(table21, new String [] { "금" }, FontTitle, border,
  346. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  347. setBorder(border, false, false, true, true);
  348. PT_addCell(table21, listRowSet.get("HAN_PRE_PAY_DEDUCT_AMT"), FontTitle, border,
  349. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 3, 30f,false);
  350. setBorder(border, false, false, true, true);
  351. PT_addCell(table21, new String [] { "원정 (" }, FontTitle, border,
  352. Element.ALIGN_RIGHT, Element.ALIGN_MIDDLE, 1, 30f ,false);
  353. setBorder(border, false, false, true, true);
  354. PT_addCell(table21, listRowSet.get("CUR_CD"), FontTitle, border,
  355. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  356. setBorder(border, false, false, true, true);
  357. PT_addCell(table21, listRowSet.get("PRE_PAY_DEDUCT_AMT"), FontTitle, border,
  358. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 1, 30f,false);
  359. setBorder(border, false, true, true, true);
  360. PT_addCell(table21, new String [] { ")" }, FontTitle, border,
  361. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  362. PT_addCell(table21, new String [] { "선 급 금\n금 회 공 제" }, FontTitle, border,
  363. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f ,false);
  364. setBorder(border, true, false, true, true);
  365. PT_addCell(table21, new String [] { "금" }, FontTitle, border,
  366. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  367. setBorder(border, false, false, true, true);
  368. PT_addCell(table21, listRowSet.get("HAN_PAY_DEDUCT_AMT"), FontTitle, border,
  369. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 3, 30f,false);
  370. setBorder(border, false, false, true, true);
  371. PT_addCell(table21, new String [] { "원정 (" }, FontTitle, border,
  372. Element.ALIGN_RIGHT, Element.ALIGN_MIDDLE, 1, 30f ,false);
  373. setBorder(border, false, false, true, true);
  374. PT_addCell(table21, listRowSet.get("CUR_CD"), FontTitle, border,
  375. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  376. setBorder(border, false, false, true, true);
  377. PT_addCell(table21, listRowSet.get("PAY_DEDUCT_AMT"), FontTitle, border,
  378. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 1, 30f,false);
  379. setBorder(border, false, true, true, true);
  380. PT_addCell(table21, new String [] { ")" }, FontTitle, border,
  381. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  382. }else{
  383. PT_addCell(table21, new String [] { "기 지 불 액" }, FontTitle, border,
  384. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 1, 30f ,false);
  385. setBorder(border, true, false, true, true);
  386. PT_addCell(table21, new String [] { " " }, FontTitle, border,
  387. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  388. setBorder(border, false, false, true, true);
  389. PT_addCell(table21, listRowSet.get("HAN_PRE_PAYED"), FontTitle, border,
  390. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 3, 30f,false);
  391. setBorder(border, false, false, true, true);
  392. PT_addCell(table21, listRowSet.get("CUR_NM") + "(", FontTitle, border,
  393. Element.ALIGN_RIGHT, Element.ALIGN_MIDDLE, 1, 30f ,false);
  394. setBorder(border, false, false, true, true);
  395. PT_addCell(table21, listRowSet.get("CUR_CD"), FontTitle, border,
  396. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  397. setBorder(border, false, false, true, true);
  398. PT_addCell(table21, listRowSet.get("PRE_PAYED_AMT"), FontTitle, border,
  399. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  400. setBorder(border, false, true, true, true);
  401. PT_addCell(table21, new String [] { ")" }, FontTitle, border,
  402. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  403. PT_addCell(table21, new String [] { "금 회 청 구 액" }, FontTitle, border,
  404. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 1, 30f ,false);
  405. setBorder(border, true, false, true, true);
  406. PT_addCell(table21, new String [] { " " }, FontTitle, border,
  407. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  408. setBorder(border, false, false, true, true);
  409. PT_addCell(table21, listRowSet.get("HAN_REQU_AMT"), FontTitle, border,
  410. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 3, 30f,false);
  411. setBorder(border, false, false, true, true);
  412. PT_addCell(table21, listRowSet.get("CUR_NM") + "(", FontTitle, border,
  413. Element.ALIGN_RIGHT, Element.ALIGN_MIDDLE, 1, 30f ,false);
  414. setBorder(border, false, false, true, true);
  415. PT_addCell(table21, listRowSet.get("CUR_CD"), FontTitle, border,
  416. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  417. setBorder(border, false, false, true, true);
  418. PT_addCell(table21, listRowSet.get("REQU_AMT"), FontTitle, border,
  419. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  420. setBorder(border, false, true, true, true);
  421. PT_addCell(table21, new String [] { ")" }, FontTitle, border,
  422. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  423. PT_addCell(table21, new String [] { "(과 세)" }, FontTitle, border,
  424. Element.ALIGN_RIGHT, Element.ALIGN_MIDDLE, 1, 30f ,false);
  425. setBorder(border, true, false, true, true);
  426. PT_addCell(table21, new String [] { " " }, FontTitle, border,
  427. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  428. setBorder(border, false, false, true, true);
  429. PT_addCell(table21, listRowSet.get("HAN_REQU_TAMT"), FontTitle, border,
  430. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 3, 30f,false);
  431. setBorder(border, false, false, true, true);
  432. PT_addCell(table21, listRowSet.get("CUR_NM") + "(", FontTitle, border,
  433. Element.ALIGN_RIGHT, Element.ALIGN_MIDDLE, 1, 30f ,false);
  434. setBorder(border, false, false, true, true);
  435. PT_addCell(table21, listRowSet.get("CUR_CD"), FontTitle, border,
  436. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  437. setBorder(border, false, false, true, true);
  438. PT_addCell(table21, listRowSet.get("REQU_TAMT"), FontTitle, border,
  439. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  440. setBorder(border, false, true, true, true);
  441. PT_addCell(table21, new String [] { ")" }, FontTitle, border,
  442. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  443. PT_addCell(table21, new String [] { "(면 세)" }, FontTitle, border,
  444. Element.ALIGN_RIGHT, Element.ALIGN_MIDDLE, 1, 30f ,false);
  445. setBorder(border, true, false, true, true);
  446. PT_addCell(table21, new String [] { " " }, FontTitle, border,
  447. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  448. setBorder(border, false, false, true, true);
  449. PT_addCell(table21, listRowSet.get("HAN_REQU_NAMT"), FontTitle, border,
  450. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 3, 30f,false);
  451. setBorder(border, false, false, true, true);
  452. PT_addCell(table21, listRowSet.get("CUR_NM") + "(", FontTitle, border,
  453. Element.ALIGN_RIGHT, Element.ALIGN_MIDDLE, 1, 30f ,false);
  454. setBorder(border, false, false, true, true);
  455. PT_addCell(table21, listRowSet.get("CUR_CD"), FontTitle, border,
  456. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  457. setBorder(border, false, false, true, true);
  458. PT_addCell(table21, listRowSet.get("REQU_NAMT"), FontTitle, border,
  459. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  460. setBorder(border, false, true, true, true);
  461. PT_addCell(table21, new String [] { ")" }, FontTitle, border,
  462. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  463. PT_addCell(table21, new String [] { "잔 액" }, FontTitle, border,
  464. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 1, 30f ,false);
  465. setBorder(border, true, false, true, true);
  466. PT_addCell(table21, new String [] { " " }, FontTitle, border,
  467. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  468. setBorder(border, false, false, true, true);
  469. PT_addCell(table21, new String [] { "없음" }, FontTitle, border,
  470. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 3, 30f,false);
  471. setBorder(border, false, false, true, true);
  472. PT_addCell(table21, listRowSet.get("CUR_NM") + "(", FontTitle, border,
  473. Element.ALIGN_RIGHT, Element.ALIGN_MIDDLE, 1, 30f ,false);
  474. setBorder(border, false, false, true, true);
  475. PT_addCell(table21, listRowSet.get("CUR_CD"), FontTitle, border,
  476. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  477. setBorder(border, false, false, true, true);
  478. PT_addCell(table21, new String [] { "0" }, FontTitle, border,
  479. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  480. setBorder(border, false, true, true, true);
  481. PT_addCell(table21, new String [] { ")" }, FontTitle, border,
  482. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  483. PT_addCell(table21, new String [] { "선 급 금" }, FontTitle, border,
  484. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f ,false);
  485. setBorder(border, true, false, true, true);
  486. PT_addCell(table21, new String [] { "금" }, FontTitle, border,
  487. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  488. setBorder(border, false, false, true, true);
  489. PT_addCell(table21, listRowSet.get("HAN_PREPAY_SUPPLY_AMT"), FontTitle, border,
  490. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 3, 30f,false);
  491. setBorder(border, false, false, true, true);
  492. PT_addCell(table21, listRowSet.get("CUR_NM") + "(", FontTitle, border,
  493. Element.ALIGN_RIGHT, Element.ALIGN_MIDDLE, 1, 30f ,false);
  494. setBorder(border, false, false, true, true);
  495. PT_addCell(table21, listRowSet.get("CUR_CD"), FontTitle, border,
  496. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  497. setBorder(border, false, false, true, true);
  498. PT_addCell(table21, listRowSet.get("PREPAY_SUPPLY_AMT"), FontTitle, border,
  499. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 1, 30f,false);
  500. setBorder(border, false, true, true, true);
  501. PT_addCell(table21, new String [] { ")" }, FontTitle, border,
  502. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  503. PT_addCell(table21, new String [] { "선 급 금\n전 회 공 제" }, FontTitle, border,
  504. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f ,false);
  505. setBorder(border, true, false, true, true);
  506. PT_addCell(table21, new String [] { "금" }, FontTitle, border,
  507. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  508. setBorder(border, false, false, true, true);
  509. PT_addCell(table21, listRowSet.get("HAN_PRE_PAY_DEDUCT_AMT"), FontTitle, border,
  510. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 3, 30f,false);
  511. setBorder(border, false, false, true, true);
  512. PT_addCell(table21, listRowSet.get("CUR_NM") + "(", FontTitle, border,
  513. Element.ALIGN_RIGHT, Element.ALIGN_MIDDLE, 1, 30f ,false);
  514. setBorder(border, false, false, true, true);
  515. PT_addCell(table21, listRowSet.get("CUR_CD"), FontTitle, border,
  516. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  517. setBorder(border, false, false, true, true);
  518. PT_addCell(table21, listRowSet.get("PRE_PAY_DEDUCT_AMT"), FontTitle, border,
  519. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 1, 30f,false);
  520. setBorder(border, false, true, true, true);
  521. PT_addCell(table21, new String [] { ")" }, FontTitle, border,
  522. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  523. PT_addCell(table21, new String [] { "선 급 금\n금 회 공 제" }, FontTitle, border,
  524. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f ,false);
  525. setBorder(border, true, false, true, true);
  526. PT_addCell(table21, new String [] { "금" }, FontTitle, border,
  527. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  528. setBorder(border, false, false, true, true);
  529. PT_addCell(table21, listRowSet.get("HAN_PAY_DEDUCT_AMT"), FontTitle, border,
  530. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 3, 30f,false);
  531. setBorder(border, false, false, true, true);
  532. PT_addCell(table21, listRowSet.get("CUR_NM") + "(", FontTitle, border,
  533. Element.ALIGN_RIGHT, Element.ALIGN_MIDDLE, 1, 30f ,false);
  534. setBorder(border, false, false, true, true);
  535. PT_addCell(table21, listRowSet.get("CUR_CD"), FontTitle, border,
  536. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  537. setBorder(border, false, false, true, true);
  538. PT_addCell(table21, listRowSet.get("PAY_DEDUCT_AMT"), FontTitle, border,
  539. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 1, 30f,false);
  540. setBorder(border, false, true, true, true);
  541. PT_addCell(table21, new String [] { ")" }, FontTitle, border,
  542. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  543. PT_addCell(table21, new String [] { "전액\n전회공제" }, FontTitle, border,
  544. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 1, 30f ,false);
  545. setBorder(border, true, false, true, true);
  546. PT_addCell(table21, new String [] { " " }, FontTitle, border,
  547. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  548. setBorder(border, false, false, true, true);
  549. PT_addCell(table21, new String [] { "없음" }, FontTitle, border,
  550. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 3, 30f,false);
  551. setBorder(border, false, false, true, true);
  552. PT_addCell(table21, listRowSet.get("CUR_NM") + "(", FontTitle, border,
  553. Element.ALIGN_RIGHT, Element.ALIGN_MIDDLE, 1, 30f ,false);
  554. setBorder(border, false, false, true, true);
  555. PT_addCell(table21, listRowSet.get("CUR_CD"), FontTitle, border,
  556. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  557. setBorder(border, false, false, true, true);
  558. PT_addCell(table21, new String [] { "0" }, FontTitle, border,
  559. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  560. setBorder(border, false, true, true, true);
  561. PT_addCell(table21, new String [] { ")" }, FontTitle, border,
  562. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  563. PT_addCell(table21, new String [] { "전액\n금회공제" }, FontTitle, border,
  564. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 1, 30f ,false);
  565. setBorder(border, true, false, true, true);
  566. PT_addCell(table21, new String [] { " " }, FontTitle, border,
  567. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  568. setBorder(border, false, false, true, true);
  569. PT_addCell(table21, new String [] { "없음" }, FontTitle, border,
  570. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 3, 30f,false);
  571. setBorder(border, false, false, true, true);
  572. PT_addCell(table21, listRowSet.get("CUR_NM") + "(", FontTitle, border,
  573. Element.ALIGN_RIGHT, Element.ALIGN_MIDDLE, 1, 30f ,false);
  574. setBorder(border, false, false, true, true);
  575. PT_addCell(table21, listRowSet.get("CUR_CD"), FontTitle, border,
  576. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  577. setBorder(border, false, false, true, true);
  578. PT_addCell(table21, new String [] { "0" }, FontTitle, border,
  579. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  580. setBorder(border, false, true, true, true);
  581. PT_addCell(table21, new String [] { ")" }, FontTitle, border,
  582. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f,false);
  583. }
  584. permission.setColspan(9);
  585. table11.addCell(permission);
  586. setBorder(border, true, false, true, false);
  587. PT_addCell(table11, new String [] { "위와 같이 준공검사 내역을 보고 합니다. " }, FontTitle, border,
  588. Element.ALIGN_RIGHT, Element.ALIGN_MIDDLE, 8, 30f,false);
  589. setBorder(border, false, true, true, false);
  590. PT_addCell(table11, new String [] { " " }, FontTitle, border,
  591. Element.ALIGN_RIGHT, Element.ALIGN_MIDDLE, 1, 30f,false);
  592. setBorder(border, true, false, false, true);
  593. PT_addCell(table11, listRowSet.get("ACMP_DATE").substring(0, 4) + "년 " + listRowSet.get("ACMP_DATE").substring(5, 7) + "월" + listRowSet.get("ACMP_DATE").substring(8, 10) + "일 ", FontTitle, border,
  594. Element.ALIGN_RIGHT, Element.ALIGN_MIDDLE, 8, 30f,false);
  595. setBorder(border, false, true, false, true);
  596. PT_addCell(table11, new String [] { " " }, FontTitle, border,
  597. Element.ALIGN_RIGHT, Element.ALIGN_MIDDLE, 1, 30f,false);
  598. setBorder(border, true, true, true, true);
  599. PT_addCell(table11, new String [] { "공 사 업 체" }, FontTitle, border,
  600. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f ,false);
  601. setBorder(border, true, false, true, true);
  602. PT_addCell(table11, new String [] { "(업체명)" }, FontTitle, border,
  603. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f ,false);
  604. setBorder(border, false, false, true, true);
  605. PT_addCell(table11, listRowSet.get("CORP_KOR"), FontTitle, border,
  606. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 3, 30f ,false);
  607. setBorder(border, false, false, true, true);
  608. PT_addCell(table11, new String [] { "(대표자명)" }, FontTitle, border,
  609. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f ,false);
  610. setBorder(border, false, false, true, true);
  611. PT_addCell(table11, listRowSet.get("REP_NAME"), FontTitle, border,
  612. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 2, 30f ,false);
  613. setBorder(border, false, true, true, true);
  614. PT_addCell(table11, new String [] { " " }, FontTitle, border,
  615. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f ,false);
  616. setBorder(border, true, true, true, true);
  617. PT_addCell(table11, new String [] { "검 사 인" }, FontTitle, border,
  618. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f ,false);
  619. setBorder(border, true, false, true, true);
  620. PT_addCell(table11, new String [] { "(소 속)" }, FontTitle, border,
  621. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f ,false);
  622. setBorder(border, false, false, true, true);
  623. PT_addCell(table11, listRowSet.get("CHECK_COMP"), FontTitle, border,
  624. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 3, 30f ,false);
  625. setBorder(border, false, false, true, true);
  626. PT_addCell(table11, new String [] { "(성 명)" }, FontTitle, border,
  627. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f ,false);
  628. setBorder(border, false, false, true, true);
  629. PT_addCell(table11, listRowSet.get("CHECK_MAN"), FontTitle, border,
  630. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 2, 30f ,false);
  631. setBorder(border, false, true, true, true);
  632. PT_addCell(table11, new String [] { "" }, FontTitle1, border,
  633. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 1, 30f ,false);
  634. setBorder(border, true, true, true, true);
  635. PT_addCell(table11, new String [] { "입 회 인" }, FontTitle, border,
  636. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f ,false);
  637. setBorder(border, true, false, true, true);
  638. PT_addCell(table11, new String [] { "(소 속)" }, FontTitle, border,
  639. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f ,false);
  640. setBorder(border, false, false, true, true);
  641. PT_addCell(table11, listRowSet.get("ATTEN_COMP"), FontTitle, border,
  642. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 3, 30f ,false);
  643. setBorder(border, false, false, true, true);
  644. PT_addCell(table11, new String [] { "(성 명)" }, FontTitle, border,
  645. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 30f ,false);
  646. setBorder(border, false, false, true, true);
  647. PT_addCell(table11, listRowSet.get("ATTEN_MAN"), FontTitle, border,
  648. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 2, 30f ,false);
  649. setBorder(border, false, true, true, true);
  650. PT_addCell(table11, new String [] { "" }, FontTitle1, border,
  651. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 1, 30f ,false);
  652. setBorder(border, true, true, true, true);
  653. PT_addCell(table11, new String [] { "세금계산서\n발행방법" }, FontTitle, border,
  654. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 35f ,false);
  655. PdfPTable table41 = new PdfPTable(3);
  656. float[] table41Width = {35f,35f,35f};
  657. table41.setWidths(table41Width);
  658. PdfPCell permission3 = new PdfPCell(table41);
  659. String check1 = "";
  660. String check2 = "";
  661. String check3 = "";
  662. check1 = (listRowSet.get("TAX_METHOD_CD").equals("1")?"●":"○")+" 역발행(SGC이앤씨 발행)";
  663. check2 = (listRowSet.get("TAX_METHOD_CD").equals("2")?"●":"○")+" 순발행(업체 직접 발행)";
  664. check3 = (listRowSet.get("TAX_METHOD_CD").equals("3")?"●":"○")+" Invoice";
  665. setBorder(border, true, false, true, false);
  666. PT_addCell(table41, check1 , FontTitle, border,
  667. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 25f ,false);
  668. setBorder(border, false, false, true, false);
  669. PT_addCell(table41, check2, FontTitle, border,
  670. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 25f ,false);
  671. setBorder(border, false, true, true, false);
  672. PT_addCell(table41, check3, FontTitle, border,
  673. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 25f ,false);
  674. setBorder(border, true, true, true, true);
  675. permission3.setColspan(8);
  676. table11.addCell(permission3);
  677. setBorder(border, true, true, true, true);
  678. PT_addCell(table11, new String [] { "특 기 사 항" }, FontTitle, border,
  679. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 140f ,false);
  680. PT_addCell(table11, listRowSet.get("ACMP_REMARK"), FontTitle, border,
  681. Element.ALIGN_LEFT, Element.ALIGN_TOP, 8, 140f ,false);
  682. PT_addCell(table11, new String [] { "첨 부 서 류" }, FontTitle, border,
  683. Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 1, 90f ,false);
  684. PdfPTable table31 = new PdfPTable(3);
  685. float[] table31Width = {25f,25f,25f};
  686. table31.setWidths(table31Width);
  687. PdfPCell permission2 = new PdfPCell(table31);
  688. setBorder(border, true, false, true, false);
  689. PT_addCell(table31, rowSet.getRow(0).get("DOC_NM") , FontTitle, border,
  690. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 1, 30f ,false);
  691. setBorder(border, false, false, true, false);
  692. PT_addCell(table31, rowSet.getRow(1).get("DOC_NM"), FontTitle, border,
  693. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 1, 30f ,false);
  694. setBorder(border, false, true, true, false);
  695. PT_addCell(table31, rowSet.getRow(2).get("DOC_NM"), FontTitle, border,
  696. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 1, 30f ,false);
  697. setBorder(border, true, false, false, false);
  698. PT_addCell(table31, rowSet.getRow(3).get("DOC_NM"), FontTitle, border,
  699. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 1, 30f ,false);
  700. setBorder(border, false, false, false, false);
  701. PT_addCell(table31, rowSet.getRow(4).get("DOC_NM"), FontTitle, border,
  702. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 1, 30f ,false);
  703. setBorder(border, false, true, false, false);
  704. PT_addCell(table31, rowSet.getRow(5).get("DOC_NM"), FontTitle, border,
  705. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 1, 30f ,false);
  706. setBorder(border, true, false, false, false);
  707. PT_addCell(table31, rowSet.getRow(6).get("DOC_NM"), FontTitle, border,
  708. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 1, 30f ,false);
  709. setBorder(border, false, false, false, false);
  710. PT_addCell(table31, rowSet.getRow(7).get("DOC_NM"), FontTitle, border,
  711. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 1, 30f ,false);
  712. setBorder(border, false, true, false, false);
  713. PT_addCell(table31, rowSet.getRow(8).get("DOC_NM"), FontTitle, border,
  714. Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 1, 30f ,false);
  715. setBorder(border, true, true, true, true);
  716. permission2.setColspan(8);
  717. table11.addCell(permission2);
  718. document.add(table11);
  719. } catch (DocumentException de) {
  720. WAFLogger.debug("de.getMessage() = " + de.getMessage());
  721. } catch (IOException ioe) {
  722. WAFLogger.debug("ioe.getMessage() = " + ioe.getMessage());
  723. } catch (Exception e) {
  724. WAFLogger.debug("[Exception] ... " + e);
  725. }
  726. // step 5
  727. document.close();
  728. WAFLogger.debug("\n\t #################### "+ strFileName +" 생성완료 SACDOCreatePDF7");
  729. }
  730. /*
  731. * ===========================================================================================
  732. * A. 타이틀
  733. * ===========================================================================================
  734. */
  735. private static void makeTitle(Document document, Font FontTitle,
  736. Font FontTitle2, HttpServletRequest request) throws Exception {
  737. PdfPTable tbl_Title = new PdfPTable(2);
  738. tbl_Title.setWidthPercentage(40f);
  739. float[] tbl_TitleWidths = {10f,10f};
  740. tbl_Title.setWidths(tbl_TitleWidths);
  741. PdfPCell title= new PdfPCell(new Paragraph("준공 검사 보고서", FontTitle2));
  742. title.setColspan(2);
  743. title.setHorizontalAlignment(Element.ALIGN_CENTER);
  744. title.setVerticalAlignment(Element.ALIGN_MIDDLE);
  745. title.setFixedHeight(40f);
  746. title.setBorder(0);
  747. title.setBorderWidthBottom(1);
  748. tbl_Title.addCell(title);
  749. PdfPCell titleB = new PdfPCell(new Paragraph("", FontTitle2));
  750. titleB.setColspan(2);
  751. titleB.setFixedHeight(30f);
  752. titleB.setBorder(0);
  753. tbl_Title.addCell(titleB);
  754. //PT_addCell(tbl_Title, "대 금 지 급", FontTitle2, borderTemp,
  755. // Element.ALIGN_CENTER, Element.ALIGN_MIDDLE, 2, 28f, false);
  756. document.add(tbl_Title);
  757. Image img = null;
  758. if(request == null)
  759. {
  760. //img = Image.getInstance(new URL("http://edreams21.co.kr/img/invoice/Title_bg1.gif"));
  761. }
  762. else
  763. {
  764. //img = Image.getInstance(new URL(request.getScheme(), request.getServerName(), request.getServerPort(), "/img/invoice/Title_bg1.gif"));
  765. }
  766. // img.scaleToFit(300f, 40f);
  767. // img.setAbsolutePosition(310, 554);
  768. // img.setAbsolutePosition(203, 246);
  769. // img.setAbsolutePosition(180, 310);
  770. // document.add(img);
  771. }
  772. /*
  773. * ===========================================================================================
  774. * B. 데이터 입력
  775. * ===========================================================================================
  776. */
  777. /*
  778. * ===========================================================================================
  779. * 기타
  780. * ===========================================================================================
  781. */
  782. // PdfPCell을 리턴하자
  783. private static PdfPCell PC_addCell(String strText, Font FontTitle,
  784. Rectangle border, int HA, int VA, int CS) {
  785. // 추가할 Cell 생성
  786. PdfPCell cell = new PdfPCell(new Paragraph(strText, FontTitle));
  787. // PdfPCell cell = new PdfPCell(new Paragraph(strText));
  788. // Cell Border 설정
  789. // setBorder(cell, blnLEFT, blnRIGHT, blnTOP, blnBOTTOM);
  790. cell.cloneNonPositionParameters(border);
  791. // 가로/세로 정렬
  792. cell.setHorizontalAlignment(HA);
  793. cell.setVerticalAlignment(VA);
  794. // setColspan
  795. if (CS > 1)
  796. cell.setColspan(CS);
  797. // cell.setPadding(0);
  798. if( isGray )
  799. cell.setGrayFill(0.8f);
  800. //if( LineisGray )
  801. // cell.setGrayFill(0.9f);
  802. //cell.setBackgroundColor(arg0)
  803. return cell;
  804. }
  805. // Cell Border 설정
  806. private static void setBorder(Rectangle border, boolean blnLEFT,
  807. boolean blnRIGHT, boolean blnTOP, boolean blnBOTTOM) {
  808. border.setBorderColor(borderColor);
  809. if (blnLEFT) {
  810. border.setBorderWidthLeft(BorderW);
  811. } else {
  812. border.setBorderWidthLeft(0);
  813. }
  814. if (blnRIGHT) {
  815. border.setBorderWidthRight(BorderW);
  816. } else {
  817. border.setBorderWidthRight(0);
  818. }
  819. if (blnTOP) {
  820. border.setBorderWidthTop(BorderW);
  821. } else {
  822. border.setBorderWidthTop(0);
  823. }
  824. if (blnBOTTOM) {
  825. border.setBorderWidthBottom(BorderW);
  826. } else {
  827. border.setBorderWidthBottom(0);
  828. }
  829. }
  830. // PdfPTable에 Cell 을 추가하자
  831. private static void PT_addCell(PdfPTable table, String[] arrText,
  832. Font FontTitle, Rectangle border, int HA, int VA, int CS) {
  833. for (int i = 0; i < arrText.length; i++) {
  834. PT_addCell(table, arrText[i], FontTitle, border, HA, VA, CS);
  835. }
  836. }
  837. private static void PT_addCell(PdfPTable table, String[] arrText,
  838. Font FontTitle, Rectangle border, int HA, int VA, int CS, float RH, boolean CL) {
  839. for (int i = 0; i < arrText.length; i++) {
  840. PT_addCell(table, arrText[i], FontTitle, border, HA, VA, CS, RH, CL);
  841. }
  842. }
  843. private static void PT_addCell(PdfPTable table, String strText,
  844. Font FontTitle, Rectangle border, int HA, int VA, int CS) {
  845. // 추가할 Cell 생성
  846. PdfPCell cell = PC_addCell(strText, FontTitle, border, HA, VA, CS);
  847. table.addCell(cell);
  848. }
  849. // PdfPTable에 Cell 을 추가하자(행높이 추가)
  850. private static void PT_addCell(PdfPTable table, String strText,
  851. Font FontTitle, Rectangle border, int HA, int VA, int CS, float RH, boolean CL) {
  852. // 추가할 Cell 생성
  853. PdfPCell cell = PC_addCell(strText, FontTitle, border, HA, VA, CS);
  854. // 셀 높이
  855. if (RH > 0)
  856. cell.setFixedHeight(RH);
  857. if (CL) {
  858. cell.setBackgroundColor(Color.lightGray);
  859. } else {
  860. cell.setBackgroundColor(Color.white);
  861. }
  862. table.addCell(cell);
  863. }
  864. public ValueObject getPayReqList1( Connection con, String tmpslipID, String subContModId ){
  865. Persistent persistent_c = null;
  866. Search search = new SearchImpl();
  867. ValueObject vo = null;
  868. RowSet rowSet = new RowSetImpl();
  869. StringBuffer sql = new StringBuffer();
  870. try{
  871. persistent_c = new PersistentImpl(con);
  872. sql.append(" SELECT FIRST_CON_AMT \n");
  873. sql.append(" , LAST_CON_AMT \n");
  874. sql.append(" , F_GET_D_CURRENCY(VAR_AMT , F_GET_CURRENCY_DIGIT(CON_CUR_CD) ) AS VAR_AMT \n");
  875. sql.append(" , VAR_MARK \n");
  876. sql.append(" , BUILD_NAME \n");
  877. sql.append(" , DIGIT \n");
  878. sql.append(" , PRE_PAYED_AMT \n");
  879. sql.append(" , HAN_PRE_PAYED \n");
  880. sql.append(" , REQU_AMT \n");
  881. sql.append(" , HAN_REQU_AMT \n");
  882. sql.append(" , REQU_TAMT \n");
  883. sql.append(" , HAN_REQU_TAMT \n");
  884. sql.append(" , REQU_NAMT \n");
  885. sql.append(" , HAN_REQU_NAMT \n");
  886. sql.append(" , CHECK_COMP \n");
  887. sql.append(" , CHECK_MAN \n");
  888. sql.append(" , CHECK_TEL \n");
  889. sql.append(" , ATTEN_COMP \n");
  890. sql.append(" , ATTEN_MAN \n");
  891. sql.append(" , ATTEN_TEL \n");
  892. sql.append(" , ACMP_REMARK \n");
  893. sql.append(" , CORP_KOR \n");
  894. sql.append(" , DEPART_DEPT_NM \n");
  895. sql.append(" , ACC_DEPT_NM \n");
  896. sql.append(" , CON_DOC_NO \n");
  897. sql.append(" , ACMP_DATE \n");
  898. sql.append(" , REP_NAME \n");
  899. sql.append(" , DEPT_NAME \n");
  900. sql.append(" , DEPT_CD \n");
  901. sql.append(" , CUR_NM \n");
  902. sql.append(" , CUR_CD \n");
  903. sql.append(" , CON_CUR_CD \n");
  904. sql.append(" , CONCD \n");
  905. sql.append(" , PREPAY_SUPPLY_AMT \n");
  906. sql.append(" , HAN_PREPAY_SUPPLY_AMT \n");
  907. sql.append(" , PRE_PAY_DEDUCT_AMT \n");
  908. sql.append(" , HAN_PRE_PAY_DEDUCT_AMT \n");
  909. sql.append(" , PAY_DEDUCT_AMT \n");
  910. sql.append(" , HAN_PAY_DEDUCT_AMT \n");
  911. sql.append(" , TAX_METHOD_CD \n");
  912. sql.append(" FROM \n");
  913. sql.append(" ( \n");
  914. sql.append(" SELECT F_GET_D_CURRENCY(B.CON_SUPPLY_AMT , F_GET_CURRENCY_DIGIT(A.CON_CUR_CD)) FIRST_CON_AMT \n");
  915. sql.append(" ,F_GET_D_CURRENCY(A.CON_SUPPLY_AMT , F_GET_CURRENCY_DIGIT(A.CON_CUR_CD)) LAST_CON_AMT \n");
  916. sql.append(" ,CASE WHEN A.CON_SUPPLY_AMT > B.CON_SUPPLY_AMT THEN A.CON_SUPPLY_AMT - B.CON_SUPPLY_AMT \n");
  917. sql.append(" WHEN A.CON_SUPPLY_AMT < B.CON_SUPPLY_AMT THEN B.CON_SUPPLY_AMT - A.CON_SUPPLY_AMT \n");
  918. sql.append(" ELSE A.CON_SUPPLY_AMT - B.CON_SUPPLY_AMT \n");
  919. sql.append(" END VAR_AMT \n");
  920. sql.append(" ,CASE WHEN A.CON_SUPPLY_AMT > B.CON_SUPPLY_AMT THEN '▲▽' \n");
  921. sql.append(" WHEN A.CON_SUPPLY_AMT < B.CON_SUPPLY_AMT THEN '△▼' \n");
  922. sql.append(" ELSE '△▽' \n");
  923. sql.append(" END VAR_MARK \n");
  924. sql.append(" ,A.BUILD_NAME \n");
  925. sql.append(" ,F.CHG_CODE01 DIGIT \n");
  926. sql.append(" ,F_GET_D_CURRENCY(C.PRE_REQU_SUPPLY_AMT + NVL( (SELECT SUM(B.REQ_PREPAY_SUPPLY_TAMT) SUPPLY_AMT \n");
  927. sql.append(" FROM SUB1030T B \n"); //, SUB1050T C, SAC01001 D 2016.7.5 중복제거
  928. sql.append(" WHERE DECODE(B.CONVERSION_YN, 'Y', '10', B.STATUS_CD) >= '10' \n");
  929. sql.append(" AND A.SUB_CONT_ID = B.SUB_CONT_ID), 0) , F_GET_CURRENCY_DIGIT(A.CON_CUR_CD)) PRE_PAYED_AMT \n");
  930. sql.append(" ,F_GET_HANGUL(TRUNC(C.PRE_REQU_SUPPLY_AMT + NVL( (SELECT SUM(B.REQ_PREPAY_SUPPLY_TAMT) SUPPLY_AMT \n");
  931. sql.append(" FROM SUB1030T B \n");
  932. sql.append(" WHERE DECODE(B.CONVERSION_YN, 'Y', '10', B.STATUS_CD) >= '10' \n");
  933. sql.append(" AND A.SUB_CONT_ID = B.SUB_CONT_ID), 0))) HAN_PRE_PAYED \n");
  934. sql.append(" ,F_GET_D_CURRENCY(C.REQU_SUPPLY_AMT, F_GET_CURRENCY_DIGIT(A.CON_CUR_CD)) AS REQU_AMT \n");
  935. sql.append(" ,F_GET_HANGUL(TRUNC(C.REQU_SUPPLY_AMT)) HAN_REQU_AMT \n");
  936. sql.append(" ,F_GET_D_CURRENCY(C.REQU_SUPPLY_TAMT, F_GET_CURRENCY_DIGIT(A.CON_CUR_CD)) AS REQU_TAMT \n");
  937. sql.append(" ,F_GET_HANGUL(TRUNC(C.REQU_SUPPLY_TAMT)) HAN_REQU_TAMT \n");
  938. sql.append(" ,F_GET_D_CURRENCY(C.REQU_SUPPLY_NAMT, F_GET_CURRENCY_DIGIT(A.CON_CUR_CD)) AS REQU_NAMT \n");
  939. sql.append(" ,F_GET_HANGUL(TRUNC(C.REQU_SUPPLY_NAMT)) HAN_REQU_NAMT \n");
  940. sql.append(" ,C.CHECK_COMP \n");
  941. sql.append(" ,C.CHECK_MAN \n");
  942. sql.append(" ,C.CHECK_TEL \n");
  943. sql.append(" ,C.ATTEN_COMP \n");
  944. sql.append(" ,C.ATTEN_MAN \n");
  945. sql.append(" ,C.ATTEN_TEL \n");
  946. sql.append(" ,C.ACMP_REMARK \n");
  947. sql.append(" ,SUBSTR(D.CORP_KOR,3) AS CORP_KOR \n");
  948. sql.append(" ,E.DEPART_DEPT_NM \n");
  949. sql.append(" , (SELECT DEPART_DEPT_NM FROM PUB0120T WHERE ACCT_ID = B.CON_CHARGE_ID ) ACC_DEPT_NM \n");
  950. sql.append(" ,A.CON_DOC_NO \n");
  951. sql.append(" ,TO_CHAR(C.ACMP_DATE, 'YYYY.MM.DD') ACMP_DATE \n");
  952. sql.append(" ,G.REP_NAME \n");
  953. sql.append(" ,A.DEPT_NAME \n");
  954. sql.append(" ,C.DEPT_CD \n");
  955. sql.append(" ,F.CHG_CODE06 CUR_NM \n");
  956. sql.append(" ,F.CHG_CODE09 AS CUR_CD \n");
  957. sql.append(" ,A.CON_CUR_CD \n");
  958. sql.append(" ,'' AS CONCD \n");
  959. sql.append(" ,F_GET_D_CURRENCY(H.PREPAY_SUPPLY_AMT, F_GET_CURRENCY_DIGIT(A.CON_CUR_CD)) AS PREPAY_SUPPLY_AMT \n");
  960. sql.append(" ,F_GET_HANGUL(TRUNC(H.PREPAY_SUPPLY_AMT)) HAN_PREPAY_SUPPLY_AMT \n");
  961. sql.append(" ,F_GET_D_CURRENCY(C.PRE_PAY_DEDUCT_AMT, F_GET_CURRENCY_DIGIT(A.CON_CUR_CD)) AS PRE_PAY_DEDUCT_AMT \n");
  962. sql.append(" ,F_GET_HANGUL(TRUNC(C.PRE_PAY_DEDUCT_AMT)) HAN_PRE_PAY_DEDUCT_AMT \n");
  963. sql.append(" ,F_GET_D_CURRENCY(C.PAY_DEDUCT_AMT, F_GET_CURRENCY_DIGIT(A.CON_CUR_CD)) AS PAY_DEDUCT_AMT \n");
  964. sql.append(" ,F_GET_HANGUL(TRUNC(C.PAY_DEDUCT_AMT)) HAN_PAY_DEDUCT_AMT \n");
  965. sql.append(" ,C.TAX_METHOD_CD \n");
  966. sql.append(" FROM SUB2000T A \n");
  967. sql.append(" ,( SELECT * FROM SUB2000T WHERE MOD_NO = 0 ) B \n");
  968. sql.append(" ,SUB1040T C \n");
  969. sql.append(" ,SUB1020T D \n");
  970. sql.append(" ,(SELECT ACCT_ID, DEPART_DEPT_CD, DEPART_DEPT_NM FROM PUB0120T) E \n");
  971. sql.append(" ,(SELECT DETAILCD, CHG_CODE01, CHG_CODE06, CHG_CODE09 FROM EBID_COM911T WHERE BASECD = '911') F \n");
  972. sql.append(" ,(SELECT CORP_ID, REP_NAME FROM SUB9000T_V) G \n");
  973. sql.append(" ,( \n");
  974. sql.append(" SELECT SUB_CONT_ID \n");
  975. sql.append(" ,CON_CORP_ID \n");
  976. sql.append(" ,SUM(REQ_PREPAY_SUPPLY_AMT) AS PREPAY_SUPPLY_AMT \n");
  977. sql.append(" FROM SUB1030T \n");
  978. sql.append(" WHERE STATUS_CD = '10' \n");
  979. sql.append(" AND SUB_CONT_MOD_ID <= "+subContModId+" \n");
  980. sql.append(" GROUP BY SUB_CONT_ID, CON_CORP_ID \n");
  981. sql.append(" ) H \n");
  982. sql.append(" WHERE A.SUB_CONT_ID = B.SUB_CONT_ID \n");
  983. sql.append(" AND A.SUB_CONT_ID = C.SUB_CONT_ID \n");
  984. sql.append(" AND A.MOD_NO = C.MOD_NO \n");
  985. sql.append(" AND C.CON_CORP_ID = D.CON_CORP_ID \n");
  986. sql.append(" AND F.DETAILCD = A.CON_CUR_CD \n");
  987. sql.append(" AND A.REQ_USERID = E.ACCT_ID(+) \n");
  988. sql.append(" AND D.CORP_ID = G.CORP_ID(+) \n");
  989. sql.append(" AND D.MAIN_CORP = 'Y' \n");
  990. sql.append(" AND A.SUB_CONT_ID = H.SUB_CONT_ID(+) \n");
  991. sql.append(" AND C.ACMP_ID = '"+tmpslipID+"' \n");
  992. sql.append(" ) \n");
  993. //search.setStatement(sql.toString());
  994. //rowSet = search.execute();
  995. System.out.println(sql.toString());
  996. persistent_c.setStatement(sql.toString());
  997. rowSet = persistent_c.query();
  998. if(rowSet.size()>0){
  999. vo = RowSetUtility.getValueObject(rowSet.getRow(0));
  1000. }
  1001. }catch(Exception e){
  1002. WAFLogger.error("SQL : " + search.getStatement());
  1003. WAFLogger.error(e);
  1004. }finally{
  1005. if( vo == null) vo = new ValueObject();
  1006. }
  1007. return vo;
  1008. }
  1009. public RowSet getPayReqList2(String tmpslipID ){
  1010. Search search = new SearchImpl();
  1011. RowSet rowSet = new RowSetImpl();
  1012. StringBuffer sql = new StringBuffer();
  1013. try{
  1014. sql.append(" SELECT DOC_NM \n");
  1015. sql.append(" FROM \n");
  1016. sql.append(" ( \n");
  1017. sql.append(" SELECT DECODE(NVL(B.ID,''),'','□','■') || ' ' || A.DETAILNM AS DOC_NM, ROWNUM AS RO \n");
  1018. sql.append(" ,A.DETAILCD \n");
  1019. sql.append(" FROM EBID_COM911T A, PUB0510T B \n");
  1020. sql.append(" WHERE A.BASECD = 'SUB_ACMP_FILE' \n");
  1021. sql.append(" AND A.DETAILCD = B.ID(+) \n");
  1022. sql.append(" AND B.FILE_GB(+) = 'RESOLUTION_"+tmpslipID+"' \n");
  1023. sql.append(" AND A.CHG_CODE01 = '90' \n");
  1024. sql.append(" AND DETAILCD NOT IN ('560', '570') \n");
  1025. sql.append(" ) A \n");
  1026. sql.append(" , ( SELECT LEVEL AS RO2 \n");
  1027. sql.append(" FROM DUAL \n");
  1028. sql.append(" CONNECT BY LEVEL <= 9) B \n");
  1029. sql.append(" WHERE A.RO(+) =B.RO2 \n");
  1030. sql.append(" ORDER BY A.DETAILCD \n");
  1031. search.setStatement(sql.toString());
  1032. rowSet = search.execute();
  1033. }catch(Exception e){
  1034. WAFLogger.error("SQL : " + search.getStatement());
  1035. WAFLogger.error(e);
  1036. }finally{
  1037. if( rowSet == null) rowSet = new RowSetImpl();
  1038. }
  1039. return rowSet;
  1040. }
  1041. public String getSubContModId( Connection con, String acmp_id){
  1042. Persistent persistent_c = null;
  1043. Search search = new SearchImpl();
  1044. RowSet rowSet = new RowSetImpl();
  1045. StringBuffer sql = new StringBuffer();
  1046. String rtnStr = "";
  1047. try {
  1048. persistent_c = new PersistentImpl(con);
  1049. sql.append(" SELECT A.SUB_CONT_MOD_ID \n");
  1050. sql.append(" FROM SUB2000T A \n");
  1051. sql.append(" ,SUB1040T C \n");
  1052. sql.append(" WHERE A.SUB_CONT_ID = C.SUB_CONT_ID \n");
  1053. sql.append(" AND A.MOD_NO = C.MOD_NO \n");
  1054. sql.append(" AND C.ACMP_ID = "+acmp_id+" \n");
  1055. persistent_c.setStatement(sql.toString());
  1056. rowSet = persistent_c.query();
  1057. if(rowSet.size()>0){
  1058. rtnStr = rowSet.getRow(0).get("SUB_CONT_MOD_ID");
  1059. }
  1060. } catch(Exception e) {
  1061. WAFLogger.error(this.getClass().getName() + " --> getSubContModId() : \n" + e.getMessage());
  1062. WAFLogger.error("SQL : " + search.getStatement());
  1063. WAFLogger.error(e);
  1064. } finally {
  1065. if( rtnStr == null ) rtnStr = "";
  1066. }
  1067. return rtnStr;
  1068. }
  1069. }