SharedDatabase.Entities.Part.CodeType and CodeForm --> sbyte, ver. 3.1.1813
This commit is contained in:
@@ -52,7 +52,7 @@ namespace TBF.Rig.DataEntry.S620.CheckItems
|
||||
kodMaterialuLabel.Text = part.Name;
|
||||
descriptionMaterialuLabel.Text = part.Description;
|
||||
|
||||
if (part.CodeForm == CodeForm.Barcode)
|
||||
if (part.CodeForm == (sbyte)CodeForm.Barcode)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -65,7 +65,7 @@ namespace TBF.Rig.DataEntry.S620.CheckItems
|
||||
|
||||
public void ClearCode()
|
||||
{
|
||||
if (part.CodeType != CodeType.Silicon)
|
||||
if (part.CodeType != (sbyte)CodeType.Silicon)
|
||||
{
|
||||
scannedCodeTextBox.Text = (part.DefaultCode != null) ? part.DefaultCode : string.Empty;
|
||||
}
|
||||
@@ -106,7 +106,7 @@ namespace TBF.Rig.DataEntry.S620.CheckItems
|
||||
}
|
||||
else
|
||||
{
|
||||
switch (part.CodeType)
|
||||
switch ((CodeType)part.CodeType)
|
||||
{
|
||||
case CodeType.FlowtubeNr:
|
||||
if ((scannedCodeTextBox.Text.Length < 3) || !scannedCodeTextBox.Text.Substring(0, 3).Equals(part.Name.Substring(part.Name.Length - 3)))
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace TBF.Rig.DataEntry.S620.CheckItems
|
||||
|
||||
public void ClearCode()
|
||||
{
|
||||
if (part.CodeType != CodeType.Silicon)
|
||||
if (part.CodeType != (sbyte)CodeType.Silicon)
|
||||
{
|
||||
scannedCodeTextBox.Text = (part.DefaultCode != null) ? part.DefaultCode : string.Empty;
|
||||
}
|
||||
|
||||
@@ -636,7 +636,7 @@ namespace TBF.Rig.DataEntry.S620
|
||||
}
|
||||
else if (p.CodeLocation == CodeLocation.OnPallet)
|
||||
{
|
||||
switch (p.CodeForm)
|
||||
switch ((CodeForm)p.CodeForm)
|
||||
{
|
||||
case CodeForm.OkNok:
|
||||
polozka = new CheckItems.OkNok(this, p);
|
||||
|
||||
@@ -16,8 +16,8 @@ namespace TBF.Rig.Output.DB.ProductionTracing
|
||||
public string Description;
|
||||
public string Code;
|
||||
public DateTime TimeStamp;
|
||||
public CodeType CodeType;
|
||||
public CodeForm CodeForm;
|
||||
public sbyte CodeType;
|
||||
public sbyte CodeForm;
|
||||
public CodeLocation CodeLocation;
|
||||
public string UserName;
|
||||
public string Workplace;
|
||||
|
||||
Reference in New Issue
Block a user