public static ComplexProduction GetPending(long pId, long lId) { ComplexProduction production = BusinessDomain.DataAccessProvider.GetPendingOperation <ComplexProduction> (OperationType.ComplexProductionMaterial, pId, lId); if (production != null) { production.LoadDetails(); production.IsDirty = false; } return(production); }
public static ComplexProduction GetById(long id) { ComplexProduction production = BusinessDomain.DataAccessProvider.GetOperationById <ComplexProduction> (OperationType.ComplexProductionMaterial, id); if (production != null) { production.LoadDetails(); production.IsDirty = false; } return(production); }