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,20 @@
using System;
using System.Collections.Generic;
using System.Windows.Forms;
namespace WestinghouseROImport
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new frmROImport());
}
}
}

View 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("WestinghouseROImport")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("WestinghouseROImport")]
[assembly: AssemblyCopyright("Copyright © 2012")]
[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("4b2d9102-7b49-40d3-af03-5e343b9dbcdd")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@@ -0,0 +1,71 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.4234
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace WestinghouseROImport.Properties
{
/// <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", "2.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 ((resourceMan == null))
{
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("WestinghouseROImport.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;
}
}
}
}

View File

@@ -0,0 +1,117 @@
<?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.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="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</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" 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>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>

View File

@@ -0,0 +1,56 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.4234
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace WestinghouseROImport.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "8.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default {
get {
return defaultInstance;
}
}
[global::System.Configuration.ApplicationScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)]
[global::System.Configuration.DefaultSettingValueAttribute("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\VEWest\\RO\\ROMaster.mdb")]
public string ROMasterConnectionString {
get {
return ((string)(this["ROMasterConnectionString"]));
}
}
[global::System.Configuration.ApplicationScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)]
[global::System.Configuration.DefaultSettingValueAttribute("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\VEWest\\ROImport.mdb")]
public string ROImportConnectionString {
get {
return ((string)(this["ROImportConnectionString"]));
}
}
[global::System.Configuration.ApplicationScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)]
[global::System.Configuration.DefaultSettingValueAttribute("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\VEWest\\ROCPPImport.mdb")]
public string ROCPPImportConnectionString {
get {
return ((string)(this["ROCPPImportConnectionString"]));
}
}
}
}

View File

@@ -0,0 +1,30 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="WestinghouseROImport.Properties" GeneratedClassName="Settings">
<Profiles />
<Settings>
<Setting Name="ROMasterConnectionString" Type="(Connection string)" Scope="Application">
<DesignTimeValue Profile="(Default)">&lt;?xml version="1.0" encoding="utf-16"?&gt;
&lt;SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
&lt;ConnectionString&gt;Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\VEWest\RO\ROMaster.mdb&lt;/ConnectionString&gt;
&lt;ProviderName&gt;System.Data.OleDb&lt;/ProviderName&gt;
&lt;/SerializableConnectionString&gt;</DesignTimeValue>
<Value Profile="(Default)">Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\VEWest\RO\ROMaster.mdb</Value>
</Setting>
<Setting Name="ROImportConnectionString" Type="(Connection string)" Scope="Application">
<DesignTimeValue Profile="(Default)">&lt;?xml version="1.0" encoding="utf-16"?&gt;
&lt;SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
&lt;ConnectionString&gt;Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\VEWest\ROImport.mdb&lt;/ConnectionString&gt;
&lt;ProviderName&gt;System.Data.OleDb&lt;/ProviderName&gt;
&lt;/SerializableConnectionString&gt;</DesignTimeValue>
<Value Profile="(Default)">Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\VEWest\ROImport.mdb</Value>
</Setting>
<Setting Name="ROCPPImportConnectionString" Type="(Connection string)" Scope="Application">
<DesignTimeValue Profile="(Default)">&lt;?xml version="1.0" encoding="utf-16"?&gt;
&lt;SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
&lt;ConnectionString&gt;Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\VEWest\ROCPPImport.mdb&lt;/ConnectionString&gt;
&lt;ProviderName&gt;System.Data.OleDb&lt;/ProviderName&gt;
&lt;/SerializableConnectionString&gt;</DesignTimeValue>
<Value Profile="(Default)">Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\VEWest\ROCPPImport.mdb</Value>
</Setting>
</Settings>
</SettingsFile>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1 @@


View File

@@ -0,0 +1,283 @@
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="ROCPPImportDataSet" targetNamespace="http://tempuri.org/ROCPPImportDataSet.xsd" xmlns:mstns="http://tempuri.org/ROCPPImportDataSet.xsd" xmlns="http://tempuri.org/ROCPPImportDataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
<xs:annotation>
<xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
<DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<Connections>
<Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="ROCPPImportConnectionString" ConnectionStringObject="" IsAppSettingsProperty="True" Modifier="Assembly" Name="ROCPPImportConnectionString (Settings)" PropertyReference="ApplicationSettings.WestinghouseROImport.Properties.Settings.GlobalReference.Default.ROCPPImportConnectionString" Provider="System.Data.OleDb">
</Connection>
</Connections>
<Tables>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ImportARP_tblTableAdapter" GeneratorDataComponentClassName="ImportARP_tblTableAdapter" Name="ImportARP_tbl" UserDataComponentName="ImportARP_tblTableAdapter">
<MainSource>
<DbSource ConnectionRef="ROCPPImportConnectionString (Settings)" DbObjectName="ImportARP_tbl" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="True" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetData" UserSourceName="Fill">
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="False">
<CommandText>INSERT INTO `ImportARP_tbl` (`Document`, `Alarm`, `PointName`, `Type`, `Value`, `Description`, `SystemID`, `SysTitle`) VALUES (?, ?, ?, ?, ?, ?, ?, ?)</CommandText>
<Parameters>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Document" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="Document" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Alarm" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="Alarm" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="PointName" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="PointName" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Type" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="Type" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Value" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="Value" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Description" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="Description" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="SystemID" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="SystemID" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="SysTitle" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="SysTitle" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
</Parameters>
</DbCommand>
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="False">
<CommandText>SELECT Document, Alarm, PointName, Type, [Value], Description, SystemID, SysTitle FROM ImportARP_tbl</CommandText>
<Parameters>
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="Document" DataSetColumn="Document" />
<Mapping SourceColumn="Alarm" DataSetColumn="Alarm" />
<Mapping SourceColumn="PointName" DataSetColumn="PointName" />
<Mapping SourceColumn="Type" DataSetColumn="Type" />
<Mapping SourceColumn="Value" DataSetColumn="Value" />
<Mapping SourceColumn="Description" DataSetColumn="Description" />
<Mapping SourceColumn="SystemID" DataSetColumn="SystemID" />
<Mapping SourceColumn="SysTitle" DataSetColumn="SysTitle" />
</Mappings>
<Sources>
</Sources>
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ImportMEL_qryTableAdapter" GeneratorDataComponentClassName="ImportMEL_qryTableAdapter" Name="ImportMEL_qry" UserDataComponentName="ImportMEL_qryTableAdapter">
<MainSource>
<DbSource ConnectionRef="ROCPPImportConnectionString (Settings)" DbObjectName="ImportMEL_qry" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="False" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetData" UserSourceName="Fill">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="False">
<CommandText>SELECT SystemID, SystemDesc, ComponentID, CompDesc, FullName, ShortName, Room, Description, CommonDesc FROM ImportMEL_qry</CommandText>
<Parameters>
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="SystemID" DataSetColumn="SystemID" />
<Mapping SourceColumn="SystemDesc" DataSetColumn="SystemDesc" />
<Mapping SourceColumn="ComponentID" DataSetColumn="ComponentID" />
<Mapping SourceColumn="CompDesc" DataSetColumn="CompDesc" />
<Mapping SourceColumn="FullName" DataSetColumn="FullName" />
<Mapping SourceColumn="ShortName" DataSetColumn="ShortName" />
<Mapping SourceColumn="Room" DataSetColumn="Room" />
<Mapping SourceColumn="Description" DataSetColumn="Description" />
<Mapping SourceColumn="CommonDesc" DataSetColumn="CommonDesc" />
</Mappings>
<Sources>
</Sources>
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ImportSTP_qryTableAdapter" GeneratorDataComponentClassName="ImportSTP_qryTableAdapter" Name="ImportSTP_qry" UserDataComponentName="ImportSTP_qryTableAdapter">
<MainSource>
<DbSource ConnectionRef="ROCPPImportConnectionString (Settings)" DbObjectName="ImportSTP_qry" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="False" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetData" UserSourceName="Fill">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="False">
<CommandText>SELECT Parameter, Name, [Value], Description FROM ImportSTP_qry</CommandText>
<Parameters>
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="Parameter" DataSetColumn="Parameter" />
<Mapping SourceColumn="Name" DataSetColumn="Name" />
<Mapping SourceColumn="Value" DataSetColumn="Value" />
<Mapping SourceColumn="Description" DataSetColumn="Description" />
</Mappings>
<Sources>
</Sources>
</TableAdapter>
</Tables>
<Sources>
</Sources>
</DataSource>
</xs:appinfo>
</xs:annotation>
<xs:element name="ROCPPImportDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="ROCPPImportDataSet" msprop:Generator_DataSetName="ROCPPImportDataSet">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="ImportARP_tbl" msprop:Generator_UserTableName="ImportARP_tbl" msprop:Generator_RowDeletedName="ImportARP_tblRowDeleted" msprop:Generator_TableClassName="ImportARP_tblDataTable" msprop:Generator_RowChangedName="ImportARP_tblRowChanged" msprop:Generator_RowClassName="ImportARP_tblRow" msprop:Generator_RowChangingName="ImportARP_tblRowChanging" msprop:Generator_RowEvArgName="ImportARP_tblRowChangeEvent" msprop:Generator_RowEvHandlerName="ImportARP_tblRowChangeEventHandler" msprop:Generator_TablePropName="ImportARP_tbl" msprop:Generator_TableVarName="tableImportARP_tbl" msprop:Generator_RowDeletingName="ImportARP_tblRowDeleting">
<xs:complexType>
<xs:sequence>
<xs:element name="Document" msprop:Generator_UserColumnName="Document" msprop:Generator_ColumnPropNameInRow="Document" msprop:Generator_ColumnVarNameInTable="columnDocument" msprop:Generator_ColumnPropNameInTable="DocumentColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Alarm" msprop:Generator_UserColumnName="Alarm" msprop:Generator_ColumnPropNameInRow="Alarm" msprop:Generator_ColumnVarNameInTable="columnAlarm" msprop:Generator_ColumnPropNameInTable="AlarmColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="PointName" msprop:Generator_UserColumnName="PointName" msprop:Generator_ColumnPropNameInRow="PointName" msprop:Generator_ColumnVarNameInTable="columnPointName" msprop:Generator_ColumnPropNameInTable="PointNameColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Type" msprop:Generator_UserColumnName="Type" msprop:Generator_ColumnPropNameInRow="Type" msprop:Generator_ColumnVarNameInTable="columnType" msprop:Generator_ColumnPropNameInTable="TypeColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Value" msprop:Generator_UserColumnName="Value" msprop:Generator_ColumnPropNameInRow="Value" msprop:Generator_ColumnVarNameInTable="columnValue" msprop:Generator_ColumnPropNameInTable="ValueColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Description" msprop:Generator_UserColumnName="Description" msprop:Generator_ColumnPropNameInRow="Description" msprop:Generator_ColumnVarNameInTable="columnDescription" msprop:Generator_ColumnPropNameInTable="DescriptionColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="SystemID" msprop:Generator_UserColumnName="SystemID" msprop:Generator_ColumnPropNameInRow="SystemID" msprop:Generator_ColumnVarNameInTable="columnSystemID" msprop:Generator_ColumnPropNameInTable="SystemIDColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="SysTitle" msprop:Generator_UserColumnName="SysTitle" msprop:Generator_ColumnPropNameInRow="SysTitle" msprop:Generator_ColumnVarNameInTable="columnSysTitle" msprop:Generator_ColumnPropNameInTable="SysTitleColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ImportMEL_qry" msprop:Generator_UserTableName="ImportMEL_qry" msprop:Generator_RowDeletedName="ImportMEL_qryRowDeleted" msprop:Generator_TableClassName="ImportMEL_qryDataTable" msprop:Generator_RowChangedName="ImportMEL_qryRowChanged" msprop:Generator_RowClassName="ImportMEL_qryRow" msprop:Generator_RowChangingName="ImportMEL_qryRowChanging" msprop:Generator_RowEvArgName="ImportMEL_qryRowChangeEvent" msprop:Generator_RowEvHandlerName="ImportMEL_qryRowChangeEventHandler" msprop:Generator_TablePropName="ImportMEL_qry" msprop:Generator_TableVarName="tableImportMEL_qry" msprop:Generator_RowDeletingName="ImportMEL_qryRowDeleting">
<xs:complexType>
<xs:sequence>
<xs:element name="SystemID" msdata:ReadOnly="true" msprop:Generator_UserColumnName="SystemID" msprop:Generator_ColumnPropNameInRow="SystemID" msprop:Generator_ColumnVarNameInTable="columnSystemID" msprop:Generator_ColumnPropNameInTable="SystemIDColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="SystemDesc" msprop:Generator_UserColumnName="SystemDesc" msprop:Generator_ColumnPropNameInRow="SystemDesc" msprop:Generator_ColumnVarNameInTable="columnSystemDesc" msprop:Generator_ColumnPropNameInTable="SystemDescColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="ComponentID" msdata:ReadOnly="true" msprop:Generator_UserColumnName="ComponentID" msprop:Generator_ColumnPropNameInRow="ComponentID" msprop:Generator_ColumnVarNameInTable="columnComponentID" msprop:Generator_ColumnPropNameInTable="ComponentIDColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CompDesc" msprop:Generator_UserColumnName="CompDesc" msprop:Generator_ColumnPropNameInRow="CompDesc" msprop:Generator_ColumnVarNameInTable="columnCompDesc" msprop:Generator_ColumnPropNameInTable="CompDescColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="FullName" msprop:Generator_UserColumnName="FullName" msprop:Generator_ColumnPropNameInRow="FullName" msprop:Generator_ColumnVarNameInTable="columnFullName" msprop:Generator_ColumnPropNameInTable="FullNameColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="ShortName" msprop:Generator_UserColumnName="ShortName" msprop:Generator_ColumnPropNameInRow="ShortName" msprop:Generator_ColumnVarNameInTable="columnShortName" msprop:Generator_ColumnPropNameInTable="ShortNameColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Room" msprop:Generator_UserColumnName="Room" msprop:Generator_ColumnPropNameInRow="Room" msprop:Generator_ColumnVarNameInTable="columnRoom" msprop:Generator_ColumnPropNameInTable="RoomColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Description" msprop:Generator_UserColumnName="Description" msprop:Generator_ColumnPropNameInRow="Description" msprop:Generator_ColumnVarNameInTable="columnDescription" msprop:Generator_ColumnPropNameInTable="DescriptionColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CommonDesc" msprop:Generator_UserColumnName="CommonDesc" msprop:Generator_ColumnPropNameInRow="CommonDesc" msprop:Generator_ColumnVarNameInTable="columnCommonDesc" msprop:Generator_ColumnPropNameInTable="CommonDescColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ImportSTP_qry" msprop:Generator_UserTableName="ImportSTP_qry" msprop:Generator_RowDeletedName="ImportSTP_qryRowDeleted" msprop:Generator_TableClassName="ImportSTP_qryDataTable" msprop:Generator_RowChangedName="ImportSTP_qryRowChanged" msprop:Generator_RowClassName="ImportSTP_qryRow" msprop:Generator_RowChangingName="ImportSTP_qryRowChanging" msprop:Generator_RowEvArgName="ImportSTP_qryRowChangeEvent" msprop:Generator_RowEvHandlerName="ImportSTP_qryRowChangeEventHandler" msprop:Generator_TablePropName="ImportSTP_qry" msprop:Generator_TableVarName="tableImportSTP_qry" msprop:Generator_RowDeletingName="ImportSTP_qryRowDeleting">
<xs:complexType>
<xs:sequence>
<xs:element name="Parameter" msprop:Generator_UserColumnName="Parameter" msprop:Generator_ColumnPropNameInRow="Parameter" msprop:Generator_ColumnVarNameInTable="columnParameter" msprop:Generator_ColumnPropNameInTable="ParameterColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Name" msprop:Generator_UserColumnName="Name" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_ColumnVarNameInTable="columnName" msprop:Generator_ColumnPropNameInTable="NameColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Value" msprop:Generator_UserColumnName="Value" msprop:Generator_ColumnPropNameInRow="Value" msprop:Generator_ColumnVarNameInTable="columnValue" msprop:Generator_ColumnPropNameInTable="ValueColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Description" msprop:Generator_UserColumnName="Description" msprop:Generator_ColumnPropNameInRow="Description" msprop:Generator_ColumnVarNameInTable="columnDescription" msprop:Generator_ColumnPropNameInTable="DescriptionColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>

