忱 沈 4 years ago
parent
commit
9ea61426e1
  1. 29
      Models/AuxDslvQueue.cs
  2. 29
      Models/AuxDslvQueueHistory.cs
  3. 27
      Models/CHEMICAL_QUEUE.cs
  4. 21
      Models/CleanDevice.cs
  5. 27
      Models/DYESTUFF_QUEUE.cs
  6. 33
      Models/DispenserEvent.cs
  7. 21
      Models/DispenserLifeStatus.cs
  8. 24
      Models/JOBTKT.cs
  9. 23
      Models/LA571Tanks.cs
  10. 27
      Models/LabDyeDslvQueue.cs
  11. 27
      Models/LabDyeDslvQueueHistory.cs
  12. 84
      Models/Models.csproj
  13. 27
      Models/POWDER_QUEUE.cs
  14. 27
      Models/PipeFill.cs
  15. 22
      Models/ProductInventory.cs
  16. 21
      Models/ProductUsed.cs
  17. 25
      Models/REMOTETERMINAL.cs
  18. 29
      Models/RFIDRecordQueueHistory.cs
  19. 16
      Models/SQL_BD.Context.cs
  20. 909
      Models/SQL_BD.edmx
  21. 16
      Models/SQL_BD.edmx.diagram
  22. 12
      Models/SQL_Ti.Context.cs
  23. 2
      Models/SQL_Ti.Designer.cs
  24. 711
      Models/SQL_Ti.edmx
  25. 16
      Models/SQL_Ti.edmx.diagram
  26. 28
      Models/SampleDyeDslvQueue.cs
  27. 21
      Models/Shelf.cs
  28. 25
      Models/TEMPCHEMICALTKT.cs
  29. 25
      Models/TEMPDYESTUFFTKT.cs
  30. 25
      Models/TEMPPOWDER.cs
  31. 63
      Models/TICKET_DETAIL.cs
  32. 28
      Models/TagShelf.cs
  33. 21
      Models/TicketSerial.cs
  34. 22
      Models/UserGroup.cs
  35. 20
      Models/Users.cs
  36. 33
      Models/WaitChemical.cs
  37. 4
      Windows/LogWindow.xaml
  38. 4
      Windows/LogWindow.xaml.cs

29
Models/AuxDslvQueue.cs

@ -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
Models/AuxDslvQueueHistory.cs

@ -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; }
}
}

27
Models/CHEMICAL_QUEUE.cs

@ -1,27 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class CHEMICAL_QUEUE
{
public string tmp_field { get; set; }
public string ID_NO { get; set; }
public Nullable<int> STEP_NO { get; set; }
public string CREATE_DATE { get; set; }
public string CREATE_TIME { get; set; }
public string FIRST_KEY { get; set; }
public string SECOND_KEY { get; set; }
public Nullable<int> PRIORITY { get; set; }
public int ReDye { get; set; }
}
}

21
Models/CleanDevice.cs

@ -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; }
}
}

27
Models/DYESTUFF_QUEUE.cs

@ -1,27 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class DYESTUFF_QUEUE
{
public string tmp_field { get; set; }
public string ID_NO { get; set; }
public Nullable<int> STEP_NO { get; set; }
public string CREATE_DATE { get; set; }
public string CREATE_TIME { get; set; }
public string FIRST_KEY { get; set; }
public string SECOND_KEY { get; set; }
public Nullable<int> PRIORITY { get; set; }
public int ReDye { get; set; }
}
}

33
Models/DispenserEvent.cs

@ -1,33 +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 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; }
}
}

21
Models/DispenserLifeStatus.cs

@ -1,21 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class DispenserLifeStatus
{
public string Dispenser { get; set; }
public Nullable<int> HeartBeat { get; set; }
public Nullable<System.DateTime> UpdateDate { get; set; }
}
}

24
Models/JOBTKT.cs

@ -1,24 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class JOBTKT
{
public string tmp_field { get; set; }
public string IDNO { get; set; }
public Nullable<double> FNDATE { get; set; }
public string FIRST_KEY { get; set; }
public string SECOND_KEY { get; set; }
public int ReDye { get; set; }
}
}

23
Models/LA571Tanks.cs

@ -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
Models/LabDyeDslvQueue.cs

@ -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
Models/LabDyeDslvQueueHistory.cs

@ -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; }
}
}

84
Models/Models.csproj

@ -71,12 +71,6 @@
<Compile Include="Alarms.cs"> <Compile Include="Alarms.cs">
<DependentUpon>SQL_BD.tt</DependentUpon> <DependentUpon>SQL_BD.tt</DependentUpon>
</Compile> </Compile>
<Compile Include="AuxDslvQueue.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="AuxDslvQueueHistory.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="BucketInfo.cs"> <Compile Include="BucketInfo.cs">
<DependentUpon>SQL_BD.tt</DependentUpon> <DependentUpon>SQL_BD.tt</DependentUpon>
</Compile> </Compile>
@ -92,24 +86,12 @@
<Compile Include="BucketShelfQueueHistory.cs"> <Compile Include="BucketShelfQueueHistory.cs">
<DependentUpon>SQL_BD.tt</DependentUpon> <DependentUpon>SQL_BD.tt</DependentUpon>
</Compile> </Compile>
<Compile Include="CHEMICAL_QUEUE.cs">
<DependentUpon>SQL_Ti.tt</DependentUpon>
</Compile>
<Compile Include="CleanDevice.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="Customize.cs"> <Compile Include="Customize.cs">
<DependentUpon>SQL_BD.tt</DependentUpon> <DependentUpon>SQL_BD.tt</DependentUpon>
</Compile> </Compile>
<Compile Include="Delays.cs"> <Compile Include="Delays.cs">
<DependentUpon>SQL_BD.tt</DependentUpon> <DependentUpon>SQL_BD.tt</DependentUpon>
</Compile> </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"> <Compile Include="Dispensers.cs">
<DependentUpon>SQL_BD.tt</DependentUpon> <DependentUpon>SQL_BD.tt</DependentUpon>
</Compile> </Compile>
@ -166,25 +148,10 @@
<DependentUpon>SQL_BD.tt</DependentUpon> <DependentUpon>SQL_BD.tt</DependentUpon>
</Compile> </Compile>
<Compile Include="DyelotsProvider.cs" /> <Compile Include="DyelotsProvider.cs" />
<Compile Include="DYESTUFF_QUEUE.cs">
<DependentUpon>SQL_Ti.tt</DependentUpon>
</Compile>
<Compile Include="EventList.cs"> <Compile Include="EventList.cs">
<DependentUpon>SQL_BD.tt</DependentUpon> <DependentUpon>SQL_BD.tt</DependentUpon>
</Compile> </Compile>
<Compile Include="IProvider.cs" /> <Compile Include="IProvider.cs" />
<Compile Include="JOBTKT.cs">
<DependentUpon>SQL_Ti.tt</DependentUpon>
</Compile>
<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"> <Compile Include="Machines.cs">
<DependentUpon>SQL_BD.tt</DependentUpon> <DependentUpon>SQL_BD.tt</DependentUpon>
</Compile> </Compile>
@ -210,28 +177,16 @@
<Compile Include="PartsStatusHistory.cs"> <Compile Include="PartsStatusHistory.cs">
<DependentUpon>SQL_BD.tt</DependentUpon> <DependentUpon>SQL_BD.tt</DependentUpon>
</Compile> </Compile>
<Compile Include="PipeFill.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="PipeHistory.cs"> <Compile Include="PipeHistory.cs">
<DependentUpon>SQL_BD.tt</DependentUpon> <DependentUpon>SQL_BD.tt</DependentUpon>
</Compile> </Compile>
<Compile Include="Pipes.cs"> <Compile Include="Pipes.cs">
<DependentUpon>SQL_BD.tt</DependentUpon> <DependentUpon>SQL_BD.tt</DependentUpon>
</Compile> </Compile>
<Compile Include="POWDER_QUEUE.cs">
<DependentUpon>SQL_Ti.tt</DependentUpon>
</Compile>
<Compile Include="Product.cs"> <Compile Include="Product.cs">
<DependentUpon>SQL_Ti.tt</DependentUpon> <DependentUpon>SQL_Ti.tt</DependentUpon>
</Compile> </Compile>
<Compile Include="ProductInventory.cs">
<DependentUpon>SQL_Ti.tt</DependentUpon>
</Compile>
<Compile Include="ProductProvider.cs" /> <Compile Include="ProductProvider.cs" />
<Compile Include="ProductUsed.cs">
<DependentUpon>SQL_Ti.tt</DependentUpon>
</Compile>
<Compile Include="ProgramGroups.cs"> <Compile Include="ProgramGroups.cs">
<DependentUpon>SQL_BD.tt</DependentUpon> <DependentUpon>SQL_BD.tt</DependentUpon>
</Compile> </Compile>
@ -251,27 +206,15 @@
<Compile Include="record.cs"> <Compile Include="record.cs">
<DependentUpon>SQL_BD.tt</DependentUpon> <DependentUpon>SQL_BD.tt</DependentUpon>
</Compile> </Compile>
<Compile Include="REMOTETERMINAL.cs">
<DependentUpon>SQL_Ti.tt</DependentUpon>
</Compile>
<Compile Include="RFIDRecordQueue.cs"> <Compile Include="RFIDRecordQueue.cs">
<DependentUpon>SQL_BD.tt</DependentUpon> <DependentUpon>SQL_BD.tt</DependentUpon>
</Compile> </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"> <Compile Include="SampleDyeDslvQueueHistory.cs">
<DependentUpon>SQL_BD.tt</DependentUpon> <DependentUpon>SQL_BD.tt</DependentUpon>
</Compile> </Compile>
<Compile Include="SchedulingLog.cs"> <Compile Include="SchedulingLog.cs">
<DependentUpon>SQL_BD.tt</DependentUpon> <DependentUpon>SQL_BD.tt</DependentUpon>
</Compile> </Compile>
<Compile Include="Shelf.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="SQL_BD.Context.cs"> <Compile Include="SQL_BD.Context.cs">
<AutoGen>True</AutoGen> <AutoGen>True</AutoGen>
<DesignTime>True</DesignTime> <DesignTime>True</DesignTime>
@ -311,37 +254,10 @@
<Compile Include="Stoppages.cs"> <Compile Include="Stoppages.cs">
<DependentUpon>SQL_BD.tt</DependentUpon> <DependentUpon>SQL_BD.tt</DependentUpon>
</Compile> </Compile>
<Compile Include="TagShelf.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="TEMPCHEMICALTKT.cs">
<DependentUpon>SQL_Ti.tt</DependentUpon>
</Compile>
<Compile Include="TEMPDYESTUFFTKT.cs">
<DependentUpon>SQL_Ti.tt</DependentUpon>
</Compile>
<Compile Include="TEMPPOWDER.cs">
<DependentUpon>SQL_Ti.tt</DependentUpon>
</Compile>
<Compile Include="TicketSerial.cs">
<DependentUpon>SQL_Ti.tt</DependentUpon>
</Compile>
<Compile Include="TICKET_DETAIL.cs">
<DependentUpon>SQL_Ti.tt</DependentUpon>
</Compile>
<Compile Include="UserAccount.cs"> <Compile Include="UserAccount.cs">
<DependentUpon>SQL_Ti.tt</DependentUpon> <DependentUpon>SQL_Ti.tt</DependentUpon>
</Compile> </Compile>
<Compile Include="UserAccountProvide.cs" /> <Compile Include="UserAccountProvide.cs" />
<Compile Include="UserGroup.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="Users.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="WaitChemical.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<EntityDeploy Include="SQL_BD.edmx"> <EntityDeploy Include="SQL_BD.edmx">

27
Models/POWDER_QUEUE.cs

@ -1,27 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class POWDER_QUEUE
{
public string tmp_field { get; set; }
public string ID_NO { get; set; }
public Nullable<int> STEP_NO { get; set; }
public string CREATE_DATE { get; set; }
public string CREATE_TIME { get; set; }
public string FIRST_KEY { get; set; }
public string SECOND_KEY { get; set; }
public Nullable<int> PRIORITY { get; set; }
public int ReDye { get; set; }
}
}

