Add project files.

This commit is contained in:
Behzad Alizadeh
2025-07-02 16:25:46 +03:30
parent 7391bb6626
commit d58167d24a
137 changed files with 85333 additions and 0 deletions
@@ -0,0 +1,13 @@
namespace SampleWorkflowWeb.Models
{
public class CardModel
{
public int Id { get; set; }
public string PAN { get; set; }
public string FullName { get; set; }
public string BankName { get; set; }
}
}
@@ -0,0 +1,15 @@
namespace SampleWorkflowWeb.Models
{
public class CompleteViewModel
{
public int From { get; set; }
public string? FromPan { get; set; }
public string? FromFullName { get; set; }
public int To { get; set; }
public string? ToPan { get; set; }
public string? ToFullName { get; set; }
public long? Amount { get; set; }
public string WorkflowId { get; set; }
public string PageEventName { get; set; }
}
}
@@ -0,0 +1,9 @@
namespace SampleWorkflowWeb.Models
{
public class ErrorViewModel
{
public string? RequestId { get; set; }
public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
}
}
@@ -0,0 +1,15 @@
namespace SampleWorkflowWeb.Models
{
public class Form100ViewModel
{
public int From { get; set; }
public int To { get; set; }
public long? Amount { get; set; }
public string? WorkflowId { get; set; }
/// <summary>
/// رویدادی که باید پس از سابمیت صفحه بعدی منتشر شود
/// </summary>
public string? PageEventName { get; set; }
}
}
@@ -0,0 +1,15 @@
namespace SampleWorkflowWeb.Models
{
public class Form101ViewModel
{
public int From { get; set; }
public string? FromPan { get; set; }
public string? FromFullName { get; set; }
public int To { get; set; }
public string? ToPan { get; set; }
public string? ToFullName { get; set; }
public long? Amount { get; set; }
public string WorkflowId { get; set; }
public string PageEventName { get; set; }
}
}
@@ -0,0 +1,7 @@
namespace SampleWorkflowWeb.Models
{
public class InquiryViewModel
{
public string WorkflowId { get; set; }
}
}
@@ -0,0 +1,9 @@
namespace SampleWorkflowWeb.Models
{
public class PublishEventModel
{
public string EventName { get; set; }
public string EventKey { get; set; }
public object EventData { get; set; }
}
}
@@ -0,0 +1,10 @@
namespace SampleWorkflowWeb.Models
{
public class StartWorkflowModel
{
public string Name { get; set; }
public int? Version { get; set; }
public string Reference { get; set; }
public object WfModel { get; set; }
}
}
@@ -0,0 +1,56 @@
namespace SampleWorkflowWeb.Models
{
public class WorkflowModel
{
/// <summary>
/// شناسه گردش کار
/// <remark>
/// Type: Guid
/// </remark>
/// </summary>
public string? InstanceId { get; set; }
/// <summary>
/// نام گردش کار
/// </summary>
public string? Name { get; set; }
/// <summary>
/// اتمام گردش کار؟
/// </summary>
public bool IsComplete { get; set; }
/// <summary>
/// برای کدام کاربر؟
/// </summary>
public long? UserId { get; set; }
/// <summary>
/// داده صفحه جاری
/// </summary>
public string? CurrentPageData { get; set; }
/// <summary>
/// داده صفحه بعد
/// <remark>
/// فعلا استفاده ای نداریم
/// </remark>
/// </summary>
public string? NextPageData { get; set; }
/// <summary>
/// آدرس صفحه بعدی
/// </summary>
public string? NextPageUrl { get; set; }
/// <summary>
/// رویدادی که باید پس از سابمیت صفحه بعدی منتشر شود
/// </summary>
public string? NextPageEventName { get; set; }
/// <summary>
/// کلید رویداد
/// </summary>
public string? NextPageEventKey { get; set; }
}
}