Example #1
0
        /// <summary>
        /// 查询是否存在指定的报告一体化记录
        /// </summary>
        /// <param name="ireportRelation"></param>
        /// <returns></returns>
        public override bool Exists(IModel ireportRelation)
        {
            MReportRelation reportRelation = (MReportRelation)ireportRelation;

            strSql = "select * from " + TableName + " where EXAM_ACCESSION_NUM='" + reportRelation.EXAM_ACCESSION_NUM + "' and " +
                     "EXAM_ACCESSION_NUM_EX = '" + reportRelation.EXAM_ACCESSION_NUM_EX + "'";
            return(recordIsExist(strSql));
        }
Example #2
0
        /// <summary>
        /// 更新指定的报告一体化记录
        /// </summary>
        /// <param name="ireportRelation"></param>
        /// <param name="where"></param>
        /// <returns></returns>
        public override int Update(IModel ireportRelation, string where)
        {
            MReportRelation reportRelation = (MReportRelation)ireportRelation;
            Hashtable       ht             = new Hashtable();

            ht.Add("EXAM_ACCESSION_NUM", reportRelation.EXAM_ACCESSION_NUM);
            ht.Add("EXAM_ACCESSION_NUM_EX", reportRelation.EXAM_ACCESSION_NUM_EX);
            return(ExecuteSql(StringConstructor.UpdateSql(TableName, ht, where).ToString()));
        }