Files
Backend-Api/CompanyManagment.App.Contracts/PersonalContractingParty/CreatePersonalContractingParty.cs
2024-07-05 21:36:15 +03:30

67 lines
2.6 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using CompanyManagment.App.Contracts.Representative;
namespace CompanyManagment.App.Contracts.PersonalContractingParty;
public class CreatePersonalContractingParty
{
//public long id { get; set; }
[Required(ErrorMessage = "این مقدار نمی تواند خالی باشد")]
public string FName { get; set; }
[Required(ErrorMessage = "این مقدار نمی تواند خالی باشد")]
public string LName { get; set; }
public long RepresentativeId { get; set; }
public string RepresentativeFullName { get; set; }
[Required(ErrorMessage = "این مقدار نمی تواند خالی باشد")]
[RegularExpression("^[0-9]*$", ErrorMessage = "لطفا فقط عدد وارد کنید")]
public string Nationalcode { get; set; }
[MaxLength(12)]
[MinLength(1)]
[RegularExpression("^[0-9]*$", ErrorMessage = "لطفا فقط عدد وارد کنید")]
public string IdNumber { get; set; }
//[Required(ErrorMessage = "این مقدار نمی تواند خالی باشد")]
//public string LegalName { get; set; }
[Required(ErrorMessage = "این مقدار نمی تواند خالی باشد")]
[RegularExpression("^[0-9]*$", ErrorMessage = "لطفا فقط عدد وارد کنید")]
public string RegisterId { get; set; }
[Required(ErrorMessage = "این مقدار نمی تواند خالی باشد")]
[RegularExpression("[0-9]{11}", ErrorMessage = "لطفا فقط عدد 11 رقمی وارد کنید")]
public string NationalId { get; set; }
public string IsLegal { get; set; }
[DataType(DataType.PhoneNumber)]
[RegularExpression(@"^\(?([0-9]{4})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$", ErrorMessage = "لطفا شماره تلفن معتبر وارد کنید")]
public string Phone { get; set; }
[RegularExpression("^[0-9]*$", ErrorMessage = "لطفا فقط عدد وارد کنید")]
public string AgentPhone { get; set; }
public string Address { get; set; }
[Required(ErrorMessage = "این مقدار نمی تواند خالی باشد")]
public int ArchiveCode { get; set; }
public List<RepresentativeViewModel> RepresentativeViewModels { get; set; }
public string FullName { get; set; }
public string SureName { get; set; }
public string State { get; set; }
public string City { get; set; }
public string Zone { get; set; }
public string IsActiveString { get; set; }
public string IsBlock { get; set; }
public int BlockTimes { get; set; }
public bool HasContract { get; set; }
}