View File

@@ -0,0 +1 @@


File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,6 @@
namespace WestinghouseROImport {
public partial class ROImportDataSet {
}
}

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!--<autogenerated>
This code was generated by a tool.
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
</autogenerated>-->
<DataSetUISetting Version="1.00" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<TableUISettings>
</TableUISettings>
</DataSetUISetting>

View File

@@ -0,0 +1,284 @@
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="ROImportDataSet" targetNamespace="http://tempuri.org/ROImportDataSet.xsd" xmlns:mstns="http://tempuri.org/ROImportDataSet.xsd" xmlns="http://tempuri.org/ROImportDataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
<xs:annotation>
<xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
<DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<Connections>
<Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="ROImportConnectionString" ConnectionStringObject="" IsAppSettingsProperty="True" Modifier="Assembly" Name="ROImportConnectionString (Settings)" PropertyReference="ApplicationSettings.WestinghouseROImport.Properties.Settings.GlobalReference.Default.ROImportConnectionString" Provider="System.Data.OleDb">
</Connection>
</Connections>
<Tables>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ImportSTP_qryTableAdapter" GeneratorDataComponentClassName="ImportSTP_qryTableAdapter" Name="ImportSTP_qry" UserDataComponentName="ImportSTP_qryTableAdapter">
<MainSource>
<DbSource ConnectionRef="ROImportConnectionString (Settings)" DbObjectName="ImportSTP_qry" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="False" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetData" UserSourceName="Fill">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="False">
<CommandText>SELECT Parameter, Name, [Value], Description FROM ImportSTP_qry</CommandText>
<Parameters>
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="Parameter" DataSetColumn="Parameter" />
<Mapping SourceColumn="Name" DataSetColumn="Name" />
<Mapping SourceColumn="Value" DataSetColumn="Value" />
<Mapping SourceColumn="Description" DataSetColumn="Description" />
</Mappings>
<Sources>
</Sources>
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ImportMEL_qryTableAdapter" GeneratorDataComponentClassName="ImportMEL_qryTableAdapter" Name="ImportMEL_qry" UserDataComponentName="ImportMEL_qryTableAdapter">
<MainSource>
<DbSource ConnectionRef="ROImportConnectionString (Settings)" DbObjectName="ImportMEL_qry" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="False" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetData" UserSourceName="Fill">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="False">
<CommandText>SELECT SystemID, SystemDesc, ComponentID, CompDesc, FullName, ShortName, Room, Description, CommonDesc FROM ImportMEL_qry</CommandText>
<Parameters>
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="SystemID" DataSetColumn="SystemID" />
<Mapping SourceColumn="SystemDesc" DataSetColumn="SystemDesc" />
<Mapping SourceColumn="ComponentID" DataSetColumn="ComponentID" />
<Mapping SourceColumn="CompDesc" DataSetColumn="CompDesc" />
<Mapping SourceColumn="FullName" DataSetColumn="FullName" />
<Mapping SourceColumn="ShortName" DataSetColumn="ShortName" />
<Mapping SourceColumn="Room" DataSetColumn="Room" />
<Mapping SourceColumn="Description" DataSetColumn="Description" />
<Mapping SourceColumn="CommonDesc" DataSetColumn="CommonDesc" />
</Mappings>
<Sources>
</Sources>
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ImportARP_tblTableAdapter" GeneratorDataComponentClassName="ImportARP_tblTableAdapter" Name="ImportARP_tbl" UserDataComponentName="ImportARP_tblTableAdapter">
<MainSource>
<DbSource ConnectionRef="ROImportConnectionString (Settings)" DbObjectName="ImportARP_tbl" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="True" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetData" UserSourceName="Fill">
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="False">
<CommandText>INSERT INTO `ImportARP_tbl` (`Document`, `Alarm`, `PointName`, `Type`, `Value`, `Description`, `SystemID`, `SysTitle`) VALUES (?, ?, ?, ?, ?, ?, ?, ?)</CommandText>
<Parameters>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Document" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="Document" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Alarm" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="Alarm" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="PointName" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="PointName" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Type" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="Type" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Value" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="Value" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Description" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="Description" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="SystemID" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="SystemID" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="SysTitle" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="SysTitle" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
</Parameters>
</DbCommand>
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="False">
<CommandText>SELECT Document, Alarm, PointName, Type, [Value], Description, SystemID, SysTitle
FROM ImportARP_tbl</CommandText>
<Parameters>
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="Document" DataSetColumn="Document" />
<Mapping SourceColumn="Alarm" DataSetColumn="Alarm" />
<Mapping SourceColumn="PointName" DataSetColumn="PointName" />
<Mapping SourceColumn="Type" DataSetColumn="Type" />
<Mapping SourceColumn="Value" DataSetColumn="Value" />
<Mapping SourceColumn="Description" DataSetColumn="Description" />
<Mapping SourceColumn="SystemID" DataSetColumn="SystemID" />
<Mapping SourceColumn="SysTitle" DataSetColumn="SysTitle" />
</Mappings>
<Sources>
</Sources>
</TableAdapter>
</Tables>
<Sources>
</Sources>
</DataSource>
</xs:appinfo>
</xs:annotation>
<xs:element name="ROImportDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="ROImportDataSet" msprop:Generator_DataSetName="ROImportDataSet">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="ImportSTP_qry" msprop:Generator_UserTableName="ImportSTP_qry" msprop:Generator_RowDeletedName="ImportSTP_qryRowDeleted" msprop:Generator_RowChangedName="ImportSTP_qryRowChanged" msprop:Generator_RowClassName="ImportSTP_qryRow" msprop:Generator_RowChangingName="ImportSTP_qryRowChanging" msprop:Generator_RowEvArgName="ImportSTP_qryRowChangeEvent" msprop:Generator_RowEvHandlerName="ImportSTP_qryRowChangeEventHandler" msprop:Generator_TableClassName="ImportSTP_qryDataTable" msprop:Generator_TableVarName="tableImportSTP_qry" msprop:Generator_RowDeletingName="ImportSTP_qryRowDeleting" msprop:Generator_TablePropName="ImportSTP_qry">
<xs:complexType>
<xs:sequence>
<xs:element name="Parameter" msprop:Generator_UserColumnName="Parameter" msprop:Generator_ColumnPropNameInRow="Parameter" msprop:Generator_ColumnVarNameInTable="columnParameter" msprop:Generator_ColumnPropNameInTable="ParameterColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Name" msprop:Generator_UserColumnName="Name" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_ColumnVarNameInTable="columnName" msprop:Generator_ColumnPropNameInTable="NameColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Value" msprop:Generator_UserColumnName="Value" msprop:Generator_ColumnPropNameInRow="Value" msprop:Generator_ColumnVarNameInTable="columnValue" msprop:Generator_ColumnPropNameInTable="ValueColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Description" msprop:Generator_UserColumnName="Description" msprop:Generator_ColumnPropNameInRow="Description" msprop:Generator_ColumnVarNameInTable="columnDescription" msprop:Generator_ColumnPropNameInTable="DescriptionColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ImportMEL_qry" msprop:Generator_UserTableName="ImportMEL_qry" msprop:Generator_RowDeletedName="ImportMEL_qryRowDeleted" msprop:Generator_RowChangedName="ImportMEL_qryRowChanged" msprop:Generator_RowClassName="ImportMEL_qryRow" msprop:Generator_RowChangingName="ImportMEL_qryRowChanging" msprop:Generator_RowEvArgName="ImportMEL_qryRowChangeEvent" msprop:Generator_RowEvHandlerName="ImportMEL_qryRowChangeEventHandler" msprop:Generator_TableClassName="ImportMEL_qryDataTable" msprop:Generator_TableVarName="tableImportMEL_qry" msprop:Generator_RowDeletingName="ImportMEL_qryRowDeleting" msprop:Generator_TablePropName="ImportMEL_qry">
<xs:complexType>
<xs:sequence>
<xs:element name="SystemID" msdata:ReadOnly="true" msprop:Generator_UserColumnName="SystemID" msprop:Generator_ColumnVarNameInTable="columnSystemID" msprop:Generator_ColumnPropNameInRow="SystemID" msprop:Generator_ColumnPropNameInTable="SystemIDColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="SystemDesc" msprop:Generator_UserColumnName="SystemDesc" msprop:Generator_ColumnVarNameInTable="columnSystemDesc" msprop:Generator_ColumnPropNameInRow="SystemDesc" msprop:Generator_ColumnPropNameInTable="SystemDescColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="ComponentID" msdata:ReadOnly="true" msprop:Generator_UserColumnName="ComponentID" msprop:Generator_ColumnVarNameInTable="columnComponentID" msprop:Generator_ColumnPropNameInRow="ComponentID" msprop:Generator_ColumnPropNameInTable="ComponentIDColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CompDesc" msprop:Generator_UserColumnName="CompDesc" msprop:Generator_ColumnVarNameInTable="columnCompDesc" msprop:Generator_ColumnPropNameInRow="CompDesc" msprop:Generator_ColumnPropNameInTable="CompDescColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="FullName" msprop:Generator_UserColumnName="FullName" msprop:Generator_ColumnVarNameInTable="columnFullName" msprop:Generator_ColumnPropNameInRow="FullName" msprop:Generator_ColumnPropNameInTable="FullNameColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="ShortName" msprop:Generator_UserColumnName="ShortName" msprop:Generator_ColumnVarNameInTable="columnShortName" msprop:Generator_ColumnPropNameInRow="ShortName" msprop:Generator_ColumnPropNameInTable="ShortNameColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Room" msprop:Generator_UserColumnName="Room" msprop:Generator_ColumnVarNameInTable="columnRoom" msprop:Generator_ColumnPropNameInRow="Room" msprop:Generator_ColumnPropNameInTable="RoomColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Description" msprop:Generator_UserColumnName="Description" msprop:Generator_ColumnVarNameInTable="columnDescription" msprop:Generator_ColumnPropNameInRow="Description" msprop:Generator_ColumnPropNameInTable="DescriptionColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CommonDesc" msprop:Generator_UserColumnName="CommonDesc" msprop:Generator_ColumnVarNameInTable="columnCommonDesc" msprop:Generator_ColumnPropNameInRow="CommonDesc" msprop:Generator_ColumnPropNameInTable="CommonDescColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ImportARP_tbl" msprop:Generator_UserTableName="ImportARP_tbl" msprop:Generator_RowDeletedName="ImportARP_tblRowDeleted" msprop:Generator_TableClassName="ImportARP_tblDataTable" msprop:Generator_RowChangedName="ImportARP_tblRowChanged" msprop:Generator_RowClassName="ImportARP_tblRow" msprop:Generator_RowChangingName="ImportARP_tblRowChanging" msprop:Generator_RowEvArgName="ImportARP_tblRowChangeEvent" msprop:Generator_RowEvHandlerName="ImportARP_tblRowChangeEventHandler" msprop:Generator_TablePropName="ImportARP_tbl" msprop:Generator_TableVarName="tableImportARP_tbl" msprop:Generator_RowDeletingName="ImportARP_tblRowDeleting">
<xs:complexType>
<xs:sequence>
<xs:element name="Document" msprop:Generator_UserColumnName="Document" msprop:Generator_ColumnPropNameInRow="Document" msprop:Generator_ColumnVarNameInTable="columnDocument" msprop:Generator_ColumnPropNameInTable="DocumentColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Alarm" msprop:Generator_UserColumnName="Alarm" msprop:Generator_ColumnPropNameInRow="Alarm" msprop:Generator_ColumnVarNameInTable="columnAlarm" msprop:Generator_ColumnPropNameInTable="AlarmColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="PointName" msprop:Generator_UserColumnName="PointName" msprop:Generator_ColumnPropNameInRow="PointName" msprop:Generator_ColumnVarNameInTable="columnPointName" msprop:Generator_ColumnPropNameInTable="PointNameColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Type" msprop:Generator_UserColumnName="Type" msprop:Generator_ColumnPropNameInRow="Type" msprop:Generator_ColumnVarNameInTable="columnType" msprop:Generator_ColumnPropNameInTable="TypeColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Value" msprop:Generator_UserColumnName="Value" msprop:Generator_ColumnPropNameInRow="Value" msprop:Generator_ColumnVarNameInTable="columnValue" msprop:Generator_ColumnPropNameInTable="ValueColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Description" msprop:Generator_UserColumnName="Description" msprop:Generator_ColumnPropNameInRow="Description" msprop:Generator_ColumnVarNameInTable="columnDescription" msprop:Generator_ColumnPropNameInTable="DescriptionColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="SystemID" msprop:Generator_UserColumnName="SystemID" msprop:Generator_ColumnPropNameInRow="SystemID" msprop:Generator_ColumnVarNameInTable="columnSystemID" msprop:Generator_ColumnPropNameInTable="SystemIDColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="SysTitle" msprop:Generator_UserColumnName="SysTitle" msprop:Generator_ColumnPropNameInRow="SysTitle" msprop:Generator_ColumnVarNameInTable="columnSysTitle" msprop:Generator_ColumnPropNameInTable="SysTitleColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>

