54 lines
1.4 KiB
C#
54 lines
1.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using TracingDB.Entities;
|
|
|
|
namespace TracingDB
|
|
{
|
|
public class WMPart
|
|
{
|
|
public string Name;
|
|
public Process Process;
|
|
public string OraDBType;
|
|
public string Description;
|
|
public string Code;
|
|
public DateTime TimeStamp;
|
|
public CodeType CodeType;
|
|
public CodeForm CodeForm;
|
|
public CodeLocation CodeLocation;
|
|
public string UserName;
|
|
public string Workplace;
|
|
|
|
public WMPart(ReferenceRecord rr)
|
|
{
|
|
Name = rr.Workstep.ReferencePart.Name;
|
|
Process = rr.Process;
|
|
OraDBType = rr.Workstep.ReferencePart.OraDBType;
|
|
Description = rr.Workstep.ReferencePart.Description;
|
|
Code = rr.Code;
|
|
TimeStamp = rr.TimeStamp;
|
|
CodeType = rr.Workstep.ReferencePart.CodeType;
|
|
CodeForm = rr.Workstep.ReferencePart.CodeForm;
|
|
CodeLocation = rr.Workstep.ReferencePart.CodeLocation;
|
|
UserName = rr.UserName;
|
|
Workplace = rr.Workplace;
|
|
}
|
|
|
|
public WMPart(Record r)
|
|
{
|
|
Name = r.Part.Name;
|
|
Process = r.Part.Process;
|
|
OraDBType = r.Part.OraDBType;
|
|
Description = r.Part.Description;
|
|
Code = r.Code;
|
|
TimeStamp = r.TimeStamp;
|
|
CodeType = r.Part.CodeType;
|
|
CodeForm = r.Part.CodeForm;
|
|
CodeLocation = r.Part.CodeLocation;
|
|
UserName = r.ReferenceRecord.UserName;
|
|
Workplace = r.ReferenceRecord.Workplace;
|
|
}
|
|
}
|
|
}
|