Compare commits
6 Commits
3e9d16e382
...
848649a7d2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
848649a7d2 | ||
|
|
da28f1f57e | ||
|
|
beae1d2496 | ||
|
|
fff7e069c4 | ||
|
|
a740289e05 | ||
|
|
039234e88e |
35
WorkFlow.Domain/Entities/Config.cs
Normal file
35
WorkFlow.Domain/Entities/Config.cs
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
|
||||||
|
namespace WorkFlow.Domain.Entities
|
||||||
|
{
|
||||||
|
[Table("TBMWF_CONFIG", Schema = "dbo")]
|
||||||
|
public class Config
|
||||||
|
{
|
||||||
|
[Key]
|
||||||
|
[Column("GUID")]
|
||||||
|
public int Id { get; init; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
|
[Column("CONF_TITLE", TypeName = "varchar(100)")]
|
||||||
|
public required string ConfTitle { get; init; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
|
[Column("CONF_STRING", TypeName = "varchar(900)")]
|
||||||
|
public required string ConfString { get; init; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
|
[Column("ADDED_WHO", TypeName = "varchar(30)")]
|
||||||
|
public required string AddedWho { get; init; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
|
[Column("ADDED_WHEN", TypeName = "datetime")]
|
||||||
|
public required DateTime AddedWhen { get; init; }
|
||||||
|
|
||||||
|
[Column("CHANGED_WHO", TypeName = "varchar(30)")]
|
||||||
|
public string? ChangedWho { get; init; }
|
||||||
|
|
||||||
|
[Column("CHANGED_WHEN", TypeName = "datetime")]
|
||||||
|
public DateTime? ChangedWhen { get; init; }
|
||||||
|
}
|
||||||
|
}
|
||||||
60
WorkFlow.Domain/Entities/ProfControlsTf.cs
Normal file
60
WorkFlow.Domain/Entities/ProfControlsTf.cs
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
|
||||||
|
namespace WorkFlow.Domain.Entities
|
||||||
|
{
|
||||||
|
[Table("TBMWF_PROF_CONTROLS_TF", Schema = "dbo")]
|
||||||
|
public class ProfControlsTf
|
||||||
|
{
|
||||||
|
[Key]
|
||||||
|
[Column("GUID")]
|
||||||
|
public int Id { get; init; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
|
[Column("MWF_PROFILE_ID")]
|
||||||
|
public required int MwfProfileId { get; init; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
|
[Column("USR_ID")]
|
||||||
|
public required int UsrId { get; init; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
|
[Column("OBJ_ID")]
|
||||||
|
public required long ObjId { get; init; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
|
[Column("OBJ_TYPE", TypeName = "varchar(10)")]
|
||||||
|
public required string ObjType { get; init; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
|
[Column("ATTR_NAME", TypeName = "varchar(100)")]
|
||||||
|
public required string AttrName { get; init; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
|
[Column("CTRL_TYPE", TypeName = "varchar(10)")]
|
||||||
|
public required string CtrlType { get; init; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
|
[Column("CTRL_CAPTION", TypeName = "varchar(100)")]
|
||||||
|
public required string CtrlCaption { get; init; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
|
[Column("MANDATORY")]
|
||||||
|
public required bool Mandatory { get; init; }
|
||||||
|
|
||||||
|
[Column("CHOICE_LIST", TypeName = "nvarchar(max)")]
|
||||||
|
public string? ChoiceList { get; init; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
|
[Column("READ_ONLY")]
|
||||||
|
public required bool ReadOnly { get; init; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
|
[Column("ADDED_WHO", TypeName = "varchar(100)")]
|
||||||
|
public required string AddedWho { get; init; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
|
[Column("ADDED_WHEN", TypeName = "datetime")]
|
||||||
|
public required DateTime AddedWhen { get; init; }
|
||||||
|
}
|
||||||
|
}
|
||||||
43
WorkFlow.Domain/Entities/Profile.cs
Normal file
43
WorkFlow.Domain/Entities/Profile.cs
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
|
||||||
|
namespace WorkFlow.Domain.Entities
|
||||||
|
{
|
||||||
|
[Table("TBMWF_PROFILE", Schema = "dbo")]
|
||||||
|
public class Profile
|
||||||
|
{
|
||||||
|
[Key]
|
||||||
|
[Column("GUID")]
|
||||||
|
public int Id { get; init; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
|
[Column("INTL_NAME", TypeName = "varchar(200)")]
|
||||||
|
public required string IntlName { get; init; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
|
[Column("EXT_ID1")]
|
||||||
|
public required int ExtId1 { get; init; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
|
[Column("ACTIVE")]
|
||||||
|
public required bool Active { get; init; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
|
[Column("ADDED_WHO", TypeName = "varchar(30)")]
|
||||||
|
public required string AddedWho { get; init; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
|
[Column("ADDED_WHEN", TypeName = "datetime")]
|
||||||
|
public required DateTime AddedWhen { get; init; }
|
||||||
|
|
||||||
|
[Column("CHANGED_WHO", TypeName = "varchar(30)")]
|
||||||
|
public string? ChangedWho { get; init; }
|
||||||
|
|
||||||
|
[Column("CHANGED_WHEN", TypeName = "datetime")]
|
||||||
|
public DateTime? ChangedWhen { get; init; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
|
[Column("TYPE_ID")]
|
||||||
|
public required byte TypeId { get; init; }
|
||||||
|
}
|
||||||
|
}
|
||||||
46
WorkFlow.Domain/Entities/ProfileObjState.cs
Normal file
46
WorkFlow.Domain/Entities/ProfileObjState.cs
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
|
||||||
|
namespace WorkFlow.Domain.Entities
|
||||||
|
{
|
||||||
|
[Table("TBMWF_PROFILE_OBJ_STATE", Schema = "dbo")]
|
||||||
|
public class ProfileObjState
|
||||||
|
{
|
||||||
|
[Key]
|
||||||
|
[Column("GUID")]
|
||||||
|
public int Id { get; init; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
|
[Column("MWF_PROFILE_ID")]
|
||||||
|
public required int MwfProfileId { get; init; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
|
[Column("USR_ID")]
|
||||||
|
public required int UsrId { get; init; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
|
[Column("OBJ_ID")]
|
||||||
|
public required long ObjId { get; init; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
|
[Column("STATE_ID")]
|
||||||
|
public required int StateId { get; init; }
|
||||||
|
|
||||||
|
[Column("STATE2", TypeName = "nvarchar(3000)")]
|
||||||
|
public string? State2 { get; init; }
|
||||||
|
|
||||||
|
[Column("STATE3", TypeName = "nvarchar(3000)")]
|
||||||
|
public string? State3 { get; init; }
|
||||||
|
|
||||||
|
[Column("STATE4", TypeName = "nvarchar(3000)")]
|
||||||
|
public string? State4 { get; init; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
|
[Column("ADDED_WHO", TypeName = "varchar(30)")]
|
||||||
|
public required string AddedWho { get; init; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
|
[Column("ADDED_WHEN", TypeName = "datetime")]
|
||||||
|
public required DateTime AddedWhen { get; init; }
|
||||||
|
}
|
||||||
|
}
|
||||||
25
WorkFlow.Domain/Entities/WfState.cs
Normal file
25
WorkFlow.Domain/Entities/WfState.cs
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
|
||||||
|
namespace WorkFlow.Domain.Entities
|
||||||
|
{
|
||||||
|
[Table("TBMWF_WF_STATE", Schema = "dbo")]
|
||||||
|
public class WfState
|
||||||
|
{
|
||||||
|
[Key]
|
||||||
|
[Column("GUID")]
|
||||||
|
public int Id { get; init; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
|
[Column("INTL_STATE", TypeName = "varchar(100)")]
|
||||||
|
public required string IntlState { get; init; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
|
[Column("ADDED_WHO", TypeName = "varchar(30)")]
|
||||||
|
public required string AddedWho { get; init; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
|
[Column("ADDED_WHEN", TypeName = "datetime")]
|
||||||
|
public required DateTime AddedWhen { get; init; }
|
||||||
|
}
|
||||||
|
}
|
||||||
9
WorkFlow.Domain/WorkFlow.Domain.csproj
Normal file
9
WorkFlow.Domain/WorkFlow.Domain.csproj
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
25
WorkFlow.sln
Normal file
25
WorkFlow.sln
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio Version 17
|
||||||
|
VisualStudioVersion = 17.9.34622.214
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WorkFlow.Domain", "WorkFlow.Domain\WorkFlow.Domain.csproj", "{71E9264E-A2F0-4E5A-B010-8E4618C0C6AC}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{71E9264E-A2F0-4E5A-B010-8E4618C0C6AC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{71E9264E-A2F0-4E5A-B010-8E4618C0C6AC}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{71E9264E-A2F0-4E5A-B010-8E4618C0C6AC}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{71E9264E-A2F0-4E5A-B010-8E4618C0C6AC}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {1ECB3995-5040-40BC-BC70-906E64BB4E01}
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
||||||
Reference in New Issue
Block a user