将以往的代码复制到代码库

This commit is contained in:
于智纯
2025-08-30 17:19:57 +08:00
parent da46e0242d
commit 20ea70bf64
198 changed files with 10075 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Future.Contract;
namespace Future.Platform
{
/// <summary>
/// 使用JS脚本的指令回执断言器
/// </summary>
public class JSReceiptAssertifier:IReceiptAssertifier
{
}
}

View File

@@ -0,0 +1,49 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
namespace Future.Platform
{
/// <summary>
/// 查询句柄:所有档案类型数据的通用查询参数对象
/// </summary>
public class QueryHandler : DataSourceProvider
{
public QueryHandler() { }
/// <summary>
/// 数据集合名称,相当于数据库表名
/// </summary>
public string DataSet { get; set; } = "";
/// <summary>
/// 待检索关键字模糊匹配Title与Remark
/// </summary>
public string Keyword { get; set; } = "";
/// <summary>
/// 父级数据标识,如果是附属数据则可以限定
/// </summary>
public string ParentID { get; set; } = "";
/// <summary>
/// 是否只查一层,可以查询所有层次结构上的数据
/// </summary>
public bool Onelayer { get; set; }=false;
/// <summary>
/// 操作用户标识,用于匹配操作员信息,以“,”分隔的操作员ID列表
/// </summary>
public string Operator { get; set; } = "";
/// <summary>
/// 默认为Ture=只检索活动档案False=只查非活动档案null=检索所有文档
/// </summary>
public bool? IsAlive { get; set; } = true;
/// <summary>
/// 开始时间:精确到日期,格式化=YYYY-MM-DD
/// </summary>
public DateTime? StartTime { get; set; } = null;
/// <summary>
/// 截至时间:精确到日期,格式化=YYYY-MM-DD
/// </summary>
public DateTime? EndTime { get; set; } = null;
}
}

View File

@@ -0,0 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0-windows</TargetFramework>
<OutputType>Library</OutputType>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>
<ItemGroup>
<Folder Include="Procotol\Extend\" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Future.Contract\Future.Contract.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Future.Platform
{
/// <summary>
/// 指令返回退出一个Struct类型的指令空间放弃后续指令
/// </summary>
public class Return //: LogicalInstructBase
{
}
}

View File

@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Future.Platform
{
/// <summary>
/// 变量赋值:设置一个上下文参数的值,同时更新这个表达式在系统中的参数值
/// </summary>
public class SetValue //: LogicalInstructBase
{
}
}

View File

@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Future.Platform
{
/// <summary>
/// 变量声明:声明一个上下文变量,如果变量存在则重置这个变量的值
/// </summary>
public class Variable// : LogicalInstructBase
{
}
}

View File

@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Future.Platform
{
/// <summary>
/// 交互确认:要求操作员进行选项确认
/// </summary>
public class Confirm
{
}
}

View File

@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Future.Platform
{
internal class Input
{
}
}

View File

@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Future.Platform
{
/// <summary>
/// 外部调用:调用外部可执行命令
/// </summary>
internal class Invoke
{
}
}

View File

@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Future.Platform
{
internal class Message
{
}
}

View File

@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Future.Platform
{
/// <summary>
/// 输出控制:使用扩展通道输出数据或消息
/// </summary>
internal class Output
{
}
}

View File

@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Future.Platform
{
/// <summary>
/// 分支支路本质是IfCompare的另一种形式
/// </summary>
internal class Case
{
}
}

View File

@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Future.Platform
{
public class IfBetween// : ConditionalInstruct
{
}
}

View File

@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Future.Platform
{
public class IfCompare //: ConditionalInstruct
{
}
}

View File

@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Future.Platform
{
public class IfContains //: ConditionalInstruct
{
}
}

View File

@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Future.Platform
{
public class IfMatching// : ConditionalInstruct
{
}
}

View File

@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Future.Platform
{
internal class Break
{
}
}

View File

@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Future.Platform
{
internal class Continue
{
}
}

View File

@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Future.Platform
{
public class For //: LoopLogicalBase
{
}
}

View File

@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Future.Platform
{
public class Foreach //: LoopLogicalBase
{
}
}

View File

@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Future.Platform
{
public class Repeat //: LoopLogicalBase
{
}
}

View File

@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Future.Platform
{
/// <summary>
/// 移动游标专门用于移动For循环的迭代器游标
/// </summary>
public class Seed
{
}
}

View File

@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Future.Platform
{
public class While// : LoopLogicalBase
{
}
}

View File

@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Future.Platform
{
public class Initializer //: SpaceInstructBase
{
}
}

View File

@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Future.Platform
{
public class Scheme //: SpaceInstructBase
{
}
}

View File

@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Future.Platform
{
public class Block// : StructInstructBase
{
}
}

View File

@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Future.Platform
{
public class Switch //: StructInstructBase
{
}
}

View File

@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Future.Platform
{
public class Target //: StructInstructBase
{
}
}

View File

@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Future.Platform
{
public class UseCase// : StructInstructBase
{
}
}

View File

@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Future.Platform
{
/// <summary>
/// 异步控制:开启新的线程执行新任务
/// </summary>
public class ASync// : StructInstructBase
{
//
}
}

View File

@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Future.Platform
{
/// <summary>
/// 休眠控制:休眠一段时间后继续执行
/// </summary>
internal class Sleep
{
}
}

View File

@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Future.Platform
{
/// <summary>
/// 时序控制:变更当前指令空间执行线程的同步时序
/// </summary>
public class Sync
{
}
}

View File

@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Future.Platform
{
/// <summary>
/// 等待控制:等待同步时序信号变更为期望的信号再执行
/// </summary>
internal class Wait
{
/// <summary>
/// 检查同步信号的频率
/// </summary>
public int Internal { get; set; }
}
}

View File

@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Future.Contract;
namespace Future.Platform
{
public class Move : BehaviorInstructBase
{
}
}

View File

@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Future.Contract;
namespace Future.Platform
{
public class Byte_Receive : SignalInstructBase
{
}
}

View File

@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Future.Contract;
namespace Future.Platform
{
public class Byte_Send : SignalInstructBase
{
}
}

View File

@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Future.Contract;
namespace Future.Platform
{
public class SCPI_Cmd : SignalInstructBase
{
}
}

View File

@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Future.Contract;
namespace Future.Platform
{
public class SCPI_Get : SignalInstructBase
{
}
}

View File

@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Future.Contract;
namespace Future.Platform
{
public class SCPI_Set : SignalInstructBase
{
}
}

View File

@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Future.Platform
{
internal class SCP
{
}
}

View File

@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Future.Platform
{
internal class TCP
{
}
}

View File

@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Future.Platform
{
internal class UDP
{
}
}

View File

@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Future.Platform
{
internal class Bytes
{
}
}

View File

@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Future.Platform
{
internal class SCPI
{
}
}

View File

@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("Future.Platform")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Future.Platform")]
[assembly: AssemblyCopyright("Copyright © 2024")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// 将 ComVisible 设置为 false 会使此程序集中的类型
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
//请将此类型的 ComVisible 特性设置为 true。
[assembly: ComVisible(false)]
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
[assembly: Guid("fcba0353-f7f3-4a57-812f-f6e579f93188")]
// 程序集的版本信息由下列四个值组成:
//
// 主版本
// 次版本
// 生成号
// 修订号
//
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]