基线 SVN r240

SVN-Revision: r240
This commit is contained in:
cyf
2025-02-06 06:46:06 +00:00
commit ab56a9bcf7
5317 changed files with 902274 additions and 0 deletions
@@ -0,0 +1,80 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Lskj.Interface.Api
{
/// <summary>
/// 触发事件的类型
/// </summary>
public enum ActionType
{
/// <summary>
/// 未设置
/// </summary>
None = -1,
/// <summary>
/// 加载数据
/// </summary>
Load = 0,
/// <summary>
/// 添加
/// </summary>
Add = 1,
/// <summary>
/// 修改
/// </summary>
Update = 2,
/// <summary>
/// 删除
/// </summary>
Delete = 3,
/// <summary>
/// 作废
/// </summary>
Obsolete = 4,
/// <summary>
/// 取消作废
/// </summary>
EscObsolete = 5,
/// <summary>
/// 提交
/// </summary>
Submit = 21,
/// <summary>
/// 取消提交
/// </summary>
EscSubmit = 22,
/// <summary>
/// 审核
/// </summary>
Audit = 31,
/// <summary>
/// 反退
/// </summary>
AuditBack = 32,
/// <summary>
/// 关闭审核
/// </summary>
AuditClose = 33,
/// <summary>
/// 审核催办
/// </summary>
AuditPress = 34,
/// <summary>
/// 审核暂停待办
/// </summary>
AuditPause = 35,
/// <summary>
/// 审核转发
/// </summary>
AuditForward = 36,
/// <summary>
/// 审核转交
/// </summary>
AuditHand = 37
}
}
@@ -0,0 +1,44 @@
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
namespace Lskj.Interface.Api
{
public class BaseDetailModule : Module
{
public BaseDetailModule() { }
public BaseDetailModule(DataRow rowItem)
{
if (rowItem == null) return;
this.DetailId = rowItem.Table.Columns.Contains("id") ? rowItem["id"] + "" : string.Empty;
this.UnionKey = rowItem.Table.Columns.Contains("unionkey") ? rowItem["unionkey"] + "" : string.Empty;
this.UnionMenuCode = rowItem.Table.Columns.Contains("UnionMenuCode") ? rowItem["UnionMenuCode"] + "" : string.Empty;
this.UnionField = rowItem.Table.Columns.Contains("UnionField") ? rowItem["UnionField"] + "" : string.Empty;
this.UnionParentField = rowItem.Table.Columns.Contains("UnionParentField") ? rowItem["UnionParentField"] + "" : string.Empty;
this.UnionValue = rowItem.Table.Columns.Contains("UnionValue") ? rowItem["UnionValue"] + "" : string.Empty;
this.UnionSql = rowItem.Table.Columns.Contains("UnionSQL") ? rowItem["UnionSQL"] + "" : string.Empty;
this.UnionCond = rowItem.Table.Columns.Contains("unionCond") ? rowItem["unionCond"] + "" : string.Empty;
if (rowItem.Table.Columns.Contains("detailType")) this.UnionType = (rowItem["detailType"]) as Int32?;
if (rowItem.Table.Columns.Contains("Refresh")) this.Refresh = (rowItem["Refresh"]) as bool?;
if (rowItem.Table.Columns.Contains("AddFlag")) this.AddFlag = (rowItem["AddFlag"]) as bool?;
}
public string DetailId;
public string UnionKey;
public string UnionMenuCode;
public string UnionField;
public string UnionParentField;
public string UnionValue;
public string UnionSql;
public string UnionCond;
public int? UnionType;
public bool? Refresh;
public bool? AddFlag;
}
}
@@ -0,0 +1,43 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Lskj.Interface.Api
{
public class BaseResponse
{
/// <summary>
/// 是否成功
/// </summary>
public bool success { get; set; }
/// <summary>
/// 文字信息
/// </summary>
public string msg { get; set; }
/// <summary>
/// 数据总数
/// </summary>
public int tot { get; set; }
/// <summary>
/// 返回的主数据
/// </summary>
public object data { get; set; }
/// <summary>
/// 如有其它数据
/// </summary>
public object other { get; set; }
/// <summary>
/// json编码后的字符串
/// </summary>
public string EncodedResult { get; set; }
/// <summary>
/// json编码后的字符串
/// </summary>
public bool WriteResponse = true;
}
}
@@ -0,0 +1,50 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Lskj.Interface.Api
{
public class BillStateEn
{
public string billid { get; set; }
public int billstate { get; set; }
public int StepId { get; set; }
#region 2020 11 12
private int _selectConfirmFlag = 0;
/// <summary>
/// @selectConfirmFlag默认0,用于确认步骤选择(第一次审核传入0,传1代表用户选择后确认);
/// </summary>
public int selectConfirmFlag { get { return _selectConfirmFlag; } set { _selectConfirmFlag = value; } }
/// <summary>
/// @nextSelectStepCode需要选择的步骤列表,如果@selectConfirmFlag=0作为输出参数使用,代表需要选择的步骤,为1则代表用户选择后的步骤列表,作为输入参数使用,多步骤分号分隔;
/// </summary>
public string nextSelectStepCode { get; set; }
/// <summary>
/// @nextSelectStepOper,需要选择的人员列表,含多个步骤的人员列表,如果@selectConfirmFlag=0作为输出参数使用,代表需要选择的人员,为1则代表用户选择后的人员列表,作为输入参数使用,多步骤之间的人员以分号分隔;
/// </summary>
public string nextSelectStepOper { get; set; }
public string comfirmOpers { get; set; }
public int comfirmFlag { get; set; }
#endregion
public int BillType { get; set; }
public string StepCode { get; set; }
public string NextStepCode { get; set; }
public string BackStepCode { get; set; }
public bool ViewAble { get; set; }
public bool OperAble { get; set; }
public string Direction { get; set; }
public string Remark { get; set; }
public bool IsBack { get; set; }
public bool Canceled { get; set; }
public bool Finished { get; set; }
public bool StepClosed { get; set; }
}
}
@@ -0,0 +1,3 @@
<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
<Costura />
</Weavers>
@@ -0,0 +1,111 @@
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<!-- This file was generated by Fody. Manual changes to this file will be lost when your project is rebuilt. -->
<xs:element name="Weavers">
<xs:complexType>
<xs:all>
<xs:element name="Costura" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:all>
<xs:element minOccurs="0" maxOccurs="1" name="ExcludeAssemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with line breaks</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" maxOccurs="1" name="IncludeAssemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of assembly names to include from the default action of "embed all Copy Local references", delimited with line breaks.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" maxOccurs="1" name="Unmanaged32Assemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of unmanaged 32 bit assembly names to include, delimited with line breaks.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" maxOccurs="1" name="Unmanaged64Assemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of unmanaged 64 bit assembly names to include, delimited with line breaks.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" maxOccurs="1" name="PreloadOrder" type="xs:string">
<xs:annotation>
<xs:documentation>The order of preloaded assemblies, delimited with line breaks.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:all>
<xs:attribute name="CreateTemporaryAssemblies" type="xs:boolean">
<xs:annotation>
<xs:documentation>This will copy embedded files to disk before loading them into memory. This is helpful for some scenarios that expected an assembly to be loaded from a physical file.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="IncludeDebugSymbols" type="xs:boolean">
<xs:annotation>
<xs:documentation>Controls if .pdbs for reference assemblies are also embedded.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="DisableCompression" type="xs:boolean">
<xs:annotation>
<xs:documentation>Embedded assemblies are compressed by default, and uncompressed when they are loaded. You can turn compression off with this option.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="DisableCleanup" type="xs:boolean">
<xs:annotation>
<xs:documentation>As part of Costura, embedded assemblies are no longer included as part of the build. This cleanup can be turned off.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="LoadAtModuleInit" type="xs:boolean">
<xs:annotation>
<xs:documentation>Costura by default will load as part of the module initialization. This flag disables that behavior. Make sure you call CosturaUtility.Initialize() somewhere in your code.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="IgnoreSatelliteAssemblies" type="xs:boolean">
<xs:annotation>
<xs:documentation>Costura will by default use assemblies with a name like 'resources.dll' as a satellite resource and prepend the output path. This flag disables that behavior.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="ExcludeAssemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with |</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="IncludeAssemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of assembly names to include from the default action of "embed all Copy Local references", delimited with |.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="Unmanaged32Assemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of unmanaged 32 bit assembly names to include, delimited with |.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="Unmanaged64Assemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of unmanaged 64 bit assembly names to include, delimited with |.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="PreloadOrder" type="xs:string">
<xs:annotation>
<xs:documentation>The order of preloaded assemblies, delimited with |.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:all>
<xs:attribute name="VerifyAssembly" type="xs:boolean">
<xs:annotation>
<xs:documentation>'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="VerifyIgnoreCodes" type="xs:string">
<xs:annotation>
<xs:documentation>A comma-separated list of error codes that can be safely ignored in assembly verification.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="GenerateXsd" type="xs:boolean">
<xs:annotation>
<xs:documentation>'false' to turn off automatic generation of the XML Schema file.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:schema>
@@ -0,0 +1,85 @@
<?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>{24E9A18A-BAF8-4052-809E-582B4FC6A8C4}</ProjectGuid>
<OutputType>Library</OutputType>
<RootNamespace>Lskj.Interface.Api</RootNamespace>
<AssemblyName>Lskj.Interface.Api</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>x86</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\..\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>
<StartupObject />
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Net" />
<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.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="ActionType.cs" />
<Compile Include="BaseDetailModule.cs" />
<Compile Include="BaseResponse.cs" />
<Compile Include="BillStateEn.cs" />
<Compile Include="Module.cs" />
<Compile Include="ModuleBase.cs" />
<Compile Include="ModuleEventPms.cs" />
<Compile Include="OperateEvent.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="PropertyBase.cs" />
<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="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>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
+54
View File
@@ -0,0 +1,54 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
namespace Lskj.Interface.Api
{
public class Module
{
public Module() { }
public Module(DataRow rowItem)
{
if (rowItem == null) return;
this.Fromkey = rowItem.Table.Columns.Contains("fromkey") ? rowItem["fromkey"] + "" : string.Empty;
this.MenuName = rowItem.Table.Columns.Contains("menuname") ? rowItem["menuname"] + "" : rowItem.Table.Columns.Contains("menucaption") ? rowItem["menucaption"] + "" : string.Empty;
this.ModuleId = rowItem.Table.Columns.Contains("MenuCode") ? rowItem["MenuCode"] + "" : string.Empty;
this.MenuPrefix = rowItem.Table.Columns.Contains("MenuPrefix") ? rowItem["MenuPrefix"] + "" : string.Empty;
this.MenuPrefix = rowItem.Table.Columns.Contains("MenuId") ? rowItem["MenuId"] + "" : string.Empty;
}
public virtual string MasterTable { get; set; }
public string Fromkey;
// 模块名称
public string MenuName;
// 模块编码
public string ModuleId;
// Gets or sets the menu prefix.编号前缀
public string MenuPrefix;
// 菜单id
public string MenuId;
public string IdField;
// 主键值
public string IdValue;
// 修改的时候,修改的行数据
public DataRow Updrow;
// 父级行
public String SLeftRecord;
// 父级menucode
public Module ParentModule;
// 明细配置
public BaseDetailModule DetailModule;
public bool IsAdd
{
get { return string.IsNullOrWhiteSpace(IdValue); }
}
}
}
+102
View File
@@ -0,0 +1,102 @@
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
namespace Lskj.Interface.Api
{
public class ModuleBase : Module
{
public ModuleBase() : base() { }
public ModuleBase(DataRow rowItem)
: base(rowItem)
{
if (rowItem == null) return;
if (rowItem.Table.Columns.Contains("ApplyAble")) this.ApplyAble = (rowItem["ApplyAble"]) as bool?;
if (rowItem.Table.Columns.Contains("BackSelected")) this.BackSelected = (rowItem["BackSelected"]) as bool?;
this.TaskSql = rowItem.Table.Columns.Contains("taskSql") ? rowItem["taskSql"] + "" : string.Empty;
this.CountSql = rowItem.Table.Columns.Contains("countSql") ? rowItem["countSql"] + "" : string.Empty;
this.OverBackCond = rowItem.Table.Columns.Contains("OverBackCond") ? rowItem["OverBackCond"] + "" : string.Empty;
this.OverBackSql = rowItem.Table.Columns.Contains("OverBackSql") ? rowItem["OverBackSql"] + "" : string.Empty;
this.OverBackKey = rowItem.Table.Columns.Contains("OverBackKey") ? rowItem["OverBackKey"] + "" : string.Empty;
this.OverBackOper = rowItem.Table.Columns.Contains("OverBackOper") ? rowItem["OverBackOper"] + "" : string.Empty;
//this.ImportAble = rowItem.Table.Columns.Contains("ImportFlag") ? rowItem["ImportFlag"] as bool : false;
this.ImportCond = rowItem.Table.Columns.Contains("ImportCond") ? rowItem["ImportCond"] + "" : string.Empty;
this.ExportCond = rowItem.Table.Columns.Contains("ExportCond") ? rowItem["ExportCond"] + "" : string.Empty;
this.AddDllName = rowItem.Table.Columns.Contains("adddllname") ? rowItem["adddllname"] + "" : string.Empty;
this.DirId = rowItem.Table.Columns.Contains("dirid") ? rowItem["dirid"] + "" : string.Empty;
if (rowItem.Table.Columns.Contains("editType")) this.EditType = (rowItem["editType"]) as Int32?;
this.FileSpeciesNo = rowItem.Table.Columns.Contains("FileSpeciesNo") ? rowItem["FileSpeciesNo"] + "" : string.Empty;
this.AddHint = rowItem.Table.Columns.Contains("addhint") ? rowItem["addhint"] + "" : string.Empty;
}
public bool OperAble = true;
public bool? ApplyAble;
public bool? BackSelected;
// 待办任务语句
public string TaskSql;
// 统计语句
public string CountSql;
// 是否需要统计模块数据
public bool NeedCount
{
get
{
return !string.IsNullOrEmpty(CountSql);
}
}
public bool CondSelect = true;
// 回退条件
public string OverBackCond;
// 回退语句
public string OverBackSql;
// 回退key
public string OverBackKey;
// 回退权限
public string OverBackOper;
// 是否可导入
public bool ImportAble;
// 导入条件
public string ImportCond;
// 导出条件
public string ExportCond;
// 是否可导出
public bool ExportAble;
public string ModuleName;
public string AddDllName;
public string AddXtype;
// 右键调用模块的时候赋值
public string ContextMenuI;
//右键调用模块的时候赋值
// public SysPoPupMenuBtn PopBtn;
public int? BillType;
// 附件目录
public string DirId;
// 附件目录
public int? EditType;
// 附件编码(图档)
public string FileSpeciesNo;
// 附件显示模式 0:视图,1:表格
public int? AttcViewType;
// 自定义添加模板
public string CusAddTpl;
// 自定义添加模板
public string AddHint;
public int? RowHeight;
//public Hashtable MasterData;
//public ArrayList DetailData;
// 新版标记
public bool NewVer;
// 新版流程标记
public bool NewWFVer;
}
}
@@ -0,0 +1,166 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Lskj.Interface.Api
{
public class ModuleEventPms : PropertyBase
{
public ModuleEventPms()
{
Id = Guid.NewGuid().ToString();
}
public ModuleEventPms(OperateEvent ev, ActionType aType)
: this()
{
this.OperEvent = ev;
this.AcType = aType;
}
public ModuleEventPms(OperateEvent ev, ActionType aType, ModuleBase module, BillStateEn stateEn = null, BaseResponse response = null)
: this(ev, aType)
{
this.module = module;
this.stateEn = stateEn;
this.response = response;
}
public ModuleBase module;
public BillStateEn stateEn;
public BaseResponse response;
/// <summary>
/// 本次操作的标识
/// </summary>
public string client = "cs";
/// <summary>
/// 本次操作的唯一键
/// </summary>
public String Id { get; private set; }
/// <summary>
/// 此次事件类型
/// </summary>
public OperateEvent OperEvent { get; set; }
/// <summary>
/// 操作类型
/// </summary>
public ActionType AcType { get; set; }
//{
// get
// {
// ActionType aType = ActionType.None;
// if (!string.IsNullOrEmpty(AuditDirection))
// {
// switch (AuditDirection.ToUpper())
// {
// case "Q": aType = ActionType.AuditClose; break;//关闭
// case "R": aType = ActionType.AuditBack; break;//回退
// case "F": aType = ActionType.Audit; break;//审核
// case "C": aType = ActionType.AuditPress; break;//催办
// case "P": aType = ActionType.AuditPause; break;//暂停待办
// case "Z": aType = ActionType.AuditForward; break;//转发
// case "J": aType = ActionType.AuditHand; break;//转交
// }
// }
// Enum.TryParse<ActionType>(AcType.ToString(), out aType);
// return aType;
// return AcType;
// }
// set
// {
// AcType = value;
// }
//}
public string AuditDirection
{
get
{
return stateEn == null ? null : (stateEn.Direction) as string;
}
set
{
AuditDirection = value;
}
}
private string _moduleId;
/// <summary>
/// 模块编号
/// </summary>
public string ModuleId
{
get
{
return _moduleId;
}
set
{
_moduleId = value;
}
}
private int _contextMenuId;
/// <summary>
/// 右键菜单id
/// </summary>
public int ContextMenuId
{
get
{
return _contextMenuId;
}
set
{
_contextMenuId = value;
}
}
private string _idValue;
public string IdValue
{
get
{
return _idValue;
}
set
{
_idValue = value;
}
}
private string _identityId;
public string IdentityId
{
get
{
return _identityId;
}
set
{
_identityId = value;
}
}
private Hashtable _masterData;
/// <summary>
/// 主表数据,包括基础档案,单据的主表
/// </summary>
public Hashtable MasterData
{
get
{
return _masterData;
}
set
{
_masterData = value;
}
}
}
}
@@ -0,0 +1,36 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Lskj.Interface.Api
{
/// <summary>
/// 程序事件类型
/// </summary>
public enum OperateEvent
{
BeforeModuleDataLoad = 1,
BeforeModuleDataChange = 3,
AfterModuleDataChange = 4,
BeforeModuleStateChange = 5,
AfterModuleStateChange = 6,
BeforeModuleAuditStateChange = 7,
AfterModuleAuditStateChange = 8,
BeforeModuleContextMenu = 9,
AfterModuleContextMenu = 10,
BeforeModuleDataDelete = 11,
AfterModuleDataDelete = 12,
AfterGridDragComplete = 13,
/// <summary>
/// 接口控件按钮点击后
/// </summary>
AfterLabApiBtnClick = 14,
Loop = 99,
Timer = 100
}
}
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("Lskj.Interface.Api")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Lskj.Interface.Api")]
[assembly: AssemblyCopyright("Copyright © 2022")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// 将 ComVisible 设置为 false 会使此程序集中的类型
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
//请将此类型的 ComVisible 特性设置为 true。
[assembly: ComVisible(false)]
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
[assembly: Guid("24e9a18a-baf8-4052-809e-582b4fc6a8c4")]
// 程序集的版本信息由下列四个值组成:
//
// 主版本
// 次版本
// 生成号
// 修订号
//
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
@@ -0,0 +1,70 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本: 4.0.30319.42000
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Lskj.Interface.Api.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("Lskj.Interface.Api.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;
}
}
}
}
@@ -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>
@@ -0,0 +1,29 @@
//------------------------------------------------------------------------------
// <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 Lskj.Interface.Api.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;
}
}
}
}
@@ -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>
@@ -0,0 +1,36 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Lskj.Interface.Api
{
public class PropertyBase
{
private Dictionary<string, object> properties = new Dictionary<string, object>();
protected virtual object GetVal(string name, object defautVal = null)
{
object val;
if (properties.ContainsKey(name) && (val = properties[name]) != null)
{
return val;
}
else
{
val = defautVal;
properties[name] = val;
return val;
}
}
protected virtual void SetVal(string name, object val)
{
properties[name] = val;
}
}
}
+15
View File
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.6.10.0" newVersion="2.6.10.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Threading.Tasks" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.6.10.0" newVersion="2.6.10.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Costura.Fody" version="4.1.0" targetFramework="net40" />
<package id="Fody" version="6.3.0" targetFramework="net40" developmentDependency="true" />
</packages>