Esempio n. 1
0
        public static List <PackageCheckEntity> InsertPackageCheck(dynamic bodyData)
        {
            List <PackageCheckEntity> Packages = new List <PackageCheckEntity>();

            foreach (var package in bodyData)
            {
                PackageCheckEntity tmpPack = new PackageCheckEntity();
                tmpPack.PackageId = package.PackageId;
                tmpPack.RunType   = convertToInt(Convert.ToString(package.RunType));
                tmpPack.InstCode  = package.InstCode;
                Packages.Add(tmpPack);
            }

            return(Packages);
        }
Esempio n. 2
0
 public static PackageCheckTableEntity ToTableEntity(this PackageCheckEntity packageCheckEntry, string partitionKey)
 {
     return(new PackageCheckTableEntity()
     {
         PartitionKey = partitionKey,
         RowKey = packageCheckEntry.Id,
         PackageId = packageCheckEntry.PackageId,
         InstCode = packageCheckEntry.InstCode,
         EntryTime = packageCheckEntry.EntryTime,
         ProcessedTime = packageCheckEntry.ProcessedTime,
         LCI = packageCheckEntry.LCI,
         SAP = packageCheckEntry.SAP,
         ProcoSys = packageCheckEntry.ProcoSys,
         RunType = packageCheckEntry.RunType,
         Status = packageCheckEntry.Status
     });
 }