Пример #1
0
        private bool saveSettings(int id)
        {
            DataManagerOption dmo  = DataManagerOption.GetInstance(id);
            string            name = dmo.Name;

            dmo.delete();
            return(createNamedSettings(name));
        }
Пример #2
0
        private bool deleteNamedSettings(int id)
        {
            DataManagerOption dmo = DataManagerOption.GetInstance(id);

            dmo.delete();
            getNamedSettingsList(0);
            ajaxResponse.message = "Deleted Name Settings";
            return(true);
        }
Пример #3
0
        private bool loadSettings(int id)
        {
            DataManagerOption dmo = DataManagerOption.GetInstance(campaignID, queryID, false);

            if (dmo != null)
            {
                dmo.delete();
                dmo              = DataManagerOption.GetInstance(id);
                dmo              = dmo.copy();
                dmo.QueryId      = queryID;
                dmo.Name         = "";
                dmo.IsNamedQuery = 0;
                dmo.save();
                getNamedSettingsList((int)dmo.Id);
                ajaxResponse.message = "Loaded Name Settings";
            }
            return(true);
        }