/// <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); }
/// <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)); }
/// <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); }
/// <summary> /// 删除 /// </summary> /// <param name="id"></param> /// <returns></returns> public Boolean delete(int id) { return(cd.delete <holiday_config>(id)); }
/// <summary> /// 删除 /// </summary> /// <param name="id"></param> /// <returns></returns> public Boolean delete(int id) { return(cd.delete <time_config>(id)); }
/// <summary> /// 删除bom /// </summary> /// <param name="id"></param> /// <returns></returns> public Boolean delete(int id) { return(cd.delete <bom_info>(id)); }