Beispiel #1
0
        public List <EquinoxeExtend.Shared.Object.Record.Specification> GetSpecificationsByDossierId(long iDossierId, bool iIsFull)
        {
            var result   = new List <EquinoxeExtend.Shared.Object.Record.Specification>();
            var entities = DBRecordDataService.GetList <T_E_Specification>(x => x.DossierId == iDossierId);

            foreach (var entity in entities.Enum())
            {
                result.Add(GetSpecificationByName(entity.Name, iIsFull));
            }

            return(result.Enum().OrderBy(x => x.CreationDate).ToList());
        }
Beispiel #2
0
        public List <EquinoxeExtend.Shared.Object.Record.Generation> GetGenerationBySpecificationId(long iSpecificationId)
        {
            var entities = DBRecordDataService.GetList <T_E_Generation>(x => x.SpecificationId == iSpecificationId);

            if (entities != null)
            {
                return(entities.Select(x => x.Convert()).ToList());
            }
            else
            {
                return(null);
            }
        }
Beispiel #3
0
        public List <EquinoxeExtend.Shared.Object.Record.Dossier> GetDossiers(bool iIsNotTemplate)
        {
            var theDossiers = DBRecordDataService.GetList <T_E_Dossier>(x => x.IsTemplate != iIsNotTemplate).Enum().Select(x => x.Convert()).Enum().ToList();

            var result = new List <Dossier>();

            foreach (var DossierItem in theDossiers.Enum())
            {
                DossierItem.Specifications = GetSpecificationsByDossierId(DossierItem.DossierId, true);
                DossierItem.Lock           = GetLockByDossierId(DossierItem.DossierId);
                result.Add(DossierItem);
            }
            return(theDossiers);
        }