27
Models/PipeFill.cs

@ -1,27 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class PipeFill
{
public string ProductCode { get; set; }
public string ProductName { get; set; }
public string Dispenser { get; set; }
public Nullable<int> No { get; set; }
public Nullable<double> Qty { get; set; }
public Nullable<System.DateTime> StartTime { get; set; }
public Nullable<System.DateTime> EndTime { get; set; }
public Nullable<System.DateTime> AlarmTime { get; set; }
public Nullable<System.DateTime> Updated { get; set; }
}
}

22
Models/ProductInventory.cs

@ -1,22 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class ProductInventory
{
public string ProductCode { get; set; }
public Nullable<double> Quantity { get; set; }
public Nullable<double> Price { get; set; }
public Nullable<System.DateTime> CreateDate { get; set; }
}
}

21
Models/ProductUsed.cs

@ -1,21 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class ProductUsed
{
public string ProductCode { get; set; }
public Nullable<double> UsedQty { get; set; }
public Nullable<System.DateTime> CreateDate { get; set; }
}
}

25
Models/REMOTETERMINAL.cs

@ -1,25 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class REMOTETERMINAL
{
public string tmp_field { get; set; }
public string IDNO { get; set; }
public Nullable<double> FNDATE { get; set; }
public string IDTYPE { get; set; }
public string FIRST_KEY { get; set; }
public string SECOND_KEY { get; set; }
public int ReDye { get; set; }
}
}

29
Models/RFIDRecordQueueHistory.cs

@ -1,29 +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 Nullable<System.DateTime> Created { get; set; }
}
}

16
Models/SQL_BD.Context.cs

@ -42,17 +42,11 @@ namespace Models
public virtual DbSet<Steps> Steps { get; set; } public virtual DbSet<Steps> Steps { get; set; }
public virtual DbSet<StepVisits> StepVisits { get; set; } public virtual DbSet<StepVisits> StepVisits { get; set; }
public virtual DbSet<Stoppages> Stoppages { get; set; } public virtual DbSet<Stoppages> Stoppages { get; set; }
public virtual DbSet<Users> Users { get; set; }
public virtual DbSet<AuxDslvQueue> AuxDslvQueue { get; set; }
public virtual DbSet<AuxDslvQueueHistory> AuxDslvQueueHistory { get; set; }
public virtual DbSet<BucketInfo> BucketInfo { get; set; } public virtual DbSet<BucketInfo> BucketInfo { get; set; }
public virtual DbSet<BucketShelf> BucketShelf { get; set; } public virtual DbSet<BucketShelf> BucketShelf { get; set; }
public virtual DbSet<BucketShelfHistory> BucketShelfHistory { get; set; } public virtual DbSet<BucketShelfHistory> BucketShelfHistory { get; set; }
public virtual DbSet<BucketShelfQueue> BucketShelfQueue { get; set; } public virtual DbSet<BucketShelfQueue> BucketShelfQueue { get; set; }
public virtual DbSet<BucketShelfQueueHistory> BucketShelfQueueHistory { 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<Dispensers> Dispensers { get; set; }
public virtual DbSet<DispenserUtilization> DispenserUtilization { get; set; } public virtual DbSet<DispenserUtilization> DispenserUtilization { get; set; }
public virtual DbSet<DyelotBuckets> DyelotBuckets { get; set; } public virtual DbSet<DyelotBuckets> DyelotBuckets { get; set; }
@ -68,27 +62,17 @@ namespace Models
public virtual DbSet<DyelotsInAuto> DyelotsInAuto { get; set; } public virtual DbSet<DyelotsInAuto> DyelotsInAuto { get; set; }
public virtual DbSet<DyelotsInAutoHistory> DyelotsInAutoHistory { get; set; } public virtual DbSet<DyelotsInAutoHistory> DyelotsInAutoHistory { get; set; }
public virtual DbSet<EventList> EventList { 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<MachinesHistory> MachinesHistory { get; set; }
public virtual DbSet<MachineStateHistory> MachineStateHistory { get; set; } public virtual DbSet<MachineStateHistory> MachineStateHistory { get; set; }
public virtual DbSet<ManualWeightQueue> ManualWeightQueue { get; set; } public virtual DbSet<ManualWeightQueue> ManualWeightQueue { get; set; }
public virtual DbSet<ManualWeightQueueHistory> ManualWeightQueueHistory { get; set; } public virtual DbSet<ManualWeightQueueHistory> ManualWeightQueueHistory { get; set; }
public virtual DbSet<PartsStatus> PartsStatus { get; set; } public virtual DbSet<PartsStatus> PartsStatus { get; set; }
public virtual DbSet<PartsStatusHistory> PartsStatusHistory { get; set; } public virtual DbSet<PartsStatusHistory> PartsStatusHistory { get; set; }
public virtual DbSet<PipeFill> PipeFill { get; set; }
public virtual DbSet<PipeHistory> PipeHistory { get; set; } public virtual DbSet<PipeHistory> PipeHistory { get; set; }
public virtual DbSet<Pipes> Pipes { get; set; } public virtual DbSet<Pipes> Pipes { get; set; }
public virtual DbSet<RecipeDeduct> RecipeDeduct { get; set; } public virtual DbSet<RecipeDeduct> RecipeDeduct { get; set; }
public virtual DbSet<RecipeDeductHistory> RecipeDeductHistory { get; set; } public virtual DbSet<RecipeDeductHistory> RecipeDeductHistory { get; set; }
public virtual DbSet<RFIDRecordQueue> RFIDRecordQueue { 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<SampleDyeDslvQueueHistory> SampleDyeDslvQueueHistory { get; set; }
public virtual DbSet<Shelf> Shelf { get; set; }
public virtual DbSet<TagShelf> TagShelf { get; set; }
public virtual DbSet<UserGroup> UserGroup { get; set; }
public virtual DbSet<WaitChemical> WaitChemical { get; set; }
} }
} }

909
Models/SQL_BD.edmx

File diff suppressed because it is too large

16
Models/SQL_BD.edmx.diagram

@ -22,17 +22,11 @@
<EntityTypeShape EntityType="BatchDyeingCentralModel.Steps" Width="1.5" PointX="11.75" PointY="4.75" IsExpanded="true" /> <EntityTypeShape EntityType="BatchDyeingCentralModel.Steps" Width="1.5" PointX="11.75" PointY="4.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.StepVisits" Width="1.5" PointX="11.75" PointY="9.75" IsExpanded="true" /> <EntityTypeShape EntityType="BatchDyeingCentralModel.StepVisits" Width="1.5" PointX="11.75" PointY="9.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.Stoppages" Width="1.5" PointX="13.75" PointY="0.75" IsExpanded="true" /> <EntityTypeShape EntityType="BatchDyeingCentralModel.Stoppages" Width="1.5" PointX="13.75" PointY="0.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.Users" Width="1.5" PointX="13.75" PointY="4.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.AuxDslvQueue" Width="1.5" PointX="13.75" PointY="7.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.AuxDslvQueueHistory" Width="1.5" PointX="13.75" PointY="11.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.BucketInfo" Width="1.5" PointX="15.75" PointY="0.75" IsExpanded="true" /> <EntityTypeShape EntityType="BatchDyeingCentralModel.BucketInfo" Width="1.5" PointX="15.75" PointY="0.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.BucketShelf" Width="1.5" PointX="2.75" PointY="15.75" IsExpanded="true" /> <EntityTypeShape EntityType="BatchDyeingCentralModel.BucketShelf" Width="1.5" PointX="2.75" PointY="15.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.BucketShelfHistory" Width="1.5" PointX="15.75" PointY="3.75" IsExpanded="true" /> <EntityTypeShape EntityType="BatchDyeingCentralModel.BucketShelfHistory" Width="1.5" PointX="15.75" PointY="3.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.BucketShelfQueue" Width="1.5" PointX="4.75" PointY="15.75" IsExpanded="true" /> <EntityTypeShape EntityType="BatchDyeingCentralModel.BucketShelfQueue" Width="1.5" PointX="4.75" PointY="15.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.BucketShelfQueueHistory" Width="1.5" PointX="15.75" PointY="8.75" IsExpanded="true" /> <EntityTypeShape EntityType="BatchDyeingCentralModel.BucketShelfQueueHistory" Width="1.5" PointX="15.75" PointY="8.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.CleanDevice" Width="1.5" PointX="15.75" PointY="12.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.DispenserEvent" Width="1.5" PointX="13.75" PointY="15.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.DispenserLifeStatus" Width="1.5" PointX="15.75" PointY="15.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.Dispensers" Width="1.5" PointX="9.75" PointY="16.75" IsExpanded="true" /> <EntityTypeShape EntityType="BatchDyeingCentralModel.Dispensers" Width="1.5" PointX="9.75" PointY="16.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.DispenserUtilization" Width="1.5" PointX="17.75" PointY="0.75" IsExpanded="true" /> <EntityTypeShape EntityType="BatchDyeingCentralModel.DispenserUtilization" Width="1.5" PointX="17.75" PointY="0.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.DyelotBuckets" Width="1.5" PointX="17.75" PointY="3.75" IsExpanded="true" /> <EntityTypeShape EntityType="BatchDyeingCentralModel.DyelotBuckets" Width="1.5" PointX="17.75" PointY="3.75" IsExpanded="true" />
@ -48,28 +42,18 @@
<EntityTypeShape EntityType="BatchDyeingCentralModel.DyelotsInAuto" Width="1.5" PointX="13.75" PointY="20.75" IsExpanded="true" /> <EntityTypeShape EntityType="BatchDyeingCentralModel.DyelotsInAuto" Width="1.5" PointX="13.75" PointY="20.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.DyelotsInAutoHistory" Width="1.5" PointX="15.75" PointY="20.75" IsExpanded="true" /> <EntityTypeShape EntityType="BatchDyeingCentralModel.DyelotsInAutoHistory" Width="1.5" PointX="15.75" PointY="20.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.EventList" Width="1.5" PointX="21.75" PointY="0.75" IsExpanded="true" /> <EntityTypeShape EntityType="BatchDyeingCentralModel.EventList" Width="1.5" PointX="21.75" PointY="0.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.LA571Tanks" Width="1.5" PointX="21.75" PointY="3.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.LabDyeDslvQueue" Width="1.5" PointX="4.75" PointY="21.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.LabDyeDslvQueueHistory" Width="1.5" PointX="21.75" PointY="6.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.MachinesHistory" Width="1.5" PointX="6.75" PointY="21.75" IsExpanded="true" /> <EntityTypeShape EntityType="BatchDyeingCentralModel.MachinesHistory" Width="1.5" PointX="6.75" PointY="21.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.MachineStateHistory" Width="1.5" PointX="8.75" PointY="21.75" IsExpanded="true" /> <EntityTypeShape EntityType="BatchDyeingCentralModel.MachineStateHistory" Width="1.5" PointX="8.75" PointY="21.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.ManualWeightQueue" Width="1.5" PointX="21.75" PointY="10.75" IsExpanded="true" /> <EntityTypeShape EntityType="BatchDyeingCentralModel.ManualWeightQueue" Width="1.5" PointX="21.75" PointY="10.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.ManualWeightQueueHistory" Width="1.5" PointX="21.75" PointY="14.75" IsExpanded="true" /> <EntityTypeShape EntityType="BatchDyeingCentralModel.ManualWeightQueueHistory" Width="1.5" PointX="21.75" PointY="14.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.PartsStatus" Width="1.5" PointX="21.75" PointY="18.75" IsExpanded="true" /> <EntityTypeShape EntityType="BatchDyeingCentralModel.PartsStatus" Width="1.5" PointX="21.75" PointY="18.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.PartsStatusHistory" Width="1.5" PointX="23.75" PointY="0.75" IsExpanded="true" /> <EntityTypeShape EntityType="BatchDyeingCentralModel.PartsStatusHistory" Width="1.5" PointX="23.75" PointY="0.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.PipeFill" Width="1.5" PointX="23.75" PointY="5.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.PipeHistory" Width="1.5" PointX="23.75" PointY="9.75" IsExpanded="true" /> <EntityTypeShape EntityType="BatchDyeingCentralModel.PipeHistory" Width="1.5" PointX="23.75" PointY="9.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.Pipes" Width="1.5" PointX="23.75" PointY="13.75" IsExpanded="true" /> <EntityTypeShape EntityType="BatchDyeingCentralModel.Pipes" Width="1.5" PointX="23.75" PointY="13.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.RecipeDeduct" Width="1.5" PointX="23.75" PointY="18.75" IsExpanded="true" /> <EntityTypeShape EntityType="BatchDyeingCentralModel.RecipeDeduct" Width="1.5" PointX="23.75" PointY="18.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.RecipeDeductHistory" Width="1.5" PointX="21.75" PointY="23.75" IsExpanded="true" /> <EntityTypeShape EntityType="BatchDyeingCentralModel.RecipeDeductHistory" Width="1.5" PointX="21.75" PointY="23.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.RFIDRecordQueue" Width="1.5" PointX="23.75" PointY="22.75" IsExpanded="true" /> <EntityTypeShape EntityType="BatchDyeingCentralModel.RFIDRecordQueue" Width="1.5" PointX="23.75" PointY="22.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.RFIDRecordQueueHistory" Width="1.5" PointX="13.75" PointY="24.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.SampleDyeDslvQueue" Width="1.5" PointX="15.75" PointY="24.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.SampleDyeDslvQueueHistory" Width="1.5" PointX="17.75" PointY="24.75" IsExpanded="true" /> <EntityTypeShape EntityType="BatchDyeingCentralModel.SampleDyeDslvQueueHistory" Width="1.5" PointX="17.75" PointY="24.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.Shelf" Width="1.5" PointX="25.75" PointY="0.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.TagShelf" Width="1.5" PointX="25.75" PointY="3.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.UserGroup" Width="1.5" PointX="25.75" PointY="7.75" IsExpanded="true" />
<EntityTypeShape EntityType="BatchDyeingCentralModel.WaitChemical" Width="1.5" PointX="25.75" PointY="10.75" IsExpanded="true" />
<AssociationConnector Association="BatchDyeingCentralModel.FKProgramGroups" ManuallyRouted="false" /> <AssociationConnector Association="BatchDyeingCentralModel.FKProgramGroups" ManuallyRouted="false" />
</Diagram> </Diagram>
</edmx:Diagrams> </edmx:Diagrams>

