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
if(row != null)
{
// lot_no & lot_sl(batch/sheetno)
cell = row.getCell((short)3);
//cell = row.getCell((short)3);
cell = row.getCell((int)3);
if(cell != null)
{
batchSheetNo = cell.getStringCellValue();
......@@ -209,7 +210,8 @@ public class QcOrderAprv extends ProcessEJB implements QcOrderAprvLocal ,QcOrde
}
// item code & item description
cell = row.getCell((short)8);
//cell = row.getCell((short)8);
cell = row.getCell((int)8);
if(cell != null)
{
itemCode = cell.getStringCellValue();
......@@ -231,7 +233,8 @@ public class QcOrderAprv extends ProcessEJB implements QcOrderAprvLocal ,QcOrde
}
// FleshResult
cell = row.getCell((short)25);
//cell = row.getCell((short)25);
cell = row.getCell((int)25);
if(cell != null)
{
fResult = String.valueOf(cell.getNumericCellValue());
......@@ -239,7 +242,8 @@ public class QcOrderAprv extends ProcessEJB implements QcOrderAprvLocal ,QcOrde
}
// Approved or Reject
cell = row.getCell((short)34);
//cell = row.getCell((short)34);
cell = row.getCell((int)34);
if(cell != null)
{
aprvReject = cell.getStringCellValue();
......
......@@ -11250,7 +11250,8 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe
font.setColor(HSSFColor.BLUE.index);
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.setCellStyle(style);
sheet.autoSizeColumn((short) 1);
......@@ -11263,7 +11264,8 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe
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]);
}
......@@ -11325,7 +11327,8 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe
row = sheet.createRow(insertRow);
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)
......
......@@ -112,7 +112,8 @@ public class MrpExportExcelServlet extends HttpServlet
font2.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);
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.setCellStyle(style);
sheet.autoSizeColumn((short) 1);
......@@ -169,7 +170,8 @@ public class MrpExportExcelServlet extends HttpServlet
row = sheet.createRow(insertRow);
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.setCellStyle(style1);
}
......@@ -177,7 +179,8 @@ public class MrpExportExcelServlet extends HttpServlet
row = sheet.createRow(insertRow);
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.setCellStyle(style2);
}
......@@ -211,7 +214,8 @@ public class MrpExportExcelServlet extends HttpServlet
row = sheet.createRow(insertRow);
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);
......
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