示例#1
0
        public void Put(Label entity)
        {
            if (entity.IsTransferring == true)
            {
                var item = dbSet.Find(entity.SampleID);
                switch (item.Location)
                {
                case "Remote Site":
                    item.IsTransferring = true;
                    item.Location       = "Core Shack";
                    item.Scanned        = false;
                    break;

                case "Core Shack":
                    item.IsTransferring = true;
                    item.Location       = "Transport";
                    item.Scanned        = false;
                    break;

                case "Transport":
                    item.IsTransferring = true;
                    item.Location       = "Lab";
                    item.Scanned        = false;
                    break;
                }
                context.Entry(item).State = EntityState.Modified;
            }
            else
            {
                context.Entry(entity).State = EntityState.Modified;
            }
        }
示例#2
0
        public void Put(RecoveryIntervalsDTO entity)
        {
            var item = new RecoveryInterval
            {
                HOLEID        = entity.HOLEID,
                PROJECTCODE   = entity.PROJECTCODE,
                GEOLFROM      = entity.GEOLFROM,
                GEOLTO        = entity.GEOLTO,
                PRIORITY      = entity.PRIORITY,
                Recovery_m    = entity.Recovery_m,
                RecovGeo      = entity.RecovGeo,
                RecovGeoDate  = entity.RecovGeoDate,
                CoreLength    = entity.CoreLength,
                RecoveryRatio = entity.RecoveryRatio,
                ID            = entity.ID
            };

            context.Entry(item).State = EntityState.Modified;
        }
 public void Put(RejectAlert entity)
 {
     context.Entry(entity).State = EntityState.Modified;
 }
示例#4
0
 public void Put(standardReference entity)
 {
     context.Entry(entity).State = EntityState.Modified;
 }
 public void Put(ContaminationCheck entity)
 {
     context.Entry(entity).State = EntityState.Modified;
 }
 public void Put(Laboratory_analysis entity)
 {
     context.Entry(entity).State = EntityState.Modified;
 }
示例#7
0
 public void Put(DrillholesPlanning entity)
 {
     context.Entry(entity).State = EntityState.Modified;
 }
示例#8
0
 public void Put(DrillholeSamplesView entity)
 {
     context.Entry(entity).State = EntityState.Modified;
 }
 public void Put(AlertGenerator entity)
 {
     context.Entry(entity).State = EntityState.Modified;
 }