|
@@ -2,7 +2,6 @@
|
|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
|
using System.Data.SqlClient;
|
|
|
-using System.Linq.Expressions;
|
|
|
using SCADA.CommonLib;
|
|
|
using SCADA.CommonLib.Data;
|
|
|
using SCADA.CommonLib.Data.DIL;
|
|
@@ -493,6 +492,85 @@ public static class T_Col_Name
|
|
|
/// </summary>
|
|
|
public const string @StateId_Str=nameof(@StateId_Str);
|
|
|
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// App_Vertiv_Statistics
|
|
|
+ /// </summary>
|
|
|
+ public class App_Vertiv_Statistics
|
|
|
+ {
|
|
|
+ /// <summary>
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
+ public const string @ID=nameof(@ID);
|
|
|
+ /// <summary>
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
+ public const string @Source_Str=nameof(@Source_Str);
|
|
|
+ /// <summary>
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
+ public const string @Value_Int=nameof(@Value_Int);
|
|
|
+ /// <summary>
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
+ public const string @Mac_1_Int=nameof(@Mac_1_Int);
|
|
|
+ /// <summary>
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
+ public const string @Mac_2_Int=nameof(@Mac_2_Int);
|
|
|
+ /// <summary>
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
+ public const string @Mac_3_Int=nameof(@Mac_3_Int);
|
|
|
+ /// <summary>
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
+ public const string @Mac_4_Int=nameof(@Mac_4_Int);
|
|
|
+ /// <summary>
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
+ public const string @Mac_5_Int=nameof(@Mac_5_Int);
|
|
|
+ /// <summary>
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
+ public const string @Mac_6_Int=nameof(@Mac_6_Int);
|
|
|
+ /// <summary>
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
+ public const string @Mac_7_Int=nameof(@Mac_7_Int);
|
|
|
+ /// <summary>
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
+ public const string @Mac_8_Int=nameof(@Mac_8_Int);
|
|
|
+ /// <summary>
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
+ public const string @Mac_9_Int=nameof(@Mac_9_Int);
|
|
|
+ /// <summary>
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
+ public const string @Mac_10_Int=nameof(@Mac_10_Int);
|
|
|
+ /// <summary>
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
+ public const string @CreateTime_Dt=nameof(@CreateTime_Dt);
|
|
|
+ /// <summary>
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
+ public const string @ModifyTime_Dt=nameof(@ModifyTime_Dt);
|
|
|
+ /// <summary>
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
+ public const string @ModifyUser_Str=nameof(@ModifyUser_Str);
|
|
|
+ /// <summary>
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
+ public const string @Remark_Str=nameof(@Remark_Str);
|
|
|
+ /// <summary>
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
+ public const string @CreateUser_Str=nameof(@CreateUser_Str);
|
|
|
+
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// App_Vertiv_WorkTime
|
|
@@ -2405,6 +2483,283 @@ namespace DBModel
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
+ public class App_Vertiv_Statistics:ObservableObject
|
|
|
+ {
|
|
|
+ private int _ID;
|
|
|
+ /// <summary>
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
+ public int ID
|
|
|
+ {
|
|
|
+ get {return _ID;}
|
|
|
+ set{
|
|
|
+ if(value!=(_ID))
|
|
|
+ {
|
|
|
+ _ID=value;
|
|
|
+ OnPropertyChanged(nameof( ID));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private string _Source_Str;
|
|
|
+ /// <summary>
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
+ public string Source_Str
|
|
|
+ {
|
|
|
+ get {return _Source_Str;}
|
|
|
+ set{
|
|
|
+ if(value!=(_Source_Str))
|
|
|
+ {
|
|
|
+ _Source_Str=value;
|
|
|
+ OnPropertyChanged(nameof( Source_Str));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private string _Value_Int;
|
|
|
+ /// <summary>
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
+ public string Value_Int
|
|
|
+ {
|
|
|
+ get {return _Value_Int;}
|
|
|
+ set{
|
|
|
+ if(value!=(_Value_Int))
|
|
|
+ {
|
|
|
+ _Value_Int=value;
|
|
|
+ OnPropertyChanged(nameof( Value_Int));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private int? _Mac_1_Int;
|
|
|
+ /// <summary>
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
+ public int? Mac_1_Int
|
|
|
+ {
|
|
|
+ get {return _Mac_1_Int;}
|
|
|
+ set{
|
|
|
+ if(value!=(_Mac_1_Int))
|
|
|
+ {
|
|
|
+ _Mac_1_Int=value;
|
|
|
+ OnPropertyChanged(nameof( Mac_1_Int));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private int? _Mac_2_Int;
|
|
|
+ /// <summary>
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
+ public int? Mac_2_Int
|
|
|
+ {
|
|
|
+ get {return _Mac_2_Int;}
|
|
|
+ set{
|
|
|
+ if(value!=(_Mac_2_Int))
|
|
|
+ {
|
|
|
+ _Mac_2_Int=value;
|
|
|
+ OnPropertyChanged(nameof( Mac_2_Int));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private int? _Mac_3_Int;
|
|
|
+ /// <summary>
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
+ public int? Mac_3_Int
|
|
|
+ {
|
|
|
+ get {return _Mac_3_Int;}
|
|
|
+ set{
|
|
|
+ if(value!=(_Mac_3_Int))
|
|
|
+ {
|
|
|
+ _Mac_3_Int=value;
|
|
|
+ OnPropertyChanged(nameof( Mac_3_Int));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private int? _Mac_4_Int;
|
|
|
+ /// <summary>
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
+ public int? Mac_4_Int
|
|
|
+ {
|
|
|
+ get {return _Mac_4_Int;}
|
|
|
+ set{
|
|
|
+ if(value!=(_Mac_4_Int))
|
|
|
+ {
|
|
|
+ _Mac_4_Int=value;
|
|
|
+ OnPropertyChanged(nameof( Mac_4_Int));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private int? _Mac_5_Int;
|
|
|
+ /// <summary>
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
+ public int? Mac_5_Int
|
|
|
+ {
|
|
|
+ get {return _Mac_5_Int;}
|
|
|
+ set{
|
|
|
+ if(value!=(_Mac_5_Int))
|
|
|
+ {
|
|
|
+ _Mac_5_Int=value;
|
|
|
+ OnPropertyChanged(nameof( Mac_5_Int));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private int? _Mac_6_Int;
|
|
|
+ /// <summary>
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
+ public int? Mac_6_Int
|
|
|
+ {
|
|
|
+ get {return _Mac_6_Int;}
|
|
|
+ set{
|
|
|
+ if(value!=(_Mac_6_Int))
|
|
|
+ {
|
|
|
+ _Mac_6_Int=value;
|
|
|
+ OnPropertyChanged(nameof( Mac_6_Int));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private int? _Mac_7_Int;
|
|
|
+ /// <summary>
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
+ public int? Mac_7_Int
|
|
|
+ {
|
|
|
+ get {return _Mac_7_Int;}
|
|
|
+ set{
|
|
|
+ if(value!=(_Mac_7_Int))
|
|
|
+ {
|
|
|
+ _Mac_7_Int=value;
|
|
|
+ OnPropertyChanged(nameof( Mac_7_Int));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private int? _Mac_8_Int;
|
|
|
+ /// <summary>
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
+ public int? Mac_8_Int
|
|
|
+ {
|
|
|
+ get {return _Mac_8_Int;}
|
|
|
+ set{
|
|
|
+ if(value!=(_Mac_8_Int))
|
|
|
+ {
|
|
|
+ _Mac_8_Int=value;
|
|
|
+ OnPropertyChanged(nameof( Mac_8_Int));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private int? _Mac_9_Int;
|
|
|
+ /// <summary>
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
+ public int? Mac_9_Int
|
|
|
+ {
|
|
|
+ get {return _Mac_9_Int;}
|
|
|
+ set{
|
|
|
+ if(value!=(_Mac_9_Int))
|
|
|
+ {
|
|
|
+ _Mac_9_Int=value;
|
|
|
+ OnPropertyChanged(nameof( Mac_9_Int));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private int? _Mac_10_Int;
|
|
|
+ /// <summary>
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
+ public int? Mac_10_Int
|
|
|
+ {
|
|
|
+ get {return _Mac_10_Int;}
|
|
|
+ set{
|
|
|
+ if(value!=(_Mac_10_Int))
|
|
|
+ {
|
|
|
+ _Mac_10_Int=value;
|
|
|
+ OnPropertyChanged(nameof( Mac_10_Int));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private DateTime? _CreateTime_Dt;
|
|
|
+ /// <summary>
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
+ public DateTime? CreateTime_Dt
|
|
|
+ {
|
|
|
+ get {return _CreateTime_Dt;}
|
|
|
+ set{
|
|
|
+ if(value!=(_CreateTime_Dt))
|
|
|
+ {
|
|
|
+ _CreateTime_Dt=value;
|
|
|
+ OnPropertyChanged(nameof( CreateTime_Dt));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private DateTime? _ModifyTime_Dt;
|
|
|
+ /// <summary>
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
+ public DateTime? ModifyTime_Dt
|
|
|
+ {
|
|
|
+ get {return _ModifyTime_Dt;}
|
|
|
+ set{
|
|
|
+ if(value!=(_ModifyTime_Dt))
|
|
|
+ {
|
|
|
+ _ModifyTime_Dt=value;
|
|
|
+ OnPropertyChanged(nameof( ModifyTime_Dt));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private string _ModifyUser_Str;
|
|
|
+ /// <summary>
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
+ public string ModifyUser_Str
|
|
|
+ {
|
|
|
+ get {return _ModifyUser_Str;}
|
|
|
+ set{
|
|
|
+ if(value!=(_ModifyUser_Str))
|
|
|
+ {
|
|
|
+ _ModifyUser_Str=value;
|
|
|
+ OnPropertyChanged(nameof( ModifyUser_Str));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private string _Remark_Str;
|
|
|
+ /// <summary>
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
+ public string Remark_Str
|
|
|
+ {
|
|
|
+ get {return _Remark_Str;}
|
|
|
+ set{
|
|
|
+ if(value!=(_Remark_Str))
|
|
|
+ {
|
|
|
+ _Remark_Str=value;
|
|
|
+ OnPropertyChanged(nameof( Remark_Str));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private string _CreateUser_Str;
|
|
|
+ /// <summary>
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
+ public string CreateUser_Str
|
|
|
+ {
|
|
|
+ get {return _CreateUser_Str;}
|
|
|
+ set{
|
|
|
+ if(value!=(_CreateUser_Str))
|
|
|
+ {
|
|
|
+ _CreateUser_Str=value;
|
|
|
+ OnPropertyChanged(nameof( CreateUser_Str));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
/// <summary>
|
|
|
///
|
|
@@ -3573,6 +3928,10 @@ public BaseTable App_Vertiv_ScheduleStop{get;private set;}
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
+public BaseTable App_Vertiv_Statistics{get;private set;}
|
|
|
+ /// <summary>
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
public BaseTable App_Vertiv_WorkTime{get;private set;}
|
|
|
/// <summary>
|
|
|
///
|
|
@@ -3602,6 +3961,7 @@ App_Vertiv_MaintenanceTable=CreateTable("ID","App_Vertiv_MaintenanceTable");
|
|
|
App_Vertiv_ProductionLog=CreateTable("ID","App_Vertiv_ProductionLog");
|
|
|
APP_Vertiv_RepairTable=CreateTable("ID","APP_Vertiv_RepairTable");
|
|
|
App_Vertiv_ScheduleStop=CreateTable("ID","App_Vertiv_ScheduleStop");
|
|
|
+App_Vertiv_Statistics=CreateTable("ID","App_Vertiv_Statistics");
|
|
|
App_Vertiv_WorkTime=CreateTable("ID","App_Vertiv_WorkTime");
|
|
|
Base_AlarmCode=CreateTable("ID","Base_AlarmCode");
|
|
|
Base_AlarmLog=CreateTable("ID","Base_AlarmLog");
|
|
@@ -3656,6 +4016,10 @@ public BaseTable App_Vertiv_ScheduleStop{get;private set;}
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
+public BaseTable App_Vertiv_Statistics{get;private set;}
|
|
|
+ /// <summary>
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
public BaseTable App_Vertiv_WorkTime{get;private set;}
|
|
|
/// <summary>
|
|
|
///
|
|
@@ -3691,6 +4055,7 @@ App_Vertiv_MaintenanceTable=innerDb.CreateTable("ID","App_Vertiv_MaintenanceTabl
|
|
|
App_Vertiv_ProductionLog=innerDb.CreateTable("ID","App_Vertiv_ProductionLog");
|
|
|
APP_Vertiv_RepairTable=innerDb.CreateTable("ID","APP_Vertiv_RepairTable");
|
|
|
App_Vertiv_ScheduleStop=innerDb.CreateTable("ID","App_Vertiv_ScheduleStop");
|
|
|
+App_Vertiv_Statistics=innerDb.CreateTable("ID","App_Vertiv_Statistics");
|
|
|
App_Vertiv_WorkTime=innerDb.CreateTable("ID","App_Vertiv_WorkTime");
|
|
|
Base_AlarmCode=innerDb.CreateTable("ID","Base_AlarmCode");
|
|
|
Base_AlarmLog=innerDb.CreateTable("ID","Base_AlarmLog");
|