View File

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<!--<autogenerated>
This code was generated by a tool to store the dataset designer's layout information.
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
</autogenerated>-->
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-14" ViewPortY="-11" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:ImportSTP_qry" ZOrder="3" X="-4" Y="-1" Height="153" Width="231" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:ImportMEL_qry" ZOrder="2" X="235" Y="2" Height="248" Width="217" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" />
<Shape ID="DesignTable:ImportARP_tbl" ZOrder="1" X="477" Y="2" Height="229" Width="230" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
</Shapes>
<Connectors />
</DiagramLayout>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!--<autogenerated>
This code was generated by a tool.
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
</autogenerated>-->
<DataSetUISetting Version="1.00" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<TableUISettings>
</TableUISettings>
</DataSetUISetting>

View File

@@ -0,0 +1,568 @@
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="ROMasterDataSet" targetNamespace="http://tempuri.org/ROMasterDataSet.xsd" xmlns:mstns="http://tempuri.org/ROMasterDataSet.xsd" xmlns="http://tempuri.org/ROMasterDataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
<xs:annotation>
<xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
<DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<Connections>
<Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="ROMasterConnectionString" ConnectionStringObject="" IsAppSettingsProperty="True" Modifier="Assembly" Name="ROMasterConnectionString (Settings)" PropertyReference="ApplicationSettings.WestinghouseROImport.Properties.Settings.GlobalReference.Default.ROMasterConnectionString" Provider="System.Data.OleDb">
</Connection>
</Connections>
<Tables>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="RO000002TableAdapter" GeneratorDataComponentClassName="RO000002TableAdapter" Name="RO000002" UserDataComponentName="RO000002TableAdapter">
<MainSource>
<DbSource ConnectionRef="ROMasterConnectionString (Settings)" DbObjectName="RO000002" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="True" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetData" UserSourceName="Fill">
<DeleteCommand>
<DbCommand CommandType="Text" ModifiedByUser="False">
<CommandText>DELETE FROM RO000002
WHERE (RecID = ?)</CommandText>
<Parameters>
<Parameter AllowDbNull="True" AutogeneratedName="Param1" ColumnName="RecID" DataSourceName="" DataTypeServer="DbType.StringFixedLength(8)" DbType="String" Direction="Input" ParameterName="RecID" Precision="0" ProviderType="WChar" Scale="0" Size="8" SourceColumn="RecID" SourceColumnNullMapping="False" SourceVersion="Original">
</Parameter>
</Parameters>
</DbCommand>
</DeleteCommand>
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="False">
<CommandText>INSERT INTO `RO000002` (`RecID`, `RecType`, `ParentID`, `AccPageID`, `ModDateTime`, `Info`) VALUES (?, ?, ?, ?, ?, ?)</CommandText>
<Parameters>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="RecID" Precision="0" ProviderType="WChar" Scale="0" Size="0" SourceColumn="RecID" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="RecType" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="RecType" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="ParentID" Precision="0" ProviderType="WChar" Scale="0" Size="0" SourceColumn="ParentID" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="AccPageID" Precision="0" ProviderType="WChar" Scale="0" Size="0" SourceColumn="AccPageID" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="ModDateTime" Precision="0" ProviderType="WChar" Scale="0" Size="0" SourceColumn="ModDateTime" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Info" Precision="0" ProviderType="LongVarWChar" Scale="0" Size="0" SourceColumn="Info" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
</Parameters>
</DbCommand>
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="False">
<CommandText>SELECT RecID, RecType, ParentID, AccPageID, ModDateTime, Info
FROM RO000002
ORDER BY RecID</CommandText>
<Parameters>
</Parameters>
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="True">
<CommandText>UPDATE RO000002
SET RecType = ?, ParentID = ?, AccPageID = ?, ModDateTime = ?, Info = ?
WHERE (RecID = ?)</CommandText>
<Parameters>
<Parameter AllowDbNull="True" AutogeneratedName="Param1" ColumnName="RecType" DataSourceName="RO000002" DataTypeServer="DbType.Int32" DbType="Int32" Direction="Input" ParameterName="RecType" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="RecType" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="Param2" ColumnName="ParentID" DataSourceName="RO000002" DataTypeServer="DbType.StringFixedLength(8)" DbType="String" Direction="Input" ParameterName="ParentID" Precision="0" ProviderType="WChar" Scale="0" Size="8" SourceColumn="ParentID" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="Param3" ColumnName="AccPageID" DataSourceName="RO000002" DataTypeServer="DbType.StringFixedLength(32)" DbType="String" Direction="Input" ParameterName="AccPageID" Precision="0" ProviderType="WChar" Scale="0" Size="32" SourceColumn="AccPageID" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="Param4" ColumnName="ModDateTime" DataSourceName="RO000002" DataTypeServer="DbType.StringFixedLength(14)" DbType="String" Direction="Input" ParameterName="ModDateTime" Precision="0" ProviderType="WChar" Scale="0" Size="14" SourceColumn="ModDateTime" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="Param5" ColumnName="Info" DataSourceName="RO000002" DataTypeServer="DbType.StringFixedLength" DbType="String" Direction="Input" ParameterName="Info" Precision="0" ProviderType="WChar" Scale="0" Size="1024" SourceColumn="Info" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="Param6" ColumnName="RecID" DataSourceName="RO000002" DataTypeServer="DbType.StringFixedLength(8)" DbType="String" Direction="Input" ParameterName="Original_RecID" Precision="0" ProviderType="WChar" Scale="0" Size="8" SourceColumn="RecID" SourceColumnNullMapping="False" SourceVersion="Original">
</Parameter>
</Parameters>
</DbCommand>
</UpdateCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="RecID" DataSetColumn="RecID" />
<Mapping SourceColumn="RecType" DataSetColumn="RecType" />
<Mapping SourceColumn="ParentID" DataSetColumn="ParentID" />
<Mapping SourceColumn="AccPageID" DataSetColumn="AccPageID" />
<Mapping SourceColumn="ModDateTime" DataSetColumn="ModDateTime" />
<Mapping SourceColumn="Info" DataSetColumn="Info" />
</Mappings>
<Sources>
</Sources>
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="RO000003TableAdapter" GeneratorDataComponentClassName="RO000003TableAdapter" Name="RO000003" UserDataComponentName="RO000003TableAdapter">
<MainSource>
<DbSource ConnectionRef="ROMasterConnectionString (Settings)" DbObjectName="RO000003" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="True" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetData" UserSourceName="Fill">
<DeleteCommand>
<DbCommand CommandType="Text" ModifiedByUser="False">
<CommandText>DELETE FROM RO000003
WHERE (RecID = ?)</CommandText>
<Parameters>
<Parameter AllowDbNull="True" AutogeneratedName="Param1" ColumnName="RecID" DataSourceName="" DataTypeServer="DbType.StringFixedLength(8)" DbType="String" Direction="Input" ParameterName="RecID" Precision="0" ProviderType="WChar" Scale="0" Size="8" SourceColumn="RecID" SourceColumnNullMapping="False" SourceVersion="Original">
</Parameter>
</Parameters>
</DbCommand>
</DeleteCommand>
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="False">
<CommandText>INSERT INTO `RO000003` (`RecID`, `RecType`, `ParentID`, `AccPageID`, `ModDateTime`, `Info`) VALUES (?, ?, ?, ?, ?, ?)</CommandText>
<Parameters>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="RecID" Precision="0" ProviderType="WChar" Scale="0" Size="0" SourceColumn="RecID" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="RecType" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="RecType" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="ParentID" Precision="0" ProviderType="WChar" Scale="0" Size="0" SourceColumn="ParentID" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="AccPageID" Precision="0" ProviderType="WChar" Scale="0" Size="0" SourceColumn="AccPageID" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="ModDateTime" Precision="0" ProviderType="WChar" Scale="0" Size="0" SourceColumn="ModDateTime" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Info" Precision="0" ProviderType="LongVarWChar" Scale="0" Size="0" SourceColumn="Info" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
</Parameters>
</DbCommand>
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="False">
<CommandText>SELECT RecID, RecType, ParentID, AccPageID, ModDateTime, Info
FROM RO000003
ORDER BY RecID</CommandText>
<Parameters>
</Parameters>
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="False">
<CommandText>UPDATE `RO000003` SET `RecID` = ?, `RecType` = ?, `ParentID` = ?, `AccPageID` = ?, `ModDateTime` = ?, `Info` = ? WHERE ((`RecID` = ?) AND ((? = 1 AND `RecType` IS NULL) OR (`RecType` = ?)) AND ((? = 1 AND `ParentID` IS NULL) OR (`ParentID` = ?)) AND ((? = 1 AND `AccPageID` IS NULL) OR (`AccPageID` = ?)) AND ((? = 1 AND `ModDateTime` IS NULL) OR (`ModDateTime` = ?)))</CommandText>
<Parameters>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="RecID" Precision="0" ProviderType="WChar" Scale="0" Size="0" SourceColumn="RecID" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="RecType" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="RecType" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="ParentID" Precision="0" ProviderType="WChar" Scale="0" Size="0" SourceColumn="ParentID" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="AccPageID" Precision="0" ProviderType="WChar" Scale="0" Size="0" SourceColumn="AccPageID" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="ModDateTime" Precision="0" ProviderType="WChar" Scale="0" Size="0" SourceColumn="ModDateTime" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Info" Precision="0" ProviderType="LongVarWChar" Scale="0" Size="0" SourceColumn="Info" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="Original_RecID" Precision="0" ProviderType="WChar" Scale="0" Size="0" SourceColumn="RecID" SourceColumnNullMapping="False" SourceVersion="Original">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_RecType" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="RecType" SourceColumnNullMapping="True" SourceVersion="Original">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_RecType" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="RecType" SourceColumnNullMapping="False" SourceVersion="Original">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_ParentID" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="ParentID" SourceColumnNullMapping="True" SourceVersion="Original">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="Original_ParentID" Precision="0" ProviderType="WChar" Scale="0" Size="0" SourceColumn="ParentID" SourceColumnNullMapping="False" SourceVersion="Original">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_AccPageID" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="AccPageID" SourceColumnNullMapping="True" SourceVersion="Original">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="Original_AccPageID" Precision="0" ProviderType="WChar" Scale="0" Size="0" SourceColumn="AccPageID" SourceColumnNullMapping="False" SourceVersion="Original">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_ModDateTime" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="ModDateTime" SourceColumnNullMapping="True" SourceVersion="Original">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="Original_ModDateTime" Precision="0" ProviderType="WChar" Scale="0" Size="0" SourceColumn="ModDateTime" SourceColumnNullMapping="False" SourceVersion="Original">
</Parameter>
</Parameters>
</DbCommand>
</UpdateCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="RecID" DataSetColumn="RecID" />
<Mapping SourceColumn="RecType" DataSetColumn="RecType" />
<Mapping SourceColumn="ParentID" DataSetColumn="ParentID" />
<Mapping SourceColumn="AccPageID" DataSetColumn="AccPageID" />
<Mapping SourceColumn="ModDateTime" DataSetColumn="ModDateTime" />
<Mapping SourceColumn="Info" DataSetColumn="Info" />
</Mappings>
<Sources>
</Sources>
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="RO000004TableAdapter" GeneratorDataComponentClassName="RO000004TableAdapter" Name="RO000004" UserDataComponentName="RO000004TableAdapter">
<MainSource>
<DbSource ConnectionRef="ROMasterConnectionString (Settings)" DbObjectName="RO000004" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="True" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetData" UserSourceName="Fill">
<DeleteCommand>
<DbCommand CommandType="Text" ModifiedByUser="False">
<CommandText>DELETE FROM RO000004
WHERE (RecID = ?)</CommandText>
<Parameters>
<Parameter AllowDbNull="True" AutogeneratedName="Param1" ColumnName="RecID" DataSourceName="" DataTypeServer="DbType.StringFixedLength(8)" DbType="String" Direction="Input" ParameterName="RecID" Precision="0" ProviderType="WChar" Scale="0" Size="8" SourceColumn="RecID" SourceColumnNullMapping="False" SourceVersion="Original">
</Parameter>
</Parameters>
</DbCommand>
</DeleteCommand>
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="False">
<CommandText>INSERT INTO `RO000004` (`RecID`, `RecType`, `ParentID`, `AccPageID`, `ModDateTime`, `Info`) VALUES (?, ?, ?, ?, ?, ?)</CommandText>
<Parameters>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="RecID" Precision="0" ProviderType="WChar" Scale="0" Size="0" SourceColumn="RecID" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="RecType" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="RecType" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="ParentID" Precision="0" ProviderType="WChar" Scale="0" Size="0" SourceColumn="ParentID" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="AccPageID" Precision="0" ProviderType="WChar" Scale="0" Size="0" SourceColumn="AccPageID" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="ModDateTime" Precision="0" ProviderType="WChar" Scale="0" Size="0" SourceColumn="ModDateTime" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Info" Precision="0" ProviderType="LongVarWChar" Scale="0" Size="0" SourceColumn="Info" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
</Parameters>
</DbCommand>
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="False">
<CommandText>SELECT RecID, RecType, ParentID, AccPageID, ModDateTime, Info
FROM RO000004
ORDER BY RecID</CommandText>
<Parameters>
</Parameters>
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="False">
<CommandText>UPDATE `RO000004` SET `RecID` = ?, `RecType` = ?, `ParentID` = ?, `AccPageID` = ?, `ModDateTime` = ?, `Info` = ? WHERE ((`RecID` = ?) AND ((? = 1 AND `RecType` IS NULL) OR (`RecType` = ?)) AND ((? = 1 AND `ParentID` IS NULL) OR (`ParentID` = ?)) AND ((? = 1 AND `AccPageID` IS NULL) OR (`AccPageID` = ?)) AND ((? = 1 AND `ModDateTime` IS NULL) OR (`ModDateTime` = ?)))</CommandText>
<Parameters>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="RecID" Precision="0" ProviderType="WChar" Scale="0" Size="0" SourceColumn="RecID" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="RecType" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="RecType" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="ParentID" Precision="0" ProviderType="WChar" Scale="0" Size="0" SourceColumn="ParentID" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="AccPageID" Precision="0" ProviderType="WChar" Scale="0" Size="0" SourceColumn="AccPageID" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="ModDateTime" Precision="0" ProviderType="WChar" Scale="0" Size="0" SourceColumn="ModDateTime" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Info" Precision="0" ProviderType="LongVarWChar" Scale="0" Size="0" SourceColumn="Info" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="Original_RecID" Precision="0" ProviderType="WChar" Scale="0" Size="0" SourceColumn="RecID" SourceColumnNullMapping="False" SourceVersion="Original">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_RecType" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="RecType" SourceColumnNullMapping="True" SourceVersion="Original">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_RecType" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="RecType" SourceColumnNullMapping="False" SourceVersion="Original">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_ParentID" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="ParentID" SourceColumnNullMapping="True" SourceVersion="Original">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="Original_ParentID" Precision="0" ProviderType="WChar" Scale="0" Size="0" SourceColumn="ParentID" SourceColumnNullMapping="False" SourceVersion="Original">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_AccPageID" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="AccPageID" SourceColumnNullMapping="True" SourceVersion="Original">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="Original_AccPageID" Precision="0" ProviderType="WChar" Scale="0" Size="0" SourceColumn="AccPageID" SourceColumnNullMapping="False" SourceVersion="Original">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_ModDateTime" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="ModDateTime" SourceColumnNullMapping="True" SourceVersion="Original">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="Original_ModDateTime" Precision="0" ProviderType="WChar" Scale="0" Size="0" SourceColumn="ModDateTime" SourceColumnNullMapping="False" SourceVersion="Original">
</Parameter>
</Parameters>
</DbCommand>
</UpdateCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="RecID" DataSetColumn="RecID" />
<Mapping SourceColumn="RecType" DataSetColumn="RecType" />
<Mapping SourceColumn="ParentID" DataSetColumn="ParentID" />
<Mapping SourceColumn="AccPageID" DataSetColumn="AccPageID" />
<Mapping SourceColumn="ModDateTime" DataSetColumn="ModDateTime" />
<Mapping SourceColumn="Info" DataSetColumn="Info" />
</Mappings>
<Sources>
</Sources>
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ROMASTERTableAdapter" GeneratorDataComponentClassName="ROMASTERTableAdapter" Name="ROMASTER" UserDataComponentName="ROMASTERTableAdapter">
<MainSource>
<DbSource ConnectionRef="ROMasterConnectionString (Settings)" DbObjectName="ROMASTER" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="True" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetData" UserSourceName="Fill">
<DeleteCommand>
<DbCommand CommandType="Text" ModifiedByUser="False">
<CommandText>DELETE FROM `ROMASTER` WHERE ((`RecID` = ?) AND ((? = 1 AND `RecType` IS NULL) OR (`RecType` = ?)) AND ((? = 1 AND `ParentID` IS NULL) OR (`ParentID` = ?)) AND ((? = 1 AND `AccPageID` IS NULL) OR (`AccPageID` = ?)) AND ((? = 1 AND `ModDateTime` IS NULL) OR (`ModDateTime` = ?)))</CommandText>
<Parameters>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="Original_RecID" Precision="0" ProviderType="WChar" Scale="0" Size="0" SourceColumn="RecID" SourceColumnNullMapping="False" SourceVersion="Original">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_RecType" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="RecType" SourceColumnNullMapping="True" SourceVersion="Original">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_RecType" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="RecType" SourceColumnNullMapping="False" SourceVersion="Original">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_ParentID" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="ParentID" SourceColumnNullMapping="True" SourceVersion="Original">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="Original_ParentID" Precision="0" ProviderType="WChar" Scale="0" Size="0" SourceColumn="ParentID" SourceColumnNullMapping="False" SourceVersion="Original">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_AccPageID" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="AccPageID" SourceColumnNullMapping="True" SourceVersion="Original">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="Original_AccPageID" Precision="0" ProviderType="WChar" Scale="0" Size="0" SourceColumn="AccPageID" SourceColumnNullMapping="False" SourceVersion="Original">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_ModDateTime" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="ModDateTime" SourceColumnNullMapping="True" SourceVersion="Original">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="Original_ModDateTime" Precision="0" ProviderType="WChar" Scale="0" Size="0" SourceColumn="ModDateTime" SourceColumnNullMapping="False" SourceVersion="Original">
</Parameter>
</Parameters>
</DbCommand>
</DeleteCommand>
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="False">
<CommandText>INSERT INTO `ROMASTER` (`RecID`, `RecType`, `ParentID`, `AccPageID`, `ModDateTime`, `Info`) VALUES (?, ?, ?, ?, ?, ?)</CommandText>
<Parameters>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="RecID" Precision="0" ProviderType="WChar" Scale="0" Size="0" SourceColumn="RecID" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="RecType" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="RecType" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="ParentID" Precision="0" ProviderType="WChar" Scale="0" Size="0" SourceColumn="ParentID" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="AccPageID" Precision="0" ProviderType="WChar" Scale="0" Size="0" SourceColumn="AccPageID" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="ModDateTime" Precision="0" ProviderType="WChar" Scale="0" Size="0" SourceColumn="ModDateTime" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Info" Precision="0" ProviderType="LongVarWChar" Scale="0" Size="0" SourceColumn="Info" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
</Parameters>
</DbCommand>
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="False">
<CommandText>SELECT RecID, RecType, ParentID, AccPageID, ModDateTime, Info FROM ROMASTER</CommandText>
<Parameters>
</Parameters>
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="False">
<CommandText>UPDATE `ROMASTER` SET `RecID` = ?, `RecType` = ?, `ParentID` = ?, `AccPageID` = ?, `ModDateTime` = ?, `Info` = ? WHERE ((`RecID` = ?) AND ((? = 1 AND `RecType` IS NULL) OR (`RecType` = ?)) AND ((? = 1 AND `ParentID` IS NULL) OR (`ParentID` = ?)) AND ((? = 1 AND `AccPageID` IS NULL) OR (`AccPageID` = ?)) AND ((? = 1 AND `ModDateTime` IS NULL) OR (`ModDateTime` = ?)))</CommandText>
<Parameters>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="RecID" Precision="0" ProviderType="WChar" Scale="0" Size="0" SourceColumn="RecID" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="RecType" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="RecType" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="ParentID" Precision="0" ProviderType="WChar" Scale="0" Size="0" SourceColumn="ParentID" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="AccPageID" Precision="0" ProviderType="WChar" Scale="0" Size="0" SourceColumn="AccPageID" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="ModDateTime" Precision="0" ProviderType="WChar" Scale="0" Size="0" SourceColumn="ModDateTime" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Info" Precision="0" ProviderType="LongVarWChar" Scale="0" Size="0" SourceColumn="Info" SourceColumnNullMapping="False" SourceVersion="Current">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="Original_RecID" Precision="0" ProviderType="WChar" Scale="0" Size="0" SourceColumn="RecID" SourceColumnNullMapping="False" SourceVersion="Original">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_RecType" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="RecType" SourceColumnNullMapping="True" SourceVersion="Original">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_RecType" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="RecType" SourceColumnNullMapping="False" SourceVersion="Original">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_ParentID" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="ParentID" SourceColumnNullMapping="True" SourceVersion="Original">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="Original_ParentID" Precision="0" ProviderType="WChar" Scale="0" Size="0" SourceColumn="ParentID" SourceColumnNullMapping="False" SourceVersion="Original">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_AccPageID" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="AccPageID" SourceColumnNullMapping="True" SourceVersion="Original">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="Original_AccPageID" Precision="0" ProviderType="WChar" Scale="0" Size="0" SourceColumn="AccPageID" SourceColumnNullMapping="False" SourceVersion="Original">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_ModDateTime" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="ModDateTime" SourceColumnNullMapping="True" SourceVersion="Original">
</Parameter>
<Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="Original_ModDateTime" Precision="0" ProviderType="WChar" Scale="0" Size="0" SourceColumn="ModDateTime" SourceColumnNullMapping="False" SourceVersion="Original">
</Parameter>
</Parameters>
</DbCommand>
</UpdateCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="RecID" DataSetColumn="RecID" />
<Mapping SourceColumn="RecType" DataSetColumn="RecType" />
<Mapping SourceColumn="ParentID" DataSetColumn="ParentID" />
<Mapping SourceColumn="AccPageID" DataSetColumn="AccPageID" />
<Mapping SourceColumn="ModDateTime" DataSetColumn="ModDateTime" />
<Mapping SourceColumn="Info" DataSetColumn="Info" />
</Mappings>
<Sources>
</Sources>
</TableAdapter>
</Tables>
<Sources>
</Sources>
</DataSource>
</xs:appinfo>
</xs:annotation>
<xs:element name="ROMasterDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="ROMasterDataSet" msprop:Generator_DataSetName="ROMasterDataSet">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="RO000002" msprop:Generator_UserTableName="RO000002" msprop:Generator_RowDeletedName="RO000002RowDeleted" msprop:Generator_RowChangedName="RO000002RowChanged" msprop:Generator_RowClassName="RO000002Row" msprop:Generator_RowChangingName="RO000002RowChanging" msprop:Generator_RowEvArgName="RO000002RowChangeEvent" msprop:Generator_RowEvHandlerName="RO000002RowChangeEventHandler" msprop:Generator_TableClassName="RO000002DataTable" msprop:Generator_TableVarName="tableRO000002" msprop:Generator_RowDeletingName="RO000002RowDeleting" msprop:Generator_TablePropName="RO000002">
<xs:complexType>
<xs:sequence>
<xs:element name="RecID" msprop:Generator_UserColumnName="RecID" msprop:Generator_ColumnPropNameInRow="RecID" msprop:Generator_ColumnVarNameInTable="columnRecID" msprop:Generator_ColumnPropNameInTable="RecIDColumn">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="8" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="RecType" msprop:Generator_UserColumnName="RecType" msprop:Generator_ColumnPropNameInRow="RecType" msprop:Generator_ColumnVarNameInTable="columnRecType" msprop:Generator_ColumnPropNameInTable="RecTypeColumn" type="xs:int" minOccurs="0" />
<xs:element name="ParentID" msprop:Generator_UserColumnName="ParentID" msprop:Generator_ColumnPropNameInRow="ParentID" msprop:Generator_ColumnVarNameInTable="columnParentID" msprop:Generator_ColumnPropNameInTable="ParentIDColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="8" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="AccPageID" msprop:Generator_UserColumnName="AccPageID" msprop:Generator_ColumnPropNameInRow="AccPageID" msprop:Generator_ColumnVarNameInTable="columnAccPageID" msprop:Generator_ColumnPropNameInTable="AccPageIDColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="32" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="ModDateTime" msprop:Generator_UserColumnName="ModDateTime" msprop:Generator_ColumnPropNameInRow="ModDateTime" msprop:Generator_ColumnVarNameInTable="columnModDateTime" msprop:Generator_ColumnPropNameInTable="ModDateTimeColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="14" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Info" msprop:Generator_UserColumnName="Info" msprop:Generator_ColumnPropNameInRow="Info" msprop:Generator_ColumnVarNameInTable="columnInfo" msprop:Generator_ColumnPropNameInTable="InfoColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="536870910" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="RO000003" msprop:Generator_UserTableName="RO000003" msprop:Generator_RowDeletedName="RO000003RowDeleted" msprop:Generator_RowChangedName="RO000003RowChanged" msprop:Generator_RowClassName="RO000003Row" msprop:Generator_RowChangingName="RO000003RowChanging" msprop:Generator_RowEvArgName="RO000003RowChangeEvent" msprop:Generator_RowEvHandlerName="RO000003RowChangeEventHandler" msprop:Generator_TableClassName="RO000003DataTable" msprop:Generator_TableVarName="tableRO000003" msprop:Generator_RowDeletingName="RO000003RowDeleting" msprop:Generator_TablePropName="RO000003">
<xs:complexType>
<xs:sequence>
<xs:element name="RecID" msprop:Generator_UserColumnName="RecID" msprop:Generator_ColumnPropNameInRow="RecID" msprop:Generator_ColumnVarNameInTable="columnRecID" msprop:Generator_ColumnPropNameInTable="RecIDColumn">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="8" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="RecType" msprop:Generator_UserColumnName="RecType" msprop:Generator_ColumnPropNameInRow="RecType" msprop:Generator_ColumnVarNameInTable="columnRecType" msprop:Generator_ColumnPropNameInTable="RecTypeColumn" type="xs:int" minOccurs="0" />
<xs:element name="ParentID" msprop:Generator_UserColumnName="ParentID" msprop:Generator_ColumnPropNameInRow="ParentID" msprop:Generator_ColumnVarNameInTable="columnParentID" msprop:Generator_ColumnPropNameInTable="ParentIDColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="8" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="AccPageID" msprop:Generator_UserColumnName="AccPageID" msprop:Generator_ColumnPropNameInRow="AccPageID" msprop:Generator_ColumnVarNameInTable="columnAccPageID" msprop:Generator_ColumnPropNameInTable="AccPageIDColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="32" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="ModDateTime" msprop:Generator_UserColumnName="ModDateTime" msprop:Generator_ColumnPropNameInRow="ModDateTime" msprop:Generator_ColumnVarNameInTable="columnModDateTime" msprop:Generator_ColumnPropNameInTable="ModDateTimeColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="14" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Info" msprop:Generator_UserColumnName="Info" msprop:Generator_ColumnPropNameInRow="Info" msprop:Generator_ColumnVarNameInTable="columnInfo" msprop:Generator_ColumnPropNameInTable="InfoColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="536870910" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="RO000004" msprop:Generator_UserTableName="RO000004" msprop:Generator_RowDeletedName="RO000004RowDeleted" msprop:Generator_RowChangedName="RO000004RowChanged" msprop:Generator_RowClassName="RO000004Row" msprop:Generator_RowChangingName="RO000004RowChanging" msprop:Generator_RowEvArgName="RO000004RowChangeEvent" msprop:Generator_RowEvHandlerName="RO000004RowChangeEventHandler" msprop:Generator_TableClassName="RO000004DataTable" msprop:Generator_TableVarName="tableRO000004" msprop:Generator_RowDeletingName="RO000004RowDeleting" msprop:Generator_TablePropName="RO000004">
<xs:complexType>
<xs:sequence>
<xs:element name="RecID" msprop:Generator_UserColumnName="RecID" msprop:Generator_ColumnPropNameInRow="RecID" msprop:Generator_ColumnVarNameInTable="columnRecID" msprop:Generator_ColumnPropNameInTable="RecIDColumn">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="8" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="RecType" msprop:Generator_UserColumnName="RecType" msprop:Generator_ColumnPropNameInRow="RecType" msprop:Generator_ColumnVarNameInTable="columnRecType" msprop:Generator_ColumnPropNameInTable="RecTypeColumn" type="xs:int" minOccurs="0" />
<xs:element name="ParentID" msprop:Generator_UserColumnName="ParentID" msprop:Generator_ColumnPropNameInRow="ParentID" msprop:Generator_ColumnVarNameInTable="columnParentID" msprop:Generator_ColumnPropNameInTable="ParentIDColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="8" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="AccPageID" msprop:Generator_UserColumnName="AccPageID" msprop:Generator_ColumnPropNameInRow="AccPageID" msprop:Generator_ColumnVarNameInTable="columnAccPageID" msprop:Generator_ColumnPropNameInTable="AccPageIDColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="32" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="ModDateTime" msprop:Generator_UserColumnName="ModDateTime" msprop:Generator_ColumnPropNameInRow="ModDateTime" msprop:Generator_ColumnVarNameInTable="columnModDateTime" msprop:Generator_ColumnPropNameInTable="ModDateTimeColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="14" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Info" msprop:Generator_UserColumnName="Info" msprop:Generator_ColumnPropNameInRow="Info" msprop:Generator_ColumnVarNameInTable="columnInfo" msprop:Generator_ColumnPropNameInTable="InfoColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="536870910" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ROMASTER" msprop:Generator_UserTableName="ROMASTER" msprop:Generator_RowDeletedName="ROMASTERRowDeleted" msprop:Generator_RowChangedName="ROMASTERRowChanged" msprop:Generator_RowClassName="ROMASTERRow" msprop:Generator_RowChangingName="ROMASTERRowChanging" msprop:Generator_RowEvArgName="ROMASTERRowChangeEvent" msprop:Generator_RowEvHandlerName="ROMASTERRowChangeEventHandler" msprop:Generator_TableClassName="ROMASTERDataTable" msprop:Generator_TableVarName="tableROMASTER" msprop:Generator_RowDeletingName="ROMASTERRowDeleting" msprop:Generator_TablePropName="ROMASTER">
<xs:complexType>
<xs:sequence>
<xs:element name="RecID" msprop:Generator_UserColumnName="RecID" msprop:Generator_ColumnPropNameInRow="RecID" msprop:Generator_ColumnVarNameInTable="columnRecID" msprop:Generator_ColumnPropNameInTable="RecIDColumn">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="8" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="RecType" msprop:Generator_UserColumnName="RecType" msprop:Generator_ColumnPropNameInRow="RecType" msprop:Generator_ColumnVarNameInTable="columnRecType" msprop:Generator_ColumnPropNameInTable="RecTypeColumn" type="xs:int" minOccurs="0" />
<xs:element name="ParentID" msprop:Generator_UserColumnName="ParentID" msprop:Generator_ColumnPropNameInRow="ParentID" msprop:Generator_ColumnVarNameInTable="columnParentID" msprop:Generator_ColumnPropNameInTable="ParentIDColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="8" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="AccPageID" msprop:Generator_UserColumnName="AccPageID" msprop:Generator_ColumnPropNameInRow="AccPageID" msprop:Generator_ColumnVarNameInTable="columnAccPageID" msprop:Generator_ColumnPropNameInTable="AccPageIDColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="32" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="ModDateTime" msprop:Generator_UserColumnName="ModDateTime" msprop:Generator_ColumnPropNameInRow="ModDateTime" msprop:Generator_ColumnVarNameInTable="columnModDateTime" msprop:Generator_ColumnPropNameInTable="ModDateTimeColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="14" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Info" msprop:Generator_UserColumnName="Info" msprop:Generator_ColumnPropNameInRow="Info" msprop:Generator_ColumnVarNameInTable="columnInfo" msprop:Generator_ColumnPropNameInTable="InfoColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="536870910" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:RO000002" />
<xs:field xpath="mstns:RecID" />
</xs:unique>
<xs:unique name="RO000003_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:RO000003" />
<xs:field xpath="mstns:RecID" />
</xs:unique>
<xs:unique name="RO000004_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:RO000004" />
<xs:field xpath="mstns:RecID" />
</xs:unique>
<xs:unique name="ROMASTER_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:ROMASTER" />
<xs:field xpath="mstns:RecID" />
</xs:unique>
</xs:element>
</xs:schema>

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<!--<autogenerated>
This code was generated by a tool to store the dataset designer's layout information.
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
</autogenerated>-->
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="16" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:RO000002" ZOrder="4" X="70" Y="70" Height="191" Width="204" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
<Shape ID="DesignTable:RO000003" ZOrder="3" X="344" Y="70" Height="191" Width="204" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
<Shape ID="DesignTable:RO000004" ZOrder="2" X="618" Y="70" Height="191" Width="204" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
<Shape ID="DesignTable:ROMASTER" ZOrder="1" X="892" Y="70" Height="191" Width="211" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
</Shapes>
<Connectors />
</DiagramLayout>