12
Models/SQL_Ti.Context.cs

@ -26,18 +26,6 @@ namespace Models
} }
public virtual DbSet<Product> Product { get; set; } public virtual DbSet<Product> Product { get; set; }
public virtual DbSet<ProductInventory> ProductInventory { get; set; }
public virtual DbSet<ProductUsed> ProductUsed { get; set; }
public virtual DbSet<CHEMICAL_QUEUE> CHEMICAL_QUEUE { get; set; }
public virtual DbSet<DYESTUFF_QUEUE> DYESTUFF_QUEUE { get; set; }
public virtual DbSet<JOBTKT> JOBTKT { get; set; }
public virtual DbSet<POWDER_QUEUE> POWDER_QUEUE { get; set; }
public virtual DbSet<REMOTETERMINAL> REMOTETERMINAL { get; set; }
public virtual DbSet<TEMPCHEMICALTKT> TEMPCHEMICALTKT { get; set; }
public virtual DbSet<TEMPDYESTUFFTKT> TEMPDYESTUFFTKT { get; set; }
public virtual DbSet<TEMPPOWDER> TEMPPOWDER { get; set; }
public virtual DbSet<TICKET_DETAIL> TICKET_DETAIL { get; set; }
public virtual DbSet<TicketSerial> TicketSerial { get; set; }
public virtual DbSet<UserAccount> UserAccount { get; set; } public virtual DbSet<UserAccount> UserAccount { get; set; }
} }
} }

2
Models/SQL_Ti.Designer.cs

@ -1,4 +1,4 @@
// 为模型“C:\Users\尚彩-沈忱\source\repos\Audit_APP\Models\SQL_Ti.edmx”启用了 T4 代码生成。 // 为模型“C:\Users\24018\source\repos\Audit_APP\Models\SQL_Ti.edmx”启用了 T4 代码生成。
// 要启用旧代码生成功能,请将“代码生成策略”设计器属性的值 // 要启用旧代码生成功能,请将“代码生成策略”设计器属性的值
// 更改为“旧的 ObjectContext”。当在设计器中打开该模型时,此属性会出现在 // 更改为“旧的 ObjectContext”。当在设计器中打开该模型时,此属性会出现在
// “属性”窗口中。 // “属性”窗口中。

711
Models/SQL_Ti.edmx

