Add project files.
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6" />
|
||||
</startup>
|
||||
</configuration>
|
||||
@@ -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("SaOperationsMgrService")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("SaOperationsMgrService")]
|
||||
[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("cf3ef668-a2e2-43a9-b341-9be4dc6dc6af")]
|
||||
|
||||
// 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,126 @@
|
||||
<?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>{CF3EF668-A2E2-43A9-B341-9BE4DC6DC6AF}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<RootNamespace>Sarand.OperationsMgr</RootNamespace>
|
||||
<AssemblyName>SaOperationsMgrService</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<Deterministic>true</Deterministic>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<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' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<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.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.ServiceProcess" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Service\App\OpnServiceApp.cs" />
|
||||
<Compile Include="Service\App\OpnServiceConfig.cs" />
|
||||
<Compile Include="Service\App\OpnSessionContext_Service.cs" />
|
||||
<Compile Include="Service\App\OpnSystem_Service.cs" />
|
||||
<Compile Include="Service\App\SaOperationsMgrService.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Service\App\SaOperationsMgrService.Designer.cs">
|
||||
<DependentUpon>SaOperationsMgrService.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Service\App\Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Service\Consoles\OpnCodeTypeConsole_Service.cs" />
|
||||
<Compile Include="Service\Consoles\OpnInterfaceConsole_Service.cs" />
|
||||
<Compile Include="Service\Consoles\OpnItemOptionConsole_Service.cs" />
|
||||
<Compile Include="Service\Consoles\OpnReferenceDataConsole_Service.cs" />
|
||||
<Compile Include="Service\Consoles\OpnSecurityConsole_Service.cs" />
|
||||
<Compile Include="Service\Consoles\OpnUpdateLogConsole_Service.cs" />
|
||||
<Compile Include="Service\Data\OpnHttpRequestData.cs" />
|
||||
<Compile Include="Service\Data\OpnHttpResponseData.cs" />
|
||||
<Compile Include="Service\Data\OpnRequestConfigData.cs" />
|
||||
<Compile Include="Service\Data\OpnWebServiceData.cs" />
|
||||
<Compile Include="Service\Handlers\OpnHttpRequestHandler.cs" />
|
||||
<Compile Include="Service\Handlers\OpnWebServiceRequestHandler.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<WCFMetadata Include="Connected Services\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Resources\ico\" />
|
||||
<Folder Include="Service\Action\" />
|
||||
</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\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>
|
||||
<ProjectReference Include="..\SaOpnMgrProcs\SaOpnMgrProcs.csproj">
|
||||
<Project>{12783700-f1ba-4d24-9b0e-9c8a7c5ff621}</Project>
|
||||
<Name>SaOpnMgrProcs</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\SaOpnMgrWinDbas\SaOpnMgrWinDbas.csproj">
|
||||
<Project>{69618253-2fbf-4e3d-9e33-a4ff262b8989}</Project>
|
||||
<Name>SaOpnMgrWinDbas</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<PropertyGroup>
|
||||
<PostBuildEvent>if not exist "$(SolutionDir)..\Bin" (
|
||||
echo Creating '$(SolutionDir)..\Bin' folder.
|
||||
mkdir "$(SolutionDir)..\Bin"
|
||||
)
|
||||
if not exist "$(SolutionDir)..\Bin\Service" (
|
||||
echo Creating '$(SolutionDir)..\Bin\Service' folder.
|
||||
mkdir "$(SolutionDir)..\Bin\Service"
|
||||
)
|
||||
if not exist "$(SolutionDir)..\Bin\Service\$(ConfigurationName)" (
|
||||
echo Creating '$(SolutionDir)..\Bin\Service\$(ConfigurationName)' folder.
|
||||
mkdir "$(SolutionDir)..\Bin\Service\$(ConfigurationName)"
|
||||
)
|
||||
copy /y "$(TargetDir)*.dll" "$(SolutionDir)..\Bin\Service\$(ConfigurationName)\"
|
||||
copy /y "$(TargetDir)*.exe" "$(SolutionDir)..\Bin\Service\$(ConfigurationName)\"</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,61 @@
|
||||
using Sarand.Core.Base;
|
||||
using Sarand.OperationsMgr.Core.App;
|
||||
using Sarand.Win.Dbas.Base;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Sarand.OperationsMgr.Service.App
|
||||
{
|
||||
//======================================================================
|
||||
public class OpnServiceApp : SacsStateItem, IDisposable
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
private static OpnServiceApp app;
|
||||
private PropertySet properties;
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public OpnServiceApp (String initialLogMessage)
|
||||
{
|
||||
}
|
||||
public void Dispose ()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
public OpnSessionContext SessionContext { get; }
|
||||
public SacsDatabase Database { get; private set; }
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// I n s t a n c e
|
||||
//-------------------------------------------------------------------
|
||||
public static OpnServiceApp GetInstance ()
|
||||
{
|
||||
return app;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// G l o b a l s
|
||||
//-------------------------------------------------------------------
|
||||
private void InitGlobals ()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
private void DeinitGlobals ()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// D a t a b a s e
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//======================================================================
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
using Sarand.Core.Base;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Sarand.OperationsMgr.Service.App
|
||||
{
|
||||
//=======================================================================
|
||||
public class OpnServiceConfig
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
public class ProcessSchedule
|
||||
{
|
||||
public int TimerMins { get; set; } = 0;
|
||||
public String TimeFrom { get; set; } = "";
|
||||
public String TimeTo { get; set; } = "";
|
||||
}
|
||||
public enum WebServiceType { Internal = 10, External = 20 };
|
||||
public class WebService
|
||||
{
|
||||
public WebService (WebServiceType type)
|
||||
{
|
||||
this.ServiceType = type;
|
||||
}
|
||||
public WebServiceType ServiceType { get; }
|
||||
public bool Enabled { get; set; }
|
||||
public int HttpListenerPort { get; set; } = 0;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
private static readonly String logTab = " ";
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Load configuration.
|
||||
public void LoadFromProperties (PropertySet properties)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
private void ConfigureWebService (WebService webService, PropertySet properties)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
using Sarand.OperationsMgr.Core.App;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Sarand.OperationsMgr.Service.App
|
||||
{
|
||||
//=======================================================================
|
||||
class OpnSessionContext_Service : OpnSessionContext
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public OpnSessionContext_Service (ushort sessionContentIndex) :
|
||||
base(sessionContentIndex)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using Sarand.Core.Base;
|
||||
using Sarand.OperationsMgr.Win.Dbas.App;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Sarand.OperationsMgr.Service.App
|
||||
{
|
||||
//=======================================================================
|
||||
public class OpnSystem_Service : OpnSystem_WinDbas
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public OpnSystem_Service (PropertySet properties) :
|
||||
base(properties)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.ServiceProcess;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Sarand.OperationsMgr.Service.App
|
||||
{
|
||||
//=======================================================================
|
||||
static class Program
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
/// <summary>Service entry point</summary>
|
||||
static void Main ()
|
||||
{
|
||||
ServiceBase[] ServicesToRun;
|
||||
ServicesToRun = new ServiceBase[]
|
||||
{
|
||||
new SaOperationsMgrService()
|
||||
};
|
||||
ServiceBase.Run(ServicesToRun);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
namespace Sarand.OperationsMgr.Service.App
|
||||
{
|
||||
partial class SaOperationsMgrService
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
#region Component Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent ()
|
||||
{
|
||||
components = new System.ComponentModel.Container();
|
||||
this.ServiceName = "Service1";
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using System.ServiceProcess;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Sarand.OperationsMgr.Service.App
|
||||
{
|
||||
public partial class SaOperationsMgrService : ServiceBase
|
||||
{
|
||||
public SaOperationsMgrService ()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
protected override void OnStart (string[] args)
|
||||
{
|
||||
}
|
||||
|
||||
protected override void OnStop ()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
using Sarand.OperationsMgr.App.Consoles;
|
||||
using Sarand.Win.Dbas.Base;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Sarand.OperationsMgr.Service.Consoles
|
||||
{
|
||||
//=======================================================================
|
||||
public class OpnCodeTypeConsole_Service : OpnCodeTypeConsole_Dbas
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public OpnCodeTypeConsole_Service (SacsDatabase database) :
|
||||
base(database)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Method to display Code Types dialog.
|
||||
protected override MaintainCodeTypesFunction MaintainCodeTypesFn { get { return null; } }
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
using Sarand.Core.Base;
|
||||
using Sarand.Core.Bus;
|
||||
using Sarand.Core.Dbas.Base;
|
||||
using Sarand.Core.Interfaces;
|
||||
using Sarand.Core.ItemOptions;
|
||||
using Sarand.OperationsMgr.App.Consoles;
|
||||
using Sarand.OperationsMgr.Core.App;
|
||||
using Sarand.Win.Dbas.Base;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Sarand.OperationsMgr.Service.Consoles
|
||||
{
|
||||
//=======================================================================
|
||||
public class OpnInterfaceConsole_Service : OpnInterfaceConsole_Dbas
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public OpnInterfaceConsole_Service (OpnUserContext userContext, SacsDatabase database) :
|
||||
base(userContext)
|
||||
{
|
||||
Database = database;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
internal SacsDatabase Database { get; }
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Method to display Interface management form.
|
||||
protected override MaintainInterfacesFunction MaintainInterfacesFn { get { return null; } }
|
||||
|
||||
//---------------------------------------------------------------
|
||||
// Interface item option definitions.
|
||||
public override List<SaItemOptionDfn> GetInterfaceItemOptionDfns (SaInterfaceCategory interfaceCategory, short interfaceType)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
public override List<SaItemOptionDfn> GetInterfaceItemOptionDfns (SysId interfaceId)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// I n t e r f a c e A c c e s s C o n t r o l
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
//---------------------------------------------------------------
|
||||
// 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 t e r f a c e
|
||||
//---------------------------------------------------------------
|
||||
/// <summary>Interface can only be 'processed' if it defines processing options.</summary>
|
||||
public override bool CanProcessInterface (SaInterface interfaceObj)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
/// <summary>Popup form to select options for processing interface.</summary>
|
||||
public override bool ProcessInterface (SaInterface interfaceObj, DbUpdateInfo dbUpdateInfo)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public override bool AreMultipleInterfaceInstancesAllowed (string context, SaInterfaceCategory interfaceCategory, short interfaceType)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public override bool AreMultipleActiveInterfacesAllowed (string context, SaInterfaceCategory interfaceCategory)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
using Sarand.OperationsMgr.App.Consoles;
|
||||
using Sarand.OperationsMgr.Core.App;
|
||||
using Sarand.Win.Dbas.Base;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Sarand.OperationsMgr.Service.Consoles
|
||||
{
|
||||
//=======================================================================
|
||||
public class OpnItemOptionConsole_Service : OpnItemOptionConsole_Dbas
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public OpnItemOptionConsole_Service (OpnUserContext userContext, SacsDatabase database) :
|
||||
base(database)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Method to display Security management dialog.
|
||||
protected override ShowItemOptionsDialogFunction ShowItemOptionsDialogFn { get { return null; } }
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
using Sarand.OperationsMgr.App.Consoles;
|
||||
using Sarand.OperationsMgr.Core.App;
|
||||
using Sarand.Win.Dbas.Base;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Sarand.OperationsMgr.Service.Consoles
|
||||
{
|
||||
//=======================================================================
|
||||
public class OpnReferenceDataConsole_Service : OpnReferenceDataConsole_Dbas
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public OpnReferenceDataConsole_Service (OpnUserContext userContext, SacsDatabase database) :
|
||||
base(userContext, database)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Method to display Reference Data Maintenance form.
|
||||
protected override MaintainReferenceDataFunction MaintainReferenceDataFn { get { return null; } }
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
using Sarand.Core.Bus;
|
||||
using Sarand.OperationsMgr.App.Consoles;
|
||||
using Sarand.OperationsMgr.Core.App;
|
||||
using Sarand.Win.Dbas.Base;
|
||||
using Sarand.Win.Dbas.Security;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Sarand.OperationsMgr.Service.Consoles
|
||||
{
|
||||
//=======================================================================
|
||||
public class OpnSecurityConsole_Service : OpnSecurityConsole_Dbas
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public OpnSecurityConsole_Service(OpnSessionContext sessionContext, SacsDatabase database) :
|
||||
base(database)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Security events.
|
||||
protected override bool OnLogin (SysId userId)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
protected override void OnLogout ()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Method to show User Login form.
|
||||
protected override ShowUserLoginFormFunction ShowUserLoginFormFn => throw new NotImplementedException();
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Method to display Security management form.
|
||||
protected override ShowManageSecurityDialogFunction ShowManageSecurityDialogFn => throw new NotImplementedException();
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
public override bool OnUserModified (SysId userId)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
public override bool OnSecurityGroupModified (SysId userId)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using Sarand.OperationsMgr.App.Consoles;
|
||||
using Sarand.OperationsMgr.Core.App;
|
||||
using Sarand.Win.Dbas.Base;
|
||||
using Sarand.Win.Dbas.UpdateLog;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Sarand.OperationsMgr.Service.Consoles
|
||||
{
|
||||
//=======================================================================
|
||||
public class OpnUpdateLogConsole_Service : OpnUpdateLogConsole_Dbas
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public OpnUpdateLogConsole_Service(OpnUserContext userContext, SacsDatabase database) :
|
||||
base(database)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Method to display Security management dialog.
|
||||
protected override ShowUpdateLogDialogFunction ShowUpdateLogDialogFn => throw new NotImplementedException();
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Sarand.OperationsMgr.Service.Data
|
||||
{
|
||||
//=======================================================================
|
||||
public class OpnHttpRequestData
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public OpnHttpRequestData (long instanceId, HttpListenerRequest request)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Sarand.OperationsMgr.Service.Data
|
||||
{
|
||||
//=======================================================================
|
||||
public class OpnHttpResponseData
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Utilities.
|
||||
public void Reset ()
|
||||
{
|
||||
}
|
||||
public void SetStatus (HttpStatusCode httpStatus, String description = "")
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Sarand.OperationsMgr.Service.Data
|
||||
{
|
||||
//=======================================================================
|
||||
public class OpnRequestConfigData
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Definitions.
|
||||
public class ContextData
|
||||
{
|
||||
}
|
||||
public class FilterData
|
||||
{
|
||||
}
|
||||
public class SortColumnData
|
||||
{
|
||||
}
|
||||
public class ListData
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// F i l t e r
|
||||
//-------------------------------------------------------------------
|
||||
//-------------------------------------------------------------------
|
||||
// Filter SysId lists.
|
||||
//-------------------------------------------------------------------
|
||||
// Filter StatusCat.
|
||||
//-------------------------------------------------------------------
|
||||
// Filter Results paging.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// I t e m C o l u m n s
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// S o r t C o l u m n s
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
/// <summary>
|
||||
/// Sort Column list extensions methods.
|
||||
/// </summary>
|
||||
public static class SortColumnList
|
||||
{
|
||||
/// <summary>
|
||||
/// Convert each sort column to its string representation: [ColumnName] [ASC|DESC]
|
||||
/// </summary>
|
||||
public static List<String> GetSortColumns ()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
using Sarand.Core.Base;
|
||||
using Sarand.OperationsMgr.Core.App;
|
||||
using Sarand.Win.Office.Xml;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Sarand.OperationsMgr.Service.Data
|
||||
{
|
||||
//=======================================================================
|
||||
public class OpnWebServiceData : SacsDisposable
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
private SaMsXmlDocument requestDoc = null;
|
||||
private SaMsXmlDocument responseDataDoc = null;
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public OpnWebServiceData (OpnSessionContext sessionContext)
|
||||
{
|
||||
SessionContext = sessionContext;
|
||||
}
|
||||
protected override void Dispose (bool disposing)
|
||||
{
|
||||
if (disposing)
|
||||
{
|
||||
if (requestDoc != null) requestDoc.Dispose();
|
||||
if (responseDataDoc != null) responseDataDoc.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
public OpnSessionContext SessionContext { get; }
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// R e s p o n s e D o c
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// M e s s a g e s
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Sarand.OperationsMgr.Service.Handlers
|
||||
{
|
||||
//=======================================================================
|
||||
// Ref. http://stackoverflow.com/questions/5895063/asynchronous-httplistener-problem-each-request-is-received-twice
|
||||
//=======================================================================
|
||||
public class HttpListenerCallbackState
|
||||
{
|
||||
public HttpListenerCallbackState (HttpListener listener)
|
||||
{
|
||||
}
|
||||
}
|
||||
//=======================================================================
|
||||
public class OpnHttpRequestHandler
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Configure the listener.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Start the listener.
|
||||
public void ListenAsynchronously ()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Stop the listener.
|
||||
public void StopListening ()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
private void Listen (object state)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// L i s t e n e r E v e n t s
|
||||
//-------------------------------------------------------------------
|
||||
private void ListenerCallback (IAsyncResult ar)
|
||||
{
|
||||
}
|
||||
private void HandleHttpRequest (HttpListenerContext context, long requestNumber)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
/// <summary>Intercept requests for static resources and respond with 'Not Found'.</summary>
|
||||
private bool IsStaticResourceUnavailable (HttpListenerRequest request)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
using Sarand.OperationsMgr.Service.Data;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Sarand.OperationsMgr.Service.Handlers
|
||||
{
|
||||
//=======================================================================
|
||||
public class OpnWebServiceRequestHandler
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Definitions.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public OpnWebServiceRequestHandler ()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Utilities.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// W e b S e r v i c e R e q u e s t
|
||||
//-------------------------------------------------------------------
|
||||
public bool DoWebServiceRequest (long requestNumber, HttpListenerContext context)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// H a n d l e R e q u e s t
|
||||
//-------------------------------------------------------------------
|
||||
private void HandleRequest (OpnHttpRequestData requestData, String logPrefix)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<packages>
|
||||
<package id="CsvHelper" version="12.1.2" targetFramework="net46" />
|
||||
<package id="System.ValueTuple" version="4.4.0" targetFramework="net46" />
|
||||
</packages>
|
||||
Reference in New Issue
Block a user