예제 #1
0
        /// <summary>
        /// 删除订单
        /// </summary>
        /// <param name="id">订单id</param>
        /// <returns></returns>
        public Boolean delete(int id)
        {
            OrderBomDao orderBomDao = new OrderBomDao();

            if (orderBomDao.deleteBatchByOrderId(id))
            {
                return(cd.delete <order_info>(id));
            }
            return(false);
        }
예제 #2
0
        /// <summary>
        /// 删除模块类别
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public Boolean delete(int id)
        {
            List <module_info> moduleList = md.listByTypeId(id);

            foreach (module_info moduleInfo in moduleList)
            {
                ms.delete(moduleInfo.id);
            }
            return(cd.delete <module_type>(id));
        }
예제 #3
0
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public Boolean delete(int id)
        {
            if (cd.delete <module_info>(id))
            {
                if (wdd.deleteByModuleId(id) && wmd.deleteByModuleId(id))
                {
                }
                else if (wdd.deleteByModuleId(id) == false && wmd.deleteByModuleId(id))
                {
                }
                else if (wdd.deleteByModuleId(id) && wmd.deleteByModuleId(id) == false)
                {
                }
                else if (wdd.deleteByModuleId(id) == false && wmd.deleteByModuleId(id) == false)
                {
                }

                //return wdd.deleteByModuleId(id) && wmd.deleteByModuleId(id);
                return(true);
            }
            return(false);
        }
예제 #4
0
 /// <summary>
 /// 删除
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public Boolean delete(int id)
 {
     return(cd.delete <holiday_config>(id));
 }
예제 #5
0
 /// <summary>
 /// 删除
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public Boolean delete(int id)
 {
     return(cd.delete <time_config>(id));
 }
예제 #6
0
 /// <summary>
 /// 删除bom
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public Boolean delete(int id)
 {
     return(cd.delete <bom_info>(id));
 }