This commit is contained in:
BIN
utils/AyaImport/App.ico
Normal file
BIN
utils/AyaImport/App.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
62
utils/AyaImport/AssemblyInfo.cs
Normal file
62
utils/AyaImport/AssemblyInfo.cs
Normal file
@@ -0,0 +1,62 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
//
|
||||
// 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("AyaNova CE Importer")]
|
||||
[assembly: AssemblyDescription("AyaNova service management software")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("Ground Zero Tech-Works Inc.")]
|
||||
[assembly: AssemblyProduct("AyaNova")]
|
||||
[assembly: AssemblyCopyright("Copyright 2006-2018 Ground Zero Tech-Works Inc. All rights reserved.")]
|
||||
[assembly: AssemblyTrademark("AyaNova® is either a registered trademark or trademark of Ground Zero Tech-Works Inc. in the United States and/or other countries.")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
//
|
||||
// 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 Revision and Build Numbers
|
||||
// by using the '*' as shown below:
|
||||
|
||||
[assembly: AssemblyVersion("7.5.0.0")]
|
||||
|
||||
//
|
||||
// In order to sign your assembly you must specify a key to use. Refer to the
|
||||
// Microsoft .NET Framework documentation for more information on assembly signing.
|
||||
//
|
||||
// Use the attributes below to control which key is used for signing.
|
||||
//
|
||||
// Notes:
|
||||
// (*) If no key is specified, the assembly is not signed.
|
||||
// (*) KeyName refers to a key that has been installed in the CryptoService
|
||||
// Provider (CSP) on your machine. KeyFile refers to a file which contains
|
||||
// a key.
|
||||
// (*) If the KeyFile and the KeyName values are both specified, the
|
||||
// following processing occurs:
|
||||
// (1) If the KeyName can be found in the CSP, that key is used.
|
||||
// (2) If the KeyName does not exist and the KeyFile does exist, the key
|
||||
// in the KeyFile is installed into the CSP and used.
|
||||
// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
|
||||
// When specifying the KeyFile, the location of the KeyFile should be
|
||||
// relative to the project output directory which is
|
||||
// %Project Directory%\obj\<configuration>. For example, if your KeyFile is
|
||||
// located in the project directory, you would specify the AssemblyKeyFile
|
||||
// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
|
||||
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
|
||||
// documentation for more information on this.
|
||||
//
|
||||
//[assembly: AssemblyDelaySign(false)]
|
||||
//[assembly: AssemblyKeyFile("")]
|
||||
//[assembly: AssemblyKeyName("")]
|
||||
//[assembly: AssemblyDelaySign(false)]
|
||||
//[assembly: AssemblyKeyFile("..\\..\\..\\..\\keys\\AyaNova.snk")]
|
||||
//[assembly: AssemblyKeyName("")]
|
||||
[assembly: AssemblyFileVersionAttribute("7.5.0.0")]
|
||||
236
utils/AyaImport/AyaImport.csproj
Normal file
236
utils/AyaImport/AyaImport.csproj
Normal file
@@ -0,0 +1,236 @@
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
|
||||
<PropertyGroup>
|
||||
<ProjectType>Local</ProjectType>
|
||||
<ProductVersion>9.0.21022</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{3A426361-1480-49A3-B596-53ABB98087F9}</ProjectGuid>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ApplicationIcon>App.ico</ApplicationIcon>
|
||||
<AssemblyKeyContainerName>
|
||||
</AssemblyKeyContainerName>
|
||||
<AssemblyName>AyaImport</AssemblyName>
|
||||
<AssemblyOriginatorKeyFile>..\..\keys\AyaNova.snk</AssemblyOriginatorKeyFile>
|
||||
<DefaultClientScript>JScript</DefaultClientScript>
|
||||
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
|
||||
<DefaultTargetSchema>IE50</DefaultTargetSchema>
|
||||
<DelaySign>false</DelaySign>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<RootNamespace>AyaImport</RootNamespace>
|
||||
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
|
||||
<StartupObject>
|
||||
</StartupObject>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
<UpgradeBackupLocation>
|
||||
</UpgradeBackupLocation>
|
||||
<SignAssembly>true</SignAssembly>
|
||||
<OldToolsVersion>3.5</OldToolsVersion>
|
||||
<ApplicationManifest>AyaImport.exe.manifest</ApplicationManifest>
|
||||
<PublishUrl>publish\</PublishUrl>
|
||||
<Install>true</Install>
|
||||
<InstallFrom>Disk</InstallFrom>
|
||||
<UpdateEnabled>false</UpdateEnabled>
|
||||
<UpdateMode>Foreground</UpdateMode>
|
||||
<UpdateInterval>7</UpdateInterval>
|
||||
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
|
||||
<UpdatePeriodically>false</UpdatePeriodically>
|
||||
<UpdateRequired>false</UpdateRequired>
|
||||
<MapFileExtensions>true</MapFileExtensions>
|
||||
<ApplicationRevision>0</ApplicationRevision>
|
||||
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
|
||||
<IsWebBootstrapper>false</IsWebBootstrapper>
|
||||
<UseApplicationTrust>false</UseApplicationTrust>
|
||||
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<TargetFrameworkProfile>
|
||||
</TargetFrameworkProfile>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
|
||||
<BaseAddress>285212672</BaseAddress>
|
||||
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
|
||||
<ConfigurationOverrideFile>
|
||||
</ConfigurationOverrideFile>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<DocumentationFile>
|
||||
</DocumentationFile>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<FileAlignment>4096</FileAlignment>
|
||||
<NoStdLib>false</NoStdLib>
|
||||
<NoWarn>
|
||||
</NoWarn>
|
||||
<Optimize>false</Optimize>
|
||||
<RegisterForComInterop>false</RegisterForComInterop>
|
||||
<RemoveIntegerChecks>false</RemoveIntegerChecks>
|
||||
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<DebugType>full</DebugType>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
|
||||
<BaseAddress>285212672</BaseAddress>
|
||||
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
|
||||
<ConfigurationOverrideFile>
|
||||
</ConfigurationOverrideFile>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<DocumentationFile>
|
||||
</DocumentationFile>
|
||||
<DebugSymbols>false</DebugSymbols>
|
||||
<FileAlignment>4096</FileAlignment>
|
||||
<NoStdLib>false</NoStdLib>
|
||||
<NoWarn>
|
||||
</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<RegisterForComInterop>false</RegisterForComInterop>
|
||||
<RemoveIntegerChecks>false</RemoveIntegerChecks>
|
||||
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<DebugType>none</DebugType>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'RELEASE AND DEPLOY BUILD|AnyCPU' ">
|
||||
<OutputPath>bin\RELEASE AND DEPLOY BUILD\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<BaseAddress>285212672</BaseAddress>
|
||||
<Optimize>true</Optimize>
|
||||
<DebugType>
|
||||
</DebugType>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="FirebirdSql.Data.FirebirdClient, Version=2.5.0.0, Culture=neutral, PublicKeyToken=3750abcc3150b00c, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\3rdprtylibs\firebird ado.net driver\FirebirdSql.Data.FirebirdClient.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="interop.blue">
|
||||
<Name>Interop.blue</Name>
|
||||
<HintPath>Interop.blue.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="log4net">
|
||||
<Name>log4net</Name>
|
||||
<HintPath>..\..\3rdprtylibs\log4net\log4net.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System">
|
||||
<Name>System</Name>
|
||||
</Reference>
|
||||
<Reference Include="System.Core">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Data">
|
||||
<Name>System.Data</Name>
|
||||
</Reference>
|
||||
<Reference Include="System.Drawing">
|
||||
<Name>System.Drawing</Name>
|
||||
</Reference>
|
||||
<Reference Include="System.Windows.Forms">
|
||||
<Name>System.Windows.Forms</Name>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml">
|
||||
<Name>System.XML</Name>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="..\..\keys\AyaNova.snk">
|
||||
<Link>AyaNova.snk</Link>
|
||||
</None>
|
||||
<None Include="app.config" />
|
||||
<None Include="AyaImport.exe.manifest" />
|
||||
<Content Include="App.ico" />
|
||||
<Content Include="config.txt">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Compile Include="AssemblyInfo.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Form1.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Login.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Properties\Resources.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
</Compile>
|
||||
<EmbeddedResource Include="Form1.resx">
|
||||
<DependentUpon>Form1.cs</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Login.resx">
|
||||
<DependentUpon>Login.cs</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\source\bizobjects\AyaLib\GZTW.AyaNova.BLL.csproj">
|
||||
<Project>{50B807B6-FC35-4CC3-B54D-91C78426A943}</Project>
|
||||
<Name>GZTW.AyaNova.BLL</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\source\csla10\CSLA.Core.Bindablebase\CSLA.Core.Bindablebase.csproj">
|
||||
<Project>{C2392355-12A9-4197-A1D3-603C390B1E62}</Project>
|
||||
<Name>CSLA.Core.Bindablebase</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\source\csla10\CSLA.Server.DataPortal\CSLA.Server.DataPortal.vbproj">
|
||||
<Project>{80828E2C-E9FB-4E73-A27C-7F9CDB96FCDE}</Project>
|
||||
<Name>CSLA.Server.DataPortal</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\source\csla10\CSLA\CSLA.vbproj">
|
||||
<Project>{1B9A38BB-461A-47A4-AD72-099C694138A0}</Project>
|
||||
<Name>CSLA</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\source\Data\Data\GZTW.Data.csproj">
|
||||
<Project>{701893AA-C042-4FB2-8643-E139372C1117}</Project>
|
||||
<Name>GZTW.Data</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\source\Profile\GZTW.Profile\GZTW.Profile.csproj">
|
||||
<Project>{EDE897E2-E2E6-441D-9F83-0B973AE09670}</Project>
|
||||
<Name>GZTW.Profile</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework Client Profile</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.2.0">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 2.0 %28x86%29</ProductName>
|
||||
<Install>true</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.0">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.0 %28x86%29</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.5</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.5 SP1</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<PropertyGroup>
|
||||
<PreBuildEvent>
|
||||
</PreBuildEvent>
|
||||
<PostBuildEvent>
|
||||
</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
75
utils/AyaImport/AyaImport.csproj.user
Normal file
75
utils/AyaImport/AyaImport.csproj.user
Normal file
@@ -0,0 +1,75 @@
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<LastOpenVersion>7.10.3077</LastOpenVersion>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ReferencePath>C:\data\AyaNova\utils\AyaImport\references\;C:\data\AyaNova\source\WinFormApp\bin\Release\;C:\data\AyaNova\source\bizobjects\AyaLib\bin\Release\;C:\data\AyaNova\source\csla10\CSLA\bin\Release\;C:\data\AyaNova\source\csla10\CSLA.Core.Bindablebase\bin\Release\;C:\data\AyaNova\source\csla10\CSLA.Server.DataPortal\bin\Release\;C:\data\AyaNova\source\csla10\CSLA.Server.ServicedDataPortal\bin\Release\;C:\data\AyaNova\utils\AyaImport\;C:\data\AyaNova 3.0\utils\AyaImport\;C:\Program Files\FirebirdNETProvider1.7\;C:\data\AyaNova 3.0\3rdprtylibs\log4net\;C:\data\AyaNova 3.1\utils\AyaImport\;C:\data\AyaNova 3.1\3rdprtylibs\log4net\</ReferencePath>
|
||||
<CopyProjectDestinationFolder>
|
||||
</CopyProjectDestinationFolder>
|
||||
<CopyProjectUncPath>
|
||||
</CopyProjectUncPath>
|
||||
<CopyProjectOption>0</CopyProjectOption>
|
||||
<ProjectView>ProjectFiles</ProjectView>
|
||||
<ProjectTrust>0</ProjectTrust>
|
||||
<PublishUrlHistory>
|
||||
</PublishUrlHistory>
|
||||
<InstallUrlHistory>
|
||||
</InstallUrlHistory>
|
||||
<SupportUrlHistory>
|
||||
</SupportUrlHistory>
|
||||
<UpdateUrlHistory>
|
||||
</UpdateUrlHistory>
|
||||
<BootstrapperUrlHistory>
|
||||
</BootstrapperUrlHistory>
|
||||
<ErrorReportUrlHistory>
|
||||
</ErrorReportUrlHistory>
|
||||
<FallbackCulture>en-US</FallbackCulture>
|
||||
<VerifyUploadedFiles>false</VerifyUploadedFiles>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<EnableASPDebugging>false</EnableASPDebugging>
|
||||
<EnableASPXDebugging>false</EnableASPXDebugging>
|
||||
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
|
||||
<EnableSQLServerDebugging>false</EnableSQLServerDebugging>
|
||||
<RemoteDebugEnabled>false</RemoteDebugEnabled>
|
||||
<RemoteDebugMachine>
|
||||
</RemoteDebugMachine>
|
||||
<StartAction>Project</StartAction>
|
||||
<StartArguments>
|
||||
</StartArguments>
|
||||
<StartPage>
|
||||
</StartPage>
|
||||
<StartProgram>
|
||||
</StartProgram>
|
||||
<StartURL>
|
||||
</StartURL>
|
||||
<StartWorkingDirectory>
|
||||
</StartWorkingDirectory>
|
||||
<StartWithIE>true</StartWithIE>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<EnableASPDebugging>false</EnableASPDebugging>
|
||||
<EnableASPXDebugging>false</EnableASPXDebugging>
|
||||
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
|
||||
<EnableSQLServerDebugging>false</EnableSQLServerDebugging>
|
||||
<RemoteDebugEnabled>false</RemoteDebugEnabled>
|
||||
<RemoteDebugMachine>
|
||||
</RemoteDebugMachine>
|
||||
<StartAction>Project</StartAction>
|
||||
<StartArguments>
|
||||
</StartArguments>
|
||||
<StartPage>
|
||||
</StartPage>
|
||||
<StartProgram>
|
||||
</StartProgram>
|
||||
<StartURL>
|
||||
</StartURL>
|
||||
<StartWorkingDirectory>
|
||||
</StartWorkingDirectory>
|
||||
<StartWithIE>true</StartWithIE>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'RELEASE AND DEPLOY BUILD|AnyCPU' ">
|
||||
<StartWithIE>true</StartWithIE>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
12
utils/AyaImport/AyaImport.exe.manifest
Normal file
12
utils/AyaImport/AyaImport.exe.manifest
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
|
||||
<assemblyIdentity version="7.5.0.0" processorArchitecture="X86" name="AyaImport" type="win32" />
|
||||
|
||||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
|
||||
<security>
|
||||
<requestedPrivileges>
|
||||
<requestedExecutionLevel level="asInvoker" />
|
||||
</requestedPrivileges>
|
||||
</security>
|
||||
</trustInfo>
|
||||
</assembly>
|
||||
21
utils/AyaImport/AyaImport.sln
Normal file
21
utils/AyaImport/AyaImport.sln
Normal file
@@ -0,0 +1,21 @@
|
||||
Microsoft Visual Studio Solution File, Format Version 8.00
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AyaImport", "AyaImport.csproj", "{3A426361-1480-49A3-B596-53ABB98087F9}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfiguration) = preSolution
|
||||
Debug = Debug
|
||||
Release = Release
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfiguration) = postSolution
|
||||
{3A426361-1480-49A3-B596-53ABB98087F9}.Debug.ActiveCfg = Debug|.NET
|
||||
{3A426361-1480-49A3-B596-53ABB98087F9}.Debug.Build.0 = Debug|.NET
|
||||
{3A426361-1480-49A3-B596-53ABB98087F9}.Release.ActiveCfg = Release|.NET
|
||||
{3A426361-1480-49A3-B596-53ABB98087F9}.Release.Build.0 = Release|.NET
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityAddIns) = postSolution
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
BIN
utils/AyaImport/AyaImport.suo
Normal file
BIN
utils/AyaImport/AyaImport.suo
Normal file
Binary file not shown.
4572
utils/AyaImport/Form1.cs
Normal file
4572
utils/AyaImport/Form1.cs
Normal file
File diff suppressed because it is too large
Load Diff
123
utils/AyaImport/Form1.resx
Normal file
123
utils/AyaImport/Form1.resx
Normal file
@@ -0,0 +1,123 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="openFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
</root>
|
||||
331
utils/AyaImport/Login.cs
Normal file
331
utils/AyaImport/Login.cs
Normal file
@@ -0,0 +1,331 @@
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.Collections;
|
||||
using System.ComponentModel;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace AyaImport
|
||||
{
|
||||
/// <summary>
|
||||
/// Summary description for Login.
|
||||
/// </summary>
|
||||
public class Login : System.Windows.Forms.Form
|
||||
{
|
||||
private System.Windows.Forms.Button btnLogin;
|
||||
private System.Windows.Forms.Button btnCancel;
|
||||
private System.Windows.Forms.TextBox edPassword;
|
||||
private System.Windows.Forms.TextBox edUsername;
|
||||
private System.Windows.Forms.TextBox edOldPassword;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.Label label5;
|
||||
private System.Windows.Forms.PictureBox pictureBox2;
|
||||
private System.Windows.Forms.GroupBox groupBox1;
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.Container components = null;
|
||||
|
||||
|
||||
private string mUsername;
|
||||
private string mPassword;
|
||||
private string mOldUsername;
|
||||
private string mOldPassword;
|
||||
private System.Windows.Forms.TextBox edOldUsername;
|
||||
private System.Windows.Forms.PictureBox pictureBox1;
|
||||
private System.Windows.Forms.PictureBox pictureBox3;
|
||||
private System.Windows.Forms.PictureBox pictureBox4;
|
||||
private bool mLogin;
|
||||
|
||||
|
||||
public Login()
|
||||
{
|
||||
//
|
||||
// Required for Windows Form Designer support
|
||||
//
|
||||
InitializeComponent();
|
||||
|
||||
mUsername="";
|
||||
mPassword="";
|
||||
mOldUsername="";
|
||||
mOldPassword="";
|
||||
|
||||
mLogin=false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
protected override void Dispose( bool disposing )
|
||||
{
|
||||
if( disposing )
|
||||
{
|
||||
if(components != null)
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
}
|
||||
base.Dispose( disposing );
|
||||
}
|
||||
|
||||
#region Windows Form 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()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Login));
|
||||
this.btnLogin = new System.Windows.Forms.Button();
|
||||
this.btnCancel = new System.Windows.Forms.Button();
|
||||
this.edPassword = new System.Windows.Forms.TextBox();
|
||||
this.edUsername = new System.Windows.Forms.TextBox();
|
||||
this.edOldPassword = new System.Windows.Forms.TextBox();
|
||||
this.edOldUsername = new System.Windows.Forms.TextBox();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.pictureBox2 = new System.Windows.Forms.PictureBox();
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
||||
this.pictureBox3 = new System.Windows.Forms.PictureBox();
|
||||
this.pictureBox4 = new System.Windows.Forms.PictureBox();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox4)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// btnLogin
|
||||
//
|
||||
this.btnLogin.Location = new System.Drawing.Point(272, 440);
|
||||
this.btnLogin.Name = "btnLogin";
|
||||
this.btnLogin.Size = new System.Drawing.Size(75, 23);
|
||||
this.btnLogin.TabIndex = 2;
|
||||
this.btnLogin.Text = "Login";
|
||||
this.btnLogin.Click += new System.EventHandler(this.btnLogin_Click);
|
||||
//
|
||||
// btnCancel
|
||||
//
|
||||
this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||
this.btnCancel.Location = new System.Drawing.Point(184, 440);
|
||||
this.btnCancel.Name = "btnCancel";
|
||||
this.btnCancel.Size = new System.Drawing.Size(75, 23);
|
||||
this.btnCancel.TabIndex = 3;
|
||||
this.btnCancel.Text = "Cancel";
|
||||
this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
|
||||
//
|
||||
// edPassword
|
||||
//
|
||||
this.edPassword.Location = new System.Drawing.Point(80, 384);
|
||||
this.edPassword.Name = "edPassword";
|
||||
this.edPassword.PasswordChar = '*';
|
||||
this.edPassword.Size = new System.Drawing.Size(280, 20);
|
||||
this.edPassword.TabIndex = 1;
|
||||
this.edPassword.Text = "letmein";
|
||||
//
|
||||
// edUsername
|
||||
//
|
||||
this.edUsername.Location = new System.Drawing.Point(80, 344);
|
||||
this.edUsername.Name = "edUsername";
|
||||
this.edUsername.ReadOnly = true;
|
||||
this.edUsername.Size = new System.Drawing.Size(280, 20);
|
||||
this.edUsername.TabIndex = 17;
|
||||
this.edUsername.TabStop = false;
|
||||
this.edUsername.Text = "manager";
|
||||
//
|
||||
// edOldPassword
|
||||
//
|
||||
this.edOldPassword.Location = new System.Drawing.Point(80, 160);
|
||||
this.edOldPassword.Name = "edOldPassword";
|
||||
this.edOldPassword.PasswordChar = '*';
|
||||
this.edOldPassword.Size = new System.Drawing.Size(280, 20);
|
||||
this.edOldPassword.TabIndex = 0;
|
||||
this.edOldPassword.Text = "letmein";
|
||||
//
|
||||
// edOldUsername
|
||||
//
|
||||
this.edOldUsername.Location = new System.Drawing.Point(80, 120);
|
||||
this.edOldUsername.Name = "edOldUsername";
|
||||
this.edOldUsername.Size = new System.Drawing.Size(280, 20);
|
||||
this.edOldUsername.TabIndex = 23;
|
||||
this.edOldUsername.Text = "manager";
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.Font = new System.Drawing.Font("Tahoma", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label3.Location = new System.Drawing.Point(0, 152);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(80, 24);
|
||||
this.label3.TabIndex = 22;
|
||||
this.label3.Text = "Password:";
|
||||
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.Font = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label4.Location = new System.Drawing.Point(0, 120);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(80, 16);
|
||||
this.label4.TabIndex = 21;
|
||||
this.label4.Text = "Username:";
|
||||
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label5.Location = new System.Drawing.Point(0, 96);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(360, 16);
|
||||
this.label5.TabIndex = 25;
|
||||
this.label5.Text = "Old AyaNova CE manager account:";
|
||||
//
|
||||
// pictureBox2
|
||||
//
|
||||
this.pictureBox2.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox2.Image")));
|
||||
this.pictureBox2.Location = new System.Drawing.Point(8, 0);
|
||||
this.pictureBox2.Name = "pictureBox2";
|
||||
this.pictureBox2.Size = new System.Drawing.Size(368, 96);
|
||||
this.pictureBox2.TabIndex = 27;
|
||||
this.pictureBox2.TabStop = false;
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
this.groupBox1.Location = new System.Drawing.Point(0, 192);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new System.Drawing.Size(376, 8);
|
||||
this.groupBox1.TabIndex = 28;
|
||||
this.groupBox1.TabStop = false;
|
||||
//
|
||||
// pictureBox1
|
||||
//
|
||||
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
|
||||
this.pictureBox1.Location = new System.Drawing.Point(32, 208);
|
||||
this.pictureBox1.Name = "pictureBox1";
|
||||
this.pictureBox1.Size = new System.Drawing.Size(312, 104);
|
||||
this.pictureBox1.TabIndex = 29;
|
||||
this.pictureBox1.TabStop = false;
|
||||
//
|
||||
// pictureBox3
|
||||
//
|
||||
this.pictureBox3.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox3.Image")));
|
||||
this.pictureBox3.Location = new System.Drawing.Point(16, 336);
|
||||
this.pictureBox3.Name = "pictureBox3";
|
||||
this.pictureBox3.Size = new System.Drawing.Size(32, 32);
|
||||
this.pictureBox3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
|
||||
this.pictureBox3.TabIndex = 30;
|
||||
this.pictureBox3.TabStop = false;
|
||||
//
|
||||
// pictureBox4
|
||||
//
|
||||
this.pictureBox4.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox4.Image")));
|
||||
this.pictureBox4.Location = new System.Drawing.Point(16, 376);
|
||||
this.pictureBox4.Name = "pictureBox4";
|
||||
this.pictureBox4.Size = new System.Drawing.Size(32, 32);
|
||||
this.pictureBox4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
|
||||
this.pictureBox4.TabIndex = 31;
|
||||
this.pictureBox4.TabStop = false;
|
||||
//
|
||||
// Login
|
||||
//
|
||||
this.AcceptButton = this.btnLogin;
|
||||
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
|
||||
this.CancelButton = this.btnCancel;
|
||||
this.ClientSize = new System.Drawing.Size(378, 479);
|
||||
this.ControlBox = false;
|
||||
this.Controls.Add(this.pictureBox4);
|
||||
this.Controls.Add(this.pictureBox3);
|
||||
this.Controls.Add(this.pictureBox1);
|
||||
this.Controls.Add(this.groupBox1);
|
||||
this.Controls.Add(this.pictureBox2);
|
||||
this.Controls.Add(this.label5);
|
||||
this.Controls.Add(this.edOldPassword);
|
||||
this.Controls.Add(this.edOldUsername);
|
||||
this.Controls.Add(this.edPassword);
|
||||
this.Controls.Add(this.edUsername);
|
||||
this.Controls.Add(this.label3);
|
||||
this.Controls.Add(this.label4);
|
||||
this.Controls.Add(this.btnLogin);
|
||||
this.Controls.Add(this.btnCancel);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
||||
this.Name = "Login";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||
this.Tag = "Login";
|
||||
this.Text = "Login";
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox4)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
private void btnLogin_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
mUsername=edUsername.Text;
|
||||
mPassword=edPassword.Text;
|
||||
mOldUsername=edOldUsername.Text;
|
||||
mOldPassword=edOldPassword.Text;
|
||||
mLogin=true;
|
||||
Hide();
|
||||
|
||||
}
|
||||
|
||||
private void btnCancel_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
mUsername="";
|
||||
mPassword="";
|
||||
mOldUsername="";
|
||||
mOldPassword="";
|
||||
mLogin=false;
|
||||
Hide();
|
||||
|
||||
}
|
||||
|
||||
|
||||
public string Username
|
||||
{
|
||||
get
|
||||
{
|
||||
return mUsername;
|
||||
}
|
||||
}
|
||||
|
||||
public string Password
|
||||
{
|
||||
get
|
||||
{
|
||||
return mPassword;
|
||||
}
|
||||
}
|
||||
|
||||
public string OldUsername
|
||||
{
|
||||
get
|
||||
{
|
||||
return mOldUsername;
|
||||
}
|
||||
}
|
||||
|
||||
public string OldPassword
|
||||
{
|
||||
get
|
||||
{
|
||||
return mOldPassword;
|
||||
}
|
||||
}
|
||||
|
||||
public bool LoggingIn
|
||||
{
|
||||
get
|
||||
{
|
||||
return mLogin;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
1523
utils/AyaImport/Login.resx
Normal file
1523
utils/AyaImport/Login.resx
Normal file
File diff suppressed because it is too large
Load Diff
63
utils/AyaImport/Properties/Resources.Designer.cs
generated
Normal file
63
utils/AyaImport/Properties/Resources.Designer.cs
generated
Normal file
@@ -0,0 +1,63 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.1
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace AyaImport.Properties {
|
||||
using System;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// A strongly-typed resource class, for looking up localized strings, etc.
|
||||
/// </summary>
|
||||
// This class was auto-generated by the StronglyTypedResourceBuilder
|
||||
// class via a tool like ResGen or Visual Studio.
|
||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||
// with the /str option, or rebuild your VS project.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class Resources {
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal Resources() {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the cached ResourceManager instance used by this class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Resources.ResourceManager ResourceManager {
|
||||
get {
|
||||
if (object.ReferenceEquals(resourceMan, null)) {
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("AyaImport.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Overrides the current thread's CurrentUICulture property for all
|
||||
/// resource lookups using this strongly typed resource class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture {
|
||||
get {
|
||||
return resourceCulture;
|
||||
}
|
||||
set {
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
120
utils/AyaImport/Properties/Resources.resx
Normal file
120
utils/AyaImport/Properties/Resources.resx
Normal file
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
BIN
utils/AyaImport/Thumbs.db
Normal file
BIN
utils/AyaImport/Thumbs.db
Normal file
Binary file not shown.
29
utils/AyaImport/config.txt
Normal file
29
utils/AyaImport/config.txt
Normal file
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
|
||||
<!-- CUSTOMERS embedded Firebird database
|
||||
<ConnectionType>DataBase</ConnectionType>
|
||||
<DataBaseType>FireBird</DataBaseType>
|
||||
<DataBaseConnectionString>ServerType=1;DataBase=C:\temp\garage\AYANOVA.FDB;Dialect=3;</DataBaseConnectionString>
|
||||
-->
|
||||
|
||||
<!-- DEVXPPRO Use the test sql database
|
||||
<ConnectionType>DataBase</ConnectionType>
|
||||
<DataBaseType>MSSQL</DataBaseType>
|
||||
<DataBaseConnectionString>Server=WIN732BIT\SQLEXPRESS2K8;initial catalog=microage;User Id=sa; Password=abraxis;</DataBaseConnectionString>
|
||||
-->
|
||||
|
||||
|
||||
<!-- Use the TEST embedded Firebird database-->
|
||||
<ConnectionType>DataBase</ConnectionType>
|
||||
<DataBaseType>FireBird</DataBaseType>
|
||||
<DataBaseConnectionString>ServerType=1;DataBase=C:\data\AyaNova\database\AYANOVA.FDB;Dialect=3;</DataBaseConnectionString>
|
||||
|
||||
|
||||
|
||||
<!-- Pooling=false; -->
|
||||
|
||||
|
||||
</configuration>
|
||||
|
||||
|
||||
BIN
utils/AyaImport/interop.blue.dll
Normal file
BIN
utils/AyaImport/interop.blue.dll
Normal file
Binary file not shown.
BIN
utils/AyaImport/scdata.sc
Normal file
BIN
utils/AyaImport/scdata.sc
Normal file
Binary file not shown.
19
utils/AyaNovaDP/ConversionReport.txt
Normal file
19
utils/AyaNovaDP/ConversionReport.txt
Normal file
@@ -0,0 +1,19 @@
|
||||
This report shows the steps taken to convert your Web application from ASP.NET 1.1 to ASP.NET 2.0.
|
||||
There may be some unresolved conversion issues you will need to manually fix.
|
||||
For more information, please refer to http://go.microsoft.com/fwlink/?LinkId=46995 or search for the help topic "Converting from Visual Studio .NET 2002 or 2003".
|
||||
Conversion Started on project file AyaNovaDP.csproj at June 23 2006, 11:39:29.
|
||||
|
||||
=========================ERRORS===================
|
||||
|
||||
=========================WARNINGS=================
|
||||
Warning: This web project was converted as a file-based web application. If your site contained any IIS meta-information, e.g. sub-folders marked as virtual directories, it is recommended that you close this web site and re-open it using the Open Web Site command and selecting the Local IIS tab.
|
||||
|
||||
=========================COMMENTS=================
|
||||
Web.Config: Added 'xhtmlConformance' attribute.
|
||||
Web.Config: added a reference for assembly DevExpress.Data3.
|
||||
Changed HTML validation schema for all projects to 'Internet Explorer 6.0'.
|
||||
Removed file Bin\AyaNovaDP.dll.
|
||||
Removed file Bin\AyaNovaDP.pdb.
|
||||
Removed file AyaNovaDP.csproj.
|
||||
Removed file AyaNovaDP.csproj.webinfo.
|
||||
Project AyaNovaDP.csproj has been converted successfully at June 23 2006, 11:39:30.
|
||||
123
utils/AyaNovaDP/Web.config
Normal file
123
utils/AyaNovaDP/Web.config
Normal file
@@ -0,0 +1,123 @@
|
||||
<?xml version="1.0"?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v1.1.4322" />
|
||||
</startup>
|
||||
<appSettings>
|
||||
<!--"Authentication" should always be set to "CSLA" -->
|
||||
<add key="Authentication" value="CSLA" />
|
||||
<add key="ConnectionType" value="DataBase" />
|
||||
<add key="DataBaseType" value="FireBird" />
|
||||
<add key="DataBaseConnectionString" value="ServerType=0;DataSource=devsrvr;DataBase=AYANOVA;User=SYSDBA;Password=aya78787;Dialect=3;" />
|
||||
</appSettings>
|
||||
<system.runtime.remoting>
|
||||
<application>
|
||||
<service>
|
||||
<wellknown mode="SingleCall" objectUri="DataPortal.rem" type="CSLA.Server.DataPortal, CSLA.Server.DataPortal" />
|
||||
<!--
|
||||
<wellknown mode="SingleCall"
|
||||
objectUri="ServicedDataPortal.rem"
|
||||
type="CSLA.Server.ServicedDataPortal.DataPortal, CSLA.Server.ServicedDataPortal" />
|
||||
-->
|
||||
</service>
|
||||
<channels>
|
||||
<channel ref="http">
|
||||
<serverProviders>
|
||||
<provider ref="wsdl" />
|
||||
<!-- TODO: comment the following two lines for .NET 1.0 -->
|
||||
<formatter ref="soap" typeFilterLevel="Full" />
|
||||
<formatter ref="binary" typeFilterLevel="Full" />
|
||||
</serverProviders>
|
||||
</channel>
|
||||
</channels>
|
||||
</application>
|
||||
</system.runtime.remoting>
|
||||
<system.web>
|
||||
<!-- DYNAMIC DEBUG COMPILATION
|
||||
Set compilation debug="true" to enable ASPX debugging. Otherwise, setting this value to
|
||||
false will improve runtime performance of this application.
|
||||
Set compilation debug="true" to insert debugging symbols (.pdb information)
|
||||
into the compiled page. Because this creates a larger file that executes
|
||||
more slowly, you should set this value to true only when debugging and to
|
||||
false at all other times. For more information, refer to the documentation about
|
||||
debugging ASP.NET files.
|
||||
-->
|
||||
<compilation defaultLanguage="c#" debug="true">
|
||||
<compilers>
|
||||
<compiler language="c#" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" extension=".cs" compilerOptions="/d:DEBUG;TRACE" /></compilers>
|
||||
<assemblies>
|
||||
<add assembly="DevExpress.Data.v10.2, Version=10.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
|
||||
<add assembly="System.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
|
||||
<add assembly="Microsoft.VisualC, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
|
||||
<add assembly="System.Data.OracleClient, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
|
||||
<add assembly="System.Runtime.Remoting, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
|
||||
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
|
||||
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" /></assemblies></compilation>
|
||||
<!-- CUSTOM ERROR MESSAGES
|
||||
Set customErrors mode="On" or "RemoteOnly" to enable custom error messages, "Off" to disable.
|
||||
Add <error> tags for each of the errors you want to handle.
|
||||
|
||||
"On" Always display custom (friendly) messages.
|
||||
"Off" Always display detailed ASP.NET error information.
|
||||
"RemoteOnly" Display custom (friendly) messages only to users not running
|
||||
on the local Web server. This setting is recommended for security purposes, so
|
||||
that you do not display application detail information to remote clients.
|
||||
-->
|
||||
<customErrors mode="Off" />
|
||||
<!-- AUTHENTICATION
|
||||
This section sets the authentication policies of the application. Possible modes are "Windows",
|
||||
"Forms", "Passport" and "None"
|
||||
|
||||
"None" No authentication is performed.
|
||||
"Windows" IIS performs authentication (Basic, Digest, or Integrated Windows) according to
|
||||
its settings for the application. Anonymous access must be disabled in IIS.
|
||||
"Forms" You provide a custom form (Web page) for users to enter their credentials, and then
|
||||
you authenticate them in your application. A user credential token is stored in a cookie.
|
||||
"Passport" Authentication is performed via a centralized authentication service provided
|
||||
by Microsoft that offers a single logon and core profile services for member sites.
|
||||
-->
|
||||
<authentication mode="Windows" />
|
||||
<!-- AUTHORIZATION
|
||||
This section sets the authorization policies of the application. You can allow or deny access
|
||||
to application resources by user or role. Wildcards: "*" mean everyone, "?" means anonymous
|
||||
(unauthenticated) users.
|
||||
-->
|
||||
<authorization>
|
||||
<allow users="*" />
|
||||
<!-- Allow all users -->
|
||||
<!-- <allow users="[comma separated list of users]"
|
||||
roles="[comma separated list of roles]"/>
|
||||
<deny users="[comma separated list of users]"
|
||||
roles="[comma separated list of roles]"/>
|
||||
-->
|
||||
</authorization>
|
||||
<!-- APPLICATION-LEVEL TRACE LOGGING
|
||||
Application-level tracing enables trace log output for every page within an application.
|
||||
Set trace enabled="true" to enable application trace logging. If pageOutput="true", the
|
||||
trace information will be displayed at the bottom of each page. Otherwise, you can view the
|
||||
application trace log by browsing the "trace.axd" page from your web application
|
||||
root.
|
||||
-->
|
||||
<trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" />
|
||||
<!-- SESSION STATE SETTINGS
|
||||
By default ASP.NET uses cookies to identify which requests belong to a particular session.
|
||||
If cookies are not available, a session can be tracked by adding a session identifier to the URL.
|
||||
To disable cookies, set sessionState cookieless="true".
|
||||
-->
|
||||
<sessionState mode="Off" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20" />
|
||||
<!-- GLOBALIZATION
|
||||
This section sets the globalization settings of the application.
|
||||
-->
|
||||
<globalization requestEncoding="utf-8" responseEncoding="utf-8" />
|
||||
<xhtmlConformance mode="Legacy" />
|
||||
<httpModules>
|
||||
<add name="ASPxHttpHandlerModule" type="DevExpress.Web.ASPxClasses.ASPxHttpHandlerModule, DevExpress.Web.v10.2, Version=10.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
|
||||
</httpModules>
|
||||
</system.web>
|
||||
|
||||
<system.webServer>
|
||||
<modules>
|
||||
<add name="ASPxHttpHandlerModule" type="DevExpress.Web.ASPxClasses.ASPxHttpHandlerModule, DevExpress.Web.v10.2, Version=10.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
|
||||
</modules>
|
||||
</system.webServer>
|
||||
</configuration>
|
||||
113
utils/AyaNovaDP/Web.config.bak
Normal file
113
utils/AyaNovaDP/Web.config.bak
Normal file
@@ -0,0 +1,113 @@
|
||||
<?xml version="1.0"?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v1.1.4322" />
|
||||
</startup>
|
||||
<appSettings>
|
||||
<!--"Authentication" should always be set to "CSLA" -->
|
||||
<add key="Authentication" value="CSLA" />
|
||||
<add key="ConnectionType" value="DataBase" />
|
||||
<add key="DataBaseType" value="FireBird" />
|
||||
<add key="DataBaseConnectionString" value="ServerType=0;DataSource=devsrvr;DataBase=AYANOVA;User=SYSDBA;Password=aya78787;Dialect=3;" />
|
||||
</appSettings>
|
||||
<system.runtime.remoting>
|
||||
<application>
|
||||
<service>
|
||||
<wellknown mode="SingleCall" objectUri="DataPortal.rem" type="CSLA.Server.DataPortal, CSLA.Server.DataPortal" />
|
||||
<!--
|
||||
<wellknown mode="SingleCall"
|
||||
objectUri="ServicedDataPortal.rem"
|
||||
type="CSLA.Server.ServicedDataPortal.DataPortal, CSLA.Server.ServicedDataPortal" />
|
||||
-->
|
||||
</service>
|
||||
<channels>
|
||||
<channel ref="http">
|
||||
<serverProviders>
|
||||
<provider ref="wsdl" />
|
||||
<!-- TODO: comment the following two lines for .NET 1.0 -->
|
||||
<formatter ref="soap" typeFilterLevel="Full" />
|
||||
<formatter ref="binary" typeFilterLevel="Full" />
|
||||
</serverProviders>
|
||||
</channel>
|
||||
</channels>
|
||||
</application>
|
||||
</system.runtime.remoting>
|
||||
<system.web>
|
||||
<!-- DYNAMIC DEBUG COMPILATION
|
||||
Set compilation debug="true" to enable ASPX debugging. Otherwise, setting this value to
|
||||
false will improve runtime performance of this application.
|
||||
Set compilation debug="true" to insert debugging symbols (.pdb information)
|
||||
into the compiled page. Because this creates a larger file that executes
|
||||
more slowly, you should set this value to true only when debugging and to
|
||||
false at all other times. For more information, refer to the documentation about
|
||||
debugging ASP.NET files.
|
||||
-->
|
||||
<compilation defaultLanguage="c#" debug="true">
|
||||
<compilers>
|
||||
<compiler language="c#" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" extension=".cs" compilerOptions="/d:DEBUG;TRACE" /></compilers>
|
||||
<assemblies>
|
||||
<add assembly="DevExpress.Data.v10.1, Version=10.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
|
||||
<add assembly="System.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
|
||||
<add assembly="Microsoft.VisualC, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
|
||||
<add assembly="System.Data.OracleClient, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
|
||||
<add assembly="System.Runtime.Remoting, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
|
||||
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
|
||||
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" /></assemblies></compilation>
|
||||
<!-- CUSTOM ERROR MESSAGES
|
||||
Set customErrors mode="On" or "RemoteOnly" to enable custom error messages, "Off" to disable.
|
||||
Add <error> tags for each of the errors you want to handle.
|
||||
|
||||
"On" Always display custom (friendly) messages.
|
||||
"Off" Always display detailed ASP.NET error information.
|
||||
"RemoteOnly" Display custom (friendly) messages only to users not running
|
||||
on the local Web server. This setting is recommended for security purposes, so
|
||||
that you do not display application detail information to remote clients.
|
||||
-->
|
||||
<customErrors mode="Off" />
|
||||
<!-- AUTHENTICATION
|
||||
This section sets the authentication policies of the application. Possible modes are "Windows",
|
||||
"Forms", "Passport" and "None"
|
||||
|
||||
"None" No authentication is performed.
|
||||
"Windows" IIS performs authentication (Basic, Digest, or Integrated Windows) according to
|
||||
its settings for the application. Anonymous access must be disabled in IIS.
|
||||
"Forms" You provide a custom form (Web page) for users to enter their credentials, and then
|
||||
you authenticate them in your application. A user credential token is stored in a cookie.
|
||||
"Passport" Authentication is performed via a centralized authentication service provided
|
||||
by Microsoft that offers a single logon and core profile services for member sites.
|
||||
-->
|
||||
<authentication mode="Windows" />
|
||||
<!-- AUTHORIZATION
|
||||
This section sets the authorization policies of the application. You can allow or deny access
|
||||
to application resources by user or role. Wildcards: "*" mean everyone, "?" means anonymous
|
||||
(unauthenticated) users.
|
||||
-->
|
||||
<authorization>
|
||||
<allow users="*" />
|
||||
<!-- Allow all users -->
|
||||
<!-- <allow users="[comma separated list of users]"
|
||||
roles="[comma separated list of roles]"/>
|
||||
<deny users="[comma separated list of users]"
|
||||
roles="[comma separated list of roles]"/>
|
||||
-->
|
||||
</authorization>
|
||||
<!-- APPLICATION-LEVEL TRACE LOGGING
|
||||
Application-level tracing enables trace log output for every page within an application.
|
||||
Set trace enabled="true" to enable application trace logging. If pageOutput="true", the
|
||||
trace information will be displayed at the bottom of each page. Otherwise, you can view the
|
||||
application trace log by browsing the "trace.axd" page from your web application
|
||||
root.
|
||||
-->
|
||||
<trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" />
|
||||
<!-- SESSION STATE SETTINGS
|
||||
By default ASP.NET uses cookies to identify which requests belong to a particular session.
|
||||
If cookies are not available, a session can be tracked by adding a session identifier to the URL.
|
||||
To disable cookies, set sessionState cookieless="true".
|
||||
-->
|
||||
<sessionState mode="Off" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20" />
|
||||
<!-- GLOBALIZATION
|
||||
This section sets the globalization settings of the application.
|
||||
-->
|
||||
<globalization requestEncoding="utf-8" responseEncoding="utf-8" />
|
||||
<xhtmlConformance mode="Legacy" /></system.web>
|
||||
</configuration>
|
||||
10
utils/AyaNovaDP/_vti_cnf/AyaNovaDP.csproj
Normal file
10
utils/AyaNovaDP/_vti_cnf/AyaNovaDP.csproj
Normal file
@@ -0,0 +1,10 @@
|
||||
vti_encoding:SR|utf8-nl
|
||||
vti_author:SR|JOHN\\johnc
|
||||
vti_modifiedby:SR|JOHN\\johnc
|
||||
vti_timecreated:TR|23 Jan 2006 15:00:16 -0000
|
||||
vti_timelastmodified:TR|24 Jan 2006 00:42:52 -0000
|
||||
vti_filesize:IR|5170
|
||||
vti_extenderversion:SR|4.0.2.8912
|
||||
vti_backlinkinfo:VX|
|
||||
vti_nexttolasttimemodified:TR|23 Jan 2006 15:03:33 -0000
|
||||
vti_cacheddtm:TX|24 Jan 2006 00:42:52 -0000
|
||||
10
utils/AyaNovaDP/_vti_cnf/AyaNovaDP.csproj.webinfo
Normal file
10
utils/AyaNovaDP/_vti_cnf/AyaNovaDP.csproj.webinfo
Normal file
@@ -0,0 +1,10 @@
|
||||
vti_encoding:SR|utf8-nl
|
||||
vti_author:SR|JOHN\\johnc
|
||||
vti_modifiedby:SR|JOHN\\johnc
|
||||
vti_timecreated:TR|23 Jan 2006 15:00:16 -0000
|
||||
vti_timelastmodified:TW|23 Jan 2006 15:00:16 -0000
|
||||
vti_filesize:IR|116
|
||||
vti_extenderversion:SR|4.0.2.8912
|
||||
vti_backlinkinfo:VX|
|
||||
vti_nexttolasttimemodified:TW|23 Jan 2006 15:00:16 -0000
|
||||
vti_cacheddtm:TX|23 Jan 2006 15:00:16 -0000
|
||||
10
utils/AyaNovaDP/_vti_cnf/Web.config
Normal file
10
utils/AyaNovaDP/_vti_cnf/Web.config
Normal file
@@ -0,0 +1,10 @@
|
||||
vti_encoding:SR|utf8-nl
|
||||
vti_author:SR|JOHN\\johnc
|
||||
vti_modifiedby:SR|JOHN\\johnc
|
||||
vti_timecreated:TR|23 Jan 2006 15:02:26 -0000
|
||||
vti_timelastmodified:TR|23 Jan 2006 23:28:18 -0000
|
||||
vti_filesize:IR|5813
|
||||
vti_extenderversion:SR|4.0.2.8912
|
||||
vti_backlinkinfo:VX|
|
||||
vti_nexttolasttimemodified:TR|23 Jan 2006 21:53:29 -0000
|
||||
vti_cacheddtm:TX|23 Jan 2006 23:28:18 -0000
|
||||
4
utils/AyaNovaDP/_vti_pvt/access.cnf
Normal file
4
utils/AyaNovaDP/_vti_pvt/access.cnf
Normal file
@@ -0,0 +1,4 @@
|
||||
vti_encoding:SR|utf8-nl
|
||||
RealmName:john
|
||||
InheritPermissions:true
|
||||
PasswordDir:c:\\inetpub\\wwwroot\\_vti_pvt
|
||||
BIN
utils/AyaNovaDP/_vti_pvt/deptodoc.btr
Normal file
BIN
utils/AyaNovaDP/_vti_pvt/deptodoc.btr
Normal file
Binary file not shown.
BIN
utils/AyaNovaDP/_vti_pvt/doctodep.btr
Normal file
BIN
utils/AyaNovaDP/_vti_pvt/doctodep.btr
Normal file
Binary file not shown.
1
utils/AyaNovaDP/_vti_pvt/linkinfo.cnf
Normal file
1
utils/AyaNovaDP/_vti_pvt/linkinfo.cnf
Normal file
@@ -0,0 +1 @@
|
||||
vti_encoding:SR|utf8-nl
|
||||
23
utils/AyaNovaDP/_vti_pvt/service.cnf
Normal file
23
utils/AyaNovaDP/_vti_pvt/service.cnf
Normal file
@@ -0,0 +1,23 @@
|
||||
vti_encoding:SR|utf8-nl
|
||||
vti_casesensitiveurls:IX|0
|
||||
vti_httpdversion:SX|Microsoft-IIS/5.1
|
||||
vti_textextensions:SX|.txt.actproj.asm.c.cc.cod.cpp.cs.cxx.dbs.def.dsp.dsw.etp.ext.fky.h.hpp.hxx.i.idl.inc.inl.jsl.kci.lgn.lst.mak.map.mk.odh.odl.prc.rc.rc2.rct.rgs.rul.s.sol.sor.sql.srf.tab.tlh.tli.trg.txt.udf.udt.user.usr.vb.vcproj.viw.vspscc.vsscc.vssscc.
|
||||
vti_featurelist:VX|vti_ACIPAddresses vti_ACCreateNewUsers vti_ACChangePassword vti_ACNoUserGroup vti_ACCreateNewGroups vti_ACModifyGroups vti_ServiceMarkUrlDirExec vti_ServerEmailTransport vti_ServerIndexServer
|
||||
vti_dependenciesood:IR|0
|
||||
vti_webservertype:SR|msiis
|
||||
vti_categories:VR|Travel Expense\\ Report Business Competition Goals/Objectives Ideas Miscellaneous Waiting VIP In\\ Process Planning Schedule
|
||||
vti_dontpatchmoveddocs:SW|1
|
||||
vti_htmlextensions:SX|.htm.html.stm.html.htm.shtml.shtm.htt.htx.asp.alx.asa.
|
||||
vti_approvallevels:VR|Content\\ Review Legal\\ Review Code\\ Review Manager\\ Review
|
||||
vti_timecreated:TR|23 Jan 2006 15:00:16 -0000
|
||||
vti_extenderversion:SR|4.0.2.8912
|
||||
vti_longfilenames:IX|1
|
||||
vti_welcomenames:VX|Default.htm Default.asp index.htm iisstart.asp Default.aspx
|
||||
vti_insecureserverurl:SR|http://localhost
|
||||
vti_secureserverurl:SR|https://localhost
|
||||
vti_disableautoimgsizeexts:SX|.asp
|
||||
vti_oldestcompatibleversion:SR|2.0.0.0
|
||||
vti_restartmanual:IX|0
|
||||
vti_defaultcharset:SR|none
|
||||
vti_defaultlanguage:SR|en
|
||||
vti_publishmetainfokeys:VR|vti_assignedto vti_approvallevel vti_categories vti_description
|
||||
0
utils/AyaNovaDP/_vti_pvt/service.lck
Normal file
0
utils/AyaNovaDP/_vti_pvt/service.lck
Normal file
1
utils/AyaNovaDP/_vti_pvt/services.cnf
Normal file
1
utils/AyaNovaDP/_vti_pvt/services.cnf
Normal file
@@ -0,0 +1 @@
|
||||
/
|
||||
0
utils/AyaNovaDP/_vti_pvt/structure.cnf
Normal file
0
utils/AyaNovaDP/_vti_pvt/structure.cnf
Normal file
BIN
utils/AyaNovaDP/bin/CSLA.Core.Bindablebase.dll
Normal file
BIN
utils/AyaNovaDP/bin/CSLA.Core.Bindablebase.dll
Normal file
Binary file not shown.
BIN
utils/AyaNovaDP/bin/CSLA.Server.DataPortal.dll
Normal file
BIN
utils/AyaNovaDP/bin/CSLA.Server.DataPortal.dll
Normal file
Binary file not shown.
117
utils/AyaNovaDP/bin/CSLA.Server.DataPortal.xml
Normal file
117
utils/AyaNovaDP/bin/CSLA.Server.DataPortal.xml
Normal file
@@ -0,0 +1,117 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>
|
||||
CSLA.Server.DataPortal
|
||||
</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="T:CSLA.Server.DataPortal">
|
||||
<summary>
|
||||
Implements the server-side DataPortal as discussed
|
||||
in Chapter 5.
|
||||
</summary>
|
||||
</member><member name="F:CSLA.CriteriaBase.ObjectType">
|
||||
<summary>
|
||||
Type of the business object to be instantiated by
|
||||
the server-side DataPortal.
|
||||
</summary>
|
||||
</member><member name="M:CSLA.CriteriaBase.#ctor(System.Type)">
|
||||
<summary>
|
||||
Initializes CriteriaBase with the type of
|
||||
business object to be created by the DataPortal.
|
||||
</summary>
|
||||
</member><member name="T:CSLA.CriteriaBase">
|
||||
<summary>
|
||||
Base type from which Criteria classes can be
|
||||
derived in a business class.
|
||||
</summary>
|
||||
</member><member name="M:CSLA.Serialization.ISerializationNotification.Serializing">
|
||||
<summary>
|
||||
This method is called before an object is serialized.
|
||||
</summary>
|
||||
</member><member name="M:CSLA.Serialization.ISerializationNotification.Serialized">
|
||||
<summary>
|
||||
This method is called on the original instance of the
|
||||
object after it has been serialized.
|
||||
</summary>
|
||||
</member><member name="M:CSLA.Serialization.ISerializationNotification.Deserialized">
|
||||
<summary>
|
||||
This method is called on a newly deserialized object
|
||||
after deserialization is complete.
|
||||
</summary>
|
||||
</member><member name="T:CSLA.Serialization.ISerializationNotification">
|
||||
<summary>
|
||||
Objects can implement this interface if they wish to be
|
||||
notified of serialization events.
|
||||
</summary>
|
||||
<remarks>
|
||||
<para>
|
||||
Note that .NET serialization does NOT call these methods. Only
|
||||
code that checks for the ISerializationNotification interface
|
||||
when serializating and deserializing objects will invoke these
|
||||
methods.
|
||||
</para><para>
|
||||
The CSLA .NET framework's DataPortal processing and the Clone
|
||||
method in BusinessBase automatically make these calls.
|
||||
</para>
|
||||
</remarks>
|
||||
</member><member name="M:CSLA.Serialization.SerializationNotification.OnSerializing(System.Object)">
|
||||
<summary>
|
||||
Invokes the Serializing method on the target object
|
||||
if it has implemented ISerializationNotification.
|
||||
</summary>
|
||||
<param name="target">Object on which the method should be invoked.</param>
|
||||
</member><member name="M:CSLA.Serialization.SerializationNotification.OnSerialized(System.Object)">
|
||||
<summary>
|
||||
Invokes the Serialized method on the target object
|
||||
if it has implemented ISerializationNotification.
|
||||
</summary>
|
||||
<param name="target">Object on which the method should be invoked.</param>
|
||||
</member><member name="M:CSLA.Serialization.SerializationNotification.OnDeserialized(System.Object)">
|
||||
<summary>
|
||||
Invokes the Deserialized method on the target object
|
||||
if it has implemented ISerializationNotification.
|
||||
</summary>
|
||||
<param name="target">Object on which the method should be invoked.</param>
|
||||
</member><member name="T:CSLA.Serialization.SerializationNotification">
|
||||
<summary>
|
||||
Helper methods for invoking the ISerializatoinNotification
|
||||
methods.
|
||||
</summary>
|
||||
</member><member name="P:CSLA.Server.DataPortalContext.Principal">
|
||||
<summary>
|
||||
The current <see cref="T:CSLA.Security.BusinessPrincipal"/>
|
||||
if CSLA security is being used.
|
||||
</summary>
|
||||
</member><member name="P:CSLA.Server.DataPortalContext.IsRemotePortal">
|
||||
<summary>
|
||||
Returns True if the server-side DataPortal is running
|
||||
on a remote server via remoting.
|
||||
</summary>
|
||||
</member><member name="M:CSLA.Server.DataPortalContext.#ctor(System.Boolean)">
|
||||
<summary>
|
||||
Creates a new DataPortalContext object.
|
||||
</summary>
|
||||
<param name="isRemotePortal">Indicates whether the DataPortal is remote.</param>
|
||||
</member><member name="M:CSLA.Server.DataPortalContext.#ctor(System.Security.Principal.IPrincipal,System.Boolean)">
|
||||
<summary>
|
||||
Creates a new DataPortalContext object.
|
||||
</summary>
|
||||
<param name="principal">The current Principal object.</param>
|
||||
<param name="isRemotePortal">Indicates whether the DataPortal is remote.</param>
|
||||
</member><member name="T:CSLA.Server.DataPortalContext">
|
||||
<summary>
|
||||
Provides consistent context information between the client
|
||||
and server DataPortal objects.
|
||||
</summary>
|
||||
<remarks>
|
||||
The context includes the current
|
||||
<see cref="T:CSLA.Security.BusinessPrincipal"/>
|
||||
object if CSLA security is being used. It also includes a
|
||||
flag indicating whether the server-side DataPortal is running
|
||||
locally or remotely.
|
||||
</remarks>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
||||
BIN
utils/AyaNovaDP/bin/CSLA.Server.ServicedDataPortal.dll
Normal file
BIN
utils/AyaNovaDP/bin/CSLA.Server.ServicedDataPortal.dll
Normal file
Binary file not shown.
36
utils/AyaNovaDP/bin/CSLA.Server.ServicedDataPortal.xml
Normal file
36
utils/AyaNovaDP/bin/CSLA.Server.ServicedDataPortal.xml
Normal file
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>
|
||||
CSLA.Server.ServicedDataPortal
|
||||
</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="M:CSLA.Server.ServicedDataPortal.DataPortal.Create(System.Object,System.Object)">
|
||||
<summary>
|
||||
Invokes the server-side DataPortal Create method within
|
||||
a COM+ transaction.
|
||||
</summary>
|
||||
</member><member name="M:CSLA.Server.ServicedDataPortal.DataPortal.Fetch(System.Object,System.Object)">
|
||||
<summary>
|
||||
Invokes the server-side DataPortal Fetch method within
|
||||
a COM+ transaction.
|
||||
</summary>
|
||||
</member><member name="M:CSLA.Server.ServicedDataPortal.DataPortal.Update(System.Object,System.Object)">
|
||||
<summary>
|
||||
Invokes the server-side DataPortal Update method within
|
||||
a COM+ transaction.
|
||||
</summary>
|
||||
</member><member name="M:CSLA.Server.ServicedDataPortal.DataPortal.Delete(System.Object,System.Object)">
|
||||
<summary>
|
||||
Invokes the server-side DataPortal Delete method within
|
||||
a COM+ transaction.
|
||||
</summary>
|
||||
</member><member name="T:CSLA.Server.ServicedDataPortal.DataPortal">
|
||||
<summary>
|
||||
Implements the transactional server-side DataPortal object as
|
||||
discussed in Chapter 5.
|
||||
</summary>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
||||
BIN
utils/AyaNovaDP/bin/CSLA.dll
Normal file
BIN
utils/AyaNovaDP/bin/CSLA.dll
Normal file
Binary file not shown.
2293
utils/AyaNovaDP/bin/CSLA.xml
Normal file
2293
utils/AyaNovaDP/bin/CSLA.xml
Normal file
File diff suppressed because it is too large
Load Diff
BIN
utils/AyaNovaDP/bin/ChilkatDotNet.dll
Normal file
BIN
utils/AyaNovaDP/bin/ChilkatDotNet.dll
Normal file
Binary file not shown.
BIN
utils/AyaNovaDP/bin/DevExpress.Data.v6.3.dll
Normal file
BIN
utils/AyaNovaDP/bin/DevExpress.Data.v6.3.dll
Normal file
Binary file not shown.
BIN
utils/AyaNovaDP/bin/FirebirdSql.Data.Firebird.dll
Normal file
BIN
utils/AyaNovaDP/bin/FirebirdSql.Data.Firebird.dll
Normal file
Binary file not shown.
27871
utils/AyaNovaDP/bin/GZTW.AyaNova.BLL.xml
Normal file
27871
utils/AyaNovaDP/bin/GZTW.AyaNova.BLL.xml
Normal file
File diff suppressed because it is too large
Load Diff
BIN
utils/AyaNovaDP/bin/GZTW.Data.dll
Normal file
BIN
utils/AyaNovaDP/bin/GZTW.Data.dll
Normal file
Binary file not shown.
BIN
utils/AyaNovaDP/bin/GZTW.Profile.dll
Normal file
BIN
utils/AyaNovaDP/bin/GZTW.Profile.dll
Normal file
Binary file not shown.
10
utils/AyaNovaDP/bin/_vti_cnf/AyaNovaDP.dll
Normal file
10
utils/AyaNovaDP/bin/_vti_cnf/AyaNovaDP.dll
Normal file
@@ -0,0 +1,10 @@
|
||||
vti_encoding:SR|utf8-nl
|
||||
vti_author:SR|JOHN\\johnc
|
||||
vti_modifiedby:SR|JOHN\\johnc
|
||||
vti_timecreated:TR|23 Jan 2006 15:06:15 -0000
|
||||
vti_timelastmodified:TW|23 Jan 2006 23:23:04 -0000
|
||||
vti_filesize:IR|16384
|
||||
vti_extenderversion:SR|4.0.2.8912
|
||||
vti_backlinkinfo:VX|
|
||||
vti_nexttolasttimemodified:TW|23 Jan 2006 23:23:04 -0000
|
||||
vti_cacheddtm:TX|24 Jan 2006 00:42:55 -0000
|
||||
10
utils/AyaNovaDP/bin/_vti_cnf/AyaNovaDP.pdb
Normal file
10
utils/AyaNovaDP/bin/_vti_cnf/AyaNovaDP.pdb
Normal file
@@ -0,0 +1,10 @@
|
||||
vti_encoding:SR|utf8-nl
|
||||
vti_author:SR|JOHN\\johnc
|
||||
vti_modifiedby:SR|JOHN\\johnc
|
||||
vti_timecreated:TR|23 Jan 2006 15:06:15 -0000
|
||||
vti_timelastmodified:TW|23 Jan 2006 23:31:58 -0000
|
||||
vti_filesize:IR|7680
|
||||
vti_extenderversion:SR|4.0.2.8912
|
||||
vti_backlinkinfo:VX|
|
||||
vti_nexttolasttimemodified:TW|23 Jan 2006 23:31:58 -0000
|
||||
vti_cacheddtm:TX|24 Jan 2006 00:26:53 -0000
|
||||
10
utils/AyaNovaDP/bin/_vti_cnf/CSLA.Core.Bindablebase.dll
Normal file
10
utils/AyaNovaDP/bin/_vti_cnf/CSLA.Core.Bindablebase.dll
Normal file
@@ -0,0 +1,10 @@
|
||||
vti_encoding:SR|utf8-nl
|
||||
vti_author:SR|JOHN\\johnc
|
||||
vti_modifiedby:SR|JOHN\\johnc
|
||||
vti_timecreated:TR|23 Jan 2006 15:01:35 -0000
|
||||
vti_timelastmodified:TW|23 Jan 2006 23:22:27 -0000
|
||||
vti_filesize:IR|20480
|
||||
vti_extenderversion:SR|4.0.2.8912
|
||||
vti_backlinkinfo:VX|
|
||||
vti_nexttolasttimemodified:TW|23 Jan 2006 23:22:27 -0000
|
||||
vti_cacheddtm:TX|24 Jan 2006 00:36:56 -0000
|
||||
10
utils/AyaNovaDP/bin/_vti_cnf/CSLA.Server.DataPortal.dll
Normal file
10
utils/AyaNovaDP/bin/_vti_cnf/CSLA.Server.DataPortal.dll
Normal file
@@ -0,0 +1,10 @@
|
||||
vti_encoding:SR|utf8-nl
|
||||
vti_author:SR|JOHN\\johnc
|
||||
vti_modifiedby:SR|JOHN\\johnc
|
||||
vti_timecreated:TR|23 Jan 2006 15:01:35 -0000
|
||||
vti_timelastmodified:TW|23 Jan 2006 23:22:28 -0000
|
||||
vti_filesize:IR|9728
|
||||
vti_extenderversion:SR|4.0.2.8912
|
||||
vti_backlinkinfo:VX|
|
||||
vti_nexttolasttimemodified:TW|23 Jan 2006 23:22:28 -0000
|
||||
vti_cacheddtm:TX|24 Jan 2006 00:36:55 -0000
|
||||
@@ -0,0 +1,10 @@
|
||||
vti_encoding:SR|utf8-nl
|
||||
vti_author:SR|JOHN\\johnc
|
||||
vti_modifiedby:SR|JOHN\\johnc
|
||||
vti_timecreated:TR|23 Jan 2006 15:01:35 -0000
|
||||
vti_timelastmodified:TW|23 Jan 2006 23:22:28 -0000
|
||||
vti_filesize:IR|6656
|
||||
vti_extenderversion:SR|4.0.2.8912
|
||||
vti_backlinkinfo:VX|
|
||||
vti_nexttolasttimemodified:TW|23 Jan 2006 23:22:28 -0000
|
||||
vti_cacheddtm:TX|24 Jan 2006 00:36:55 -0000
|
||||
10
utils/AyaNovaDP/bin/_vti_cnf/CSLA.dll
Normal file
10
utils/AyaNovaDP/bin/_vti_cnf/CSLA.dll
Normal file
@@ -0,0 +1,10 @@
|
||||
vti_encoding:SR|utf8-nl
|
||||
vti_author:SR|JOHN\\johnc
|
||||
vti_modifiedby:SR|JOHN\\johnc
|
||||
vti_timecreated:TR|23 Jan 2006 15:01:35 -0000
|
||||
vti_timelastmodified:TW|23 Jan 2006 23:22:27 -0000
|
||||
vti_filesize:IR|61440
|
||||
vti_extenderversion:SR|4.0.2.8912
|
||||
vti_backlinkinfo:VX|
|
||||
vti_nexttolasttimemodified:TW|23 Jan 2006 23:22:27 -0000
|
||||
vti_cacheddtm:TX|24 Jan 2006 00:36:56 -0000
|
||||
9
utils/AyaNovaDP/bin/_vti_cnf/ChilkatDotNet.dll
Normal file
9
utils/AyaNovaDP/bin/_vti_cnf/ChilkatDotNet.dll
Normal file
@@ -0,0 +1,9 @@
|
||||
vti_encoding:SR|utf8-nl
|
||||
vti_author:SR|JOHN\\johnc
|
||||
vti_modifiedby:SR|JOHN\\johnc
|
||||
vti_timecreated:TR|23 Jan 2006 23:34:53 -0000
|
||||
vti_timelastmodified:TR|23 Jan 2006 23:34:53 -0000
|
||||
vti_cacheddtm:TX|23 Jan 2006 23:34:53 -0000
|
||||
vti_filesize:IR|3342336
|
||||
vti_extenderversion:SR|4.0.2.8912
|
||||
vti_backlinkinfo:VX|
|
||||
10
utils/AyaNovaDP/bin/_vti_cnf/GZTW.AyaNova.BLL.dll
Normal file
10
utils/AyaNovaDP/bin/_vti_cnf/GZTW.AyaNova.BLL.dll
Normal file
@@ -0,0 +1,10 @@
|
||||
vti_encoding:SR|utf8-nl
|
||||
vti_author:SR|JOHN\\johnc
|
||||
vti_modifiedby:SR|JOHN\\johnc
|
||||
vti_timecreated:TR|23 Jan 2006 23:34:52 -0000
|
||||
vti_timelastmodified:TW|23 Jan 2006 23:34:52 -0000
|
||||
vti_filesize:IR|1708032
|
||||
vti_extenderversion:SR|4.0.2.8912
|
||||
vti_backlinkinfo:VX|
|
||||
vti_nexttolasttimemodified:TW|23 Jan 2006 23:34:52 -0000
|
||||
vti_cacheddtm:TX|24 Jan 2006 00:37:00 -0000
|
||||
10
utils/AyaNovaDP/bin/_vti_cnf/GZTW.AyaNova.BLL.xml
Normal file
10
utils/AyaNovaDP/bin/_vti_cnf/GZTW.AyaNova.BLL.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
vti_encoding:SR|utf8-nl
|
||||
vti_author:SR|JOHN\\johnc
|
||||
vti_modifiedby:SR|JOHN\\johnc
|
||||
vti_timecreated:TR|24 Jan 2006 00:36:51 -0000
|
||||
vti_timelastmodified:TW|24 Jan 2006 00:36:51 -0000
|
||||
vti_filesize:IR|997976
|
||||
vti_extenderversion:SR|4.0.2.8912
|
||||
vti_backlinkinfo:VX|
|
||||
vti_nexttolasttimemodified:TR|24 Jan 2006 00:36:51 -0000
|
||||
vti_cacheddtm:TX|24 Jan 2006 00:37:00 -0000
|
||||
10
utils/AyaNovaDP/bin/_vti_cnf/GZTW.Data.dll
Normal file
10
utils/AyaNovaDP/bin/_vti_cnf/GZTW.Data.dll
Normal file
@@ -0,0 +1,10 @@
|
||||
vti_encoding:SR|utf8-nl
|
||||
vti_author:SR|JOHN\\johnc
|
||||
vti_modifiedby:SR|JOHN\\johnc
|
||||
vti_timecreated:TR|23 Jan 2006 15:01:36 -0000
|
||||
vti_timelastmodified:TW|23 Jan 2006 23:22:27 -0000
|
||||
vti_filesize:IR|61440
|
||||
vti_extenderversion:SR|4.0.2.8912
|
||||
vti_backlinkinfo:VX|
|
||||
vti_nexttolasttimemodified:TW|23 Jan 2006 23:22:27 -0000
|
||||
vti_cacheddtm:TX|24 Jan 2006 00:36:55 -0000
|
||||
10
utils/AyaNovaDP/bin/_vti_cnf/GZTW.Profile.dll
Normal file
10
utils/AyaNovaDP/bin/_vti_cnf/GZTW.Profile.dll
Normal file
@@ -0,0 +1,10 @@
|
||||
vti_encoding:SR|utf8-nl
|
||||
vti_author:SR|JOHN\\johnc
|
||||
vti_modifiedby:SR|JOHN\\johnc
|
||||
vti_timecreated:TR|23 Jan 2006 15:01:37 -0000
|
||||
vti_timelastmodified:TW|23 Jan 2006 23:22:27 -0000
|
||||
vti_filesize:IR|45056
|
||||
vti_extenderversion:SR|4.0.2.8912
|
||||
vti_backlinkinfo:VX|
|
||||
vti_nexttolasttimemodified:TW|23 Jan 2006 23:22:27 -0000
|
||||
vti_cacheddtm:TX|24 Jan 2006 00:36:55 -0000
|
||||
9
utils/AyaNovaDP/bin/_vti_cnf/log4net.dll
Normal file
9
utils/AyaNovaDP/bin/_vti_cnf/log4net.dll
Normal file
@@ -0,0 +1,9 @@
|
||||
vti_encoding:SR|utf8-nl
|
||||
vti_author:SR|JOHN\\johnc
|
||||
vti_modifiedby:SR|JOHN\\johnc
|
||||
vti_timecreated:TR|24 Jan 2006 00:42:42 -0000
|
||||
vti_timelastmodified:TR|24 Jan 2006 00:42:42 -0000
|
||||
vti_cacheddtm:TX|24 Jan 2006 00:42:42 -0000
|
||||
vti_filesize:IR|249856
|
||||
vti_extenderversion:SR|4.0.2.8912
|
||||
vti_backlinkinfo:VX|
|
||||
BIN
utils/AyaNovaDP/bin/log4net.dll
Normal file
BIN
utils/AyaNovaDP/bin/log4net.dll
Normal file
Binary file not shown.
BIN
utils/AylXML/App.ico
Normal file
BIN
utils/AylXML/App.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
58
utils/AylXML/AssemblyInfo.cs
Normal file
58
utils/AylXML/AssemblyInfo.cs
Normal file
@@ -0,0 +1,58 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
//
|
||||
// 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("")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("")]
|
||||
[assembly: AssemblyCopyright("")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
//
|
||||
// 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 Revision and Build Numbers
|
||||
// by using the '*' as shown below:
|
||||
|
||||
[assembly: AssemblyVersion("1.0.*")]
|
||||
|
||||
//
|
||||
// In order to sign your assembly you must specify a key to use. Refer to the
|
||||
// Microsoft .NET Framework documentation for more information on assembly signing.
|
||||
//
|
||||
// Use the attributes below to control which key is used for signing.
|
||||
//
|
||||
// Notes:
|
||||
// (*) If no key is specified, the assembly is not signed.
|
||||
// (*) KeyName refers to a key that has been installed in the Crypto Service
|
||||
// Provider (CSP) on your machine. KeyFile refers to a file which contains
|
||||
// a key.
|
||||
// (*) If the KeyFile and the KeyName values are both specified, the
|
||||
// following processing occurs:
|
||||
// (1) If the KeyName can be found in the CSP, that key is used.
|
||||
// (2) If the KeyName does not exist and the KeyFile does exist, the key
|
||||
// in the KeyFile is installed into the CSP and used.
|
||||
// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
|
||||
// When specifying the KeyFile, the location of the KeyFile should be
|
||||
// relative to the project output directory which is
|
||||
// %Project Directory%\obj\<configuration>. For example, if your KeyFile is
|
||||
// located in the project directory, you would specify the AssemblyKeyFile
|
||||
// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
|
||||
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
|
||||
// documentation for more information on this.
|
||||
//
|
||||
[assembly: AssemblyDelaySign(false)]
|
||||
[assembly: AssemblyKeyFile("")]
|
||||
[assembly: AssemblyKeyName("")]
|
||||
27
utils/AylXML/AylXML.csproj
Normal file
27
utils/AylXML/AylXML.csproj
Normal file
@@ -0,0 +1,27 @@
|
||||
<VisualStudioProject>
|
||||
<CSHARP ProjectType="Local" ProductVersion="7.10.3077" SchemaVersion="2.0" ProjectGuid="{9E4CA787-41EA-4AD8-A701-01C13021DD7B}">
|
||||
<Build>
|
||||
<Settings ApplicationIcon="App.ico" AssemblyKeyContainerName="" AssemblyName="AylXML" AssemblyOriginatorKeyFile="" DefaultClientScript="JScript" DefaultHTMLPageLayout="Grid" DefaultTargetSchema="IE50" DelaySign="false" OutputType="WinExe" PreBuildEvent="" PostBuildEvent="" RootNamespace="AylXML" RunPostBuildEvent="OnBuildSuccess" StartupObject="">
|
||||
<Config Name="Debug" AllowUnsafeBlocks="false" BaseAddress="285212672" CheckForOverflowUnderflow="false" ConfigurationOverrideFile="" DefineConstants="DEBUG;TRACE" DocumentationFile="" DebugSymbols="true" FileAlignment="4096" IncrementalBuild="false" NoStdLib="false" NoWarn="" Optimize="false" OutputPath="bin\Debug\" RegisterForComInterop="false" RemoveIntegerChecks="false" TreatWarningsAsErrors="false" WarningLevel="4" />
|
||||
<Config Name="Release" AllowUnsafeBlocks="false" BaseAddress="285212672" CheckForOverflowUnderflow="false" ConfigurationOverrideFile="" DefineConstants="TRACE" DocumentationFile="" DebugSymbols="false" FileAlignment="4096" IncrementalBuild="false" NoStdLib="false" NoWarn="" Optimize="true" OutputPath="bin\Release\" RegisterForComInterop="false" RemoveIntegerChecks="false" TreatWarningsAsErrors="false" WarningLevel="4" />
|
||||
</Settings>
|
||||
<References>
|
||||
<Reference Name="System" AssemblyName="System" HintPath="..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.dll" />
|
||||
<Reference Name="System.Data" AssemblyName="System.Data" HintPath="..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Data.dll" />
|
||||
<Reference Name="System.Drawing" AssemblyName="System.Drawing" HintPath="..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Drawing.dll" />
|
||||
<Reference Name="System.Windows.Forms" AssemblyName="System.Windows.Forms" HintPath="..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Windows.Forms.dll" />
|
||||
<Reference Name="System.XML" AssemblyName="System.XML" HintPath="..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.XML.dll" />
|
||||
<Reference Name="GZTW.AyaNova.BLL" AssemblyName="GZTW.AyaNova.BLL" HintPath="GZTW.AyaNova.BLL.dll" />
|
||||
</References>
|
||||
</Build>
|
||||
<Files>
|
||||
<Include>
|
||||
<File RelPath="App.ico" BuildAction="Content" />
|
||||
<File RelPath="AssemblyInfo.cs" SubType="Code" BuildAction="Compile" />
|
||||
<File RelPath="Form1.cs" SubType="Form" BuildAction="Compile" />
|
||||
<File RelPath="Form1.resx" DependentUpon="Form1.cs" BuildAction="EmbeddedResource" />
|
||||
</Include>
|
||||
</Files>
|
||||
</CSHARP>
|
||||
</VisualStudioProject>
|
||||
|
||||
48
utils/AylXML/AylXML.csproj.user
Normal file
48
utils/AylXML/AylXML.csproj.user
Normal file
@@ -0,0 +1,48 @@
|
||||
<VisualStudioProject>
|
||||
<CSHARP LastOpenVersion = "7.10.3077" >
|
||||
<Build>
|
||||
<Settings ReferencePath = "C:\data\AyaNova 3.1\utils\AylXML\;C:\data\AyaNova 3.1\utils\AyaImport\bin\Release\" >
|
||||
<Config
|
||||
Name = "Debug"
|
||||
EnableASPDebugging = "false"
|
||||
EnableASPXDebugging = "false"
|
||||
EnableUnmanagedDebugging = "false"
|
||||
EnableSQLServerDebugging = "false"
|
||||
RemoteDebugEnabled = "false"
|
||||
RemoteDebugMachine = ""
|
||||
StartAction = "Project"
|
||||
StartArguments = ""
|
||||
StartPage = ""
|
||||
StartProgram = ""
|
||||
StartURL = ""
|
||||
StartWorkingDirectory = ""
|
||||
StartWithIE = "true"
|
||||
/>
|
||||
<Config
|
||||
Name = "Release"
|
||||
EnableASPDebugging = "false"
|
||||
EnableASPXDebugging = "false"
|
||||
EnableUnmanagedDebugging = "false"
|
||||
EnableSQLServerDebugging = "false"
|
||||
RemoteDebugEnabled = "false"
|
||||
RemoteDebugMachine = ""
|
||||
StartAction = "Project"
|
||||
StartArguments = ""
|
||||
StartPage = ""
|
||||
StartProgram = ""
|
||||
StartURL = ""
|
||||
StartWorkingDirectory = ""
|
||||
StartWithIE = "false"
|
||||
/>
|
||||
</Settings>
|
||||
</Build>
|
||||
<OtherProjectSettings
|
||||
CopyProjectDestinationFolder = ""
|
||||
CopyProjectUncPath = ""
|
||||
CopyProjectOption = "0"
|
||||
ProjectView = "ProjectFiles"
|
||||
ProjectTrust = "0"
|
||||
/>
|
||||
</CSHARP>
|
||||
</VisualStudioProject>
|
||||
|
||||
21
utils/AylXML/AylXML.sln
Normal file
21
utils/AylXML/AylXML.sln
Normal file
@@ -0,0 +1,21 @@
|
||||
Microsoft Visual Studio Solution File, Format Version 8.00
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AylXML", "AylXML.csproj", "{9E4CA787-41EA-4AD8-A701-01C13021DD7B}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfiguration) = preSolution
|
||||
Debug = Debug
|
||||
Release = Release
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfiguration) = postSolution
|
||||
{9E4CA787-41EA-4AD8-A701-01C13021DD7B}.Debug.ActiveCfg = Debug|.NET
|
||||
{9E4CA787-41EA-4AD8-A701-01C13021DD7B}.Debug.Build.0 = Debug|.NET
|
||||
{9E4CA787-41EA-4AD8-A701-01C13021DD7B}.Release.ActiveCfg = Release|.NET
|
||||
{9E4CA787-41EA-4AD8-A701-01C13021DD7B}.Release.Build.0 = Release|.NET
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityAddIns) = postSolution
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
BIN
utils/AylXML/AylXML.suo
Normal file
BIN
utils/AylXML/AylXML.suo
Normal file
Binary file not shown.
285
utils/AylXML/Form1.cs
Normal file
285
utils/AylXML/Form1.cs
Normal file
@@ -0,0 +1,285 @@
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.Collections;
|
||||
using System.ComponentModel;
|
||||
using System.Windows.Forms;
|
||||
using System.Data;
|
||||
|
||||
|
||||
using System.IO;
|
||||
using System.Runtime.Serialization.Formatters.Binary;
|
||||
using System.Runtime.Serialization;
|
||||
using GZTW.AyaNova.BLL;
|
||||
|
||||
|
||||
namespace AylXML
|
||||
{
|
||||
/// <summary>
|
||||
/// Summary description for Form1.
|
||||
/// </summary>
|
||||
public class Form1 : System.Windows.Forms.Form
|
||||
{
|
||||
private System.Windows.Forms.OpenFileDialog dlgOpen;
|
||||
private System.Windows.Forms.MainMenu mnu;
|
||||
private System.Windows.Forms.MenuItem menuItem1;
|
||||
private System.Windows.Forms.MenuItem mnuOpen;
|
||||
private System.Windows.Forms.DataGrid grid;
|
||||
private System.Windows.Forms.MenuItem mnuSaveAsXML;
|
||||
private System.Windows.Forms.SaveFileDialog dlgSave;
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.Container components = null;
|
||||
|
||||
public Form1()
|
||||
{
|
||||
//
|
||||
// Required for Windows Form Designer support
|
||||
//
|
||||
InitializeComponent();
|
||||
|
||||
//
|
||||
// TODO: Add any constructor code after InitializeComponent call
|
||||
//
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
protected override void Dispose( bool disposing )
|
||||
{
|
||||
if( disposing )
|
||||
{
|
||||
if (components != null)
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
}
|
||||
base.Dispose( disposing );
|
||||
}
|
||||
|
||||
#region Windows Form 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()
|
||||
{
|
||||
this.dlgOpen = new System.Windows.Forms.OpenFileDialog();
|
||||
this.mnu = new System.Windows.Forms.MainMenu();
|
||||
this.menuItem1 = new System.Windows.Forms.MenuItem();
|
||||
this.mnuOpen = new System.Windows.Forms.MenuItem();
|
||||
this.mnuSaveAsXML = new System.Windows.Forms.MenuItem();
|
||||
this.grid = new System.Windows.Forms.DataGrid();
|
||||
this.dlgSave = new System.Windows.Forms.SaveFileDialog();
|
||||
((System.ComponentModel.ISupportInitialize)(this.grid)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// mnu
|
||||
//
|
||||
this.mnu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
|
||||
this.menuItem1});
|
||||
//
|
||||
// menuItem1
|
||||
//
|
||||
this.menuItem1.Index = 0;
|
||||
this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
|
||||
this.mnuOpen,
|
||||
this.mnuSaveAsXML});
|
||||
this.menuItem1.Text = "&File";
|
||||
//
|
||||
// mnuOpen
|
||||
//
|
||||
this.mnuOpen.Index = 0;
|
||||
this.mnuOpen.Text = "&Open";
|
||||
this.mnuOpen.Click += new System.EventHandler(this.mnuOpen_Click);
|
||||
//
|
||||
// mnuSaveAsXML
|
||||
//
|
||||
this.mnuSaveAsXML.Enabled = false;
|
||||
this.mnuSaveAsXML.Index = 1;
|
||||
this.mnuSaveAsXML.Text = "Save to XML";
|
||||
this.mnuSaveAsXML.Click += new System.EventHandler(this.mnuSaveAsXML_Click);
|
||||
//
|
||||
// grid
|
||||
//
|
||||
this.grid.DataMember = "";
|
||||
this.grid.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.grid.FlatMode = true;
|
||||
this.grid.HeaderForeColor = System.Drawing.SystemColors.ControlText;
|
||||
this.grid.Location = new System.Drawing.Point(0, 0);
|
||||
this.grid.Name = "grid";
|
||||
this.grid.PreferredColumnWidth = 100;
|
||||
this.grid.ReadOnly = true;
|
||||
this.grid.Size = new System.Drawing.Size(608, 409);
|
||||
this.grid.TabIndex = 0;
|
||||
//
|
||||
// Form1
|
||||
//
|
||||
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
|
||||
this.ClientSize = new System.Drawing.Size(608, 409);
|
||||
this.Controls.Add(this.grid);
|
||||
this.Menu = this.mnu;
|
||||
this.Name = "Form1";
|
||||
this.Text = "Form1";
|
||||
this.Load += new System.EventHandler(this.Form1_Load);
|
||||
((System.ComponentModel.ISupportInitialize)(this.grid)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
Application.Run(new Form1());
|
||||
}
|
||||
|
||||
|
||||
// __ _ _ ___ ____ __ __ __ __ __ ___ ___
|
||||
// / _)( )( )/ __)(_ _)/ \( \/ ) / _)/ \( \( _)
|
||||
// ( (_ )()( \__ \ )( ( () )) ( ( (_( () )) ) )) _)
|
||||
// \__) \__/ (___/ (__) \__/(_/\/\_) \__)\__/(___/(___)
|
||||
//
|
||||
|
||||
|
||||
private DataTable dt=null;
|
||||
private void Form1_Load(object sender, System.EventArgs e)
|
||||
{
|
||||
dt=new DataTable("LT");
|
||||
//setup the columns
|
||||
dt.Columns.Add("Locale",typeof(string));
|
||||
dt.Columns.Add("Key",typeof(string));
|
||||
dt.Columns.Add("DisplayText",typeof(string));
|
||||
|
||||
|
||||
dt.PrimaryKey=new DataColumn[]{dt.Columns[0],dt.Columns[1]};
|
||||
grid.DataSource=dt;
|
||||
}
|
||||
|
||||
private void mnuOpen_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
dlgOpen.Filter=
|
||||
"Localized text file|*.ayl";
|
||||
if(dlgOpen.ShowDialog()==DialogResult.OK)
|
||||
{
|
||||
|
||||
Import(dlgOpen.FileName);
|
||||
|
||||
}
|
||||
this.mnuSaveAsXML.Enabled=true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private void Import(string path)
|
||||
{
|
||||
LocalePortable lp =null;
|
||||
FileStream fs = new FileStream(path, FileMode.Open);
|
||||
try
|
||||
{
|
||||
// Construct a BinaryFormatter and use it to de-serialize the data from the stream.
|
||||
BinaryFormatter formatter = new BinaryFormatter();
|
||||
formatter.AssemblyFormat=System.Runtime.Serialization.Formatters.FormatterAssemblyStyle.Simple;
|
||||
|
||||
lp=(LocalePortable)formatter.Deserialize(fs);
|
||||
}
|
||||
catch (SerializationException e)
|
||||
{
|
||||
MessageBox.Show("Failed to deserialize. Reason: " + e.Message);
|
||||
throw;
|
||||
}
|
||||
finally
|
||||
{
|
||||
fs.Close();
|
||||
}
|
||||
|
||||
dt.Clear();
|
||||
this.Refresh();
|
||||
Cursor.Current=Cursors.WaitCursor;
|
||||
foreach(LocalizedTextPortable o in lp.Items)
|
||||
{
|
||||
dt.Rows.Add(new object[] {lp.Locale,o.Key,o.DisplayText});
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
private void Export(string path)
|
||||
{
|
||||
|
||||
DataSet ds=new DataSet();
|
||||
ds.Tables.Add(dt);
|
||||
ds.WriteXml(path,XmlWriteMode.WriteSchema);
|
||||
}
|
||||
|
||||
private void mnuSaveAsXML_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
dlgSave.FileName=dt.Rows[0]["Locale"].ToString();
|
||||
|
||||
dlgSave.Filter=
|
||||
"XML file|*.xml";
|
||||
|
||||
dlgSave.RestoreDirectory=true;
|
||||
dlgSave.FilterIndex=1;
|
||||
if(dlgSave.ShowDialog()==DialogResult.OK)
|
||||
{
|
||||
Cursor.Current=Cursors.WaitCursor;
|
||||
Export(dlgSave.FileName);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// /// <summary>
|
||||
// /// Contains a portable Locale
|
||||
// ///
|
||||
// ///
|
||||
// /// Used for serializing and de-serializing a locale
|
||||
// /// (i.e. importing and exporting locales outside the program)
|
||||
// /// </summary>
|
||||
// [Serializable]
|
||||
// public class LocalePortable
|
||||
// {
|
||||
//
|
||||
// private ArrayList mItems;
|
||||
// public ArrayList Items{get{return mItems;}set{mItems=value;}}
|
||||
//
|
||||
// private string mLocale;
|
||||
// public string Locale{get{return mLocale;}set{mLocale=value;}}
|
||||
//
|
||||
//
|
||||
// }
|
||||
//
|
||||
//
|
||||
//
|
||||
// /// <summary>
|
||||
// /// Contains a portable Localized text object data
|
||||
// ///
|
||||
// ///
|
||||
// /// Used for serializing and de-serializing a locale
|
||||
// /// (i.e. importing and exporting locales outside the program)
|
||||
// /// </summary>
|
||||
// [Serializable]
|
||||
// public class LocalizedTextPortable
|
||||
// {
|
||||
//
|
||||
// private string mKey;
|
||||
// public string Key{get{return mKey;}set{mKey=value;}}
|
||||
//
|
||||
// private string mDisplayText;
|
||||
// public string DisplayText{get{return mDisplayText;}set{mDisplayText=value;}}
|
||||
//
|
||||
//
|
||||
// }
|
||||
//------------------------
|
||||
}
|
||||
}
|
||||
184
utils/AylXML/Form1.resx
Normal file
184
utils/AylXML/Form1.resx
Normal file
@@ -0,0 +1,184 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 1.3
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">1.3</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1">this is my long string</data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
[base64 mime encoded serialized .NET Framework object]
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
[base64 mime encoded string representing a byte array form of the .NET Framework object]
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used forserialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>1.3</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="dlgOpen.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="dlgOpen.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="dlgOpen.Location" type="System.Drawing.Point, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</data>
|
||||
<data name="mnu.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="mnu.Location" type="System.Drawing.Point, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>111, 17</value>
|
||||
</data>
|
||||
<data name="mnu.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="menuItem1.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="menuItem1.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="mnuOpen.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="mnuOpen.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="mnuSaveAsXML.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="mnuSaveAsXML.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="grid.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</data>
|
||||
<data name="grid.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="grid.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="dlgSave.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="dlgSave.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="dlgSave.Location" type="System.Drawing.Point, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>425, 17</value>
|
||||
</data>
|
||||
<data name="$this.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</data>
|
||||
<data name="$this.Language" type="System.Globalization.CultureInfo, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>(Default)</value>
|
||||
</data>
|
||||
<data name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</data>
|
||||
<data name="$this.Localizable" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</data>
|
||||
<data name="$this.GridSize" type="System.Drawing.Size, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>8, 8</value>
|
||||
</data>
|
||||
<data name="$this.DrawGrid" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</data>
|
||||
<data name="$this.TrayHeight" type="System.Int32, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>80</value>
|
||||
</data>
|
||||
<data name="$this.Name">
|
||||
<value>Form1</value>
|
||||
</data>
|
||||
<data name="$this.SnapToGrid" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</data>
|
||||
<data name="$this.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
</root>
|
||||
BIN
utils/AylXML/Thumbs.db
Normal file
BIN
utils/AylXML/Thumbs.db
Normal file
Binary file not shown.
BIN
utils/AylXML/bin/Debug/AylXML.exe
Normal file
BIN
utils/AylXML/bin/Debug/AylXML.exe
Normal file
Binary file not shown.
BIN
utils/AylXML/bin/Debug/AylXML.pdb
Normal file
BIN
utils/AylXML/bin/Debug/AylXML.pdb
Normal file
Binary file not shown.
BIN
utils/AylXML/bin/Debug/CSLA.Core.Bindablebase.dll
Normal file
BIN
utils/AylXML/bin/Debug/CSLA.Core.Bindablebase.dll
Normal file
Binary file not shown.
BIN
utils/AylXML/bin/Debug/CSLA.Server.DataPortal.dll
Normal file
BIN
utils/AylXML/bin/Debug/CSLA.Server.DataPortal.dll
Normal file
Binary file not shown.
BIN
utils/AylXML/bin/Debug/CSLA.Server.ServicedDataPortal.dll
Normal file
BIN
utils/AylXML/bin/Debug/CSLA.Server.ServicedDataPortal.dll
Normal file
Binary file not shown.
BIN
utils/AylXML/bin/Debug/CSLA.dll
Normal file
BIN
utils/AylXML/bin/Debug/CSLA.dll
Normal file
Binary file not shown.
BIN
utils/AylXML/bin/Debug/ChilkatDotNet.dll
Normal file
BIN
utils/AylXML/bin/Debug/ChilkatDotNet.dll
Normal file
Binary file not shown.
BIN
utils/AylXML/bin/Debug/GZTW.Data.dll
Normal file
BIN
utils/AylXML/bin/Debug/GZTW.Data.dll
Normal file
Binary file not shown.
BIN
utils/AylXML/bin/Debug/GZTW.Profile.dll
Normal file
BIN
utils/AylXML/bin/Debug/GZTW.Profile.dll
Normal file
Binary file not shown.
BIN
utils/AylXML/bin/Debug/log4net.dll
Normal file
BIN
utils/AylXML/bin/Debug/log4net.dll
Normal file
Binary file not shown.
BIN
utils/AylXML/bin/Release/AylXML.exe
Normal file
BIN
utils/AylXML/bin/Release/AylXML.exe
Normal file
Binary file not shown.
BIN
utils/AylXML/bin/Release/CSLA.Core.Bindablebase.dll
Normal file
BIN
utils/AylXML/bin/Release/CSLA.Core.Bindablebase.dll
Normal file
Binary file not shown.
BIN
utils/AylXML/bin/Release/CSLA.Server.DataPortal.dll
Normal file
BIN
utils/AylXML/bin/Release/CSLA.Server.DataPortal.dll
Normal file
Binary file not shown.
BIN
utils/AylXML/bin/Release/CSLA.Server.ServicedDataPortal.dll
Normal file
BIN
utils/AylXML/bin/Release/CSLA.Server.ServicedDataPortal.dll
Normal file
Binary file not shown.
BIN
utils/AylXML/bin/Release/CSLA.dll
Normal file
BIN
utils/AylXML/bin/Release/CSLA.dll
Normal file
Binary file not shown.
BIN
utils/AylXML/bin/Release/ChilkatDotNet.dll
Normal file
BIN
utils/AylXML/bin/Release/ChilkatDotNet.dll
Normal file
Binary file not shown.
BIN
utils/AylXML/bin/Release/GZTW.Data.dll
Normal file
BIN
utils/AylXML/bin/Release/GZTW.Data.dll
Normal file
Binary file not shown.
BIN
utils/AylXML/bin/Release/GZTW.Profile.dll
Normal file
BIN
utils/AylXML/bin/Release/GZTW.Profile.dll
Normal file
Binary file not shown.
BIN
utils/AylXML/bin/Release/log4net.dll
Normal file
BIN
utils/AylXML/bin/Release/log4net.dll
Normal file
Binary file not shown.
BIN
utils/AylXML/obj/Debug/AylXML.exe
Normal file
BIN
utils/AylXML/obj/Debug/AylXML.exe
Normal file
Binary file not shown.
BIN
utils/AylXML/obj/Debug/AylXML.pdb
Normal file
BIN
utils/AylXML/obj/Debug/AylXML.pdb
Normal file
Binary file not shown.
BIN
utils/AylXML/obj/Debug/AylXML.projdata
Normal file
BIN
utils/AylXML/obj/Debug/AylXML.projdata
Normal file
Binary file not shown.
BIN
utils/AylXML/obj/Release/AylXML.Form1.resources
Normal file
BIN
utils/AylXML/obj/Release/AylXML.Form1.resources
Normal file
Binary file not shown.
BIN
utils/AylXML/obj/Release/AylXML.exe
Normal file
BIN
utils/AylXML/obj/Release/AylXML.exe
Normal file
Binary file not shown.
BIN
utils/AylXML/obj/Release/AylXML.projdata
Normal file
BIN
utils/AylXML/obj/Release/AylXML.projdata
Normal file
Binary file not shown.
164
utils/GeneratorService/GeneratorService.csproj
Normal file
164
utils/GeneratorService/GeneratorService.csproj
Normal file
@@ -0,0 +1,164 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>9.0.21022</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{EF51C1E7-8944-471D-A7CC-FC36DA2C0360}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>GeneratorService</RootNamespace>
|
||||
<AssemblyName>Generator</AssemblyName>
|
||||
<SignAssembly>true</SignAssembly>
|
||||
<AssemblyOriginatorKeyFile>..\..\keys\AyaNova.snk</AssemblyOriginatorKeyFile>
|
||||
<ApplicationIcon>Notify.ico</ApplicationIcon>
|
||||
<IsWebBootstrapper>true</IsWebBootstrapper>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
<OldToolsVersion>3.5</OldToolsVersion>
|
||||
<UpgradeBackupLocation>
|
||||
</UpgradeBackupLocation>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<PublishUrl>http://localhost/Generator/</PublishUrl>
|
||||
<Install>true</Install>
|
||||
<InstallFrom>Web</InstallFrom>
|
||||
<UpdateEnabled>true</UpdateEnabled>
|
||||
<UpdateMode>Foreground</UpdateMode>
|
||||
<UpdateInterval>7</UpdateInterval>
|
||||
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
|
||||
<UpdatePeriodically>false</UpdatePeriodically>
|
||||
<UpdateRequired>false</UpdateRequired>
|
||||
<MapFileExtensions>true</MapFileExtensions>
|
||||
<ApplicationRevision>0</ApplicationRevision>
|
||||
<ApplicationVersion>3.4.2.0</ApplicationVersion>
|
||||
<UseApplicationTrust>false</UseApplicationTrust>
|
||||
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||
<TargetFrameworkProfile>
|
||||
</TargetFrameworkProfile>
|
||||
</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>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'RELEASE AND DEPLOY BUILD|AnyCPU' ">
|
||||
<OutputPath>bin\RELEASE AND DEPLOY BUILD\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="FirebirdSql.Data.FirebirdClient, Version=2.1.0.0, Culture=neutral, PublicKeyToken=3750abcc3150b00c, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\3rdprtylibs\firebird ado.net driver\FirebirdSql.Data.FirebirdClient.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Configuration.Install" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Management" />
|
||||
<Reference Include="System.ServiceProcess" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Service1.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Service1.Designer.cs">
|
||||
<DependentUpon>Service1.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="SERVICEINSTALLER.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="Service1.resx">
|
||||
<SubType>Designer</SubType>
|
||||
<DependentUpon>Service1.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Notify.ico" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.2.0">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 2.0 %28x86%29</ProductName>
|
||||
<Install>true</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.0">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.0 %28x86%29</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.5</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.5 SP1</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\source\bizobjects\AyaLib\GZTW.AyaNova.BLL.csproj">
|
||||
<Project>{50B807B6-FC35-4CC3-B54D-91C78426A943}</Project>
|
||||
<Name>GZTW.AyaNova.BLL</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\source\csla10\CSLA.Core.Bindablebase\CSLA.Core.Bindablebase.csproj">
|
||||
<Project>{C2392355-12A9-4197-A1D3-603C390B1E62}</Project>
|
||||
<Name>CSLA.Core.Bindablebase</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\source\csla10\CSLA.Server.DataPortal\CSLA.Server.DataPortal.vbproj">
|
||||
<Project>{80828E2C-E9FB-4E73-A27C-7F9CDB96FCDE}</Project>
|
||||
<Name>CSLA.Server.DataPortal</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\source\csla10\CSLA\CSLA.vbproj">
|
||||
<Project>{1B9A38BB-461A-47A4-AD72-099C694138A0}</Project>
|
||||
<Name>CSLA</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\source\Data\Data\GZTW.Data.csproj">
|
||||
<Project>{701893AA-C042-4FB2-8643-E139372C1117}</Project>
|
||||
<Name>GZTW.Data</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\source\Profile\GZTW.Profile\GZTW.Profile.csproj">
|
||||
<Project>{EDE897E2-E2E6-441D-9F83-0B973AE09670}</Project>
|
||||
<Name>GZTW.Profile</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="..\..\keys\AyaNova.snk">
|
||||
<Link>AyaNova.snk</Link>
|
||||
</None>
|
||||
<None Include="app.config" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
24
utils/GeneratorService/GeneratorService.csproj.user
Normal file
24
utils/GeneratorService/GeneratorService.csproj.user
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<PublishUrlHistory>http://localhost/Generator/</PublishUrlHistory>
|
||||
<InstallUrlHistory>
|
||||
</InstallUrlHistory>
|
||||
<SupportUrlHistory>
|
||||
</SupportUrlHistory>
|
||||
<UpdateUrlHistory>
|
||||
</UpdateUrlHistory>
|
||||
<BootstrapperUrlHistory>
|
||||
</BootstrapperUrlHistory>
|
||||
<FallbackCulture>en-US</FallbackCulture>
|
||||
<VerifyUploadedFiles>true</VerifyUploadedFiles>
|
||||
<ErrorReportUrlHistory>
|
||||
</ErrorReportUrlHistory>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<StartArguments>-i</StartArguments>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<StartArguments>-u</StartArguments>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
BIN
utils/GeneratorService/Notify.ico
Normal file
BIN
utils/GeneratorService/Notify.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
61
utils/GeneratorService/Program.cs
Normal file
61
utils/GeneratorService/Program.cs
Normal file
@@ -0,0 +1,61 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ServiceProcess;
|
||||
using System.Text;
|
||||
using System.Reflection;
|
||||
|
||||
namespace GeneratorService
|
||||
{
|
||||
static class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
/// </summary>
|
||||
static void Main(string[] args)
|
||||
{
|
||||
|
||||
if (args.Length > 0)
|
||||
{
|
||||
if (args[0] == "-i")
|
||||
{
|
||||
ServiceInstaller si = new ServiceInstaller();
|
||||
si.InstallService(Assembly.GetExecutingAssembly().Location, "AyaNovaGenerator", "AyaNova generator service");
|
||||
}
|
||||
else if (args[0] == "-u")
|
||||
{
|
||||
//Attempt to stop the service first
|
||||
ServiceController sc = new ServiceController("AyaNovaGenerator");
|
||||
if (sc.Status == ServiceControllerStatus.Running)
|
||||
if (sc.CanStop)
|
||||
sc.Stop();
|
||||
sc.WaitForStatus(ServiceControllerStatus.Stopped, new System.TimeSpan(0,0,30));//wait max 30 seconds to stop then just proceed anyway
|
||||
sc.Dispose();
|
||||
|
||||
ServiceInstaller si = new ServiceInstaller();
|
||||
si.UnInstallService("AyaNovaGenerator");
|
||||
}
|
||||
} else
|
||||
{
|
||||
System.ServiceProcess.ServiceBase[] ServicesToRun;
|
||||
ServicesToRun = new System.ServiceProcess.ServiceBase[] { new AyGenSrv() };
|
||||
System.ServiceProcess.ServiceBase.Run(ServicesToRun);
|
||||
}
|
||||
|
||||
|
||||
|
||||
//ServiceBase[] ServicesToRun;
|
||||
|
||||
//// More than one user Service may run within the same process. To add
|
||||
//// another service to this process, change the following line to
|
||||
//// create a second service object. For example,
|
||||
////
|
||||
//// ServicesToRun = new ServiceBase[] {new Service1(), new MySecondUserService()};
|
||||
////
|
||||
//ServicesToRun = new ServiceBase[] { new AyGenSrv() };
|
||||
|
||||
//ServiceBase.Run(ServicesToRun);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
33
utils/GeneratorService/Properties/AssemblyInfo.cs
Normal file
33
utils/GeneratorService/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
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("Generator")]
|
||||
[assembly: AssemblyDescription("A windows service to process notification and preventive maintenance work orders for AyaNova")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("Ground Zero Tech-Works Inc.")]
|
||||
[assembly: AssemblyProduct("Generator")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2006-2018 Ground Zero Tech-Works Inc. All rights reserved.")]
|
||||
[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("bf2b5726-6385-490a-84f1-3618892be1ba")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
[assembly: AssemblyVersion("7.5.0.0")]
|
||||
[assembly: AssemblyFileVersion("7.5.0.0")]
|
||||
185
utils/GeneratorService/SERVICEINSTALLER.cs
Normal file
185
utils/GeneratorService/SERVICEINSTALLER.cs
Normal file
@@ -0,0 +1,185 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
using System.Runtime.InteropServices;
|
||||
namespace GeneratorService
|
||||
{
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Summary description for ServiceInstaller.
|
||||
/// </summary>
|
||||
class ServiceInstaller
|
||||
{
|
||||
#region Private Variables
|
||||
//private string _servicePath;
|
||||
//private string _serviceName;
|
||||
//private string _serviceDisplayName;
|
||||
#endregion Private Variables
|
||||
#region DLLImport
|
||||
[DllImport("advapi32.dll")]
|
||||
public static extern IntPtr OpenSCManager(string lpMachineName, string lpSCDB, int scParameter);
|
||||
[DllImport("Advapi32.dll")]
|
||||
public static extern IntPtr CreateService(IntPtr SC_HANDLE, string lpSvcName, string lpDisplayName,
|
||||
int dwDesiredAccess, int dwServiceType, int dwStartType, int dwErrorControl, string lpPathName,
|
||||
string lpLoadOrderGroup, int lpdwTagId, string lpDependencies, string lpServiceStartName, string lpPassword);
|
||||
[DllImport("advapi32.dll")]
|
||||
public static extern void CloseServiceHandle(IntPtr SCHANDLE);
|
||||
[DllImport("advapi32.dll")]
|
||||
public static extern int StartService(IntPtr SVHANDLE, int dwNumServiceArgs, string lpServiceArgVectors);
|
||||
[DllImport("advapi32.dll", SetLastError = true)]
|
||||
public static extern IntPtr OpenService(IntPtr SCHANDLE, string lpSvcName, int dwNumServiceArgs);
|
||||
[DllImport("advapi32.dll")]
|
||||
public static extern int DeleteService(IntPtr SVHANDLE);
|
||||
[DllImport("kernel32.dll")]
|
||||
public static extern int GetLastError();
|
||||
#endregion DLLImport
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
/// </summary>
|
||||
#region Main method + testing code
|
||||
// [STAThread]
|
||||
// static void Main(string[] args)
|
||||
//{
|
||||
//// TODO: Add code to start application here
|
||||
//#region Testing
|
||||
//// Testing --------------
|
||||
//string svcPath;
|
||||
//string svcName;
|
||||
//string svcDispName;
|
||||
////path to the service that you want to install
|
||||
//svcPath = @"C:\build\service\Debug\Service.exe";
|
||||
//svcDispName="Service Display Name";
|
||||
//svcName= "Service Name";
|
||||
//ServiceInstaller c = new ServiceInstaller();
|
||||
//c.InstallService(svcPath, svcName, svcDispName);
|
||||
//Console.Read();
|
||||
//Testing --------------
|
||||
//#endregion Testing
|
||||
//}
|
||||
#endregion Main method + testing code - Commented
|
||||
/// <summary>
|
||||
/// This method installs and runs the service in the service control manager.
|
||||
/// </summary>
|
||||
/// <param name="svcPath">The complete path of the service.</param>
|
||||
/// <param name="svcName">Name of the service.</param>
|
||||
/// <param name="svcDispName">Display name of the service.</param>
|
||||
/// <returns>True if the process went thro successfully. False if there was any error.</returns>
|
||||
public bool InstallService(string svcPath, string svcName, string svcDispName)
|
||||
{
|
||||
#region Constants declaration.
|
||||
int SC_MANAGER_CREATE_SERVICE = 0x0002;
|
||||
int SERVICE_WIN32_OWN_PROCESS = 0x00000010;
|
||||
//int SERVICE_DEMAND_START = 0x00000003;
|
||||
int SERVICE_ERROR_NORMAL = 0x00000001;
|
||||
int STANDARD_RIGHTS_REQUIRED = 0xF0000;
|
||||
int SERVICE_QUERY_CONFIG = 0x0001;
|
||||
int SERVICE_CHANGE_CONFIG = 0x0002;
|
||||
int SERVICE_QUERY_STATUS = 0x0004;
|
||||
int SERVICE_ENUMERATE_DEPENDENTS = 0x0008;
|
||||
int SERVICE_START = 0x0010;
|
||||
int SERVICE_STOP = 0x0020;
|
||||
int SERVICE_PAUSE_CONTINUE = 0x0040;
|
||||
int SERVICE_INTERROGATE = 0x0080;
|
||||
int SERVICE_USER_DEFINED_CONTROL = 0x0100;
|
||||
int SERVICE_ALL_ACCESS = (STANDARD_RIGHTS_REQUIRED |
|
||||
SERVICE_QUERY_CONFIG |
|
||||
SERVICE_CHANGE_CONFIG |
|
||||
SERVICE_QUERY_STATUS |
|
||||
SERVICE_ENUMERATE_DEPENDENTS |
|
||||
SERVICE_START |
|
||||
SERVICE_STOP |
|
||||
SERVICE_PAUSE_CONTINUE |
|
||||
SERVICE_INTERROGATE |
|
||||
SERVICE_USER_DEFINED_CONTROL);
|
||||
int SERVICE_AUTO_START = 0x00000002;
|
||||
#endregion Constants declaration.
|
||||
try
|
||||
{
|
||||
if (svcPath.Contains(" "))
|
||||
svcPath = "\"" + svcPath + "\"";
|
||||
IntPtr sc_handle = OpenSCManager(null, null, SC_MANAGER_CREATE_SERVICE);
|
||||
if (sc_handle.ToInt32() != 0)
|
||||
{
|
||||
IntPtr sv_handle = CreateService(sc_handle, svcName, svcDispName, SERVICE_ALL_ACCESS, SERVICE_WIN32_OWN_PROCESS, SERVICE_AUTO_START, SERVICE_ERROR_NORMAL, svcPath, null, 0, null, null, null);
|
||||
|
||||
//IntPtr sv_handle = CreateService(sc_handle, svcName, svcDispName, SERVICE_ALL_ACCESS, SERVICE_WIN32_OWN_PROCESS, SERVICE_AUTO_START, SERVICE_ERROR_NORMAL, svcPath, null, 0, null, svcUserName, svcPassword);
|
||||
|
||||
|
||||
if (sv_handle.ToInt32() == 0)
|
||||
{
|
||||
Console.WriteLine("Error on CreateService: " + GetLastError().ToString());
|
||||
CloseServiceHandle(sc_handle);
|
||||
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
////now trying to start the service
|
||||
//int i = StartService(sv_handle, 0, null);
|
||||
//// If the value i is zero, then there was an error starting the service.
|
||||
//// note: error may arise if the service is already running or some other problem.
|
||||
//if (i == 0)
|
||||
//{
|
||||
// //Console.WriteLine("Couldnt start service");
|
||||
// return false;
|
||||
//}
|
||||
//Console.WriteLine("Success");
|
||||
CloseServiceHandle(sc_handle);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.WriteLine("Error on OpenSCManager for create: " + GetLastError().ToString());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// This method uninstalls the service from the service conrol manager.
|
||||
/// </summary>
|
||||
/// <param name="svcName">Name of the service to uninstall.</param>
|
||||
public bool UnInstallService(string svcName)
|
||||
{
|
||||
int GENERIC_WRITE = 0x40000000;
|
||||
IntPtr sc_hndl = OpenSCManager(null, null, GENERIC_WRITE);
|
||||
if (sc_hndl.ToInt32() != 0)
|
||||
{
|
||||
int DELETE = 0x10000;
|
||||
IntPtr svc_hndl = OpenService(sc_hndl, svcName, DELETE);
|
||||
//Console.WriteLine(svc_hndl.ToInt32());
|
||||
|
||||
if (svc_hndl.ToInt32() != 0)
|
||||
{
|
||||
int i = DeleteService(svc_hndl);
|
||||
if (i != 0)
|
||||
{
|
||||
CloseServiceHandle(sc_hndl);
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.WriteLine("Error in DeleteService: " + GetLastError().ToString());
|
||||
CloseServiceHandle(sc_hndl);
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.WriteLine("Error in OpenSCManager for delete: " + GetLastError().ToString());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
41
utils/GeneratorService/Service1.Designer.cs
generated
Normal file
41
utils/GeneratorService/Service1.Designer.cs
generated
Normal file
@@ -0,0 +1,41 @@
|
||||
namespace GeneratorService
|
||||
{
|
||||
partial class AyGenSrv
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#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()
|
||||
{
|
||||
//
|
||||
// AyGenSrv
|
||||
//
|
||||
this.CanPauseAndContinue = true;
|
||||
this.ServiceName = "AyaNovaGenerator";
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
183
utils/GeneratorService/Service1.cs
Normal file
183
utils/GeneratorService/Service1.cs
Normal file
@@ -0,0 +1,183 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Diagnostics;
|
||||
using System.ServiceProcess;
|
||||
using System.Text;
|
||||
using GZTW.AyaNova.BLL;
|
||||
|
||||
namespace GeneratorService
|
||||
{
|
||||
public partial class AyGenSrv : ServiceBase
|
||||
{
|
||||
private System.Timers.Timer timer = null;
|
||||
private bool Initialized = false;
|
||||
private int maxTries = 0;
|
||||
private const int retryInterval = 60000;
|
||||
private const int processInterval = 300000;
|
||||
//case 2048
|
||||
private string eventLogSource = "AyaNovaGenerator";
|
||||
|
||||
public AyGenSrv()
|
||||
{
|
||||
InitializeComponent();
|
||||
//Init timer and set initial interval to 1 second
|
||||
//so that it starts "immediately" when the service starts
|
||||
//after it's fired it will go to it's normal cycle of 5 minutes
|
||||
timer = new System.Timers.Timer(1000);
|
||||
//set the event handler for the timer
|
||||
timer.Elapsed += new System.Timers.ElapsedEventHandler(this.ServiceTimer_Tick);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
private bool TryConnecting()
|
||||
{
|
||||
//Failed to connect after maxtries?
|
||||
if (maxTries > 9)
|
||||
{
|
||||
EventLog.WriteEntry(eventLogSource,
|
||||
"Connection to AyaNova database could not be initialized after 10 attempts.\r\n" +
|
||||
"Other errors in the application error log before or after this one may provide more details.\r\n" +
|
||||
"The configuration file config.txt probably has an incorrect connection setting\r\n" +
|
||||
"to access the database (wrong path, login or password) or the database server is not running.", EventLogEntryType.Error);
|
||||
QuitNow();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (GZTW.AyaNova.BLL.AyaBizUtils.AyaNovaConnectionSetting.SingleUserConnection)
|
||||
{
|
||||
EventLog.WriteEntry(eventLogSource,
|
||||
"The current database connection in the config.txt file specifies a stand alone embedded FireBird database.\r\n" +
|
||||
"Generator is not required for a single user database connection. It's required for a shared network connection only.\r\n" +
|
||||
"In a single user connection AyaNova handles the tasks of Generator automatically.\r\n" +
|
||||
"Generator will now close.\r\n" +
|
||||
"See the AyaNova manual for more details.", EventLogEntryType.Error);
|
||||
QuitNow();
|
||||
return false;
|
||||
}
|
||||
|
||||
//not timed out so try to connect
|
||||
try
|
||||
{
|
||||
GZTW.AyaNova.BLL.AyaBizUtils.Initialize();
|
||||
//case 2093 ampersand in name crashing generator service
|
||||
// eventLogSource = "AyaNovaGenerator - (" + AyaBizUtils.REGTO + ")";
|
||||
eventLogSource = "AyaNovaGenerator - (" + System.Text.RegularExpressions.Regex.Replace(AyaBizUtils.REGTO, @"[^A-Za-z0-9]+", "") +")";
|
||||
|
||||
Initialized = true;
|
||||
EventLog.WriteEntry(eventLogSource,
|
||||
"Connection established", EventLogEntryType.Information);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Initialized = false;
|
||||
maxTries++;
|
||||
|
||||
if(maxTries < 10)
|
||||
EventLog.WriteEntry(eventLogSource,
|
||||
"Connection failed (attempt "+maxTries.ToString()+" of 10 ) - retrying in 1 minute", EventLogEntryType.Warning);
|
||||
|
||||
//Only log the last attempt, earlier ones could have been waiting for dbserver to start and not relevant
|
||||
string strMessage = ex.Message;
|
||||
if (ex.InnerException != null)
|
||||
strMessage = ex.InnerException.Message;
|
||||
if(maxTries > 9)
|
||||
EventLog.WriteEntry(eventLogSource, strMessage, EventLogEntryType.Error);
|
||||
|
||||
}
|
||||
|
||||
return Initialized;
|
||||
}
|
||||
|
||||
private void QuitNow()
|
||||
{
|
||||
timer.Stop();
|
||||
timer.AutoReset = false;
|
||||
timer.Enabled = false;
|
||||
this.Stop();
|
||||
}
|
||||
|
||||
protected override void OnStart(string[] args)
|
||||
{
|
||||
|
||||
timer.AutoReset = true;
|
||||
timer.Enabled = true;
|
||||
timer.Start();
|
||||
|
||||
|
||||
}
|
||||
|
||||
protected override void OnStop()
|
||||
{
|
||||
|
||||
timer.Stop();
|
||||
timer.AutoReset = false;
|
||||
timer.Enabled = false;
|
||||
base.OnStop();
|
||||
}
|
||||
|
||||
protected override void OnPause()
|
||||
{
|
||||
timer.Stop();
|
||||
base.OnPause();
|
||||
}
|
||||
|
||||
protected override void OnContinue()
|
||||
{
|
||||
|
||||
timer.Start();
|
||||
base.OnContinue();
|
||||
}
|
||||
|
||||
|
||||
//process
|
||||
private void ServiceTimer_Tick(object sender, System.Timers.ElapsedEventArgs e)
|
||||
{
|
||||
this.timer.Stop();
|
||||
|
||||
|
||||
//make an appearance of less memory for those that don't understand how .net memory allocation works
|
||||
//and bitch to us that task manager shows it's using too much memory
|
||||
try
|
||||
{
|
||||
System.Diagnostics.Process loProcess = System.Diagnostics.Process.GetCurrentProcess();
|
||||
loProcess.MaxWorkingSet = loProcess.MaxWorkingSet;//doesn't matter what you set it to, just setting it triggers re-evalutaion
|
||||
}
|
||||
catch { };
|
||||
|
||||
//If not initialized restart with a shorter timer than normal
|
||||
if (!Initialized)
|
||||
{
|
||||
if (!TryConnecting())
|
||||
{
|
||||
this.timer.Interval = retryInterval;
|
||||
this.timer.Start();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
//It's initialized so process as normal
|
||||
try
|
||||
{
|
||||
GenProcess.GO("121605GENERATOR", "121605GENERATOR");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string strMessage = ex.Message;
|
||||
if (ex.InnerException != null)
|
||||
strMessage = ex.InnerException.Message;
|
||||
EventLog.WriteEntry(eventLogSource, strMessage, EventLogEntryType.Error);
|
||||
}
|
||||
|
||||
|
||||
|
||||
this.timer.Interval = processInterval;
|
||||
this.timer.Start();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
123
utils/GeneratorService/Service1.resx
Normal file
123
utils/GeneratorService/Service1.resx
Normal file
@@ -0,0 +1,123 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
</root>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user