using SQLite;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FLY.Thick.Blowing.Server.Model
{
///
/// 订单记录
///
[Table("Profile")]
public class Db_Profile
{
[Key]
[PropertyIndex(0)]
public Int64 ID { get; set; }
///
/// 产品名称
///
[PropertyIndex(1)]
public string PName { get; set; }
///
/// 订单号
///
[PropertyIndex(2)]
public string OrderNo { get; set; }
///
/// 卷号
///
[PropertyIndex(3)]
public string Number { get; set; }
///
/// 开始时间
///
[PropertyIndex(4)]
public DateTime StartTime { get; set; }
///
/// 结束时间
///
[PropertyIndex(5)]
public DateTime EndTime { get; set; }
///
/// 已经结束
///
[PropertyIndex(6)]
public bool IsFinished { get; set; }
///
/// 目标值
///
[PropertyIndex(7)]
public double Target { get; set; }
///
/// 工艺%
///
[PropertyIndex(8)]
public double TolerancePercent { get; set; }
}
///
/// 横向厚度记录
///
[Table("ScanData")]
public class Db_ScanData
{
[Key]
[PropertyIndex(0)]
public Int64 ID { get; set; }
///
/// 测量数据开始时间
///
[PropertyIndex(1)]
public DateTime Time { get; set; }
///
/// 测量数据结束时间
///
[PropertyIndex(2)]
public DateTime EndTime { get; set; }
///
/// 旋转方向 是反向
///
[PropertyIndex(3)]
public bool IsBackw { get; set; }
///
/// 旋转1周的时间 min
///
[PropertyIndex(4)]
public double RPeriod { get; set; }
///
/// 旋转次数
///
[PropertyIndex(5)]
public int RCnt { get; set; }
///
/// 复位区号
///
[PropertyIndex(6)]
public int OrgBoltNo { get; set; }
///
/// 旋转角度 °
///
[PropertyIndex(7)]
public double RAngle { get; set; }
///
/// 膜距离 m
///
[PropertyIndex(8)]
public double FilmLength { get; set; }
///
/// 线速度
///
[PropertyIndex(9)]
public double FilmVelocity { get; set; }
///
/// 斜率补偿
///
[PropertyIndex(10)]
public double K { get; set; }
///
/// 1幅数据
///
[PropertyIndex(11)]
public string Thicks { get; set; }
///
/// 分区表
///
[PropertyIndex(12)]
public string Boltmap { get; set; }
}
///
/// 纵向厚度记录
///
[Table("TrendData")]
public class Db_TrendData
{
[Key]
[PropertyIndex(0)]
public Int64 ID { get; set; }
///
/// 测量数据开始时间
///
[PropertyIndex(1)]
public DateTime Time { get; set; }
///
/// 斜率补偿
///
[PropertyIndex(2)]
public double K { get; set; }
///
/// 追边时,1分钟1次,1秒一个数据,60个数据
/// 扫描时,一趟1次,分为螺丝总数/2 个数据
/// 需要时,可以计算这样数据的sigma
///
[PropertyIndex(3)]
public string Thicks { get; set; }
}
///
/// 信号记录
///
[Table("Sample")]
public class Db_Sample
{
///
/// key
///
[Key]
[PropertyIndex(0)]
public Int64 ID { get; set; }
///
/// 撞转向信号时间
///
[PropertyIndex(1)]
public DateTime Time { get; set; }
///
/// 样品AD int[]
///
[PropertyIndex(2)]
public string SampleADs { get; set; }
}
}