Changes for PEP version 2022
This commit is contained in:
6
PepLib/App.Config
Normal file
6
PepLib/App.Config
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<connectionStrings>
|
||||
<add name="PepDB" connectionString="data source=REMCOSRV0\RWS64;initial catalog=PEP;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />
|
||||
</connectionStrings>
|
||||
</configuration>
|
||||
216
PepLib/Data/Drawing.cs
Normal file
216
PepLib/Data/Drawing.cs
Normal file
@@ -0,0 +1,216 @@
|
||||
namespace PepLib.Data
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Data.Entity.Spatial;
|
||||
|
||||
[Table("Drawing")]
|
||||
public partial class Drawing
|
||||
{
|
||||
public int ID { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string Name { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(20)]
|
||||
public string CustID { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(32)]
|
||||
public string Revision { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string Path { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string File { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string InUseBy { get; set; }
|
||||
|
||||
public DateTime? InUseDate { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string Status { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string StatusModifiedBy { get; set; }
|
||||
|
||||
public DateTime? StatusModifiedDate { get; set; }
|
||||
|
||||
public DateTime? CreationDate { get; set; }
|
||||
|
||||
public DateTime? LastEditDate { get; set; }
|
||||
|
||||
public DateTime? LastRefDate { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string Description { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string Customer { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string Comment { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string Notes { get; set; }
|
||||
|
||||
public byte Grain { get; set; }
|
||||
|
||||
public double GrainAngle { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string Material { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string MatGrade { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string Programmer { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string CreatedBy { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string Type { get; set; }
|
||||
|
||||
public byte CommonCut { get; set; }
|
||||
|
||||
public byte CombineCut { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string Errors { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string Hardness { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string Specification { get; set; }
|
||||
|
||||
public byte NestInCutOuts { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string UserDefined1 { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string UserDefined2 { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string UserDefined3 { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string UserDefined4 { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string UserDefined5 { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string UserDefined6 { get; set; }
|
||||
|
||||
public short Machine { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string Application { get; set; }
|
||||
|
||||
public int PartCount { get; set; }
|
||||
|
||||
public int Color { get; set; }
|
||||
|
||||
public short CombineMethod { get; set; }
|
||||
|
||||
public byte SeqCutouts { get; set; }
|
||||
|
||||
public byte AllowMirror { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string SourceFile { get; set; }
|
||||
|
||||
public DateTime? SourceDate { get; set; }
|
||||
|
||||
public int SourceSize { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string CadScaled { get; set; }
|
||||
|
||||
public int CadDimVerified { get; set; }
|
||||
|
||||
public int CadDimCount { get; set; }
|
||||
|
||||
public double Width { get; set; }
|
||||
|
||||
public double Length { get; set; }
|
||||
|
||||
public double RectArea { get; set; }
|
||||
|
||||
public double ExtArea { get; set; }
|
||||
|
||||
public double TrueArea { get; set; }
|
||||
|
||||
public double ExtUtil { get; set; }
|
||||
|
||||
public double TrueUtil { get; set; }
|
||||
|
||||
public double SmallestAreaAng { get; set; }
|
||||
|
||||
public double SmallestAreaLen { get; set; }
|
||||
|
||||
public double SmallestAreaWid { get; set; }
|
||||
|
||||
public double SmallestYAng { get; set; }
|
||||
|
||||
public double SmallestYLen { get; set; }
|
||||
|
||||
public double SmallestYWid { get; set; }
|
||||
|
||||
public double CutLength { get; set; }
|
||||
|
||||
public double ScribeLength { get; set; }
|
||||
|
||||
public int Checked { get; set; }
|
||||
|
||||
public byte PepBendStatus { get; set; }
|
||||
|
||||
public int HasBevel { get; set; }
|
||||
|
||||
public int HasLeadIn { get; set; }
|
||||
|
||||
public int HasTab { get; set; }
|
||||
|
||||
public DateTime? ModifiedDate { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string ModifiedBy { get; set; }
|
||||
}
|
||||
}
|
||||
84
PepLib/Data/NestDetail.cs
Normal file
84
PepLib/Data/NestDetail.cs
Normal file
@@ -0,0 +1,84 @@
|
||||
namespace PepLib.Data
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Data.Entity.Spatial;
|
||||
|
||||
[Table("NestDetail")]
|
||||
public partial class NestDetail
|
||||
{
|
||||
[Key]
|
||||
public int AutoInc { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(200)]
|
||||
public string NestName { get; set; }
|
||||
|
||||
public int CopyID { get; set; }
|
||||
|
||||
[StringLength(200)]
|
||||
public string Drawing { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(20)]
|
||||
public string CustID { get; set; }
|
||||
|
||||
public int? DwgLoopNo { get; set; }
|
||||
|
||||
[StringLength(40)]
|
||||
public string DwgRevision { get; set; }
|
||||
|
||||
[StringLength(40)]
|
||||
public string CustomerNo { get; set; }
|
||||
|
||||
[StringLength(64)]
|
||||
public string CustomerName { get; set; }
|
||||
|
||||
public int? QtyReq { get; set; }
|
||||
|
||||
public int? QtyNstd { get; set; }
|
||||
|
||||
public int? QtyRem { get; set; }
|
||||
|
||||
public double? CutDist { get; set; }
|
||||
|
||||
public double? ScribeDist { get; set; }
|
||||
|
||||
public int? CutTime { get; set; }
|
||||
|
||||
public int? PierceCount { get; set; }
|
||||
|
||||
public int? IntersectionCount { get; set; }
|
||||
|
||||
public double? Area1 { get; set; }
|
||||
|
||||
public double? Area2 { get; set; }
|
||||
|
||||
public double? CostPerPart { get; set; }
|
||||
|
||||
public double? Net1Weight { get; set; }
|
||||
|
||||
public double? Net2Weight { get; set; }
|
||||
|
||||
public double? Net2WithRemWeight { get; set; }
|
||||
|
||||
public double? Net3Weight { get; set; }
|
||||
|
||||
public double? Net4Weight { get; set; }
|
||||
|
||||
public double? GrossWeight { get; set; }
|
||||
|
||||
public double? PercentOfMaterial { get; set; }
|
||||
|
||||
public double? PercentOfTime { get; set; }
|
||||
|
||||
public double? RotationConstraint { get; set; }
|
||||
|
||||
public DateTime? ModifiedDate { get; set; }
|
||||
|
||||
[StringLength(254)]
|
||||
public string ModifiedBy { get; set; }
|
||||
}
|
||||
}
|
||||
79
PepLib/Data/NestDrawing.cs
Normal file
79
PepLib/Data/NestDrawing.cs
Normal file
@@ -0,0 +1,79 @@
|
||||
namespace PepLib.Data
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Data.Entity.Spatial;
|
||||
|
||||
[Table("NestDrawing")]
|
||||
public partial class NestDrawing
|
||||
{
|
||||
[Key]
|
||||
public int AutoInc { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string NestName { get; set; }
|
||||
|
||||
public int CopyID { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string Drawing { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(20)]
|
||||
public string CustID { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(32)]
|
||||
public string DwgRevision { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string DwgDesc { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string ImageFile { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string UserDefined1 { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string UserDefined2 { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string UserDefined3 { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string UserDefined4 { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string UserDefined5 { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string UserDefined6 { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string Description { get; set; }
|
||||
|
||||
public decimal SizeX { get; set; }
|
||||
|
||||
public decimal SizeY { get; set; }
|
||||
|
||||
public DateTime? ModifiedDate { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string ModifiedBy { get; set; }
|
||||
}
|
||||
}
|
||||
287
PepLib/Data/NestHeader.cs
Normal file
287
PepLib/Data/NestHeader.cs
Normal file
@@ -0,0 +1,287 @@
|
||||
namespace PepLib.Data
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Data.Entity.Spatial;
|
||||
|
||||
[Table("NestHeader")]
|
||||
public partial class NestHeader
|
||||
{
|
||||
[Key]
|
||||
public int AutoInc { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string NestName { get; set; }
|
||||
|
||||
public int CopyID { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(20)]
|
||||
public string CustID { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string CustomerName { get; set; }
|
||||
|
||||
public DateTime? DateProgrammed { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string Material { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(128)]
|
||||
public string MatDescription { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string MatGrade { get; set; }
|
||||
|
||||
public double MatThick { get; set; }
|
||||
|
||||
public double MatCost { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string Programmer { get; set; }
|
||||
|
||||
public int Machine { get; set; }
|
||||
|
||||
public int Application { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string Post { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string Comments { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string Remarks { get; set; }
|
||||
|
||||
public int ProgramCount { get; set; }
|
||||
|
||||
public int Duplicates { get; set; }
|
||||
|
||||
public double MachineCostPerHour { get; set; }
|
||||
|
||||
public double MachineHoursNeeded { get; set; }
|
||||
|
||||
public double MatDensity { get; set; }
|
||||
|
||||
public double HandlingCostPerPlate { get; set; }
|
||||
|
||||
public double HandlingCostPerPart { get; set; }
|
||||
|
||||
public int PlateCount { get; set; }
|
||||
|
||||
public int PartCount { get; set; }
|
||||
|
||||
public double CostOfConsumablesPerPierce { get; set; }
|
||||
|
||||
public double ConsumablesPerPierceNeeded { get; set; }
|
||||
|
||||
public bool CPTApplied { get; set; }
|
||||
|
||||
public double CuttingPierceTime { get; set; }
|
||||
|
||||
public double ScribePierceTime { get; set; }
|
||||
|
||||
public double IntersectDelayTime { get; set; }
|
||||
|
||||
public double HeadUpDownTimeBetweenCutouts { get; set; }
|
||||
|
||||
public double HeadUpDownTimeBetweenParts { get; set; }
|
||||
|
||||
public double RapidFeedRate { get; set; }
|
||||
|
||||
public double PercentOfFeedRateForArcs { get; set; }
|
||||
|
||||
public double PercentOfFeedRateForSmallHoles { get; set; }
|
||||
|
||||
public double PercentOfFeedRateForMediumHoles { get; set; }
|
||||
|
||||
public double PercentOfFeedRateForSmallCutouts { get; set; }
|
||||
|
||||
public double AssistGasPressure { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(3)]
|
||||
public string TypeOfGas { get; set; }
|
||||
|
||||
public double NozzleSize { get; set; }
|
||||
|
||||
public double CostOfGasPerCF { get; set; }
|
||||
|
||||
public double CFOfGasNeeded { get; set; }
|
||||
|
||||
public double TotalCutDist { get; set; }
|
||||
|
||||
public double TotalRapidDist { get; set; }
|
||||
|
||||
public double EdgePierceCount { get; set; }
|
||||
|
||||
public double BubblePierceCount { get; set; }
|
||||
|
||||
public double RadiusCornerCount { get; set; }
|
||||
|
||||
public bool IncludeRemnantCost { get; set; }
|
||||
|
||||
public double ClampRepositionTime { get; set; }
|
||||
|
||||
public double PlateLoadTime { get; set; }
|
||||
|
||||
public double PlateUnloadTime { get; set; }
|
||||
|
||||
public double TimePerPart { get; set; }
|
||||
|
||||
public int rStatus { get; set; }
|
||||
|
||||
public DateTime? rDateStamp { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string UserDefined1 { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string UserDefined2 { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string UserDefined3 { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string UserDefined4 { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string UserDefined5 { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string UserDefined6 { get; set; }
|
||||
|
||||
public double ActualCutTime { get; set; }
|
||||
|
||||
public double ActualStartTime { get; set; }
|
||||
|
||||
public double ActualEndTime { get; set; }
|
||||
|
||||
public double CuttingFeedRate { get; set; }
|
||||
|
||||
public DateTime? ModifiedDate { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string ModifiedBy { get; set; }
|
||||
|
||||
public int Status { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string Path { get; set; }
|
||||
|
||||
public DateTime? DueDate { get; set; }
|
||||
|
||||
public int NestGenTime { get; set; }
|
||||
|
||||
public int NestEditTime { get; set; }
|
||||
|
||||
public int NestEditCount { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string NestGenMethod { get; set; }
|
||||
|
||||
public double ScribingFeedRate { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string FeedRateScenarios { get; set; }
|
||||
|
||||
public double PercentOfFeedRateForInsideBevel { get; set; }
|
||||
|
||||
public double PercentOfFeedRateForOutsideBevel { get; set; }
|
||||
|
||||
public double SetupTime { get; set; }
|
||||
|
||||
public double BubbleEdgePierceTime { get; set; }
|
||||
|
||||
public double BevelTorchTiltTime { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(3)]
|
||||
public string OutputJobCosting { get; set; }
|
||||
|
||||
public double CadDrawingCharge { get; set; }
|
||||
|
||||
public double MaterialMarkup { get; set; }
|
||||
|
||||
public double OverheadMarkup { get; set; }
|
||||
|
||||
public double CostOfFreightPerPound { get; set; }
|
||||
|
||||
public double DrillCostPerHole { get; set; }
|
||||
|
||||
public double DrillCostPerUniquePart { get; set; }
|
||||
|
||||
public double DrillCostHardConsumable { get; set; }
|
||||
|
||||
public double DrillPiercesPerHardConsumable { get; set; }
|
||||
|
||||
public double DrillTimeChangeHardConsumable { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(3)]
|
||||
public string ReportNestedDrawingsOnly { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(3)]
|
||||
public string DisplayTimingInfo { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(3)]
|
||||
public string OutputPostTechTable { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string WeightTypeForDisplay { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string WeightTypeForCosting { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string Errors { get; set; }
|
||||
|
||||
public int DefToolLib { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string DefPlateSize { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string DefKerfDirection { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string InUse { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string ApplicationName { get; set; }
|
||||
|
||||
public DateTime? RequestedSchedDate { get; set; }
|
||||
|
||||
public double AutoGrainDim { get; set; }
|
||||
}
|
||||
}
|
||||
481
PepLib/Data/PepDB.cs
Normal file
481
PepLib/Data/PepDB.cs
Normal file
@@ -0,0 +1,481 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Data.Entity;
|
||||
using System.Linq;
|
||||
|
||||
namespace PepLib.Data
|
||||
{
|
||||
public partial class PepDB : DbContext
|
||||
{
|
||||
public PepDB()
|
||||
: base("name=PepDB")
|
||||
{
|
||||
}
|
||||
|
||||
public virtual DbSet<Drawing> Drawings { get; set; }
|
||||
public virtual DbSet<NestDetail> NestDetails { get; set; }
|
||||
public virtual DbSet<NestDrawing> NestDrawings { get; set; }
|
||||
public virtual DbSet<NestHeader> NestHeaders { get; set; }
|
||||
public virtual DbSet<PlateDetail> PlateDetails { get; set; }
|
||||
public virtual DbSet<PlateHeader> PlateHeaders { get; set; }
|
||||
|
||||
protected override void OnModelCreating(DbModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Drawing>()
|
||||
.Property(e => e.Name)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Drawing>()
|
||||
.Property(e => e.CustID)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Drawing>()
|
||||
.Property(e => e.Revision)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Drawing>()
|
||||
.Property(e => e.Path)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Drawing>()
|
||||
.Property(e => e.File)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Drawing>()
|
||||
.Property(e => e.InUseBy)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Drawing>()
|
||||
.Property(e => e.Status)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Drawing>()
|
||||
.Property(e => e.StatusModifiedBy)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Drawing>()
|
||||
.Property(e => e.Description)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Drawing>()
|
||||
.Property(e => e.Customer)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Drawing>()
|
||||
.Property(e => e.Comment)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Drawing>()
|
||||
.Property(e => e.Notes)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Drawing>()
|
||||
.Property(e => e.Material)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Drawing>()
|
||||
.Property(e => e.MatGrade)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Drawing>()
|
||||
.Property(e => e.Programmer)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Drawing>()
|
||||
.Property(e => e.CreatedBy)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Drawing>()
|
||||
.Property(e => e.Type)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Drawing>()
|
||||
.Property(e => e.Errors)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Drawing>()
|
||||
.Property(e => e.Hardness)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Drawing>()
|
||||
.Property(e => e.Specification)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Drawing>()
|
||||
.Property(e => e.UserDefined1)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Drawing>()
|
||||
.Property(e => e.UserDefined2)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Drawing>()
|
||||
.Property(e => e.UserDefined3)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Drawing>()
|
||||
.Property(e => e.UserDefined4)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Drawing>()
|
||||
.Property(e => e.UserDefined5)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Drawing>()
|
||||
.Property(e => e.UserDefined6)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Drawing>()
|
||||
.Property(e => e.Application)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Drawing>()
|
||||
.Property(e => e.SourceFile)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Drawing>()
|
||||
.Property(e => e.CadScaled)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Drawing>()
|
||||
.Property(e => e.ModifiedBy)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestDetail>()
|
||||
.Property(e => e.NestName)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestDetail>()
|
||||
.Property(e => e.Drawing)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestDetail>()
|
||||
.Property(e => e.CustID)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestDetail>()
|
||||
.Property(e => e.DwgRevision)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestDetail>()
|
||||
.Property(e => e.CustomerNo)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestDetail>()
|
||||
.Property(e => e.CustomerName)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestDetail>()
|
||||
.Property(e => e.ModifiedBy)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestDrawing>()
|
||||
.Property(e => e.NestName)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestDrawing>()
|
||||
.Property(e => e.Drawing)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestDrawing>()
|
||||
.Property(e => e.CustID)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestDrawing>()
|
||||
.Property(e => e.DwgRevision)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestDrawing>()
|
||||
.Property(e => e.DwgDesc)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestDrawing>()
|
||||
.Property(e => e.ImageFile)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestDrawing>()
|
||||
.Property(e => e.UserDefined1)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestDrawing>()
|
||||
.Property(e => e.UserDefined2)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestDrawing>()
|
||||
.Property(e => e.UserDefined3)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestDrawing>()
|
||||
.Property(e => e.UserDefined4)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestDrawing>()
|
||||
.Property(e => e.UserDefined5)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestDrawing>()
|
||||
.Property(e => e.UserDefined6)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestDrawing>()
|
||||
.Property(e => e.Description)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestDrawing>()
|
||||
.Property(e => e.SizeX)
|
||||
.HasPrecision(15, 4);
|
||||
|
||||
modelBuilder.Entity<NestDrawing>()
|
||||
.Property(e => e.SizeY)
|
||||
.HasPrecision(15, 4);
|
||||
|
||||
modelBuilder.Entity<NestDrawing>()
|
||||
.Property(e => e.ModifiedBy)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestHeader>()
|
||||
.Property(e => e.NestName)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestHeader>()
|
||||
.Property(e => e.CustID)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestHeader>()
|
||||
.Property(e => e.CustomerName)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestHeader>()
|
||||
.Property(e => e.Material)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestHeader>()
|
||||
.Property(e => e.MatDescription)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestHeader>()
|
||||
.Property(e => e.MatGrade)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestHeader>()
|
||||
.Property(e => e.Programmer)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestHeader>()
|
||||
.Property(e => e.Post)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestHeader>()
|
||||
.Property(e => e.Comments)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestHeader>()
|
||||
.Property(e => e.Remarks)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestHeader>()
|
||||
.Property(e => e.TypeOfGas)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestHeader>()
|
||||
.Property(e => e.UserDefined1)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestHeader>()
|
||||
.Property(e => e.UserDefined2)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestHeader>()
|
||||
.Property(e => e.UserDefined3)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestHeader>()
|
||||
.Property(e => e.UserDefined4)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestHeader>()
|
||||
.Property(e => e.UserDefined5)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestHeader>()
|
||||
.Property(e => e.UserDefined6)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestHeader>()
|
||||
.Property(e => e.ModifiedBy)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestHeader>()
|
||||
.Property(e => e.Path)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestHeader>()
|
||||
.Property(e => e.NestGenMethod)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestHeader>()
|
||||
.Property(e => e.FeedRateScenarios)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestHeader>()
|
||||
.Property(e => e.OutputJobCosting)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestHeader>()
|
||||
.Property(e => e.ReportNestedDrawingsOnly)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestHeader>()
|
||||
.Property(e => e.DisplayTimingInfo)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestHeader>()
|
||||
.Property(e => e.OutputPostTechTable)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestHeader>()
|
||||
.Property(e => e.WeightTypeForDisplay)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestHeader>()
|
||||
.Property(e => e.WeightTypeForCosting)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestHeader>()
|
||||
.Property(e => e.Errors)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestHeader>()
|
||||
.Property(e => e.DefPlateSize)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestHeader>()
|
||||
.Property(e => e.DefKerfDirection)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestHeader>()
|
||||
.Property(e => e.InUse)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<NestHeader>()
|
||||
.Property(e => e.ApplicationName)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<PlateDetail>()
|
||||
.Property(e => e.NestName)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<PlateDetail>()
|
||||
.Property(e => e.Drawing)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<PlateDetail>()
|
||||
.Property(e => e.DwgRevision)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<PlateDetail>()
|
||||
.Property(e => e.LoopList)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<PlateDetail>()
|
||||
.Property(e => e.DwgDesc)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<PlateDetail>()
|
||||
.Property(e => e.WorkOrder)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<PlateDetail>()
|
||||
.Property(e => e.Note)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<PlateDetail>()
|
||||
.Property(e => e.Sales)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<PlateDetail>()
|
||||
.Property(e => e.Remarks)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<PlateDetail>()
|
||||
.Property(e => e.RequiredGrade)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<PlateDetail>()
|
||||
.Property(e => e.JobNo)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<PlateDetail>()
|
||||
.Property(e => e.Sequence)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<PlateDetail>()
|
||||
.Property(e => e.Marking)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<PlateDetail>()
|
||||
.Property(e => e.ModifiedBy)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<PlateDetail>()
|
||||
.Property(e => e.LifetimeList)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<PlateDetail>()
|
||||
.Property(e => e.CustPO)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<PlateDetail>()
|
||||
.Property(e => e.CustID)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<PlateHeader>()
|
||||
.Property(e => e.NestName)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<PlateHeader>()
|
||||
.Property(e => e.InvPlateName)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<PlateHeader>()
|
||||
.Property(e => e.RemnantSize)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<PlateHeader>()
|
||||
.Property(e => e.PlateSize)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<PlateHeader>()
|
||||
.Property(e => e.HeatLot)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<PlateHeader>()
|
||||
.Property(e => e.UpdateStatus)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<PlateHeader>()
|
||||
.Property(e => e.ImageFile)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<PlateHeader>()
|
||||
.Property(e => e.Note)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<PlateHeader>()
|
||||
.Property(e => e.ProgramName)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<PlateHeader>()
|
||||
.Property(e => e.ModifiedBy)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<PlateHeader>()
|
||||
.Property(e => e.Location)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<PlateHeader>()
|
||||
.Property(e => e.NestedSize)
|
||||
.IsUnicode(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
99
PepLib/Data/PlateDetail.cs
Normal file
99
PepLib/Data/PlateDetail.cs
Normal file
@@ -0,0 +1,99 @@
|
||||
namespace PepLib.Data
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Data.Entity.Spatial;
|
||||
|
||||
[Table("PlateDetail")]
|
||||
public partial class PlateDetail
|
||||
{
|
||||
[Key]
|
||||
public int AutoInc { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string NestName { get; set; }
|
||||
|
||||
public int CopyID { get; set; }
|
||||
|
||||
public int? PlateNumber { get; set; }
|
||||
|
||||
[StringLength(254)]
|
||||
public string Drawing { get; set; }
|
||||
|
||||
[StringLength(32)]
|
||||
public string DwgRevision { get; set; }
|
||||
|
||||
[StringLength(254)]
|
||||
public string LoopList { get; set; }
|
||||
|
||||
[StringLength(254)]
|
||||
public string DwgDesc { get; set; }
|
||||
|
||||
public double? DwgMatUtil { get; set; }
|
||||
|
||||
public double? DwgPercentCutTime { get; set; }
|
||||
|
||||
[StringLength(254)]
|
||||
public string WorkOrder { get; set; }
|
||||
|
||||
public DateTime? OrderRecvDate { get; set; }
|
||||
|
||||
public DateTime? OrderDueDate { get; set; }
|
||||
|
||||
public int? QtyReq { get; set; }
|
||||
|
||||
public int? QtyNstd { get; set; }
|
||||
|
||||
public int? QtyAccepted { get; set; }
|
||||
|
||||
public int? QtyCut { get; set; }
|
||||
|
||||
[StringLength(254)]
|
||||
public string Note { get; set; }
|
||||
|
||||
[StringLength(254)]
|
||||
public string Sales { get; set; }
|
||||
|
||||
[StringLength(254)]
|
||||
public string Remarks { get; set; }
|
||||
|
||||
[StringLength(254)]
|
||||
public string RequiredGrade { get; set; }
|
||||
|
||||
public double? RequiredThickness { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string JobNo { get; set; }
|
||||
|
||||
[Column(TypeName = "text")]
|
||||
[Required]
|
||||
public string Sequence { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string Marking { get; set; }
|
||||
|
||||
public DateTime? ModifiedDate { get; set; }
|
||||
|
||||
[StringLength(254)]
|
||||
public string ModifiedBy { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string LifetimeList { get; set; }
|
||||
|
||||
public int LifetimeLargest { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string CustPO { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(20)]
|
||||
public string CustID { get; set; }
|
||||
}
|
||||
}
|
||||
117
PepLib/Data/PlateHeader.cs
Normal file
117
PepLib/Data/PlateHeader.cs
Normal file
@@ -0,0 +1,117 @@
|
||||
namespace PepLib.Data
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Data.Entity.Spatial;
|
||||
|
||||
[Table("PlateHeader")]
|
||||
public partial class PlateHeader
|
||||
{
|
||||
[Key]
|
||||
public int AutoInc { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(40)]
|
||||
public string NestName { get; set; }
|
||||
|
||||
public int CopyID { get; set; }
|
||||
|
||||
public int? PlateNumber { get; set; }
|
||||
|
||||
public int? DupNo { get; set; }
|
||||
|
||||
[StringLength(128)]
|
||||
public string InvPlateName { get; set; }
|
||||
|
||||
public double InvCostPerWeight { get; set; }
|
||||
|
||||
public double? RapidDist { get; set; }
|
||||
|
||||
public double? CutDist { get; set; }
|
||||
|
||||
public int? CutTime { get; set; }
|
||||
|
||||
public double? PlateWeight { get; set; }
|
||||
|
||||
public double? PlateCost { get; set; }
|
||||
|
||||
[StringLength(20)]
|
||||
public string RemnantSize { get; set; }
|
||||
|
||||
public double? RemnantArea { get; set; }
|
||||
|
||||
public double? RemnantCost { get; set; }
|
||||
|
||||
public double? RemnantWeight { get; set; }
|
||||
|
||||
[StringLength(20)]
|
||||
public string PlateSize { get; set; }
|
||||
|
||||
public int? PlateDuplicates { get; set; }
|
||||
|
||||
public double? PlateUtilization { get; set; }
|
||||
|
||||
public double? PlateMaterialUtil { get; set; }
|
||||
|
||||
public double? TotalArea1 { get; set; }
|
||||
|
||||
public double? TotalArea2 { get; set; }
|
||||
|
||||
public int? Status { get; set; }
|
||||
|
||||
public DateTime? Statusdate { get; set; }
|
||||
|
||||
public int? rStatus { get; set; }
|
||||
|
||||
public DateTime? rDateStamp { get; set; }
|
||||
|
||||
[StringLength(40)]
|
||||
public string HeatLot { get; set; }
|
||||
|
||||
[StringLength(20)]
|
||||
public string UpdateStatus { get; set; }
|
||||
|
||||
public double? ActualCutTime { get; set; }
|
||||
|
||||
public double? ActualStartTime { get; set; }
|
||||
|
||||
public double? ActualEndTime { get; set; }
|
||||
|
||||
[StringLength(254)]
|
||||
public string ImageFile { get; set; }
|
||||
|
||||
[StringLength(254)]
|
||||
public string Note { get; set; }
|
||||
|
||||
[StringLength(254)]
|
||||
public string ProgramName { get; set; }
|
||||
|
||||
public DateTime? ModifiedDate { get; set; }
|
||||
|
||||
[StringLength(254)]
|
||||
public string ModifiedBy { get; set; }
|
||||
|
||||
[StringLength(254)]
|
||||
public string Location { get; set; }
|
||||
|
||||
public DateTime? DateCut { get; set; }
|
||||
|
||||
public short InvImpAllocated { get; set; }
|
||||
|
||||
public double CombSavingDist { get; set; }
|
||||
|
||||
public int HeadRaises { get; set; }
|
||||
|
||||
public int RapidCount { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(25)]
|
||||
public string NestedSize { get; set; }
|
||||
|
||||
public double NestedLength { get; set; }
|
||||
|
||||
public double NestedWidth { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -60,11 +60,6 @@ namespace PepLib.IO
|
||||
|
||||
switch (extension)
|
||||
{
|
||||
case ".dir":
|
||||
LoadInfo(memstream);
|
||||
memstream.Close();
|
||||
continue;
|
||||
|
||||
case ".report":
|
||||
LoadReport(memstream);
|
||||
memstream.Close();
|
||||
@@ -119,19 +114,6 @@ namespace PepLib.IO
|
||||
}
|
||||
}
|
||||
|
||||
private void LoadInfo(Stream stream)
|
||||
{
|
||||
try
|
||||
{
|
||||
Nest.Info = NestInfo.Load(stream);
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
Debug.WriteLine(exception.Message);
|
||||
Debug.WriteLine(exception.StackTrace);
|
||||
}
|
||||
}
|
||||
|
||||
private void LoadReport(Stream stream)
|
||||
{
|
||||
try
|
||||
|
||||
155
PepLib/Nest.cs
155
PepLib/Nest.cs
@@ -10,15 +10,12 @@ namespace PepLib
|
||||
{
|
||||
public Nest()
|
||||
{
|
||||
Info = new NestInfo();
|
||||
Report = new Report();
|
||||
Loops = new List<Loop>();
|
||||
Plates = new List<Plate>();
|
||||
Drawings = new List<NestDrawing>();
|
||||
}
|
||||
|
||||
public NestInfo Info { get; set; }
|
||||
|
||||
public Report Report { get; set; }
|
||||
|
||||
public List<Loop> Loops { get; set; }
|
||||
@@ -66,11 +63,6 @@ namespace PepLib
|
||||
return qty;
|
||||
}
|
||||
|
||||
private string GetLoopName(int loopId)
|
||||
{
|
||||
return string.Format("{0}.loop-{1}", Info.Name, loopId.ToString().PadLeft(3, '0'));
|
||||
}
|
||||
|
||||
private Loop GetLoop(string name)
|
||||
{
|
||||
for (int i = 0; i < Loops.Count; ++i)
|
||||
@@ -84,8 +76,15 @@ namespace PepLib
|
||||
|
||||
public Loop GetLoop(int id)
|
||||
{
|
||||
string name = GetLoopName(id);
|
||||
return GetLoop(name);
|
||||
var ext = $".loop-{id.ToString().PadLeft(3, '0')}";
|
||||
|
||||
for (int i = 0; i < Loops.Count; ++i)
|
||||
{
|
||||
if (Loops[i].Name.EndsWith(ext))
|
||||
return Loops[i];
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public static Nest Load(string nestfile)
|
||||
@@ -131,141 +130,5 @@ namespace PepLib
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
#region NestInfo wrapper properties
|
||||
|
||||
public string Name
|
||||
{
|
||||
get { return Info.Name; }
|
||||
set { Info.Name = value; }
|
||||
}
|
||||
|
||||
public DateTime CreationDate
|
||||
{
|
||||
get { return Info.DateCreated; }
|
||||
set { Info.DateCreated = value; }
|
||||
}
|
||||
|
||||
public DateTime LastModifiedDate
|
||||
{
|
||||
get { return Info.DateLastModified; }
|
||||
set { Info.DateLastModified = value; }
|
||||
}
|
||||
|
||||
public StatusType Status
|
||||
{
|
||||
get { return Info.Status; }
|
||||
set { Info.Status = value; }
|
||||
}
|
||||
|
||||
public int LoopCount
|
||||
{
|
||||
get { return Info.LoopCount; }
|
||||
set { Info.LoopCount = value; }
|
||||
}
|
||||
|
||||
public int PlateCount
|
||||
{
|
||||
get { return Info.PlateCount; }
|
||||
set { Info.PlateCount = value; }
|
||||
}
|
||||
|
||||
public string Comment
|
||||
{
|
||||
get { return Info.Comments; }
|
||||
set { Info.Comments = value; }
|
||||
}
|
||||
|
||||
public string Customer
|
||||
{
|
||||
get { return Info.Customer; }
|
||||
set { Info.Customer = value; }
|
||||
}
|
||||
|
||||
public string ProgrammedBy
|
||||
{
|
||||
get { return Info.ProgrammedBy; }
|
||||
set { Info.ProgrammedBy = value; }
|
||||
}
|
||||
|
||||
public int MaterialNumber
|
||||
{
|
||||
get { return Info.MaterialNumber; }
|
||||
set { Info.MaterialNumber = value; }
|
||||
}
|
||||
|
||||
public string MaterialGrade
|
||||
{
|
||||
get { return Info.MaterialGrade; }
|
||||
set { Info.MaterialGrade = value; }
|
||||
}
|
||||
|
||||
public string Notes
|
||||
{
|
||||
get { return Info.Notes; }
|
||||
set { Info.Notes = value; }
|
||||
}
|
||||
|
||||
public string DefaultPlateSize
|
||||
{
|
||||
get { return Info.DefaultPlateSize; }
|
||||
set { Info.DefaultPlateSize = value; }
|
||||
}
|
||||
|
||||
public string Kerf
|
||||
{
|
||||
get { return Info.Kerf; }
|
||||
set { Info.Kerf = value; }
|
||||
}
|
||||
|
||||
public string PostedAs
|
||||
{
|
||||
get { return Info.PostedAs; }
|
||||
set { Info.PostedAs = value; }
|
||||
}
|
||||
|
||||
public string Errors
|
||||
{
|
||||
get { return Info.Errors; }
|
||||
set { Info.Errors = value; }
|
||||
}
|
||||
|
||||
public string UserDefined1
|
||||
{
|
||||
get { return Info.UserDefined1; }
|
||||
set { Info.UserDefined1 = value; }
|
||||
}
|
||||
|
||||
public string UserDefined2
|
||||
{
|
||||
get { return Info.UserDefined2; }
|
||||
set { Info.UserDefined2 = value; }
|
||||
}
|
||||
|
||||
public string UserDefined3
|
||||
{
|
||||
get { return Info.UserDefined3; }
|
||||
set { Info.UserDefined3 = value; }
|
||||
}
|
||||
|
||||
public string UserDefined4
|
||||
{
|
||||
get { return Info.UserDefined4; }
|
||||
set { Info.UserDefined4 = value; }
|
||||
}
|
||||
|
||||
public string UserDefined5
|
||||
{
|
||||
get { return Info.UserDefined5; }
|
||||
set { Info.UserDefined5 = value; }
|
||||
}
|
||||
|
||||
public string UserDefined6
|
||||
{
|
||||
get { return Info.UserDefined6; }
|
||||
set { Info.UserDefined6 = value; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>PepLib</RootNamespace>
|
||||
<AssemblyName>PepLib</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
@@ -34,6 +34,10 @@
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Runtime.Serialization" />
|
||||
<Reference Include="System.Security" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="AngleConverter.cs" />
|
||||
@@ -47,6 +51,13 @@
|
||||
<Compile Include="Codes\Comment.cs" />
|
||||
<Compile Include="Codes\CodeType.cs" />
|
||||
<Compile Include="Codes\ICode.cs" />
|
||||
<Compile Include="Data\Drawing.cs" />
|
||||
<Compile Include="Data\NestDetail.cs" />
|
||||
<Compile Include="Data\NestDrawing.cs" />
|
||||
<Compile Include="Data\NestHeader.cs" />
|
||||
<Compile Include="Data\PepDB.cs" />
|
||||
<Compile Include="Data\PlateDetail.cs" />
|
||||
<Compile Include="Data\PlateHeader.cs" />
|
||||
<Compile Include="Generic.cs" />
|
||||
<Compile Include="IniConfig.cs" />
|
||||
<Compile Include="IO\MaterialDataReader.cs" />
|
||||
@@ -99,6 +110,12 @@
|
||||
<PackageReference Include="DotNetZip">
|
||||
<Version>1.13.3</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="EntityFramework">
|
||||
<Version>6.2.0</Version>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.Config" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
|
||||
Reference in New Issue
Block a user