public void AddReceivedItems(ClientOrderDetailCollection clientOrderDetailCollection) { foreach (ClientOrderDetail clientOrderDetail in clientOrderDetailCollection) { if (clientOrderDetail.Received == true) { this.Add(clientOrderDetail); } } }
public static YellowstonePathology.Business.Validation.ValidationResult IsDataTypeValid(ClientOrderDetail clientOrderDetail, ClientOrderDetailCollection clientOrderDetailCollection) { Business.Validation.ValidationResult result = new Business.Validation.ValidationResult(); result.IsValid = true; List<YellowstonePathology.Business.Validation.ValidationResult> validationResults = new List<Business.Validation.ValidationResult>(); validationResults.Add(clientOrderDetailCollection.IsContainerIdNotADuplicate(clientOrderDetail.ClientOrderDetailId, clientOrderDetail.ContainerId)); foreach (Business.Validation.ValidationResult validationResult in validationResults) { if (validationResult.IsValid == false) { result = validationResult; break; } } return result; }
public ClientOrder(string objectId) { this.m_ObjectId = objectId; this.m_ClientOrderDetailCollection = new ClientOrderDetailCollection(); }
public ClientOrder() { this.m_ClientOrderDetailCollection = new ClientOrderDetailCollection(); }
public ClientOrder(string objectId) { this.m_ObjectId = objectId; this.m_ClientOrderDetailCollection = new ClientOrderDetailCollection(); }
public ClientOrder() { this.m_ClientOrderDetailCollection = new ClientOrderDetailCollection(); }
public static YellowstonePathology.Business.Validation.ValidationResult IsDataTypeValid(ClientOrderDetail clientOrderDetail, ClientOrderDetailCollection clientOrderDetailCollection) { Business.Validation.ValidationResult result = new Business.Validation.ValidationResult(); result.IsValid = true; List <YellowstonePathology.Business.Validation.ValidationResult> validationResults = new List <Business.Validation.ValidationResult>(); validationResults.Add(clientOrderDetailCollection.IsContainerIdNotADuplicate(clientOrderDetail.ClientOrderDetailId, clientOrderDetail.ContainerId)); foreach (Business.Validation.ValidationResult validationResult in validationResults) { if (validationResult.IsValid == false) { result = validationResult; break; } } return(result); }