private bool saveSettings(int id) { DataManagerOption dmo = DataManagerOption.GetInstance(id); string name = dmo.Name; dmo.delete(); return(createNamedSettings(name)); }
private bool deleteNamedSettings(int id) { DataManagerOption dmo = DataManagerOption.GetInstance(id); dmo.delete(); getNamedSettingsList(0); ajaxResponse.message = "Deleted Name Settings"; return(true); }
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); }