diff --git a/Project.FLY.Thick.Base/FLY.Thick.Base.UI/PgPwManager.xaml b/Project.FLY.Thick.Base/FLY.Thick.Base.UI/PgPwManager.xaml
index 1b19d181e5885d5514c88de1a43c78d67200ecec..afeb7a39ccd4cf3f966f4c36681f0429c7dea110 100644
--- a/Project.FLY.Thick.Base/FLY.Thick.Base.UI/PgPwManager.xaml
+++ b/Project.FLY.Thick.Base/FLY.Thick.Base.UI/PgPwManager.xaml
@@ -62,7 +62,7 @@
                         </DataGridTextColumn>
                     </DataGrid.Columns>
                 </DataGrid>
-                <DataGrid AlternationCount ="2" AlternatingRowBackground="LightYellow"  AutoGenerateColumns="False" Margin="{StaticResource ControlMargin}" 
+                <DataGrid AlternationCount ="2" AlternatingRowBackground="LightGray"  AutoGenerateColumns="False" Margin="{StaticResource ControlMargin}" 
                          ItemsSource="{Binding UiLvs}" >
                     <DataGrid.CellStyle>
                         <Style TargetType="DataGridCell">
diff --git a/Project.FLY.Thick.Base/FLY.Thick.Base.UI/WdPassword.xaml b/Project.FLY.Thick.Base/FLY.Thick.Base.UI/WdPassword.xaml
index f7086cd09f8ad0ed7aee38288e6b9b25fd7d4427..47f09b02952de219671568fe656d41e2cb8e1ab8 100644
--- a/Project.FLY.Thick.Base/FLY.Thick.Base.UI/WdPassword.xaml
+++ b/Project.FLY.Thick.Base/FLY.Thick.Base.UI/WdPassword.xaml
@@ -15,9 +15,9 @@
             </ResourceDictionary.MergedDictionaries>
         </ResourceDictionary>
     </Window.Resources>
-
-            <Grid TextBlock.FontSize="24" TextBlock.FontStyle="Normal" >
-                <StackPanel Margin="5,20">
+    <Grid TextBlock.FontSize="24" TextBlock.FontStyle="Normal" >
+        <StackPanel Margin="5,20">
+            <TextBlock x:Name="tbMsg" Margin="5,5,5,30" TextWrapping="Wrap" Text="我是提示信息,平时被隐藏!!!" MaxWidth="450" />
             <Grid>
                 <Grid.ColumnDefinitions>
                     <ColumnDefinition Width="auto"/>
@@ -30,7 +30,7 @@
                 <StackPanel Margin="{StaticResource ControlMargin}" Grid.Column="1">
                     <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="请输入密码" />
                     <StackPanel Orientation="Horizontal">
-                       <PasswordBox x:Name="passwordbox" Margin="{StaticResource ControlMargin}"
+                        <PasswordBox x:Name="passwordbox" Margin="{StaticResource ControlMargin}"
                              Controls:TextBoxHelper.Watermark="请输入密码"
                              Style="{StaticResource  MahApps.Styles.PasswordBox.Win8}" MinWidth="300"/>
                         <Button Style="{StaticResource Styles.Button.Icon}" Click="ButtonOSK_Click" >
@@ -40,12 +40,8 @@
                 </StackPanel>
 
             </Grid>
-
-
-
-
             <Button Style="{StaticResource ButtonStyle2}" Content="确定"  Width="Auto" Margin="{StaticResource ControlMargin}" Click="button_apply_Click" />
-                </StackPanel>
-            </Grid>
+        </StackPanel>
+    </Grid>
 
 </flyctrllib:WindowBigClose>
diff --git a/Project.FLY.Thick.Base/FLY.Thick.Base.UI/WdPassword.xaml.cs b/Project.FLY.Thick.Base/FLY.Thick.Base.UI/WdPassword.xaml.cs
index 2c94b415d83cb4936088954a9b743a385fcb0f1c..a14465e828c6b6778788f3d27b4d1778ab95f406 100644
--- a/Project.FLY.Thick.Base/FLY.Thick.Base.UI/WdPassword.xaml.cs
+++ b/Project.FLY.Thick.Base/FLY.Thick.Base.UI/WdPassword.xaml.cs
@@ -28,11 +28,13 @@ namespace FLY.Thick.Base.UI
         {
             InitializeComponent();
         }
-        public void Init(PasswordAuthorize passwordAuthorize, int level) 
+        public void Init(PasswordAuthorize passwordAuthorize, int level, string msg=null) 
         {
             this.passwordAuthorize = passwordAuthorize;
             this.Level = level;
+            this.Msg = msg;
         }
+        string Msg = null;
         /// <summary>
         /// 密码级别
         /// </summary>
@@ -52,13 +54,24 @@ namespace FLY.Thick.Base.UI
             return Authorize(uiName, out int pwLv);
         }
 
+        /// <summary>
+        /// 
+        /// </summary>
+        /// <param name="uiName"></param>
+        /// <returns></returns>
+        public static bool Authorize(string uiName, string msg)
+        {
+            return Authorize(uiName, out int pwLv, msg);
+        }
+
+
         /// <summary>
         /// 
         /// </summary>
         /// <param name="uiName">界面</param>
         /// <param name="pwLv">当密码正确时,密码的级别</param>
         /// <returns></returns>
-        public static bool Authorize(string uiName, out int pwLv)
+        public static bool Authorize(string uiName, out int pwLv, string msg=null)
         {
             pwLv = 0;
             //从容器获取
@@ -72,7 +85,7 @@ namespace FLY.Thick.Base.UI
                 return true;
 
             WdPassword w = new WdPassword();
-            w.Init(passwordAuthorize, level);
+            w.Init(passwordAuthorize, level, msg);
             w.Owner = Application.Current.MainWindow;
             bool ret = (bool)w.ShowDialog();
             pwLv = w.PwLv;
@@ -160,6 +173,15 @@ namespace FLY.Thick.Base.UI
             //从容器获取
             //this.DataContext = this;
             togglebutton_keep5min.DataContext = mPwKeep;
+
+            if (string.IsNullOrEmpty(Msg))
+            {
+                tbMsg.Visibility = Visibility.Collapsed;
+            }
+            else {
+                tbMsg.Text = Msg;
+            }
+
             if (mPwKeep.GetPSK(out string psk))
             {
                 passwordbox.Password = psk;
diff --git a/Project.SQLiteHelper/SQLiteHelper/SQLiteDbContext.cs b/Project.SQLiteHelper/SQLiteHelper/SQLiteDbContext.cs
index f50daef49f05bc1897de926665d289ca6008bf14..33fdc23469000175da9bf7d5bd23a50dcb2b6c24 100644
--- a/Project.SQLiteHelper/SQLiteHelper/SQLiteDbContext.cs
+++ b/Project.SQLiteHelper/SQLiteHelper/SQLiteDbContext.cs
@@ -331,9 +331,7 @@ namespace SQLite
                 return;//no datas
 
             DateTime curr_month = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1);
-            int curr_total_month = curr_month.Year * 12 + curr_month.Month;
-            int limit_total_month = curr_total_month - month;
-            DateTime limit_month = new DateTime( limit_total_month/12, limit_total_month % 12, 1);
+            DateTime limit_month = curr_month.AddMonths(-month);
             DateTime start_month = firstTimes.Min();
             start_month = new DateTime(start_month.Year, start_month.Month, 1);
             if (start_month < limit_month)