Files
SGGL_SHJ/SGGL/Model/ZHGL/DataSync/HJGLDataItem.cs
T
lpf d657dfde99 feat: 完善公司看板、菜单配置和项目访问
展示公司焊接统计,支持维护菜单和看板标题,并按用户权限限制项目入口。
2026-12-01 09:34:25 +08:00

82 lines
2.6 KiB
C#

using System;
using System.Collections.Generic;
namespace Model
{
/// <summary>公司首页实时焊接指标,合格率为初检合格片数占比。</summary>
public class CompanyWeldingDashboard
{
public decimal TotalDine { get; set; }
public decimal MonthCompletedDine { get; set; }
public decimal CompletedDine { get; set; }
public decimal? MonthFirstPassRate { get; set; }
public decimal? FirstPassRate { get; set; }
public int WelderCount { get; set; }
public List<CompanyWeldingProject> Projects { get; set; }
public List<CompanyWeldingMonth> Months { get; set; }
}
public class CompanyWeldingProject
{
public string ProjectId { get; set; }
public string ProjectName { get; set; }
public string ProjectAddress { get; set; }
public string MapCoordinates { get; set; }
public DateTime? StartDate { get; set; }
public DateTime? EndDate { get; set; }
public decimal TotalDine { get; set; }
public decimal CompletedDine { get; set; }
public decimal RemainingDine => TotalDine - CompletedDine;
public CompanyWeldingMonth CurrentMonth { get; } = new CompanyWeldingMonth();
}
public class CompanyWeldingMonth
{
public DateTime Month { get; set; }
public decimal CompletedDine { get; set; }
public long PassedFilms { get; set; }
public long TotalFilms { get; set; }
public decimal? FirstPassRate => TotalFilms > 0 ? (decimal?)PassedFilms / TotalFilms : null;
}
public class HJGLData
{
/// <summary>
/// HJGL数据项集合
/// </summary>
public List<HJGLDataItem> HJGLDataItems
{
get;
set;
}
}
/// <summary>
/// HJGLDataItem
/// </summary>
public partial class HJGLDataItem
{
public string Id { get; set; }
public string CollCropCode { get; set; }
public int? CompleteDineNum { get; set; }
public int? OKFilmNum { get; set; }
public string ReportDate { get; set; }
public int? TotalDineNum { get; set; }
public int? TotalFilmNum { get; set; }
public string UnitId { get; set; }
public int? WelderNum { get; set; }
public List<HJGLDataDefectItems> HJGLDataDefectItems { get; set; }
}
/// <summary>
/// HJGLDataDefectItem
/// </summary>
public partial class HJGLDataDefectItems
{
public string DefectName { get; set; }
public int? DefectNum { get; set; }
public string Id { get; set; }
}
}