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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user