Add project files.
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("SaOpnMgrProcs")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("SaOpnMgrProcs")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2020")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("12783700-f1ba-4d24-9b0e-9c8a7c5ff621")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
@@ -0,0 +1,79 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{12783700-F1BA-4D24-9B0E-9C8A7C5FF621}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Sarand.OperationsMgr</RootNamespace>
|
||||
<AssemblyName>SaOpnMgrProcs</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<Deterministic>true</Deterministic>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Win\Consoles\OpnProcessConsole.cs" />
|
||||
<Compile Include="Win\Interfaces\OpnInterfaceProcess.cs" />
|
||||
<Compile Include="Win\Procs\OpnProcess_Base.cs" />
|
||||
<Compile Include="Win\Reports\OpnPrint_Footer.cs" />
|
||||
<Compile Include="Win\Reports\OpnReport.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Win\DataHelpers\" />
|
||||
<Folder Include="Win\Utils\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\..\Common-C#\Workspace\SacsCoreBase\SacsCoreBase.csproj">
|
||||
<Project>{3311b502-54f1-457a-9108-6f33c83b9eb1}</Project>
|
||||
<Name>SacsCoreBase</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\Common-C#\Workspace\SacsWinDbas\SacsWinDbas.csproj">
|
||||
<Project>{86e11448-66df-4eb6-922f-c84e220608ad}</Project>
|
||||
<Name>SacsWinDbas</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\Common-C#\Workspace\SacsWinForms\SacsWinForms.csproj">
|
||||
<Project>{18353651-1f1a-4b23-91fb-bdb9aa56bc57}</Project>
|
||||
<Name>SacsWinForms</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\Common-C#\Workspace\SacsWinOffice\SacsWinOffice.csproj">
|
||||
<Project>{e9106099-66b4-42db-af28-c34cf1aff2aa}</Project>
|
||||
<Name>SacsWinOffice</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\SaOpnMgrCore\SaOpnMgrCore.csproj">
|
||||
<Project>{9eac4dd6-d3c8-4966-b1be-b0d2ce17f012}</Project>
|
||||
<Name>SaOpnMgrCore</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
@@ -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