Esempio n. 1
0
        /// <summary>
        /// 添加一条批次信息
        /// </summary>
        /// <param name="plan">要添加的批次对象</param>
        /// <returns>成功返回Result.添加成功,失败返回Result.添加失败</returns>
        public Result Insert(Plan plan)
        {
            int row = dao.Insert(plan);

            if (row > 0)
            {
                return(Result.添加成功);
            }
            return(Result.添加失败);
        }
Esempio n. 2
0
        public int Insert(Plan obj)
        {
            PlanBO planBO = new PlanBO(obj);

            return(planDao.Insert(planBO));
        }