public void SaveRecodePath(string string_0) { SurveyConfig surveyConfig = new SurveyConfig(); surveyConfig.CODE = GClass0.smethod_0("XŬɫͨѢՠٔݢࡶ३"); surveyConfig.CODE_TEXT = string_0; this.oSurveyConfigDal.UpdateByCode(surveyConfig); }
public void SaveDataFilePath(string string_0) { SurveyConfig surveyConfig = new SurveyConfig(); surveyConfig.CODE = GClass0.smethod_0("XŤɥͥьզٲݤࡔॢ੶୩"); surveyConfig.CODE_TEXT = string_0; this.oSurveyConfigDal.UpdateByCode(surveyConfig); }
public void Add(SurveyConfig surveyConfig_0) { string string_ = string.Format(GClass0.smethod_0("\u0017ēȏ̞Јԍٸܞ࠘ँਛ୳ఁതย༹ါᄴሏጤᐤᔯᘡᜠᡮᤆᨋᬇᰇᵭḃὰ⁺ⅸ≣⍯⑿╡♬✛⡵⥺⩰⭶Ɑ⵿⽻に㉼㍪㑸㕬㙦㝳㡹㥦㩫㭧㱧㴈㸀㽉䁟䅑䉉䍞䑉䔱䘿䝬䠦䥨䨳䬿䰵䵪両佲倩儡别印吸啴嘯圫堡奾娷孾尥崨"), new object[] { surveyConfig_0.CODE, surveyConfig_0.CODE_TEXT, surveyConfig_0.CODE_NOTE, surveyConfig_0.PARENT_CODE }); this.dbprovider_1.ExecuteNonQuery(string_); }
public void Update(SurveyConfig surveyConfig_0) { string string_ = string.Format(GClass0.smethod_0(">ĺȭ̩гԣمܷࠖऐਗଅదഝา༲ွᄳሾ፸ᐄᔓᘁ᠐ᤝᨕᬕᱯᵳṭὫ‰ⅻ∴⍯⑫┅☊✀⠆⤝⨕⬅Ⱨ⸝⼁〛ㄝ㉂㌊㑊㔑㘙㝷㡼㥶㩴㭯㱡㵡㹹㽩䀋䄗䈉䌏䑜䔕䙘䜃䠏䥲䩠䭲䱚䵐义佃偘兕剝卝吷唫嘵圳塨夦婬嬷尯嵙幅彉恙慏戩捁摃攦昸朤桸椲橼"), new object[] { surveyConfig_0.ID, surveyConfig_0.CODE, surveyConfig_0.CODE_TEXT, surveyConfig_0.CODE_NOTE, surveyConfig_0.PARENT_CODE }); this.dbprovider_1.ExecuteNonQuery(string_); }
public void SaveDataFilePath(string string_0, string string_1) { SurveyConfig surveyConfig = new SurveyConfig(); surveyConfig.CODE = string_0; surveyConfig.CODE_TEXT = string_1; if (this.Exists(string_0)) { this.UpdateByCode(surveyConfig); } else { this.Add(surveyConfig); } }
public SurveyConfig GetBySql(string string_0) { IDataReader dataReader = this.dbprovider_1.ExecuteReader(string_0); SurveyConfig surveyConfig = new SurveyConfig(); using (dataReader) { while (dataReader.Read()) { surveyConfig.ID = Convert.ToInt32(dataReader[GClass0.smethod_0("KŅ")]); surveyConfig.CODE = dataReader["CODE"].ToString(); surveyConfig.CODE_TEXT = dataReader["CODE_TEXT"].ToString(); surveyConfig.CODE_NOTE = dataReader[GClass0.smethod_0("JŇɃ̓њՊٌݖࡄ")].ToString(); surveyConfig.PARENT_CODE = dataReader[GClass0.smethod_0("[ŋɛ͍щՒٚ݇ࡌॆ")].ToString(); } } return(surveyConfig); }
public void SaveByKey(string string_0, string string_1) { SurveyConfig surveyConfig = new SurveyConfig(); surveyConfig.CODE = string_0; surveyConfig.CODE_TEXT = string_1; if (this.Exists(string_0)) { this.UpdateByCode(surveyConfig); } else { this.Add(surveyConfig); } if (this.ExistsRead(string_0)) { this.UpdateByCodeRead(surveyConfig); } else { this.AddRead(surveyConfig); } }
public void UpdateByCodeRead(SurveyConfig surveyConfig_0) { string string_ = string.Format(GClass0.smethod_0("Oʼnɜ͖тՐؔݠࡇृ൮ใཅ၌ᅀጇᑕᕀᙐᜃᡡᩤ᭚᱁ᵉṙὃ⁎ℹ∥⌷╮☤❮⠵⤱⩧⭧Ⱬ⵿⼫ぉㅆ㉌㍂㐻㔢㙿㜲㡿㤦"), surveyConfig_0.CODE_TEXT, surveyConfig_0.CODE); this.dbprovider_0.ExecuteNonQuery(string_); }
public void Delete(SurveyConfig surveyConfig_0) { string string_ = string.Format(GClass0.smethod_0("bŠɨͦѶդݙࡌ॒ੑ൬ཡၳᅬ፼ᑼᕷᙹᝨᠮᥚᩄ᱘ᵌḨ⁂℥∹⍸╼"), surveyConfig_0.ID); this.dbprovider_1.ExecuteNonQuery(string_); }
private IEnumerator LoadData(string siteName) { ClearUI(); var databases = new List <WordCloudDatabase>(); message.text = Translator.Get("Loading data") + " ..."; message.gameObject.SetActive(true); yield return(null); var wordCloudPath = Paths.Data + "WordCloud"; var path = wordCloudPath + Path.DirectorySeparatorChar + siteName; if (Directory.Exists(path)) { var files = Directory.GetFiles(path, "*.csv"); for (int i = 0; i < files.Length; ++i) { yield return(SurveyConfig.Load(files[i], (s) => { if (s != null) { s.name = Path.GetFileNameWithoutExtension(files[i]); databases.Add(s); } })); } } // connecting to API var configAPIPath = Paths.Data + "api.csv"; API[] apis = null; yield return(APIConfig.Load(configAPIPath, (a) => apis = a)); if (apis != null) { for (int i = 0; i < apis.Length; ++i) { // check if site name is as currect or empty what is mark for global data if (apis[i].site.Contains(siteName) || apis[i].site == "*") { yield return(WordCloudDatabase.LoadDataFromAPI(apis[i], (db) => databases.Add(db))); } } } if (databases.Count > 0) { message.gameObject.SetActive(false); groupToggle.interactable = true; CreateDataUI(databases); } else { groupToggle.interactable = false; message.text = Translator.Get("There's no data available for this site"); if (Directory.Exists(wordCloudPath)) { var dataManager = ComponentManager.Instance.Get <DataManager>(); var dirs = Directory.GetDirectories(wordCloudPath); var examples = "\n" + Translator.Get("The folowing sites have data") + ": "; bool haveExamples = false; foreach (var dir in dirs) { var dirName = dir.Substring(wordCloudPath.Length + 1); if (dataManager.HasSite(dirName)) { examples += dirName + ", "; haveExamples = true; } } if (haveExamples) { message.text += examples.Substring(0, examples.Length - 2); } } } loadCR = null; }