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

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

parent 3ece0d23
...@@ -62,8 +62,7 @@ namespace FLY.Thick.FilmCasting.UI.DbViewer.Core ...@@ -62,8 +62,7 @@ namespace FLY.Thick.FilmCasting.UI.DbViewer.Core
using (ExcelPackage p = new ExcelPackage(new FileInfo(filepath))) using (ExcelPackage p = new ExcelPackage(new FileInfo(filepath)))
{ {
TotalRow = profilePack.ScanDatas.Count(); CurrRowInit(profilePack.ScanDatas.Count());
CurrRow = 0;
SaveToXlsxThk(p, profilePack); SaveToXlsxThk(p, profilePack);
...@@ -206,7 +205,11 @@ namespace FLY.Thick.FilmCasting.UI.DbViewer.Core ...@@ -206,7 +205,11 @@ namespace FLY.Thick.FilmCasting.UI.DbViewer.Core
ToSheet(sheet, dataTable); ToSheet(sheet, dataTable);
} }
void CurrRowInit(int totalRow)
{
TotalRow = totalRow;
CurrRow = 0;
}
int _currRow = 0; int _currRow = 0;
void CurrRowGrowUpReady() void CurrRowGrowUpReady()
{ {
...@@ -221,5 +224,6 @@ namespace FLY.Thick.FilmCasting.UI.DbViewer.Core ...@@ -221,5 +224,6 @@ namespace FLY.Thick.FilmCasting.UI.DbViewer.Core
{ {
CurrRow = _currRow + cnt; CurrRow = _currRow + cnt;
} }
} }
} }
...@@ -12,24 +12,6 @@ ...@@ -12,24 +12,6 @@
</dialog:CustomDialog.Resources> </dialog:CustomDialog.Resources>
<Grid > <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> <Grid.RowDefinitions>
<RowDefinition Height="auto"/> <RowDefinition Height="auto"/>
<RowDefinition/> <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