68 lines
1.7 KiB
C#
68 lines
1.7 KiB
C#
|
using Api.Framework.SDK;
|
|||
|
using Api.Framework.Tools;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.ComponentModel;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace DataDocking
|
|||
|
{
|
|||
|
[Config(Name = "插件-数据对接-配置")]
|
|||
|
public class Config
|
|||
|
{
|
|||
|
public Config()
|
|||
|
{
|
|||
|
|
|||
|
#region 自动备份
|
|||
|
this.Auto_Bak_OnOff = true;
|
|||
|
this.Auto_Bak_Path = Util.MapPath($"File\\备份");
|
|||
|
this.Auto_Bak_Time = DateTime.Parse("2019-5-15 23:59:59");
|
|||
|
this.Auto_Bak_Day = 1;
|
|||
|
this.Lately_Bak_Time = DateTime.Parse("2019-5-15 00:00:00");
|
|||
|
this.Is_Bak_Send_Email = false;
|
|||
|
#endregion
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
#region 自动备份
|
|||
|
/// <summary>
|
|||
|
/// 自动备份开关
|
|||
|
/// </summary>
|
|||
|
[Browsable(false)]
|
|||
|
public bool Auto_Bak_OnOff { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 自动备份路径
|
|||
|
/// </summary>
|
|||
|
[Browsable(false)]
|
|||
|
public string Auto_Bak_Path { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 自动备份时间
|
|||
|
/// </summary>
|
|||
|
[Browsable(false)]
|
|||
|
public DateTime Auto_Bak_Time { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 自动备份间隔
|
|||
|
/// </summary>
|
|||
|
[Browsable(false)]
|
|||
|
public int Auto_Bak_Day { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 自动备份间隔
|
|||
|
/// </summary>
|
|||
|
[Browsable(false)]
|
|||
|
public bool Is_Bak_Send_Email { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 最近自动备份日期(记录)
|
|||
|
/// </summary>
|
|||
|
public DateTime Lately_Bak_Time { get; set; }
|
|||
|
|
|||
|
#endregion
|
|||
|
}
|
|||
|
}
|