57 lines
1.4 KiB
C#
57 lines
1.4 KiB
C#
namespace YLErp.Jobs.Configs
|
|
{
|
|
public class GuoYuanCalcVolJobConfig : Dictionary<string, string>
|
|
{
|
|
public DateTime? StartDate
|
|
{
|
|
get
|
|
{
|
|
string key = nameof(StartDate);
|
|
DateTime? value = null;
|
|
if (this.ContainsKey(key))
|
|
{
|
|
value = DateTime.Parse(this[key]);
|
|
}
|
|
return value;
|
|
}
|
|
set
|
|
{
|
|
string key = nameof(StartDate);
|
|
if (this.ContainsKey(key))
|
|
{
|
|
this[key] = value.ToString();
|
|
}
|
|
else
|
|
{
|
|
this.Add(key, value.ToString());
|
|
}
|
|
}
|
|
}
|
|
public DateTime? EndDate
|
|
{
|
|
get
|
|
{
|
|
string key = nameof(EndDate);
|
|
DateTime? value = null;
|
|
if (this.ContainsKey(key))
|
|
{
|
|
value = DateTime.Parse(this[key]);
|
|
}
|
|
return value;
|
|
}
|
|
set
|
|
{
|
|
string key = nameof(EndDate);
|
|
if (this.ContainsKey(key))
|
|
{
|
|
this[key] = value.ToString();
|
|
}
|
|
else
|
|
{
|
|
this.Add(key, value.ToString());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|