Esempio n. 1
0
 public static HistoriqueJaugeDto FromModel(HistoriqueJauge model)
 {
     return(new HistoriqueJaugeDto()
     {
         Id = model.Id,
         IdAgent = model.IdAgent,
         IdBac = model.IdBac,
         IdProduit = model.IdProduit,
         DateJauge = model.DateJauge,
         HauteurJauge = model.HauteurJauge,
         Temperature = model.Temperature,
         DateCreation = model.DateCreation,
         Observations = model.Observations,
         VolumeJauge = model.VolumeJauge,
         VolumeCreux = model.VolumeCreux,
         DensiteAQuize = model.DensiteAQuize,
         IdStatutBac = model.IdStatutBac,
         Bsw = model.Bsw,
         PiedEau = model.PiedEau,
         VolumeEau = model.VolumeEau,
         Vcf = model.Vcf,
         CorrectToit = model.CorrectToit,
         DensiteAT = model.DensiteAT,
         StatusCode = model.StatusCode,
         IdAgentNavigation = AgentDto.FromModel(model.IdAgentNavigation),
         IdBacNavigation = BacDto.FromModel(model.IdBacNavigation),
         IdProduitNavigation = ProduitDto.FromModel(model.IdProduitNavigation),
         IdStatutBacNavigation = StatutDto.FromModel(model.IdStatutBacNavigation),
     });
 }
Esempio n. 2
0
 public static BacDto FromModel(Bac model)
 {
     return(new BacDto()
     {
         Id = model.Id,
         Repere = model.Repere,
         IdTypeBac = model.IdTypeBac,
         DateDebut = model.DateDebut,
         DateFin = model.DateFin,
         IdTypeToit = model.IdTypeToit,
         DateCreation = model.DateCreation,
         Diametre = model.Diametre,
         VolumeTotal = model.VolumeTotal,
         DateDerogation = model.DateDerogation,
         IdStatut = model.IdStatut,
         HauteurMiniExplotation = model.HauteurMiniExplotation,
         VolumeNonPompable = model.VolumeNonPompable,
         TonnageBrut = model.TonnageBrut,
         TonnageNet = model.TonnageNet,
         HauteurTotalReference = model.HauteurTotalReference,
         VolumeTheorique = model.VolumeTheorique,
         VolumeReel = model.VolumeReel,
         MasseDuToit = model.MasseDuToit,
         HauteurMiniZoneIncertitude = model.HauteurMiniZoneIncertitude,
         HauteurMaxiZoneIncertitude = model.HauteurMaxiZoneIncertitude,
         HauteurMaximalJauge = model.HauteurMaximalJauge,
         StatusCode = model.StatusCode,
         IdStatutNavigation = StatutDto.FromModel(model.IdStatutNavigation),
         IdTypeBacNavigation = TypeBacDto.FromModel(model.IdTypeBacNavigation),
         IdTypeToitNavigation = TypeToitDto.FromModel(model.IdTypeToitNavigation),
         EnvoiProduit = model.EnvoiProduit,
         HistoriqueJauge = model.HistoriqueJauge,
         IntervalleBaremage = model.IntervalleBaremage,
         ProduitBac = model.ProduitBac,
         ReceptionProduit = model.ReceptionProduit,
         TableVolumeDeplace = model.TableVolumeDeplace,
         TransfertIdBacDestinationNavigation = model.TransfertIdBacDestinationNavigation,
         TransfertIdBacSourceNavigation = model.TransfertIdBacSourceNavigation,
     });
 }