Laservall_solidworks_inject/Server/Dto/BomResponseDto.cs

73 lines
2.1 KiB
C#
Raw Normal View History

using System.Collections.Generic;
namespace Laservall.Solidworks.Server.Dto
{
internal sealed class BomItemDto
{
public int Level { get; set; }
public string LevelDisplay { get; set; }
public string DrawingNo { get; set; }
public string ConfigName { get; set; }
public string PartName { get; set; }
public string MaterialProp { get; set; }
public string Material { get; set; }
public string Classification { get; set; }
public int Quantity { get; set; }
public bool IsAssembly { get; set; }
public bool IsOutSourcing { get; set; }
public string DocPath { get; set; }
public Dictionary<string, string> Props { get; set; }
public bool HasChildren { get; set; }
public int NodeId { get; set; }
public int ParentNodeId { get; set; }
}
internal sealed class BomStreamResponse
{
public List<BomItemDto> Items { get; set; }
public List<string> DynamicKeys { get; set; }
public SettingsDto Settings { get; set; }
}
internal sealed class SettingsDto
{
public List<ColumnConfigDto> Columns { get; set; }
public List<string> RemovedKeys { get; set; }
}
internal sealed class ColumnConfigDto
{
public string Name { get; set; }
public bool IsVisible { get; set; }
public bool IsExport { get; set; }
public bool IsFixed { get; set; }
public bool IsUserAdded { get; set; }
}
internal sealed class SaveRequest
{
public List<SaveChangeDto> Changes { get; set; }
}
internal sealed class SaveChangeDto
{
public string DocPath { get; set; }
public string Key { get; set; }
public string Value { get; set; }
}
internal sealed class SaveResponse
{
public bool Success { get; set; }
public int SavedCount { get; set; }
public string Error { get; set; }
}
internal sealed class ProgressEventDto
{
public int Processed { get; set; }
public int Total { get; set; }
public string CurrentName { get; set; }
}
}