Example #1
0
        public void Charger_Parametres()
        {
            // -- Version de l'application -- //
            this.ViewBag.VERSION_BUILD = AppSettings.VERSION_BUILD;

            // -- Nom de l'application -- //
            this.ViewBag.APP_NAME = AppSettings.APP_NAME;

            // -- Paramètres langue -- //
            this.ViewBag.Lang = new System.Dynamic.ExpandoObject();

            // -- Initialisation des données à traiter -- //
            this.ViewBag.donnee = new System.Dynamic.ExpandoObject();

            // -- Paramètres de test -- //
            this.ViewBag.Test = new System.Dynamic.ExpandoObject();

            // -- Langue de l'application -- //
            this.ViewBag.Lang.code = (this.id_lang == 0) ? GB_Enum_Langue.Anglais
                                                         : GB_Enum_Langue.Francais;

            // -- Label cookiee -- //
            this.ViewBag.Lang.Cookie_message = App_Lang.Lang.Cookie_message;
            this.ViewBag.Lang.Cookie_button  = App_Lang.Lang.Cookie_button;
            this.ViewBag.Lang.Copyright      = App_Lang.Lang.Copyright;
            this.ViewBag.Lang.Process        = App_Lang.Lang.Process;

            // -- Lable bouton -- //
            this.ViewBag.Lang.New           = App_Lang.Lang.New;
            this.ViewBag.Lang.Delete        = App_Lang.Lang.Delete;
            this.ViewBag.Lang.Save          = App_Lang.Lang.Save;
            this.ViewBag.Lang.Print         = App_Lang.Lang.Print;
            this.ViewBag.Lang.Close         = App_Lang.Lang.Close;
            this.ViewBag.Lang.Form          = App_Lang.Lang.Form;
            this.ViewBag.Lang.Yes           = App_Lang.Lang.Yes;
            this.ViewBag.Lang.No            = App_Lang.Lang.No;
            this.ViewBag.Lang.Modify        = App_Lang.Lang.Modify;
            this.ViewBag.Lang.Name          = App_Lang.Lang.Name;
            this.ViewBag.Lang.Surname       = App_Lang.Lang.Surname;
            this.ViewBag.Lang.Name_french   = App_Lang.Lang.Name + "-" + App_Lang.Lang.French;
            this.ViewBag.Lang.Name_english  = App_Lang.Lang.Name + "-" + App_Lang.Lang.English;
            this.ViewBag.Lang.Creation_date = App_Lang.Lang.Creation_date;
            this.ViewBag.Lang.Employee      = App_Lang.Lang.Employee;

            // -- Autre -- //
            this.ViewBag.Lang.List_of_records = App_Lang.Lang.List_of_records;

            // -- Rendu html dans les combo box -- //
            this.ViewBag.donnee.HTML_Non_Oui = GBClass.HTML_Non_Oui();
            this.ViewBag.donnee.HTML_Oui_Non = GBClass.HTML_Oui_Non();
        }