public new void FindById(string id) { FindClientUserData(id); GetClientUserData(); if (Client == null) { return; } var dataRepository = ComercialDataRepository.OpenRepository(); Client.ComercialInfo = dataRepository.FindById(id); }
public new void FindById(string id) { FindCarrierUserData(id); GetCarrierUserData(); if (Carrier == null) { return; } var dataRepository = ComercialDataRepository.OpenRepository(); Carrier.ComercialInfo = dataRepository.FindById(id); Carrier.VehicleList = FindAllVehicles(id); }
public new void FindById(string clientId) { FindProducerUserData(clientId); GetProducerUserData(); if (Producer == null) { return; } var dataRepository = ComercialDataRepository.OpenRepository(); Producer.ComercialInfo = dataRepository.FindById(clientId); Producer.ProductList = FindAllProducts(clientId); }
private ContractDetail ExtractDetailInfoFromDataRow(DataRow row) { var detail = ContractDetail.CreateDetail(); detail.Customer.Id = row["id_cliente"].ToString(); detail.Customer.FirstName = row["Cliente"].ToString(); detail.Customer.Dni = row["Rut"].ToString(); detail.Customer.Credentials.Email = row["email"].ToString(); detail.ContractObservation = row["Observacion contrato"].ToString(); detail.ClientObservation = row["Observacion cliente"].ToString(); detail.AdditionalValue = float.Parse(row["Valor adicional"].ToString()); detail.FineValue = float.Parse(row["Valor multa"].ToString()); detail.Status = int.Parse(row["estado_aceptacion"].ToString()); detail.StatusDescription = row["Estado"].ToString(); var r = ComercialDataRepository.OpenRepository(); detail.Customer.ComercialInfo = r.FindById(detail.Customer.Id); return(detail); }