Rename Source validation extension
This commit is contained in:
parent
bfd7702939
commit
bf97036724
@ -93,7 +93,7 @@ public class RibbonController : ExcelRibbon
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
Worksheet worksheet = RhSolutionsAddIn.Excel.ActiveWorkbook.ActiveSheet;
|
Worksheet worksheet = RhSolutionsAddIn.Excel.ActiveWorkbook.ActiveSheet;
|
||||||
return worksheet.IsRehauSource();
|
return worksheet.IsValidSource();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -83,7 +83,7 @@ public class RhExcelReader : IExcelReader, IDisposable
|
|||||||
List<(string, Dictionary<Product, double>)> result = new();
|
List<(string, Dictionary<Product, double>)> result = new();
|
||||||
foreach (Worksheet worksheet in worksheets)
|
foreach (Worksheet worksheet in worksheets)
|
||||||
{
|
{
|
||||||
if (!worksheet.IsRehauSource())
|
if (!worksheet.IsValidSource())
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -42,7 +42,7 @@ public class RhExcelWriter : IExcelWriter, IDisposable
|
|||||||
{
|
{
|
||||||
_worksheet = OpenNewPrice();
|
_worksheet = OpenNewPrice();
|
||||||
|
|
||||||
if (!_worksheet.IsRehauSource())
|
if (!_worksheet.IsValidSource())
|
||||||
{
|
{
|
||||||
_application.ActiveWorkbook.Close();
|
_application.ActiveWorkbook.Close();
|
||||||
throw new ArgumentException(
|
throw new ArgumentException(
|
||||||
|
@ -9,14 +9,14 @@ namespace RhSolutions.Services;
|
|||||||
#endif
|
#endif
|
||||||
public static class WorksheetExtensions
|
public static class WorksheetExtensions
|
||||||
{
|
{
|
||||||
public static bool IsRehauSource(this Worksheet worksheet)
|
public static bool IsValidSource(this Worksheet worksheet)
|
||||||
{
|
{
|
||||||
Range amountCell;
|
Range amountCell;
|
||||||
Range skuCell;
|
Range skuCell;
|
||||||
Range programLineCell;
|
Range programLineCell;
|
||||||
Range nameCell;
|
Range nameCell;
|
||||||
|
|
||||||
var pricelistParameters = RhSolutionsAddIn.Configuration.GetPriceListHeaders();
|
var pricelistParameters = RhSolutionsAddIn.Configuration.GetPriceListHeaders();
|
||||||
|
|
||||||
Range[] cells = new[]
|
Range[] cells = new[]
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user