@ -16,36 +16,8 @@
</EntityType>--> </EntityType>-->
<!--生成过程中发现错误: <!--生成过程中发现错误:
警告 6002: 表/视图“Ticket.dbo.CHEMICAL_QUEUE”未定义主键。已推断出该键,并将定义创建为只读的表/视图。--> 警告 6002: 表/视图“Ticket.dbo.CHEMICAL_QUEUE”未定义主键。已推断出该键,并将定义创建为只读的表/视图。-->
<EntityType Name="CHEMICAL_QUEUE">
<Key>
<PropertyRef Name="ReDye" />
</Key>
<Property Name="tmp_field" Type="varchar" MaxLength="1" />
<Property Name="ID_NO" Type="char" MaxLength="30" />
<Property Name="STEP_NO" Type="int" />
<Property Name="CREATE_DATE" Type="char" MaxLength="8" />
<Property Name="CREATE_TIME" Type="char" MaxLength="8" />
<Property Name="FIRST_KEY" Type="char" MaxLength="30" />
<Property Name="SECOND_KEY" Type="char" MaxLength="30" />
<Property Name="PRIORITY" Type="int" />
<Property Name="ReDye" Type="int" Nullable="false" />
</EntityType>
<!--生成过程中发现错误: <!--生成过程中发现错误:
警告 6002: 表/视图“Ticket.dbo.DYESTUFF_QUEUE”未定义主键。已推断出该键,并将定义创建为只读的表/视图。--> 警告 6002: 表/视图“Ticket.dbo.DYESTUFF_QUEUE”未定义主键。已推断出该键,并将定义创建为只读的表/视图。-->
<EntityType Name="DYESTUFF_QUEUE">
<Key>
<PropertyRef Name="ReDye" />
</Key>
<Property Name="tmp_field" Type="varchar" MaxLength="1" />
<Property Name="ID_NO" Type="char" MaxLength="30" />
<Property Name="STEP_NO" Type="int" />
<Property Name="CREATE_DATE" Type="char" MaxLength="8" />
<Property Name="CREATE_TIME" Type="char" MaxLength="8" />
<Property Name="FIRST_KEY" Type="char" MaxLength="30" />
<Property Name="SECOND_KEY" Type="char" MaxLength="30" />
<Property Name="PRIORITY" Type="int" />
<Property Name="ReDye" Type="int" Nullable="false" />
</EntityType>
<!--生成过程中发现错误: <!--生成过程中发现错误:
警告 6013: 表/视图“Ticket.dbo.GroupAccount”未定义主键,并且无法推断有效的主键。已排除了此表/视图。若要使用实体,将需要检查您的架构、添加正确的键并取消对实体的注释。 警告 6013: 表/视图“Ticket.dbo.GroupAccount”未定义主键,并且无法推断有效的主键。已排除了此表/视图。若要使用实体,将需要检查您的架构、添加正确的键并取消对实体的注释。
<EntityType Name="GroupAccount"> <EntityType Name="GroupAccount">
@ -55,33 +27,8 @@
</EntityType>--> </EntityType>-->
<!--生成过程中发现错误: <!--生成过程中发现错误:
警告 6002: 表/视图“Ticket.dbo.JOBTKT”未定义主键。已推断出该键,并将定义创建为只读的表/视图。--> 警告 6002: 表/视图“Ticket.dbo.JOBTKT”未定义主键。已推断出该键,并将定义创建为只读的表/视图。-->
<EntityType Name="JOBTKT">
<Key>
<PropertyRef Name="ReDye" />
</Key>
<Property Name="tmp_field" Type="varchar" MaxLength="1" />
<Property Name="IDNO" Type="char" MaxLength="30" />
<Property Name="FNDATE" Type="float" />
<Property Name="FIRST_KEY" Type="char" MaxLength="30" />
<Property Name="SECOND_KEY" Type="char" MaxLength="30" />
<Property Name="ReDye" Type="int" Nullable="false" />
</EntityType>
<!--生成过程中发现错误: <!--生成过程中发现错误:
警告 6002: 表/视图“Ticket.dbo.POWDER_QUEUE”未定义主键。已推断出该键,并将定义创建为只读的表/视图。--> 警告 6002: 表/视图“Ticket.dbo.POWDER_QUEUE”未定义主键。已推断出该键,并将定义创建为只读的表/视图。-->
<EntityType Name="POWDER_QUEUE">
<Key>
<PropertyRef Name="ReDye" />
</Key>
<Property Name="tmp_field" Type="varchar" MaxLength="1" />
<Property Name="ID_NO" Type="char" MaxLength="30" />
<Property Name="STEP_NO" Type="int" />
<Property Name="CREATE_DATE" Type="char" MaxLength="8" />
<Property Name="CREATE_TIME" Type="char" MaxLength="8" />
<Property Name="FIRST_KEY" Type="char" MaxLength="30" />
<Property Name="SECOND_KEY" Type="char" MaxLength="30" />
<Property Name="PRIORITY" Type="int" />
<Property Name="ReDye" Type="int" Nullable="false" />
</EntityType>
<EntityType Name="Product"> <EntityType Name="Product">
<Key> <Key>
<PropertyRef Name="ProductCode" /> <PropertyRef Name="ProductCode" />
@ -147,15 +94,6 @@
<Property Name="GRAVITY" Type="float" Nullable="false" /> <Property Name="GRAVITY" Type="float" Nullable="false" />
<Property Name="UserAccount" Type="varchar" MaxLength="30" /> <Property Name="UserAccount" Type="varchar" MaxLength="30" />
</EntityType> </EntityType>
<EntityType Name="ProductInventory">
<Key>
<PropertyRef Name="ProductCode" />
</Key>
<Property Name="ProductCode" Type="nchar" MaxLength="20" Nullable="false" />
<Property Name="Quantity" Type="float" />
<Property Name="Price" Type="float" />
<Property Name="CreateDate" Type="datetime" />
</EntityType>
<!--生成过程中发现错误: <!--生成过程中发现错误:
警告 6013: 表/视图“Ticket.dbo.ProductKind”未定义主键,并且无法推断有效的主键。已排除了此表/视图。若要使用实体,将需要检查您的架构、添加正确的键并取消对实体的注释。 警告 6013: 表/视图“Ticket.dbo.ProductKind”未定义主键,并且无法推断有效的主键。已排除了此表/视图。若要使用实体,将需要检查您的架构、添加正确的键并取消对实体的注释。
<EntityType Name="ProductKind"> <EntityType Name="ProductKind">
@ -163,122 +101,16 @@
<Property Name="KIND_NAME" Type="nvarchar" MaxLength="50" /> <Property Name="KIND_NAME" Type="nvarchar" MaxLength="50" />
<Property Name="ORDER_NO" Type="int" /> <Property Name="ORDER_NO" Type="int" />
</EntityType>--> </EntityType>-->
<EntityType Name="ProductUsed">
<Key>
<PropertyRef Name="ProductCode" />
</Key>
<Property Name="ProductCode" Type="nchar" MaxLength="20" Nullable="false" />
<Property Name="UsedQty" Type="float" />
<Property Name="CreateDate" Type="datetime" />
</EntityType>
<!--生成过程中发现错误: <!--生成过程中发现错误:
警告 6002: 表/视图“Ticket.dbo.REMOTETERMINAL”未定义主键。已推断出该键,并将定义创建为只读的表/视图。--> 警告 6002: 表/视图“Ticket.dbo.REMOTETERMINAL”未定义主键。已推断出该键,并将定义创建为只读的表/视图。-->
<EntityType Name="REMOTETERMINAL">
<Key>
<PropertyRef Name="ReDye" />
</Key>
<Property Name="tmp_field" Type="varchar" MaxLength="1" />
<Property Name="IDNO" Type="char" MaxLength="30" />
<Property Name="FNDATE" Type="float" />
<Property Name="IDTYPE" Type="char" MaxLength="1" />
<Property Name="FIRST_KEY" Type="char" MaxLength="30" />
<Property Name="SECOND_KEY" Type="char" MaxLength="30" />
<Property Name="ReDye" Type="int" Nullable="false" />
</EntityType>
<!--生成过程中发现错误: <!--生成过程中发现错误:
警告 6002: 表/视图“Ticket.dbo.TEMPCHEMICALTKT”未定义主键。已推断出该键,并将定义创建为只读的表/视图。--> 警告 6002: 表/视图“Ticket.dbo.TEMPCHEMICALTKT”未定义主键。已推断出该键,并将定义创建为只读的表/视图。-->
<EntityType Name="TEMPCHEMICALTKT">
<Key>
<PropertyRef Name="ReDye" />
</Key>
<Property Name="tmp_field" Type="varchar" MaxLength="1" />
<Property Name="IDNO" Type="char" MaxLength="30" />
<Property Name="FNDATE" Type="float" />
<Property Name="IDTYPE" Type="char" MaxLength="1" />
<Property Name="FIRST_KEY" Type="char" MaxLength="30" />
<Property Name="SECOND_KEY" Type="char" MaxLength="30" />
<Property Name="ReDye" Type="int" Nullable="false" />
</EntityType>
<!--生成过程中发现错误: <!--生成过程中发现错误:
警告 6002: 表/视图“Ticket.dbo.TEMPDYESTUFFTKT”未定义主键。已推断出该键,并将定义创建为只读的表/视图。--> 警告 6002: 表/视图“Ticket.dbo.TEMPDYESTUFFTKT”未定义主键。已推断出该键,并将定义创建为只读的表/视图。-->
<EntityType Name="TEMPDYESTUFFTKT">
<Key>
<PropertyRef Name="ReDye" />
</Key>
<Property Name="tmp_field" Type="varchar" MaxLength="1" />
<Property Name="IDNO" Type="char" MaxLength="30" />
<Property Name="FNDATE" Type="float" />
<Property Name="IDTYPE" Type="char" MaxLength="1" />
<Property Name="FIRST_KEY" Type="char" MaxLength="30" />
<Property Name="SECOND_KEY" Type="char" MaxLength="30" />
<Property Name="ReDye" Type="int" Nullable="false" />
</EntityType>
<!--生成过程中发现错误: <!--生成过程中发现错误:
警告 6002: 表/视图“Ticket.dbo.TEMPPOWDER”未定义主键。已推断出该键,并将定义创建为只读的表/视图。--> 警告 6002: 表/视图“Ticket.dbo.TEMPPOWDER”未定义主键。已推断出该键,并将定义创建为只读的表/视图。-->
<EntityType Name="TEMPPOWDER">
<Key>
<PropertyRef Name="ReDye" />
</Key>
<Property Name="tmp_field" Type="varchar" MaxLength="1" />
<Property Name="IDNO" Type="char" MaxLength="30" />
<Property Name="FNDATE" Type="float" />
<Property Name="IDTYPE" Type="char" MaxLength="1" />
<Property Name="FIRST_KEY" Type="char" MaxLength="30" />
<Property Name="SECOND_KEY" Type="char" MaxLength="30" />
<Property Name="ReDye" Type="int" Nullable="false" />
</EntityType>
<!--生成过程中发现错误: <!--生成过程中发现错误:
警告 6002: 表/视图“Ticket.dbo.TICKET_DETAIL”未定义主键。已推断出该键,并将定义创建为只读的表/视图。--> 警告 6002: 表/视图“Ticket.dbo.TICKET_DETAIL”未定义主键。已推断出该键,并将定义创建为只读的表/视图。-->
<EntityType Name="TICKET_DETAIL">
<Key>
<PropertyRef Name="GRAVITY" />
</Key>
<Property Name="ID_NO" Type="char" MaxLength="30" />
<Property Name="STEP_NO" Type="int" />
<Property Name="PRODUCT_CODE" Type="char" MaxLength="30" />
<Property Name="PRODUCT_TYPE" Type="char" MaxLength="1" />
<Property Name="TARGET_WT" Type="float" />
<Property Name="ACTUAL_WT" Type="float" />
<Property Name="UNIT" Type="char" MaxLength="2" />
<Property Name="COMP_DATE" Type="char" MaxLength="8" />
<Property Name="COMP_TIME" Type="char" MaxLength="8" />
<Property Name="TRANSFER_STATE" Type="int" />
<Property Name="ERROR_CODE" Type="char" MaxLength="48" />
<Property Name="MACHINE" Type="char" MaxLength="10" />
<Property Name="TANK_NO" Type="char" MaxLength="10" />
<Property Name="ID_TYPE" Type="char" MaxLength="1" />
<Property Name="PRODUCT_LOT" Type="char" MaxLength="30" />
<Property Name="RECIPE_CODE" Type="char" MaxLength="24" />
<Property Name="LR" Type="float" />
<Property Name="RECIPE_TYPE" Type="char" MaxLength="1" />
<Property Name="CONC" Type="char" MaxLength="10" />
<Property Name="CONCUNIT" Type="char" MaxLength="3" />
<Property Name="REMARK" Type="char" MaxLength="30" />
<Property Name="ADJUST" Type="char" MaxLength="10" />
<Property Name="PRICE" Type="float" />
<Property Name="RES_DOUBLE1" Type="float" />
<Property Name="RES_DOUBLE2" Type="float" />
<Property Name="RES_DOUBLE3" Type="float" />
<Property Name="RES_DOUBLE4" Type="float" />
<Property Name="RES_STRING1" Type="char" MaxLength="48" />
<Property Name="RES_STRING2" Type="char" MaxLength="48" />
<Property Name="RES_STRING3" Type="char" MaxLength="48" />
<Property Name="RES_STRING4" Type="char" MaxLength="48" />
<Property Name="REWEIGHT" Type="char" MaxLength="1" />
<Property Name="Redye" Type="int" />
<Property Name="DyeWeightTime" Type="datetime" />
<Property Name="UserAccount" Type="varchar" MaxLength="30" />
<Property Name="Batch_NO" Type="varchar" MaxLength="30" />
<Property Name="lldmxid" Type="int" />
<Property Name="Station" Type="varchar" MaxLength="30" />
<Property Name="UserCode" Type="char" MaxLength="10" />
<Property Name="FABRIC_WEIGHT" Type="float" />
<Property Name="VOLUME" Type="float" />
<Property Name="RECORD_ORDER" Type="smallint" />
<Property Name="Process" Type="varchar" MaxLength="50" />
<Property Name="GRAVITY" Type="float" Nullable="false" />
<Property Name="CurrentStock" Type="float" />
</EntityType>
<!--生成过程中发现错误: <!--生成过程中发现错误:
警告 6013: 表/视图“Ticket.dbo.TICKET_TITLE”未定义主键,并且无法推断有效的主键。已排除了此表/视图。若要使用实体,将需要检查您的架构、添加正确的键并取消对实体的注释。 警告 6013: 表/视图“Ticket.dbo.TICKET_TITLE”未定义主键,并且无法推断有效的主键。已排除了此表/视图。若要使用实体,将需要检查您的架构、添加正确的键并取消对实体的注释。
<EntityType Name="TICKET_TITLE"> <EntityType Name="TICKET_TITLE">
@ -339,21 +171,13 @@
</EntityType>--> </EntityType>-->
<!--生成过程中发现错误: <!--生成过程中发现错误:
警告 6002: 表/视图“Ticket.dbo.TicketSerial”未定义主键。已推断出该键,并将定义创建为只读的表/视图。--> 警告 6002: 表/视图“Ticket.dbo.TicketSerial”未定义主键。已推断出该键,并将定义创建为只读的表/视图。-->
<EntityType Name="TicketSerial">
<Key>
<PropertyRef Name="REDYE_NOW" />
</Key>
<Property Name="tmp_field" Type="varchar" MaxLength="1" />
<Property Name="ID_NO" Type="char" MaxLength="30" />
<Property Name="REDYE_NOW" Type="int" Nullable="false" />
</EntityType>
<!--生成过程中发现错误: <!--生成过程中发现错误:
警告 6002: 表/视图“Ticket.dbo.UserAccount”未定义主键。已推断出该键,并将定义创建为只读的表/视图。--> 警告 6002: 表/视图“Ticket.dbo.UserAccount”未定义主键。已推断出该键,并将定义创建为只读的表/视图。-->
<EntityType Name="UserAccount"> <EntityType Name="UserAccount">
<Key> <Key>
<PropertyRef Name="GROUP_CODE" /> <PropertyRef Name="tmp_field" />
</Key> </Key>
<Property Name="tmp_field" Type="varchar" MaxLength="1" /> <Property Name="tmp_field" Type="varchar" MaxLength="1" Nullable="false" />
<Property Name="UserCode" Type="varchar" MaxLength="50" /> <Property Name="UserCode" Type="varchar" MaxLength="50" />
<Property Name="PassWord" Type="varchar" MaxLength="50" /> <Property Name="PassWord" Type="varchar" MaxLength="50" />
<Property Name="JobTicket" Type="int" /> <Property Name="JobTicket" Type="int" />
@ -364,157 +188,6 @@
</EntityType> </EntityType>
<EntityContainer Name="TicketModelStoreContainer"> <EntityContainer Name="TicketModelStoreContainer">
<EntitySet Name="Product" EntityType="Self.Product" Schema="dbo" store:Type="Tables" /> <EntitySet Name="Product" EntityType="Self.Product" Schema="dbo" store:Type="Tables" />
<EntitySet Name="ProductInventory" EntityType="Self.ProductInventory" Schema="dbo" store:Type="Tables" />
<EntitySet Name="ProductUsed" EntityType="Self.ProductUsed" Schema="dbo" store:Type="Tables" />
<EntitySet Name="CHEMICAL_QUEUE" EntityType="Self.CHEMICAL_QUEUE" store:Type="Tables" store:Schema="dbo">
<DefiningQuery>SELECT
[CHEMICAL_QUEUE].[tmp_field] AS [tmp_field],
[CHEMICAL_QUEUE].[ID_NO] AS [ID_NO],
[CHEMICAL_QUEUE].[STEP_NO] AS [STEP_NO],
[CHEMICAL_QUEUE].[CREATE_DATE] AS [CREATE_DATE],
[CHEMICAL_QUEUE].[CREATE_TIME] AS [CREATE_TIME],
[CHEMICAL_QUEUE].[FIRST_KEY] AS [FIRST_KEY],
[CHEMICAL_QUEUE].[SECOND_KEY] AS [SECOND_KEY],
[CHEMICAL_QUEUE].[PRIORITY] AS [PRIORITY],
[CHEMICAL_QUEUE].[ReDye] AS [ReDye]
FROM [dbo].[CHEMICAL_QUEUE] AS [CHEMICAL_QUEUE]</DefiningQuery>
</EntitySet>
<EntitySet Name="DYESTUFF_QUEUE" EntityType="Self.DYESTUFF_QUEUE" store:Type="Tables" store:Schema="dbo">
<DefiningQuery>SELECT
[DYESTUFF_QUEUE].[tmp_field] AS [tmp_field],
[DYESTUFF_QUEUE].[ID_NO] AS [ID_NO],
[DYESTUFF_QUEUE].[STEP_NO] AS [STEP_NO],
[DYESTUFF_QUEUE].[CREATE_DATE] AS [CREATE_DATE],
[DYESTUFF_QUEUE].[CREATE_TIME] AS [CREATE_TIME],
[DYESTUFF_QUEUE].[FIRST_KEY] AS [FIRST_KEY],
[DYESTUFF_QUEUE].[SECOND_KEY] AS [SECOND_KEY],
[DYESTUFF_QUEUE].[PRIORITY] AS [PRIORITY],
[DYESTUFF_QUEUE].[ReDye] AS [ReDye]
FROM [dbo].[DYESTUFF_QUEUE] AS [DYESTUFF_QUEUE]</DefiningQuery>
</EntitySet>
<EntitySet Name="JOBTKT" EntityType="Self.JOBTKT" store:Type="Tables" store:Schema="dbo">
<DefiningQuery>SELECT
[JOBTKT].[tmp_field] AS [tmp_field],
[JOBTKT].[IDNO] AS [IDNO],
[JOBTKT].[FNDATE] AS [FNDATE],
[JOBTKT].[FIRST_KEY] AS [FIRST_KEY],
[JOBTKT].[SECOND_KEY] AS [SECOND_KEY],
[JOBTKT].[ReDye] AS [ReDye]
FROM [dbo].[JOBTKT] AS [JOBTKT]</DefiningQuery>
</EntitySet>
<EntitySet Name="POWDER_QUEUE" EntityType="Self.POWDER_QUEUE" store:Type="Tables" store:Schema="dbo">
<DefiningQuery>SELECT
[POWDER_QUEUE].[tmp_field] AS [tmp_field],
[POWDER_QUEUE].[ID_NO] AS [ID_NO],
[POWDER_QUEUE].[STEP_NO] AS [STEP_NO],
[POWDER_QUEUE].[CREATE_DATE] AS [CREATE_DATE],
[POWDER_QUEUE].[CREATE_TIME] AS [CREATE_TIME],
[POWDER_QUEUE].[FIRST_KEY] AS [FIRST_KEY],
[POWDER_QUEUE].[SECOND_KEY] AS [SECOND_KEY],
[POWDER_QUEUE].[PRIORITY] AS [PRIORITY],
[POWDER_QUEUE].[ReDye] AS [ReDye]
FROM [dbo].[POWDER_QUEUE] AS [POWDER_QUEUE]</DefiningQuery>
</EntitySet>
<EntitySet Name="REMOTETERMINAL" EntityType="Self.REMOTETERMINAL" store:Type="Tables" store:Schema="dbo">
<DefiningQuery>SELECT
[REMOTETERMINAL].[tmp_field] AS [tmp_field],
[REMOTETERMINAL].[IDNO] AS [IDNO],
[REMOTETERMINAL].[FNDATE] AS [FNDATE],
[REMOTETERMINAL].[IDTYPE] AS [IDTYPE],
[REMOTETERMINAL].[FIRST_KEY] AS [FIRST_KEY],
[REMOTETERMINAL].[SECOND_KEY] AS [SECOND_KEY],
[REMOTETERMINAL].[ReDye] AS [ReDye]
FROM [dbo].[REMOTETERMINAL] AS [REMOTETERMINAL]</DefiningQuery>
</EntitySet>
<EntitySet Name="TEMPCHEMICALTKT" EntityType="Self.TEMPCHEMICALTKT" store:Type="Tables" store:Schema="dbo">
<DefiningQuery>SELECT
[TEMPCHEMICALTKT].[tmp_field] AS [tmp_field],
[TEMPCHEMICALTKT].[IDNO] AS [IDNO],
[TEMPCHEMICALTKT].[FNDATE] AS [FNDATE],
[TEMPCHEMICALTKT].[IDTYPE] AS [IDTYPE],
[TEMPCHEMICALTKT].[FIRST_KEY] AS [FIRST_KEY],
[TEMPCHEMICALTKT].[SECOND_KEY] AS [SECOND_KEY],
[TEMPCHEMICALTKT].[ReDye] AS [ReDye]
FROM [dbo].[TEMPCHEMICALTKT] AS [TEMPCHEMICALTKT]</DefiningQuery>
</EntitySet>
<EntitySet Name="TEMPDYESTUFFTKT" EntityType="Self.TEMPDYESTUFFTKT" store:Type="Tables" store:Schema="dbo">
<DefiningQuery>SELECT
[TEMPDYESTUFFTKT].[tmp_field] AS [tmp_field],
[TEMPDYESTUFFTKT].[IDNO] AS [IDNO],
[TEMPDYESTUFFTKT].[FNDATE] AS [FNDATE],
[TEMPDYESTUFFTKT].[IDTYPE] AS [IDTYPE],
[TEMPDYESTUFFTKT].[FIRST_KEY] AS [FIRST_KEY],
[TEMPDYESTUFFTKT].[SECOND_KEY] AS [SECOND_KEY],
[TEMPDYESTUFFTKT].[ReDye] AS [ReDye]
FROM [dbo].[TEMPDYESTUFFTKT] AS [TEMPDYESTUFFTKT]</DefiningQuery>
</EntitySet>
<EntitySet Name="TEMPPOWDER" EntityType="Self.TEMPPOWDER" store:Type="Tables" store:Schema="dbo">
<DefiningQuery>SELECT
[TEMPPOWDER].[tmp_field] AS [tmp_field],
[TEMPPOWDER].[IDNO] AS [IDNO],
[TEMPPOWDER].[FNDATE] AS [FNDATE],
[TEMPPOWDER].[IDTYPE] AS [IDTYPE],
[TEMPPOWDER].[FIRST_KEY] AS [FIRST_KEY],
[TEMPPOWDER].[SECOND_KEY] AS [SECOND_KEY],
[TEMPPOWDER].[ReDye] AS [ReDye]
FROM [dbo].[TEMPPOWDER] AS [TEMPPOWDER]</DefiningQuery>
</EntitySet>
<EntitySet Name="TICKET_DETAIL" EntityType="Self.TICKET_DETAIL" store:Type="Tables" store:Schema="dbo">
<DefiningQuery>SELECT
[TICKET_DETAIL].[ID_NO] AS [ID_NO],
[TICKET_DETAIL].[STEP_NO] AS [STEP_NO],
[TICKET_DETAIL].[PRODUCT_CODE] AS [PRODUCT_CODE],
[TICKET_DETAIL].[PRODUCT_TYPE] AS [PRODUCT_TYPE],
[TICKET_DETAIL].[TARGET_WT] AS [TARGET_WT],
[TICKET_DETAIL].[ACTUAL_WT] AS [ACTUAL_WT],
[TICKET_DETAIL].[UNIT] AS [UNIT],
[TICKET_DETAIL].[COMP_DATE] AS [COMP_DATE],
[TICKET_DETAIL].[COMP_TIME] AS [COMP_TIME],
[TICKET_DETAIL].[TRANSFER_STATE] AS [TRANSFER_STATE],
[TICKET_DETAIL].[ERROR_CODE] AS [ERROR_CODE],
[TICKET_DETAIL].[MACHINE] AS [MACHINE],
[TICKET_DETAIL].[TANK_NO] AS [TANK_NO],
[TICKET_DETAIL].[ID_TYPE] AS [ID_TYPE],
[TICKET_DETAIL].[PRODUCT_LOT] AS [PRODUCT_LOT],
[TICKET_DETAIL].[RECIPE_CODE] AS [RECIPE_CODE],
[TICKET_DETAIL].[LR] AS [LR],
[TICKET_DETAIL].[RECIPE_TYPE] AS [RECIPE_TYPE],
[TICKET_DETAIL].[CONC] AS [CONC],
[TICKET_DETAIL].[CONCUNIT] AS [CONCUNIT],
[TICKET_DETAIL].[REMARK] AS [REMARK],
[TICKET_DETAIL].[ADJUST] AS [ADJUST],
[TICKET_DETAIL].[PRICE] AS [PRICE],
[TICKET_DETAIL].[RES_DOUBLE1] AS [RES_DOUBLE1],
[TICKET_DETAIL].[RES_DOUBLE2] AS [RES_DOUBLE2],
[TICKET_DETAIL].[RES_DOUBLE3] AS [RES_DOUBLE3],
[TICKET_DETAIL].[RES_DOUBLE4] AS [RES_DOUBLE4],
[TICKET_DETAIL].[RES_STRING1] AS [RES_STRING1],
[TICKET_DETAIL].[RES_STRING2] AS [RES_STRING2],
[TICKET_DETAIL].[RES_STRING3] AS [RES_STRING3],
[TICKET_DETAIL].[RES_STRING4] AS [RES_STRING4],
[TICKET_DETAIL].[REWEIGHT] AS [REWEIGHT],
[TICKET_DETAIL].[Redye] AS [Redye],
[TICKET_DETAIL].[DyeWeightTime] AS [DyeWeightTime],
[TICKET_DETAIL].[UserAccount] AS [UserAccount],
[TICKET_DETAIL].[Batch_NO] AS [Batch_NO],
[TICKET_DETAIL].[lldmxid] AS [lldmxid],
[TICKET_DETAIL].[Station] AS [Station],
[TICKET_DETAIL].[UserCode] AS [UserCode],
[TICKET_DETAIL].[FABRIC_WEIGHT] AS [FABRIC_WEIGHT],
[TICKET_DETAIL].[VOLUME] AS [VOLUME],
[TICKET_DETAIL].[RECORD_ORDER] AS [RECORD_ORDER],
[TICKET_DETAIL].[Process] AS [Process],
[TICKET_DETAIL].[GRAVITY] AS [GRAVITY],
[TICKET_DETAIL].[CurrentStock] AS [CurrentStock]
FROM [dbo].[TICKET_DETAIL] AS [TICKET_DETAIL]</DefiningQuery>
</EntitySet>
<EntitySet Name="TicketSerial" EntityType="Self.TicketSerial" store:Type="Tables" store:Schema="dbo">
<DefiningQuery>SELECT
[TicketSerial].[tmp_field] AS [tmp_field],
[TicketSerial].[ID_NO] AS [ID_NO],
[TicketSerial].[REDYE_NOW] AS [REDYE_NOW]
FROM [dbo].[TicketSerial] AS [TicketSerial]</DefiningQuery>
</EntitySet>
<EntitySet Name="UserAccount" EntityType="Self.UserAccount" store:Type="Tables" store:Schema="dbo"> <EntitySet Name="UserAccount" EntityType="Self.UserAccount" store:Type="Tables" store:Schema="dbo">
<DefiningQuery>SELECT <DefiningQuery>SELECT
[UserAccount].[tmp_field] AS [tmp_field], [UserAccount].[tmp_field] AS [tmp_field],
@ -598,187 +271,11 @@
<Property Name="GRAVITY" Type="Double" Nullable="false" /> <Property Name="GRAVITY" Type="Double" Nullable="false" />
<Property Name="UserAccount" Type="String" MaxLength="30" FixedLength="false" Unicode="false" /> <Property Name="UserAccount" Type="String" MaxLength="30" FixedLength="false" Unicode="false" />
</EntityType> </EntityType>
<EntityType Name="ProductInventory">
<Key>
<PropertyRef Name="ProductCode" />
</Key>
<Property Name="ProductCode" Type="String" MaxLength="20" FixedLength="true" Unicode="true" Nullable="false" />
<Property Name="Quantity" Type="Double" />
<Property Name="Price" Type="Double" />
<Property Name="CreateDate" Type="DateTime" Precision="3" />
</EntityType>
<EntityType Name="ProductUsed">
<Key>
<PropertyRef Name="ProductCode" />
</Key>
<Property Name="ProductCode" Type="String" MaxLength="20" FixedLength="true" Unicode="true" Nullable="false" />
<Property Name="UsedQty" Type="Double" />
<Property Name="CreateDate" Type="DateTime" Precision="3" />
</EntityType>
<EntityType Name="CHEMICAL_QUEUE">
<Key>
<PropertyRef Name="ReDye" />
</Key>
<Property Name="tmp_field" Type="String" MaxLength="1" FixedLength="false" Unicode="false" />
<Property Name="ID_NO" Type="String" MaxLength="30" FixedLength="true" Unicode="false" />
<Property Name="STEP_NO" Type="Int32" />
<Property Name="CREATE_DATE" Type="String" MaxLength="8" FixedLength="true" Unicode="false" />
<Property Name="CREATE_TIME" Type="String" MaxLength="8" FixedLength="true" Unicode="false" />
<Property Name="FIRST_KEY" Type="String" MaxLength="30" FixedLength="true" Unicode="false" />
<Property Name="SECOND_KEY" Type="String" MaxLength="30" FixedLength="true" Unicode="false" />
<Property Name="PRIORITY" Type="Int32" />
<Property Name="ReDye" Type="Int32" Nullable="false" />
</EntityType>
<EntityType Name="DYESTUFF_QUEUE">
<Key>
<PropertyRef Name="ReDye" />
</Key>
<Property Name="tmp_field" Type="String" MaxLength="1" FixedLength="false" Unicode="false" />
<Property Name="ID_NO" Type="String" MaxLength="30" FixedLength="true" Unicode="false" />
<Property Name="STEP_NO" Type="Int32" />
<Property Name="CREATE_DATE" Type="String" MaxLength="8" FixedLength="true" Unicode="false" />
<Property Name="CREATE_TIME" Type="String" MaxLength="8" FixedLength="true" Unicode="false" />
<Property Name="FIRST_KEY" Type="String" MaxLength="30" FixedLength="true" Unicode="false" />
<Property Name="SECOND_KEY" Type="String" MaxLength="30" FixedLength="true" Unicode="false" />
<Property Name="PRIORITY" Type="Int32" />
<Property Name="ReDye" Type="Int32" Nullable="false" />
</EntityType>
<EntityType Name="JOBTKT">
<Key>
<PropertyRef Name="ReDye" />
</Key>
<Property Name="tmp_field" Type="String" MaxLength="1" FixedLength="false" Unicode="false" />
<Property Name="IDNO" Type="String" MaxLength="30" FixedLength="true" Unicode="false" />
<Property Name="FNDATE" Type="Double" />
<Property Name="FIRST_KEY" Type="String" MaxLength="30" FixedLength="true" Unicode="false" />
<Property Name="SECOND_KEY" Type="String" MaxLength="30" FixedLength="true" Unicode="false" />
<Property Name="ReDye" Type="Int32" Nullable="false" />
</EntityType>
<EntityType Name="POWDER_QUEUE">
<Key>
<PropertyRef Name="ReDye" />
</Key>
<Property Name="tmp_field" Type="String" MaxLength="1" FixedLength="false" Unicode="false" />
<Property Name="ID_NO" Type="String" MaxLength="30" FixedLength="true" Unicode="false" />
<Property Name="STEP_NO" Type="Int32" />
<Property Name="CREATE_DATE" Type="String" MaxLength="8" FixedLength="true" Unicode="false" />
<Property Name="CREATE_TIME" Type="String" MaxLength="8" FixedLength="true" Unicode="false" />
<Property Name="FIRST_KEY" Type="String" MaxLength="30" FixedLength="true" Unicode="false" />
<Property Name="SECOND_KEY" Type="String" MaxLength="30" FixedLength="true" Unicode="false" />
<Property Name="PRIORITY" Type="Int32" />
<Property Name="ReDye" Type="Int32" Nullable="false" />
</EntityType>
<EntityType Name="REMOTETERMINAL">
<Key>
<PropertyRef Name="ReDye" />
</Key>
<Property Name="tmp_field" Type="String" MaxLength="1" FixedLength="false" Unicode="false" />
<Property Name="IDNO" Type="String" MaxLength="30" FixedLength="true" Unicode="false" />
<Property Name="FNDATE" Type="Double" />
<Property Name="IDTYPE" Type="String" MaxLength="1" FixedLength="true" Unicode="false" />
<Property Name="FIRST_KEY" Type="String" MaxLength="30" FixedLength="true" Unicode="false" />
<Property Name="SECOND_KEY" Type="String" MaxLength="30" FixedLength="true" Unicode="false" />
<Property Name="ReDye" Type="Int32" Nullable="false" />
</EntityType>
<EntityType Name="TEMPCHEMICALTKT">
<Key>
<PropertyRef Name="ReDye" />
</Key>
<Property Name="tmp_field" Type="String" MaxLength="1" FixedLength="false" Unicode="false" />
<Property Name="IDNO" Type="String" MaxLength="30" FixedLength="true" Unicode="false" />
<Property Name="FNDATE" Type="Double" />
<Property Name="IDTYPE" Type="String" MaxLength="1" FixedLength="true" Unicode="false" />
<Property Name="FIRST_KEY" Type="String" MaxLength="30" FixedLength="true" Unicode="false" />
<Property Name="SECOND_KEY" Type="String" MaxLength="30" FixedLength="true" Unicode="false" />
<Property Name="ReDye" Type="Int32" Nullable="false" />
</EntityType>
<EntityType Name="TEMPDYESTUFFTKT">
<Key>
<PropertyRef Name="ReDye" />
</Key>
<Property Name="tmp_field" Type="String" MaxLength="1" FixedLength="false" Unicode="false" />
<Property Name="IDNO" Type="String" MaxLength="30" FixedLength="true" Unicode="false" />
<Property Name="FNDATE" Type="Double" />
<Property Name="IDTYPE" Type="String" MaxLength="1" FixedLength="true" Unicode="false" />
<Property Name="FIRST_KEY" Type="String" MaxLength="30" FixedLength="true" Unicode="false" />
<Property Name="SECOND_KEY" Type="String" MaxLength="30" FixedLength="true" Unicode="false" />
<Property Name="ReDye" Type="Int32" Nullable="false" />
</EntityType>
<EntityType Name="TEMPPOWDER">
<Key>
<PropertyRef Name="ReDye" />
</Key>
<Property Name="tmp_field" Type="String" MaxLength="1" FixedLength="false" Unicode="false" />
<Property Name="IDNO" Type="String" MaxLength="30" FixedLength="true" Unicode="false" />
<Property Name="FNDATE" Type="Double" />
<Property Name="IDTYPE" Type="String" MaxLength="1" FixedLength="true" Unicode="false" />
<Property Name="FIRST_KEY" Type="String" MaxLength="30" FixedLength="true" Unicode="false" />
<Property Name="SECOND_KEY" Type="String" MaxLength="30" FixedLength="true" Unicode="false" />
<Property Name="ReDye" Type="Int32" Nullable="false" />
</EntityType>
<EntityType Name="TICKET_DETAIL">
<Key>
<PropertyRef Name="GRAVITY" />
</Key>
<Property Name="ID_NO" Type="String" MaxLength="30" FixedLength="true" Unicode="false" />
<Property Name="STEP_NO" Type="Int32" />
<Property Name="PRODUCT_CODE" Type="String" MaxLength="30" FixedLength="true" Unicode="false" />
<Property Name="PRODUCT_TYPE" Type="String" MaxLength="1" FixedLength="true" Unicode="false" />
<Property Name="TARGET_WT" Type="Double" />
<Property Name="ACTUAL_WT" Type="Double" />
<Property Name="UNIT" Type="String" MaxLength="2" FixedLength="true" Unicode="false" />
<Property Name="COMP_DATE" Type="String" MaxLength="8" FixedLength="true" Unicode="false" />
<Property Name="COMP_TIME" Type="String" MaxLength="8" FixedLength="true" Unicode="false" />
<Property Name="TRANSFER_STATE" Type="Int32" />
<Property Name="ERROR_CODE" Type="String" MaxLength="48" FixedLength="true" Unicode="false" />
<Property Name="MACHINE" Type="String" MaxLength="10" FixedLength="true" Unicode="false" />
<Property Name="TANK_NO" Type="String" MaxLength="10" FixedLength="true" Unicode="false" />
<Property Name="ID_TYPE" Type="String" MaxLength="1" FixedLength="true" Unicode="false" />
<Property Name="PRODUCT_LOT" Type="String" MaxLength="30" FixedLength="true" Unicode="false" />
<Property Name="RECIPE_CODE" Type="String" MaxLength="24" FixedLength="true" Unicode="false" />
<Property Name="LR" Type="Double" />
<Property Name="RECIPE_TYPE" Type="String" MaxLength="1" FixedLength="true" Unicode="false" />
<Property Name="CONC" Type="String" MaxLength="10" FixedLength="true" Unicode="false" />
<Property Name="CONCUNIT" Type="String" MaxLength="3" FixedLength="true" Unicode="false" />
<Property Name="REMARK" Type="String" MaxLength="30" FixedLength="true" Unicode="false" />
<Property Name="ADJUST" Type="String" MaxLength="10" FixedLength="true" Unicode="false" />
<Property Name="PRICE" Type="Double" />
<Property Name="RES_DOUBLE1" Type="Double" />
<Property Name="RES_DOUBLE2" Type="Double" />
<Property Name="RES_DOUBLE3" Type="Double" />
<Property Name="RES_DOUBLE4" Type="Double" />
<Property Name="RES_STRING1" Type="String" MaxLength="48" FixedLength="true" Unicode="false" />
<Property Name="RES_STRING2" Type="String" MaxLength="48" FixedLength="true" Unicode="false" />
<Property Name="RES_STRING3" Type="String" MaxLength="48" FixedLength="true" Unicode="false" />
<Property Name="RES_STRING4" Type="String" MaxLength="48" FixedLength="true" Unicode="false" />
<Property Name="REWEIGHT" Type="String" MaxLength="1" FixedLength="true" Unicode="false" />
<Property Name="Redye" Type="Int32" />
<Property Name="DyeWeightTime" Type="DateTime" Precision="3" />
<Property Name="UserAccount" Type="String" MaxLength="30" FixedLength="false" Unicode="false" />
<Property Name="Batch_NO" Type="String" MaxLength="30" FixedLength="false" Unicode="false" />
<Property Name="lldmxid" Type="Int32" />
<Property Name="Station" Type="String" MaxLength="30" FixedLength="false" Unicode="false" />
<Property Name="UserCode" Type="String" MaxLength="10" FixedLength="true" Unicode="false" />
<Property Name="FABRIC_WEIGHT" Type="Double" />
<Property Name="VOLUME" Type="Double" />
<Property Name="RECORD_ORDER" Type="Int16" />
<Property Name="Process" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
<Property Name="GRAVITY" Type="Double" Nullable="false" />
<Property Name="CurrentStock" Type="Double" />
</EntityType>
<EntityType Name="TicketSerial">
<Key>
<PropertyRef Name="REDYE_NOW" />
</Key>
<Property Name="tmp_field" Type="String" MaxLength="1" FixedLength="false" Unicode="false" />
<Property Name="ID_NO" Type="String" MaxLength="30" FixedLength="true" Unicode="false" />
<Property Name="REDYE_NOW" Type="Int32" Nullable="false" />
</EntityType>
<EntityType Name="UserAccount"> <EntityType Name="UserAccount">
<Key> <Key>
<PropertyRef Name="GROUP_CODE" /> <PropertyRef Name="tmp_field" />
</Key> </Key>
<Property Name="tmp_field" Type="String" MaxLength="1" FixedLength="false" Unicode="false" /> <Property Name="tmp_field" Type="String" MaxLength="1" FixedLength="false" Unicode="false" Nullable="false" />
<Property Name="UserCode" Type="String" MaxLength="50" FixedLength="false" Unicode="false" /> <Property Name="UserCode" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
<Property Name="PassWord" Type="String" MaxLength="50" FixedLength="false" Unicode="false" /> <Property Name="PassWord" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
<Property Name="JobTicket" Type="Int32" /> <Property Name="JobTicket" Type="Int32" />
@ -789,18 +286,6 @@
</EntityType> </EntityType>
<EntityContainer Name="TicketEntities" annotation:LazyLoadingEnabled="true"> <EntityContainer Name="TicketEntities" annotation:LazyLoadingEnabled="true">
<EntitySet Name="Product" EntityType="Self.Product" /> <EntitySet Name="Product" EntityType="Self.Product" />
<EntitySet Name="ProductInventory" EntityType="Self.ProductInventory" />
<EntitySet Name="ProductUsed" EntityType="Self.ProductUsed" />
<EntitySet Name="CHEMICAL_QUEUE" EntityType="Self.CHEMICAL_QUEUE" />
<EntitySet Name="DYESTUFF_QUEUE" EntityType="Self.DYESTUFF_QUEUE" />
<EntitySet Name="JOBTKT" EntityType="Self.JOBTKT" />
<EntitySet Name="POWDER_QUEUE" EntityType="Self.POWDER_QUEUE" />
<EntitySet Name="REMOTETERMINAL" EntityType="Self.REMOTETERMINAL" />
<EntitySet Name="TEMPCHEMICALTKT" EntityType="Self.TEMPCHEMICALTKT" />
<EntitySet Name="TEMPDYESTUFFTKT" EntityType="Self.TEMPDYESTUFFTKT" />
<EntitySet Name="TEMPPOWDER" EntityType="Self.TEMPPOWDER" />
<EntitySet Name="TICKET_DETAIL" EntityType="Self.TICKET_DETAIL" />
<EntitySet Name="TicketSerial" EntityType="Self.TicketSerial" />
<EntitySet Name="UserAccount" EntityType="Self.UserAccount" /> <EntitySet Name="UserAccount" EntityType="Self.UserAccount" />
</EntityContainer> </EntityContainer>
</Schema> </Schema>
@ -875,194 +360,6 @@
</MappingFragment> </MappingFragment>
</EntityTypeMapping> </EntityTypeMapping>
</EntitySetMapping> </EntitySetMapping>
<EntitySetMapping Name="ProductInventory">
<EntityTypeMapping TypeName="TicketModel.ProductInventory">
<MappingFragment StoreEntitySet="ProductInventory">
<ScalarProperty Name="ProductCode" ColumnName="ProductCode" />
<ScalarProperty Name="Quantity" ColumnName="Quantity" />
<ScalarProperty Name="Price" ColumnName="Price" />
<ScalarProperty Name="CreateDate" ColumnName="CreateDate" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="ProductUsed">
<EntityTypeMapping TypeName="TicketModel.ProductUsed">
<MappingFragment StoreEntitySet="ProductUsed">
<ScalarProperty Name="ProductCode" ColumnName="ProductCode" />
<ScalarProperty Name="UsedQty" ColumnName="UsedQty" />
<ScalarProperty Name="CreateDate" ColumnName="CreateDate" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="CHEMICAL_QUEUE">
<EntityTypeMapping TypeName="TicketModel.CHEMICAL_QUEUE">
<MappingFragment StoreEntitySet="CHEMICAL_QUEUE">
<ScalarProperty Name="tmp_field" ColumnName="tmp_field" />
<ScalarProperty Name="ID_NO" ColumnName="ID_NO" />
<ScalarProperty Name="STEP_NO" ColumnName="STEP_NO" />
<ScalarProperty Name="CREATE_DATE" ColumnName="CREATE_DATE" />
<ScalarProperty Name="CREATE_TIME" ColumnName="CREATE_TIME" />
<ScalarProperty Name="FIRST_KEY" ColumnName="FIRST_KEY" />
<ScalarProperty Name="SECOND_KEY" ColumnName="SECOND_KEY" />
<ScalarProperty Name="PRIORITY" ColumnName="PRIORITY" />
<ScalarProperty Name="ReDye" ColumnName="ReDye" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="DYESTUFF_QUEUE">
<EntityTypeMapping TypeName="TicketModel.DYESTUFF_QUEUE">
<MappingFragment StoreEntitySet="DYESTUFF_QUEUE">
<ScalarProperty Name="tmp_field" ColumnName="tmp_field" />
<ScalarProperty Name="ID_NO" ColumnName="ID_NO" />
<ScalarProperty Name="STEP_NO" ColumnName="STEP_NO" />
<ScalarProperty Name="CREATE_DATE" ColumnName="CREATE_DATE" />
<ScalarProperty Name="CREATE_TIME" ColumnName="CREATE_TIME" />
<ScalarProperty Name="FIRST_KEY" ColumnName="FIRST_KEY" />
<ScalarProperty Name="SECOND_KEY" ColumnName="SECOND_KEY" />
<ScalarProperty Name="PRIORITY" ColumnName="PRIORITY" />
<ScalarProperty Name="ReDye" ColumnName="ReDye" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="JOBTKT">
<EntityTypeMapping TypeName="TicketModel.JOBTKT">
<MappingFragment StoreEntitySet="JOBTKT">
<ScalarProperty Name="tmp_field" ColumnName="tmp_field" />
<ScalarProperty Name="IDNO" ColumnName="IDNO" />
<ScalarProperty Name="FNDATE" ColumnName="FNDATE" />
<ScalarProperty Name="FIRST_KEY" ColumnName="FIRST_KEY" />
<ScalarProperty Name="SECOND_KEY" ColumnName="SECOND_KEY" />
<ScalarProperty Name="ReDye" ColumnName="ReDye" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="POWDER_QUEUE">
<EntityTypeMapping TypeName="TicketModel.POWDER_QUEUE">
<MappingFragment StoreEntitySet="POWDER_QUEUE">
<ScalarProperty Name="tmp_field" ColumnName="tmp_field" />
<ScalarProperty Name="ID_NO" ColumnName="ID_NO" />
<ScalarProperty Name="STEP_NO" ColumnName="STEP_NO" />
<ScalarProperty Name="CREATE_DATE" ColumnName="CREATE_DATE" />
<ScalarProperty Name="CREATE_TIME" ColumnName="CREATE_TIME" />
<ScalarProperty Name="FIRST_KEY" ColumnName="FIRST_KEY" />
<ScalarProperty Name="SECOND_KEY" ColumnName="SECOND_KEY" />
<ScalarProperty Name="PRIORITY" ColumnName="PRIORITY" />
<ScalarProperty Name="ReDye" ColumnName="ReDye" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="REMOTETERMINAL">
<EntityTypeMapping TypeName="TicketModel.REMOTETERMINAL">
<MappingFragment StoreEntitySet="REMOTETERMINAL">
<ScalarProperty Name="tmp_field" ColumnName="tmp_field" />
<ScalarProperty Name="IDNO" ColumnName="IDNO" />
<ScalarProperty Name="FNDATE" ColumnName="FNDATE" />
<ScalarProperty Name="IDTYPE" ColumnName="IDTYPE" />
<ScalarProperty Name="FIRST_KEY" ColumnName="FIRST_KEY" />
<ScalarProperty Name="SECOND_KEY" ColumnName="SECOND_KEY" />
<ScalarProperty Name="ReDye" ColumnName="ReDye" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="TEMPCHEMICALTKT">
<EntityTypeMapping TypeName="TicketModel.TEMPCHEMICALTKT">
<MappingFragment StoreEntitySet="TEMPCHEMICALTKT">
<ScalarProperty Name="tmp_field" ColumnName="tmp_field" />
<ScalarProperty Name="IDNO" ColumnName="IDNO" />
<ScalarProperty Name="FNDATE" ColumnName="FNDATE" />
<ScalarProperty Name="IDTYPE" ColumnName="IDTYPE" />
<ScalarProperty Name="FIRST_KEY" ColumnName="FIRST_KEY" />
<ScalarProperty Name="SECOND_KEY" ColumnName="SECOND_KEY" />
<ScalarProperty Name="ReDye" ColumnName="ReDye" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="TEMPDYESTUFFTKT">
<EntityTypeMapping TypeName="TicketModel.TEMPDYESTUFFTKT">
<MappingFragment StoreEntitySet="TEMPDYESTUFFTKT">
<ScalarProperty Name="tmp_field" ColumnName="tmp_field" />
<ScalarProperty Name="IDNO" ColumnName="IDNO" />
<ScalarProperty Name="FNDATE" ColumnName="FNDATE" />
<ScalarProperty Name="IDTYPE" ColumnName="IDTYPE" />
<ScalarProperty Name="FIRST_KEY" ColumnName="FIRST_KEY" />
<ScalarProperty Name="SECOND_KEY" ColumnName="SECOND_KEY" />
<ScalarProperty Name="ReDye" ColumnName="ReDye" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="TEMPPOWDER">
<EntityTypeMapping TypeName="TicketModel.TEMPPOWDER">
<MappingFragment StoreEntitySet="TEMPPOWDER">
<ScalarProperty Name="tmp_field" ColumnName="tmp_field" />
<ScalarProperty Name="IDNO" ColumnName="IDNO" />
<ScalarProperty Name="FNDATE" ColumnName="FNDATE" />
<ScalarProperty Name="IDTYPE" ColumnName="IDTYPE" />
<ScalarProperty Name="FIRST_KEY" ColumnName="FIRST_KEY" />
<ScalarProperty Name="SECOND_KEY" ColumnName="SECOND_KEY" />
<ScalarProperty Name="ReDye" ColumnName="ReDye" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="TICKET_DETAIL">
<EntityTypeMapping TypeName="TicketModel.TICKET_DETAIL">
<MappingFragment StoreEntitySet="TICKET_DETAIL">
<ScalarProperty Name="ID_NO" ColumnName="ID_NO" />
<ScalarProperty Name="STEP_NO" ColumnName="STEP_NO" />
<ScalarProperty Name="PRODUCT_CODE" ColumnName="PRODUCT_CODE" />
<ScalarProperty Name="PRODUCT_TYPE" ColumnName="PRODUCT_TYPE" />
<ScalarProperty Name="TARGET_WT" ColumnName="TARGET_WT" />
<ScalarProperty Name="ACTUAL_WT" ColumnName="ACTUAL_WT" />
<ScalarProperty Name="UNIT" ColumnName="UNIT" />
<ScalarProperty Name="COMP_DATE" ColumnName="COMP_DATE" />
<ScalarProperty Name="COMP_TIME" ColumnName="COMP_TIME" />
<ScalarProperty Name="TRANSFER_STATE" ColumnName="TRANSFER_STATE" />
<ScalarProperty Name="ERROR_CODE" ColumnName="ERROR_CODE" />
<ScalarProperty Name="MACHINE" ColumnName="MACHINE" />
<ScalarProperty Name="TANK_NO" ColumnName="TANK_NO" />
<ScalarProperty Name="ID_TYPE" ColumnName="ID_TYPE" />
<ScalarProperty Name="PRODUCT_LOT" ColumnName="PRODUCT_LOT" />
<ScalarProperty Name="RECIPE_CODE" ColumnName="RECIPE_CODE" />
<ScalarProperty Name="LR" ColumnName="LR" />
<ScalarProperty Name="RECIPE_TYPE" ColumnName="RECIPE_TYPE" />
<ScalarProperty Name="CONC" ColumnName="CONC" />
<ScalarProperty Name="CONCUNIT" ColumnName="CONCUNIT" />
<ScalarProperty Name="REMARK" ColumnName="REMARK" />
<ScalarProperty Name="ADJUST" ColumnName="ADJUST" />
<ScalarProperty Name="PRICE" ColumnName="PRICE" />
<ScalarProperty Name="RES_DOUBLE1" ColumnName="RES_DOUBLE1" />
<ScalarProperty Name="RES_DOUBLE2" ColumnName="RES_DOUBLE2" />
<ScalarProperty Name="RES_DOUBLE3" ColumnName="RES_DOUBLE3" />
<ScalarProperty Name="RES_DOUBLE4" ColumnName="RES_DOUBLE4" />
<ScalarProperty Name="RES_STRING1" ColumnName="RES_STRING1" />
<ScalarProperty Name="RES_STRING2" ColumnName="RES_STRING2" />
<ScalarProperty Name="RES_STRING3" ColumnName="RES_STRING3" />
<ScalarProperty Name="RES_STRING4" ColumnName="RES_STRING4" />
<ScalarProperty Name="REWEIGHT" ColumnName="REWEIGHT" />
<ScalarProperty Name="Redye" ColumnName="Redye" />
<ScalarProperty Name="DyeWeightTime" ColumnName="DyeWeightTime" />
<ScalarProperty Name="UserAccount" ColumnName="UserAccount" />
<ScalarProperty Name="Batch_NO" ColumnName="Batch_NO" />
<ScalarProperty Name="lldmxid" ColumnName="lldmxid" />
<ScalarProperty Name="Station" ColumnName="Station" />
<ScalarProperty Name="UserCode" ColumnName="UserCode" />
<ScalarProperty Name="FABRIC_WEIGHT" ColumnName="FABRIC_WEIGHT" />
<ScalarProperty Name="VOLUME" ColumnName="VOLUME" />
<ScalarProperty Name="RECORD_ORDER" ColumnName="RECORD_ORDER" />
<ScalarProperty Name="Process" ColumnName="Process" />
<ScalarProperty Name="GRAVITY" ColumnName="GRAVITY" />
<ScalarProperty Name="CurrentStock" ColumnName="CurrentStock" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="TicketSerial">
<EntityTypeMapping TypeName="TicketModel.TicketSerial">
<MappingFragment StoreEntitySet="TicketSerial">
<ScalarProperty Name="tmp_field" ColumnName="tmp_field" />
<ScalarProperty Name="ID_NO" ColumnName="ID_NO" />
<ScalarProperty Name="REDYE_NOW" ColumnName="REDYE_NOW" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="UserAccount"> <EntitySetMapping Name="UserAccount">
<EntityTypeMapping TypeName="TicketModel.UserAccount"> <EntityTypeMapping TypeName="TicketModel.UserAccount">
<MappingFragment StoreEntitySet="UserAccount"> <MappingFragment StoreEntitySet="UserAccount">

