Add project files.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace SampleWorkflowWeb.Models
|
||||
{
|
||||
public class ViewModelBase
|
||||
{
|
||||
[Required]
|
||||
public string WorkflowId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// رویدادی که باید پس از سابمیت صفحه بعدی منتشر شود
|
||||
/// </summary>
|
||||
[Required]
|
||||
public string PageEventName { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SampleWorkflowWeb.Models
|
||||
{
|
||||
public class WorkflowResponse<T> : WorkflowResponseBase where T : class, new()
|
||||
{
|
||||
public WorkflowResponse()
|
||||
{
|
||||
Data = new T();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// پاسخ
|
||||
/// </summary>
|
||||
public T? Data { get; set; }
|
||||
}
|
||||
|
||||
public class WorkflowResponseBase
|
||||
{
|
||||
/// <summary>
|
||||
/// وضعیت پاسخ
|
||||
/// </summary>
|
||||
public int? Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// پیام پاسخ
|
||||
/// </summary>
|
||||
public string? Message { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
using SampleWorkflowWeb.Enums;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Reflection.Metadata.Ecma335;
|
||||
|
||||
namespace SampleWorkflowWeb.Models.Transfer
|
||||
{
|
||||
public class CartableViewModel : ViewModelBase
|
||||
{
|
||||
[Required]
|
||||
public int From { get; set; }
|
||||
|
||||
[Required]
|
||||
public int To { get; set; }
|
||||
|
||||
[Required]
|
||||
public long? Amount { get; set; }
|
||||
|
||||
[Required]
|
||||
public PersonType PersonType { get; set; }
|
||||
|
||||
[Required]
|
||||
public string ExpireDate { get; set; }
|
||||
|
||||
[Required]
|
||||
public PriorityType PriorityType { get; set; }
|
||||
|
||||
[Required]
|
||||
public string SenderNote { get; set; }
|
||||
|
||||
[Required]
|
||||
public string ReceiverNote { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using SampleWorkflowWeb.Enums;
|
||||
|
||||
namespace SampleWorkflowWeb.Models.Transfer
|
||||
{
|
||||
public class ConfirmViewModel
|
||||
{
|
||||
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 PersonType PersonType { get; set; }
|
||||
public string WorkflowId { get; set; }
|
||||
public string PageEventName { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
namespace SampleWorkflowWeb.Models
|
||||
{
|
||||
public class ReceiptViewModel
|
||||
{
|
||||
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,19 @@
|
||||
using SampleWorkflowWeb.Enums;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace SampleWorkflowWeb.Models.Transfer
|
||||
{
|
||||
public class SelectionViewModel : ViewModelBase
|
||||
{
|
||||
[Required]
|
||||
public int From { get; set; }
|
||||
|
||||
[Required]
|
||||
public int To { get; set; }
|
||||
|
||||
[Required]
|
||||
public long? Amount { get; set; }
|
||||
|
||||
public PersonType PersonType { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user