Code rearrange for services and charting
This commit is contained in:
@@ -8,10 +8,10 @@ namespace LeafWeb.Core.Charter
|
|||||||
{
|
{
|
||||||
public static class CurveDataConverter
|
public static class CurveDataConverter
|
||||||
{
|
{
|
||||||
public static IEnumerable<CurveData> Convert(IEnumerable<LeafGasComparison> cntrlComparison)
|
public static IEnumerable<CurveData> Convert(IEnumerable<LeafGasComparison> leafGasComparison)
|
||||||
{
|
{
|
||||||
var comparisonGroups =
|
var comparisonGroups =
|
||||||
from comparison in cntrlComparison
|
from comparison in leafGasComparison
|
||||||
group comparison by comparison.CurveID into curves
|
group comparison by comparison.CurveID into curves
|
||||||
select new
|
select new
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ using System.Web.UI.WebControls;
|
|||||||
using LeafWeb.Core.Charter;
|
using LeafWeb.Core.Charter;
|
||||||
using LeafWeb.Core.Entities;
|
using LeafWeb.Core.Entities;
|
||||||
using LeafWeb.Core.Parsers;
|
using LeafWeb.Core.Parsers;
|
||||||
using LeafWeb.Web.Charter;
|
using LeafWeb.Web.Services;
|
||||||
using LeafWeb.Web.ViewModels.LeafCharter;
|
using LeafWeb.Web.ViewModels.LeafCharter;
|
||||||
|
|
||||||
namespace LeafWeb.Web.Controllers
|
namespace LeafWeb.Web.Controllers
|
||||||
@@ -80,7 +80,7 @@ namespace LeafWeb.Web.Controllers
|
|||||||
|
|
||||||
private IEnumerable<Bitmap> GetChartBitmaps(CurveData curveData)
|
private IEnumerable<Bitmap> GetChartBitmaps(CurveData curveData)
|
||||||
{
|
{
|
||||||
var charts = LeafWebCharter.ProduceCharts(curveData);
|
var charts = LeafGasCharter.ProduceCharts(curveData);
|
||||||
|
|
||||||
foreach (var chart in charts)
|
foreach (var chart in charts)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ using Hangfire;
|
|||||||
using Microsoft.Owin;
|
using Microsoft.Owin;
|
||||||
using LeafWeb.Web;
|
using LeafWeb.Web;
|
||||||
using LeafWeb.Web.Services;
|
using LeafWeb.Web.Services;
|
||||||
|
using LeafWeb.Web.Services.PiscalQueue;
|
||||||
using Owin;
|
using Owin;
|
||||||
using ConfigurationManager = System.Configuration.ConfigurationManager;
|
using ConfigurationManager = System.Configuration.ConfigurationManager;
|
||||||
|
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ using System.Web.UI.WebControls;
|
|||||||
using LeafWeb.Core.Charter;
|
using LeafWeb.Core.Charter;
|
||||||
using LeafWeb.Core.Utility;
|
using LeafWeb.Core.Utility;
|
||||||
|
|
||||||
namespace LeafWeb.Web.Charter
|
namespace LeafWeb.Web.Services
|
||||||
{
|
{
|
||||||
public static class LeafWebCharter
|
public static class LeafGasCharter
|
||||||
{
|
{
|
||||||
private static readonly Font TitleFont = new Font(new FontFamily("Times New Roman"), 10, FontStyle.Bold);
|
private static readonly Font TitleFont = new Font(new FontFamily("Times New Roman"), 10, FontStyle.Bold);
|
||||||
private static readonly Font AxisFont = new Font(new FontFamily("Times New Roman"), 10, FontStyle.Bold);
|
private static readonly Font AxisFont = new Font(new FontFamily("Times New Roman"), 10, FontStyle.Bold);
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using LeafWeb.Core.Entities;
|
using LeafWeb.Core.Entities;
|
||||||
|
|
||||||
namespace LeafWeb.Web.Services
|
namespace LeafWeb.Web.Services.PiscalQueue
|
||||||
{
|
{
|
||||||
public class FinishComplete : PiscalQueueWorker
|
public class FinishComplete : PiscalQueueWorker
|
||||||
{
|
{
|
||||||
@@ -7,7 +7,7 @@ using LeafWeb.Core.Remote;
|
|||||||
using NLog;
|
using NLog;
|
||||||
using Polly;
|
using Polly;
|
||||||
|
|
||||||
namespace LeafWeb.Web.Services
|
namespace LeafWeb.Web.Services.PiscalQueue
|
||||||
{
|
{
|
||||||
public abstract class PiscalQueueBase : IDisposable
|
public abstract class PiscalQueueBase : IDisposable
|
||||||
{
|
{
|
||||||
@@ -4,7 +4,7 @@ using System.Threading;
|
|||||||
using LeafWeb.Core.Entities;
|
using LeafWeb.Core.Entities;
|
||||||
using LeafWeb.Core.Remote;
|
using LeafWeb.Core.Remote;
|
||||||
|
|
||||||
namespace LeafWeb.Web.Services
|
namespace LeafWeb.Web.Services.PiscalQueue
|
||||||
{
|
{
|
||||||
public class PiscalQueueManager : PiscalQueueBase
|
public class PiscalQueueManager : PiscalQueueBase
|
||||||
{
|
{
|
||||||
@@ -2,7 +2,7 @@ using System;
|
|||||||
using LeafWeb.Core.Entities;
|
using LeafWeb.Core.Entities;
|
||||||
using LeafWeb.Core.Remote;
|
using LeafWeb.Core.Remote;
|
||||||
|
|
||||||
namespace LeafWeb.Web.Services
|
namespace LeafWeb.Web.Services.PiscalQueue
|
||||||
{
|
{
|
||||||
public abstract class PiscalQueueWorker : PiscalQueueBase
|
public abstract class PiscalQueueWorker : PiscalQueueBase
|
||||||
{
|
{
|
||||||
@@ -3,7 +3,7 @@ using System.Configuration;
|
|||||||
using LeafWeb.Core.Entities;
|
using LeafWeb.Core.Entities;
|
||||||
using LeafWeb.Core.Remote;
|
using LeafWeb.Core.Remote;
|
||||||
|
|
||||||
namespace LeafWeb.Web.Services
|
namespace LeafWeb.Web.Services.PiscalQueue
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Thin layer over PiscalClient to translate Core entities to Piscal objects
|
/// Thin layer over PiscalClient to translate Core entities to Piscal objects
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using LeafWeb.Core.Entities;
|
using LeafWeb.Core.Entities;
|
||||||
|
|
||||||
namespace LeafWeb.Web.Services
|
namespace LeafWeb.Web.Services.PiscalQueue
|
||||||
{
|
{
|
||||||
public class StartPending : PiscalQueueWorker
|
public class StartPending : PiscalQueueWorker
|
||||||
{
|
{
|
||||||
+7
-7
@@ -960,7 +960,7 @@
|
|||||||
<Compile Include="Backload\Controller\BackloadController.obsolete.cs" />
|
<Compile Include="Backload\Controller\BackloadController.obsolete.cs" />
|
||||||
<Compile Include="Backload\Helper\ResultCreator.Classic.cs" />
|
<Compile Include="Backload\Helper\ResultCreator.Classic.cs" />
|
||||||
<Compile Include="Backload\Helper\ResultCreator.cs" />
|
<Compile Include="Backload\Helper\ResultCreator.cs" />
|
||||||
<Compile Include="Charter\LeafWebCharter.cs" />
|
<Compile Include="Services\LeafGasCharter.cs" />
|
||||||
<Compile Include="Controllers\ControllerBase.cs" />
|
<Compile Include="Controllers\ControllerBase.cs" />
|
||||||
<Compile Include="Controllers\FluxnetSiteController.cs" />
|
<Compile Include="Controllers\FluxnetSiteController.cs" />
|
||||||
<Compile Include="Controllers\LeafCharterController.cs" />
|
<Compile Include="Controllers\LeafCharterController.cs" />
|
||||||
@@ -973,13 +973,13 @@
|
|||||||
<Compile Include="Attributes\HttpParamActionAttribute.cs" />
|
<Compile Include="Attributes\HttpParamActionAttribute.cs" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
<Compile Include="Services\EmailNotificationService.cs" />
|
<Compile Include="Services\EmailNotificationService.cs" />
|
||||||
<Compile Include="Services\PiscalQueueBase.cs" />
|
<Compile Include="Services\PiscalQueue\PiscalQueueBase.cs" />
|
||||||
<Compile Include="Services\PiscalQueueManager.cs" />
|
<Compile Include="Services\PiscalQueue\PiscalQueueManager.cs" />
|
||||||
<Compile Include="Services\PiscalQueueWorker.cs" />
|
<Compile Include="Services\PiscalQueue\PiscalQueueWorker.cs" />
|
||||||
<Compile Include="Services\PiscalService.cs" />
|
<Compile Include="Services\PiscalQueue\PiscalService.cs" />
|
||||||
<Compile Include="HangfireStartup.cs" />
|
<Compile Include="HangfireStartup.cs" />
|
||||||
<Compile Include="Services\FinishComplete.cs" />
|
<Compile Include="Services\PiscalQueue\FinishComplete.cs" />
|
||||||
<Compile Include="Services\StartPending.cs" />
|
<Compile Include="Services\PiscalQueue\StartPending.cs" />
|
||||||
<Compile Include="Utility\MarkdownHelper.cs" />
|
<Compile Include="Utility\MarkdownHelper.cs" />
|
||||||
<Compile Include="Utility\Validation.cs" />
|
<Compile Include="Utility\Validation.cs" />
|
||||||
<Compile Include="ViewModels\LeafCharter\LeafCharterViewModel.cs" />
|
<Compile Include="ViewModels\LeafCharter\LeafCharterViewModel.cs" />
|
||||||
|
|||||||
Reference in New Issue
Block a user