2018-05-22 10:11:50 +02:00
|
|
|
|
using System;
|
|
|
|
|
using Core.Main;
|
|
|
|
|
using Core.Main.DataObjects;
|
|
|
|
|
|
|
|
|
|
namespace Monitor.Pages {
|
|
|
|
|
public class DashboardTopModel : _Internal.BasePageModelSecureAJAX {
|
|
|
|
|
public ProfitTrailerData PTData = null;
|
|
|
|
|
public DateTimeOffset DateTimeNow = Constants.confMinDate;
|
2019-10-15 15:05:53 +02:00
|
|
|
|
|
2018-05-22 10:11:50 +02:00
|
|
|
|
public void OnGet() {
|
|
|
|
|
// Initialize Config
|
|
|
|
|
base.Init();
|
|
|
|
|
|
|
|
|
|
BindData();
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-15 15:05:53 +02:00
|
|
|
|
public double TotalBagCost = 0;
|
|
|
|
|
public double TotalBagValue = 0;
|
2018-05-22 10:11:50 +02:00
|
|
|
|
private void BindData() {
|
2019-10-13 22:08:48 +02:00
|
|
|
|
PTData = this.PtDataObject;
|
2018-05-22 10:11:50 +02:00
|
|
|
|
|
|
|
|
|
// Convert local offset time to UTC
|
|
|
|
|
TimeSpan offsetTimeSpan = TimeSpan.Parse(PTMagicConfiguration.GeneralSettings.Application.TimezoneOffset.Replace("+", ""));
|
|
|
|
|
DateTimeNow = DateTimeOffset.UtcNow.ToOffset(offsetTimeSpan);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|