Add virtual GetSource with no params to abstract pricelist tool
This commit is contained in:
parent
762127a4aa
commit
379fb6d996
@ -39,6 +39,11 @@ namespace RehauSku.PriceListTools
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public virtual void GetSource()
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
public virtual void GetSource(string[] files)
|
public virtual void GetSource(string[] files)
|
||||||
{
|
{
|
||||||
ExcelApp.ScreenUpdating = false;
|
ExcelApp.ScreenUpdating = false;
|
||||||
|
@ -17,10 +17,11 @@ namespace RehauSku.PriceListTools
|
|||||||
Selection = ExcelApp.Selection;
|
Selection = ExcelApp.Selection;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void GetSource(string[] files)
|
public override void GetSource()
|
||||||
{
|
{
|
||||||
if (Selection != null && Selection.Columns.Count == 2)
|
if (Selection != null && Selection.Columns.Count == 2)
|
||||||
FillSkuAmountDict();
|
FillSkuAmountDict();
|
||||||
|
|
||||||
else throw new Exception("Неверный диапазон");
|
else throw new Exception("Неверный диапазон");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ namespace RehauSku.Ribbon
|
|||||||
{
|
{
|
||||||
using (ExportTool exportTool = new ExportTool())
|
using (ExportTool exportTool = new ExportTool())
|
||||||
{
|
{
|
||||||
exportTool.GetSource(null);
|
exportTool.GetSource();
|
||||||
string exportFile = PriceList.CreateNewFile();
|
string exportFile = PriceList.CreateNewFile();
|
||||||
exportTool.OpenNewPrice(exportFile);
|
exportTool.OpenNewPrice(exportFile);
|
||||||
exportTool.FillPriceList();
|
exportTool.FillPriceList();
|
||||||
|
Loading…
Reference in New Issue
Block a user