首次提交:添加src文件夹代码
This commit is contained in:
50
Cowain.Bake.Model/Entity/AuthorityEntity.cs
Normal file
50
Cowain.Bake.Model/Entity/AuthorityEntity.cs
Normal file
@@ -0,0 +1,50 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
|
||||
namespace Cowain.Bake.Model.Entity
|
||||
{
|
||||
public class AuthorityEntity:INotifyPropertyChanged
|
||||
{
|
||||
public AuthorityEntity()
|
||||
{
|
||||
Children = new ObservableCollection<AuthorityEntity>();
|
||||
}
|
||||
public int MenuId { get; set; }
|
||||
public string Header { get; set; }
|
||||
public string HeaderName { get; set; }
|
||||
public string TargetView { get; set; }
|
||||
public int? ParentId { get; set; }
|
||||
public Visibility CheckboxVisibility { get; set; }
|
||||
public ObservableCollection<AuthorityEntity> Children { get; set; }
|
||||
|
||||
private bool isHasAuthority;
|
||||
|
||||
public bool IsHasAuthority
|
||||
{
|
||||
get { return isHasAuthority; }
|
||||
set
|
||||
{
|
||||
if (isHasAuthority != value)
|
||||
{
|
||||
isHasAuthority = value;
|
||||
OnPropertyChanged("IsHasAuthority");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
||||
private void OnPropertyChanged(string propName)
|
||||
{
|
||||
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propName));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
22
Cowain.Bake.Model/Entity/BatteryInfoEntity.cs
Normal file
22
Cowain.Bake.Model/Entity/BatteryInfoEntity.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
|
||||
namespace Cowain.Bake.Model.Entity
|
||||
{
|
||||
public class BatteryInfoEntity : TBatteryInfo
|
||||
{
|
||||
public string PalletCode { get; set; }
|
||||
public string BakingLocation { get; set; }
|
||||
public Nullable<int> BakingPosition { get; set; }
|
||||
public Nullable<int> BakingCount { get; set; }
|
||||
public Nullable<System.DateTime> LoadingBegingTime { get; set; }
|
||||
public Nullable<System.DateTime> LoadingOverTime { get; set; }
|
||||
public Nullable<System.DateTime> BakingBeginTime { get; set; }
|
||||
public Nullable<System.DateTime> BakingOverTime { get; set; }
|
||||
public Nullable<System.DateTime> UnLoadingBegingTime { get; set; }
|
||||
public Nullable<System.DateTime> UnLoadingOverTime { get; set; }
|
||||
public string WaterValue { get; set; }
|
||||
public string AnodeValue { get; set; }
|
||||
public string SeptumValue { get; set; }
|
||||
public string CathodeValue { get; set; }
|
||||
}
|
||||
}
|
||||
17
Cowain.Bake.Model/Entity/CavityInfoPalletEntity.cs
Normal file
17
Cowain.Bake.Model/Entity/CavityInfoPalletEntity.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cowain.Bake.Model.Entity
|
||||
{
|
||||
public class CavityInfoPalletEntity : TCavityInfo
|
||||
{
|
||||
public int PalletStatus { get; set; }
|
||||
|
||||
public string JobNum { get; set; }
|
||||
|
||||
public Nullable<bool> LastFlag { get; set; }
|
||||
}
|
||||
}
|
||||
9
Cowain.Bake.Model/Entity/MesDataEntity.cs
Normal file
9
Cowain.Bake.Model/Entity/MesDataEntity.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
|
||||
namespace Cowain.Bake.Model.Entity
|
||||
{
|
||||
public class MesDataEntity : TMesData
|
||||
{
|
||||
public string BatteryCode { get; set; }
|
||||
public bool IsCheck { get; set; } = false;
|
||||
}
|
||||
}
|
||||
19
Cowain.Bake.Model/Entity/MoveInfoEntity.cs
Normal file
19
Cowain.Bake.Model/Entity/MoveInfoEntity.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cowain.Bake.Model.Entity
|
||||
{
|
||||
public class MoveInfoEntity
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public Nullable<int> PalletStatus { get; set; }
|
||||
public string PalletCode { get; set; }
|
||||
public Nullable<int> BatteryQty { get; set; }
|
||||
public Nullable<System.DateTime> BeginBakingTime { get; set; }
|
||||
public Nullable<System.DateTime> BakingOverTime { get; set; }
|
||||
public Nullable<int> BakingDuration { get; set; }
|
||||
}
|
||||
}
|
||||
23
Cowain.Bake.Model/Entity/OutputEntity.cs
Normal file
23
Cowain.Bake.Model/Entity/OutputEntity.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cowain.Bake.Model.Entity
|
||||
{
|
||||
public class OutputEntity
|
||||
{
|
||||
public string ProductionDate { get; set; }
|
||||
public int DayInput { get; set; }
|
||||
public int DayOutput { get; set; }
|
||||
public int DayNG { get; set; }
|
||||
public int NightInput { get; set; }
|
||||
public int NightOutput { get; set; }
|
||||
public int NightNG { get; set; }
|
||||
public string DayWorkTime { get; set; }
|
||||
public string NightWorkTime { get; set; }
|
||||
public decimal DayNGRate { get; set; }
|
||||
public decimal NightNGRate { get; set; }
|
||||
}
|
||||
}
|
||||
16
Cowain.Bake.Model/Entity/StationDataEntity.cs
Normal file
16
Cowain.Bake.Model/Entity/StationDataEntity.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cowain.Bake.Model.Entity
|
||||
{
|
||||
public class StationDataEntity
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int StationStep { get; set; }
|
||||
public int Qty { get; set; }
|
||||
public int NGQty { get; set; }
|
||||
}
|
||||
}
|
||||
24
Cowain.Bake.Model/Entity/StorageArea.cs
Normal file
24
Cowain.Bake.Model/Entity/StorageArea.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
|
||||
using Cowain.Bake.Model.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cowain.Bake.Model.Entity
|
||||
{
|
||||
public class StorageArea
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int StationId { get; set; }
|
||||
public string AddressType { get; set; }
|
||||
public string StartAddress { get; set; } //HSL通过这个地址去读
|
||||
public List<string> Addresses = new List<string>(); //OPC通过这个节点去读
|
||||
public List<string> OPCNodes = new List<string>(); //OPC通过这个节点去读
|
||||
public string ReadAddress { get; set; }
|
||||
public int Len { get; set; }
|
||||
public List<Variable> VariableList { get; set; } = new List<Variable>();
|
||||
}
|
||||
}
|
||||
14
Cowain.Bake.Model/Entity/TagEntity.cs
Normal file
14
Cowain.Bake.Model/Entity/TagEntity.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using Cowain.Bake.Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cowain.Bake.Model.Entity
|
||||
{
|
||||
public class TagEntity: TTagList
|
||||
{
|
||||
public int StationId { get; set; }
|
||||
}
|
||||
}
|
||||
29
Cowain.Bake.Model/Entity/TaskEntity.cs
Normal file
29
Cowain.Bake.Model/Entity/TaskEntity.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Cowain.Bake.Model.Entity
|
||||
{
|
||||
public class TaskEntity : TTaskRecord
|
||||
{
|
||||
public int FromStationNumber { get; set; }
|
||||
public int FromRow { get; set; }
|
||||
public int FromColumn { get; set; }
|
||||
public int ToStationNumber { get; set; }
|
||||
public int ToRow { get; set; }
|
||||
public int ToColumn { get; set; }
|
||||
public int CountCmd { get; set; }
|
||||
|
||||
|
||||
//public void Copy(TTaskRecord parent, TaskEntity child)
|
||||
//{
|
||||
// foreach (PropertyInfo prop in typeof(TTaskRecord).GetProperties())
|
||||
// {
|
||||
// if (prop.CanRead && prop.CanWrite)
|
||||
// {
|
||||
// var value = prop.GetValue(parent);
|
||||
// prop.SetValue(child, value);
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
}
|
||||
}
|
||||
39
Cowain.Bake.Model/Entity/UserEntity.cs
Normal file
39
Cowain.Bake.Model/Entity/UserEntity.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cowain.Bake.Model.Entity
|
||||
{
|
||||
public class UserEntity : TUserManage
|
||||
{
|
||||
/// <summary>
|
||||
/// 子类构造函数
|
||||
/// </summary>
|
||||
/// <param name="parent">父类对象</param>
|
||||
public void Copy(TUserManage parent)
|
||||
{
|
||||
var parentProperties = parent.GetType().GetProperties();
|
||||
foreach (var parentProperty in parentProperties)
|
||||
{
|
||||
var thisProperty = this.GetType().GetProperty(parentProperty.Name, parentProperty.PropertyType);
|
||||
var value = parentProperty.GetValue(parent);
|
||||
if (thisProperty != null && value != null && thisProperty.CanWrite)
|
||||
{
|
||||
thisProperty.SetValue(this, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
public List<TMenuInfo> Menus { get; set; } = new List<TMenuInfo>();
|
||||
/// <summary>
|
||||
/// 工单
|
||||
/// </summary>
|
||||
public string JobNum { get; set; }
|
||||
/// <summary>
|
||||
/// 工艺
|
||||
/// </summary>
|
||||
public string ProcessParamName { get; set; }
|
||||
}
|
||||
}
|
||||
15
Cowain.Bake.Model/Entity/WorkOrderFormulaEntity.cs
Normal file
15
Cowain.Bake.Model/Entity/WorkOrderFormulaEntity.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cowain.Bake.Model.Entity
|
||||
{
|
||||
public class WorkOrderFormulaEntity:TProductionInformation
|
||||
{
|
||||
public string Parameters { get; set; }
|
||||
public string ProcessParamName { get; set; }
|
||||
public bool? BaseFlag { get; set; }
|
||||
}
|
||||
}
|
||||
33
Cowain.Bake.Model/Entity/WorkStepEntity.cs
Normal file
33
Cowain.Bake.Model/Entity/WorkStepEntity.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cowain.Bake.Model.Entity
|
||||
{
|
||||
public class WorkStepEntity
|
||||
{
|
||||
public string WorkStepName { get; set; }
|
||||
public int WorkStep1 { get; set; }
|
||||
public int WorkStep2 { get; set; }
|
||||
public int WorkStep3 { get; set; }
|
||||
public int WorkStep4 { get; set; }
|
||||
public int WorkStep5 { get; set; }
|
||||
public int WorkStep6 { get; set; }
|
||||
public int WorkStep7 { get; set; }
|
||||
public int WorkStep8 { get; set; }
|
||||
public int WorkStep9 { get; set; }
|
||||
public int WorkStep10 { get; set; }
|
||||
public int WorkStep11 { get; set; }
|
||||
public int WorkStep12 { get; set; }
|
||||
public int WorkStep13 { get; set; }
|
||||
public int WorkStep14 { get; set; }
|
||||
public int WorkStep15 { get; set; }
|
||||
public int WorkStep16 { get; set; }
|
||||
public int WorkStep17 { get; set; }
|
||||
public int WorkStep18 { get; set; }
|
||||
public int WorkStep19 { get; set; }
|
||||
public int WorkStep20 { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user