private void btnShow_Click(object sender, EventArgs e) { string cond = ""; cond = _searchTools.getNumberFldCond(LetterReplyCountViewEntity.FIELD_REPLYCOUNT, txtAnswerCount.Text, txtAnswerCount.Text, cmbCompare, cond); if (cond.Length > 0) { cond += " AND "; } if (cbArchive.Checked) { cond += " " + LetterReplyCountViewEntity.FIELD_ARCHIVE + "=1"; } else { cond += " (" + LetterReplyCountViewEntity.FIELD_ARCHIVE + "=0" + " OR " + LetterReplyCountViewEntity.FIELD_ARCHIVE + " is null)"; } LetterReplyCountViewEntity entity = null; entity = _replyCountBl.get(cond); System.Collections.Hashtable hash = new Hashtable(); _gridTools.bindDataToGrid(dataGridView1, entity, null, hash); }
public LetterReplyCountViewEntity get(int id) { LetterReplyCountViewEntity entity = new LetterReplyCountViewEntity(); string cond = LetterReplyCountViewEntity.FIELD_ID + "=" + provider.getSQLString(id); provider.loadToDataSet(entity, cond); return(entity); }
public LetterReplyCountViewEntity get() { LetterReplyCountViewEntity entity = new LetterReplyCountViewEntity(); string cond = "ID > 0"; provider.loadToDataSet(entity, cond); return(entity); }
public LetterReplyCountViewEntity get(string cond) { LetterReplyCountViewEntity entity = new LetterReplyCountViewEntity(); if (cond.Length > 0) { cond += " AND "; } cond += "ID > 0"; provider.loadToDataSet(entity, cond, "", entity.FilledTableName); return(entity); }