View File

@@ -0,0 +1,131 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{6E879177-F542-49A4-96AC-2384F469111C}</ProjectGuid>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>WestinghouseROImport</RootNamespace>
<AssemblyName>WestinghouseROImport</AssemblyName>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="frmROImport.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="frmROImport.Designer.cs">
<DependentUpon>frmROImport.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="frmROImport.resx">
<SubType>Designer</SubType>
<DependentUpon>frmROImport.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<None Include="app.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<None Include="ROCPPImportDataSet.xsc">
<DependentUpon>ROCPPImportDataSet.xsd</DependentUpon>
</None>
<None Include="ROCPPImportDataSet.xsd">
<SubType>Designer</SubType>
<Generator>MSDataSetGenerator</Generator>
<LastGenOutput>ROCPPImportDataSet.Designer.cs</LastGenOutput>
</None>
<None Include="ROCPPImportDataSet.xss">
<DependentUpon>ROCPPImportDataSet.xsd</DependentUpon>
</None>
<None Include="ROImportDataSet.xsc">
<DependentUpon>ROImportDataSet.xsd</DependentUpon>
</None>
<None Include="ROImportDataSet.xsd">
<SubType>Designer</SubType>
<Generator>MSDataSetGenerator</Generator>
<LastGenOutput>ROImportDataSet.Designer.cs</LastGenOutput>
</None>
<None Include="ROImportDataSet.xss">
<DependentUpon>ROImportDataSet.xsd</DependentUpon>
</None>
<None Include="ROMasterDataSet.xsc">
<DependentUpon>ROMasterDataSet.xsd</DependentUpon>
</None>
<None Include="ROMasterDataSet.xsd">
<SubType>Designer</SubType>
<Generator>MSDataSetGenerator</Generator>
<LastGenOutput>ROMasterDataSet.Designer.cs</LastGenOutput>
</None>
<None Include="ROMasterDataSet.xss">
<DependentUpon>ROMasterDataSet.xsd</DependentUpon>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
<Compile Include="ROCPPImportDataSet.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>ROCPPImportDataSet.xsd</DependentUpon>
</Compile>
<Compile Include="ROImportDataSet.cs">
<DependentUpon>ROImportDataSet.xsd</DependentUpon>
<SubType>Component</SubType>
</Compile>
<Compile Include="ROImportDataSet.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>ROImportDataSet.xsd</DependentUpon>
</Compile>
<Compile Include="ROMasterDataSet.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>ROMasterDataSet.xsd</DependentUpon>
</Compile>
</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>

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
</configSections>
<connectionStrings>
<add name="WestinghouseROImport.Properties.Settings.ROMasterConnectionString"
connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\VEWest\RO\ROMaster.mdb"
providerName="System.Data.OleDb" />
<add name="WestinghouseROImport.Properties.Settings.ROImportConnectionString"
connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\VEWest\ROImport.mdb"
providerName="System.Data.OleDb" />
<add name="WestinghouseROImport.Properties.Settings.ROCPPImportConnectionString"
connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\VEWest\ROCPPImport.mdb"
providerName="System.Data.OleDb" />
</connectionStrings>
</configuration>

