Commit c5ebd0c0 authored by manohar's avatar manohar

deprecated method createCell(short) replaced with createCell(int)


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@101680 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b8d51080
...@@ -176,7 +176,8 @@ public class QcOrderAprv extends ProcessEJB implements QcOrderAprvLocal ,QcOrde ...@@ -176,7 +176,8 @@ public class QcOrderAprv extends ProcessEJB implements QcOrderAprvLocal ,QcOrde
if(row != null) if(row != null)
{ {
// lot_no & lot_sl(batch/sheetno) // lot_no & lot_sl(batch/sheetno)
cell = row.getCell((short)3); //cell = row.getCell((short)3);
cell = row.getCell((int)3);
if(cell != null) if(cell != null)
{ {
batchSheetNo = cell.getStringCellValue(); batchSheetNo = cell.getStringCellValue();
...@@ -209,7 +210,8 @@ public class QcOrderAprv extends ProcessEJB implements QcOrderAprvLocal ,QcOrde ...@@ -209,7 +210,8 @@ public class QcOrderAprv extends ProcessEJB implements QcOrderAprvLocal ,QcOrde
} }
// item code & item description // item code & item description
cell = row.getCell((short)8); //cell = row.getCell((short)8);
cell = row.getCell((int)8);
if(cell != null) if(cell != null)
{ {
itemCode = cell.getStringCellValue(); itemCode = cell.getStringCellValue();
...@@ -231,7 +233,8 @@ public class QcOrderAprv extends ProcessEJB implements QcOrderAprvLocal ,QcOrde ...@@ -231,7 +233,8 @@ public class QcOrderAprv extends ProcessEJB implements QcOrderAprvLocal ,QcOrde
} }
// FleshResult // FleshResult
cell = row.getCell((short)25); //cell = row.getCell((short)25);
cell = row.getCell((int)25);
if(cell != null) if(cell != null)
{ {
fResult = String.valueOf(cell.getNumericCellValue()); fResult = String.valueOf(cell.getNumericCellValue());
...@@ -239,7 +242,8 @@ public class QcOrderAprv extends ProcessEJB implements QcOrderAprvLocal ,QcOrde ...@@ -239,7 +242,8 @@ public class QcOrderAprv extends ProcessEJB implements QcOrderAprvLocal ,QcOrde
} }
// Approved or Reject // Approved or Reject
cell = row.getCell((short)34); //cell = row.getCell((short)34);
cell = row.getCell((int)34);
if(cell != null) if(cell != null)
{ {
aprvReject = cell.getStringCellValue(); aprvReject = cell.getStringCellValue();
......
...@@ -11250,7 +11250,8 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe ...@@ -11250,7 +11250,8 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe
font.setColor(HSSFColor.BLUE.index); font.setColor(HSSFColor.BLUE.index);
style.setFont(font); style.setFont(font);
HSSFCell titleCell = titleRow.createCell((short) 0); //HSSFCell titleCell = titleRow.createCell((short) 0);
HSSFCell titleCell = titleRow.createCell((int) 0);
titleCell.setCellValue("MRP - Material Requirements"); titleCell.setCellValue("MRP - Material Requirements");
titleCell.setCellStyle(style); titleCell.setCellStyle(style);
sheet.autoSizeColumn((short) 1); sheet.autoSizeColumn((short) 1);
...@@ -11263,7 +11264,8 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe ...@@ -11263,7 +11264,8 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe
for (int cellCtr = 0; cellCtr < titles.length; cellCtr++) for (int cellCtr = 0; cellCtr < titles.length; cellCtr++)
{ {
headerCell = headerRow.createCell((short) cellCtr); //headerCell = headerRow.createCell((short) cellCtr);
headerCell = headerRow.createCell((int) cellCtr);
headerCell.setCellValue(titles[cellCtr]); headerCell.setCellValue(titles[cellCtr]);
} }
...@@ -11325,7 +11327,8 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe ...@@ -11325,7 +11327,8 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe
row = sheet.createRow(insertRow); row = sheet.createRow(insertRow);
for (int j = 0; j < titles.length; j++) for (int j = 0; j < titles.length; j++)
{ {
cell = row.createCell((short) j); //cell = row.createCell((short) j);
cell = row.createCell((int) j);
} }
// if(flag) // if(flag)
......
...@@ -112,7 +112,8 @@ public class MrpExportExcelServlet extends HttpServlet ...@@ -112,7 +112,8 @@ public class MrpExportExcelServlet extends HttpServlet
font2.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD); font2.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);
style2.setFont(font2); style2.setFont(font2);
HSSFCell titleCell = titleRow.createCell((short) 0); //HSSFCell titleCell = titleRow.createCell((short) 0);
HSSFCell titleCell = titleRow.createCell((int) 0);
titleCell.setCellValue("MRP - Material Requirements"); titleCell.setCellValue("MRP - Material Requirements");
titleCell.setCellStyle(style); titleCell.setCellStyle(style);
sheet.autoSizeColumn((short) 1); sheet.autoSizeColumn((short) 1);
...@@ -169,7 +170,8 @@ public class MrpExportExcelServlet extends HttpServlet ...@@ -169,7 +170,8 @@ public class MrpExportExcelServlet extends HttpServlet
row = sheet.createRow(insertRow); row = sheet.createRow(insertRow);
for(int n=0; n<titleRow1.size(); n++) for(int n=0; n<titleRow1.size(); n++)
{ {
cell = row.createCell((short) n); //cell = row.createCell((short) n);
cell = row.createCell((int) n);
cell.setCellValue(titleRow1.get(n)); cell.setCellValue(titleRow1.get(n));
cell.setCellStyle(style1); cell.setCellStyle(style1);
} }
...@@ -177,7 +179,8 @@ public class MrpExportExcelServlet extends HttpServlet ...@@ -177,7 +179,8 @@ public class MrpExportExcelServlet extends HttpServlet
row = sheet.createRow(insertRow); row = sheet.createRow(insertRow);
for (int cellCtr = 0; cellCtr < titles.size(); cellCtr++) for (int cellCtr = 0; cellCtr < titles.size(); cellCtr++)
{ {
headerCell = headerRow.createCell((short) cellCtr); //headerCell = headerRow.createCell((short) cellCtr);
headerCell = headerRow.createCell((int) cellCtr);
headerCell.setCellValue(titles.get(cellCtr)); headerCell.setCellValue(titles.get(cellCtr));
headerCell.setCellStyle(style2); headerCell.setCellStyle(style2);
} }
...@@ -211,7 +214,8 @@ public class MrpExportExcelServlet extends HttpServlet ...@@ -211,7 +214,8 @@ public class MrpExportExcelServlet extends HttpServlet
row = sheet.createRow(insertRow); row = sheet.createRow(insertRow);
for (int j = 0; j < titles.size(); j++) for (int j = 0; j < titles.size(); j++)
{ {
cell = row.createCell((short) j); //cell = row.createCell((short) j);
cell = row.createCell((int) j);
} }
row.getCell(0).setCellValue(itemCode); row.getCell(0).setCellValue(itemCode);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment