public static int AddStandard(StandardInfo standard) { standard.ID = dal.AddStandard(standard); UploadBLL.UpdateUpload(TableID, 0, standard.ID, Cookies.Admin.GetRandomNumber(false)); CacheHelper.Remove(cacheKey); return(standard.ID); }
public static int AddProductPhoto(ProductPhotoInfo productPhoto) { productPhoto.ID = dal.AddProductPhoto(productPhoto); UploadBLL.UpdateUpload(TableID, productPhoto.ProductID, productPhoto.ID, Cookies.Admin.GetRandomNumber(false)); ProductBLL.ChangeProductPhotoCount(productPhoto.ProductID, ChangeAction.Plus); return(productPhoto.ID); }
public static void DeleteFlashPhoto(string strID, int flashID) { UploadBLL.DeleteUploadByRecordID(TableID, strID); FlashBLL.ChangeFlashCountByGeneral(strID, ChangeAction.Minus); dal.DeleteFlashPhoto(strID); FlashBLL.RebuildFile(flashID); }
public static int AddProductBrand(ProductBrandInfo productBrand) { productBrand.ID = dal.AddProductBrand(productBrand); UploadBLL.UpdateUpload(TableID, 0, productBrand.ID, Cookies.Admin.GetRandomNumber(false)); CacheHelper.Remove(cacheKey); return(productBrand.ID); }
public static void UpdateArticle(ArticleInfo article) { dal.UpdateArticle(article); CacheHelper.Remove(cacheKey); FirstArticleDc = null; UploadBLL.UpdateUpload(TableID, 0, article.ID, Cookies.Admin.GetRandomNumber(false)); }
public static void DeleteArticle(string strID) { UploadBLL.DeleteUploadByRecordID(TableID, strID); dal.DeleteArticle(strID); CacheHelper.Remove(cacheKey); FirstArticleDc = null; }
public static int AddAd(AdInfo ad) { ad.ID = dal.AddAd(ad); UploadBLL.UpdateUpload(TableID, 0, ad.ID, Cookies.Admin.GetRandomNumber(false)); CreateAdFile(ad); return(ad.ID); }
public static int AddLink(LinkInfo link) { link.ID = dal.AddLink(link); UploadBLL.UpdateUpload(TableID, 0, link.ID, Cookies.Admin.GetRandomNumber(false)); CacheHelper.Remove(cacheKey); return(link.ID); }
public static int AddFlashPhoto(FlashPhotoInfo flashPhoto) { flashPhoto.ID = dal.AddFlashPhoto(flashPhoto); UploadBLL.UpdateUpload(TableID, flashPhoto.FlashID, flashPhoto.ID, Cookies.Admin.GetRandomNumber(false)); FlashBLL.ChangeFlashCount(flashPhoto.FlashID, ChangeAction.Plus); FlashBLL.RebuildFile(flashPhoto.FlashID); return(flashPhoto.ID); }
public static void UpdateProduct(ProductInfo product) { dal.UpdateProduct(product); //如果是组合套餐内的课程修改,清空岗位课程缓存 if (product.ClassID.IndexOf("|2|") != -1) { CacheHelper.Remove(postCourseCacheKey); } UploadBLL.UpdateUpload(TableID, 0, product.ID, Cookies.Admin.GetRandomNumber(false)); }
public static int AddArticle(ArticleInfo article) { article.ID = dal.AddArticle(article); UploadBLL.UpdateUpload(TableID, 0, article.ID, Cookies.Admin.GetRandomNumber(false)); if (article.ClassID.IndexOf("|" + 2 + "|") > -1) { CacheHelper.Remove(cacheKey); } FirstArticleDc = null; return(article.ID); }
public static void DeleteProduct(string strID) { UploadBLL.DeleteUploadByRecordID(TableID, strID); //ProductBrandBLL.ChangeProductBrandCountByGeneral(strID, ChangeAction.Minus); //ProductPhotoBLL.DeleteProductPhotoByProductID(strID); //更新与此产品有关联的产品 UpdateRelationProductByProductId(strID); //更新与此新产品有关的岗位计划 PostBLL.UpdatePostPlan(strID); //删除产品 dal.DeleteProduct(strID); }
public static void UpdateUser(UserInfo user) { dal.UpdateUser(user); UploadBLL.UpdateUpload(TableID, 0, user.ID, Cookies.Admin.GetRandomNumber(false)); }
public static void UpdateAd(AdInfo ad) { dal.UpdateAd(ad); UploadBLL.UpdateUpload(TableID, 0, ad.ID, Cookies.Admin.GetRandomNumber(false)); CreateAdFile(ad); }
public static void DeleteAd(string strID) { UploadBLL.DeleteUploadByRecordID(TableID, strID); AdRecordBLL.DeleteAdRecordByAdID(strID); dal.DeleteAd(strID); }
public static void UpdateFlashPhoto(FlashPhotoInfo flashPhoto) { dal.UpdateFlashPhoto(flashPhoto); UploadBLL.UpdateUpload(TableID, flashPhoto.FlashID, flashPhoto.ID, Cookies.Admin.GetRandomNumber(false)); FlashBLL.RebuildFile(flashPhoto.FlashID); }
public static void UpdateProductBrand(ProductBrandInfo productBrand) { dal.UpdateProductBrand(productBrand); UploadBLL.UpdateUpload(TableID, 0, productBrand.ID, Cookies.Admin.GetRandomNumber(false)); CacheHelper.Remove(cacheKey); }
public static int AddGiftPack(GiftPackInfo giftPack) { giftPack.ID = dal.AddGiftPack(giftPack); UploadBLL.UpdateUpload(TableID, 0, giftPack.ID, Cookies.Admin.GetRandomNumber(false)); return(giftPack.ID); }
public static void UpdateFavorableActivity(FavorableActivityInfo favorableActivity) { dal.UpdateFavorableActivity(favorableActivity); UploadBLL.UpdateUpload(TableID, 0, favorableActivity.ID, Cookies.Admin.GetRandomNumber(false)); }
public static void DeleteFavorableActivity(string strID) { UploadBLL.DeleteUploadByRecordID(TableID, strID); dal.DeleteFavorableActivity(strID); }
public static int AddFavorableActivity(FavorableActivityInfo favorableActivity) { favorableActivity.ID = dal.AddFavorableActivity(favorableActivity); UploadBLL.UpdateUpload(TableID, 0, favorableActivity.ID, Cookies.Admin.GetRandomNumber(false)); return(favorableActivity.ID); }
public static void DeleteLink(string strID) { UploadBLL.DeleteUploadByRecordID(TableID, strID); dal.DeleteLink(strID); CacheHelper.Remove(cacheKey); }
public static void UpdateThemeActivity(ThemeActivityInfo themeActivity) { dal.UpdateThemeActivity(themeActivity); UploadBLL.UpdateUpload(TableID, 0, themeActivity.ID, Cookies.Admin.GetRandomNumber(false)); }
public static int AddThemeActivity(ThemeActivityInfo themeActivity) { themeActivity.ID = dal.AddThemeActivity(themeActivity); UploadBLL.UpdateUpload(TableID, 0, themeActivity.ID, Cookies.Admin.GetRandomNumber(false)); return(themeActivity.ID); }
public static void UpdateGiftPack(GiftPackInfo giftPack) { dal.UpdateGiftPack(giftPack); UploadBLL.UpdateUpload(TableID, 0, giftPack.ID, Cookies.Admin.GetRandomNumber(false)); }
public static void DeleteGiftPack(string strID) { UploadBLL.DeleteUploadByRecordID(TableID, strID); dal.DeleteGiftPack(strID); }
public static void UpdateLink(LinkInfo link) { dal.UpdateLink(link); UploadBLL.UpdateUpload(TableID, 0, link.ID, Cookies.Admin.GetRandomNumber(false)); CacheHelper.Remove(cacheKey); }
public static int AddProduct(ProductInfo product) { product.ID = dal.AddProduct(product); UploadBLL.UpdateUpload(TableID, 0, product.ID, Cookies.Admin.GetRandomNumber(false)); return(product.ID); }
///// <summary> ///// 当前用户ID ///// </summary> //public static int CurrentUserId //{ // get { return Cookies.User.GetUserID(true); } //} ///// <summary> ///// 当前用户公司ID ///// </summary> //public static int CurrentUserCompanyId //{ // get { return Cookies.User.GetCompanyID(true); } //} ///// <summary> ///// 当前用户权限组ID ///// </summary> //public static int CurrentUserGroupId //{ // get { return Cookies.User.GetGroupID(true); } //} ///// <summary> ///// 当前用户工作岗位ID ///// </summary> //public static int CurrentUserPostId //{ // get { return int.Parse(CookiesHelper.ReadCookieValue("UserPostId")); } //} ///// <summary> ///// 当前用户学习岗位ID ///// </summary> //public static int CurrentUserstudyPostId //{ // get { return int.Parse(CookiesHelper.ReadCookieValue("UserStydyPostId")); } //} public static int AddUser(UserInfo user) { user.ID = dal.AddUser(user); UploadBLL.UpdateUpload(TableID, 0, user.ID, Cookies.Admin.GetRandomNumber(false)); return(user.ID); }
public static void UpdateStandard(StandardInfo standard) { dal.UpdateStandard(standard); UploadBLL.UpdateUpload(TableID, 0, standard.ID, Cookies.Admin.GetRandomNumber(false)); CacheHelper.Remove(cacheKey); }