Ejemplo n.º 1
0
        /// <summary>
        /// 更新检查项目
        /// </summary>
        /// <param name="examItem"></param>
        /// <returns></returns>
        public bool UpdateExamItem(ExamItemData examItem)
        {
            string sql = "update 影像项目信息 set 项目名称=:项目名称, 项目分类ID=:项目分类ID, 项目信息=:项目信息 where 项目ID=:项目ID";

            sql = SqlHelper.GetSqlBiz().GetSqlContext("更新检查项目信息", sql);

            SqlParamInfo[] sqlPars = new SqlParamInfo[] { new SqlParamInfo("项目名称", DbType.String, examItem.项目名称),
                                                          new SqlParamInfo("项目分类ID", DbType.String, examItem.项目分类ID),
                                                          new SqlParamInfo("项目信息", DbType.String, examItem.项目信息.ToString()),
                                                          new SqlParamInfo("项目ID", DbType.String, examItem.项目ID) };

            _dbHelper.ExecuteSQL(sql, sqlPars);

            return(true);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 新增检查项目
        /// </summary>
        /// <param name="examItem"></param>
        /// <returns></returns>
        public bool NewExamItem(ExamItemData examItem)
        {
            //暂时没有绑费信息,绑费信息固定插入空
            string sql = "insert into 影像项目信息(项目ID, 项目分类ID, 项目名称, 项目信息, 绑费信息)" +
                         "values(:项目ID, :项目分类ID, :项目名称, :项目信息, null)";

            sql = SqlHelper.GetSqlBiz().GetSqlContext("插入检查项目信息", sql);

            SqlParamInfo[] sqlPars = new SqlParamInfo[] { new SqlParamInfo("项目ID", DbType.String, examItem.项目ID),
                                                          new SqlParamInfo("项目分类ID", DbType.String, examItem.项目分类ID),
                                                          new SqlParamInfo("项目名称", DbType.String, examItem.项目名称),
                                                          new SqlParamInfo("项目信息", DbType.String, examItem.项目信息.ToString()) };
            //new SqlParamInfo("绑费信息", DbType.String, examItem.绑费信息.ToString())};

            _dbHelper.ExecuteSQL(sql, sqlPars);

            return(true);
        }