wanghan 4 months ago
parent
commit
889164b5a1

+ 6 - 0
LogForceTestApp.Modules.MainModule/ViewModels/KBWindowViewModel.cs

@@ -99,6 +99,7 @@ namespace LogoForceTestApp.Modules.MainModule.ViewModels
         public string FirstName { get; set; }
         public string SecondName { get; set; }
         public string ThirdName { get; set; }
+        public string Fix { get; set; }
         #endregion
 
         public KBWindowViewModel(IRepository repository, IEventAggregator eventAggregator, IMapper mapper)
@@ -171,6 +172,11 @@ namespace LogoForceTestApp.Modules.MainModule.ViewModels
         private void _timer_Elapsed(object sender, ElapsedEventArgs e)
         {
             TimeNow = DateTime.Now.ToString();
+            DateTime currentDate = DateTime.Now;
+            if (currentDate.Day == 25)
+            {
+                Fix = "保养提醒:整线需要保养";
+            }
         }
 
 

+ 9 - 0
LogForceTestApp.Modules.MainModule/Views/KBWindow.xaml

@@ -777,6 +777,7 @@
                         <Grid.RowDefinitions>
                             <RowDefinition Height="35" />
                             <RowDefinition Height="*" />
+                            <RowDefinition Height="30" />
                         </Grid.RowDefinitions>
                         <StackPanel Orientation="Horizontal"
                                     VerticalAlignment="Center"
@@ -1136,6 +1137,14 @@
                                 </Border>
                             </Grid>
                         </Grid>
+                        <Border BorderBrush="#22FFFFFF"
+                                BorderThickness="0,1,0,0"
+                                Grid.Row="2">
+                            <TextBlock Text="{Binding Fix}"
+                                   FontSize="16"
+                                   Foreground="#44FFFFFF"
+                                   Margin="3" />
+                        </Border>
                     </Grid>
                 </GroupBox>
             </Grid>