Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            #region initialisation ressource
            serviceRessource = new ImplDalServiceRessource();
            serviceLien      = new ImplDalLien();
            #endregion

            #region verification
            this.verification();
            #endregion

            #region initialisation
            serviceAutorisationDepart = new ImplDalAutorisationDepart();
            serviceRecuAD             = new ImplDalRecuAD();
            serviceTypeRecuAD         = new ImplDalTypeRecuAD();
            serviceFicheBord          = new ImplDalFicheBord();
            serviceGeneral            = new ImplDalGeneral();
            servicePrelevement        = new ImplDalPrelevement();
            serviceTypePrelevement    = new ImplDalTypePrelevement();
            #endregion

            #region !IsPostBack
            if (!IsPostBack)
            {
                this.initialiseErrorMessage();
                hfAutorisationDepart.Value = "";
                hfPrelevement.Value        = "";

                serviceTypePrelevement.loadDddlTypePrelevement(ddlTypeRecuAD);

                this.initialiseGridAD();
            }
            #endregion
        }
Exemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            #region initialisation ressource
            serviceRessource = new ImplDalServiceRessource();
            serviceLien      = new ImplDalLien();
            #endregion

            #region verification
            this.verification();
            #endregion

            #region initialisation
            serviceFicheBord          = new ImplDalFicheBord();
            serviceVoyage             = new ImplDalVoyage();
            serviceCommission         = new ImplDalCommission();
            serviceAutorisationDepart = new ImplDalAutorisationDepart();
            serviceRecuAD             = new ImplDalRecuAD();
            serviceGeneral            = new ImplDalGeneral();
            servicePrelevement        = new ImplDalPrelevement();
            #endregion

            #region !IsPostBack
            if (!IsPostBack)
            {
                numAutorisationDepart = Request.QueryString["numerosAD"];

                if (numAutorisationDepart != null)
                {
                    this.afficheAutorisationVoyage(numAutorisationDepart);
                    this.initialiseGridCommission();
                    this.initialiseGridPassager();
                    this.initialiseGridRecuAD();
                    this.initialiseGridPrelevement();
                    this.initialiseLabel();

                    this.initialiseGridAD();
                }
                else
                {
                    hfAutorisationDepart.Value = "";

                    this.initialiseGridAD();
                }
            }
            #endregion
        }