public bool ExistsByModel(SurveyQuotaAnswer surveyQuotaAnswer_0) { string string_ = string.Format(GClass0.smethod_0("\u0017ĆȎ̄Ѓԫپݷࡼऽਨଶవ൷ฅ༠ဦᄥሷጨᐁᔺᘡᠭᤊᨤᬺ᰿ᴢḴὥ″Å∧⌳␥┟♭❨⡮⥭⩿⭠Ⱨ⼕〉ㄔ㉉㌁㑍㔈㘎㝌㡂㥏㨊㭺㱽㵵㹰㽠䁽䅼䉥䍴䑩䕛䘣䜺䡧䤪䩧䬾䰸䵶乸佱倴兂則協呃啛噇坂塂奔婄孈居嵂帻弢恿愱承挦"), surveyQuotaAnswer_0.SURVEY_ID, surveyQuotaAnswer_0.SURVEY_GUID, surveyQuotaAnswer_0.QUESTION_NAME); int num = this.dbprovider_0.ExecuteScalarInt(string_); return(num > 0); }
public bool CheckQuota(string string_0, string string_1, janswer janswer_0, out string string_2) { bool flag = false; string_2 = ""; if (this.oSurveyQuotaDal.ExistsByQName(janswer_0.questionname, janswer_0.code)) { string string_3 = string.Format(GClass0.smethod_0("0ħȭ̥ќՊ؝ܖࠛड़ੋୗౚഖཁ၁ᅄቔፉᑾᕛᙂᡊᤊᩞᭀ᱂ᵔṀἄⅷ≤⍳╗♒❒⡄⥔⩘⭕ⱒⴶ⸨⼳とㄢ㉬㌷㐯㕯㙣㝨㠫㥉㩆㭌㱂㴻㸢㽿䀲䅿䈦"), janswer_0.questionname, janswer_0.code); SurveyQuota bySql = this.oSurveyQuotaDal.GetBySql(string_3); string_2 = bySql.QUESTION_TITLE; int num = bySql.SAMPLE_TARGET + bySql.SAMPLE_BACKUP - bySql.SAMPLE_FINISH; int num2 = bySql.SAMPLE_TARGET + bySql.SAMPLE_BACKUP - (bySql.SAMPLE_FINISH + bySql.SAMPLE_RUNNING); if (bySql.SAMPLE_OVER == 1 && num <= 0) { flag = true; } if (bySql.SAMPLE_OVER == 2 && num2 <= 0) { flag = true; } if (!flag) { SurveyQuotaAnswer surveyQuotaAnswer = new SurveyQuotaAnswer(); surveyQuotaAnswer.SURVEY_ID = string_0; surveyQuotaAnswer.SURVEY_GUID = string_1; surveyQuotaAnswer.QUESTION_NAME = bySql.QUESTION_NAME; surveyQuotaAnswer.CODE = bySql.CODE; surveyQuotaAnswer.IS_FINISH = 0; int num3 = this.oSurveyQuotaAnswerDal.AddOne(surveyQuotaAnswer); if (num3 == 0) { bySql.SAMPLE_RUNNING++; } if (bySql.SAMPLE_OVER == 1) { bySql.SAMPLE_REAL = bySql.SAMPLE_FINISH; } if (bySql.SAMPLE_OVER == 2) { bySql.SAMPLE_REAL = bySql.SAMPLE_FINISH + bySql.SAMPLE_RUNNING; } bySql.SAMPLE_BALANCE = bySql.SAMPLE_TOTAL - bySql.SAMPLE_REAL; if (bySql.SAMPLE_BALANCE > 0) { bySql.IS_FULL = GClass0.smethod_0("吧"); } else { bySql.IS_FULL = GClass0.smethod_0("昮"); } this.oSurveyQuotaDal.Update(bySql); } } return(flag); }
public void Add(SurveyQuotaAnswer surveyQuotaAnswer_0) { string string_ = string.Format(GClass0.smethod_0("<ĺȠ̷УԤُܧࠣसਤഝต༐ကᄝሲᐎᔔᘾᜟᠳᨬᬿᰫᵰḄἃ\u2007ℂ∖⌋␎┙☋❢⠞⤙⨙⬜Ⰼⴑ⸘⼁【ㄍ㈇㍮㐐㔕㙺㝭㡩㥵㩴㭴㱦㵶㹶㽻䁰䄘䉰䍽䑵䕵䘃䝧䡾䥳䩭䭣䱧䵡乴佮倌億創卣呭啵噚坍堵夻婠嬪層崿帻弱恮愥扮挵搽攷晴朼桰椫樧欭汲活湺漡瀩煿爷獿琨"), new object[] { surveyQuotaAnswer_0.SURVEY_ID, surveyQuotaAnswer_0.SURVEY_GUID, surveyQuotaAnswer_0.QUESTION_NAME, surveyQuotaAnswer_0.CODE, surveyQuotaAnswer_0.IS_FINISH }); this.dbprovider_0.ExecuteNonQuery(string_); }
public void Update(SurveyQuotaAnswer surveyQuotaAnswer_0) { string string_ = string.Format(GClass0.smethod_0("ÑǓˆπӔԺٞܮࠉउଜఁദฃ༚ကᄒሳጟᐃᔘᘋᜟᡌᤸᨯᬽ᱈ᴴḳἷ′Ω∻⌾┛♾❠⡼⥼⨡⭨Ⱕ⵰⼆、㈄㌔㐉㔐㘉㜘㠅㤏㩪㭴㱨㵠㸽㽷䀹䅤䉮䌐䐕䕺䙭䝩䡵䥴䩴䭦䱶䵶乻佰倔儎划化呋唜噓圊堀奨婥孭屭崇帛弅怃慘或捜搇攳晗李桃楝橓歗汑浄湞漵瀩焳物猤瑭甯癙睅硉祙穏笩籁絃縦缸耤腸舲荼"), new object[] { surveyQuotaAnswer_0.ID, surveyQuotaAnswer_0.SURVEY_ID, surveyQuotaAnswer_0.SURVEY_GUID, surveyQuotaAnswer_0.QUESTION_NAME, surveyQuotaAnswer_0.CODE, surveyQuotaAnswer_0.IS_FINISH }); this.dbprovider_0.ExecuteNonQuery(string_); }
public int AddOne(SurveyQuotaAnswer surveyQuotaAnswer_0) { int result; if (this.ExistsByModel(surveyQuotaAnswer_0)) { this.Update(surveyQuotaAnswer_0); result = 1; } else { this.Add(surveyQuotaAnswer_0); result = 0; } return(result); }
public SurveyQuotaAnswer GetBySql(string string_0) { IDataReader dataReader = this.dbprovider_0.ExecuteReader(string_0); SurveyQuotaAnswer surveyQuotaAnswer = new SurveyQuotaAnswer(); using (dataReader) { while (dataReader.Read()) { surveyQuotaAnswer.ID = Convert.ToInt32(dataReader[GClass0.smethod_0("KŅ")]); surveyQuotaAnswer.SURVEY_ID = dataReader["SURVEY_ID"].ToString(); surveyQuotaAnswer.SURVEY_GUID = dataReader[GClass0.smethod_0("Xşɛ͞т՟ٚ݃ࡖो")].ToString(); surveyQuotaAnswer.QUESTION_NAME = dataReader[GClass0.smethod_0("\\řɎ͙ѝՁو݈࡚ॊੂౄ")].ToString(); surveyQuotaAnswer.CODE = dataReader["CODE"].ToString(); surveyQuotaAnswer.IS_FINISH = Convert.ToInt32(dataReader[GClass0.smethod_0("@śɘ̀ьՊيݑࡉ")]); } } return(surveyQuotaAnswer); }
public void Delete(SurveyQuotaAnswer surveyQuotaAnswer_0) { string string_ = string.Format(GClass0.smethod_0("oůɥͭѳգݢࡱ७੬ౌ൫ཪၾᅣቈ፭ᑸᕢᙴᥡᩦ᭵ᱽᴮṚὄ⁎⅘≌⌨╂☥✹⡸⤲⩼"), surveyQuotaAnswer_0.ID); this.dbprovider_0.ExecuteNonQuery(string_); }