View File

@@ -0,0 +1,322 @@
namespace WestinghouseROImport
{
partial class frmROImport
{
/// <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 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.menuStrip1 = new System.Windows.Forms.MenuStrip();
this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.setpointsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.clearOldDataToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.importDataToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.updateToCPPToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.equipmentToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.clearOldDataToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.importDataToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.updateToCPPToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.alarmsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.clearOldDataToolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem();
this.importDataToolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem();
this.updateToCPPToolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem();
this.statusStrip1 = new System.Windows.Forms.StatusStrip();
this.tsslStatus = new System.Windows.Forms.ToolStripStatusLabel();
this.tbStatus = new System.Windows.Forms.TextBox();
this.rOImportDataSet = new WestinghouseROImport.ROImportDataSet();
this.STPImportTableAdapter = new WestinghouseROImport.ROImportDataSetTableAdapters.ImportSTP_qryTableAdapter();
this.MELImportTableAdapter = new WestinghouseROImport.ROImportDataSetTableAdapters.ImportMEL_qryTableAdapter();
this.ARPImportTableAdapter = new WestinghouseROImport.ROImportDataSetTableAdapters.ImportARP_tblTableAdapter();
this.rOMasterDataSet = new WestinghouseROImport.ROMasterDataSet();
this.STPTableAdapter = new WestinghouseROImport.ROMasterDataSetTableAdapters.RO000002TableAdapter();
this.MELTableAdapter = new WestinghouseROImport.ROMasterDataSetTableAdapters.RO000003TableAdapter();
this.ARPTableAdapter = new WestinghouseROImport.ROMasterDataSetTableAdapters.RO000004TableAdapter();
this.rOCPPImportDataSet = new WestinghouseROImport.ROCPPImportDataSet();
this.ARPCPPImportTableAdapter = new WestinghouseROImport.ROCPPImportDataSetTableAdapters.ImportARP_tblTableAdapter();
this.MELCPPImportTableAdapter = new WestinghouseROImport.ROCPPImportDataSetTableAdapters.ImportMEL_qryTableAdapter();
this.STPCPPImportTableAdapter = new WestinghouseROImport.ROCPPImportDataSetTableAdapters.ImportSTP_qryTableAdapter();
this.menuStrip1.SuspendLayout();
this.statusStrip1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.rOImportDataSet)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.rOMasterDataSet)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.rOCPPImportDataSet)).BeginInit();
this.SuspendLayout();
//
// menuStrip1
//
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.fileToolStripMenuItem,
this.setpointsToolStripMenuItem,
this.equipmentToolStripMenuItem,
this.alarmsToolStripMenuItem});
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
this.menuStrip1.Name = "menuStrip1";
this.menuStrip1.Size = new System.Drawing.Size(667, 24);
this.menuStrip1.TabIndex = 0;
this.menuStrip1.Text = "menuStrip1";
//
// fileToolStripMenuItem
//
this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.exitToolStripMenuItem});
this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20);
this.fileToolStripMenuItem.Text = "&File";
//
// exitToolStripMenuItem
//
this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
this.exitToolStripMenuItem.Size = new System.Drawing.Size(92, 22);
this.exitToolStripMenuItem.Text = "E&xit";
//
// setpointsToolStripMenuItem
//
this.setpointsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.clearOldDataToolStripMenuItem,
this.importDataToolStripMenuItem,
this.updateToCPPToolStripMenuItem});
this.setpointsToolStripMenuItem.Name = "setpointsToolStripMenuItem";
this.setpointsToolStripMenuItem.Size = new System.Drawing.Size(68, 20);
this.setpointsToolStripMenuItem.Text = "Setpoints";
//
// clearOldDataToolStripMenuItem
//
this.clearOldDataToolStripMenuItem.Name = "clearOldDataToolStripMenuItem";
this.clearOldDataToolStripMenuItem.Size = new System.Drawing.Size(154, 22);
this.clearOldDataToolStripMenuItem.Text = "Clear Old Data";
this.clearOldDataToolStripMenuItem.Click += new System.EventHandler(this.clearOldSetpointData_Click);
//
// importDataToolStripMenuItem
//
this.importDataToolStripMenuItem.Name = "importDataToolStripMenuItem";
this.importDataToolStripMenuItem.Size = new System.Drawing.Size(154, 22);
this.importDataToolStripMenuItem.Text = "Import Data";
this.importDataToolStripMenuItem.Click += new System.EventHandler(this.importSetpointData_Click);
//
// updateToCPPToolStripMenuItem
//
this.updateToCPPToolStripMenuItem.Name = "updateToCPPToolStripMenuItem";
this.updateToCPPToolStripMenuItem.Size = new System.Drawing.Size(154, 22);
this.updateToCPPToolStripMenuItem.Text = "Update To CPP";
this.updateToCPPToolStripMenuItem.Click += new System.EventHandler(this.updateToCPPSetpoints_Click);
//
// equipmentToolStripMenuItem
//
this.equipmentToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.clearOldDataToolStripMenuItem1,
this.importDataToolStripMenuItem1,
this.updateToCPPToolStripMenuItem1});
this.equipmentToolStripMenuItem.Name = "equipmentToolStripMenuItem";
this.equipmentToolStripMenuItem.Size = new System.Drawing.Size(77, 20);
this.equipmentToolStripMenuItem.Text = "Equipment";
//
// clearOldDataToolStripMenuItem1
//
this.clearOldDataToolStripMenuItem1.Name = "clearOldDataToolStripMenuItem1";
this.clearOldDataToolStripMenuItem1.Size = new System.Drawing.Size(154, 22);
this.clearOldDataToolStripMenuItem1.Text = "Clear Old Data";
this.clearOldDataToolStripMenuItem1.Click += new System.EventHandler(this.clearOldMELData_Click);
//
// importDataToolStripMenuItem1
//
this.importDataToolStripMenuItem1.Name = "importDataToolStripMenuItem1";
this.importDataToolStripMenuItem1.Size = new System.Drawing.Size(154, 22);
this.importDataToolStripMenuItem1.Text = "Import Data";
this.importDataToolStripMenuItem1.Click += new System.EventHandler(this.importMELData_Click);
//
// updateToCPPToolStripMenuItem1
//
this.updateToCPPToolStripMenuItem1.Name = "updateToCPPToolStripMenuItem1";
this.updateToCPPToolStripMenuItem1.Size = new System.Drawing.Size(154, 22);
this.updateToCPPToolStripMenuItem1.Text = "Update To CPP";
this.updateToCPPToolStripMenuItem1.Click += new System.EventHandler(this.updateToCPPEquipment_Click);
//
// alarmsToolStripMenuItem
//
this.alarmsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.clearOldDataToolStripMenuItem2,
this.importDataToolStripMenuItem2,
this.updateToCPPToolStripMenuItem2});
this.alarmsToolStripMenuItem.Name = "alarmsToolStripMenuItem";
this.alarmsToolStripMenuItem.Size = new System.Drawing.Size(56, 20);
this.alarmsToolStripMenuItem.Text = "Alarms";
//
// clearOldDataToolStripMenuItem2
//
this.clearOldDataToolStripMenuItem2.Name = "clearOldDataToolStripMenuItem2";
this.clearOldDataToolStripMenuItem2.Size = new System.Drawing.Size(154, 22);
this.clearOldDataToolStripMenuItem2.Text = "Clear Old Data";
this.clearOldDataToolStripMenuItem2.Click += new System.EventHandler(this.clearOldARPData_Click);
//
// importDataToolStripMenuItem2
//
this.importDataToolStripMenuItem2.Name = "importDataToolStripMenuItem2";
this.importDataToolStripMenuItem2.Size = new System.Drawing.Size(154, 22);
this.importDataToolStripMenuItem2.Text = "Import Data";
this.importDataToolStripMenuItem2.Click += new System.EventHandler(this.importARPData_Click);
//
// updateToCPPToolStripMenuItem2
//
this.updateToCPPToolStripMenuItem2.Name = "updateToCPPToolStripMenuItem2";
this.updateToCPPToolStripMenuItem2.Size = new System.Drawing.Size(154, 22);
this.updateToCPPToolStripMenuItem2.Text = "Update To CPP";
this.updateToCPPToolStripMenuItem2.Click += new System.EventHandler(this.updateToCPPAlarms_Click);
//
// statusStrip1
//
this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.tsslStatus});
this.statusStrip1.Location = new System.Drawing.Point(0, 533);
this.statusStrip1.Name = "statusStrip1";
this.statusStrip1.Size = new System.Drawing.Size(667, 22);
this.statusStrip1.TabIndex = 1;
this.statusStrip1.Text = "statusStrip1";
//
// tsslStatus
//
this.tsslStatus.Name = "tsslStatus";
this.tsslStatus.Size = new System.Drawing.Size(39, 17);
this.tsslStatus.Text = "Ready";
//
// tbStatus
//
this.tbStatus.Dock = System.Windows.Forms.DockStyle.Fill;
this.tbStatus.Location = new System.Drawing.Point(0, 24);
this.tbStatus.Multiline = true;
this.tbStatus.Name = "tbStatus";
this.tbStatus.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
this.tbStatus.Size = new System.Drawing.Size(667, 509);
this.tbStatus.TabIndex = 2;
//
// rOImportDataSet
//
this.rOImportDataSet.DataSetName = "ROImportDataSet";
this.rOImportDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
//
// STPImportTableAdapter
//
this.STPImportTableAdapter.ClearBeforeFill = true;
//
// MELImportTableAdapter
//
this.MELImportTableAdapter.ClearBeforeFill = true;
//
// ARPImportTableAdapter
//
this.ARPImportTableAdapter.ClearBeforeFill = true;
//
// rOMasterDataSet
//
this.rOMasterDataSet.DataSetName = "ROMasterDataSet";
this.rOMasterDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
//
// STPTableAdapter
//
this.STPTableAdapter.ClearBeforeFill = true;
//
// MELTableAdapter
//
this.MELTableAdapter.ClearBeforeFill = true;
//
// ARPTableAdapter
//
this.ARPTableAdapter.ClearBeforeFill = true;
//
// rOCPPImportDataSet
//
this.rOCPPImportDataSet.DataSetName = "ROCPPImportDataSet";
this.rOCPPImportDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
//
// ARPCPPImportTableAdapter
//
this.ARPCPPImportTableAdapter.ClearBeforeFill = true;
//
// MELCPPImportTableAdapter
//
this.MELCPPImportTableAdapter.ClearBeforeFill = true;
//
// STPCPPImportTableAdapter
//
this.STPCPPImportTableAdapter.ClearBeforeFill = true;
//
// frmROImport
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(667, 555);
this.Controls.Add(this.tbStatus);
this.Controls.Add(this.statusStrip1);
this.Controls.Add(this.menuStrip1);
this.MainMenuStrip = this.menuStrip1;
this.Name = "frmROImport";
this.Text = "Westinghouse RO Import";
this.menuStrip1.ResumeLayout(false);
this.menuStrip1.PerformLayout();
this.statusStrip1.ResumeLayout(false);
this.statusStrip1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.rOImportDataSet)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.rOMasterDataSet)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.rOCPPImportDataSet)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.MenuStrip menuStrip1;
private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem setpointsToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem clearOldDataToolStripMenuItem;
private System.Windows.Forms.StatusStrip statusStrip1;
private System.Windows.Forms.ToolStripMenuItem importDataToolStripMenuItem;
private ROImportDataSet rOImportDataSet;
private WestinghouseROImport.ROImportDataSetTableAdapters.ImportSTP_qryTableAdapter STPImportTableAdapter;
private ROMasterDataSet rOMasterDataSet;
private WestinghouseROImport.ROMasterDataSetTableAdapters.RO000002TableAdapter STPTableAdapter;
private System.Windows.Forms.ToolStripStatusLabel tsslStatus;
private System.Windows.Forms.ToolStripMenuItem equipmentToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem clearOldDataToolStripMenuItem1;
private System.Windows.Forms.ToolStripMenuItem importDataToolStripMenuItem1;
private WestinghouseROImport.ROMasterDataSetTableAdapters.RO000003TableAdapter MELTableAdapter;
private WestinghouseROImport.ROMasterDataSetTableAdapters.RO000004TableAdapter ARPTableAdapter;
private WestinghouseROImport.ROImportDataSetTableAdapters.ImportMEL_qryTableAdapter MELImportTableAdapter;
private System.Windows.Forms.TextBox tbStatus;
private WestinghouseROImport.ROImportDataSetTableAdapters.ImportARP_tblTableAdapter ARPImportTableAdapter;
private System.Windows.Forms.ToolStripMenuItem alarmsToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem clearOldDataToolStripMenuItem2;
private System.Windows.Forms.ToolStripMenuItem importDataToolStripMenuItem2;
private ROCPPImportDataSet rOCPPImportDataSet;
private WestinghouseROImport.ROCPPImportDataSetTableAdapters.ImportARP_tblTableAdapter ARPCPPImportTableAdapter;
private WestinghouseROImport.ROCPPImportDataSetTableAdapters.ImportMEL_qryTableAdapter MELCPPImportTableAdapter;
private WestinghouseROImport.ROCPPImportDataSetTableAdapters.ImportSTP_qryTableAdapter STPCPPImportTableAdapter;
private System.Windows.Forms.ToolStripMenuItem updateToCPPToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem updateToCPPToolStripMenuItem1;
private System.Windows.Forms.ToolStripMenuItem updateToCPPToolStripMenuItem2;
}
}

