public void UpdateSurvey(string string_0, string string_1) { SurveyMain bySurveyId = this.oSurveyMainDal.GetBySurveyId(string_0); bySurveyId.CUR_PAGE_ID = string_1; this.oSurveyMainDal.Update(bySurveyId); }
public SurveyMain GetBySql(string string_0) { IDataReader dataReader = this.dbprovider_0.ExecuteReader(string_0); SurveyMain surveyMain = new SurveyMain(); using (dataReader) { while (dataReader.Read()) { surveyMain.ID = Convert.ToInt32(dataReader[GClass0.smethod_0("KŅ")]); surveyMain.SURVEY_ID = dataReader["SURVEY_ID"].ToString(); surveyMain.VERSION_ID = dataReader[GClass0.smethod_0("\\Ōɚ͔яՊيݜࡋॅ")].ToString(); surveyMain.USER_ID = dataReader[GClass0.smethod_0("Rŕɀ͖ќՋم")].ToString(); surveyMain.CITY_ID = dataReader[GClass0.smethod_0("Dŏɑ͝ќՋم")].ToString(); surveyMain.START_TIME = new DateTime?(Convert.ToDateTime(dataReader[GClass0.smethod_0("Yŝɉ͕ђ՚ِ݊ࡏॄ")].ToString())); surveyMain.END_TIME = new DateTime?(Convert.ToDateTime(dataReader[GClass0.smethod_0("Mʼnɂ͚ѐՊُ݄")].ToString())); surveyMain.LAST_START_TIME = new DateTime?(Convert.ToDateTime(dataReader[GClass0.smethod_0("Cŏɞ͘єՙٝ݉ࡕ॒ਗ਼ొ൏ไ")].ToString())); surveyMain.LAST_END_TIME = new DateTime?(Convert.ToDateTime(dataReader[GClass0.smethod_0("Aōɘ͞іՍى݂࡚ॐౄ")].ToString())); surveyMain.CUR_PAGE_ID = dataReader[GClass0.smethod_0("Hşɛ͗їՇق݁ो")].ToString(); surveyMain.CIRCLE_A_CURRENT = Convert.ToInt32(dataReader[GClass0.smethod_0("Sņɜ͎рՎٕ݈ࡗॄୗౖെ์ཕ")]); surveyMain.CIRCLE_A_COUNT = Convert.ToInt32(dataReader[GClass0.smethod_0("Mńɞ͈цՌ݆࡙ٗॆੋୖౌൕ")]); surveyMain.CIRCLE_B_CURRENT = Convert.ToInt32(dataReader[GClass0.smethod_0("Sņɜ͎рՎٕࡗॄୗౖെ์ཕ")]); surveyMain.CIRCLE_B_COUNT = Convert.ToInt32(dataReader[GClass0.smethod_0("Mńɞ͈цՌ࡙ٗ݅ॆੋୖౌൕ")]); surveyMain.IS_FINISH = Convert.ToInt32(dataReader[GClass0.smethod_0("@śɘ̀ьՊيݑࡉ")]); surveyMain.SEQUENCE_ID = Convert.ToInt32(dataReader[GClass0.smethod_0("Xŏɘ͝тՈن݁ो")]); surveyMain.SURVEY_GUID = dataReader[GClass0.smethod_0("Xşɛ͞т՟ٚ݃ࡖो")].ToString(); surveyMain.CLIENT_ID = dataReader[GClass0.smethod_0("JńɎ̓ыՐٜࡅ")].ToString(); surveyMain.PROJECT_ID = dataReader[GClass0.smethod_0("Zśɇ͍уՆِݜࡋॅ")].ToString(); surveyMain.ROADMAP_VERSION_ID = Convert.ToInt32(dataReader[GClass0.smethod_0("@Şɑ͋уՌٜݔौਗ਼ൊ๊ཛྷ။ᅅ")]); } } return(surveyMain); }
public void Add(SurveyMain surveyMain_0) { string string_ = string.Format(GClass0.smethod_0("0ĶȤ̳ЧԠܻٓतਠాങน༜ဌᄑሪጇᐌᔊᙋᜱᠴᤲᨉᬛᰄᴃḒ⁵ℎ−⌄␆┝☜✜⠎⤙⨋⭢Ⱈⴟ⸎⼘〖㈃㍪㐆㔍㘗㜛㠞㤉㩻㬒㱮㵨㹺㽨䁭䅧䉣䍿䑸䕱䘟䝷䡿䥴䩰䭺䱤䵡乮伆健兩剴卲呺啷噷坣塳奴婀孊屔嵑幞弶恕慙扄捂摊救晝杖桎楄橆歃汈洠湈潟灛煗牗獇瑂畁癜睋硅礬窼箷粯綿纷羿肦膹芨莵蒠薦蚡螷袿覤諃训貤趾躨辦邬醷銦鎹钦閫隶鞬颵駌骜鮗鲏鶟麗龟ꂆꆚꊈꎕꒀꖆꚁꞗꢟꦄꫣꮍ겄궞꺈꾆낌놗늅뎙뒆떋뚖람뢕맬뫶믭볢뷺뻲뿴샰쇫싿쎚쓦엱웢쟧죴짾쫬쯫쳲췥컯쾆탺퇽틵폰퓠헽훼ퟥ\ud8f4\ud9e9\udadb\udbb2\udcde\uddd0\uded2\udfdf淪墨שּׁﰮﴵ︴T&ıȳ͟ѕԢزܾࠤव਼ొഗ๛༗၎ᅄቀጝᑔᔙᙄᝎᡆᤛᩭᬣᱺᵰṼἡ℥≰⍺⑲┯♧✯⡶⥼⩨⬵ⱸⴱ⽦のㄳ㉱㌻㑢㕨㙤㜹㡶㤽㨘㬒㰚㵇㸃㽇䀞䄔䉌䌏䑈䔘䙈䜃䠁䥍䨃䭕䰜䴝乖伆偒儙刕卛吉啟嘒圑塜夌婤嬯尩嵡帷弽恢愩戢捫搲攸昴杩栠椦橲欩氡洫湰漻瀾煵爠猪瑾电瘻睿砨"), new object[] { surveyMain_0.SURVEY_ID, surveyMain_0.VERSION_ID, surveyMain_0.USER_ID, surveyMain_0.CITY_ID, surveyMain_0.START_TIME, surveyMain_0.END_TIME, surveyMain_0.LAST_START_TIME, surveyMain_0.LAST_END_TIME, surveyMain_0.CUR_PAGE_ID, surveyMain_0.CIRCLE_A_CURRENT, surveyMain_0.CIRCLE_A_COUNT, surveyMain_0.CIRCLE_B_CURRENT, surveyMain_0.CIRCLE_B_COUNT, surveyMain_0.IS_FINISH, surveyMain_0.SEQUENCE_ID, surveyMain_0.SURVEY_GUID, surveyMain_0.CLIENT_ID, surveyMain_0.PROJECT_ID, surveyMain_0.ROADMAP_VERSION_ID }); this.dbprovider_0.ExecuteNonQuery(string_); }
public void UpdateSurveyLastTime(string string_0) { SurveyMain bySurveyId = this.oSurveyMainDal.GetBySurveyId(string_0); bySurveyId.LAST_START_TIME = new DateTime?(DateTime.Now); bySurveyId.LAST_END_TIME = new DateTime?(DateTime.Now); this.oSurveyMainDal.Update(bySurveyId); }
public void CloseSurvey(string string_0, int int_0) { SurveyMain bySurveyId = this.oSurveyMainDal.GetBySurveyId(string_0); bySurveyId.IS_FINISH = int_0; if (bySurveyId.START_TIME == bySurveyId.END_TIME) { bySurveyId.END_TIME = new DateTime?(DateTime.Now); } bySurveyId.LAST_END_TIME = new DateTime?(DateTime.Now); SurveyAnswer one = this.oSurveyAnswerDal.GetOne(string_0, "SURVEY_USER"); bySurveyId.USER_ID = one.CODE; this.oSurveyMainDal.Update(bySurveyId); if (int_0 != 3) { this.method_0(bySurveyId); if (this.RecordFileName != "") { this.oSurveyAnswerDal.AddOneNoUpdate(string_0, GClass0.smethod_0("_Şɘ͟э՞݄ٙࡑेੋ"), this.RecordFileName, 0); } List <SurveyRandom> listBySurveyId = this.oSurveyRandomDal.GetListBySurveyId(string_0); bool flag = false; string a = ""; using (List <SurveyRandom> .Enumerator enumerator = listBySurveyId.GetEnumerator()) { while (enumerator.MoveNext()) { SurveyRandom surveyRandom = enumerator.Current; if (a != surveyRandom.QUESTION_SET) { flag = this.oSurveyAnswerDal.Exists(string_0, surveyRandom.QUESTION_SET, "_R"); a = surveyRandom.QUESTION_SET; } if (!flag) { SurveyAnswer surveyAnswer = new SurveyAnswer(); surveyAnswer.SURVEY_ID = string_0; surveyAnswer.QUESTION_NAME = surveyRandom.QUESTION_SET + "_R" + surveyRandom.RANDOM_INDEX.ToString(); surveyAnswer.CODE = surveyRandom.CODE; surveyAnswer.MULTI_ORDER = surveyRandom.RANDOM_INDEX; surveyAnswer.MODIFY_DATE = new DateTime?(DateTime.Now); surveyAnswer.SEQUENCE_ID = 90000; surveyAnswer.SURVEY_GUID = surveyRandom.QUESTION_SET; surveyAnswer.BEGIN_DATE = new DateTime?(DateTime.Now); this.oSurveyAnswerDal.Add(surveyAnswer); } } return; } } if (this.RecordFileName != "") { this.oSurveyAnswerDal.AddOneNoUpdate(string_0, GClass0.smethod_0("_Şɘ͟э՞݄ٙࡑेੋ"), this.RecordFileName, 0); } }
public void AddSurvyeSync(string string_0, string string_1, int int_0) { SurveyMain bySurveyId = this.oSurveyMainDal.GetBySurveyId(string_0); SurveySync surveySync = new SurveySync(); surveySync.SURVEY_ID = string_0; surveySync.SURVEY_GUID = bySurveyId.SURVEY_GUID; surveySync.SYNC_DATE = new DateTime?(DateTime.Now); surveySync.SYNC_NOTE = string_1; surveySync.SYNC_STATE = int_0; SurveySyncDal surveySyncDal = new SurveySyncDal(); surveySyncDal.Add(surveySync); }
public bool SaveSurveyMain(SurveyMain surveyMain_0) { bool result; if (this.oSurveyMainDal.ExistsByGUID(surveyMain_0.SURVEY_GUID)) { result = false; } else { this.oSurveyMainDal.Add(surveyMain_0); result = true; } return(result); }
public bool CheckUploadSync(string string_0) { bool result = false; SurveyMain bySurveyId = this.oSurveyMainDal.GetBySurveyId(string_0); SurveySyncDal surveySyncDal = new SurveySyncDal(); if (surveySyncDal.CheckObjectExist(string_0, bySurveyId.SURVEY_GUID)) { SurveySync bySuveyID_GUID = surveySyncDal.GetBySuveyID_GUID(string_0, bySurveyId.SURVEY_GUID); if (bySuveyID_GUID.SYNC_STATE == 1) { result = true; } } return(result); }
public bool CloseSurveyByExit(string string_0, int int_0) { SurveyMain bySurveyId = this.oSurveyMainDal.GetBySurveyId(string_0); bySurveyId.IS_FINISH = int_0; bySurveyId.END_TIME = new DateTime?(DateTime.Now); SurveyAnswer one = this.oSurveyAnswerDal.GetOne(string_0, "SURVEY_USER"); bySurveyId.USER_ID = one.CODE; this.oSurveyMainDal.Update(bySurveyId); if (this.RecordFileName != "" && this.RecordFileName != null) { this.oSurveyAnswerDal.AddOneNoUpdate(string_0, GClass0.smethod_0("_Şɘ͟э՞݄ٙࡑेੋ"), this.RecordFileName, 0); } return(true); }
public bool SaveSurveyMain(string string_0, string string_1, SurveyMain surveyMain_0 = null) { if (surveyMain_0 == null) { surveyMain_0 = this.oSurveyMainDal.GetBySurveyId(string_0); } bool result; try { string text = string_1 + this.OutputPath; string text2 = "S" + string_0 + GClass0.smethod_0("HĪɧͣѵ"); string path = text + GClass0.smethod_0("]") + text2; if (!Directory.Exists(text)) { Directory.CreateDirectory(text); } int outPutType = this.OutPutType; if (outPutType != 2) { if (outPutType != 3) { XmlSerializer xmlSerializer = new XmlSerializer(typeof(SurveyMain)); FileStream stream = new FileStream(path, FileMode.Create, FileAccess.ReadWrite, FileShare.Read); xmlSerializer.Serialize(stream, surveyMain_0); } else { BinarySerializerHelper.Serialize <SurveyMain>(surveyMain_0, text, text2); } } else { XmlSerializerHelper.Serialize <SurveyMain>(surveyMain_0, text, text2); } result = true; } catch (Exception ex) { Logging.Error.WriteLog(GClass0.smethod_0("QŅɋ̦іեٵݧ࠻"), ex.Message); result = false; } return(result); }
public void Update(SurveyMain surveyMain_0) { string string_ = string.Format(GClass0.smethod_0("¸ƼʯΫҽ֭ۇখકஇಘතྷႳᇼኈᒍᗸᚂចᢐᦆᮛᲕᷰỲ΅⃪↷⋺⎷⓮◤⚂➈⢁⦛⪗⮋Ⲍⶅ⺟⾃ゝ㆛㋀㎃㓄㖟㚛㟵㣠㧦㫬㯢㳰㷷㻪㿱䃤䇨䊋䎗䒉䖏䛜䞔䣘䦃䪏䯡䳨䷲仜俒僘凃勚叅哚嗍囅埄壐姚嫇宲岬嶰廴徽惰憠拈揃擛旋曋柃棚槅櫜毁泎淕渱漪灝煁牛猁瑍甅癛眵砼礦稰笾簴累縭缱耮脹船茸萬蔦蘳蝆衘襄記譗谜赌踜輗透鄟鈗錟鐆锚阈霕頚餁騝鬆鱱鵭鹯鼵ꁻꄱꉧꌃꐚꔗꘁ꜏ꠋꤍꨐꬊ걡굽긟꽅뀊녁눗덩둼땩뙢띳롻륷멶뭭뱸뵴븏뼓쀍셗숓썗쐅앺왨읧졡쥩쩢쭲챾쵶칚콌큎텕퉔퍔푆핑홓휶\ud828\ud934\uda68\udb23\udc21\udd6d\ude2f\udf59"), new object[] { surveyMain_0.ID, surveyMain_0.USER_ID, surveyMain_0.CUR_PAGE_ID, surveyMain_0.CIRCLE_A_CURRENT, surveyMain_0.CIRCLE_A_COUNT, surveyMain_0.CIRCLE_B_CURRENT, surveyMain_0.CIRCLE_B_COUNT, surveyMain_0.IS_FINISH, surveyMain_0.SEQUENCE_ID, DateTime.Now, surveyMain_0.ROADMAP_VERSION_ID }); this.dbprovider_0.ExecuteNonQuery(string_); }
private void method_0(SurveyMain surveyMain_0) { this.oSurveyAnswerDal.AddOne(surveyMain_0.SURVEY_ID, "SURVEY_ID", surveyMain_0.SURVEY_ID, 0); this.oSurveyAnswerDal.AddOne(surveyMain_0.SURVEY_ID, GClass0.smethod_0("\\Ōɚ͔яՊيݜࡋॅ"), surveyMain_0.VERSION_ID, 0); this.oSurveyAnswerDal.AddOne(surveyMain_0.SURVEY_ID, GClass0.smethod_0("Rŕɀ͖ќՋم"), surveyMain_0.USER_ID, 0); this.oSurveyAnswerDal.AddOne(surveyMain_0.SURVEY_ID, GClass0.smethod_0("Dŏɑ͝ќՋم"), surveyMain_0.CITY_ID, 0); this.oSurveyAnswerDal.AddOne(surveyMain_0.SURVEY_ID, GClass0.smethod_0("Yŝɉ͕ђ՚ِ݊ࡏॄ"), surveyMain_0.START_TIME.ToString(), 0); this.oSurveyAnswerDal.AddOne(surveyMain_0.SURVEY_ID, GClass0.smethod_0("Mʼnɂ͚ѐՊُ݄"), surveyMain_0.END_TIME.ToString(), 0); this.oSurveyAnswerDal.AddOne(surveyMain_0.SURVEY_ID, GClass0.smethod_0("Cŏɞ͘єՙٝ݉ࡕ॒ਗ਼ొ൏ไ"), surveyMain_0.LAST_START_TIME.ToString(), 0); this.oSurveyAnswerDal.AddOne(surveyMain_0.SURVEY_ID, GClass0.smethod_0("Aōɘ͞іՍى݂࡚ॐౄ"), surveyMain_0.LAST_END_TIME.ToString(), 0); this.oSurveyAnswerDal.AddOne(surveyMain_0.SURVEY_ID, GClass0.smethod_0("Hşɛ͗їՇق݁ो"), surveyMain_0.CUR_PAGE_ID, 0); this.oSurveyAnswerDal.AddOne(surveyMain_0.SURVEY_ID, GClass0.smethod_0("Sņɜ͎рՎٕ݈ࡗॄୗౖെ์ཕ"), surveyMain_0.CIRCLE_A_CURRENT.ToString(), 0); this.oSurveyAnswerDal.AddOne(surveyMain_0.SURVEY_ID, GClass0.smethod_0("Mńɞ͈цՌ݆࡙ٗॆੋୖౌൕ"), surveyMain_0.CIRCLE_A_COUNT.ToString(), 0); this.oSurveyAnswerDal.AddOne(surveyMain_0.SURVEY_ID, GClass0.smethod_0("Sņɜ͎рՎٕࡗॄୗౖെ์ཕ"), surveyMain_0.CIRCLE_B_CURRENT.ToString(), 0); this.oSurveyAnswerDal.AddOne(surveyMain_0.SURVEY_ID, GClass0.smethod_0("Mńɞ͈цՌ࡙ٗ݅ॆੋୖౌൕ"), surveyMain_0.CIRCLE_B_COUNT.ToString(), 0); this.oSurveyAnswerDal.AddOne(surveyMain_0.SURVEY_ID, GClass0.smethod_0("@śɘ̀ьՊيݑࡉ"), surveyMain_0.IS_FINISH.ToString(), 0); this.oSurveyAnswerDal.AddOne(surveyMain_0.SURVEY_ID, GClass0.smethod_0("Xŏɘ͝тՈن݁ो"), surveyMain_0.SEQUENCE_ID.ToString(), 0); this.oSurveyAnswerDal.AddOne(surveyMain_0.SURVEY_ID, GClass0.smethod_0("Xşɛ͞т՟ٚ݃ࡖो"), surveyMain_0.SURVEY_GUID, 0); this.oSurveyAnswerDal.AddOne(surveyMain_0.SURVEY_ID, GClass0.smethod_0("JńɎ̓ыՐٜࡅ"), surveyMain_0.CLIENT_ID, 0); this.oSurveyAnswerDal.AddOne(surveyMain_0.SURVEY_ID, GClass0.smethod_0("Zśɇ͍уՆِݜࡋॅ"), surveyMain_0.PROJECT_ID, 0); string arg = surveyMain_0.END_TIME.ToString(); this.oSurveyAnswerDal.AddOne(surveyMain_0.SURVEY_ID, GClass0.smethod_0("CŚɜ͛щՒٕݏࡁॕെ์ཅ"), string.Format(GClass0.smethod_0("lĦȯͭѪի٨ܿࡂृਢ୨౯പแཀွᅫቨጾᑰᕱᙼ"), arg), 0); this.oSurveyAnswerDal.AddOne(surveyMain_0.SURVEY_ID, GClass0.smethod_0("\\śɟ͚юՓٖ݄ࡆॕੑెൌๅ"), string.Format(GClass0.smethod_0("lĦȯͭѪի٨ܿࡂृਢ୨౯പแཀွᅫቨጾᑰᕱᙼ"), arg), 0); string text = surveyMain_0.SURVEY_GUID.ToString(); if (surveyMain_0.VERSION_ID.IndexOf(GClass0.smethod_0("歠帍灉")) > -1) { text += GClass0.smethod_0("歠帍灉"); } else { text += "测试版"; } string string_ = EncryptTool.Encrypt(text, GClass0.smethod_0("EłɨͦѶպٲݵ")); this.oSurveyAnswerDal.AddOne(surveyMain_0.SURVEY_ID, GClass0.smethod_0("BŅɝ͘шՕٔ݃ࡇॆੂౚേ์ཆ၄"), string_, 0); TimeSpan timeSpan = surveyMain_0.END_TIME.Value - surveyMain_0.START_TIME.Value; this.oSurveyAnswerDal.AddOne(surveyMain_0.SURVEY_ID, GClass0.smethod_0("CŚɜ͛щՒٕ݊ࡇ॔ൊ๏ང"), ((int)timeSpan.TotalMinutes).ToString(), 0); }
public SurveyMain ReadSurveyMain(string string_0, out bool bool_0) { SurveyMain result; try { XmlSerializer xmlSerializer = new XmlSerializer(typeof(SurveyMain)); Stream stream = new FileStream(string_0, FileMode.Open, FileAccess.Read, FileShare.Read); SurveyMain surveyMain = xmlSerializer.Deserialize(stream) as SurveyMain; bool_0 = true; result = surveyMain; } catch (Exception ex) { Logging.Error.WriteLog(GClass0.smethod_0("Cźɼͻѩղهݨࡡ३ਦୗౡൢ༻"), ex.Message); SurveyMain surveyMain2 = new SurveyMain(); bool_0 = false; result = surveyMain2; } return(result); }
public bool ImportSurveyMain(List <SurveyAnswer> list_0) { Class10 @class = new Class10(); SurveyMain surveyMain = new SurveyMain(); int num = 0; @class.strQName = ""; @class.strQName = "SURVEY_ID"; num = list_0.FindIndex(@class.method_0); if (num > -1) { surveyMain.SURVEY_ID = list_0[num].CODE; } @class.strQName = "VERSION_ID"; num = list_0.FindIndex(@class.method_1); if (num > -1) { surveyMain.VERSION_ID = list_0[num].CODE; } @class.strQName = "USER_ID"; num = list_0.FindIndex(@class.method_2); if (num > -1) { surveyMain.USER_ID = list_0[num].CODE; } @class.strQName = "CITY_ID"; num = list_0.FindIndex(@class.method_3); if (num > -1) { surveyMain.CITY_ID = list_0[num].CODE; } @class.strQName = "START_TIME"; num = list_0.FindIndex(@class.method_4); if (num > -1) { surveyMain.START_TIME = Convert.ToDateTime(list_0[num].CODE.ToString()); } @class.strQName = "END_TIME"; num = list_0.FindIndex(@class.method_5); if (num > -1) { surveyMain.END_TIME = Convert.ToDateTime(list_0[num].CODE.ToString()); } @class.strQName = "LAST_START_TIME"; num = list_0.FindIndex(@class.method_6); if (num > -1) { surveyMain.LAST_START_TIME = Convert.ToDateTime(list_0[num].CODE.ToString()); } @class.strQName = "LAST_END_TIME"; num = list_0.FindIndex(@class.method_7); if (num > -1) { surveyMain.LAST_END_TIME = Convert.ToDateTime(list_0[num].CODE.ToString()); } @class.strQName = "CUR_PAGE_ID"; num = list_0.FindIndex(@class.method_8); if (num > -1) { surveyMain.CUR_PAGE_ID = list_0[num].CODE; } @class.strQName = "CIRCLE_A_CURRENT"; num = list_0.FindIndex(@class.method_9); if (num > -1) { surveyMain.CIRCLE_A_CURRENT = Convert.ToInt32(list_0[num].CODE); } @class.strQName = "CIRCLE_A_COUNT"; num = list_0.FindIndex(@class.method_10); if (num > -1) { surveyMain.CIRCLE_A_COUNT = Convert.ToInt32(list_0[num].CODE); } @class.strQName = "CIRCLE_B_CURRENT"; num = list_0.FindIndex(@class.method_11); if (num > -1) { surveyMain.CIRCLE_B_CURRENT = Convert.ToInt32(list_0[num].CODE); } @class.strQName = "CIRCLE_B_COUNT"; num = list_0.FindIndex(@class.method_12); if (num > -1) { surveyMain.CIRCLE_B_COUNT = Convert.ToInt32(list_0[num].CODE); } @class.strQName = "IS_FINISH"; num = list_0.FindIndex(@class.method_13); if (num > -1) { surveyMain.IS_FINISH = Convert.ToInt32(list_0[num].CODE); } @class.strQName = "SEQUENCE_ID"; num = list_0.FindIndex(@class.method_14); if (num > -1) { surveyMain.SEQUENCE_ID = Convert.ToInt32(list_0[num].CODE); } @class.strQName = "SURVEY_GUID"; num = list_0.FindIndex(@class.method_15); if (num > -1) { surveyMain.SURVEY_GUID = list_0[num].CODE; } @class.strQName = "CLIENT_ID"; num = list_0.FindIndex(@class.method_16); if (num > -1) { surveyMain.CLIENT_ID = list_0[num].CODE; } @class.strQName = "PROJECT_ID"; num = list_0.FindIndex(@class.method_17); if (num > -1) { surveyMain.PROJECT_ID = list_0[num].CODE; } if (!oSurveyMainDal.ExistsByGUID(surveyMain.SURVEY_GUID)) { oSurveyMainDal.Add(surveyMain); return(true); } return(false); }
public void Delete(SurveyMain surveyMain_0) { string string_ = string.Format(GClass0.smethod_0("`ŦɮͤѴ՚ؾݛࡎ॔ହోൢལၱᅪ፰ᑹᕡᘮᡄ᥎ᩘᭌᰨᵎṂἥ‹ⅸ∲⍼"), surveyMain_0.ID); this.dbprovider_0.ExecuteNonQuery(string_); }