Commit 21dcfb5f authored by Vinodkumar Chindam's avatar Vinodkumar Chindam

Revert "Added common method ."

This reverts commit 30a2aa66.
parent 30a2aa66
Pipeline #47854 passed with stages
in 26 seconds
......@@ -250,9 +250,10 @@ namespace PharmaStoreReport.Common
wsSheet.Protection.AllowSelectLockedCells = false;
for (int i = 0; i < Data.Rows.Count; i++)
{
int cellcol = 3;
int k = 8;
CellsConvertToNumbers(i, cellcol, k, wsSheet);
for (int j = 3; j <= 8; j++)
{
wsSheet.Cells[i + 3, j].Style.Numberformat.Format = "0";
}
wsSheet.Cells[i + 3, 1].Value = Data.Rows[i]["PharmacyName"];
wsSheet.Cells[i + 3, 2].Value = Data.Rows[i]["State"];
wsSheet.Cells[i + 3, 3].Value = Int32.Parse((string)Data.Rows[i]["ScriptsActual"]);
......@@ -343,9 +344,10 @@ namespace PharmaStoreReport.Common
wsSheet.Protection.AllowSelectLockedCells = false;
for (int i = 0; i < Data.Rows.Count; i++)
{
int cellcol = 2;
int k=5;
CellsConvertToNumbers(i, cellcol, k, wsSheet);
for (int k = 3; k <= 5; k++)
{
wsSheet.Cells[i + 2, k].Style.Numberformat.Format = "0";
}
wsSheet.Cells[i + 2, 1].Value = Data.Rows[i]["PharmacyName"];
wsSheet.Cells[i + 2, 2].Value = Data.Rows[i]["State"];
wsSheet.Cells[i + 2, 3].Value = Int32.Parse((string)Data.Rows[i]["Scpirts"]);
......@@ -415,20 +417,5 @@ namespace PharmaStoreReport.Common
}
return Unmatched;
}
/// <summary>
/// Convert cell as number value.
/// </summary>
/// <param name="i"></param>
/// <param name="cellCol"></param>
/// <param name="k"></param>
/// <param name="wsSheet"></param>
private void CellsConvertToNumbers(int i,int cellCol,int k,ExcelWorksheet wsSheet)
{
for (int j=3; j <= k; j++)
{
wsSheet.Cells[i + cellCol, j].Style.Numberformat.Format = "0";
}
}
}
}
\ No newline at end of file
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