View File

@@ -0,0 +1,815 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WestinghouseROImport
{
public partial class frmROImport : Form
{
public string MyStatus
{
get { return tsslStatus.Text; }
set { tsslStatus.Text = value; Application.DoEvents(); }
}
public frmROImport()
{
InitializeComponent();
}
private string _STPDBRecID = "";
public string STPDBRecID
{
get { return _STPDBRecID; }
set { _STPDBRecID = value; }
}
private void clearOldSetpointData_Click(object sender, EventArgs e)
{
int count = ClearSetpointData();
MessageBox.Show(string.Format("{0} setpoint records deleted", count), "Purge", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
private int ClearSetpointData()
{
STPTableAdapter.Fill(this.rOMasterDataSet.RO000002);
DataTable dto = STPTableAdapter.GetData();
List<DataRow> deleteList = new List<DataRow>();
foreach (DataRow dr in dto.Rows)
{
if (int.Parse(dr["RecType"].ToString()) == 3) // Remove Grouping
{
if (dr["ParentID"].ToString() != "00000000")
{
deleteList.Add(dr);
}
else
{
STPDBRecID = dr["RecID"].ToString();
}
}
if (int.Parse(dr["RecType"].ToString()) == 5) // Remove ROs
{
deleteList.Add(dr);
}
}
int count = deleteList.Count;
while (deleteList.Count > 0)
{
DataRow dr = deleteList[0];
dr.Delete();
STPTableAdapter.Update(dr);
deleteList.RemoveAt(0);
}
return count;
}
private Dictionary<string,string> _SetpointParameters;
public Dictionary<string,string> SetpointParameters
{
get { return _SetpointParameters; }
set { _SetpointParameters = value; }
}
private DataRow _DrCount;
public DataRow DrCount
{
get { return _DrCount; }
set { _DrCount = value; }
}
private void importSetpointData_Click(object sender, EventArgs e)
{
DateTime dtStart = DateTime.Now;
ClearSetpointData();
STPTableAdapter.Fill(this.rOMasterDataSet.RO000002);
STPImportTableAdapter.Fill(this.rOImportDataSet.ImportSTP_qry);
DataTable dto = STPTableAdapter.GetData();
DrCount = dto.Rows[0];
DataTable dti = STPImportTableAdapter.GetData();
SetpointParameters = new Dictionary<string, string>();
foreach (DataRow dr in dti.Rows)
{
// Parameter Name Value Description
//Console.WriteLine("Parameter = '{0}', Name = '{1}', Value = '{2}', Description = '{3}'",
// dr["Parameter"], dr["Name"], dr["Value"], dr["Description"]);
MyStatus = dr["Name"].ToString();
AddSetpoint(dr["Parameter"].ToString(), dr["Name"].ToString(), dr["Value"].ToString(), dr["Description"].ToString());
}
STPTableAdapter.Update(DrCount);
DateTime dtEnd = DateTime.Now;
MyStatus = string.Format("{0} Setpoint ROs added in {1} seconds", dti.Rows.Count,TimeSpan.FromTicks(dtEnd.Ticks - dtStart.Ticks).TotalSeconds);
MessageBox.Show(string.Format("{0} ROs added", dti.Rows.Count), "ROs Loaded", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
private void AddSetpoint(string parameter, string id, string value, string description)
{
string parentid = AddSetpointParameter(parameter);
string recid = GetNextSTPRecID();
string rovalue = BuildSTPROValue(id, value, description);
STPTableAdapter.Insert(recid, 5, parentid, id, DateTimeStamp, rovalue);
}
public string DateTimeStamp
{
get {return DateTime.Now.ToString("yyyyMMddHHmm");}
}
private string GetNextSTPRecID()
{
string nextRec = DrCount["Info"].ToString();
nextRec = string.Format("{0:x08}", Convert.ToInt32(nextRec,16) + 1);
DrCount["Info"] = nextRec;
//STPTableAdapter.Update(DrCount);
//Console.WriteLine("ID = {0}", nextRec);
return nextRec;
}
private string BuildSTPROValue(string id, string value, string description)
{
value = FixSpecialCharacters(value);
description = FixSpecialCharacters(description);
return string.Format("<Setpoint MenuTitle=\"{1} - {2}\"><Setpoint__Valuea>{1}</Setpoint__Valuea><Setpoint__ID>{0}</Setpoint__ID><Description>{2}</Description></Setpoint>"
,id,value,description);
}
private string FixSpecialCharacters(string str)
{
string str2 = str.Trim();
StringBuilder sb = new StringBuilder();
foreach (char c in str2)
{
switch (c)
{
case '"':
sb.Append("&quot;");
break;
case '&':
sb.Append("&amp;");
break;
case '<':
sb.Append("&lt;");
break;
case '>':
sb.Append("&gt;");
break;
case '\xA0':
sb.Append(' ');
break;
case '\x1E':
sb.Append('-');
break;
case '\xB0':
sb.Append(c);
break;
case '\u2013':
sb.Append('-');
break;
default:
if (c < ' ' || c > '\x7F')
{
sb.Append(string.Format("[x{0:X}]", (int)c));
}
else
sb.Append(c);
break;
}
}
return sb.ToString();
}
private string AddSetpointParameter(string parameter)
{
if (!SetpointParameters.ContainsKey(parameter))
{
string recid = GetNextSTPRecID();
string paramValue = BuildSTPParam(parameter);
STPTableAdapter.Insert(recid, 3, STPDBRecID, null, DateTimeStamp, paramValue);
SetpointParameters.Add(parameter, recid);
}
return SetpointParameters[parameter];
}
private string BuildSTPParam(string parameter)
{
return string.Format("<vlnGroup MenuTitle=\"{0}\"><Parameter>{0}</Parameter></vlnGroup>", parameter);
}
private void clearOldMELData_Click(object sender, EventArgs e)
{
// Clear Old MEL Data
int count = ClearMELData();
MessageBox.Show(string.Format("{0} MEL records deleted", count), "Purge", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
private string MELDBRecID;
private int ClearMELData()
{
MELTableAdapter.Fill(this.rOMasterDataSet.RO000003);
DataTable dto = MELTableAdapter.GetData();
List<DataRow> deleteList = new List<DataRow>();
foreach (DataRow dr in dto.Rows)
{
if (int.Parse(dr["RecType"].ToString()) == 3) // Remove Grouping
{
if (dr["ParentID"].ToString() != "00000000")
{
deleteList.Add(dr);
}
else
{
MELDBRecID = dr["RecID"].ToString();
}
}
if (int.Parse(dr["RecType"].ToString()) == 5) // Remove ROs
{
deleteList.Add(dr);
}
}
int count = deleteList.Count;
while (deleteList.Count > 0)
{
DataRow dr = deleteList[0];
dr.Delete();
MELTableAdapter.Update(dr);
deleteList.RemoveAt(0);
}
return count;
}
Dictionary<string, string> _MELSystems;
public Dictionary<string, string> MELSystems
{
get { return _MELSystems; }
set { _MELSystems = value; }
}
Dictionary<string, string> _MELSysComp;
public Dictionary<string, string> MELSysComps
{
get { return _MELSysComp; }
set { _MELSysComp = value; }
}
private void importMELData_Click(object sender, EventArgs e)
{
DateTime dtStart = DateTime.Now;
ClearMELData();
MELTableAdapter.Fill(this.rOMasterDataSet.RO000003);
MELImportTableAdapter.Fill(this.rOImportDataSet.ImportMEL_qry);
DataTable dto = MELTableAdapter.GetData();
DrCount = dto.Rows[0];
DataTable dti = MELImportTableAdapter.GetData();
MELSystems = new Dictionary<string, string>();
MELSysComps = new Dictionary<string, string>();
int recsAdded = 0;
DateTime justASecHoney = DateTime.Now + TimeSpan.FromSeconds(10);
int lastAdded = 0;
DateTime lastTime = DateTime.Now;
foreach (DataRow dr in dti.Rows)
{
recsAdded++;
// Parameter Name Value Description
//Console.WriteLine("Parameter = '{0}', Name = '{1}', Value = '{2}', Description = '{3}'",
// dr["Parameter"], dr["Name"], dr["Value"], dr["Description"]);
MyStatus = dr["FullName"].ToString();
AddMEL(dr["SystemID"].ToString(), dr["SystemDesc"].ToString(), dr["ComponentID"].ToString(), dr["CompDesc"].ToString()
, dr["FullName"].ToString(), dr["ShortName"].ToString(), dr["Room"].ToString(), dr["Description"].ToString(), dr["CommonDesc"].ToString());
DateTime tNow = DateTime.Now;
if (tNow > justASecHoney)
{
int remaining = dti.Rows.Count - recsAdded;
TimeSpan elapsed = tNow - lastTime;
TimeSpan total = tNow - dtStart;
int processed = recsAdded - lastAdded;
lastTime = tNow;
lastAdded = recsAdded;
DateTime eta1 = tNow + TimeSpan.FromTicks(elapsed.Ticks * remaining / processed);
DateTime eta2 = tNow + TimeSpan.FromTicks(total.Ticks * remaining / recsAdded);
AddStatusText("{0}\t{1}\t{2}\t{3}\t{4}\t{5}", tNow.ToString("HH:mm:ss"), processed,
recsAdded, remaining, eta1.ToString("HH:mm:ss"), eta2.ToString("HH:mm:ss"));
justASecHoney += TimeSpan.FromSeconds(10);
}
}
AddStatusText("{0}\t{1}\t{2}\t{3}", DateTime.Now.ToString("HH:mm:ss"), recsAdded - lastAdded, recsAdded, 0);
MELTableAdapter.Update(DrCount);
DateTime dtEnd = DateTime.Now;
MyStatus = string.Format("{0} MEL ROs added in {1} seconds", dti.Rows.Count, TimeSpan.FromTicks(dtEnd.Ticks - dtStart.Ticks).TotalSeconds);
MessageBox.Show(string.Format("{0} MEL ROs added", dti.Rows.Count), "ROs Loaded", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
private void AddMEL(string systemID, string systemDesc, string ComponentID, string CompDesc, string FullName, string ShortName, string Room, string Description, string CommonDesc)
{
string parentid = AddMELSystemComponent(systemID,systemDesc,ComponentID,CompDesc);
string recid = GetNextMELRecID();
string rovalue = BuildMELROValue(FullName,ShortName,Room,Description,CommonDesc);
MELTableAdapter.Insert(recid, 5, parentid, FullName, DateTimeStamp, rovalue);
}
private string BuildMELROValue(string FullName, string ShortName, string Room, string Description, string CommonDesc)
{
FullName = FixSpecialCharacters(FullName);
ShortName = FixSpecialCharacters(ShortName);
Room = FixSpecialCharacters(Room);
Description = FixSpecialCharacters(Description);
CommonDesc = FixSpecialCharacters(CommonDesc);
return string.Format("<MEL MenuTitle=\"{0} - {3}\"><Short__Name>{1}</Short__Name><Full__Name>{0}" +
"</Full__Name><Description>{3}</Description><Room>{2}</Room></MEL>",FullName,ShortName,Room,Description,
CommonDesc); // ComonDesc will not load because it has no token {4}
}
private string GetNextMELRecID()
{
string nextRec = DrCount["Info"].ToString();
nextRec = string.Format("{0:x08}", Convert.ToInt32(nextRec, 16) + 1);
DrCount["Info"] = nextRec;
//MELTableAdapter.Update(DrCount);
//Console.WriteLine("ID = {0}", nextRec);
return nextRec;
}
private string AddMELSystemComponent(string systemID, string systemDesc, string ComponentID, string CompDesc)
{
string key = systemID + "|" + ComponentID;
if (!MELSysComps.ContainsKey(key))
{
string sysRecID = AddMELSystem(systemID, systemDesc);
string recid = GetNextMELRecID();
string compValue = BuildMELComponent(ComponentID,CompDesc);
MELTableAdapter.Insert(recid, 3, sysRecID, null, DateTimeStamp, compValue);
MELSysComps.Add(key, recid);
}
return MELSysComps[key];
}
private string BuildMELComponent(string ComponentID, string CompDesc)
{
ComponentID = FixSpecialCharacters(ComponentID);
CompDesc = FixSpecialCharacters(CompDesc);
return string.Format("<vlnGroup MenuTitle=\"{0} - {1}\"><Description>{1}" +
"</Description><Component__Type>{0}</Component__Type></vlnGroup>", ComponentID, CompDesc);
}
private string AddMELSystem(string systemID, string systemDesc)
{
if (!MELSystems.ContainsKey(systemID))
{
string recid = GetNextMELRecID();
string sysValue = BuildMELSystem(systemID,systemDesc);
MELTableAdapter.Insert(recid, 3, MELDBRecID, null, DateTimeStamp, sysValue);
MELSystems.Add(systemID, recid);
}
return MELSystems[systemID];
}
private string BuildMELSystem(string systemID, string systemDesc)
{
systemID = FixSpecialCharacters(systemID);
systemDesc = FixSpecialCharacters(systemDesc);
return string.Format("<vlnGroup GroupMenuItem=\"&lt;Component Type&gt; - &lt;Description&gt;\" GroupFieldsInUse=\"00000022 00000010\" MenuTitle=\"{0} - {1}\"><Description>{1}</Description><System>{0}</System></vlnGroup>", systemID, systemID);
}
private void AddStatusText(string format, params object []args)
{
tbStatus.Select(tbStatus.TextLength, 0);
tbStatus.SelectedText=string.Format(format, args) + "\r\n";
}
private void clearOldARPData_Click(object sender, EventArgs e)
{
ClearARPData();
}
private string ARPDBRecID;
private int ClearARPData()
{
ARPTableAdapter.Fill(this.rOMasterDataSet.RO000004);
DataTable dto = ARPTableAdapter.GetData();
List<DataRow> deleteList = new List<DataRow>();
foreach (DataRow dr in dto.Rows)
{
if (int.Parse(dr["RecType"].ToString()) == 3) // Remove Grouping
{
if (dr["ParentID"].ToString() != "00000000")
{
deleteList.Add(dr);
}
else
{
ARPDBRecID = dr["RecID"].ToString();
}
}
if (int.Parse(dr["RecType"].ToString()) == 5) // Remove ROs
{
deleteList.Add(dr);
}
}
int count = deleteList.Count;
while (deleteList.Count > 0)
{
DataRow dr = deleteList[0];
dr.Delete();
ARPTableAdapter.Update(dr);
deleteList.RemoveAt(0);
}
return count;
}
private Dictionary<string, string> _ARPDocuments;
public Dictionary<string, string> ARPDocuments
{
get { return _ARPDocuments; }
set { _ARPDocuments = value; }
}
private Dictionary<string, string> _ARPSystems;
public Dictionary<string, string> ARPSystems
{
get { return _ARPSystems; }
set { _ARPSystems = value; }
}
private void importARPData_Click(object sender, EventArgs e)
{
ARPImportTableAdapter.Fill(this.rOImportDataSet.ImportARP_tbl);
DateTime dtStart = DateTime.Now;
ClearARPData();
ARPTableAdapter.Fill(this.rOMasterDataSet.RO000004);
ARPImportTableAdapter.Fill(this.rOImportDataSet.ImportARP_tbl);
DataTable dto = ARPTableAdapter.GetData();
DrCount = dto.Rows[0];
DataTable dti = ARPImportTableAdapter.GetData();
ARPDocuments = new Dictionary<string, string>();
ARPSystems = new Dictionary<string, string>();
int recsAdded = 0;
DateTime justASecHoney = DateTime.Now + TimeSpan.FromSeconds(10);
int lastAdded = 0;
DateTime lastTime = DateTime.Now;
foreach (DataRow dr in dti.Rows)
{
recsAdded++;
// Parameter Name Value Description
//Console.WriteLine("Parameter = '{0}', Name = '{1}', Value = '{2}', Description = '{3}'",
// dr["Parameter"], dr["Name"], dr["Value"], dr["Description"]);
MyStatus = dr["Alarm"].ToString();
AddARP(dr["Document"].ToString(), dr["Alarm"].ToString(), dr["PointName"].ToString(), dr["Type"].ToString()
, dr["Value"].ToString(), dr["Description"].ToString(), dr["SystemID"].ToString(), dr["SysTitle"].ToString());
DateTime tNow = DateTime.Now;
if (tNow > justASecHoney)
{
int remaining = dti.Rows.Count - recsAdded;
TimeSpan elapsed = tNow - lastTime;
TimeSpan total = tNow - dtStart;
int processed = recsAdded - lastAdded;
lastTime = tNow;
lastAdded = recsAdded;
DateTime eta1 = tNow + TimeSpan.FromTicks(elapsed.Ticks * remaining / processed);
DateTime eta2 = tNow + TimeSpan.FromTicks(total.Ticks * remaining / recsAdded);
AddStatusText("{0}\t{1}\t{2}\t{3}\t{4}\t{5}", tNow.ToString("HH:mm:ss"), processed,
recsAdded, remaining, eta1.ToString("HH:mm:ss"), eta2.ToString("HH:mm:ss"));
justASecHoney += TimeSpan.FromSeconds(10);
}
}
AddStatusText("{0}\t{1}\t{2}\t{3}", DateTime.Now.ToString("HH:mm:ss"), recsAdded - lastAdded, recsAdded, 0);
ARPTableAdapter.Update(DrCount);
DateTime dtEnd = DateTime.Now;
MyStatus = string.Format("{0} ARP ROs added in {1} seconds", dti.Rows.Count, TimeSpan.FromTicks(dtEnd.Ticks - dtStart.Ticks).TotalSeconds);
MessageBox.Show(string.Format("{0} ARP ROs added", dti.Rows.Count), "ROs Loaded", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
private void AddARP(string document, string alarm, string pointName, string type, string value, string description, string systemID, string systemTitle)
{
string parentid = AddARPDocumentSystem(document,systemID,systemTitle);
string recid = GetNextARPRecID();
string rovalue = BuildARPROValue(alarm, pointName, type, value, description, systemID);
ARPTableAdapter.Insert(recid, 5, parentid, alarm, DateTimeStamp, rovalue);
}
private string BuildARPROValue(string alarm, string pointName, string type, string value, string description, string systemID)
{
alarm = FixSpecialCharacters(alarm);
pointName = FixSpecialCharacters(pointName);
type = FixSpecialCharacters(type);
value = FixSpecialCharacters(value);
description = FixSpecialCharacters(description);
systemID = FixSpecialCharacters(systemID);
return string.Format("<Alarms MenuTitle=\"{0} - {4}\"><Alarm>{0}</Alarm><PointName>{1}</PointName><Type>{2}</Type>" +
"<Alarm__Value>{3}</Alarm__Value><Description>{4}</Description><SystemID>{5}</SystemID></Alarms>",
alarm,pointName,type,value,description,systemID);
}
private string GetNextARPRecID()
{
string nextRec = DrCount["Info"].ToString();
nextRec = string.Format("{0:x08}", Convert.ToInt32(nextRec, 16) + 1);
DrCount["Info"] = nextRec;
return nextRec;
}
private string AddARPDocumentSystem(string document, string systemID, string systemTitle)
{
if (!ARPDocuments.ContainsKey(document))
{
string recid = GetNextARPRecID();
string documentValue = BuildARPDocument(document);
ARPTableAdapter.Insert(recid, 3, ARPDBRecID, null, DateTimeStamp, documentValue);
ARPDocuments.Add(document, recid);
}
if(document != "None") return ARPDocuments[document];
string parentID = ARPDocuments[document];
if (!ARPSystems.ContainsKey(systemID))
{
string recid = GetNextARPRecID();
string documentValue = BuildARPSystem(systemID,systemTitle);
ARPTableAdapter.Insert(recid, 3, parentID , null, DateTimeStamp, documentValue);
ARPSystems.Add(systemID, recid);
}
return ARPSystems[systemID];
}
private string BuildARPSystem(string systemID, string systemTitle)
{
systemID = FixSpecialCharacters(systemID);
systemTitle = FixSpecialCharacters(systemTitle);
return string.Format("<vlnGroup MenuTitle=\"{0} - {1}\"><Description>{1}</Description><System>{0}</System></vlnGroup>", systemID, systemTitle);
}
private string BuildARPDocument(string document)
{
if(document != "None")
return string.Format("<vlnGroup MenuTitle=\"{0}\"><Document>{0}</Document></vlnGroup>", document);
else
return string.Format("<vlnGroup GroupMenuItem=\"&lt;System&gt; - &lt;Description&gt;\" " +
"GroupFieldsInUse=\"0000001e 00000010\" MenuTitle=\"{0}\"><Document>{0}</Document></vlnGroup>",document);
}
private void updateToCPPSetpoints_Click(object sender, EventArgs e)
{
Dictionary<String, int> parentCount = new Dictionary<string, int>();
Dictionary<String, DataRow> parentDictionary = new Dictionary<string, DataRow>();
Dictionary<String, DataRow> roDictionary = new Dictionary<string, DataRow>();
ROMasterDataSet.RO000002DataTable dto = STPTableAdapter.GetData();
BuildSTPDictionaries(dto, parentCount, parentDictionary, roDictionary);
STPCPPImportTableAdapter.Fill(this.rOCPPImportDataSet.ImportSTP_qry);
ROCPPImportDataSet.ImportSTP_qryDataTable dti = STPCPPImportTableAdapter.GetData();
int updateCount = 0;
int updatePCount = 0;
foreach (DataRow dr in dti.Rows)
{
string accPageID = dr["Name"].ToString().Trim();
if (roDictionary.ContainsKey(accPageID))
{
DataRow dro = roDictionary[accPageID];
roDictionary.Remove(accPageID);
string info = BuildSTPROValue(dr["Name"].ToString(), dr["Value"].ToString(), dr["Description"].ToString());
string infoOld = dro["Info"].ToString();
if (info != infoOld)
{
dro["Info"] = info;
dro["ModDateTime"] = DateTimeStamp;
STPTableAdapter.Update(dro);
MyStatus = "Updating " + accPageID;
AddStatusText("Updating {0}", accPageID);
updateCount++;
}
}
else
{
//if dro is null because accpageid does not exist, need to add including figuring out parent status and adding parent if it does not exist
//get parent for new ro
//see if parent exists
MessageBox.Show("oh oh, new ro exists");
}
}
MyStatus = string.Format("{0} ROs Updated", updateCount);
AddStatusText("RO Rows Updated: {0}", updateCount);
// What has not been processed
updateCount = 0;
foreach (string key in roDictionary.Keys)
{
DataRow dr = roDictionary[key];
string parentID = dr["ParentID"].ToString().Trim();
dr.Delete();
STPTableAdapter.Update(dr);
MyStatus = string.Format("Deleting {0}", key);
AddStatusText("Deleting {0}", key);
updateCount++;
parentCount[parentID]--;
if (parentCount[parentID] == 0)
{
DataRow drp = parentDictionary[parentID];
string grandparentID = drp["ParentID"].ToString().Trim();
drp.Delete();
STPTableAdapter.Update(drp);
MyStatus = string.Format("Deleting Parent {0}", parentID);
AddStatusText("Deleting Parent {0}", parentID);
updatePCount++;
parentCount[grandparentID]--;
if (parentCount[grandparentID] == 0)
{
DataRow drgp = parentDictionary[grandparentID];
drgp.Delete();
STPTableAdapter.Update(drgp);
MyStatus = string.Format("Deleting GrandParent {0}", grandparentID);
AddStatusText("Deleting GrandParent {0}", grandparentID);
updatePCount++;
}
}
}
MyStatus = string.Format("{0} ROs Deleted, {1} RO Parent/GrandParent Ros Deleted", updateCount, updatePCount);
AddStatusText("RO Rows Deleted: {0}, RO Parent/GrandParent Rows Deleted {1}", updateCount, updatePCount);
}
private void BuildSTPDictionaries(ROMasterDataSet.RO000002DataTable dto, Dictionary<string, int> parentCount, Dictionary<string, DataRow> parentRow, Dictionary<string, DataRow> dataRow)
{
foreach (DataRow dr in dto.Rows)
{
if (int.Parse(dr["RecType"].ToString()) == 3) // Remove Grouping
{
if (dr["ParentID"].ToString() != "00000000")
{
parentRow.Add(dr["RecID"].ToString().Trim(), dr);
AddToParentCount(parentCount, dr["ParentID"].ToString().Trim());
}
}
if (int.Parse(dr["RecType"].ToString()) == 5) // Remove ROs
{
string accPageID = dr["AccPageID"].ToString().Trim();
dataRow.Add(accPageID, dr);
AddToParentCount(parentCount, dr["ParentID"].ToString().Trim());
}
}
}
private void BuildARPDictionaries(ROMasterDataSet.RO000004DataTable dto, Dictionary<string, int> parentCount, Dictionary<string, DataRow> parentRow, Dictionary<string, DataRow> dataRow)
{
foreach (DataRow dr in dto.Rows)
{
if (int.Parse(dr["RecType"].ToString()) == 3) // Remove Grouping
{
if (dr["ParentID"].ToString() != "00000000")
{
parentRow.Add(dr["RecID"].ToString().Trim(), dr);
AddToParentCount(parentCount, dr["ParentID"].ToString().Trim());
}
}
if (int.Parse(dr["RecType"].ToString()) == 5) // Remove ROs
{
string accPageID = dr["AccPageID"].ToString().Trim();
dataRow.Add(accPageID, dr);
AddToParentCount(parentCount, dr["ParentID"].ToString().Trim());
}
}
}
private void AddToParentCount(Dictionary<string, int> parentCount, string parentID)
{
if (!parentCount.ContainsKey(parentID))
parentCount.Add(parentID, 0);
parentCount[parentID]++;
}
private void BuildMELDictionaries(ROMasterDataSet.RO000003DataTable dto, Dictionary<string, int> parentCount, Dictionary<string, DataRow> parentRow, Dictionary<string, DataRow> dataRow)
{
foreach (DataRow dr in dto.Rows)
{
if (int.Parse(dr["RecType"].ToString()) == 3) // Remove Grouping
{
if (dr["ParentID"].ToString() != "00000000")
{
parentRow.Add(dr["RecID"].ToString().Trim(), dr);
AddToParentCount(parentCount, dr["ParentID"].ToString().Trim());
}
}
if (int.Parse(dr["RecType"].ToString()) == 5) // Remove ROs
{
string accPageID = dr["AccPageID"].ToString().Trim();
dataRow.Add(accPageID, dr);
AddToParentCount(parentCount, dr["ParentID"].ToString().Trim());
}
}
}
private void updateToCPPEquipment_Click(object sender, EventArgs e)
{
Dictionary<String, int> parentCount = new Dictionary<string, int>();
Dictionary<String, DataRow> parentDictionary = new Dictionary<string, DataRow>();
Dictionary<String, DataRow> roDictionary = new Dictionary<string, DataRow>();
ROMasterDataSet.RO000003DataTable dto = MELTableAdapter.GetData();
BuildMELDictionaries(dto, parentCount, parentDictionary, roDictionary);
MELCPPImportTableAdapter.Fill(this.rOCPPImportDataSet.ImportMEL_qry);
ROCPPImportDataSet.ImportMEL_qryDataTable dti = MELCPPImportTableAdapter.GetData();
int updateCount = 0;
int updatePCount = 0;
foreach (DataRow dr in dti.Rows)
{
string accPageID = dr["FullName"].ToString().Trim();
if (roDictionary.ContainsKey(accPageID))
{
DataRow dro = roDictionary[accPageID];
roDictionary.Remove(accPageID);
string info = BuildMELROValue(dr["Fullname"].ToString(), dr["ShortName"].ToString(), dr["Room"].ToString(), dr["Description"].ToString(), dr["CommonDesc"].ToString());
string infoOld = dro["Info"].ToString();
if (info != infoOld)
{
dro["Info"] = info;
dro["ModDateTime"] = DateTimeStamp;
MELTableAdapter.Update(dro);
MyStatus = "Updating " + accPageID;
AddStatusText("Updating {0}", accPageID);
updateCount++;
}
}
else
{
//if dro is null because accpageid does not exist, need to add including figuring out parent status and adding parent if it does not exist
//get parent for new ro
//see if parent exists
AddStatusText("********** new mel item '{0}' **********", accPageID);
}
}
MyStatus = string.Format("{0} ROs Updated", updateCount);
AddStatusText("RO Rows Updated: {0}", updateCount);
// What has not been processed
updateCount = 0;
foreach (string key in roDictionary.Keys)
{
if (key == "CCS-EJ-PLV200")
System.Threading.Thread.Sleep(1000);
DataRow dr = roDictionary[key];
string parentID = dr["ParentID"].ToString().Trim();
dr.Delete();
MELTableAdapter.Update(dr);
MyStatus = string.Format("Deleting {0}", key);
AddStatusText("Deleting '{0}'", key);
updateCount++;
parentCount[parentID]--;
if (parentCount[parentID] == 0)
{
DataRow drp = parentDictionary[parentID];
string grandparentID = drp["ParentID"].ToString().Trim();
drp.Delete();
MELTableAdapter.Update(drp);
MyStatus = string.Format("Deleting Parent {0}", parentID);
AddStatusText("Deleting Parent {0}", parentID);
updatePCount++;
parentCount[grandparentID]--;
if (parentCount[grandparentID] == 0)
{
DataRow drgp = parentDictionary[grandparentID];
drgp.Delete();
MELTableAdapter.Update(drgp);
MyStatus = string.Format("Deleting GrandParent {0}", grandparentID);
AddStatusText("Deleting GrandParent {0}", grandparentID);
updatePCount++;
}
}
}
MyStatus = string.Format("{0} ROs Deleted, {1} RO Parent/GrandParent Ros Deleted", updateCount, updatePCount);
AddStatusText("RO Rows Deleted: {0}, RO Parent/GrandParent Rows Deleted {1}", updateCount, updatePCount);
}
private void updateToCPPAlarms_Click(object sender, EventArgs e)
{
Dictionary<String, int> parentCount = new Dictionary<string, int>();
Dictionary<String, DataRow> parentDictionary = new Dictionary<string, DataRow>();
Dictionary<String, DataRow> roDictionary = new Dictionary<string, DataRow>();
ROMasterDataSet.RO000004DataTable dto = ARPTableAdapter.GetData();
BuildARPDictionaries(dto, parentCount, parentDictionary, roDictionary);
//why is this not a query versus a table
ARPCPPImportTableAdapter.Fill(this.rOCPPImportDataSet.ImportARP_tbl);
ROCPPImportDataSet.ImportARP_tblDataTable dti = ARPCPPImportTableAdapter.GetData();
int updateCount = 0;
int updatePCount = 0;
int addCount = 0;
foreach (DataRow dr in dti.Rows)
{
string accPageID = dr["Alarm"].ToString().Trim();
if (roDictionary.ContainsKey(accPageID))
{
DataRow dro = roDictionary[accPageID];
roDictionary.Remove(accPageID);
string info = BuildARPROValue(dr["Alarm"].ToString(), dr["PointName"].ToString(), dr["Type"].ToString(), dr["Value"].ToString(), dr["Description"].ToString(), dr["SystemID"].ToString());
string infoOld = dro["Info"].ToString();
if (info != infoOld)
{
dro["Info"] = info;
dro["ModDateTime"] = DateTimeStamp;
ARPTableAdapter.Update(dro);
MyStatus = "Updating " + accPageID;
AddStatusText("Updating {0}", accPageID);
updateCount++;
}
}
else
{
//if dro is null because accpageid does not exist, need to add including figuring out parent status and adding parent if it does not exist
//get parent for new ro
//see if parent exists
AddStatusText("********** new arp item '{0}' **********", accPageID);
addCount++;
}
}
MyStatus = string.Format("{0} ROs Updated", updateCount);
AddStatusText("RO Rows Updated: {0}", updateCount);
AddStatusText("RO Rows Added: {0}", addCount);
// What has not been processed
updateCount = 0;
foreach (string key in roDictionary.Keys)
{
DataRow dr = roDictionary[key];
string parentID = dr["ParentID"].ToString().Trim();
dr.Delete();
ARPTableAdapter.Update(dr);
MyStatus = string.Format("Deleting {0}", key);
AddStatusText("Deleting '{0}'", key);
updateCount++;
parentCount[parentID]--;
if (parentCount[parentID] == 0)
{
DataRow drp = parentDictionary[parentID];
string grandparentID = drp["ParentID"].ToString().Trim();
drp.Delete();
ARPTableAdapter.Update(drp);
MyStatus = string.Format("Deleting Parent {0}", parentID);
AddStatusText("Deleting Parent {0}", parentID);
updatePCount++;
parentCount[grandparentID]--;
if (parentCount[grandparentID] == 0)
{
DataRow drgp = parentDictionary[grandparentID];
drgp.Delete();
ARPTableAdapter.Update(drgp);
MyStatus = string.Format("Deleting GrandParent {0}", grandparentID);
AddStatusText("Deleting GrandParent {0}", grandparentID);
updatePCount++;
}
}
}
MyStatus = string.Format("{0} ROs Deleted, {1} RO Parent/GrandParent Ros Deleted", updateCount, updatePCount);
AddStatusText("RO Rows Deleted: {0}, RO Parent/GrandParent Rows Deleted {1}", updateCount, updatePCount);
}
}
}

View File

@@ -0,0 +1,165 @@
<?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="menuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="statusStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>132, 17</value>
</metadata>
<metadata name="rOImportDataSet.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>248, 17</value>
</metadata>
<metadata name="STPImportTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>393, 17</value>
</metadata>
<metadata name="MELImportTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>451, 54</value>
</metadata>
<metadata name="ARPImportTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 93</value>
</metadata>
<metadata name="rOMasterDataSet.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>575, 17</value>
</metadata>
<metadata name="STPTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 56</value>
</metadata>
<metadata name="MELTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>162, 56</value>
</metadata>
<metadata name="ARPTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>310, 56</value>
</metadata>
<metadata name="rOCPPImportDataSet.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>201, 93</value>
</metadata>
<metadata name="ARPCPPImportTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>570, 93</value>
</metadata>
<metadata name="MELCPPImportTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 132</value>
</metadata>
<metadata name="STPCPPImportTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>367, 93</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>180</value>
</metadata>
</root>