using FreeSql.DataAnnotations;
using F9WebAiTest.Domain.Common;
namespace F9WebAiTest.Domain.Entities.Prod;
/// 秤大丝-落丝汇总(每个落丝记录一条)
[Table(Name = "CdsLsjls")]
[Index("IX_CdsLsjls_LsjlId", "LsjlId", IsUnique = true)]
public class CdsLsjl : BaseEntity
{
public long LsjlId { get; set; } // 落丝记录
public int Num { get; set; } // 已秤数(把数)
public int Siliang { get; set; } // 已秤丝量(g)
public int Jianliang { get; set; } // 茧量(g)= 落丝桶数 × 每桶茧量
public decimal Saozhe { get; set; } // 缫折 = 茧量 / 丝量 × 100
public decimal Taichan { get; set; } // 实绩台产 = 丝量 / 落丝时长 / 车台数
}
/// 秤大丝-车台明细(每车台一行,4 个丝量值,单位 g)
[Table(Name = "CdsChetais")]
[Index("IX_CdsChetais_LsjlId_Chetaihao", "LsjlId, Chetaihao", IsUnique = true)]
public class CdsChetai : BaseEntity
{
public long LsjlId { get; set; } // 落丝记录
public int Chetaihao { get; set; } // 车台号
public int Sl1 { get; set; } // 丝量1
public int Sl2 { get; set; } // 丝量2
public int Sl3 { get; set; } // 丝量3
public int Sl4 { get; set; } // 丝量4
public int Num { get; set; } // 个数 = 丝量 > 0 的个数
public int Siliang { get; set; } // 小计丝量
}