Archive
This commit is contained in:
@ -203,7 +203,7 @@ public class ToolTypesController : Controller
|
||||
if (ds.Tables[0].Rows.Count != 1)
|
||||
throw new Exception("Error exporting, invalid filename");
|
||||
|
||||
string filename = Convert.ToString(ds.Tables[0].Rows[0][0]);
|
||||
string? filename = Convert.ToString(ds.Tables[0].Rows[0][0]);
|
||||
|
||||
// The second table has the header data
|
||||
if (ds.Tables[1].Rows.Count != 1)
|
||||
@ -211,7 +211,7 @@ public class ToolTypesController : Controller
|
||||
|
||||
System.Text.StringBuilder sb = new();
|
||||
|
||||
foreach (object o in ds.Tables[1].Rows[0].ItemArray)
|
||||
foreach (object? o in ds.Tables[1].Rows[0].ItemArray)
|
||||
{
|
||||
if ((o is not null) && (!Convert.IsDBNull(o)))
|
||||
_ = sb.Append(Convert.ToString(o));
|
||||
@ -221,7 +221,7 @@ public class ToolTypesController : Controller
|
||||
// The third table has the detail data
|
||||
foreach (System.Data.DataRow dr in ds.Tables[2].Rows)
|
||||
{
|
||||
foreach (object o in dr.ItemArray)
|
||||
foreach (object? o in dr.ItemArray)
|
||||
{
|
||||
if ((o is not null) && (!Convert.IsDBNull(o)))
|
||||
_ = sb.Append(Convert.ToString(o));
|
||||
|
Reference in New Issue
Block a user