Example #1
0
        protected override void setEtatLivret()
        {
            String strEtat = EtatLivret;
            String strKey  = "";

            if (IsDecisionJuryFavorable || (IsDecisionJuryDefavorable && IsRecoursDemande && IsDecisionJuryRecoursFavorable))
            {
                strKey = String.Format("{0:D}", MyEnums.EtatL1.ETAT_L1_ACCEPTE);
            }
            if ((IsDecisionJuryDefavorable && !IsRecoursDemande) ||
                (IsDecisionJuryDefavorable && IsRecoursDemande && IsDecisionJuryRecoursDefavorable))
            {
                strKey = String.Format("{0:D}", MyEnums.EtatL1.ETAT_L1_REFUSE);
            }
            if (!String.IsNullOrEmpty(strKey))
            {
                if (LstEtatLivret != null)
                {
                    strEtat    = LstEtatLivret.Find(x => x.StartsWith(strKey));
                    EtatLivret = strEtat;
                }
            }
            if (IsEtatSansSuite)
            {
                IsLivretClos = true;
            }
        }
Example #2
0
        private void setEtatLivret()
        {
            String strEtat = EtatLivret;
            String strKey  = "";

            if (IsDecisionJuryFavorable || (IsDecisionJuryDefavorable && IsRecoursDemande && IsDecisionJuryRecoursFavorable))
            {
                strKey = String.Format("{0:D}", MyEnums.EtatL1.ETAT_L1_ACCEPTE);
            }
            if ((IsDecisionJuryDefavorable && !IsRecoursDemande) ||
                (IsDecisionJuryDefavorable && IsRecoursDemande && IsDecisionJuryRecoursDefavorable))
            {
                strKey = String.Format("{0:D}", MyEnums.EtatL1.ETAT_L1_REFUSE);
            }
            strEtat    = LstEtatLivret.Find(x => x.StartsWith(strKey));
            EtatLivret = strEtat;
        }
Example #3
0
        private void setEtatLivret()
        {
            String strEtat = EtatLivret;
            String strKey  = "";

            if (IsDecisionJuryFavorable || IsDecisionJuryPartielle)
            {
                strKey     = String.Format("{0:D}", MyEnums.EtatL1.ETAT_L1_ACCEPTE);
                strEtat    = LstEtatLivret.Find(x => x.StartsWith(strKey));
                EtatLivret = strEtat;
            }
            if (IsDecisionJuryDefavorable)
            {
                strKey     = String.Format("{0:D}", MyEnums.EtatL1.ETAT_L1_REFUSE);
                strEtat    = LstEtatLivret.Find(x => x.StartsWith(strKey));
                EtatLivret = strEtat;
            }
        }