예제 #1
0
 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);
 }
예제 #2
0
 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);
 }
예제 #3
0
 public static void DeleteFlashPhoto(string strID, int flashID)
 {
     UploadBLL.DeleteUploadByRecordID(TableID, strID);
     FlashBLL.ChangeFlashCountByGeneral(strID, ChangeAction.Minus);
     dal.DeleteFlashPhoto(strID);
     FlashBLL.RebuildFile(flashID);
 }
예제 #4
0
 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);
 }
예제 #5
0
 public static void UpdateArticle(ArticleInfo article)
 {
     dal.UpdateArticle(article);
     CacheHelper.Remove(cacheKey);
     FirstArticleDc = null;
     UploadBLL.UpdateUpload(TableID, 0, article.ID, Cookies.Admin.GetRandomNumber(false));
 }
예제 #6
0
 public static void DeleteArticle(string strID)
 {
     UploadBLL.DeleteUploadByRecordID(TableID, strID);
     dal.DeleteArticle(strID);
     CacheHelper.Remove(cacheKey);
     FirstArticleDc = null;
 }
예제 #7
0
파일: AdBLL.cs 프로젝트: xuefuruanjian/ems
 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);
 }
예제 #8
0
 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);
 }
예제 #9
0
 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);
 }
예제 #10
0
 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));
 }
예제 #11
0
 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);
 }
예제 #12
0
        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);
        }
예제 #13
0
 public static void UpdateUser(UserInfo user)
 {
     dal.UpdateUser(user);
     UploadBLL.UpdateUpload(TableID, 0, user.ID, Cookies.Admin.GetRandomNumber(false));
 }
예제 #14
0
파일: AdBLL.cs 프로젝트: xuefuruanjian/ems
 public static void UpdateAd(AdInfo ad)
 {
     dal.UpdateAd(ad);
     UploadBLL.UpdateUpload(TableID, 0, ad.ID, Cookies.Admin.GetRandomNumber(false));
     CreateAdFile(ad);
 }
예제 #15
0
파일: AdBLL.cs 프로젝트: xuefuruanjian/ems
 public static void DeleteAd(string strID)
 {
     UploadBLL.DeleteUploadByRecordID(TableID, strID);
     AdRecordBLL.DeleteAdRecordByAdID(strID);
     dal.DeleteAd(strID);
 }
예제 #16
0
 public static void UpdateFlashPhoto(FlashPhotoInfo flashPhoto)
 {
     dal.UpdateFlashPhoto(flashPhoto);
     UploadBLL.UpdateUpload(TableID, flashPhoto.FlashID, flashPhoto.ID, Cookies.Admin.GetRandomNumber(false));
     FlashBLL.RebuildFile(flashPhoto.FlashID);
 }
예제 #17
0
 public static void UpdateProductBrand(ProductBrandInfo productBrand)
 {
     dal.UpdateProductBrand(productBrand);
     UploadBLL.UpdateUpload(TableID, 0, productBrand.ID, Cookies.Admin.GetRandomNumber(false));
     CacheHelper.Remove(cacheKey);
 }
예제 #18
0
 public static int AddGiftPack(GiftPackInfo giftPack)
 {
     giftPack.ID = dal.AddGiftPack(giftPack);
     UploadBLL.UpdateUpload(TableID, 0, giftPack.ID, Cookies.Admin.GetRandomNumber(false));
     return(giftPack.ID);
 }
예제 #19
0
 public static void UpdateFavorableActivity(FavorableActivityInfo favorableActivity)
 {
     dal.UpdateFavorableActivity(favorableActivity);
     UploadBLL.UpdateUpload(TableID, 0, favorableActivity.ID, Cookies.Admin.GetRandomNumber(false));
 }
예제 #20
0
 public static void DeleteFavorableActivity(string strID)
 {
     UploadBLL.DeleteUploadByRecordID(TableID, strID);
     dal.DeleteFavorableActivity(strID);
 }
예제 #21
0
 public static int AddFavorableActivity(FavorableActivityInfo favorableActivity)
 {
     favorableActivity.ID = dal.AddFavorableActivity(favorableActivity);
     UploadBLL.UpdateUpload(TableID, 0, favorableActivity.ID, Cookies.Admin.GetRandomNumber(false));
     return(favorableActivity.ID);
 }
예제 #22
0
 public static void DeleteLink(string strID)
 {
     UploadBLL.DeleteUploadByRecordID(TableID, strID);
     dal.DeleteLink(strID);
     CacheHelper.Remove(cacheKey);
 }
예제 #23
0
 public static void UpdateThemeActivity(ThemeActivityInfo themeActivity)
 {
     dal.UpdateThemeActivity(themeActivity);
     UploadBLL.UpdateUpload(TableID, 0, themeActivity.ID, Cookies.Admin.GetRandomNumber(false));
 }
예제 #24
0
 public static int AddThemeActivity(ThemeActivityInfo themeActivity)
 {
     themeActivity.ID = dal.AddThemeActivity(themeActivity);
     UploadBLL.UpdateUpload(TableID, 0, themeActivity.ID, Cookies.Admin.GetRandomNumber(false));
     return(themeActivity.ID);
 }
예제 #25
0
 public static void UpdateGiftPack(GiftPackInfo giftPack)
 {
     dal.UpdateGiftPack(giftPack);
     UploadBLL.UpdateUpload(TableID, 0, giftPack.ID, Cookies.Admin.GetRandomNumber(false));
 }
예제 #26
0
 public static void DeleteGiftPack(string strID)
 {
     UploadBLL.DeleteUploadByRecordID(TableID, strID);
     dal.DeleteGiftPack(strID);
 }
예제 #27
0
 public static void UpdateLink(LinkInfo link)
 {
     dal.UpdateLink(link);
     UploadBLL.UpdateUpload(TableID, 0, link.ID, Cookies.Admin.GetRandomNumber(false));
     CacheHelper.Remove(cacheKey);
 }
예제 #28
0
 public static int AddProduct(ProductInfo product)
 {
     product.ID = dal.AddProduct(product);
     UploadBLL.UpdateUpload(TableID, 0, product.ID, Cookies.Admin.GetRandomNumber(false));
     return(product.ID);
 }
예제 #29
0
        ///// <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);
        }
예제 #30
0
 public static void UpdateStandard(StandardInfo standard)
 {
     dal.UpdateStandard(standard);
     UploadBLL.UpdateUpload(TableID, 0, standard.ID, Cookies.Admin.GetRandomNumber(false));
     CacheHelper.Remove(cacheKey);
 }