392 lines
8.8 KiB
C#
392 lines
8.8 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Community;
|
|
|
|
namespace Model
|
|
{
|
|
/// <summary>
|
|
/// 时间段产能
|
|
/// </summary>
|
|
public class TimeSlotCapacity : NotificationObject
|
|
{
|
|
|
|
public int ID { get; set; }
|
|
|
|
public int Number { get; set; }
|
|
|
|
private DateTime produceTate;
|
|
/// <summary>
|
|
/// 生产日期
|
|
/// </summary>
|
|
public DateTime ProduceTate
|
|
{
|
|
get { return produceTate; }
|
|
set
|
|
{
|
|
produceTate = value;
|
|
this.RaisePropertyChanged("ProduceTate");
|
|
}
|
|
}
|
|
|
|
private int phase1;
|
|
/// <summary>
|
|
/// 时间段1生产数量
|
|
/// </summary>
|
|
public int Phase1
|
|
{
|
|
get { return phase1; }
|
|
set
|
|
{
|
|
phase1 = value;
|
|
this.RaisePropertyChanged("Phase1");
|
|
}
|
|
}
|
|
|
|
private int phase2;
|
|
/// <summary>
|
|
/// 时间段2生产数量
|
|
/// </summary>
|
|
public int Phase2
|
|
{
|
|
get { return phase2; }
|
|
set
|
|
{
|
|
phase2 = value;
|
|
this.RaisePropertyChanged("Phase2");
|
|
}
|
|
}
|
|
|
|
private int phase3;
|
|
/// <summary>
|
|
/// 时间段3生产数量
|
|
/// </summary>
|
|
public int Phase3
|
|
{
|
|
get { return phase3; }
|
|
set
|
|
{
|
|
phase3 = value;
|
|
this.RaisePropertyChanged("Phase3");
|
|
}
|
|
}
|
|
|
|
|
|
private int phase4;
|
|
/// <summary>
|
|
/// 时间段4生产数量
|
|
/// </summary>
|
|
public int Phase4
|
|
{
|
|
get { return phase4; }
|
|
set
|
|
{
|
|
phase4 = value;
|
|
this.RaisePropertyChanged("Phase4");
|
|
}
|
|
}
|
|
|
|
private int phase5;
|
|
/// <summary>
|
|
/// 时间段5生产数量
|
|
/// </summary>
|
|
public int Phase5
|
|
{
|
|
get { return phase5; }
|
|
set
|
|
{
|
|
phase5 = value;
|
|
this.RaisePropertyChanged("Phase5");
|
|
}
|
|
}
|
|
|
|
private int phase6;
|
|
/// <summary>
|
|
/// 时间段6生产数量
|
|
/// </summary>
|
|
public int Phase6
|
|
{
|
|
get { return phase6; }
|
|
set
|
|
{
|
|
phase6 = value;
|
|
this.RaisePropertyChanged("Phase6");
|
|
}
|
|
}
|
|
|
|
private int phase7;
|
|
/// <summary>
|
|
/// 时间段7生产数量
|
|
/// </summary>
|
|
public int Phase7
|
|
{
|
|
get { return phase7; }
|
|
set
|
|
{
|
|
phase7 = value;
|
|
this.RaisePropertyChanged("Phase7");
|
|
}
|
|
}
|
|
|
|
private int phase8;
|
|
/// <summary>
|
|
/// 时间段8生产数量
|
|
/// </summary>
|
|
public int Phase8
|
|
{
|
|
get { return phase8; }
|
|
set
|
|
{
|
|
phase8 = value;
|
|
this.RaisePropertyChanged("Phase8");
|
|
}
|
|
}
|
|
|
|
private int phase9;
|
|
/// <summary>
|
|
/// 时间段9生产数量
|
|
/// </summary>
|
|
public int Phase9
|
|
{
|
|
get { return phase9; }
|
|
set
|
|
{
|
|
phase9 = value;
|
|
this.RaisePropertyChanged("Phase9");
|
|
}
|
|
}
|
|
|
|
|
|
private int phase10;
|
|
/// <summary>
|
|
/// 时间段10生产数量
|
|
/// </summary>
|
|
public int Phase10
|
|
{
|
|
get { return phase10; }
|
|
set
|
|
{
|
|
phase10 = value;
|
|
this.RaisePropertyChanged("Phase10");
|
|
}
|
|
}
|
|
|
|
private int phase11;
|
|
/// <summary>
|
|
/// 时间段11生产数量
|
|
/// </summary>
|
|
public int Phase11
|
|
{
|
|
get { return phase11; }
|
|
set
|
|
{
|
|
phase11 = value;
|
|
this.RaisePropertyChanged("Phase11");
|
|
}
|
|
}
|
|
|
|
|
|
private int phase12;
|
|
/// <summary>
|
|
/// 时间段12生产数量
|
|
/// </summary>
|
|
public int Phase12
|
|
{
|
|
get { return phase12; }
|
|
set
|
|
{
|
|
phase12 = value;
|
|
this.RaisePropertyChanged("Phase12");
|
|
}
|
|
}
|
|
|
|
private int phase13;
|
|
/// <summary>
|
|
/// 时间段13生产数量
|
|
/// </summary>
|
|
public int Phase13
|
|
{
|
|
get { return phase13; }
|
|
set
|
|
{
|
|
phase13 = value;
|
|
this.RaisePropertyChanged("Phase13");
|
|
}
|
|
}
|
|
|
|
private int phase14;
|
|
/// <summary>
|
|
/// 时间段14生产数量
|
|
/// </summary>
|
|
public int Phase14
|
|
{
|
|
get { return phase14; }
|
|
set
|
|
{
|
|
phase14 = value;
|
|
this.RaisePropertyChanged("Phase14");
|
|
}
|
|
}
|
|
|
|
|
|
private int phase15;
|
|
/// <summary>
|
|
/// 时间段15生产数量
|
|
/// </summary>
|
|
public int Phase15
|
|
{
|
|
get { return phase15; }
|
|
set
|
|
{
|
|
phase15 = value;
|
|
this.RaisePropertyChanged("Phase15");
|
|
}
|
|
}
|
|
|
|
|
|
private int phase16;
|
|
/// <summary>
|
|
/// 时间段16生产数量
|
|
/// </summary>
|
|
public int Phase16
|
|
{
|
|
get { return phase16; }
|
|
set
|
|
{
|
|
phase16 = value;
|
|
this.RaisePropertyChanged("Phase16");
|
|
}
|
|
}
|
|
|
|
private int phase17;
|
|
/// <summary>
|
|
/// 时间段17生产数量
|
|
/// </summary>
|
|
public int Phase17
|
|
{
|
|
get { return phase17; }
|
|
set
|
|
{
|
|
phase17 = value;
|
|
this.RaisePropertyChanged("Phase17");
|
|
}
|
|
}
|
|
|
|
private int phase18;
|
|
/// <summary>
|
|
/// 时间段18生产数量
|
|
/// </summary>
|
|
public int Phase18
|
|
{
|
|
get { return phase18; }
|
|
set
|
|
{
|
|
phase18 = value;
|
|
this.RaisePropertyChanged("Phase18");
|
|
}
|
|
}
|
|
|
|
private int phase19;
|
|
/// <summary>
|
|
/// 时间段19生产数量
|
|
/// </summary>
|
|
public int Phase19
|
|
{
|
|
get { return phase19; }
|
|
set
|
|
{
|
|
phase19 = value;
|
|
this.RaisePropertyChanged("Phase19");
|
|
}
|
|
}
|
|
|
|
private int phase20;
|
|
/// <summary>
|
|
/// 时间段15生产数量
|
|
/// </summary>
|
|
public int Phase20
|
|
{
|
|
get { return phase20; }
|
|
set
|
|
{
|
|
phase20 = value;
|
|
this.RaisePropertyChanged("Phase20");
|
|
}
|
|
}
|
|
|
|
private int phase21;
|
|
/// <summary>
|
|
/// 时间段15生产数量
|
|
/// </summary>
|
|
public int Phase21
|
|
{
|
|
get { return phase21; }
|
|
set
|
|
{
|
|
phase21 = value;
|
|
this.RaisePropertyChanged("Phase21");
|
|
}
|
|
}
|
|
|
|
private int phase22;
|
|
/// <summary>
|
|
/// 时间段15生产数量
|
|
/// </summary>
|
|
public int Phase22
|
|
{
|
|
get { return phase22; }
|
|
set
|
|
{
|
|
phase22 = value;
|
|
this.RaisePropertyChanged("Phase22");
|
|
}
|
|
}
|
|
|
|
private int phase23;
|
|
/// <summary>
|
|
/// 时间段15生产数量
|
|
/// </summary>
|
|
public int Phase23
|
|
{
|
|
get { return phase23; }
|
|
set
|
|
{
|
|
phase23 = value;
|
|
this.RaisePropertyChanged("Phase23");
|
|
}
|
|
}
|
|
|
|
private int phase24;
|
|
/// <summary>
|
|
/// 时间段15生产数量
|
|
/// </summary>
|
|
public int Phase24
|
|
{
|
|
get { return phase24; }
|
|
set
|
|
{
|
|
phase24 = value;
|
|
this.RaisePropertyChanged("Phase24");
|
|
}
|
|
}
|
|
|
|
|
|
private List<int> phaseList;
|
|
/// <summary>
|
|
/// 时间段产能集合
|
|
/// </summary>
|
|
public List<int> PhaseList
|
|
{
|
|
get { return new List<int>() { Phase1, Phase2, Phase3, Phase4, Phase5, Phase6, Phase7, Phase8, Phase9, Phase10, Phase11, Phase12, Phase13, Phase14, Phase15, Phase16, Phase17, Phase18, Phase19, Phase20, Phase21, Phase22, Phase23, Phase24 }; }
|
|
set { phaseList = value; }
|
|
}
|
|
|
|
public TimeSlotCapacity()
|
|
{
|
|
ProduceTate = DateTime.Now;
|
|
}
|
|
}
|
|
}
|