IO-1376 Include op codes for Audatex.
This commit is contained in:
@@ -256,7 +256,7 @@ namespace BodyshopPartner.Utils.Decoder
|
|||||||
ownerRoot.ownr_zip = readValues[93];
|
ownerRoot.ownr_zip = readValues[93];
|
||||||
ownerRoot.ownr_ctry = readValues[94];
|
ownerRoot.ownr_ctry = readValues[94];
|
||||||
ownerRoot.ownr_ph1 = readValues[95];
|
ownerRoot.ownr_ph1 = readValues[95];
|
||||||
if(String.IsNullOrWhiteSpace(ownerRoot.ownr_ph1.Value))
|
if (String.IsNullOrWhiteSpace(ownerRoot.ownr_ph1.Value))
|
||||||
{
|
{
|
||||||
ownerRoot.ownr_ph1 = readValues[97];
|
ownerRoot.ownr_ph1 = readValues[97];
|
||||||
}
|
}
|
||||||
@@ -287,7 +287,7 @@ namespace BodyshopPartner.Utils.Decoder
|
|||||||
//j.insd_ph1x = readValues[79];
|
//j.insd_ph1x = readValues[79];
|
||||||
// j.insd_ph2 = readValues[80];
|
// j.insd_ph2 = readValues[80];
|
||||||
// j.insd_ph2x = readValues[81];
|
// j.insd_ph2x = readValues[81];
|
||||||
|
|
||||||
j.ownr_ea = readValues[84];
|
j.ownr_ea = readValues[84];
|
||||||
|
|
||||||
ownerRoot.ownr_ln = readValues[68];
|
ownerRoot.ownr_ln = readValues[68];
|
||||||
@@ -364,7 +364,7 @@ namespace BodyshopPartner.Utils.Decoder
|
|||||||
|
|
||||||
//Check to see if the owner fields are populated with OWNR_* data. If not, use clmnt.
|
//Check to see if the owner fields are populated with OWNR_* data. If not, use clmnt.
|
||||||
|
|
||||||
if(String.IsNullOrWhiteSpace((string)j.ownr_ln) && String.IsNullOrWhiteSpace((string)j.ownr_fn)&& String.IsNullOrWhiteSpace((string)j.ownr_co_nm))
|
if (String.IsNullOrWhiteSpace((string)j.ownr_ln) && String.IsNullOrWhiteSpace((string)j.ownr_fn) && String.IsNullOrWhiteSpace((string)j.ownr_co_nm))
|
||||||
{
|
{
|
||||||
|
|
||||||
j.ownr_ln = readValues[0];
|
j.ownr_ln = readValues[0];
|
||||||
@@ -1139,18 +1139,17 @@ namespace BodyshopPartner.Utils.Decoder
|
|||||||
//if part_type is blank, pull in the part type from parttypetousemitchell
|
//if part_type is blank, pull in the part type from parttypetousemitchell
|
||||||
//if not found, set description to not efined
|
//if not found, set description to not efined
|
||||||
|
|
||||||
if (string.IsNullOrEmpty(lin.oem_partno.Value))
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
lin.op_code_desc = Utils.AppMetaData.CiecaOpCodes[lin.lbr_op.Value]["desc"].Value;
|
|
||||||
}
|
|
||||||
catch (Exception Ex)
|
|
||||||
{
|
|
||||||
logger.Warn(Ex, "Couldnt find OpCodeDesc from {0} ", lin.lbr_op.Value);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
lin.op_code_desc = Utils.AppMetaData.CiecaOpCodes[lin.lbr_op.Value]["desc"].Value;
|
||||||
}
|
}
|
||||||
|
catch (Exception Ex)
|
||||||
|
{
|
||||||
|
logger.Warn(Ex, "Couldnt find OpCodeDesc from {0} ", lin.lbr_op.Value);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
allLines.Add(lin);
|
allLines.Add(lin);
|
||||||
|
|||||||
Reference in New Issue
Block a user