16
Models/SQL_Ti.edmx.diagram

@ -4,21 +4,9 @@
<edmx:Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx"> <edmx:Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
<!-- Diagram content (shape and connector positions) --> <!-- Diagram content (shape and connector positions) -->
<edmx:Diagrams> <edmx:Diagrams>
<Diagram DiagramId="89d520d3675442b5b0979c510546a2e9" Name="Diagram1" ZoomLevel="73"> <Diagram DiagramId="89d520d3675442b5b0979c510546a2e9" Name="Diagram1" ZoomLevel="79">
<EntityTypeShape EntityType="TicketModel.Product" Width="1.5" PointX="0.75" PointY="0.75" IsExpanded="true" /> <EntityTypeShape EntityType="TicketModel.Product" Width="1.5" PointX="0.75" PointY="0.75" IsExpanded="true" />
<EntityTypeShape EntityType="TicketModel.ProductInventory" Width="1.5" PointX="2.75" PointY="0.75" IsExpanded="true" /> <EntityTypeShape EntityType="TicketModel.UserAccount" Width="1.5" PointX="3.5" PointY="3.625" IsExpanded="true" />
<EntityTypeShape EntityType="TicketModel.ProductUsed" Width="1.5" PointX="2.75" PointY="3.75" IsExpanded="true" />
<EntityTypeShape EntityType="TicketModel.CHEMICAL_QUEUE" Width="1.5" PointX="4.75" PointY="0.75" IsExpanded="true" />
<EntityTypeShape EntityType="TicketModel.DYESTUFF_QUEUE" Width="1.5" PointX="4.75" PointY="4.75" IsExpanded="true" />
<EntityTypeShape EntityType="TicketModel.JOBTKT" Width="1.5" PointX="6.75" PointY="0.75" IsExpanded="true" />
<EntityTypeShape EntityType="TicketModel.POWDER_QUEUE" Width="1.5" PointX="6.75" PointY="3.75" IsExpanded="true" />
<EntityTypeShape EntityType="TicketModel.REMOTETERMINAL" Width="1.5" PointX="6.75" PointY="7.75" IsExpanded="true" />
<EntityTypeShape EntityType="TicketModel.TEMPCHEMICALTKT" Width="1.5" PointX="8.75" PointY="0.75" IsExpanded="true" />
<EntityTypeShape EntityType="TicketModel.TEMPDYESTUFFTKT" Width="1.5" PointX="2.75" PointY="8.75" IsExpanded="true" />
<EntityTypeShape EntityType="TicketModel.TEMPPOWDER" Width="1.5" PointX="8.75" PointY="4.75" IsExpanded="true" />
<EntityTypeShape EntityType="TicketModel.TICKET_DETAIL" Width="1.5" PointX="8.75" PointY="8.75" IsExpanded="true" />
<EntityTypeShape EntityType="TicketModel.TicketSerial" Width="1.5" PointX="10.75" PointY="0.75" IsExpanded="true" />
<EntityTypeShape EntityType="TicketModel.UserAccount" Width="1.5" PointX="10.75" PointY="3.75" IsExpanded="true" />
</Diagram> </Diagram>
</edmx:Diagrams> </edmx:Diagrams>
</edmx:Designer> </edmx:Designer>

