This commit is contained in:
sc authored and sc committed 2022-05-27 23:56:41 +08:00
commit 9ede634f3c
115 files changed
+2666 -7523

No files matched your search

+1 -1
View File
@@ -3,5 +3,5 @@
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
</configSections>
<connectionStrings><add name="TicketEntities" connectionString="metadata=res://*/SQL_Ti.csdl|res://*/SQL_Ti.ssdl|res://*/SQL_Ti.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=SCSERVER\EXPRESS;initial catalog=Ticket;persist security info=True;user id=sa;password=SC971216@server;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" /><add name="BatchDyeingCentralEntities" connectionString="metadata=res://*/SQL_BD.csdl|res://*/SQL_BD.ssdl|res://*/SQL_BD.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=scddns.f3322.net,21344;initial catalog=BatchDyeingCentral;persist security info=True;user id=sa;password=SC971216@server;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" /></connectionStrings>
<connectionStrings><add name="BatchDyeingCentralEntities" connectionString="metadata=res://*/SQL_BD.csdl|res://*/SQL_BD.ssdl|res://*/SQL_BD.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=.\sqlexpress,1433;initial catalog=BatchDyeingCentral;persist security info=True;user id=sa;password=123;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" /><add name="TicketEntities" connectionString="metadata=res://*/SQL_Ti.csdl|res://*/SQL_Ti.ssdl|res://*/SQL_Ti.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=.\SQLEXPRESS;initial catalog=Ticket;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" /></connectionStrings>
</configuration>
-29
View File
@@ -1,29 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class AuxDslvQueue
{
public Nullable<int> TankNo { get; set; }
public string Dyelot { get; set; }
public int ReDye { get; set; }
public Nullable<int> StepNumber { get; set; }
public string Station { get; set; }
public Nullable<int> Industry { get; set; }
public Nullable<int> State { get; set; }
public string Machine { get; set; }
public string Volume { get; set; }
public Nullable<int> ShelfID { get; set; }
public Nullable<System.DateTime> Updated { get; set; }
}
}
-29
View File
@@ -1,29 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class AuxDslvQueueHistory
{
public Nullable<int> TankNo { get; set; }
public string Dyelot { get; set; }
public int ReDye { get; set; }
public Nullable<int> StepNumber { get; set; }
public string Station { get; set; }
public Nullable<int> Industry { get; set; }
public Nullable<int> State { get; set; }
public string Machine { get; set; }
public string Volume { get; set; }
public Nullable<int> ShelfID { get; set; }
public Nullable<System.DateTime> Created { get; set; }
}
}
-26
View File
@@ -1,26 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class BucketCrane
{
public string Dyelot { get; set; }
public Nullable<int> ReDye { get; set; }
public Nullable<int> StepNumber { get; set; }
public Nullable<int> DevideNo { get; set; }
public Nullable<int> BucketNo { get; set; }
public string DID { get; set; }
public Nullable<int> State { get; set; }
public Nullable<System.DateTime> Updated { get; set; }
}
}
-26
View File
@@ -1,26 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class BucketCraneHistory
{
public string Dyelot { get; set; }
public Nullable<int> ReDye { get; set; }
public Nullable<int> StepNumber { get; set; }
public Nullable<int> DevideNo { get; set; }
public Nullable<int> BucketNo { get; set; }
public string DID { get; set; }
public Nullable<int> State { get; set; }
public Nullable<System.DateTime> Created { get; set; }
}
}
-24
View File
@@ -1,24 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class BucketInfo
{
public int BucketNo { get; set; }
public string DID { get; set; }
public Nullable<System.DateTime> StartTime { get; set; }
public Nullable<System.DateTime> EndTime { get; set; }
public Nullable<int> Used { get; set; }
public string UserAccount { get; set; }
}
}
-35
View File
@@ -1,35 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class BucketShelf
{
public Nullable<int> BucketNo { get; set; }
public Nullable<int> ShelfID { get; set; }
public string Dyelot { get; set; }
public int ReDye { get; set; }
public Nullable<int> StepNumber { get; set; }
public string Station { get; set; }
public string DID { get; set; }
public Nullable<int> TotalBuckets { get; set; }
public Nullable<int> DevideNo { get; set; }
public Nullable<int> XPos { get; set; }
public Nullable<int> YPos { get; set; }
public Nullable<int> State { get; set; }
public Nullable<System.DateTime> OnShelfTime { get; set; }
public string UserAccount { get; set; }
public Nullable<int> Locked { get; set; }
public string ProductCode { get; set; }
public string OriginDyelot { get; set; }
}
}
-35
View File
@@ -1,35 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class BucketShelfHistory
{
public Nullable<int> BucketNo { get; set; }
public Nullable<int> ShelfID { get; set; }
public string Dyelot { get; set; }
public int ReDye { get; set; }
public Nullable<int> StepNumber { get; set; }
public string Station { get; set; }
public string DID { get; set; }
public Nullable<int> TotalBuckets { get; set; }
public Nullable<int> DevideNo { get; set; }
public Nullable<int> XPos { get; set; }
public Nullable<int> YPos { get; set; }
public Nullable<int> State { get; set; }
public Nullable<System.DateTime> OnShelfTime { get; set; }
public string UserAccount { get; set; }
public Nullable<int> Locked { get; set; }
public string ProductCode { get; set; }
public string OriginDyelot { get; set; }
}
}
-29
View File
@@ -1,29 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class BucketShelfQueue
{
public Nullable<int> BucketNo { get; set; }
public Nullable<int> ShelfID { get; set; }
public string Dyelot { get; set; }
public int ReDye { get; set; }
public Nullable<int> StepNumber { get; set; }
public Nullable<int> TotalBuckets { get; set; }
public Nullable<int> DevideNo { get; set; }
public Nullable<int> XPos { get; set; }
public Nullable<int> YPos { get; set; }
public Nullable<int> State { get; set; }
public Nullable<System.DateTime> Updated { get; set; }
}
}
-29
View File
@@ -1,29 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class BucketShelfQueueHistory
{
public Nullable<int> BucketNo { get; set; }
public Nullable<int> ShelfID { get; set; }
public string Dyelot { get; set; }
public int ReDye { get; set; }
public Nullable<int> StepNumber { get; set; }
public Nullable<int> TotalBuckets { get; set; }
public Nullable<int> DevideNo { get; set; }
public Nullable<int> XPos { get; set; }
public Nullable<int> YPos { get; set; }
public Nullable<int> State { get; set; }
public Nullable<System.DateTime> Created { get; set; }
}
}
-21
View File
@@ -1,21 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class CleanDevice
{
public string ID { get; set; }
public Nullable<int> State { get; set; }
public Nullable<int> Enabled { get; set; }
}
}
-40
View File
@@ -1,40 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class DBRDetail
{
public long ID { get; set; }
public string Dyelot { get; set; }
public int Redye { get; set; }
public int StepNumber { get; set; }
public string ProductCode { get; set; }
public string ProductName { get; set; }
public Nullable<double> Grams { get; set; }
public Nullable<double> DispenseGrams { get; set; }
public Nullable<int> Buckets { get; set; }
public System.DateTime DispenseStartTime { get; set; }
public Nullable<System.DateTime> DispenseEndTime { get; set; }
public Nullable<int> DispenseSeconds { get; set; }
public Nullable<System.DateTime> ProductStartTime { get; set; }
public Nullable<System.DateTime> ProductEndTime { get; set; }
public Nullable<int> ProductSeconds { get; set; }
public Nullable<double> LDXGrams { get; set; }
public Nullable<int> LDXBuckets { get; set; }
public Nullable<int> IsDeduct { get; set; }
public Nullable<int> DeductBox { get; set; }
public string BoxNo { get; set; }
public Nullable<int> DispenseResult { get; set; }
public Nullable<double> BucketWeight { get; set; }
}
}
-34
View File
@@ -1,34 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class DispenserEvent
{
public int EventID { get; set; }
public Nullable<int> EventType { get; set; }
public string Dispenser { get; set; }
public string Device { get; set; }
public string Dyelot { get; set; }
public Nullable<int> ReDye { get; set; }
public Nullable<int> StepNumber { get; set; }
public Nullable<int> Code { get; set; }
public string Description { get; set; }
public string Description_BIG { get; set; }
public string Description_GB { get; set; }
public Nullable<System.DateTime> CreateDate { get; set; }
public Nullable<System.DateTime> ConfirmDate { get; set; }
public Nullable<System.DateTime> FinishDate { get; set; }
public string Shift { get; set; }
public string UserAccount { get; set; }
}
}
-24
View File
@@ -1,24 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class DispenserLifeStatus
{
public string Dispenser { get; set; }
public string Device { get; set; }
public Nullable<int> HeartBeat { get; set; }
public Nullable<int> LifeTime { get; set; }
public Nullable<System.DateTime> UpdateDate { get; set; }
public Nullable<System.DateTime> Created { get; set; }
}
}
-27
View File
@@ -1,27 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class DispenserUtilization
{
public string Dispenser { get; set; }
public string Device { get; set; }
public string Dyelot { get; set; }
public Nullable<int> ReDye { get; set; }
public Nullable<int> StepNumber { get; set; }
public Nullable<System.DateTime> UtilStartDate { get; set; }
public Nullable<System.DateTime> UtilEndDate { get; set; }
public Nullable<int> UtilTimes { get; set; }
public string UserAccount { get; set; }
}
}
-37
View File
@@ -1,37 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class Dispensers
{
public string Name { get; set; }
public string Description { get; set; }
public string Device { get; set; }
public string Dyelot { get; set; }
public Nullable<int> ReDye { get; set; }
public Nullable<int> StepNumber { get; set; }
public string Station { get; set; }
public Nullable<int> State { get; set; }
public string Status { get; set; }
public string Action { get; set; }
public string ProductCode { get; set; }
public Nullable<int> SN { get; set; }
public Nullable<int> Automatic { get; set; }
public Nullable<int> Enabled { get; set; }
public Nullable<int> HeartBeat { get; set; }
public Nullable<int> CheckPeriod { get; set; }
public Nullable<System.DateTime> UpdateDate { get; set; }
public Nullable<System.DateTime> CreateDate { get; set; }
public string UserAccount { get; set; }
}
}
-29
View File
@@ -1,29 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class DissolveArt
{
public string Name { get; set; }
public Nullable<int> ProductClass { get; set; }
public Nullable<double> LiquidRatio { get; set; }
public Nullable<double> MinWeight { get; set; }
public Nullable<double> MaxWeight { get; set; }
public Nullable<int> DissolveTemperature { get; set; }
public Nullable<int> UseLiquidDye { get; set; }
public Nullable<int> UseChemical { get; set; }
public string Process { get; set; }
public Nullable<int> TankSize { get; set; }
public Nullable<System.DateTime> Created { get; set; }
}
}
-29
View File
@@ -1,29 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class DissolveArtHistory
{
public string Name { get; set; }
public Nullable<int> ProductClass { get; set; }
public Nullable<double> LiquidRatio { get; set; }
public Nullable<double> MinWeight { get; set; }
public Nullable<double> MaxWeight { get; set; }
public Nullable<int> DissolveTemperature { get; set; }
public Nullable<int> UseLiquidDye { get; set; }
public Nullable<int> UseChemical { get; set; }
public string Process { get; set; }
public Nullable<int> TankSize { get; set; }
public Nullable<System.DateTime> Updated { get; set; }
}
}
-24
View File
@@ -1,24 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class DyelotBucketSummary
{
public string Dyelot { get; set; }
public int ReDye { get; set; }
public Nullable<int> StepNumber { get; set; }
public Nullable<int> TotalBuckets { get; set; }
public Nullable<int> Final { get; set; }
public Nullable<System.DateTime> Created { get; set; }
}
}
-28
View File
@@ -1,28 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class DyelotBuckets
{
public string Dyelot { get; set; }
public int ReDye { get; set; }
public Nullable<int> StepNumber { get; set; }
public Nullable<int> DevideNo { get; set; }
public string ProductCode { get; set; }
public Nullable<int> BucketNo { get; set; }
public string DID { get; set; }
public Nullable<int> Final { get; set; }
public Nullable<int> Dissolved { get; set; }
public Nullable<System.DateTime> Created { get; set; }
}
}
-28
View File
@@ -1,28 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class DyelotBucketsHistory
{
public string Dyelot { get; set; }
public int ReDye { get; set; }
public Nullable<int> StepNumber { get; set; }
public Nullable<int> DevideNo { get; set; }
public string ProductCode { get; set; }
public Nullable<int> BucketNo { get; set; }
public string DID { get; set; }
public Nullable<int> Final { get; set; }
public Nullable<int> Dissolved { get; set; }
public Nullable<System.DateTime> Created { get; set; }
}
}
-40
View File
@@ -1,40 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class DyelotDetail
{
public string Dyelot { get; set; }
public int ReDye { get; set; }
public Nullable<int> StepNumber { get; set; }
public string Station { get; set; }
public string ProductCode { get; set; }
public string ProductName { get; set; }
public int ProductType { get; set; }
public Nullable<double> Grams { get; set; }
public Nullable<System.DateTime> Created { get; set; }
public Nullable<int> SN { get; set; }
public Nullable<System.DateTime> DispenseTime { get; set; }
public Nullable<double> DispenseGrams { get; set; }
public Nullable<double> CurrDispGrams { get; set; }
public Nullable<int> LADispenseResult { get; set; }
public Nullable<int> Error { get; set; }
public string UserAccount { get; set; }
public string Volume { get; set; }
public Nullable<int> CurrDispTime { get; set; }
public string CurrVolume { get; set; }
public string RemainVolume { get; set; }
public Nullable<double> FinalPickup { get; set; }
public Nullable<int> LFManual { get; set; }
}
}
-29
View File
@@ -1,29 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class DyelotDslvQueue
{
public Nullable<int> TankNo { get; set; }
public string Dyelot { get; set; }
public int ReDye { get; set; }
public Nullable<int> StepNumber { get; set; }
public Nullable<int> TotalBuckets { get; set; }
public Nullable<int> DivideNo { get; set; }
public Nullable<int> State { get; set; }
public Nullable<int> ShelfID { get; set; }
public Nullable<System.DateTime> SchDispenseTime { get; set; }
public Nullable<int> BucketNo { get; set; }
public Nullable<System.DateTime> Updated { get; set; }
}
}
-29
View File
@@ -1,29 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class DyelotDslvQueueHistory
{
public Nullable<int> TankNo { get; set; }
public string Dyelot { get; set; }
public int ReDye { get; set; }
public Nullable<int> StepNumber { get; set; }
public Nullable<int> TotalBuckets { get; set; }
public Nullable<int> DivideNo { get; set; }
public Nullable<int> State { get; set; }
public Nullable<int> ShelfID { get; set; }
public Nullable<System.DateTime> SchDispenseTime { get; set; }
public Nullable<int> BucketNo { get; set; }
public Nullable<System.DateTime> Created { get; set; }
}
}
-65
View File
@@ -1,65 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class DyelotHead
{
public string Dyelot { get; set; }
public int ReDye { get; set; }
public Nullable<System.DateTime> StartTime { get; set; }
public Nullable<System.DateTime> EndTime { get; set; }
public Nullable<System.DateTime> CreationTime { get; set; }
public string TotalVolume { get; set; }
public Nullable<int> DispenseTimes { get; set; }
public Nullable<int> CurrDispTime { get; set; }
public string CurrTotalVolume { get; set; }
public Nullable<int> State { get; set; }
public Nullable<short> Sequence { get; set; }
public Nullable<int> Color { get; set; }
public Nullable<double> PickUp { get; set; }
public Nullable<double> GramsYard { get; set; }
public Nullable<double> TotalLength { get; set; }
public Nullable<double> FabricWidth { get; set; }
public string UserAccount { get; set; }
public string RefTotalVolume { get; set; }
public string RestVolume { get; set; }
public string LFDefine { get; set; }
public string Machine { get; set; }
public Nullable<int> Blocked { get; set; }
public Nullable<int> Industry { get; set; }
public string Volume { get; set; }
public Nullable<double> StandardTime { get; set; }
public Nullable<int> LFArt { get; set; }
public string RemainVolume { get; set; }
public Nullable<double> FinalPickUp { get; set; }
public Nullable<int> LFWasher { get; set; }
public string ActualTotalVolume { get; set; }
public Nullable<double> ActualTotalLength { get; set; }
public Nullable<double> UsedPickup { get; set; }
public string RemainPadderVol { get; set; }
public Nullable<System.DateTime> ExecuteTime { get; set; }
public string RealAdd1 { get; set; }
public string RealAdd2 { get; set; }
public string RealAdd3 { get; set; }
public string RealAdd4 { get; set; }
public string RealAdd5 { get; set; }
public string PromptAdd1 { get; set; }
public string PromptAdd2 { get; set; }
public string PromptAdd3 { get; set; }
public string PromptAdd4 { get; set; }
public string PromptAdd5 { get; set; }
public Nullable<int> StartButton { get; set; }
public Nullable<int> EndButton { get; set; }
public string MergerVol { get; set; }
}
}
-39
View File
@@ -17,51 +17,12 @@ namespace Models
public int ID { get; set; }
public string Dyelot { get; set; }
public int ReDye { get; set; }
public Nullable<int> Industry { get; set; }
public string Machine { get; set; }
public string DispenseMachine { get; set; }
public Nullable<System.DateTime> StartTime { get; set; }
public Nullable<System.DateTime> EndTime { get; set; }
public Nullable<double> StandardTime { get; set; }
public Nullable<int> TotalShot { get; set; }
public Nullable<short> State { get; set; }
public Nullable<short> Blocked { get; set; }
public string Program { get; set; }
public Nullable<int> Color { get; set; }
public Nullable<System.DateTime> CreationTime { get; set; }
public string Batch { get; set; }
public string OrderNo { get; set; }
public Nullable<double> TotalWeight { get; set; }
public string LiquidRatio { get; set; }
public string TotalVolume { get; set; }
public Nullable<int> AcidQty { get; set; }
public Nullable<int> ActualAcidQty { get; set; }
public Nullable<int> Sequence { get; set; }
public Nullable<int> DispenseMode { get; set; }
public Nullable<int> DyeDissolve { get; set; }
public Nullable<int> CheDissolve { get; set; }
public Nullable<int> TotalBuckets { get; set; }
public Nullable<int> SpcTotalBuckets { get; set; }
public Nullable<int> DissolveMethod { get; set; }
public string ReferenceDyelot { get; set; }
public Nullable<int> Final { get; set; }
public Nullable<int> Shade { get; set; }
public Nullable<int> OnSchedule { get; set; }
public Nullable<int> DyeStep { get; set; }
public Nullable<short> PowderBlocked { get; set; }
public Nullable<int> PowderOnSchedule { get; set; }
public Nullable<int> PowderStep { get; set; }
public string DispensedVolume { get; set; }
public Nullable<int> Times { get; set; }
public string UserAccount { get; set; }
public string FabricName { get; set; }
public string ColorNo { get; set; }
public string ColorName { get; set; }
public string CustomerName { get; set; }
public string CUSTOMER_CODE { get; set; }
public string FABRIC_CODE { get; set; }
public Nullable<double> GRAMS_YARD { get; set; }
public Nullable<System.DateTime> ModifyDT { get; set; }
public Nullable<System.DateTime> CreateDT { get; set; }
}
}
-38
View File
@@ -1,38 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class DyelotsBatch
{
public string Dyelot { get; set; }
public int ReDye { get; set; }
public Nullable<int> StepNumber { get; set; }
public string Station { get; set; }
public Nullable<int> ShotNo { get; set; }
public string ProductCode { get; set; }
public Nullable<int> SN { get; set; }
public Nullable<double> Grams { get; set; }
public Nullable<System.DateTime> DispenseStartTime { get; set; }
public Nullable<System.DateTime> DispenseEndTime { get; set; }
public Nullable<double> DispenseGrams { get; set; }
public Nullable<int> LADispenseResult { get; set; }
public Nullable<System.DateTime> DyeWeightTime { get; set; }
public string Process { get; set; }
public string FinalProcess { get; set; }
public Nullable<int> DispenseWater { get; set; }
public Nullable<int> DrainWater { get; set; }
public Nullable<int> DissolveTemperature { get; set; }
public Nullable<System.DateTime> SchDispenseTime { get; set; }
public string UserAccount { get; set; }
}
}
-45
View File
@@ -19,14 +19,11 @@ namespace Models
public int ReDye { get; set; }
public Nullable<int> StepNumber { get; set; }
public string Station { get; set; }
public Nullable<int> DevideNo { get; set; }
public Nullable<int> ShotNo { get; set; }
public string ProductCode { get; set; }
public string ProductName { get; set; }
public Nullable<int> ProductType { get; set; }
public string ProductLot { get; set; }
public Nullable<int> ProductClass { get; set; }
public Nullable<int> SN { get; set; }
public string Amount { get; set; }
public Nullable<double> Grams { get; set; }
public Nullable<System.DateTime> Created { get; set; }
@@ -35,51 +32,9 @@ namespace Models
public Nullable<System.DateTime> DispenseTime { get; set; }
public Nullable<double> DispenseGrams { get; set; }
public Nullable<int> DispenseResult { get; set; }
public Nullable<int> LADispenseResult { get; set; }
public string Volume { get; set; }
public Nullable<int> HostRead { get; set; }
public string State { get; set; }
public Nullable<int> NeedDispense { get; set; }
public Nullable<int> MixTankNo { get; set; }
public Nullable<System.DateTime> DyeWeightTime { get; set; }
public string Process { get; set; }
public string FinalProcess { get; set; }
public string Dispenser { get; set; }
public Nullable<int> TankNo { get; set; }
public Nullable<int> Error { get; set; }
public Nullable<int> BucketNo { get; set; }
public string DID { get; set; }
public Nullable<int> StepDevideNo { get; set; }
public Nullable<int> StepTotalBuckets { get; set; }
public string ReferenceDyelot { get; set; }
public Nullable<int> DispenseWater { get; set; }
public Nullable<int> DrainWater { get; set; }
public Nullable<int> DissolveTemperature { get; set; }
public Nullable<System.DateTime> SchDispenseTime { get; set; }
public string UserAccount { get; set; }
public Nullable<double> TargetGrams { get; set; }
public Nullable<double> ActualGrams { get; set; }
public Nullable<System.DateTime> FinishTime { get; set; }
public string Tagged { get; set; }
public Nullable<int> TotalBuckets { get; set; }
public Nullable<int> Final { get; set; }
public Nullable<int> DissolveManual { get; set; }
public Nullable<double> Concentration { get; set; }
public Nullable<int> DeductTotalBuckets { get; set; }
public Nullable<int> DeductBuckets { get; set; }
public Nullable<int> Flow { get; set; }
public Nullable<System.DateTime> CallTime { get; set; }
public Nullable<double> BreakGrams { get; set; }
public Nullable<int> RecoveryAction { get; set; }
public Nullable<int> SmallDye { get; set; }
public string PrepareTank { get; set; }
public Nullable<int> DeductBox { get; set; }
public Nullable<int> Shade { get; set; }
public string stuffid { get; set; }
public string tfname { get; set; }
public string tftips { get; set; }
public string program { get; set; }
public Nullable<decimal> dosage { get; set; }
public string groupid { get; set; }
}
}
-68
View File
@@ -1,68 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class DyelotsBulkedRecipeHistory
{
public string Dyelot { get; set; }
public int ReDye { get; set; }
public Nullable<int> StepNumber { get; set; }
public string Station { get; set; }
public Nullable<int> DevideNo { get; set; }
public Nullable<int> ShotNo { get; set; }
public string ProductCode { get; set; }
public string ProductName { get; set; }
public Nullable<int> ProductType { get; set; }
public string ProductLot { get; set; }
public Nullable<int> ProductClass { get; set; }
public Nullable<int> SN { get; set; }
public string Amount { get; set; }
public Nullable<double> Grams { get; set; }
public Nullable<System.DateTime> Created { get; set; }
public Nullable<System.DateTime> DispenseStartTime { get; set; }
public Nullable<System.DateTime> DispenseEndTime { get; set; }
public Nullable<System.DateTime> DispenseTime { get; set; }
public Nullable<double> DispenseGrams { get; set; }
public Nullable<int> DispenseResult { get; set; }
public Nullable<int> LADispenseResult { get; set; }
public string Volume { get; set; }
public Nullable<int> HostRead { get; set; }
public string State { get; set; }
public Nullable<int> NeedDispense { get; set; }
public Nullable<int> MixTankNo { get; set; }
public Nullable<System.DateTime> DyeWeightTime { get; set; }
public string Process { get; set; }
public string FinalProcess { get; set; }
public string Dispenser { get; set; }
public Nullable<int> TankNo { get; set; }
public Nullable<int> Error { get; set; }
public Nullable<int> BucketNo { get; set; }
public string DID { get; set; }
public Nullable<int> StepDevideNo { get; set; }
public Nullable<int> StepTotalBuckets { get; set; }
public string ReferenceDyelot { get; set; }
public Nullable<int> DispenseWater { get; set; }
public Nullable<int> DrainWater { get; set; }
public Nullable<int> DissolveTemperature { get; set; }
public Nullable<System.DateTime> SchDispenseTime { get; set; }
public Nullable<System.DateTime> FinishTime { get; set; }
public string UserAccount { get; set; }
public Nullable<System.DateTime> Updated { get; set; }
public string Tagged { get; set; }
public Nullable<int> TotalBuckets { get; set; }
public Nullable<int> Final { get; set; }
public Nullable<int> DissolveManual { get; set; }
public Nullable<int> DeductTotalBuckets { get; set; }
public Nullable<int> DeductBuckets { get; set; }
}
}
+16 -2
View File
@@ -31,9 +31,23 @@ namespace Models
return db.DyelotsBulkedRecipe.SqlQuery(sqlselect).ToList();
}
public List<DyelotsBulkedRecipe> Select()//查询前300条
public List<DyelotsBulkedRecipe> SelectCode(DyelotsBulkedRecipe t)//以单号查询消耗
{
return db.DyelotsBulkedRecipe.SqlQuery("select TOP (300) * from DyelotsBulkedRecipe").ToList();//查询前300条
string sqlselect = "select * from DyelotsBulkedRecipe Where ProductCode = " + "'" + t.ProductCode.ToString()
+ "' and Created > '" + t.DispenseStartTime + "' and Created < '" + t.DispenseEndTime + "'";
return db.DyelotsBulkedRecipe.SqlQuery(sqlselect).ToList();
}
public List<DyelotsBulkedRecipe> SelectMachineSUM(DyelotsBulkedRecipe t)//以机台查询消耗
{
string sqlselect = "SELECT * FROM [BatchDyeingCentral].[dbo].[DyelotsBulkedRecipe] where Dyelot in (SELECT dyelot FROM [BatchDyeingCentral].[dbo].[Dyelots] where Machine = '"
+ t.Dispenser.ToString() + "') and Created > '" + t.DispenseStartTime.ToString() + "' and Created < '" + t.DispenseEndTime.ToString() +"' and ProductCode = '" + t.ProductCode.ToString() + "'";
return db.DyelotsBulkedRecipe.SqlQuery(sqlselect).ToList();
}
public List<DyelotsBulkedRecipe> Select()//查询前500条
{
return db.DyelotsBulkedRecipe.SqlQuery("select TOP (500) * from DyelotsBulkedRecipe").ToList();//查询前500条
}
public int Update(DyelotsBulkedRecipe t)
{
-52
View File
@@ -1,52 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class DyelotsHistory
{
public int ID { get; set; }
public string Dyelot { get; set; }
public int ReDye { get; set; }
public Nullable<int> Industry { get; set; }
public string Machine { get; set; }
public string DispenseMachine { get; set; }
public Nullable<System.DateTime> StartTime { get; set; }
public Nullable<System.DateTime> EndTime { get; set; }
public Nullable<double> StandardTime { get; set; }
public Nullable<int> TotalShot { get; set; }
public Nullable<int> State { get; set; }
public Nullable<int> Blocked { get; set; }
public string Program { get; set; }
public Nullable<int> Color { get; set; }
public Nullable<System.DateTime> CreationTime { get; set; }
public string Batch { get; set; }
public string OrderNo { get; set; }
public Nullable<double> TotalWeight { get; set; }
public string LiquidRatio { get; set; }
public string TotalVolume { get; set; }
public Nullable<int> AcidQty { get; set; }
public Nullable<int> ActualAcidQty { get; set; }
public Nullable<int> Sequence { get; set; }
public Nullable<int> DispenseMode { get; set; }
public Nullable<int> DyeDissolve { get; set; }
public Nullable<int> CheDissolve { get; set; }
public Nullable<int> TotalBuckets { get; set; }
public Nullable<int> SpcTotalBuckets { get; set; }
public Nullable<int> DissolveMethod { get; set; }
public string ReferenceDyelot { get; set; }
public Nullable<int> Final { get; set; }
public Nullable<int> Shade { get; set; }
public string UserAccount { get; set; }
public Nullable<System.DateTime> Updated { get; set; }
}
}
-26
View File
@@ -1,26 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class DyelotsInAuto
{
public string Machine { get; set; }
public string Dyelot { get; set; }
public Nullable<int> ReDye { get; set; }
public Nullable<int> StepNumber { get; set; }
public Nullable<int> DyeState { get; set; }
public Nullable<System.DateTime> SchDispenseTime { get; set; }
public Nullable<int> IsCheck { get; set; }
public Nullable<int> Shade { get; set; }
}
}
-26
View File
@@ -1,26 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class DyelotsInAutoHistory
{
public string Machine { get; set; }
public string Dyelot { get; set; }
public Nullable<int> ReDye { get; set; }
public Nullable<int> StepNumber { get; set; }
public Nullable<int> DyeState { get; set; }
public Nullable<System.DateTime> SchDispenseTime { get; set; }
public Nullable<int> IsCheck { get; set; }
public Nullable<int> Shade { get; set; }
}
}
+2 -1
View File
@@ -32,7 +32,7 @@ namespace Models
public List<Dyelots> Select()
{
string sqlselect= "select TOP (300) * from Dyelots Where CreationTime > '" + DateTime.Now.ToString("yyyy-MM-dd") + "'";
string sqlselect= "select * from Dyelots Where CreationTime > '" + DateTime.Now.ToString("yyyy-MM-dd") + "'";
return db.Dyelots.SqlQuery(sqlselect).ToList();
}
@@ -55,6 +55,7 @@ namespace Models
+ "' and CreationTime > '" + t.StartTime.ToString() + "' and Machine = '" + t.Machine.ToString() + "'";
return db.Dyelots.SqlQuery(sqlselect).ToList();
}
public int Update(Dyelots t)
{
throw new NotImplementedException();
-23
View File
@@ -1,23 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class EventList
{
public Nullable<int> Code { get; set; }
public string Description { get; set; }
public string Description_BIG { get; set; }
public string Description_GB { get; set; }
public Nullable<System.DateTime> CreateDate { get; set; }
}
}
-23
View File
@@ -1,23 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class LA571Tanks
{
public string Name { get; set; }
public string Station { get; set; }
public Nullable<int> Tank { get; set; }
public Nullable<double> Volume { get; set; }
public Nullable<int> State { get; set; }
}
}
-27
View File
@@ -1,27 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class LabDyeDslvQueue
{
public Nullable<int> TankNo { get; set; }
public string Dyelot { get; set; }
public int ReDye { get; set; }
public Nullable<int> StepNumber { get; set; }
public Nullable<int> State { get; set; }
public Nullable<int> ShelfID { get; set; }
public Nullable<int> DistID { get; set; }
public Nullable<System.DateTime> SchDispenseTime { get; set; }
public Nullable<System.DateTime> Updated { get; set; }
}
}
-27
View File
@@ -1,27 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class LabDyeDslvQueueHistory
{
public Nullable<int> TankNo { get; set; }
public string Dyelot { get; set; }
public int ReDye { get; set; }
public Nullable<int> StepNumber { get; set; }
public Nullable<int> State { get; set; }
public Nullable<int> ShelfID { get; set; }
public Nullable<int> DistID { get; set; }
public Nullable<System.DateTime> SchDispenseTime { get; set; }
public Nullable<System.DateTime> Created { get; set; }
}
}
-41
View File
@@ -1,41 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class MachineState
{
public string Machine { get; set; }
public string DispenseDyelot { get; set; }
public Nullable<int> DispenseReDye { get; set; }
public Nullable<int> ChemicalCallOff { get; set; }
public Nullable<int> ChemicalState { get; set; }
public Nullable<int> ChemicalTank { get; set; }
public Nullable<int> ChemicalTankSize { get; set; }
public string ChemicalDispenser { get; set; }
public Nullable<int> ChemicalError { get; set; }
public Nullable<int> ChemicalTargetSelect { get; set; }
public Nullable<int> DyeCallOff { get; set; }
public Nullable<int> DyeState { get; set; }
public Nullable<int> DyeTank { get; set; }
public Nullable<int> DyeTankSize { get; set; }
public string DyeDispenser { get; set; }
public Nullable<int> DyeError { get; set; }
public Nullable<int> PowderCallOff { get; set; }
public Nullable<int> PowderState { get; set; }
public Nullable<int> PowderTank { get; set; }
public Nullable<int> PowderTankSize { get; set; }
public string PowderDispenser { get; set; }
public Nullable<int> PowderError { get; set; }
public Nullable<int> HostRead { get; set; }
}
}
-42
View File
@@ -1,42 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class MachineStateHistory
{
public string Machine { get; set; }
public string DispenseDyelot { get; set; }
public Nullable<int> DispenseReDye { get; set; }
public Nullable<int> ChemicalCallOff { get; set; }
public Nullable<int> ChemicalState { get; set; }
public Nullable<int> ChemicalTank { get; set; }
public Nullable<int> ChemicalTankSize { get; set; }
public string ChemicalDispenser { get; set; }
public Nullable<int> ChemicalError { get; set; }
public Nullable<int> ChemicalTargetSelect { get; set; }
public Nullable<int> DyeCallOff { get; set; }
public Nullable<int> DyeState { get; set; }
public Nullable<int> DyeTank { get; set; }
public Nullable<int> DyeTankSize { get; set; }
public string DyeDispenser { get; set; }
public Nullable<int> DyeError { get; set; }
public Nullable<int> PowderCallOff { get; set; }
public Nullable<int> PowderState { get; set; }
public Nullable<int> PowderTank { get; set; }
public Nullable<int> PowderTankSize { get; set; }
public string PowderDispenser { get; set; }
public Nullable<int> PowderError { get; set; }
public Nullable<int> HostRead { get; set; }
public Nullable<System.DateTime> Updated { get; set; }
}
}
-6
View File
@@ -78,11 +78,5 @@ namespace Models
public string UserAccount { get; set; }
public Nullable<int> AutoMode { get; set; }
public Nullable<int> UseOnScheduling { get; set; }
public string CheDispenseDyelot { get; set; }
public Nullable<int> CheDispenseReDye { get; set; }
public Nullable<int> SampleDye { get; set; }
public string OnDevice { get; set; }
public string PwdDispenseDyelot { get; set; }
public Nullable<int> PwdDispenseReDye { get; set; }
}
}
-50
View File
@@ -1,50 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class MachinesHistory
{
public string Machine { get; set; }
public string DispenseDyelot { get; set; }
public Nullable<int> DispenseReDye { get; set; }
public Nullable<int> ChemicalCallOff { get; set; }
public Nullable<int> ChemicalState { get; set; }
public Nullable<int> ChemicalTank { get; set; }
public Nullable<int> ChemicalTankSize { get; set; }
public string ChemicalDispenser { get; set; }
public Nullable<int> ChemicalError { get; set; }
public Nullable<int> ChemicalCallOff2 { get; set; }
public Nullable<int> ChemicalState2 { get; set; }
public Nullable<int> ChemicalTank2 { get; set; }
public Nullable<int> DyeCallOff { get; set; }
public Nullable<int> DyeState { get; set; }
public Nullable<int> DyeTank { get; set; }
public Nullable<int> DyeTankSize { get; set; }
public string DyeDispenser { get; set; }
public Nullable<int> DyeError { get; set; }
public Nullable<int> PowderCallOff { get; set; }
public Nullable<int> PowderState { get; set; }
public Nullable<int> PowderTank { get; set; }
public Nullable<int> PowderTankSize { get; set; }
public string PowderDispenser { get; set; }
public Nullable<int> PowderError { get; set; }
public Nullable<int> HostRead { get; set; }
public string DyeDispenseDyelot { get; set; }
public Nullable<int> DyeDispenseReDye { get; set; }
public string CheDispenseDyelot { get; set; }
public Nullable<int> CheDispenseReDye { get; set; }
public string PwdDispenseDyelot { get; set; }
public Nullable<int> PwdDispenseReDye { get; set; }
public Nullable<System.DateTime> Updated { get; set; }
}
}
-46
View File
@@ -1,46 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class MachinesHistoryOld
{
public string Machine { get; set; }
public string DispenseDyelot { get; set; }
public Nullable<int> DispenseReDye { get; set; }
public Nullable<int> ChemicalCallOff { get; set; }
public Nullable<int> ChemicalState { get; set; }
public Nullable<int> ChemicalTank { get; set; }
public Nullable<int> ChemicalTankSize { get; set; }
public string ChemicalDispenser { get; set; }
public Nullable<int> ChemicalError { get; set; }
public Nullable<int> ChemicalCallOff2 { get; set; }
public Nullable<int> ChemicalState2 { get; set; }
public Nullable<int> ChemicalTank2 { get; set; }
public Nullable<int> DyeCallOff { get; set; }
public Nullable<int> DyeState { get; set; }
public Nullable<int> DyeTank { get; set; }
public Nullable<int> DyeTankSize { get; set; }
public string DyeDispenser { get; set; }
public Nullable<int> DyeError { get; set; }
public Nullable<int> PowderCallOff { get; set; }
public Nullable<int> PowderState { get; set; }
public Nullable<int> PowderTank { get; set; }
public Nullable<int> PowderTankSize { get; set; }
public string PowderDispenser { get; set; }
public Nullable<int> PowderError { get; set; }
public Nullable<int> HostRead { get; set; }
public string DyeDispenseDyelot { get; set; }
public Nullable<int> DyeDispenseReDye { get; set; }
public Nullable<System.DateTime> Updated { get; set; }
}
}
+94 -6
View File
@@ -12,26 +12,114 @@ namespace Models
public int Delete(Machines t)
{
throw new NotImplementedException();
if (t == null) return 0;
var model = db.Machines.ToList().FirstOrDefault(item => t.Name == item.Name.Trim());
if (model == null) return 0;
db.Machines.Remove(model);
int count = db.SaveChanges();
return count;
}
public int Insert(Machines t)
{
throw new NotImplementedException();
if (t == null) return 0;
if (String.IsNullOrEmpty(t.Name)) return 0;
db.Machines.Add(t);
int count = db.SaveChanges();
return count;
}
public List<Machines> Select()
{
throw new NotImplementedException();
return db.Machines.SqlQuery("select * from Machines").ToList();//查询机台
}
public List<Machines> Selectsql(Machines t)
{
throw new NotImplementedException();
string sqlselect = "select * from Machines Where Name = " + "'" + t.Name.ToString() + "'";
return db.Machines.SqlQuery(sqlselect).ToList();
}
public int Update(Machines t)
public int Update(Machines t)//更新信息
{
throw new NotImplementedException();
if (t == null) return 0;
var model = db.Machines.ToList().FirstOrDefault(item => item.Name.Trim() == t.Name);
if (model == null) return 0;
model.DispenseDyelot = t.DispenseDyelot;
model.DyeDispenseDyelot = t.DyeDispenseDyelot;
model.ChemicalStation = t.ChemicalStation;
model.DyeStation = t.DyeStation;
model.PowderStation = t.PowderStation;
model.ChemicalDispenser = t.ChemicalDispenser;
model.DyeDispenser = t.DyeDispenser;
model.PowderDispenser = t.PowderDispenser;
model.ChemicalCallOff = t.ChemicalCallOff;
model.ChemicalCallOff2 = t.ChemicalCallOff2;
model.ChemicalState = t.ChemicalState;
model.ChemicalState2 = t.ChemicalState2;
model.DyeCallOff = t.DyeCallOff;
model.DyeState = t.DyeState;
model.PowderCallOff = t.PowderCallOff;
model.PowderState = t.PowderState;
model.ChemicalEnabled = t.ChemicalEnabled;
model.DyeEnabled = t.DyeEnabled;
model.PowderEnabled = t.PowderEnabled;
int count = db.SaveChanges();
return count;
}
public int Update1(Machines t)
{
if (t == null) return 0;
var model = db.Machines.ToList().FirstOrDefault(item => item.Name.Trim() == t.Name);
if (model == null) return 0;
model.DispenseDyelot = t.DispenseDyelot;
model.DyeDispenseDyelot = t.DyeDispenseDyelot;
model.ChemicalStation = t.ChemicalStation;
model.ChemicalCallOff = t.ChemicalCallOff;
model.ChemicalCallOff2 = t.ChemicalCallOff2;
model.ChemicalState = t.ChemicalState;
model.ChemicalState2 = t.ChemicalState2;
model.DyeCallOff = t.DyeCallOff;
model.DyeState = t.DyeState;
model.PowderCallOff = t.PowderCallOff;
model.PowderState = t.PowderState;
int count = db.SaveChanges();
return count;
}
public int Update2(Machines t)
{
if (t == null) return 0;
var model = db.Machines.ToList().FirstOrDefault(item => item.Name.Trim() == t.Name);
if (model == null) return 0;
model.ChemicalCallOff = t.ChemicalCallOff;
model.ChemicalCallOff2 = t.ChemicalCallOff2;
model.ChemicalState = t.ChemicalState;
model.ChemicalState2 = t.ChemicalState2;
int count = db.SaveChanges();
return count;
}
public int Update3(Machines t)
{
if (t == null) return 0;
var model = db.Machines.ToList().FirstOrDefault(item => item.Name.Trim() == t.Name);
if (model == null) return 0;
model.DyeCallOff = t.DyeCallOff;
model.DyeState = t.DyeState;
int count = db.SaveChanges();
return count;
}
public int Update4(Machines t)
{
if (t == null) return 0;
var model = db.Machines.ToList().FirstOrDefault(item => item.Name.Trim() == t.Name);
if (model == null) return 0;
model.PowderCallOff = t.PowderCallOff;
model.PowderState = t.PowderState;
int count = db.SaveChanges();
return count;
}
}
}
-28
View File
@@ -1,28 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class ManualWeightQueue
{
public string Dyelot { get; set; }
public int ReDye { get; set; }
public Nullable<int> StepNumber { get; set; }
public Nullable<int> State { get; set; }
public Nullable<System.DateTime> CallTime { get; set; }
public Nullable<int> Module { get; set; }
public string ModuleName { get; set; }
public string Area { get; set; }
public Nullable<System.DateTime> EndTime { get; set; }
public Nullable<System.DateTime> Updated { get; set; }
}
}
-28
View File
@@ -1,28 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class ManualWeightQueueHistory
{
public string Dyelot { get; set; }
public int ReDye { get; set; }
public Nullable<int> StepNumber { get; set; }
public Nullable<int> State { get; set; }
public Nullable<System.DateTime> CallTime { get; set; }
public Nullable<int> Module { get; set; }
public string ModuleName { get; set; }
public string Area { get; set; }
public Nullable<System.DateTime> EndTime { get; set; }
public Nullable<System.DateTime> Created { get; set; }
}
}
+5 -178
View File
@@ -86,198 +86,28 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="AuxDslvQueue.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="AuxDslvQueueHistory.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="BucketCrane.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="BucketCraneHistory.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="BucketInfo.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="BucketShelf.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="BucketShelfHistory.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="BucketShelfQueue.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="BucketShelfQueueHistory.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="CleanDevice.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="DBRDetail.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="DispenserEvent.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="DispenserLifeStatus.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="Dispensers.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="DispenserUtilization.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="DissolveArt.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="DissolveArtHistory.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="DyelotBuckets.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="DyelotBucketsHistory.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="DyelotBucketSummary.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="DyelotDetail.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="DyelotDslvQueue.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="DyelotDslvQueueHistory.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="DyelotHead.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="Dyelots.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="DyelotsBatch.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="DyelotsBulkedRecipe.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="DyelotsBulkedRecipeHistory.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="DyelotsBulkedRecipeProvider.cs" />
<Compile Include="DyelotsHistory.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="DyelotsInAuto.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="DyelotsInAutoHistory.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="DyelotsProvider.cs" />
<Compile Include="EventList.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="IProvider.cs" />
<Compile Include="LA571Tanks.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="LabDyeDslvQueue.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="LabDyeDslvQueueHistory.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="Machines.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="MachinesHistory.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="MachinesHistoryOld.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="MachinesProvider.cs" />
<Compile Include="MachineState.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="MachineStateHistory.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="ManualWeightQueue.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="ManualWeightQueueHistory.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="PartsStatus.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="PartsStatusHistory.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="PipeRefill.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="PipeRefillHistory.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="Pipes.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="PipesProvider.cs" />
<Compile Include="Product.cs">
<DependentUpon>SQL_Ti.tt</DependentUpon>
</Compile>
<Compile Include="ProductLocation.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="ProductLocationHistory.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="ProductProvider.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="RecipeDeduct.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="RecipeDeductHistory.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="RecipeDetail.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="Recipes.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="RFIDRecordQueue.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="RFIDRecordQueueHistory.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="SampleDyeDslvQueue.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="SampleDyeDslvQueueHistory.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="ScheduledDyelot.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="ScheduledDyelotHistory.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="SchedulingLog.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="Shelf.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="SQL_BD.Context.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
@@ -308,9 +138,6 @@
<DesignTime>True</DesignTime>
<DependentUpon>SQL_Ti.edmx</DependentUpon>
</Compile>
<Compile Include="TagShelf.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="UserAccount.cs">
<DependentUpon>SQL_Ti.tt</DependentUpon>
</Compile>
@@ -322,10 +149,6 @@
</None>
<None Include="App.Config" />
<None Include="packages.config" />
<EntityDeploy Include="SQL_Ti.edmx">
<Generator>EntityModelCodeGenerator</Generator>
<LastGenOutput>SQL_Ti.Designer.cs</LastGenOutput>
</EntityDeploy>
<EntityDeploy Include="SQL_BD.edmx">
<Generator>EntityModelCodeGenerator</Generator>
<LastGenOutput>SQL_BD.Designer.cs</LastGenOutput>
@@ -333,6 +156,10 @@
<None Include="SQL_BD.edmx.diagram">
<DependentUpon>SQL_BD.edmx</DependentUpon>
</None>
<EntityDeploy Include="SQL_Ti.edmx">
<Generator>EntityModelCodeGenerator</Generator>
<LastGenOutput>SQL_Ti.Designer.cs</LastGenOutput>
</EntityDeploy>
<None Include="SQL_Ti.edmx.diagram">
<DependentUpon>SQL_Ti.edmx</DependentUpon>
</None>
-33
View File
@@ -1,33 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class PartsStatus
{
public string CUST_CODE { get; set; }
public string Dispenser { get; set; }
public string Device { get; set; }
public string PartsCode { get; set; }
public string PartsName { get; set; }
public Nullable<int> PartsType { get; set; }
public string Description { get; set; }
public Nullable<int> FactoryValue { get; set; }
public Nullable<int> UsedCount { get; set; }
public Nullable<int> RunningTime { get; set; }
public Nullable<System.DateTime> ResetDate { get; set; }
public Nullable<System.DateTime> WarnDate { get; set; }
public Nullable<System.DateTime> UpdateDate { get; set; }
public Nullable<System.DateTime> CreateDate { get; set; }
public string UserAccount { get; set; }
}
}
-33
View File
@@ -1,33 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class PartsStatusHistory
{
public string CUST_CODE { get; set; }
public string Dispenser { get; set; }
public string Device { get; set; }
public string PartsCode { get; set; }
public string PartsName { get; set; }
public Nullable<int> PartsType { get; set; }
public string Description { get; set; }
public Nullable<int> FactoryValue { get; set; }
public Nullable<int> UsedCount { get; set; }
public Nullable<int> RunningTime { get; set; }
public Nullable<System.DateTime> ResetDate { get; set; }
public Nullable<System.DateTime> WarnDate { get; set; }
public Nullable<System.DateTime> UpdateDate { get; set; }
public Nullable<System.DateTime> CreateDate { get; set; }
public string UserAccount { get; set; }
}
}
-29
View File
@@ -1,29 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class PipeRefill
{
public string ProductCode { get; set; }
public string ProductName { get; set; }
public Nullable<int> ProductType { get; set; }
public string ProductLot { get; set; }
public string Dispenser { get; set; }
public Nullable<int> No { get; set; }
public Nullable<double> Qty { get; set; }
public Nullable<double> Percentage { get; set; }
public Nullable<System.DateTime> RefillTime { get; set; }
public Nullable<System.DateTime> AlarmTime { get; set; }
public Nullable<System.DateTime> Updated { get; set; }
}
}
-29
View File
@@ -1,29 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class PipeRefillHistory
{
public string ProductCode { get; set; }
public string ProductName { get; set; }
public Nullable<int> ProductType { get; set; }
public string ProductLot { get; set; }
public string Dispenser { get; set; }
public Nullable<int> No { get; set; }
public Nullable<double> Qty { get; set; }
public Nullable<double> Percentage { get; set; }
public Nullable<System.DateTime> RefillTime { get; set; }
public Nullable<System.DateTime> AlarmTime { get; set; }
public Nullable<System.DateTime> Created { get; set; }
}
}
-2
View File
@@ -16,8 +16,6 @@ namespace Models
{
public string ProductCode { get; set; }
public string ProductName { get; set; }
public Nullable<int> ProductType { get; set; }
public string ProductLot { get; set; }
public string Dispenser { get; set; }
public Nullable<int> Enabled { get; set; }
public Nullable<int> No { get; set; }
+49
View File
@@ -0,0 +1,49 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Models
{
public class PipesProvider : IProvider<Pipes>
{
private readonly BatchDyeingCentralEntities db = new BatchDyeingCentralEntities();
public int Delete(Pipes t)
{
if (t == null) return 0;
var model = db.Pipes.ToList().FirstOrDefault(item => t.ProductCode == item.ProductCode);
if (model == null) return 0;
db.Pipes.Remove(model);
int count = db.SaveChanges();
return count;
}
public int Insert(Pipes t)
{
if (t == null) return 0;
if (String.IsNullOrEmpty(t.ProductCode)) return 0;
db.Pipes.Add(t);
int count = db.SaveChanges();
return count;
}
public List<Pipes> Select()
{
string sqlselect = "select * from Pipes ";
return db.Pipes.SqlQuery(sqlselect).ToList();
}
public List<Pipes> Selectsql(Pipes t)
{
throw new NotImplementedException();
}
public int Update(Pipes t)
{
throw new NotImplementedException();
}
}
}
+11 -45
View File
@@ -16,63 +16,29 @@ namespace Models
{
public string ProductCode { get; set; }
public string ProductName { get; set; }
public Nullable<double> Price { get; set; }
public Nullable<double> Deduct { get; set; }
public Nullable<double> FullWeight { get; set; }
public Nullable<int> LampPosition { get; set; }
public string TablePosition { get; set; }
public string AREA { get; set; }
public Nullable<double> SafetyStock { get; set; }
public Nullable<int> ProductUnit { get; set; }
public Nullable<int> ProductType { get; set; }
public Nullable<int> ProductClass { get; set; }
public Nullable<double> CurrentStock { get; set; }
public Nullable<int> Color { get; set; }
public string ProductLot { get; set; }
public Nullable<double> FullWeight { get; set; }
public Nullable<int> ProductUnit { get; set; }
public Nullable<double> SafetyStock { get; set; }
public Nullable<double> Price { get; set; }
public Nullable<double> CurrentStock { get; set; }
public Nullable<double> Deduct { get; set; }
public Nullable<System.DateTime> RplDate { get; set; }
public Nullable<System.DateTime> UsedDate { get; set; }
public string CuMonth { get; set; }
public Nullable<double> LaStock { get; set; }
public Nullable<double> ThStock { get; set; }
public Nullable<double> ThUsed { get; set; }
public Nullable<int> Color { get; set; }
public Nullable<double> LastTime { get; set; }
public Nullable<double> CalTime { get; set; }
public Nullable<int> BackflowTime { get; set; }
public Nullable<int> Tol_G { get; set; }
public Nullable<int> Tol_P { get; set; }
public Nullable<int> Alarm { get; set; }
public Nullable<int> Change_Bucket { get; set; }
public Nullable<int> Small_Volume_by_manual { get; set; }
public Nullable<int> Target_Weight { get; set; }
public Nullable<int> Pre_Weight { get; set; }
public Nullable<int> One_Sec { get; set; }
public Nullable<int> GetscalTime { get; set; }
public Nullable<int> DelayOpenValve { get; set; }
public string ValveMap { get; set; }
public string PumpMap { get; set; }
public Nullable<int> Includepump { get; set; }
public Nullable<int> Once_minimum_weight { get; set; }
public Nullable<int> Once_minimum_max_weight { get; set; }
public Nullable<int> Once_minimum_time { get; set; }
public string Res_S1 { get; set; }
public string Res_S2 { get; set; }
public string Res_S3 { get; set; }
public string Res_S4 { get; set; }
public Nullable<int> Res_I1 { get; set; }
public Nullable<int> Res_I2 { get; set; }
public Nullable<int> Res_I3 { get; set; }
public Nullable<int> Res_I4 { get; set; }
public Nullable<double> Res_F1 { get; set; }
public Nullable<double> Res_F2 { get; set; }
public Nullable<double> Res_F3 { get; set; }
public Nullable<double> Res_F4 { get; set; }
public string Batch_NO { get; set; }
public Nullable<int> LampPosition { get; set; }
public string TablePosition { get; set; }
public string Area { get; set; }
public Nullable<double> Concentration { get; set; }
public string Batch_NO { get; set; }
public Nullable<int> Pump { get; set; }
public Nullable<int> PRODUCT_KIND { get; set; }
public string SUPPLIER { get; set; }
public Nullable<System.DateTime> PRODUCT_MODIFY_DATE { get; set; }
public double GRAVITY { get; set; }
public string UserAccount { get; set; }
}
}
-30
View File
@@ -1,30 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class ProductLocation
{
public string ProductCode { get; set; }
public string ProductName { get; set; }
public string Type { get; set; }
public string Dispenser { get; set; }
public Nullable<int> Position { get; set; }
public string TablePosition { get; set; }
public Nullable<System.DateTime> StockDate { get; set; }
public Nullable<double> StockUsage { get; set; }
public Nullable<double> StockOnHand { get; set; }
public string Alarm { get; set; }
public Nullable<System.DateTime> AlarmTime { get; set; }
public Nullable<int> Enabled { get; set; }
}
}
-31
View File
@@ -1,31 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class ProductLocationHistory
{
public string ProductCode { get; set; }
public string ProductName { get; set; }
public string Type { get; set; }
public string Dispenser { get; set; }
public Nullable<int> Position { get; set; }
public string TablePosition { get; set; }
public Nullable<System.DateTime> StockDate { get; set; }
public Nullable<double> StockUsage { get; set; }
public Nullable<double> StockOnHand { get; set; }
public string Alarm { get; set; }
public Nullable<System.DateTime> AlarmTime { get; set; }
public Nullable<int> Enabled { get; set; }
public Nullable<System.DateTime> Updated { get; set; }
}
}
+23 -5
View File
@@ -12,7 +12,7 @@ namespace Models
public int Delete(Product t)//删除
{
if (t == null) return 0;
var model = db.Product.ToList().FirstOrDefault(item => t.ProductCode == item.ProductCode);
var model = db.Product.ToList().FirstOrDefault(item => t.ProductCode == item.ProductCode.Trim());
if (model == null) return 0;
db.Product.Remove(model);
int count = db.SaveChanges();
@@ -24,12 +24,13 @@ namespace Models
if (t == null) return 0;
if (String.IsNullOrEmpty(t.ProductCode)) return 0;
db.Product.Add(t);
int counti = db.SaveChanges();
return counti;
int count = db.SaveChanges();
return count;
}
public List<Product> Select()
{
//var c = db.Product.SqlQuery("select * from Product").ToList();
return db.Product.SqlQuery("select * from Product").ToList();//查询
}
@@ -47,13 +48,30 @@ namespace Models
return db.Product.SqlQuery("select * from Product where ProductType = 2").ToList();//类型2查询
}
public List<Product> Selects3()
{
return db.Product.SqlQuery("select * from Product where ProductType = 3").ToList();//类型2查询
}
public List<Product> Selectsql(Product t)
{
throw new NotImplementedException();
string sqlselect = "select * from Product Where ProductCode = " + "'" + t.ProductCode.ToString() + "'";
return db.Product.SqlQuery(sqlselect).ToList();
}
public int Update(Product t)
{
throw new NotImplementedException();
if (t == null) return 0;
var model = db.Product.ToList().FirstOrDefault(item => item.ProductCode.Trim() == t.ProductCode);
if (model == null) return 0;
model.Color = t.Color;
model.Price = t.Price;
model.SUPPLIER = t.SUPPLIER;
model.ProductName = t.ProductName;
model.GRAVITY = t.GRAVITY;
model.Concentration = t.Concentration;
model.ProductType = t.ProductType;
int count = db.SaveChanges();
return count;
}
}
}
-32
View File
@@ -1,32 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class RFIDRecordQueue
{
public Nullable<int> Station { get; set; }
public string Dyelot { get; set; }
public int ReDye { get; set; }
public Nullable<int> StepNumber { get; set; }
public string Machine { get; set; }
public Nullable<int> DevideNo { get; set; }
public Nullable<int> TotalBuckets { get; set; }
public Nullable<int> State { get; set; }
public Nullable<int> BucketNo { get; set; }
public string DID { get; set; }
public string Source { get; set; }
public string Dest { get; set; }
public string ProductCode { get; set; }
public Nullable<System.DateTime> Updated { get; set; }
}
}
-30
View File
@@ -1,30 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class RFIDRecordQueueHistory
{
public Nullable<int> Station { get; set; }
public string Dyelot { get; set; }
public int ReDye { get; set; }
public Nullable<int> StepNumber { get; set; }
public string Machine { get; set; }
public Nullable<int> DevideNo { get; set; }
public Nullable<int> TotalBuckets { get; set; }
public Nullable<int> State { get; set; }
public Nullable<int> BucketNo { get; set; }
public string DID { get; set; }
public string ProductCode { get; set; }
public Nullable<System.DateTime> Created { get; set; }
}
}
-29
View File
@@ -1,29 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class RecipeDeduct
{
public string Dyelot { get; set; }
public int ReDye { get; set; }
public Nullable<int> StepNumber { get; set; }
public string Station { get; set; }
public Nullable<int> ShotNo { get; set; }
public string ProductCode { get; set; }
public Nullable<System.DateTime> DeductTime { get; set; }
public Nullable<double> DeductGrams { get; set; }
public Nullable<int> BucketNo { get; set; }
public string DID { get; set; }
public string UserAccount { get; set; }
}
}
-30
View File
@@ -1,30 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class RecipeDeductHistory
{
public string Dyelot { get; set; }
public int ReDye { get; set; }
public Nullable<int> StepNumber { get; set; }
public string Station { get; set; }
public Nullable<int> ShotNo { get; set; }
public string ProductCode { get; set; }
public Nullable<System.DateTime> DeductTime { get; set; }
public Nullable<double> DeductGrams { get; set; }
public Nullable<int> BucketNo { get; set; }
public string DID { get; set; }
public string UserAccount { get; set; }
public Nullable<System.DateTime> Updated { get; set; }
}
}
-24
View File
@@ -1,24 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class RecipeDetail
{
public string RcpCode { get; set; }
public string ProductCode { get; set; }
public string ProductName { get; set; }
public Nullable<double> Conc { get; set; }
public Nullable<int> HostRead { get; set; }
public Nullable<System.DateTime> Created { get; set; }
}
}
-22
View File
@@ -1,22 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class Recipes
{
public string RcpCode { get; set; }
public string RcpName { get; set; }
public string Unit { get; set; }
public Nullable<System.DateTime> Created { get; set; }
}
}
-58
View File
@@ -25,67 +25,9 @@ namespace Models
throw new UnintentionalCodeFirstException();
}
public virtual DbSet<DBRDetail> DBRDetail { get; set; }
public virtual DbSet<DyelotHead> DyelotHead { get; set; }
public virtual DbSet<Dyelots> Dyelots { get; set; }
public virtual DbSet<DyelotsBulkedRecipe> DyelotsBulkedRecipe { get; set; }
public virtual DbSet<Machines> Machines { get; set; }
public virtual DbSet<MachineState> MachineState { get; set; }
public virtual DbSet<SchedulingLog> SchedulingLog { get; set; }
public virtual DbSet<AuxDslvQueue> AuxDslvQueue { get; set; }
public virtual DbSet<AuxDslvQueueHistory> AuxDslvQueueHistory { get; set; }
public virtual DbSet<BucketCrane> BucketCrane { get; set; }
public virtual DbSet<BucketCraneHistory> BucketCraneHistory { get; set; }
public virtual DbSet<BucketInfo> BucketInfo { get; set; }
public virtual DbSet<BucketShelf> BucketShelf { get; set; }
public virtual DbSet<BucketShelfHistory> BucketShelfHistory { get; set; }
public virtual DbSet<BucketShelfQueue> BucketShelfQueue { get; set; }
public virtual DbSet<BucketShelfQueueHistory> BucketShelfQueueHistory { get; set; }
public virtual DbSet<CleanDevice> CleanDevice { get; set; }
public virtual DbSet<DispenserEvent> DispenserEvent { get; set; }
public virtual DbSet<DispenserLifeStatus> DispenserLifeStatus { get; set; }
public virtual DbSet<Dispensers> Dispensers { get; set; }
public virtual DbSet<DispenserUtilization> DispenserUtilization { get; set; }
public virtual DbSet<DissolveArt> DissolveArt { get; set; }
public virtual DbSet<DissolveArtHistory> DissolveArtHistory { get; set; }
public virtual DbSet<DyelotBuckets> DyelotBuckets { get; set; }
public virtual DbSet<DyelotBucketsHistory> DyelotBucketsHistory { get; set; }
public virtual DbSet<DyelotBucketSummary> DyelotBucketSummary { get; set; }
public virtual DbSet<DyelotDetail> DyelotDetail { get; set; }
public virtual DbSet<DyelotDslvQueue> DyelotDslvQueue { get; set; }
public virtual DbSet<DyelotDslvQueueHistory> DyelotDslvQueueHistory { get; set; }
public virtual DbSet<DyelotsBatch> DyelotsBatch { get; set; }
public virtual DbSet<DyelotsBulkedRecipeHistory> DyelotsBulkedRecipeHistory { get; set; }
public virtual DbSet<DyelotsHistory> DyelotsHistory { get; set; }
public virtual DbSet<DyelotsInAuto> DyelotsInAuto { get; set; }
public virtual DbSet<DyelotsInAutoHistory> DyelotsInAutoHistory { get; set; }
public virtual DbSet<EventList> EventList { get; set; }
public virtual DbSet<LA571Tanks> LA571Tanks { get; set; }
public virtual DbSet<LabDyeDslvQueue> LabDyeDslvQueue { get; set; }
public virtual DbSet<LabDyeDslvQueueHistory> LabDyeDslvQueueHistory { get; set; }
public virtual DbSet<MachinesHistory> MachinesHistory { get; set; }
public virtual DbSet<MachinesHistoryOld> MachinesHistoryOld { get; set; }
public virtual DbSet<MachineStateHistory> MachineStateHistory { get; set; }
public virtual DbSet<ManualWeightQueue> ManualWeightQueue { get; set; }
public virtual DbSet<ManualWeightQueueHistory> ManualWeightQueueHistory { get; set; }
public virtual DbSet<PartsStatus> PartsStatus { get; set; }
public virtual DbSet<PartsStatusHistory> PartsStatusHistory { get; set; }
public virtual DbSet<PipeRefill> PipeRefill { get; set; }
public virtual DbSet<PipeRefillHistory> PipeRefillHistory { get; set; }
public virtual DbSet<Pipes> Pipes { get; set; }
public virtual DbSet<ProductLocation> ProductLocation { get; set; }
public virtual DbSet<ProductLocationHistory> ProductLocationHistory { get; set; }
public virtual DbSet<RecipeDeduct> RecipeDeduct { get; set; }
public virtual DbSet<RecipeDeductHistory> RecipeDeductHistory { get; set; }
public virtual DbSet<RecipeDetail> RecipeDetail { get; set; }
public virtual DbSet<Recipes> Recipes { get; set; }
public virtual DbSet<RFIDRecordQueue> RFIDRecordQueue { get; set; }
public virtual DbSet<RFIDRecordQueueHistory> RFIDRecordQueueHistory { get; set; }
public virtual DbSet<SampleDyeDslvQueue> SampleDyeDslvQueue { get; set; }
public virtual DbSet<SampleDyeDslvQueueHistory> SampleDyeDslvQueueHistory { get; set; }
public virtual DbSet<ScheduledDyelot> ScheduledDyelot { get; set; }
public virtual DbSet<ScheduledDyelotHistory> ScheduledDyelotHistory { get; set; }
public virtual DbSet<Shelf> Shelf { get; set; }
public virtual DbSet<TagShelf> TagShelf { get; set; }
}
}
+80 -4790
View File
File diff suppressed because it is too large. Load diff
+3 -61
View File
@@ -4,69 +4,11 @@
<edmx:Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
<!-- Diagram content (shape and connector positions) -->
<edmx:Diagrams>
<Diagram DiagramId="b36b8a03bd1f4d3fa1db2360f80bde25" Name="Diagram1" ZoomLevel="75">
<EntityTypeShape EntityType="BatchDyeingCentralModel.DBRDetail" Width="1.5" PointX="0.75" PointY="0.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.DyelotHead" Width="1.5" PointX="2.75" PointY="0.75" IsExpanded="true" />
<Diagram DiagramId="b36b8a03bd1f4d3fa1db2360f80bde25" Name="Diagram1" ZoomLevel="81">
<EntityTypeShape EntityType="BatchDyeingCentralModel.Dyelots" Width="1.5" PointX="4.75" PointY="0.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.DyelotsBulkedRecipe" Width="1.5" PointX="6.75" PointY="0.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.Machines" Width="1.5" PointX="8.75" PointY="0.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.MachineState" Width="1.5" PointX="10.75" PointY="0.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.SchedulingLog" Width="1.5" PointX="10.75" PointY="6.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.AuxDslvQueue" Width="1.5" PointX="10.75" PointY="10.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.AuxDslvQueueHistory" Width="1.5" PointX="0.75" PointY="11.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.BucketCrane" Width="1.5" PointX="2.75" PointY="11.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.BucketCraneHistory" Width="1.5" PointX="12.75" PointY="0.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.BucketInfo" Width="1.5" PointX="12.75" PointY="4.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.BucketShelf" Width="1.5" PointX="12.75" PointY="7.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.BucketShelfHistory" Width="1.5" PointX="12.75" PointY="12.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.BucketShelfQueue" Width="1.5" PointX="14.75" PointY="0.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.BucketShelfQueueHistory" Width="1.5" PointX="14.75" PointY="4.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.CleanDevice" Width="1.5" PointX="14.75" PointY="8.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.DispenserEvent" Width="1.5" PointX="14.75" PointY="11.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.DispenserLifeStatus" Width="1.5" PointX="0.75" PointY="15.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.Dispensers" Width="1.5" PointX="2.75" PointY="15.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.DispenserUtilization" Width="1.5" PointX="4.75" PointY="15.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.DissolveArt" Width="1.5" PointX="6.75" PointY="15.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.DissolveArtHistory" Width="1.5" PointX="8.75" PointY="15.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.DyelotBuckets" Width="1.5" PointX="16.75" PointY="0.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.DyelotBucketsHistory" Width="1.5" PointX="16.75" PointY="4.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.DyelotBucketSummary" Width="1.5" PointX="16.75" PointY="8.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.DyelotDetail" Width="1.5" PointX="16.75" PointY="11.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.DyelotDslvQueue" Width="1.5" PointX="10.75" PointY="17.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.DyelotDslvQueueHistory" Width="1.5" PointX="12.75" PointY="17.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.DyelotsBatch" Width="1.5" PointX="14.75" PointY="17.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.DyelotsBulkedRecipeHistory" Width="1.5" PointX="16.75" PointY="17.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.DyelotsHistory" Width="1.5" PointX="18.75" PointY="0.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.DyelotsInAuto" Width="1.5" PointX="18.75" PointY="9.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.DyelotsInAutoHistory" Width="1.5" PointX="18.75" PointY="13.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.EventList" Width="1.5" PointX="18.75" PointY="17.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.LA571Tanks" Width="1.5" PointX="4.75" PointY="19.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.LabDyeDslvQueue" Width="1.5" PointX="6.75" PointY="19.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.LabDyeDslvQueueHistory" Width="1.5" PointX="20.75" PointY="0.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.MachinesHistory" Width="1.5" PointX="20.75" PointY="4.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.MachinesHistoryOld" Width="1.5" PointX="20.75" PointY="12.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.MachineStateHistory" Width="1.5" PointX="18.75" PointY="20.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.ManualWeightQueue" Width="1.5" PointX="20.75" PointY="19.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.ManualWeightQueueHistory" Width="1.5" PointX="0.75" PointY="21.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.PartsStatus" Width="1.5" PointX="8.75" PointY="21.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.PartsStatusHistory" Width="1.5" PointX="10.75" PointY="21.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.PipeRefill" Width="1.5" PointX="22.75" PointY="0.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.PipeRefillHistory" Width="1.5" PointX="2.75" PointY="22.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.Pipes" Width="1.5" PointX="22.75" PointY="4.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.ProductLocation" Width="1.5" PointX="22.75" PointY="9.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.ProductLocationHistory" Width="1.5" PointX="22.75" PointY="13.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.RecipeDeduct" Width="1.5" PointX="22.75" PointY="18.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.RecipeDeductHistory" Width="1.5" PointX="22.75" PointY="22.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.RecipeDetail" Width="1.5" PointX="4.75" PointY="23.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.Recipes" Width="1.5" PointX="12.75" PointY="23.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.RFIDRecordQueue" Width="1.5" PointX="24.75" PointY="0.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.RFIDRecordQueueHistory" Width="1.5" PointX="24.75" PointY="5.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.SampleDyeDslvQueue" Width="1.5" PointX="24.75" PointY="9.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.SampleDyeDslvQueueHistory" Width="1.5" PointX="24.75" PointY="13.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.ScheduledDyelot" Width="1.5" PointX="24.75" PointY="17.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.ScheduledDyelotHistory" Width="1.5" PointX="24.75" PointY="21.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.Shelf" Width="1.5" PointX="24.75" PointY="25.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.TagShelf" Width="1.5" PointX="26.75" PointY="0.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.Machines" Width="1.5" PointX="0.75" PointY="0.75" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.Pipes" Width="1.5" PointX="3.375" PointY="4.75" />
</Diagram>
</edmx:Diagrams>
</edmx:Designer>
+1 -1
View File
@@ -25,7 +25,7 @@ namespace Models
throw new UnintentionalCodeFirstException();
}
public virtual DbSet<Product> Product { get; set; }
public virtual DbSet<UserAccount> UserAccount { get; set; }
public virtual DbSet<Product> Product { get; set; }
}
}
+1 -1
View File
@@ -1,4 +1,4 @@
// 为模型“C:\Users\24018\source\repos\Audit_APP\Models\SQL_Ti.edmx”启用了 T4 代码生成。
// 为模型“C:\Users\尚彩-沈忱\source\repos\Audit_APP\Models\SQL_Ti.edmx”启用了 T4 代码生成。
// 要启用旧代码生成功能,请将“代码生成策略”设计器属性的值
// 更改为“旧的 ObjectContext”。当在设计器中打开该模型时,此属性会出现在
// “属性”窗口中。
+80 -297
View File
@@ -4,175 +4,38 @@
<edmx:Runtime>
<!-- SSDL content -->
<edmx:StorageModels>
<Schema Namespace="TicketModel.Store" Provider="System.Data.SqlClient" ProviderManifestToken="2012" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
<!--生成过程中发现错误:
警告 6013: 表/视图“Ticket.dbo.Authority”未定义主键,并且无法推断有效的主键。已排除了此表/视图。若要使用实体,将需要检查您的架构、添加正确的键并取消对实体的注释。
<EntityType Name="Authority">
<Property Name="tmp_field" Type="varchar" MaxLength="1" />
<Property Name="GROUP_CODE" Type="varchar" MaxLength="50" />
<Property Name="FM_30" Type="varchar" MaxLength="50" />
<Property Name="FM_31" Type="varchar" MaxLength="50" />
<Property Name="FM_32" Type="varchar" MaxLength="50" />
</EntityType>-->
<!--生成过程中发现错误:
警告 6002: 表/视图“Ticket.dbo.CHEMICAL_QUEUE”未定义主键。已推断出该键,并将定义创建为只读的表/视图。-->
<!--生成过程中发现错误:
警告 6002: 表/视图“Ticket.dbo.DYESTUFF_QUEUE”未定义主键。已推断出该键,并将定义创建为只读的表/视图。-->
<!--生成过程中发现错误:
警告 6013: 表/视图“Ticket.dbo.GroupAccount”未定义主键,并且无法推断有效的主键。已排除了此表/视图。若要使用实体,将需要检查您的架构、添加正确的键并取消对实体的注释。
<EntityType Name="GroupAccount">
<Property Name="tmp_field" Type="varchar" MaxLength="1" />
<Property Name="GROUP_CODE" Type="varchar" MaxLength="50" />
<Property Name="GROUP_LEVEL" Type="int" />
</EntityType>-->
<!--生成过程中发现错误:
警告 6002: 表/视图“Ticket.dbo.JOBTKT”未定义主键。已推断出该键,并将定义创建为只读的表/视图。-->
<!--生成过程中发现错误:
警告 6002: 表/视图“Ticket.dbo.POWDER_QUEUE”未定义主键。已推断出该键,并将定义创建为只读的表/视图。-->
<Schema Namespace="TicketModel.Store" Provider="System.Data.SqlClient" ProviderManifestToken="2012" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
<EntityType Name="Product">
<Key>
<PropertyRef Name="ProductCode" />
</Key>
<Property Name="ProductCode" Type="nchar" MaxLength="20" Nullable="false" />
<Property Name="ProductCode" Type="nchar" MaxLength="30" Nullable="false" />
<Property Name="ProductName" Type="nchar" MaxLength="50" />
<Property Name="Price" Type="float" />
<Property Name="Deduct" Type="float" />
<Property Name="FullWeight" Type="float" />
<Property Name="LampPosition" Type="int" />
<Property Name="TablePosition" Type="nchar" MaxLength="5" />
<Property Name="AREA" Type="nchar" MaxLength="5" />
<Property Name="SafetyStock" Type="float" />
<Property Name="ProductUnit" Type="int" />
<Property Name="ProductType" Type="int" />
<Property Name="ProductClass" Type="int" />
<Property Name="CurrentStock" Type="float" />
<Property Name="Color" Type="int" />
<Property Name="ProductLot" Type="nchar" MaxLength="30" />
<Property Name="FullWeight" Type="float" />
<Property Name="ProductUnit" Type="int" />
<Property Name="SafetyStock" Type="float" />
<Property Name="Price" Type="float" />
<Property Name="CurrentStock" Type="float" />
<Property Name="Deduct" Type="float" />
<Property Name="RplDate" Type="datetime" />
<Property Name="UsedDate" Type="datetime" />
<Property Name="CuMonth" Type="nchar" MaxLength="2" />
<Property Name="LaStock" Type="float" />
<Property Name="ThStock" Type="float" />
<Property Name="ThUsed" Type="float" />
<Property Name="Color" Type="int" />
<Property Name="LastTime" Type="float" />
<Property Name="CalTime" Type="float" />
<Property Name="BackflowTime" Type="int" />
<Property Name="Tol_G" Type="int" />
<Property Name="Tol_P" Type="int" />
<Property Name="Alarm" Type="int" />
<Property Name="Change_Bucket" Type="int" />
<Property Name="Small_Volume_by_manual" Type="int" />
<Property Name="Target_Weight" Type="int" />
<Property Name="Pre_Weight" Type="int" />
<Property Name="One_Sec" Type="int" />
<Property Name="GetscalTime" Type="int" />
<Property Name="DelayOpenValve" Type="int" />
<Property Name="ValveMap" Type="nchar" MaxLength="5" />
<Property Name="PumpMap" Type="nchar" MaxLength="20" />
<Property Name="Includepump" Type="int" />
<Property Name="Once_minimum_weight" Type="int" />
<Property Name="Once_minimum_max_weight" Type="int" />
<Property Name="Once_minimum_time" Type="int" />
<Property Name="Res_S1" Type="nchar" MaxLength="30" />
<Property Name="Res_S2" Type="nchar" MaxLength="30" />
<Property Name="Res_S3" Type="nchar" MaxLength="30" />
<Property Name="Res_S4" Type="nchar" MaxLength="30" />
<Property Name="Res_I1" Type="int" />
<Property Name="Res_I2" Type="int" />
<Property Name="Res_I3" Type="int" />
<Property Name="Res_I4" Type="int" />
<Property Name="Res_F1" Type="float" />
<Property Name="Res_F2" Type="float" />
<Property Name="Res_F3" Type="float" />
<Property Name="Res_F4" Type="float" />
<Property Name="Batch_NO" Type="varchar" MaxLength="30" />
<Property Name="LampPosition" Type="int" />
<Property Name="TablePosition" Type="nchar" MaxLength="5" />
<Property Name="Area" Type="nchar" MaxLength="5" />
<Property Name="Concentration" Type="float" />
<Property Name="Batch_NO" Type="varchar" MaxLength="30" />
<Property Name="Pump" Type="int" />
<Property Name="PRODUCT_KIND" Type="int" />
<Property Name="SUPPLIER" Type="varchar" MaxLength="48" />
<Property Name="PRODUCT_MODIFY_DATE" Type="datetime" />
<Property Name="SUPPLIER" Type="varchar" MaxLength="50" />
<Property Name="GRAVITY" Type="float" Nullable="false" />
<Property Name="UserAccount" Type="varchar" MaxLength="30" />
</EntityType>
<!--生成过程中发现错误:
警告 6013: 表/视图“Ticket.dbo.ProductKind”未定义主键,并且无法推断有效的主键。已排除了此表/视图。若要使用实体,将需要检查您的架构、添加正确的键并取消对实体的注释。
<EntityType Name="ProductKind">
<Property Name="tmp_field" Type="varchar" MaxLength="1" />
<Property Name="KIND_NAME" Type="nvarchar" MaxLength="50" />
<Property Name="ORDER_NO" Type="int" />
</EntityType>-->
<!--生成过程中发现错误:
警告 6002: 表/视图“Ticket.dbo.REMOTETERMINAL”未定义主键。已推断出该键,并将定义创建为只读的表/视图。-->
<!--生成过程中发现错误:
警告 6002: 表/视图“Ticket.dbo.TEMPCHEMICALTKT”未定义主键。已推断出该键,并将定义创建为只读的表/视图。-->
<!--生成过程中发现错误:
警告 6002: 表/视图“Ticket.dbo.TEMPDYESTUFFTKT”未定义主键。已推断出该键,并将定义创建为只读的表/视图。-->
<!--生成过程中发现错误:
警告 6002: 表/视图“Ticket.dbo.TEMPPOWDER”未定义主键。已推断出该键,并将定义创建为只读的表/视图。-->
<!--生成过程中发现错误:
警告 6002: 表/视图“Ticket.dbo.TICKET_DETAIL”未定义主键。已推断出该键,并将定义创建为只读的表/视图。-->
<!--生成过程中发现错误:
警告 6013: 表/视图“Ticket.dbo.TICKET_TITLE”未定义主键,并且无法推断有效的主键。已排除了此表/视图。若要使用实体,将需要检查您的架构、添加正确的键并取消对实体的注释。
<EntityType Name="TICKET_TITLE">
<Property Name="ID_NO" Type="char" MaxLength="30" />
<Property Name="ID_TYPE" Type="char" MaxLength="1" />
<Property Name="PROCEDURE_CODE" Type="char" MaxLength="24" />
<Property Name="TOTAL_STEP" Type="int" />
<Property Name="TICKET" Type="char" MaxLength="30" />
<Property Name="MACHINE_NO" Type="char" MaxLength="30" />
<Property Name="CUSTOMER_CODE" Type="char" MaxLength="30" />
<Property Name="CUSTOMER_NAME" Type="char" MaxLength="30" />
<Property Name="PROGRAM_CODE" Type="char" MaxLength="30" />
<Property Name="PROGRAM_NAME" Type="char" MaxLength="30" />
<Property Name="FABRIC_CODE" Type="char" MaxLength="30" />
<Property Name="FABRIC_NAME" Type="char" MaxLength="30" />
<Property Name="GRAMS_YARD" Type="float" />
<Property Name="VOLUME" Type="float" />
<Property Name="TOTAL_WT" Type="float" />
<Property Name="TOTAL_LENGTH" Type="float" />
<Property Name="COLOR_NAME" Type="char" MaxLength="30" />
<Property Name="ORDER_NO" Type="char" MaxLength="30" />
<Property Name="PILL" Type="char" MaxLength="30" />
<Property Name="UNIT" Type="char" MaxLength="30" />
<Property Name="BATCH" Type="char" MaxLength="30" />
<Property Name="PRODUCT_LOT" Type="char" MaxLength="30" />
<Property Name="CONC" Type="char" MaxLength="30" />
<Property Name="PRICE" Type="char" MaxLength="30" />
<Property Name="SHEET" Type="char" MaxLength="30" />
<Property Name="SHADE" Type="char" MaxLength="30" />
<Property Name="TOTAL_VALUE" Type="char" MaxLength="30" />
<Property Name="YARN" Type="char" MaxLength="30" />
<Property Name="USER25" Type="char" MaxLength="30" />
<Property Name="USER26" Type="char" MaxLength="30" />
<Property Name="USER27" Type="char" MaxLength="30" />
<Property Name="USER28" Type="char" MaxLength="30" />
<Property Name="USER29" Type="char" MaxLength="30" />
<Property Name="USER30" Type="char" MaxLength="30" />
<Property Name="ADD_ID_NO" Type="char" MaxLength="30" />
<Property Name="ADD_FREQUENCY" Type="int" />
<Property Name="CreateTime" Type="datetime" />
<Property Name="UserAccount" Type="varchar" MaxLength="30" />
<Property Name="lldid" Type="int" />
<Property Name="Redye" Type="int" />
<Property Name="Industry" Type="int" />
<Property Name="UserCode" Type="char" MaxLength="10" />
<Property Name="TotalLength" Type="float" />
<Property Name="USER1" Type="varchar" MaxLength="30" />
<Property Name="USER2" Type="varchar" MaxLength="30" />
<Property Name="USER3" Type="varchar" MaxLength="30" />
<Property Name="USER4" Type="varchar" MaxLength="30" />
<Property Name="USER5" Type="varchar" MaxLength="30" />
<Property Name="USER6" Type="varchar" MaxLength="30" />
<Property Name="USER7" Type="varchar" MaxLength="30" />
<Property Name="USER8" Type="varchar" MaxLength="30" />
<Property Name="USER9" Type="varchar" MaxLength="30" />
<Property Name="USER10" Type="varchar" MaxLength="30" />
<Property Name="FormTypeName" Type="nvarchar" MaxLength="32" />
</EntityType>-->
<!--生成过程中发现错误:
警告 6002: 表/视图“Ticket.dbo.TicketSerial”未定义主键。已推断出该键,并将定义创建为只读的表/视图。-->
<!--生成过程中发现错误:
警告 6002: 表/视图“Ticket.dbo.UserAccount”未定义主键。已推断出该键,并将定义创建为只读的表/视图。-->
<EntityType Name="UserAccount">
<Key>
<PropertyRef Name="tmp_field" />
@@ -188,89 +51,12 @@
</EntityType>
<EntityContainer Name="TicketModelStoreContainer">
<EntitySet Name="Product" EntityType="Self.Product" Schema="dbo" store:Type="Tables" />
<EntitySet Name="UserAccount" EntityType="Self.UserAccount" store:Type="Tables" store:Schema="dbo">
<DefiningQuery>SELECT
[UserAccount].[tmp_field] AS [tmp_field],
[UserAccount].[UserCode] AS [UserCode],
[UserAccount].[PassWord] AS [PassWord],
[UserAccount].[JobTicket] AS [JobTicket],
[UserAccount].[Report] AS [Report],
[UserAccount].[PathSetup] AS [PathSetup],
[UserAccount].[UserSetup] AS [UserSetup],
[UserAccount].[GROUP_CODE] AS [GROUP_CODE]
FROM [dbo].[UserAccount] AS [UserAccount]</DefiningQuery>
</EntitySet>
<EntitySet Name="UserAccount" EntityType="Self.UserAccount" Schema="dbo" store:Type="Tables" />
</EntityContainer>
</Schema>
</edmx:StorageModels>
</Schema></edmx:StorageModels>
<!-- CSDL content -->
<edmx:ConceptualModels>
<Schema Namespace="TicketModel" Alias="Self" annotation:UseStrongSpatialTypes="false" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
<EntityType Name="Product">
<Key>
<PropertyRef Name="ProductCode" />
</Key>
<Property Name="ProductCode" Type="String" MaxLength="20" FixedLength="true" Unicode="true" Nullable="false" />
<Property Name="ProductName" Type="String" MaxLength="50" FixedLength="true" Unicode="true" />
<Property Name="Price" Type="Double" />
<Property Name="Deduct" Type="Double" />
<Property Name="FullWeight" Type="Double" />
<Property Name="LampPosition" Type="Int32" />
<Property Name="TablePosition" Type="String" MaxLength="5" FixedLength="true" Unicode="true" />
<Property Name="AREA" Type="String" MaxLength="5" FixedLength="true" Unicode="true" />
<Property Name="SafetyStock" Type="Double" />
<Property Name="ProductUnit" Type="Int32" />
<Property Name="ProductType" Type="Int32" />
<Property Name="ProductClass" Type="Int32" />
<Property Name="CurrentStock" Type="Double" />
<Property Name="ProductLot" Type="String" MaxLength="30" FixedLength="true" Unicode="true" />
<Property Name="RplDate" Type="DateTime" Precision="3" />
<Property Name="UsedDate" Type="DateTime" Precision="3" />
<Property Name="CuMonth" Type="String" MaxLength="2" FixedLength="true" Unicode="true" />
<Property Name="LaStock" Type="Double" />
<Property Name="ThStock" Type="Double" />
<Property Name="ThUsed" Type="Double" />
<Property Name="Color" Type="Int32" />
<Property Name="LastTime" Type="Double" />
<Property Name="CalTime" Type="Double" />
<Property Name="BackflowTime" Type="Int32" />
<Property Name="Tol_G" Type="Int32" />
<Property Name="Tol_P" Type="Int32" />
<Property Name="Alarm" Type="Int32" />
<Property Name="Change_Bucket" Type="Int32" />
<Property Name="Small_Volume_by_manual" Type="Int32" />
<Property Name="Target_Weight" Type="Int32" />
<Property Name="Pre_Weight" Type="Int32" />
<Property Name="One_Sec" Type="Int32" />
<Property Name="GetscalTime" Type="Int32" />
<Property Name="DelayOpenValve" Type="Int32" />
<Property Name="ValveMap" Type="String" MaxLength="5" FixedLength="true" Unicode="true" />
<Property Name="PumpMap" Type="String" MaxLength="20" FixedLength="true" Unicode="true" />
<Property Name="Includepump" Type="Int32" />
<Property Name="Once_minimum_weight" Type="Int32" />
<Property Name="Once_minimum_max_weight" Type="Int32" />
<Property Name="Once_minimum_time" Type="Int32" />
<Property Name="Res_S1" Type="String" MaxLength="30" FixedLength="true" Unicode="true" />
<Property Name="Res_S2" Type="String" MaxLength="30" FixedLength="true" Unicode="true" />
<Property Name="Res_S3" Type="String" MaxLength="30" FixedLength="true" Unicode="true" />
<Property Name="Res_S4" Type="String" MaxLength="30" FixedLength="true" Unicode="true" />
<Property Name="Res_I1" Type="Int32" />
<Property Name="Res_I2" Type="Int32" />
<Property Name="Res_I3" Type="Int32" />
<Property Name="Res_I4" Type="Int32" />
<Property Name="Res_F1" Type="Double" />
<Property Name="Res_F2" Type="Double" />
<Property Name="Res_F3" Type="Double" />
<Property Name="Res_F4" Type="Double" />
<Property Name="Batch_NO" Type="String" MaxLength="30" FixedLength="false" Unicode="false" />
<Property Name="Concentration" Type="Double" />
<Property Name="Pump" Type="Int32" />
<Property Name="PRODUCT_KIND" Type="Int32" />
<Property Name="SUPPLIER" Type="String" MaxLength="48" FixedLength="false" Unicode="false" />
<Property Name="PRODUCT_MODIFY_DATE" Type="DateTime" Precision="3" />
<Property Name="GRAVITY" Type="Double" Nullable="false" />
<Property Name="UserAccount" Type="String" MaxLength="30" FixedLength="false" Unicode="false" />
</EntityType>
<EntityType Name="UserAccount">
<Key>
<PropertyRef Name="tmp_field" />
@@ -285,81 +71,46 @@
<Property Name="GROUP_CODE" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
</EntityType>
<EntityContainer Name="TicketEntities" annotation:LazyLoadingEnabled="true">
<EntitySet Name="Product" EntityType="Self.Product" />
<EntitySet Name="UserAccount" EntityType="Self.UserAccount" />
<EntitySet Name="Product" EntityType="TicketModel.Product" />
</EntityContainer>
<EntityType Name="Product">
<Key>
<PropertyRef Name="ProductCode" />
</Key>
<Property Name="ProductCode" Type="String" Nullable="false" MaxLength="30" FixedLength="true" Unicode="true" />
<Property Name="ProductName" Type="String" MaxLength="50" FixedLength="true" Unicode="true" />
<Property Name="ProductType" Type="Int32" />
<Property Name="ProductClass" Type="Int32" />
<Property Name="Color" Type="Int32" />
<Property Name="ProductLot" Type="String" MaxLength="30" FixedLength="true" Unicode="true" />
<Property Name="FullWeight" Type="Double" />
<Property Name="ProductUnit" Type="Int32" />
<Property Name="SafetyStock" Type="Double" />
<Property Name="Price" Type="Double" />
<Property Name="CurrentStock" Type="Double" />
<Property Name="Deduct" Type="Double" />
<Property Name="RplDate" Type="DateTime" Precision="3" />
<Property Name="UsedDate" Type="DateTime" Precision="3" />
<Property Name="CuMonth" Type="String" MaxLength="2" FixedLength="true" Unicode="true" />
<Property Name="LaStock" Type="Double" />
<Property Name="ThStock" Type="Double" />
<Property Name="ThUsed" Type="Double" />
<Property Name="LampPosition" Type="Int32" />
<Property Name="TablePosition" Type="String" MaxLength="5" FixedLength="true" Unicode="true" />
<Property Name="Area" Type="String" MaxLength="5" FixedLength="true" Unicode="true" />
<Property Name="Concentration" Type="Double" />
<Property Name="Batch_NO" Type="String" MaxLength="30" FixedLength="false" Unicode="false" />
<Property Name="Pump" Type="Int32" />
<Property Name="SUPPLIER" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
<Property Name="GRAVITY" Type="Double" Nullable="false" />
</EntityType>
</Schema>
</edmx:ConceptualModels>
<!-- C-S mapping content -->
<edmx:Mappings>
<Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
<EntityContainerMapping StorageEntityContainer="TicketModelStoreContainer" CdmEntityContainer="TicketEntities">
<EntitySetMapping Name="Product">
<EntityTypeMapping TypeName="TicketModel.Product">
<MappingFragment StoreEntitySet="Product">
<ScalarProperty Name="ProductCode" ColumnName="ProductCode" />
<ScalarProperty Name="ProductName" ColumnName="ProductName" />
<ScalarProperty Name="Price" ColumnName="Price" />
<ScalarProperty Name="Deduct" ColumnName="Deduct" />
<ScalarProperty Name="FullWeight" ColumnName="FullWeight" />
<ScalarProperty Name="LampPosition" ColumnName="LampPosition" />
<ScalarProperty Name="TablePosition" ColumnName="TablePosition" />
<ScalarProperty Name="AREA" ColumnName="AREA" />
<ScalarProperty Name="SafetyStock" ColumnName="SafetyStock" />
<ScalarProperty Name="ProductUnit" ColumnName="ProductUnit" />
<ScalarProperty Name="ProductType" ColumnName="ProductType" />
<ScalarProperty Name="ProductClass" ColumnName="ProductClass" />
<ScalarProperty Name="CurrentStock" ColumnName="CurrentStock" />
<ScalarProperty Name="ProductLot" ColumnName="ProductLot" />
<ScalarProperty Name="RplDate" ColumnName="RplDate" />
<ScalarProperty Name="UsedDate" ColumnName="UsedDate" />
<ScalarProperty Name="CuMonth" ColumnName="CuMonth" />
<ScalarProperty Name="LaStock" ColumnName="LaStock" />
<ScalarProperty Name="ThStock" ColumnName="ThStock" />
<ScalarProperty Name="ThUsed" ColumnName="ThUsed" />
<ScalarProperty Name="Color" ColumnName="Color" />
<ScalarProperty Name="LastTime" ColumnName="LastTime" />
<ScalarProperty Name="CalTime" ColumnName="CalTime" />
<ScalarProperty Name="BackflowTime" ColumnName="BackflowTime" />
<ScalarProperty Name="Tol_G" ColumnName="Tol_G" />
<ScalarProperty Name="Tol_P" ColumnName="Tol_P" />
<ScalarProperty Name="Alarm" ColumnName="Alarm" />
<ScalarProperty Name="Change_Bucket" ColumnName="Change_Bucket" />
<ScalarProperty Name="Small_Volume_by_manual" ColumnName="Small_Volume_by_manual" />
<ScalarProperty Name="Target_Weight" ColumnName="Target_Weight" />
<ScalarProperty Name="Pre_Weight" ColumnName="Pre_Weight" />
<ScalarProperty Name="One_Sec" ColumnName="One_Sec" />
<ScalarProperty Name="GetscalTime" ColumnName="GetscalTime" />
<ScalarProperty Name="DelayOpenValve" ColumnName="DelayOpenValve" />
<ScalarProperty Name="ValveMap" ColumnName="ValveMap" />
<ScalarProperty Name="PumpMap" ColumnName="PumpMap" />
<ScalarProperty Name="Includepump" ColumnName="Includepump" />
<ScalarProperty Name="Once_minimum_weight" ColumnName="Once_minimum_weight" />
<ScalarProperty Name="Once_minimum_max_weight" ColumnName="Once_minimum_max_weight" />
<ScalarProperty Name="Once_minimum_time" ColumnName="Once_minimum_time" />
<ScalarProperty Name="Res_S1" ColumnName="Res_S1" />
<ScalarProperty Name="Res_S2" ColumnName="Res_S2" />
<ScalarProperty Name="Res_S3" ColumnName="Res_S3" />
<ScalarProperty Name="Res_S4" ColumnName="Res_S4" />
<ScalarProperty Name="Res_I1" ColumnName="Res_I1" />
<ScalarProperty Name="Res_I2" ColumnName="Res_I2" />
<ScalarProperty Name="Res_I3" ColumnName="Res_I3" />
<ScalarProperty Name="Res_I4" ColumnName="Res_I4" />
<ScalarProperty Name="Res_F1" ColumnName="Res_F1" />
<ScalarProperty Name="Res_F2" ColumnName="Res_F2" />
<ScalarProperty Name="Res_F3" ColumnName="Res_F3" />
<ScalarProperty Name="Res_F4" ColumnName="Res_F4" />
<ScalarProperty Name="Batch_NO" ColumnName="Batch_NO" />
<ScalarProperty Name="Concentration" ColumnName="Concentration" />
<ScalarProperty Name="Pump" ColumnName="Pump" />
<ScalarProperty Name="PRODUCT_KIND" ColumnName="PRODUCT_KIND" />
<ScalarProperty Name="SUPPLIER" ColumnName="SUPPLIER" />
<ScalarProperty Name="PRODUCT_MODIFY_DATE" ColumnName="PRODUCT_MODIFY_DATE" />
<ScalarProperty Name="GRAVITY" ColumnName="GRAVITY" />
<ScalarProperty Name="UserAccount" ColumnName="UserAccount" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="UserAccount">
<EntityTypeMapping TypeName="TicketModel.UserAccount">
<MappingFragment StoreEntitySet="UserAccount">
@@ -374,6 +125,38 @@
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="Product">
<EntityTypeMapping TypeName="TicketModel.Product">
<MappingFragment StoreEntitySet="Product">
<ScalarProperty Name="GRAVITY" ColumnName="GRAVITY" />
<ScalarProperty Name="SUPPLIER" ColumnName="SUPPLIER" />
<ScalarProperty Name="Pump" ColumnName="Pump" />
<ScalarProperty Name="Batch_NO" ColumnName="Batch_NO" />
<ScalarProperty Name="Concentration" ColumnName="Concentration" />
<ScalarProperty Name="Area" ColumnName="Area" />
<ScalarProperty Name="TablePosition" ColumnName="TablePosition" />
<ScalarProperty Name="LampPosition" ColumnName="LampPosition" />
<ScalarProperty Name="ThUsed" ColumnName="ThUsed" />
<ScalarProperty Name="ThStock" ColumnName="ThStock" />
<ScalarProperty Name="LaStock" ColumnName="LaStock" />
<ScalarProperty Name="CuMonth" ColumnName="CuMonth" />
<ScalarProperty Name="UsedDate" ColumnName="UsedDate" />
<ScalarProperty Name="RplDate" ColumnName="RplDate" />
<ScalarProperty Name="Deduct" ColumnName="Deduct" />
<ScalarProperty Name="CurrentStock" ColumnName="CurrentStock" />
<ScalarProperty Name="Price" ColumnName="Price" />
<ScalarProperty Name="SafetyStock" ColumnName="SafetyStock" />
<ScalarProperty Name="ProductUnit" ColumnName="ProductUnit" />
<ScalarProperty Name="FullWeight" ColumnName="FullWeight" />
<ScalarProperty Name="ProductLot" ColumnName="ProductLot" />
<ScalarProperty Name="Color" ColumnName="Color" />
<ScalarProperty Name="ProductClass" ColumnName="ProductClass" />
<ScalarProperty Name="ProductType" ColumnName="ProductType" />
<ScalarProperty Name="ProductName" ColumnName="ProductName" />
<ScalarProperty Name="ProductCode" ColumnName="ProductCode" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
</EntityContainerMapping>
</Mapping>
</edmx:Mappings>
+3 -3
View File
@@ -4,9 +4,9 @@
<edmx:Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
<!-- Diagram content (shape and connector positions) -->
<edmx:Diagrams>
<Diagram DiagramId="89d520d3675442b5b0979c510546a2e9" Name="Diagram1" ZoomLevel="60">
<EntityTypeShape EntityType="TicketModel.Product" Width="1.5" PointX="0.75" PointY="0.75" IsExpanded="true" />
<EntityTypeShape EntityType="TicketModel.UserAccount" Width="1.5" PointX="3.5" PointY="3.625" IsExpanded="true" />
<Diagram DiagramId="b4c3f4749235450782ad7a88197423ed" Name="Diagram1" ZoomLevel="62">
<EntityTypeShape EntityType="TicketModel.UserAccount" Width="1.5" PointX="0.75" PointY="0.75" IsExpanded="true" />
<EntityTypeShape EntityType="TicketModel.Product" Width="1.5" PointX="3.375" PointY="0.75" />
</Diagram>
</edmx:Diagrams>
</edmx:Designer>
-28
View File
@@ -1,28 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class SampleDyeDslvQueue
{
public Nullable<int> TankNo { get; set; }
public string Dyelot { get; set; }
public int ReDye { get; set; }
public Nullable<int> StepNumber { get; set; }
public Nullable<int> State { get; set; }
public Nullable<int> PassAuto { get; set; }
public Nullable<int> ShelfID { get; set; }
public string Machine { get; set; }
public Nullable<System.DateTime> SchDispenseTime { get; set; }
public Nullable<System.DateTime> Updated { get; set; }
}
}
-28
View File
@@ -1,28 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class SampleDyeDslvQueueHistory
{
public Nullable<int> TankNo { get; set; }
public string Dyelot { get; set; }
public int ReDye { get; set; }
public Nullable<int> StepNumber { get; set; }
public Nullable<int> State { get; set; }
public Nullable<int> PassAuto { get; set; }
public Nullable<int> ShelfID { get; set; }
public string Machine { get; set; }
public Nullable<System.DateTime> SchDispenseTime { get; set; }
public Nullable<System.DateTime> Created { get; set; }
}
}
-29
View File
@@ -1,29 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class ScheduledDyelot
{
public int ID { get; set; }
public string Dyelot { get; set; }
public int ReDye { get; set; }
public Nullable<int> StepNumber { get; set; }
public string Process { get; set; }
public string Dispenser { get; set; }
public string Machine { get; set; }
public Nullable<int> TankNo { get; set; }
public Nullable<System.DateTime> ScheduledTime { get; set; }
public string Checked { get; set; }
public string UserAccount { get; set; }
}
}
-30
View File
@@ -1,30 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class ScheduledDyelotHistory
{
public int ID { get; set; }
public string Dyelot { get; set; }
public int ReDye { get; set; }
public Nullable<int> StepNumber { get; set; }
public string Process { get; set; }
public string Dispenser { get; set; }
public string Machine { get; set; }
public Nullable<int> TankNo { get; set; }
public Nullable<System.DateTime> ScheduledTime { get; set; }
public string Checked { get; set; }
public string UserAccount { get; set; }
public Nullable<System.DateTime> Updated { get; set; }
}
}
-26
View File
@@ -1,26 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class SchedulingLog
{
public int ID { get; set; }
public string Dyelot { get; set; }
public int Redye { get; set; }
public string Machine { get; set; }
public System.DateTime CallTime { get; set; }
public Nullable<System.DateTime> EndTime { get; set; }
public Nullable<int> State { get; set; }
public string Status { get; set; }
}
}
-21
View File
@@ -1,21 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class Shelf
{
public int ShelfID { get; set; }
public Nullable<int> MaxLayer { get; set; }
public Nullable<int> MaxPosition { get; set; }
}
}
-28
View File
@@ -1,28 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class TagShelf
{
public Nullable<int> BucketNo { get; set; }
public string Dyelot { get; set; }
public string Machines { get; set; }
public Nullable<int> TagManagerNo { get; set; }
public int ReDye { get; set; }
public Nullable<int> StepNumber { get; set; }
public string DID { get; set; }
public Nullable<int> TotalBuckets { get; set; }
public Nullable<int> DevideNo { get; set; }
public Nullable<System.DateTime> OnShelfTime { get; set; }
}
}