Add project files.
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
using Sarand.Core.Base;
|
||||
using Sarand.Core.ItemOptions;
|
||||
using Sarand.Core.Procs;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Sarand.OperationsMgr.Win.Consoles
|
||||
{
|
||||
//=======================================================================
|
||||
public class OpnProcessConsole
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// I n t e r f a c e O p t i o n D e f i n i t i o n s
|
||||
//-------------------------------------------------------------------
|
||||
public static List<SaItemOptionDfn> GetInterfaceItemOptionDfns (SaInterfaceCategory interfaceCategory, short interfaceType)
|
||||
{
|
||||
switch (interfaceCategory)
|
||||
{
|
||||
case SaInterfaceCategory.System:
|
||||
break;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// P r o c e s s i n g O p t i o n s
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// C o n f i g u r e P r o c e s s
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// P r o c e s s I n t e r f a c e
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// I n v o k e P r o c e s s D e f i n i t i o n
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Retrieve interface.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
/// <summary>
|
||||
/// Process Notificer for Process Console.
|
||||
/// </summary>
|
||||
class OpnProcessConsoleNotifier : ISacsProcessNotifier
|
||||
{
|
||||
public void OnStartProcess ()
|
||||
{
|
||||
}
|
||||
public void OnEndProcess ()
|
||||
{
|
||||
}
|
||||
public void SetProgressInfo (List<string> progressInfo)
|
||||
{
|
||||
}
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
using Sarand.OperationsMgr.Core.App;
|
||||
using Sarand.OperationsMgr.Win.Procs;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Sarand.OperationsMgr.Win.Interfaces
|
||||
{
|
||||
//=======================================================================
|
||||
public abstract class OpnInterfaceProcess : OpnProcess_Base
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Configuration.
|
||||
public enum InterfaceProcessCreation
|
||||
{
|
||||
None,
|
||||
OnStartProcessing,
|
||||
OnLogMessage,
|
||||
}
|
||||
public new class Config : OpnProcess_Base.Config
|
||||
{
|
||||
protected Config (OpnUserContext userContext) : base(userContext)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Definitions.
|
||||
/// <summary>Interface processing groups - used for popup 'Process Interface' form.</summary>
|
||||
public enum InterfaceProcessGroup
|
||||
{
|
||||
}
|
||||
/// <summary>Interface configuration parameters.</summary>
|
||||
public class InterfaceParams : OpnProcess_Base.ProcessParams
|
||||
{
|
||||
}
|
||||
/// <summary>Process parameters - processing control properties.</summary>
|
||||
public new class ProcessParams : OpnProcess_Base.ProcessParams
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Static initialisation.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
protected OpnInterfaceProcess (Config config) : base(config)
|
||||
{
|
||||
}
|
||||
protected override void Dispose (bool disposing)
|
||||
{
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Validate configuration.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// P r o c e s s i n g
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// I t e m O p t i o n D e f i n i t i o n s
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// P r o c e s s i n g E v e n t s
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// I n t e r f a c e P r o c e s s
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// I n t e r f a c e D a t a I t e m s
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// A r c h i v e F i l e
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
using Sarand.OperationsMgr.Core.App;
|
||||
using Sarand.Win.Procs;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Sarand.OperationsMgr.Win.Procs
|
||||
{
|
||||
//=======================================================================
|
||||
public abstract partial class OpnProcess_Base : SacsWinProcess
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Configuration.
|
||||
public enum DataFormatType
|
||||
{
|
||||
Unknown,
|
||||
Flat,
|
||||
Csv,
|
||||
Excel,
|
||||
Word,
|
||||
}
|
||||
public new class Config : SacsWinProcess.Config
|
||||
{
|
||||
protected Config (OpnUserContext userContext) : base()
|
||||
{
|
||||
UserContext = userContext;
|
||||
}
|
||||
public OpnUserContext UserContext { get; }
|
||||
/// <summary>Specific type of data item being handled.</summary>
|
||||
//public Opn.ItemType ItemType { get; set; } = Opn.ItemType.Unknown;
|
||||
/// <summary>Format to import/export data.</summary>
|
||||
public DataFormatType DataFormat { get; set; } = DataFormatType.Unknown;
|
||||
/// <summary>Application managers and consoles - to share parent's internals.</summary>
|
||||
public OpnInternals Internals { get; set; }
|
||||
/// <summary>Extended logging messages.</summary>
|
||||
public bool EnhancedLogging { get; set; }
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Definitions.
|
||||
/// <summary>Process parameters - processing control properties</summary>
|
||||
public class ProcessParams
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
private Config config;
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
protected OpnProcess_Base (Config config) : base(config)
|
||||
{
|
||||
this.config = config;
|
||||
}
|
||||
protected override void Dispose (bool disposing)
|
||||
{
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// P r o c e s s i n g
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// P r o c e s s i n g O p t i o n s
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// P r o c e s s i n g S t a t i s t i c s
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
using Sarand.Core.Base;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Sarand.OperationsMgr.Win.Reports
|
||||
{
|
||||
//==========================================================================
|
||||
public class OpnPrint_Footer : SacsDisposable
|
||||
{
|
||||
//----------------------------------------------------------------------
|
||||
// Configuration.
|
||||
public class Config
|
||||
{
|
||||
public Graphics Graphics { get; set; }
|
||||
public Rectangle PrintArea { get; set; }
|
||||
public int PageNumber { get; set; } = 0;
|
||||
public int PageCount { get; set; } = 0;
|
||||
public float PosY { get; set; } = 0.0f;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// Data members.
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// Construction.
|
||||
public OpnPrint_Footer ()
|
||||
{
|
||||
}
|
||||
protected override void Dispose (bool disposing)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// Initialise tools.
|
||||
private void InitialiseTools (Config config)
|
||||
{
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// Project info printing.
|
||||
public void PrintFooter (Config config)
|
||||
{
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
}
|
||||
//==========================================================================
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
using Sarand.Core.Dbas.Base;
|
||||
using Sarand.Core.Procs;
|
||||
using Sarand.OperationsMgr.Core.App;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Sarand.OperationsMgr.Win.Reports
|
||||
{
|
||||
//==========================================================================
|
||||
public abstract class OpnReport : SacsReport
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Configuration.
|
||||
public new class Config : SacsReport.Config
|
||||
{
|
||||
protected Config (OpnUserContext userContext, DbUpdateInfo dbUpdateInfo)
|
||||
{
|
||||
UserContext = userContext;
|
||||
DbUpdateInfo = dbUpdateInfo;
|
||||
}
|
||||
public OpnUserContext UserContext { get; }
|
||||
public DbUpdateInfo DbUpdateInfo { get; }
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
protected OpnReport (Config config) : base(config)
|
||||
{
|
||||
}
|
||||
protected override void Dispose (bool disposing)
|
||||
{
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
}
|
||||
//==========================================================================
|
||||
}
|
||||
Reference in New Issue
Block a user