添加项目文件。
This commit is contained in:
6
FalitPrint/App.config
Normal file
6
FalitPrint/App.config
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||
</startup>
|
||||
</configuration>
|
||||
25
FalitPrint/CycleFile.cs
Normal file
25
FalitPrint/CycleFile.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace FalitPrint
|
||||
{
|
||||
[XmlRoot("CycleFile")]
|
||||
public class CycleFile
|
||||
{
|
||||
public List<Field> Cycle { get; set; }
|
||||
}
|
||||
|
||||
public class Field
|
||||
{
|
||||
[XmlAttribute("Name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[XmlAttribute("Value")]
|
||||
public string Value { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
110
FalitPrint/FalitPrint.csproj
Normal file
110
FalitPrint/FalitPrint.csproj
Normal file
@@ -0,0 +1,110 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{936BA54E-084E-4651-95A1-977C3AB86010}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<RootNamespace>FalitPrint</RootNamespace>
|
||||
<AssemblyName>FalitPrint</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<Deterministic>true</Deterministic>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\x86\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<LangVersion>7.3</LangVersion>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<Prefer32Bit>true</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
|
||||
<OutputPath>bin\x86\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<LangVersion>7.3</LangVersion>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<Prefer32Bit>true</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="FluentFTP, Version=52.0.0.0, Culture=neutral, PublicKeyToken=f4af092b1d8df44f, processorArchitecture=MSIL">
|
||||
<HintPath>packages\FluentFTP.52.0.0\lib\net472\FluentFTP.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Printing" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Deployment" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="CycleFile.cs" />
|
||||
<Compile Include="FormMain.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FormMain.Designer.cs">
|
||||
<DependentUpon>FormMain.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="sc.cs" />
|
||||
<EmbeddedResource Include="FormMain.resx">
|
||||
<DependentUpon>FormMain.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="packages.config" />
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
1182
FalitPrint/FormMain.Designer.cs
generated
Normal file
1182
FalitPrint/FormMain.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
1273
FalitPrint/FormMain.cs
Normal file
1273
FalitPrint/FormMain.cs
Normal file
File diff suppressed because it is too large
Load Diff
141
FalitPrint/FormMain.resx
Normal file
141
FalitPrint/FormMain.resx
Normal file
@@ -0,0 +1,141 @@
|
||||
<?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=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="SYS_Connect_Check.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>795, 53</value>
|
||||
</metadata>
|
||||
<metadata name="Saw_Photo_Download_Timer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 55</value>
|
||||
</metadata>
|
||||
<metadata name="Print_index.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>236, 55</value>
|
||||
</metadata>
|
||||
<metadata name="printDocument1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>353, 55</value>
|
||||
</metadata>
|
||||
<metadata name="MainProcess.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>501, 55</value>
|
||||
</metadata>
|
||||
<metadata name="Print_Status.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>630, 55</value>
|
||||
</metadata>
|
||||
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>129</value>
|
||||
</metadata>
|
||||
</root>
|
||||
22
FalitPrint/Program.cs
Normal file
22
FalitPrint/Program.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace FalitPrint
|
||||
{
|
||||
internal static class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// 应用程序的主入口点。
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(new FormMain());
|
||||
}
|
||||
}
|
||||
}
|
||||
33
FalitPrint/Properties/AssemblyInfo.cs
Normal file
33
FalitPrint/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// 有关程序集的一般信息由以下
|
||||
// 控制。更改这些特性值可修改
|
||||
// 与程序集关联的信息。
|
||||
[assembly: AssemblyTitle("FalitPrint")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("FalitPrint")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2024")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// 将 ComVisible 设置为 false 会使此程序集中的类型
|
||||
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
|
||||
//请将此类型的 ComVisible 特性设置为 true。
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
||||
[assembly: Guid("936ba54e-084e-4651-95a1-977c3ab86010")]
|
||||
|
||||
// 程序集的版本信息由下列四个值组成:
|
||||
//
|
||||
// 主版本
|
||||
// 次版本
|
||||
// 生成号
|
||||
// 修订号
|
||||
//
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
71
FalitPrint/Properties/Resources.Designer.cs
generated
Normal file
71
FalitPrint/Properties/Resources.Designer.cs
generated
Normal file
@@ -0,0 +1,71 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本: 4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FalitPrint.Properties
|
||||
{
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 强类型资源类,用于查找本地化字符串等。
|
||||
/// </summary>
|
||||
// 此类是由 StronglyTypedResourceBuilder
|
||||
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
|
||||
// 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
|
||||
// (以 /str 作为命令选项),或重新生成 VS 项目。
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class Resources
|
||||
{
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal Resources()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 返回此类使用的缓存 ResourceManager 实例。
|
||||
/// </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("FalitPrint.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 重写当前线程的 CurrentUICulture 属性,对
|
||||
/// 使用此强类型资源类的所有资源查找执行重写。
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture
|
||||
{
|
||||
get
|
||||
{
|
||||
return resourceCulture;
|
||||
}
|
||||
set
|
||||
{
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
117
FalitPrint/Properties/Resources.resx
Normal file
117
FalitPrint/Properties/Resources.resx
Normal 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>
|
||||
30
FalitPrint/Properties/Settings.Designer.cs
generated
Normal file
30
FalitPrint/Properties/Settings.Designer.cs
generated
Normal file
@@ -0,0 +1,30 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FalitPrint.Properties
|
||||
{
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
7
FalitPrint/Properties/Settings.settings
Normal file
7
FalitPrint/Properties/Settings.settings
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
|
||||
<Profiles>
|
||||
<Profile Name="(Default)" />
|
||||
</Profiles>
|
||||
<Settings />
|
||||
</SettingsFile>
|
||||
4
FalitPrint/packages.config
Normal file
4
FalitPrint/packages.config
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="FluentFTP" version="52.0.0" targetFramework="net472" />
|
||||
</packages>
|
||||
789
FalitPrint/sc.cs
Normal file
789
FalitPrint/sc.cs
Normal file
@@ -0,0 +1,789 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace FalitPrint
|
||||
{
|
||||
public class LNCAPI
|
||||
{
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
public struct ERROR_MSG
|
||||
{
|
||||
public byte Type;
|
||||
|
||||
public byte Cmd;
|
||||
|
||||
public byte Error;
|
||||
|
||||
public byte Reserve;
|
||||
|
||||
public int addr;
|
||||
|
||||
public int num;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Explicit, Pack = 1)]
|
||||
public struct SC_DATA
|
||||
{
|
||||
[FieldOffset(0)]
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 1440)]
|
||||
public byte[] Bytes;
|
||||
|
||||
[FieldOffset(0)]
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 720)]
|
||||
public ushort[] Words;
|
||||
|
||||
[FieldOffset(0)]
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 360)]
|
||||
public uint[] Ints;
|
||||
|
||||
[FieldOffset(0)]
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 180)]
|
||||
public double[] Fixs;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
public struct LOCAL_CONTROLLER_INFO
|
||||
{
|
||||
public uint IPLong;
|
||||
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 32)]
|
||||
public byte[] IP;
|
||||
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 32)]
|
||||
public byte[] Name;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
public struct FTP_FILE
|
||||
{
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 32)]
|
||||
public byte[] filename;
|
||||
|
||||
public uint filesize;
|
||||
|
||||
public ushort year;
|
||||
|
||||
public byte month;
|
||||
|
||||
public byte day;
|
||||
|
||||
public byte hour;
|
||||
|
||||
public byte minute;
|
||||
|
||||
public byte second;
|
||||
|
||||
public byte Reserve;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
public struct FTP_TRANFER_FILE
|
||||
{
|
||||
public byte Folder;
|
||||
|
||||
public string SubFolder;
|
||||
|
||||
public string Filename;
|
||||
|
||||
public string LocalFilename;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
public struct FUNCTION_SETTING
|
||||
{
|
||||
public uint MakerID;
|
||||
|
||||
public uint MakerPwd;
|
||||
|
||||
public uint MediaIPLong1;
|
||||
|
||||
public uint MediaIPLong2;
|
||||
|
||||
public byte HaveMediaFunction;
|
||||
}
|
||||
|
||||
public struct DLL_USE_SETTING
|
||||
{
|
||||
public uint TalkInfoNum;
|
||||
|
||||
public uint SoftwareType;
|
||||
|
||||
public uint MemSizeI;
|
||||
|
||||
public uint MemSizeO;
|
||||
|
||||
public uint MemSizeC;
|
||||
|
||||
public uint MemSizeS;
|
||||
|
||||
public uint MemSizeA;
|
||||
|
||||
public uint MemSizeR;
|
||||
|
||||
public uint MemSizeF;
|
||||
|
||||
public uint MemSizeTimer;
|
||||
|
||||
public uint MemSizeCounter;
|
||||
}
|
||||
|
||||
private const string ReCON_DLL_NAME = "scif2_bcb.dll";
|
||||
|
||||
public const uint MAX_SYNC_COUNT = 10u;
|
||||
|
||||
public const uint MAX_CONTROLLER_NUM_PER_MAKER = 300u;
|
||||
|
||||
public const uint BIT_CB_SIZE = 4096u;
|
||||
|
||||
public const uint INT_CB_SIZE = 20000u;
|
||||
|
||||
public const uint FIX_CB_SIZE = 4096u;
|
||||
|
||||
public const uint MAX_LOOP_SIZE = 64u;
|
||||
|
||||
public const uint MAX_DIRECT_SIZE = 64u;
|
||||
|
||||
public const uint DIRECT_ADDR_MASK = 63u;
|
||||
|
||||
public const uint MAX_DATA_BYTES = 1440u;
|
||||
|
||||
public const uint MAX_BIT_NUM = 1440u;
|
||||
|
||||
public const uint MAX_WORD_NUM = 720u;
|
||||
|
||||
public const uint MAX_INT_NUM = 360u;
|
||||
|
||||
public const uint MAX_FIX_NUM = 180u;
|
||||
|
||||
public const uint MAX_PTR_NUM = 180u;
|
||||
|
||||
public const uint MAX_CB_NUM = 288u;
|
||||
|
||||
public const uint MAX_CB_BIT_NUM = 288u;
|
||||
|
||||
public const uint MAX_CB_WORD_NUM = 240u;
|
||||
|
||||
public const uint MAX_CB_INT_NUM = 180u;
|
||||
|
||||
public const uint MAX_CB_FIX_NUM = 120u;
|
||||
|
||||
public const uint MAX_CB_PTR_NUM = 120u;
|
||||
|
||||
public const uint I_OFFSET = 0u;
|
||||
|
||||
public const uint O_OFFSET = 5120u;
|
||||
|
||||
public const uint C_OFFSET = 10240u;
|
||||
|
||||
public const uint S_OFFSET = 15360u;
|
||||
|
||||
public const uint A_OFFSET = 20480u;
|
||||
|
||||
public const uint TT_OFFSET = 25600u;
|
||||
|
||||
public const uint CT_OFFSET = 30720u;
|
||||
|
||||
public const uint RBIT_OFFSET = 100000u;
|
||||
|
||||
public const uint R_OFFSET = 0u;
|
||||
|
||||
public const uint RI_OFFSET = 8000000u;
|
||||
|
||||
public const uint RO_OFFSET = 8100000u;
|
||||
|
||||
public const uint RC_OFFSET = 8200000u;
|
||||
|
||||
public const uint RS_OFFSET = 8300000u;
|
||||
|
||||
public const uint RA_OFFSET = 8400000u;
|
||||
|
||||
public const uint RTT_OFFSET = 8500000u;
|
||||
|
||||
public const uint RCT_OFFSET = 8600000u;
|
||||
|
||||
public const uint TV_OFFSET = 10000000u;
|
||||
|
||||
public const uint TS_OFFSET = 10500000u;
|
||||
|
||||
public const uint CV_OFFSET = 11000000u;
|
||||
|
||||
public const uint CS_OFFSET = 11500000u;
|
||||
|
||||
public const uint F_OFFSET = 10000000u;
|
||||
|
||||
public const uint I_NUM = 4096u;
|
||||
|
||||
public const uint O_NUM = 4096u;
|
||||
|
||||
public const uint C_NUM = 4096u;
|
||||
|
||||
public const uint S_NUM = 4096u;
|
||||
|
||||
public const uint A_NUM = 4096u;
|
||||
|
||||
public const uint R_NUM = 6000000u;
|
||||
|
||||
public const uint F_NUM = 100000u;
|
||||
|
||||
public const uint TIMER_NUM = 256u;
|
||||
|
||||
public const uint COUNTER_NUM = 256u;
|
||||
|
||||
public const uint PAC_STRING_SIZE = 20u;
|
||||
|
||||
public const uint PAC_STRING_NUM = 21u;
|
||||
|
||||
public const uint PAC_PATH_SIZE = 5000u;
|
||||
|
||||
public const uint R_PATH_PAC_STRING = 3021500u;
|
||||
|
||||
public const uint BLOCK_PATH_SIZE = 2000u;
|
||||
|
||||
public const uint R_PATH_BLOCK_CURRENT = 3006072u;
|
||||
|
||||
public const uint ALM_COUNT = 1790000u;
|
||||
|
||||
public const uint WARN_COUNT = 1790500u;
|
||||
|
||||
public const uint ALM_STRING = 1790010u;
|
||||
|
||||
public const uint ALM_STRING_SIZR = 40u;
|
||||
|
||||
public const uint WARN_STRING = 1790510u;
|
||||
|
||||
public const uint WARN_STRING_SIZR = 40u;
|
||||
|
||||
public const byte SCIF_PROC_COUNTER = 1;
|
||||
|
||||
public const byte SCIF_MEDIA_STEP = 5;
|
||||
|
||||
public const byte SCIF_MEDIA_STATE = 6;
|
||||
|
||||
public const byte SCIF_MAKER_ID = 7;
|
||||
|
||||
public const byte SCIF_FTP_STATE = 11;
|
||||
|
||||
public const byte SCIF_FTP_RESULT = 12;
|
||||
|
||||
public const byte SCIF_FTP_STEP = 13;
|
||||
|
||||
public const byte SCIF_FTP_TOTAL_PACKAGE = 21;
|
||||
|
||||
public const byte SCIF_FTP_CURRENT_PACKAGE = 22;
|
||||
|
||||
public const byte SCIF_FTP_TOTAL_FILE = 31;
|
||||
|
||||
public const byte SCIF_FTP_CURRENT_FILE = 32;
|
||||
|
||||
public const uint SCIF_MEM_SIZE_I = 40u;
|
||||
|
||||
public const uint SCIF_MEM_SIZE_O = 41u;
|
||||
|
||||
public const uint SCIF_MEM_SIZE_C = 42u;
|
||||
|
||||
public const uint SCIF_MEM_SIZE_S = 43u;
|
||||
|
||||
public const uint SCIF_MEM_SIZE_A = 44u;
|
||||
|
||||
public const uint SCIF_MEM_SIZE_R = 47u;
|
||||
|
||||
public const uint SCIF_MEM_SIZE_F = 52u;
|
||||
|
||||
public const uint SCIF_MEM_SIZE_TIMER = 45u;
|
||||
|
||||
public const uint SCIF_MEM_SIZE_COUNTER = 46u;
|
||||
|
||||
public const sbyte SCIF_CONNECT_STATE = 2;
|
||||
|
||||
public const sbyte SCIF_REMOTE_IPLONG = 3;
|
||||
|
||||
public const sbyte SCIF_CONNECT_STEP = 4;
|
||||
|
||||
public const sbyte SCIF_CONNECT_RESPONSE = 5;
|
||||
|
||||
public const sbyte SCIF_TALK_STATE = 6;
|
||||
|
||||
public const sbyte SCIF_RESPONSE_TIME = 11;
|
||||
|
||||
public const sbyte SCIF_OK_COUNT = 12;
|
||||
|
||||
public const sbyte SCIF_CRC_ERR_CNT = 13;
|
||||
|
||||
public const sbyte SCIF_LOOP_QUEUE_PKG_COUNT = 21;
|
||||
|
||||
public const sbyte SCIF_DIRECT_QUEUE_PKG_COUNT = 22;
|
||||
|
||||
public const sbyte SCIF_LOOP_COUNT = 23;
|
||||
|
||||
public const sbyte SCIF_TX_PKG_CNT = 24;
|
||||
|
||||
public const sbyte SCIF_TX_PKG_RETRY_CNT = 25;
|
||||
|
||||
public const sbyte SCIF_TX_CONNECT_CNT = 26;
|
||||
|
||||
public const sbyte SCIF_RX_UNEXPECT_CNT = 27;
|
||||
|
||||
public const sbyte SCIF_RX_ERR_FMT_CNT = 28;
|
||||
|
||||
public const sbyte SCIF_RX_CONNECT_CNT = 29;
|
||||
|
||||
public const int SC_CONN_STATE_DISCONNECT = 0;
|
||||
|
||||
public const int SC_CONN_STATE_CONNECTING = 1;
|
||||
|
||||
public const int SC_CONN_STATE_FAIL = 2;
|
||||
|
||||
public const int SC_CONN_STATE_OK = 3;
|
||||
|
||||
public const int SC_CONN_STATE_NORESPONSE = 4;
|
||||
|
||||
public const int CONNECT_RESULT_NORESPONSE = 0;
|
||||
|
||||
public const int CONNECT_RESULT_OLD_SOFTWARE_CLEAR = 1;
|
||||
|
||||
public const int CONNECT_RESULT_INVALID_SOFTWARE = 11;
|
||||
|
||||
public const int CONNECT_RESULT_DISABLE_SOFTWARE = 12;
|
||||
|
||||
public const int CONNECT_RESULT_DISABLE_INTERNET = 13;
|
||||
|
||||
public const int CONNECT_RESULT_CLOSED_SOFTWARE = 14;
|
||||
|
||||
public const int CONNECT_RESULT_CLOSED_INTERNET = 15;
|
||||
|
||||
public const int CONNECT_RESULT_INVALID_MAKERID = 16;
|
||||
|
||||
public const int CONNECT_RESULT_WAIT_CONFIRM = 21;
|
||||
|
||||
public const int CONNECT_RESULT_SOFTWARE_CONNECTED = 31;
|
||||
|
||||
public const int CONNECT_RESULT_SOFTWARE_REJECTED = 32;
|
||||
|
||||
public const int CONNECT_RESULT_SOFTWARE_INREQ = 41;
|
||||
|
||||
public const int CONNECT_RESULT_PENDING = 50;
|
||||
|
||||
public const byte FTP_FOLDER_RUN_NCFILES = 1;
|
||||
|
||||
public const byte FTP_FOLDER_RUN_DXF = 2;
|
||||
|
||||
public const byte FTP_FOLDER_TEACH_RUN = 3;
|
||||
|
||||
public const byte FTP_FOLDER_RECIPE_RUN = 4;
|
||||
|
||||
public const byte FTP_FOLDER_WORKDATA_RUN = 5;
|
||||
|
||||
public const byte FTP_FOLDER_NCFILES = 10;
|
||||
|
||||
public const byte FTP_FOLDER_MACRO = 21;
|
||||
|
||||
public const byte FTP_FOLDER_MACRO_MAKER = 20;
|
||||
|
||||
public const byte FTP_FOLDER_OPEN_HMI = 24;
|
||||
|
||||
public const byte FTP_FOLDER_NCFILES_ROOT = 25;
|
||||
|
||||
public const byte FTP_FOLDER_MACRO_MAKER_ROOT = 26;
|
||||
|
||||
public const byte FTP_FOLDER_MACRO_ROOT = 27;
|
||||
|
||||
public const byte FTP_FOLDER_DXF = 28;
|
||||
|
||||
public const byte FTP_FOLDER_OPEN_HMI_BOTTOM = 29;
|
||||
|
||||
public const byte FTP_FOLDER_TEACH = 15;
|
||||
|
||||
public const byte FTP_FOLDER_RECIPE = 16;
|
||||
|
||||
public const byte FTP_FOLDER_WORKDATA = 17;
|
||||
|
||||
public const byte FTP_FOLDER_MACHINE = 30;
|
||||
|
||||
public const byte FTP_FOLDER_SETUP = 40;
|
||||
|
||||
public const byte FTP_FOLDER_SETUP_MACHINE = 41;
|
||||
|
||||
public const byte FTP_FOLDER_BAK = 50;
|
||||
|
||||
public const byte FTP_FOLDER_DATA = 51;
|
||||
|
||||
public const byte FTP_FOLDER_LANGUAGE = 52;
|
||||
|
||||
public const byte FTP_FOLDER_LANGUAGE_DEF = 53;
|
||||
|
||||
public const byte FTP_FOLDER_LOG = 54;
|
||||
|
||||
public const byte FTP_FOLDER_RECORD = 55;
|
||||
|
||||
public const byte FTP_STATE_IDLE = 0;
|
||||
|
||||
public const byte FTP_STATE_UPLOAD = 1;
|
||||
|
||||
public const byte FTP_STATE_DOWNLOAD = 2;
|
||||
|
||||
public const byte FTP_STATE_DELETE = 3;
|
||||
|
||||
public const byte FTP_STATE_LIST = 11;
|
||||
|
||||
public const byte FTP_STATE_UPLOAD_MANY = 21;
|
||||
|
||||
public const byte FTP_STATE_DOWNLOAD_MANY = 22;
|
||||
|
||||
public const byte FTP_STATE_DELETE_MANY = 23;
|
||||
|
||||
public const byte FTP_STATE_MAKE_DIR = 30;
|
||||
|
||||
public const byte FTP_STATE_PENDING = 99;
|
||||
|
||||
public const uint FTP_RESULT_IDLE = 0u;
|
||||
|
||||
public const byte FTP_RESULT_PROCESSING = 1;
|
||||
|
||||
public const byte FTP_RESULT_SUCCESS = 2;
|
||||
|
||||
public const byte FTP_RESULT_FAIL_TO_READ_LOCAL_FILE = 11;
|
||||
|
||||
public const byte FTP_RESULT_FAIL_TO_WRITE_LOCAL_FILE = 12;
|
||||
|
||||
public const byte FTP_RESULT_FAIL_TO_READ_REMOTE_FILE = 13;
|
||||
|
||||
public const byte FTP_RESULT_FAIL_TO_WRITE_REMOTE_FILE = 14;
|
||||
|
||||
public const byte FTP_RESULT_FAIL_TO_SET_COMMAND = 15;
|
||||
|
||||
public const byte FTP_RESULT_FAIL_TO_COMMUNICATION = 16;
|
||||
|
||||
public const byte FTP_RESULT_FILE_MISMATCH = 17;
|
||||
|
||||
public const uint TALK_STATE_NORMAL = 0u;
|
||||
|
||||
public const uint TALK_STATE_ERROR = 1u;
|
||||
|
||||
public const uint TALK_STATE_OVER_RETRY = 2u;
|
||||
|
||||
public const sbyte SC_TRANSACTION_PENDING = 0;
|
||||
|
||||
public const sbyte SC_TRANSACTION_PORCESSING = 1;
|
||||
|
||||
public const sbyte SC_TRANSACTION_FINISH = 2;
|
||||
|
||||
public const sbyte SC_TRANSACTION_INVALID = 3;
|
||||
|
||||
public const uint SCIF_ERROR_INVALID_PACKET_SET = 255u;
|
||||
|
||||
public const uint FILENAME_LENGTH = 32u;
|
||||
|
||||
public const uint MAX_FILE_LIST_NUM = 240u;
|
||||
|
||||
public const uint MAX_TRANSFER_FILE_COUNT = 128u;
|
||||
|
||||
public const uint MAX_SOFTWARE_COUNT = 5u;
|
||||
|
||||
public const uint ERROR_TYPE_NONE = 0u;
|
||||
|
||||
public const uint ERROR_TYPE_POLLING = 1u;
|
||||
|
||||
public const uint ERROR_TYPE_DIRECT = 2u;
|
||||
|
||||
public const uint R_PATH_W_UPDATE = 17020u;
|
||||
|
||||
public const uint R_PATH_R_START_LINE = 17021u;
|
||||
|
||||
public const uint R_PATH_W_FILENAME = 17022u;
|
||||
|
||||
public const sbyte SC_LOOP = 1;
|
||||
|
||||
public const sbyte SC_DIRECT = 1;
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int MainProcess();
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int LibraryInitial(ref DLL_USE_SETTING pUseSetting, int MakerID, string EncString);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern void LibraryDestroy();
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern void LibrarySetDebug(int level);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int GetLibraryMsg(int id);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int GetConnectionMsg(int TgrConn, int MsgID);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern void GetConnectionError(int TgrConn, ref ERROR_MSG Msg);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int LocalDetectControllers();
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int LocalReadControllerCount();
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int LocalReadController(int Index, ref LOCAL_CONTROLLER_INFO Info);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int ConnectSetPwd(int TgrConn, string Pwd);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int ConnectLocalList(int TgrConn, int Index);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int ConnectLocalIP(int TgrConn, string IP);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int Disconnect(int TgrConn);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int FtpSetConnection(int TgrConn);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int FtpGetFileList(int Folder, string SubFolder, string HeadFilter, string TailFilter);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int FtpReadFileCount();
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int FtpReadFile(int Index, ref FTP_FILE file);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int FtpMakeDir(int Folder, string DirName);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int FtpUploadFile(int Folder, string SubFolder, string Filename, string LocalFilename);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int FtpDownloadFile(int Folder, string SubFolder, string Filename, string LocalFilename);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int FtpDeleteFile(int Folder, string SubFolder, string Filename);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int FtpTransferFileReset();
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int FtpTransferFileAdd(int Folder, string SubFolder, string Filename, string LocalFilename);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int FtpUploadFiles();
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int FtpDownloadFiles();
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int FtpDeleteFiles2();
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int FtpCheckDone();
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int FtpWaitDone(int MaxWaitTime);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int LocalGetFileList(string Path, string HeadFilter, string TailFilter);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int LocalReadFileCount();
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int LocalReadFile(int Index, ref FTP_FILE file);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int LocalDeleteFile(int Index);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int memI(int TgrConn, int addr);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int memO(int TgrConn, int addr);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int memC(int TgrConn, int addr);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int memS(int TgrConn, int addr);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int memA(int TgrConn, int addr);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int memR(int TgrConn, int addr);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int memRBit(int TgrConn, int addr, int BitIdx);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int memRString(int TgrConn, int addr, int RSize, byte[] Buf);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern double memF(int TgrConn, int addr);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int memSetO(int TgrConn, int addr, char val);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int memSetC(int TgrConn, int addr, char val);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int memSetS(int TgrConn, int addr, char val);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int memSetA(int TgrConn, int addr, char val);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int memSetR(int TgrConn, int addr, int val);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int memSetRBit(int TgrConn, int addr, int BitIdx, int val);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int memSetRString(int TgrConn, int addr, int RSize, string Buf);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int memSetF(int TgrConn, int addr, double val);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int GetTranState(int pTran);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern IntPtr GetDataPointer(int TranPointer);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern void LClearQueue(int TgrConn);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern void LReadBegin(int TgrConn);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int LReadNI(int TgrConn, int addr, int num);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int LReadNO(int TgrConn, int addr, int num);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int LReadNC(int TgrConn, int addr, int num);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int LReadNS(int TgrConn, int addr, int num);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int LReadNA(int TgrConn, int addr, int num);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int LReadNR(int TgrConn, int addr, int num);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int LReadNF(int TgrConn, int addr, int num);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int LReadEnd(int TgrConn);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern void LWriteBegin(int TgrConn);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int LWriteNO(int TgrConn, int addr, int num);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int LWriteNC(int TgrConn, int addr, int num);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int LWriteNS(int TgrConn, int addr, int num);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int LWriteNA(int TgrConn, int addr, int num);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int LWriteNR(int TgrConn, int addr, int num);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int LWriteNF(int TgrConn, int addr, int num);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int LWriteEnd(int TgrConn);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern void DClearQueue(int TgrConn);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int DWaitDone(int TgrConn, int MaxWaitTime);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern void DReadBegin(int TgrConn);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int DReadNI(int TgrConn, int addr, int num);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int DReadNO(int TgrConn, int addr, int num);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int DReadNC(int TgrConn, int addr, int num);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int DReadNS(int TgrConn, int addr, int num);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int DReadNA(int TgrConn, int addr, int num);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int DReadNR(int TgrConn, int addr, int num);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int DReadNF(int TgrConn, int addr, int num);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int DReadEnd(int TgrConn);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern void DWriteBegin(int TgrConn);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int DWrite1O(int TgrConn, int addr, int val);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int DWrite1C(int TgrConn, int addr, int val);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int DWrite1S(int TgrConn, int addr, int val);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int DWrite1A(int TgrConn, int addr, int val);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int DWrite1R(int TgrConn, int addr, int val);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int DWrite1F(int TgrConn, int addr, double val);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int DWrite1RBit(int TgrConn, int addr, int BitIdx, int BitValue);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int DWriteRString(int TgrConn, int addr, int BufSize, string Buf);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int DWriteNO(int TgrConn, int addr, int num, int[] data);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int DWriteNC(int TgrConn, int addr, int num, int[] data);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int DWriteNS(int TgrConn, int addr, int num, int[] data);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int DWriteNA(int TgrConn, int addr, int num, int[] data);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int DWriteNR(int TgrConn, int addr, int num, int[] data);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int DWriteNF(int TgrConn, int addr, int num, double[] data);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
public static extern int DWriteEnd(int TgrConn);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user