SharedDatabase.Entities.Part.CodeType and CodeForm --> sbyte, ver. 3.1.1813

This commit is contained in:
Milan Hanajik
2021-11-26 10:33:21 +01:00
parent 513c808f2b
commit 021f17c774
9 changed files with 19 additions and 19 deletions
+3 -3
View File
@@ -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;