28
Models/SampleDyeDslvQueue.cs

@ -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; }
}
}

21
Models/Shelf.cs

@ -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; }
}
}

25
Models/TEMPCHEMICALTKT.cs

@ -1,25 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class TEMPCHEMICALTKT
{
public string tmp_field { get; set; }
public string IDNO { get; set; }
public Nullable<double> FNDATE { get; set; }
public string IDTYPE { get; set; }
public string FIRST_KEY { get; set; }
public string SECOND_KEY { get; set; }
public int ReDye { get; set; }
}
}

25
Models/TEMPDYESTUFFTKT.cs

@ -1,25 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class TEMPDYESTUFFTKT
{
public string tmp_field { get; set; }
public string IDNO { get; set; }
public Nullable<double> FNDATE { get; set; }
public string IDTYPE { get; set; }
public string FIRST_KEY { get; set; }
public string SECOND_KEY { get; set; }
public int ReDye { get; set; }
}
}

25
Models/TEMPPOWDER.cs

@ -1,25 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class TEMPPOWDER
{
public string tmp_field { get; set; }
public string IDNO { get; set; }
public Nullable<double> FNDATE { get; set; }
public string IDTYPE { get; set; }
public string FIRST_KEY { get; set; }
public string SECOND_KEY { get; set; }
public int ReDye { get; set; }
}
}

