コード例 #1
0
        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);
        }
コード例 #2
0
        public LetterReplyCountViewEntity get(int id)
        {
            LetterReplyCountViewEntity entity = new LetterReplyCountViewEntity();
            string cond = LetterReplyCountViewEntity.FIELD_ID + "=" + provider.getSQLString(id);

            provider.loadToDataSet(entity, cond);
            return(entity);
        }
コード例 #3
0
        public LetterReplyCountViewEntity get()
        {
            LetterReplyCountViewEntity entity = new LetterReplyCountViewEntity();
            string cond = "ID > 0";

            provider.loadToDataSet(entity, cond);
            return(entity);
        }
コード例 #4
0
        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);
        }