* Translated Views
* Added UserName entity, dto and mapping * Changed some Dtos to use BaseClass
This commit is contained in:
@@ -2,5 +2,16 @@
|
||||
{
|
||||
public class DtoBase
|
||||
{
|
||||
protected static string TranslateStatus(string status)
|
||||
{
|
||||
return status switch
|
||||
{
|
||||
"O" => "Zamówione",
|
||||
"S" => "Zatrzymane",
|
||||
"P" => "Planowane",
|
||||
"C" => "Zakończone",
|
||||
_ => status
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -106,17 +106,5 @@ namespace SytelineSaAppEfDataModel.Dtos
|
||||
|
||||
public IEnumerable<EdiCustomerOrderLineDto> EdiCustomerOrderLines { get; set; } = new List<EdiCustomerOrderLineDto>();
|
||||
public IEnumerable<EdiCustomerOrderTranslateDto> EdiCustomerOrderTranslates { get; set; } = new List<EdiCustomerOrderTranslateDto>();
|
||||
|
||||
private static string TranslateStatus(string status)
|
||||
{
|
||||
return status switch
|
||||
{
|
||||
"O" => "Zamówione",
|
||||
"S" => "Zatrzymane",
|
||||
"P" => "Planowane",
|
||||
"C" => "Zakończone",
|
||||
_ => status
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace SytelineSaAppEfDataModel.Dtos
|
||||
{
|
||||
public class EdiCustomerOrderLineDto
|
||||
public class EdiCustomerOrderLineDto : DtoBase
|
||||
{
|
||||
public string CustomerOrderNumber { get; set; }
|
||||
public int CustomerOrderLine { get; set; }
|
||||
@@ -38,6 +38,8 @@ namespace SytelineSaAppEfDataModel.Dtos
|
||||
public string Address { get; set; }
|
||||
public string FinalDestination { get; set; }
|
||||
public int? QtyPerBox { get; set; }
|
||||
|
||||
public string TranslatedStatus => TranslateStatus(Status);
|
||||
|
||||
public IEnumerable<EdiCustomerOrderLineItemDto> EdiCustomerOrderLineItems { get; set; }
|
||||
}
|
||||
|
||||
42
SytelineSaAppEfDataModel/Dtos/UserNameDto.cs
Normal file
42
SytelineSaAppEfDataModel/Dtos/UserNameDto.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
namespace SytelineSaAppEfDataModel.Dtos;
|
||||
|
||||
public class UserNameDto
|
||||
{
|
||||
public long UserId { get; set; }
|
||||
public string Username { get; set; }
|
||||
public short EditLevel { get; set; }
|
||||
public bool SuperUserFlag { get; set; }
|
||||
public string UserPassword { get; set; }
|
||||
public string SQLServerLogin { get; set; }
|
||||
public string SQLServerPassword { get; set; }
|
||||
public string UserDesc { get; set; }
|
||||
public string WorkstationLogin { get; set; }
|
||||
public bool NoteExistsFlag { get; set; }
|
||||
public string CreatedBy { get; set; }
|
||||
public string UpdatedBy { get; set; }
|
||||
public DateTime CreateDate { get; set; }
|
||||
public DateTime RecordDate { get; set; }
|
||||
public Guid RowPointer { get; set; }
|
||||
public short ConcurrentSessions { get; set; }
|
||||
public string ConcurrentSessionsSpec { get; set; }
|
||||
public bool InWorkflow { get; set; }
|
||||
public short Status { get; set; }
|
||||
public DateTime? PasswordExpirationDate { get; set; }
|
||||
public short LoginFailures { get; set; }
|
||||
public DateTime? UnlockDate { get; set; }
|
||||
public bool PasswordNeverExpires { get; set; }
|
||||
public DateTime? EventMessagesLastCheckedTime { get; set; }
|
||||
public bool SendEmailPrompts { get; set; }
|
||||
public string LanguageCode { get; set; }
|
||||
public string MobileDefaultForm { get; set; }
|
||||
public bool SendEmailNotifications { get; set; }
|
||||
public string EmailPromptsEmailType { get; set; }
|
||||
public string EmailNotificationsEmailType { get; set; }
|
||||
public string PrimaryEmailType { get; set; }
|
||||
public string SourceControlUsername { get; set; }
|
||||
public string SourceControlPassword { get; set; }
|
||||
public string RfqProfile { get; set; }
|
||||
public string RfqFaxNum { get; set; }
|
||||
public string Uf_ZPL_EmpNum { get; set; }
|
||||
public string Uf_PLT_EmpNum { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user