Commit 2820048d authored by 潘栩锋's avatar 潘栩锋 🚴

优化 数据浏览器导出 excel 进度显示

parent 3ece0d23
......@@ -62,9 +62,8 @@ namespace FLY.Thick.FilmCasting.UI.DbViewer.Core
using (ExcelPackage p = new ExcelPackage(new FileInfo(filepath)))
{
TotalRow = profilePack.ScanDatas.Count();
CurrRow = 0;
CurrRowInit(profilePack.ScanDatas.Count());
SaveToXlsxThk(p, profilePack);
Msg = "写入文件";
......@@ -206,7 +205,11 @@ namespace FLY.Thick.FilmCasting.UI.DbViewer.Core
ToSheet(sheet, dataTable);
}
void CurrRowInit(int totalRow)
{
TotalRow = totalRow;
CurrRow = 0;
}
int _currRow = 0;
void CurrRowGrowUpReady()
{
......@@ -221,5 +224,6 @@ namespace FLY.Thick.FilmCasting.UI.DbViewer.Core
{
CurrRow = _currRow + cnt;
}
}
}
......@@ -12,24 +12,6 @@
</dialog:CustomDialog.Resources>
<Grid >
<Grid.Resources>
<Style TargetType="TextBlock" x:Key="ItemHeaderStyle" BasedOn="{StaticResource ItemHeaderStyle}">
<Setter Property="Width" Value="100"/>
<Setter Property="Background" Value="{StaticResource MahApps.Brushes.Highlight}"/>
<Setter Property="Foreground" Value="{StaticResource MahApps.Brushes.IdealForeground}"/>
<Setter Property="Padding" Value="2"/>
<Setter Property="FontSize" Value="20"/>
</Style>
<Style TargetType="Viewbox" x:Key="ItemContentViewboxStyle">
<Setter Property="Width" Value="180"/>
<Setter Property="Height" Value="30"/>
<Setter Property="HorizontalAlignment" Value="Left"/>
</Style>
<Style TargetType="TextBlock" x:Key="ItemContentStyle" BasedOn="{StaticResource ItemContentStyle}">
<Setter Property="FontSize" Value="24"/>
</Style>
</Grid.Resources>
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition/>
......
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