|
|
@ -46,11 +46,11 @@ namespace ICSSoft.FromERP |
|
|
|
List<WorkpointERPDBLink> ListDB = new List<WorkpointERPDBLink>(); |
|
|
|
foreach (string DB in DBS) |
|
|
|
{ |
|
|
|
if (DB.Split('_') != null && DB.Split('_').Count() > 1) |
|
|
|
if (DB.Split('|') != null && DB.Split('|').Count() > 1) |
|
|
|
{ |
|
|
|
WorkpointERPDBLink wd = new WorkpointERPDBLink(); |
|
|
|
wd.Workpoint = DB.Split('_')[0]; |
|
|
|
wd.ERPDB = DB.Split('_')[1]; |
|
|
|
wd.Workpoint = DB.Split('|')[0]; |
|
|
|
wd.ERPDB = DB.Split('|')[1]; |
|
|
|
ListDB.Add(wd); |
|
|
|
} |
|
|
|
} |
|
|
|