// -- recharger les données dans le auto complete -- // public override object Recharger_EasyAutocomplete(string id_page, string id_vue) { List <object> donnee = new List <object>(); try { #region SecuriteUtilisateur-Utilisateur if (id_page == GB_Enum_Menu.SecuriteUtilisateur_Utilisateur) { // -- Si la vue n'est pas retourné -- // #region autorites_signature if (id_vue == "autorite_signature") { // -- Mise à jour de la liste en session -- // this.con.donnee.autorites_signature = autoriteSignatureDAO.Lister(); } #endregion } #endregion } #region catch & finally catch (Exception ex) { // -- Vérifier la nature de l'exception -- // if (!GBException.Est_GBexception(ex)) { // -- Log -- // GBClass.Log.Error(ex); } } #endregion // -- Retoure le résultat en objet JSON -- // return(GBConvert.To_JSONString(donnee)); }
// -- Charger les données dans le auto complete -- // public override object Charger_EasyAutocomplete(string id_page, string id_vue) { List <object> donnee = new List <object>(); try { #region SecuriteUtilisateur-Utilisateur if (id_page == GB_Enum_Menu.SecuriteUtilisateur_Utilisateur) { // -- Si la vue n'est pas retourné -- // #region autorites_signature if (string.IsNullOrEmpty(id_vue)) { // -- Si la liste des autorites_signature en session est vide, la mettre à jour -- // if ((this.con.donnee.autorites_signature as List <AutoriteSignature>).Count == 0) { this.con.donnee.autorites_signature = autoriteSignatureDAO.Lister(); } // -- Charger la liste des résultats -- // foreach (var val in (this.con.donnee.autorites_signature as List <AutoriteSignature>)) { donnee.Add( new { id = val.id, code = val.code, libelle = val.libelle, } ); } } #endregion } #endregion } #region catch & finally catch (Exception ex) { // -- Vérifier la nature de l'exception -- // if (!GBException.Est_GBexception(ex)) { // -- Log -- // GBClass.Log.Error(ex); } } #endregion // -- Retoure le résultat en objet JSON -- // return(GBConvert.To_JSONString(donnee)); }
// -- Recharger les données dans le auto complete -- // public override object Recharger_EasyAutocomplete(string id_page, string id_vue) { List <object> donnee = new List <object>(); try { #region ConfigurationBudget-ParametreBudgetRevenu if (id_page == GB_Enum_Menu.ConfigurationBudget_ParametreBudgetRevenu) { // -- Si la vue est pour le compte -- // #region comptes if (id_vue == "compte") { // -- Mise à jour de la liste en session -- // this.con.donnee.comptes = CompteDAO.Lister_Cle(); } #endregion } #endregion #region ConfigurationBudget-ParametreBudgetFrais if (id_page == GB_Enum_Menu.ConfigurationBudget_ParametreBudgetFrais) { // -- Si la vue est pour le compte -- // #region comptes if (id_vue == "compte") { // -- Mise à jour de la liste en session -- // this.con.donnee.comptes = CompteDAO.Lister_Cle(); } #endregion } #endregion } #region catch & finally catch (Exception ex) { // -- Vérifier la nature de l'exception -- // if (!GBException.Est_GBexception(ex)) { // -- Log -- // GBClass.Log.Error(ex); } } #endregion // -- Retoure le résultat en objet JSON -- // return(GBConvert.To_JSONString(donnee)); }
public override void Charger_Langue_Et_Donnees(string id_page) { // -- Identifiant de la page -- // this.ViewBag.Id_page = id_page; // -- Définition du menu actif -- // id_menu_actif = GBClass.id_par_defaut; #region Home-Authentication if (id_page == GB_Enum_Menu.Home_Authentication) { // -- Langue -- // #region Langue this.ViewBag.Lang.Login = App_Lang.Lang.Login; this.ViewBag.Lang.Password = App_Lang.Lang.Password; this.ViewBag.Lang.Application_language = App_Lang.Lang.Application_language; this.ViewBag.Lang.English = App_Lang.Lang.English; this.ViewBag.Lang.French = App_Lang.Lang.French; this.ViewBag.Lang.To_log_in = App_Lang.Lang.To_log_in; this.ViewBag.Lang.Erasing = App_Lang.Lang.Erasing; #endregion // -- Données -- // #region Données this.ViewBag.GB_DONNEE = GBConvert.To_JSONString( new { Urls = new GBControllerUrlJS(this, id_page), Lang = new { Error_server_message = App_Lang.Lang.Error_server_message }, // -- Paramètres -- // DUREE_VISIBILITE_MESSAGE_BOX = AppSettings.DUREE_VISIBILITE_MESSAGE_BOX, } ); #endregion } #endregion }
public override void Charger_Langue_Et_Donnees(string id_page) { // -- Identifiant de la page -- // this.ViewBag.Id_page = id_page; // -- Définition du menu actif -- // id_menu_actif = MenuDAO.Object(id_page.Split('-')[0], id_page.Split('-')[1]).id; #region Securite-Module if (id_page == GB_Enum_Menu.Securite_Module) { // -- Langue -- // #region Langue this.ViewBag.Lang.Description_page = $"<i class=\"fa fa-cogs\"></i> " + App_Lang.Lang.Module_Management; #endregion // -- Données -- // #region Données this.ViewBag.GB_DONNEE = GBConvert.To_JSONString( new { Urls = new GBControllerUrlJS(this, id_page), id_page = id_page, titre = this.ViewBag.Title, description = new { icon = "fa fa-cogs", message = App_Lang.Lang.Module_Management } } ); #endregion } #endregion #region Securite-Role else if (id_page == GB_Enum_Menu.Securite_Role) { // -- Langue -- // #region Langue this.ViewBag.Lang.Description_page = $"<i class=\"fa fa-cogs\"></i> " + App_Lang.Lang.Role_and_privilege_management; this.ViewBag.Lang.Rules = App_Lang.Lang.Rules; this.ViewBag.Lang.Enable = App_Lang.Lang.Enable; this.ViewBag.Lang.Disable = App_Lang.Lang.Disable; this.ViewBag.Lang.Add = App_Lang.Lang.Add; this.ViewBag.Lang.Modify = App_Lang.Lang.Modify; this.ViewBag.Lang.Delete = App_Lang.Lang.Delete; this.ViewBag.Lang.Print = App_Lang.Lang.Print; this.ViewBag.Lang.Listing = App_Lang.Lang.Listing; this.ViewBag.Lang.Save = App_Lang.Lang.Save; this.ViewBag.Lang.Rule_Management = App_Lang.Lang.Rule_Management; this.ViewBag.Lang.Privilege_management = App_Lang.Lang.Privilege_management; this.ViewBag.Lang.Search_a_role = App_Lang.Lang.Search_a_role; this.ViewBag.Lang.Search = App_Lang.Lang.Search; this.ViewBag.Lang.Search_by = App_Lang.Lang.Search_by; this.ViewBag.Lang.New_menus = App_Lang.Lang.New_menus; this.ViewBag.Lang.Delete_menus = App_Lang.Lang.Delete_menus; this.ViewBag.Lang.Select = App_Lang.Lang.Select; this.ViewBag.Lang.Menu_group = App_Lang.Lang.Menu_group; this.ViewBag.Lang.Add_ = App_Lang.Lang.Add_; this.ViewBag.Lang.Mod_ = App_Lang.Lang.Mod_; this.ViewBag.Lang.Del_ = App_Lang.Lang.Del_; this.ViewBag.Lang.Prt_ = App_Lang.Lang.Prt_; this.ViewBag.Lang.Lst_ = App_Lang.Lang.Lst_; this.ViewBag.Lang.Display = App_Lang.Lang.Display; #endregion // -- Données -- // #region Données #region HTML_Select_Role dynamic donnee = roleDAO.HTML_Select(); this.ViewBag.donnee.HTML_Select_code_role = donnee.html_code; this.ViewBag.donnee.HTML_Select_libelle_role = donnee.html_libelle; #endregion this.ViewBag.GB_DONNEE = GBConvert.To_JSONString( new { Urls = new GBControllerUrlJS(this, id_page), id_page = id_page, titre = this.ViewBag.Title, description = new { icon = "fa fa-cogs", message = App_Lang.Lang.Role_and_privilege_management } } ); // -- Vider les données temporaire -- // this.con.Vider_Donnee(); // - Mise à jour des données de vue -- // // -- id_role -- // this.con.donnee.id_role = 0; // -- Autorisations -- // this.con.donnee.autorisation = new List <Autorisation>(); // -- autorisation_disponible -- // this.con.donnee.autorisation_disponible = new List <Autorisation>(); #endregion } #endregion #region Securite-Menu else if (id_page == GB_Enum_Menu.Securite_Menu) { // -- Langue -- // #region Langue this.ViewBag.Lang.Description_page = $"<i class=\"fa fa-cogs\"></i> " + App_Lang.Lang.Menu_Management; this.ViewBag.Lang.Menu_group = App_Lang.Lang.Menu_group; this.ViewBag.Lang.Views = App_Lang.Lang.Views; this.ViewBag.Lang.Select = App_Lang.Lang.Select; #endregion // -- Données -- // #region Données #region HTML_Select_id_controller this.ViewBag.donnee.HTML_Select_id_controller = GroupeMenuDAO.HTML_Select("libelle"); #endregion this.ViewBag.GB_DONNEE = GBConvert.To_JSONString( new { Urls = new GBControllerUrlJS(this, id_page), id_page = id_page, titre = this.ViewBag.Title, description = new { icon = "fa fa-cogs", message = App_Lang.Lang.Menu_Management } } ); #endregion } #endregion }
public override void Charger_Langue_Et_Donnees(string id_page) { // -- Identifiant de la page -- // this.ViewBag.Id_page = id_page; // -- Définition du menu actif -- // id_menu_actif = MenuDAO.Object(id_page.Split('-')[0], id_page.Split('-')[1]).id; #region ConfigurationBudget-ExerciceFiscal if (id_page == GB_Enum_Menu.ConfigurationBudget_ExerciceFiscal) { // -- Langue -- // #region Langue this.ViewBag.Lang.Description_page = $"<i class=\"fa fa-cogs\"></i> " + App_Lang.Lang.Fiscals_exercice_management; this.ViewBag.Lang.Starting_date = App_Lang.Lang.Starting_date; this.ViewBag.Lang.Ending_date = App_Lang.Lang.Ending_date; this.ViewBag.Lang.Status = App_Lang.Lang.Status; #endregion // -- Données -- // #region Données this.ViewBag.donnee.FORMAT_DATE = AppSettings.FORMAT_DATE; this.ViewBag.GB_DONNEE = GBConvert.To_JSONString( new { Urls = new GBControllerUrlJS(this, id_page), id_page = id_page, titre = this.ViewBag.Title, description = new { icon = "fa fa-cogs", message = App_Lang.Lang.Fiscals_exercice_management }, format_date = AppSettings.FORMAT_DATE } ); #endregion } #endregion #region ConfigurationBudget-DirectionBudget else if (id_page == GB_Enum_Menu.ConfigurationBudget_DirectionBudget) { // -- Langue -- // #region Langue this.ViewBag.Lang.Description_page = $"<i class=\"fa fa-cogs\"></i> " + App_Lang.Lang.Budget_directionate_management; this.ViewBag.Lang.Directionate_head = App_Lang.Lang.Directionate_head; this.ViewBag.Lang.Phone = App_Lang.Lang.Phone; this.ViewBag.Lang.Remark = App_Lang.Lang.Remark; this.ViewBag.Lang.Fiscals_exercice = App_Lang.Lang.Fiscals_exercice; #endregion // -- Données -- // #region Données #region HTML_Select_exercice_fiscal dynamic donnee = exerciceFiscalDAO.HTML_Select(); this.ViewBag.donnee.HTML_Select_code_exercice_fiscal = donnee.html_code; this.ViewBag.donnee.HTML_Select_libelle_exercice_fiscal = donnee.html_libelle; #endregion this.ViewBag.GB_DONNEE = GBConvert.To_JSONString( new { Urls = new GBControllerUrlJS(this, id_page), id_page = id_page, titre = this.ViewBag.Title, description = new { icon = "fa fa-cogs", message = App_Lang.Lang.Budget_directionate_management } } ); #endregion } #endregion #region ConfigurationBudget-AutoriteSignature else if (id_page == GB_Enum_Menu.ConfigurationBudget_AutoriteSignature) { // -- Langue -- // #region Langue this.ViewBag.Lang.Description_page = $"<i class=\"fa fa-cogs\"></i> " + App_Lang.Lang.Signing_authority_management; this.ViewBag.Lang.Signing_amount = App_Lang.Lang.Signing_amount; this.ViewBag.Lang.Customer_overdraft_limit = App_Lang.Lang.Customer_overdraft_limit; this.ViewBag.Lang.Customer_max_debit = App_Lang.Lang.Customer_max_debit; this.ViewBag.Lang.Customer_max_credit = App_Lang.Lang.Customer_max_credit; this.ViewBag.Lang.Line_of_credit_max_amount = App_Lang.Lang.Line_of_credit_max_amount; this.ViewBag.Lang.Loan_limit_amount = App_Lang.Lang.Loan_limit_amount; #endregion // -- Données -- // #region Données this.ViewBag.GB_DONNEE = GBConvert.To_JSONString( new { Urls = new GBControllerUrlJS(this, id_page), id_page = id_page, titre = this.ViewBag.Title, description = new { icon = "fa fa-cogs", message = App_Lang.Lang.Signing_authority_management } } ); #endregion } #endregion #region ConfigurationBudget-ParametreBudgetRevenu else if (id_page == GB_Enum_Menu.ConfigurationBudget_ParametreBudgetRevenu) { // -- Langue -- // #region Langue this.ViewBag.Lang.Description_page = $"<i class=\"fa fa-cogs\"></i> " + App_Lang.Lang.Budget_profit_center_management; this.ViewBag.Lang.Account = App_Lang.Lang.Account; this.ViewBag.Lang.Control_budget = App_Lang.Lang.Control_budget; this.ViewBag.Lang.Cost_center = App_Lang.Lang.Cost_center; this.ViewBag.Lang.Account = App_Lang.Lang.Account; this.ViewBag.Lang.Search_by = App_Lang.Lang.Search_by; #endregion // -- Données -- // #region Données this.ViewBag.GB_DONNEE = GBConvert.To_JSONString( new { Urls = new GBControllerUrlJS(this, id_page), id_page = id_page, titre = this.ViewBag.Title, description = new { icon = "fa fa-cogs", message = App_Lang.Lang.Budget_profit_center_management } } ); // -- Vider les données temporaire -- // this.con.Vider_Donnee(); // - Mise à jour des données de vue -- // // -- Compte -- // this.con.donnee.comptes = new List <Compte>(); #endregion } #endregion #region ConfigurationBudget-ParametreBudgetFrais else if (id_page == GB_Enum_Menu.ConfigurationBudget_ParametreBudgetFrais) { // -- Langue -- // #region Langue this.ViewBag.Lang.Description_page = $"<i class=\"fa fa-cogs\"></i> " + App_Lang.Lang.Configuring_Budget_lines_for_cost_centers; this.ViewBag.Lang.Account = App_Lang.Lang.Account; this.ViewBag.Lang.Control_budget = App_Lang.Lang.Control_budget; this.ViewBag.Lang.Cost_center = App_Lang.Lang.Cost_center; this.ViewBag.Lang.Account = App_Lang.Lang.Account; this.ViewBag.Lang.Search_by = App_Lang.Lang.Search_by; #endregion // -- Données -- // #region Données this.ViewBag.GB_DONNEE = GBConvert.To_JSONString( new { Urls = new GBControllerUrlJS(this, id_page), id_page = id_page, titre = this.ViewBag.Title, description = new { icon = "fa fa-cogs", message = App_Lang.Lang.Configuring_Budget_lines_for_cost_centers } } ); // -- Vider les données temporaire -- // this.con.Vider_Donnee(); // - Mise à jour des données de vue -- // // -- Compte -- // this.con.donnee.comptes = new List <Compte>(); #endregion } #endregion }
// -- Charger les données dans le auto complete -- // public override object Charger_EasyAutocomplete(string id_page, string id_vue) { List <object> donnee = new List <object>(); try { #region ConfigurationBudget-ParametreBudgetRevenu if (id_page == GB_Enum_Menu.ConfigurationBudget_ParametreBudgetRevenu) { // -- Si la vue n'est pas retourné -- // #region comptes if (string.IsNullOrEmpty(id_vue)) { // -- Si la liste des comptes en session est vide, la mettre à jour -- // if ((this.con.donnee.comptes as List <Compte>).Count == 0) { this.con.donnee.comptes = CompteDAO.Lister_Cle(); } // -- Charger la liste des résultats -- // foreach (var val in (this.con.donnee.comptes as List <Compte>)) { donnee.Add( new { id = val.id, code = val.code, libelle = val.libelle } ); } } #endregion } #endregion #region ConfigurationBudget-ParametreBudgetFrais else if (id_page == GB_Enum_Menu.ConfigurationBudget_ParametreBudgetFrais) { // -- Si la vue n'est pas retourné -- // #region comptes if (string.IsNullOrEmpty(id_vue)) { // -- Si la liste des comptes en session est vide, la mettre à jour -- // if ((this.con.donnee.comptes as List <Compte>).Count == 0) { this.con.donnee.comptes = CompteDAO.Lister_Cle(); } // -- Charger la liste des résultats -- // foreach (var val in (this.con.donnee.comptes as List <Compte>)) { donnee.Add( new { id = val.id, code = val.code, libelle = val.libelle } ); } } #endregion } #endregion } #region catch & finally catch (Exception ex) { // -- Vérifier la nature de l'exception -- // if (!GBException.Est_GBexception(ex)) { // -- Log -- // GBClass.Log.Error(ex); } } #endregion // -- Retoure le résultat en objet JSON -- // return(GBConvert.To_JSONString(donnee)); }
public override void Charger_Langue_Et_Donnees(string id_page) { // -- Identifiant de la page -- // this.ViewBag.Id_page = id_page; // -- Définition du menu actif -- // id_menu_actif = MenuDAO.Object(id_page.Split('-')[0], id_page.Split('-')[1]).id; #region SecuriteUtilisateur-Utilisateur if (id_page == GB_Enum_Menu.SecuriteUtilisateur_Utilisateur) { // -- Langue -- // #region Langue this.ViewBag.Lang.Description_page = $"<i class=\"fa fa-cogs\"></i> " + App_Lang.Lang.User_Management; this.ViewBag.Lang.Login = App_Lang.Lang.Login; this.ViewBag.Lang.Agency = App_Lang.Lang.Agency; this.ViewBag.Lang.Job = App_Lang.Lang.Job; this.ViewBag.Lang.Open_back_date = App_Lang.Lang.Open_back_date; this.ViewBag.Lang.Open_back_working_date = App_Lang.Lang.Open_back_working_date; this.ViewBag.Lang.Open_branch = App_Lang.Lang.Open_branch; this.ViewBag.Lang.Connection_status = App_Lang.Lang.Connection_status; this.ViewBag.Lang.Suspended = App_Lang.Lang.Suspended; this.ViewBag.Lang.Password_expiration = App_Lang.Lang.Password_expiration; this.ViewBag.Lang.Employee_historical_access = App_Lang.Lang.Employee_historical_access; this.ViewBag.Lang.Password = App_Lang.Lang.Password; this.ViewBag.Lang.Value = App_Lang.Lang.Value; this.ViewBag.Lang.Confirm = App_Lang.Lang.Confirm; this.ViewBag.Lang.Activate_edit = App_Lang.Lang.Activate_edit; this.ViewBag.Lang.Expiration_duration = App_Lang.Lang.Expiration_duration; this.ViewBag.Lang.Signing_authority = App_Lang.Lang.Signing_authority; this.ViewBag.Lang.Signing_amount = App_Lang.Lang.Signing_amount; this.ViewBag.Lang.Customer_overdraft_limit = App_Lang.Lang.Customer_overdraft_limit; this.ViewBag.Lang.Customer_max_debit = App_Lang.Lang.Customer_max_debit; this.ViewBag.Lang.Customer_max_credit = App_Lang.Lang.Customer_max_credit; this.ViewBag.Lang.Line_of_credit_max_amount = App_Lang.Lang.Line_of_credit_max_amount; this.ViewBag.Lang.Loan_limit_amount = App_Lang.Lang.Loan_limit_amount; this.ViewBag.Lang.Select = App_Lang.Lang.Select; this.ViewBag.Lang.Search_by = App_Lang.Lang.Search_by; this.ViewBag.Lang.User = App_Lang.Lang.User; #endregion // -- Données -- // #region Données #region HTML_Select_agence dynamic donnee = agenceDAO.HTML_Select(); this.ViewBag.donnee.HTML_Select_code_agence = donnee.html_code; this.ViewBag.donnee.HTML_Select_libelle_agence = donnee.html_libelle; #endregion #region HTML_Select_profession donnee = professionDAO.HTML_Select(); this.ViewBag.donnee.HTML_Select_code_profession = donnee.html_code; this.ViewBag.donnee.HTML_Select_libelle_profession = donnee.html_libelle; #endregion this.ViewBag.GB_DONNEE = GBConvert.To_JSONString( new { Urls = new GBControllerUrlJS(this, id_page), id_page = id_page, titre = this.ViewBag.Title, description = new { icon = "fa fa-cogs", message = App_Lang.Lang.User_Management } } ); // -- Vider les données temporaire -- // this.con.Vider_Donnee(); // - Mise à jour des données de vue -- // // -- autorites_signature -- // this.con.donnee.autorites_signature = new List <AutoriteSignature>(); #endregion } #endregion }
public ActionResult Page(string dt) { // -- Charger les paramètres par défaut de la page -- // Charger_Parametres(); // -- Traitement à effectuer -- // #region Traitement à effectuer try { // -- Identifiant de la page -- // this.ViewBag.Id_page = GB_Enum_Menu.Erreur_Page; // -- Réccupération des variables -- // Dictionary <string, string> parametres = GBConvert.JSON_To <Dictionary <string, string> >(Models.Cryptage.Program.DecryptStringAES(dt)); // -- Mise à jour de l'etat de la langue -- // LangHelper.CurrentCulture = Convert.ToInt32(parametres["id_lang"]); // -- Code de l'erreur -- // this.ViewBag.donnee.code = parametres["code"]; // -- Titre descriptif de l'erreur -- // this.ViewBag.donnee.message = parametres["code"] == "404" ? App_Lang.Lang.Page_not_found : App_Lang.Lang.Internal_error; // -- Message descriptif de l'erreur -- // this.ViewBag.donnee.description = parametres["code"] == "404" ? App_Lang.Lang.Page_not_found_message : App_Lang.Lang.Error_message_notification; // -- Liend de redirection pour la page d'authentification -- // this.ViewBag.donnee.url = Url.Action("Authentication", "Home"); // -- Titre de la page -- // this.ViewBag.donnee.Title = $"Global Bank - ({parametres["code"]} {App_Lang.Lang.Error})"; // -- Langue -- // this.ViewBag.Lang.Reconnect = App_Lang.Lang.Reconnect; // -- Réccupération du statut de connexion de l'utilisateur -- // this.ViewBag.donnee.reconnecter = Convert.ToBoolean(parametres["reconnecter"]); // -- Données -- // #region Données this.ViewBag.GB_DONNEE = GBConvert.To_JSONString( new { Urls = new GBControllerUrlJS(), id_page = GB_Enum_Menu.Erreur_Page, titre = this.ViewBag.donnee.Title, reconnecter = Convert.ToBoolean(parametres["reconnecter"]) } ); #endregion } catch (Exception ex) { // -- Log -- // GBClass.Log.Error(ex); // -- Redirection vers la page d'authentification -- // return(RedirectToAction("Authentication", "Home")); } #endregion return(View()); }
public override void Charger_Langue_Et_Donnees(string id_page) { // -- Identifiant de la page -- // this.ViewBag.Id_page = id_page; #region Application-Main if (id_page == "Application-Main") { // -- Nom de l'utilisateur connecté -- // this.ViewBag.donnee.nom_utilisateur = this.con.utilisateur.nom_utilisateur; // -- Photo de l'utilisateur connecté -- // this.ViewBag.donnee.url_photo_profil = this.con.url_photo_profil; // -- Charger les menus de l'utilisateur -- // this.ViewBag.Menus = Menu.Source(autorisationDAO.Lister(this.con.utilisateur.id_role)); // -- Langue -- // #region Langue this.ViewBag.Lang.Profil = App_Lang.Lang.Profile; this.ViewBag.Lang.Settings = App_Lang.Lang.Settings; this.ViewBag.Lang.Sign_Out = App_Lang.Lang.Sign_Out; this.ViewBag.Lang.Welcome = App_Lang.Lang.Welcome; this.ViewBag.Lang.Id = this.id_lang == 0 ? 1 : 0; this.ViewBag.Lang.Title = this.id_lang == 0 ? App_Lang.Lang.French : App_Lang.Lang.English; #endregion // -- Données -- // #region Données this.ViewBag.GB_DONNEE = GBConvert.To_JSONString( new { Urls = new GBControllerUrlJS(this, id_page), Lang = new { Maintenance_message = App_Lang.Lang.Process_in_production, All = App_Lang.Lang.All, Update = App_Lang.Lang.Update, Save = App_Lang.Lang.Save, Confirm_action = App_Lang.Lang.Confirm_action.Replace("'", string.Empty), Error_server_message = App_Lang.Lang.Error_server_message, No = App_Lang.Lang.No, Yes = App_Lang.Lang.Yes, Close = App_Lang.Lang.Close, No_item_selected = App_Lang.Lang.No_item_selected, Select = App_Lang.Lang.Select, Necessary_privilege_loading_action = App_Lang.Lang.Necessary_privilege_loading_action, Permission_to_list_records_denied = App_Lang.Lang.Permission_to_list_records_denied, The_file_must_not_exceed = App_Lang.Lang.The_file_must_not_exceed, Empty = App_Lang.Lang.Empty, Confirm = App_Lang.Lang.Confirm, Cancel = App_Lang.Lang.Cancel, }, // -- Paramètres -- // DUREE_VISIBILITE_MESSAGE_BOX = AppSettings.DUREE_VISIBILITE_MESSAGE_BOX, TAILLE_MAX_IMAGE_IMPORTATION = AppSettings.TAILLE_MAX_IMAGE_IMPORTATION, UTILISATEUR = new { id_utilisateur = this.con.utilisateur.id_utilisateur, nom_utilisateur = this.con.utilisateur.nom_utilisateur } } ); #endregion } #endregion #region Application-Principale else if (id_page == "Application-Principale") { // -- Langue -- // #region Langue this.ViewBag.Lang.Description_page = App_Lang.Lang.Home; #endregion // -- Données -- // #region Données this.ViewBag.GB_DONNEE = GBConvert.To_JSONString( new { Urls = new GBControllerUrlJS(this, id_page), id_page = id_page, titre = this.ViewBag.Title, description = new { icon = "fa fa-home", message = App_Lang.Lang.Home } } ); #endregion } #endregion }