Example #1
0
        /// <summary>
        /// 删除无用的之前的妊检任务单,可能发生返情重配
        /// </summary>
        /// <param name="earNum">耳号</param>
        /// <param name="isInitial">初检true,复检false</param>
        /// <returns>删除记录数</returns>
        public int RemovePreviousInspectionTasks(int earNum, bool isInitial)
        {
            int i = 0;

            if (isInitial)
            {
                i = taskDAL.DeletePreviousInitialInspectionTask(earNum);
            }
            else
            {
                i = taskDAL.DeletePreviousReInspectionTask(earNum);
            }
            return(i);
        }