Exemple #1
0
        public static int InsertImage(string Title, string Summary, string ImageFile, string Avatar, bool IsUrlWeb, string Content, DateTime CreatedDate, DateTime ExpiredDate, DateTime DisplayDate, DateTime UpdatedDate, int UserId, bool IsHot, int HotPeriod, int PortalId, bool IsExpired, int Order, string strCategories, string addInfo1, string addInfo2, string addInfo3, string addInfo4, string addInfo5)
        {
            int newId = -1;

            newId = IG_InsertImage(Title, Summary, ImageFile, Avatar, IsUrlWeb, Content, CreatedDate, ExpiredDate, DisplayDate, UpdatedDate, UserId, IsHot, HotPeriod, PortalId, IsExpired, Order, addInfo1, addInfo2, addInfo3, addInfo4, addInfo5);
            CategoryProvider.AttachItemToManyCategories(newId, strCategories, TypeId, Title);
            return(newId);
        }
Exemple #2
0
        public static int UpdateImage(int ImageId, string Title, string Summary, string ImageFile, string Avatar, bool IsUrlWeb, string Content, DateTime CreatedDate, DateTime ExpiredDate, DateTime DisplayDate, DateTime UpdatedDate, int UserId, bool IsHot, int HotPeriod, int PortalId, bool IsExpired, int Order, string strCategories, string addInfo1, string addInfo2, string addInfo3, string addInfo4, string addInfo5, string addRichInfo1, string addRichInfo2, string addRichInfo3)
        {
            int result = -1;

            result = SV_UpdateService(ImageId, Title, Summary, ImageFile, Avatar, IsUrlWeb, Content, CreatedDate, ExpiredDate, DisplayDate, UpdatedDate, UserId, IsHot, HotPeriod, PortalId, IsExpired, Order, addInfo1, addInfo2, addInfo3, addInfo4, addInfo5, addRichInfo1, addRichInfo2, addRichInfo3);
            CategoryProvider.AttachItemToManyCategories(ImageId, strCategories, TypeId, Title);
            return(result);
        }
        public static int UpdateVideo(int VideoId, string Title, string Summary, string VideoFile, string Avatar, bool IsUrlWeb, string Length, string Content, DateTime CreatedDate, DateTime ExpiredDate, DateTime DisplayDate, DateTime UpdatedDate, int UserId, bool IsHot, int HotPeriod, int PortalId, bool IsExpired, int Order, string strCategories, string addInfo1, string addInfo2, string addInfo3, string addInfo4, string addInfo5)
        {
            int result = -1;

            result = VD_UpdateVideo(VideoId, Title, Summary, VideoFile, Avatar, IsUrlWeb, Length, Content, CreatedDate, ExpiredDate, DisplayDate, UpdatedDate, UserId, IsHot, HotPeriod, PortalId, IsExpired, Order, addInfo1, addInfo2, addInfo3, addInfo4, addInfo5);
            CategoryProvider.AttachItemToManyCategories(VideoId, strCategories, TypeId, Title);
            return(result);
        }
        public static int UpdateProduct(int ProductId, string ProductName, string Lead, string Summary, string Smallimage, string Largeimage, double Weight, DateTime CreatedDate, DateTime ExpiredDate, DateTime UpdatedDate, DateTime ProducedDate, bool IsProducedDate, bool IsExpired, bool IsHot, int HotPeriod, int UserId, int PortalId, bool IsDeleted, int Price, int PriceOld, string StatusProduct, int Order, string ExtendedSettings, string strCategories, string strCode, string strAddImage1, string strAddImage2, string strAddImage3, DateTime dtDisplayDate, string strAddInfo1, string strAddInfo2, string strAddInfo3, string strAddInfo4, string strAddInfo5, string strAddInfo6, string strAddRichInfo1, string strAddRichInfo2, string strAddRichInfo3, string strTags, int TagGroupId)
        {
            int result = -1;

            result = PD_UpdateProduct(ProductId, ProductName, Lead, Summary, Smallimage, Largeimage, Weight, CreatedDate, ExpiredDate, UpdatedDate, ProducedDate, IsProducedDate, IsExpired, IsHot, HotPeriod, UserId, PortalId, IsDeleted, Price, PriceOld, StatusProduct, Order, ExtendedSettings, strCode, strAddImage1, strAddImage2, strAddImage3, dtDisplayDate, strAddInfo1, strAddInfo2, strAddInfo3, strAddRichInfo1, strAddRichInfo2, strAddRichInfo3, strAddInfo4, strAddInfo5, strAddInfo6);
            CategoryProvider.AttachItemToManyCategories(ProductId, strCategories, TypeId, ProductName);
            TagProvider.AttachItemToManyTags(ProductId, strTags, TypeId, TagGroupId);
            return(result);
        }