Commit for development environment setup

This commit is contained in:
2023-06-19 16:12:33 -04:00
parent be72063a3c
commit bbce2ad0a6
2209 changed files with 1171775 additions and 625 deletions

View File

@@ -0,0 +1,55 @@
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.1.*")]
//
// 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.
//

View 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.1.*")]
//
// 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("E:\\proms.net\\Public Key\\vlnkey.snk")]
[assembly: AssemblyKeyName("")]

View File

@@ -0,0 +1,301 @@
/*********************************************************************************************
* Copyright 2002 - Volian Enterprises, Inc. All rights reserved.
* Volian Enterprises - Proprietary Information - DO NOT COPY OR DISTRIBUTE
* ------------------------------------------------------------------------------
* $Workfile: ROField.cs $ $Revision: 11 $
* $Author: Kathy $ $Date: 4/04/03 9:41a $
*
* $History: ROField.cs $
*
* ***************** Version 11 *****************
* User: Kathy Date: 4/04/03 Time: 9:41a
* Updated in $/LibSource/ROFields
* B2003-030: get correct field type for new image
*
* ***************** Version 10 *****************
* User: Kathy Date: 12/10/02 Time: 2:27p
* Updated in $/LibSource/ROFields
* fieldname special chars
*
* ***************** Version 9 *****************
* User: Kathy Date: 12/02/02 Time: 8:30a
* Updated in $/LibSource/ROFields
* fieldname replace chars
*
* ***************** Version 8 *****************
* User: Kathy Date: 11/11/02 Time: 7:14a
* Updated in $/LibSource/ROFields
* image field type should be 32 not 20
*
* ***************** Version 7 *****************
* User: Kathy Date: 10/15/02 Time: 2:17p
* Updated in $/LibSource/ROFields
* combo field number
*
* ***************** Version 6 *****************
* User: Kathy Date: 9/27/02 Time: 1:11p
* Updated in $/LibSource/ROFields
* fix digit as first char in fieldname
*
* ***************** Version 5 *****************
* User: Kathy Date: 9/25/02 Time: 2:31p
* Updated in $/LibSource/ROFields
* multitxt->variable
*
* ***************** Version 4 *****************
* User: Kathy Date: 9/03/02 Time: 2:53p
* Updated in $/LibSource/ROFields
* missing " on image field def.
*
* ***************** Version 3 *****************
* User: Kathy Date: 8/30/02 Time: 11:56a
* Updated in $/LibSource/ROFields
* image
*
* ***************** Version 2 *****************
* User: Kathy Date: 8/28/02 Time: 10:59a
* Updated in $/LibSource/ROFields
* development
*********************************************************************************************/
using System;
using System.Text;
namespace ROFields
{
public enum FieldTypes: uint
{
Nil=0, SingleTxt=1, VariableTxt=2, FrmtSingleTxt=4, XYPlot=8, Table=10, Image=32,
MultiTxt=40, Combination=128, MultiFld=100
}
/// <summary>
/// Summary description for ROField: This class contains RO Field information. Each ROField
/// contains:
/// string fieldname - the name of the field
/// string recid - its database record id (used to interface to the database - null if
/// not created yet.
/// string masterrecID - its record id in the master if appropriate.
/// uint fieldtype - the field type as defined in the enum FieldTypes (listed above)
/// </summary>
public class ROField
{
string fieldname;
string recID;
string masterrecID;
uint fldtype;
// constuctor
public ROField(string fname, string rID, string mrID, uint fieldtype)
{
fieldname = fname;
recID = rID;
masterrecID = mrID;
fldtype = fieldtype;
}
public string GetFieldname { get {return fieldname;}}
public string GetRecID { get {return recID;}}
public string GetMasterRecID { get {return masterrecID;}}
public uint GetFieldType{ get {return fldtype;}}
public void SetFieldname(string name) {fieldname = name;}
public void SetRecID(string recid) {recID = recid;}
public void SetMasterRecID(string mrecid) {masterrecID = mrecid;}
public void SetFieldType(uint ftype) {fldtype = ftype;}
// Given a schema string, determine which RO Field type it is.
public uint ParseFieldType(string info)
{
int indx;
// formatted single line text has 'pattern' in schema definition)
indx = info.IndexOf("xsd:pattern");
if (indx >= 0) return (uint) FieldTypes.FrmtSingleTxt;
// Combination field has 'choice' in schema definition
indx = info.IndexOf("xsd:choice");
if (indx >= 0) return (uint) FieldTypes.Combination;
// image - search for 'Image_Height', in case Image is in the string from some other mechanism
indx = info.IndexOf("Image_Height");
if (indx >=0) return (uint) FieldTypes.Image;
// single line text has 'normalizedString' (pattern does too, but
// it would be eliminated above.
indx = info.IndexOf("xsd:normalizedString");
if (indx >=0) return (uint) FieldTypes.SingleTxt;
// now look for all of the multi-line fields: multi text, table, & XY Plot
indx = info.IndexOf("xsd:string");
if (indx <0) indx = info.IndexOf("xsd:String");
if (indx >=0)
{
int indxspecific;
indxspecific = info.IndexOf("Variable");
if (indxspecific >= 0) return (uint) FieldTypes.VariableTxt;
indxspecific = info.IndexOf("Table");
if (indxspecific >= 0) return (uint) FieldTypes.Table;
indxspecific = info.IndexOf("XYPlot");
if (indxspecific >= 0) return (uint) FieldTypes.XYPlot;
}
// indx = info.IndexOf("Image");
// if (indx >=0) return (uint) FieldTypes.Image;
return 1000;
}
// Creates a string representing the schema for this field. note that the input
// fieldname will override that which is stored for this ROField (for editting
// purposes).
public string MakeFieldName(string fldname)
{
if (fldname.Length < 2)
return fldname;
// a digit cannot start an xml fieldname, prepend a "__" to it.
string tmp0;
if (char.IsDigit(fldname,0))
tmp0 = "__" + fldname;
else
tmp0 = fldname;
// an xml fieldname cannot have a space, change it to a "__"
string tmpstr = tmp0.Replace(" ","__");
int len = tmpstr.Length;
int cnt = 0;
// this is also our sequence that tells us the follow 3 digits is the ascii number (base 10)
// of the character we replaced.
string OKpunch = "-._";
string outstr = "";
int decval;
while (cnt < len)
{
char tmpchr = tmpstr[cnt];
if(!char.IsLetterOrDigit(tmpchr)&& (OKpunch.IndexOf(tmpchr) == -1) )
{
decval = tmpchr;
outstr += OKpunch + decval.ToString("D3");
}
else
{
outstr += tmpchr.ToString();
}
cnt++;
}
return outstr;
}
public string MakeSchemaString(string fieldname, string width, string pattern)
{
uint ftype = this.GetFieldType;
StringBuilder strbld = new StringBuilder();
strbld.Append("<xsd:element name=\"");
strbld.Append(MakeFieldName(fieldname));
strbld.Append("\" minOccurs=\"0\">\n");
if (ftype == (uint)FieldTypes.VariableTxt || ftype == (uint)FieldTypes.Table || ftype == (uint)FieldTypes.XYPlot)
{
strbld.Append("<xsd:annotation>\n<xsd:documentation xml:lang=\"en\">");
if (ftype == (uint)FieldTypes.VariableTxt)
strbld.Append("Variable");
else if (ftype == (uint)FieldTypes.Table)
strbld.Append("Table");
else
strbld.Append("XYPlot");
strbld.Append("</xsd:documentation>\n</xsd:annotation>");
}
strbld.Append("<xsd:simpleType>\n<xsd:restriction base=\"xsd:");
if (ftype == (uint)FieldTypes.FrmtSingleTxt || ftype == (uint)FieldTypes.SingleTxt)
strbld.Append("normalizedString\">\n<xsd:maxLength value=\"");
else
strbld.Append("String\">\n<xsd:maxLength value=\"");
strbld.Append(width);
strbld.Append("\" />\n");
if (ftype == (uint)FieldTypes.FrmtSingleTxt)
{
strbld.Append("<xsd:pattern value=\"");
strbld.Append(pattern);
strbld.Append("\" />\n");
}
strbld.Append("</xsd:restriction>\n</xsd:simpleType>\n</xsd:element>");
return (strbld.ToString());
}
public string MakeComboSchemaString(string fieldname, bool fixd, string fixdwid, bool multi, string multiwid,
bool table, string tablewid, bool xyplot, string xyplotwid)
{
StringBuilder strbld = new StringBuilder();
strbld.Append("<xsd:choice>\n");
if (fixd == true)
{
strbld.Append("<xsd:element name=\"");
strbld.Append(MakeFieldName(fieldname)+"a");
strbld.Append("\" type=\"Fixed\" minOccurs=\"0\">\n");
strbld.Append("<xsd:simpleType>\n<xsd:restriction base=\"xsd:normalizedString\">\n<xsd:maxLength value=\"");
strbld.Append(fixdwid);
strbld.Append("\" />\n</xsd:restriction>\n</xsd:simpleType>\n</xsd:element>\n");
}
if (multi == true)
{
strbld.Append("<xsd:element name=\"");
strbld.Append(MakeFieldName(fieldname)+"b");
strbld.Append("\" type=\"Variable\" minOccurs=\"0\">\n");
strbld.Append("<xsd:annotation>\n<xsd:documentation xml:lang=\"en\">\nVariable\n");
strbld.Append("</xsd:documentation>\n</xsd:annotation>\n<xsd:simpleType name=\"Variable\">\n");
strbld.Append("<xsd:restriction base=\"xsd:string\">\n<xsd:maxLength value=\"");
strbld.Append(multiwid);
strbld.Append("\" />\n</xsd:restriction>\n</xsd:simpleType>\n</xsd:element>\n");
}
if (table == true)
{
strbld.Append("<xsd:element name=\"");
strbld.Append(MakeFieldName(fieldname)+"c");
strbld.Append("\" type=\"Table\" minOccurs=\"0\">\n");
strbld.Append("<xsd:annotation>\n<xsd:documentation xml:lang=\"en\">\nTable\n");
strbld.Append("</xsd:documentation>\n</xsd:annotation>\n<xsd:simpleType name=\"Variable\">\n");
strbld.Append("<xsd:restriction base=\"xsd:string\">\n<xsd:maxLength value=\"");
strbld.Append(tablewid);
strbld.Append("\" />\n</xsd:restriction>\n</xsd:simpleType>\n</xsd:element>");
}
if (xyplot == true)
{
strbld.Append("<xsd:element name=\"");
strbld.Append(MakeFieldName(fieldname)+"d");
strbld.Append("\" type=\"XY_Plot\" minOccurs=\"0\">\n");
strbld.Append("<xsd:annotation>\n<xsd:documentation xml:lang=\"en\">\nXYPlot\n");
strbld.Append("</xsd:documentation>\n</xsd:annotation>\n<xsd:simpleType name=\"Variable\">\n");
strbld.Append("<xsd:restriction base=\"xsd:string\">\n<xsd:maxLength value=\"");
strbld.Append(xyplotwid);
strbld.Append("\" />\n</xsd:restriction>\n</xsd:simpleType>\n</xsd:element>");
}
strbld.Append("</xsd:choice>");
return (strbld.ToString());
}
public string MakeImageSchemaString(string fieldname)
{
StringBuilder strbld = new StringBuilder();
strbld.Append("<xsd:element name=\"");
strbld.Append(MakeFieldName(fieldname));
strbld.Append("\">\n<xsd:complexType>\n<xsd:sequence>");
strbld.Append("<xsd:element name=\"Image_Filename\" minOccurs=\"0\">\n");
strbld.Append("<xsd:simpleType>\n<xsd:annotation>\n");
strbld.Append("<xsd:documentation xml:lang=\"en\">VLN_FINDFILE</xsd:documentation>\n");
strbld.Append("</xsd:annotation>\n<xsd:restriction base=\"xsd:normalizedString\">\n");
strbld.Append("<xsd:maxLength value=\"70\" />\n</xsd:restriction>\n</xsd:simpleType>");
strbld.Append("</xsd:element>\n<xsd:element name=\"Image_Height\" minOccurs=\"0\">\n");
strbld.Append("<xsd:simpleType>\n<xsd:annotation>\n");
strbld.Append("<xsd:documentation xml:lang=\"en\">Lines (6 lines per inch)</xsd:documentation>\n");
strbld.Append("</xsd:annotation>\n<xsd:restriction base=\"xsd:normalizedString\">\n");
strbld.Append("<xsd:maxLength value=\"10\" />\n</xsd:restriction>\n</xsd:simpleType>\n");
strbld.Append("</xsd:element>\n<xsd:element name=\"Image_Width\" minOccurs=\"0\">\n");
strbld.Append("<xsd:simpleType>\n<xsd:annotation>\n");
strbld.Append("<xsd:documentation xml:lang=\"en\">Characters (12 chars. Per inch)</xsd:documentation>\n");
strbld.Append("</xsd:annotation>\n<xsd:restriction base=\"xsd:normalizedString\">\n");
strbld.Append("<xsd:maxLength value=\"10\" />\n</xsd:restriction>\n</xsd:simpleType>\n");
strbld.Append("</xsd:element>\n</xsd:sequence>\n</xsd:complexType>\n</xsd:element>");
return(strbld.ToString());
}
}
}