63
Models/TICKET_DETAIL.cs

@ -1,63 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class TICKET_DETAIL
{
public string ID_NO { get; set; }
public Nullable<int> STEP_NO { get; set; }
public string PRODUCT_CODE { get; set; }
public string PRODUCT_TYPE { get; set; }
public Nullable<double> TARGET_WT { get; set; }
public Nullable<double> ACTUAL_WT { get; set; }
public string UNIT { get; set; }
public string COMP_DATE { get; set; }
public string COMP_TIME { get; set; }
public Nullable<int> TRANSFER_STATE { get; set; }
public string ERROR_CODE { get; set; }
public string MACHINE { get; set; }
public string TANK_NO { get; set; }
public string ID_TYPE { get; set; }
public string PRODUCT_LOT { get; set; }
public string RECIPE_CODE { get; set; }
public Nullable<double> LR { get; set; }
public string RECIPE_TYPE { get; set; }
public string CONC { get; set; }
public string CONCUNIT { get; set; }
public string REMARK { get; set; }
public string ADJUST { get; set; }
public Nullable<double> PRICE { get; set; }
public Nullable<double> RES_DOUBLE1 { get; set; }
public Nullable<double> RES_DOUBLE2 { get; set; }
public Nullable<double> RES_DOUBLE3 { get; set; }
public Nullable<double> RES_DOUBLE4 { get; set; }
public string RES_STRING1 { get; set; }
public string RES_STRING2 { get; set; }
public string RES_STRING3 { get; set; }
public string RES_STRING4 { get; set; }
public string REWEIGHT { get; set; }
public Nullable<int> Redye { get; set; }
public Nullable<System.DateTime> DyeWeightTime { get; set; }
public string UserAccount { get; set; }
public string Batch_NO { get; set; }
public Nullable<int> lldmxid { get; set; }
public string Station { get; set; }
public string UserCode { get; set; }
public Nullable<double> FABRIC_WEIGHT { get; set; }
public Nullable<double> VOLUME { get; set; }
public Nullable<short> RECORD_ORDER { get; set; }
public string Process { get; set; }
public double GRAVITY { get; set; }
public Nullable<double> CurrentStock { get; set; }
}
}

