Example #1
0
 public static DomaineTED GetDomaine(ExportTED ted)
 {
     if (ted.SousSysteme == "Prestations FSS")
     {
         return(DomaineTED.FSS);
     }
     if (ted.SousSysteme == "eSRC" || ted.Intitule.ToUpper().StartsWith("ESRC"))
     {
         return(DomaineTED.eSRC);
     }
     if (ted.SousSysteme == "ServicesCommuns")
     {
         return(DomaineTED.Commun);
     }
     if (ted.SousSysteme.StartsWith("Actuaria"))
     {
         return(DomaineTED.Tauri);
     }
     return(DomaineTED.Inconnu);
 }
Example #2
0
        public static NatureTED GetNature(ExportTED ted)
        {
            if (ted.Intitule.ToUpper().StartsWith("[SUIVI") || ted.Intitule.ToUpper().Contains("SUIVI DE PROD"))
            {
                return(NatureTED.Suivi_Production);
            }
            if (ted.Type == "Evolution")
            {
                return(NatureTED.Evolution);
            }

            if (ted.Type == "Imprévu")
            {
                return(NatureTED.Imprevu);
            }

            if (ted.Type == "Tâche")
            {
                return(NatureTED.Tache);
            }
            return(NatureTED.Inconnu);
        }
Example #3
0
        public static ImportLeanKit GetDTOForTED(ExportTED ted)
        {
            var t = new ImportLeanKit();

            t.Card_Description = ted.Intitule;
            t.Card_Title       = $"TED {ted.Numero}";
            var domaine = GetDomaine(ted);
            var nature  = GetNature(ted);

            switch (nature)
            {
            case NatureTED.Suivi_Production:
                t.Lane_Id   = LANE_SUIVI;
                t.Card_Type = CARD_TYPE_SUIVI;
                break;

            case NatureTED.Evolution:
                t.Card_Type = CARD_TYPE_EVOL;
                switch (domaine)
                {
                case DomaineTED.eSRC:
                    t.Lane_Id = LANE_EVOL_ESRC;
                    break;

                case DomaineTED.Tauri:
                    t.Lane_Id = LANE_EVOL_TAURI;
                    break;

                case DomaineTED.FSS:
                default:
                    t.Lane_Id = LANE_EVOL_FSS;
                    break;
                }
                break;

            case NatureTED.Tache:
                t.Card_Type = CARD_TYPE_TACHES;
                switch (domaine)
                {
                case DomaineTED.eSRC:
                    t.Lane_Id = LANE_TACHE_ESRC;
                    break;

                case DomaineTED.Tauri:
                    t.Lane_Id = LANE_TACHE_TAURI;
                    break;

                case DomaineTED.FSS:
                default:
                    t.Lane_Id = LANE_TACHE_FSS;
                    break;
                }
                break;

            case NatureTED.Imprevu:
            default:
                t.Card_Type = CARD_TYPE_TACHES;
                switch (domaine)
                {
                case DomaineTED.eSRC:
                    t.Lane_Id = LANE_IMPREVU_ESRC;
                    break;

                case DomaineTED.Tauri:
                    t.Lane_Id = LANE_IMPREVU_TAURI;
                    break;

                case DomaineTED.FSS:
                default:
                    t.Lane_Id = LANE_IMPREVU_FSS;
                    break;
                }
                break;
            }
            return(t);
        }