View File

@@ -0,0 +1,102 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectType>Local</ProjectType>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{0C782592-AA05-11D6-84D1-00A0CC271352}</ProjectGuid>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ApplicationIcon>
</ApplicationIcon>
<AssemblyKeyContainerName>
</AssemblyKeyContainerName>
<AssemblyName>ROField</AssemblyName>
<AssemblyOriginatorKeyFile>
</AssemblyOriginatorKeyFile>
<DefaultClientScript>JScript</DefaultClientScript>
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
<DefaultTargetSchema>IE50</DefaultTargetSchema>
<DelaySign>false</DelaySign>
<OutputType>Library</OutputType>
<RootNamespace>ROField</RootNamespace>
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
<StartupObject>
</StartupObject>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
</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>
<ItemGroup>
<Reference Include="System">
<Name>System</Name>
</Reference>
<Reference Include="System.Data">
<Name>System.Data</Name>
</Reference>
<Reference Include="System.Xml">
<Name>System.XML</Name>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="AssemblyInfo.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="ROField.cs">
<SubType>Code</SubType>
</Compile>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
</Project>

View File

@@ -0,0 +1,21 @@
Microsoft Visual Studio Solution File, Format Version 8.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ROFields", "ROFields.csproj", "{0C782592-AA05-11D6-84D1-00A0CC271352}"
ProjectSection(ProjectDependencies) = postProject
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfiguration) = preSolution
Debug = Debug
Release = Release
EndGlobalSection
GlobalSection(ProjectConfiguration) = postSolution
{0C782592-AA05-11D6-84D1-00A0CC271352}.Debug.ActiveCfg = Debug|.NET
{0C782592-AA05-11D6-84D1-00A0CC271352}.Debug.Build.0 = Debug|.NET
{0C782592-AA05-11D6-84D1-00A0CC271352}.Release.ActiveCfg = Release|.NET
{0C782592-AA05-11D6-84D1-00A0CC271352}.Release.Build.0 = Release|.NET
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
EndGlobalSection
GlobalSection(ExtensibilityAddIns) = postSolution
EndGlobalSection
EndGlobal