28
Models/TagShelf.cs

@ -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; }
}
}

21
Models/TicketSerial.cs

@ -1,21 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class TicketSerial
{
public string tmp_field { get; set; }
public string ID_NO { get; set; }
public int REDYE_NOW { get; set; }
}
}

22
Models/UserGroup.cs

@ -1,22 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class UserGroup
{
public string Name { get; set; }
public string password { get; set; }
public Nullable<int> Permission { get; set; }
public string User_Group { get; set; }
}
}

20
Models/Users.cs

@ -1,20 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class Users
{
public string Name { get; set; }
public string Xml { get; set; }
}
}

33
Models/WaitChemical.cs

@ -1,33 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Models
{
using System;
using System.Collections.Generic;
public partial class WaitChemical
{
public int ID { get; set; }
public string Machine { get; set; }
public string Dyelot { get; set; }
public int ReDye { get; set; }
public int StepNumber { get; set; }
public System.DateTime CreationTime { get; set; }
public Nullable<int> ProductType { get; set; }
public string ProductCode { get; set; }
public string ProductName { get; set; }
public double Weight { get; set; }
public Nullable<int> State { get; set; }
public Nullable<int> Volume { get; set; }
public Nullable<double> ActWeight { get; set; }
public Nullable<double> FuzhuWeight { get; set; }
public Nullable<System.DateTime> DispenseTime { get; set; }
}
}

4
Windows/LogWindow.xaml

@ -11,8 +11,8 @@
<TextBlock HorizontalAlignment="Center" Height="35" Margin="0,5,0,0" TextWrapping="Wrap" Text="化学品审计管理" VerticalAlignment="Top" Width="170" FontSize="24"/> <TextBlock HorizontalAlignment="Center" Height="35" Margin="0,5,0,0" TextWrapping="Wrap" Text="化学品审计管理" VerticalAlignment="Top" Width="170" FontSize="24"/>
<TextBlock HorizontalAlignment="Left" Height="25" Margin="55,50,0,0" TextWrapping="Wrap" Text="用户" VerticalAlignment="Top" Width="35" FontSize="16"/> <TextBlock HorizontalAlignment="Left" Height="25" Margin="55,50,0,0" TextWrapping="Wrap" Text="用户" VerticalAlignment="Top" Width="35" FontSize="16"/>
<TextBlock HorizontalAlignment="Left" Height="25" Margin="55,80,0,0" TextWrapping="Wrap" Text="密码" VerticalAlignment="Top" Width="35" FontSize="16"/> <TextBlock HorizontalAlignment="Left" Height="25" Margin="55,80,0,0" TextWrapping="Wrap" Text="密码" VerticalAlignment="Top" Width="35" FontSize="16"/>
<Button HorizontalAlignment="Left" Height="35" Margin="60,110,0,0" VerticalAlignment="Top" Content="登录" Width="75" Click="Log" FontSize="16" Command="{Binding LogCommand}"/> <Button HorizontalAlignment="Left" Height="35" Margin="60,110,0,0" VerticalAlignment="Top" Content="登录" Width="75" Click="Log" FontSize="16"/>
<Button HorizontalAlignment="Left" Height="35" Margin="165,110,0,0" VerticalAlignment="Top" Content="取消" Width="75" Click="Exit" FontSize="16" Command="{Binding ExitCommand}"/> <Button HorizontalAlignment="Left" Height="35" Margin="165,110,0,0" VerticalAlignment="Top" Content="取消" Width="75" Click="Exit" FontSize="16"/>
<TextBox HorizontalAlignment="Left" Height="25" Margin="90,50,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="150" x:Name="users"/> <TextBox HorizontalAlignment="Left" Height="25" Margin="90,50,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="150" x:Name="users"/>
<TextBox HorizontalAlignment="Left" Height="25" Margin="90,80,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="150" x:Name="Passwds"/> <TextBox HorizontalAlignment="Left" Height="25" Margin="90,80,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="150" x:Name="Passwds"/>
</Grid> </Grid>

4
Windows/LogWindow.xaml.cs

@ -38,12 +38,12 @@ namespace Audit.Windows
///<Summary> ///<Summary>
///AuditData ///AuditData
///</Summary> ///</Summary>
public AuditData AuditData { get; set; } = AuditData.Instance; public AuditData AuditData { get; set; } = AuditData.Instance;//数据库引用
///<Summary> ///<Summary>
/// UserAccount /// UserAccount
///</Summary> ///</Summary>
public UserAccount UserAccount { get; private set; } = AuditData.Instance.Useraccount; public UserAccount UserAccount { get; private set; } = AuditData.Instance.Useraccount;//数据库引用
///<Summary> ///<Summary>
/// Log /// Log

Loading…
Cancel
Save