Example #1
0
        public static ProductInfo CreateProductInfo(Session session, assets asset)
        {
            if (session != null && asset != null)
            {
                return new ProductInfo(session)
                       {
                           AssetId           = asset.AssetId,
                           Name              = asset.Name,
                           Archive           = asset.Archive,
                           Attribut1         = asset.Attribut1,
                           Attribut2         = asset.Attribut2,
                           Brand             = asset.Brand,
                           DatumEnd          = asset.DatumEnd,
                           DatumStart        = asset.DatumStart,
                           EmailSended       = asset.EmailSended,
                           Export            = asset.Export,
                           Geschmack         = asset.Geschmack,
                           MediaType         = asset.MediaType,
                           Nicht_Exportieren = asset.Nicht_Exportieren,
                           Position          = asset.Position,
                           Segment           = asset.Segment,
                           Size              = asset.Size,
                           VerpackungsArt    = asset.VerpackungsArt,
                           Version           = asset.Version
                       }
            }
            ;

            return(new ProductInfo(GetWorkUnit()));
        }
        private void CreateAsset(assets asset)
        {
            AssetType type        = (AssetType)asset.assetType;
            string    contentType = LLUtil.SLAssetTypeToContentType((int)type);
            bool      isPublic    = true;

            // Don't bother copying temporary assets
            if (asset.temporary != 0)
            {
                return;
            }

            // Distinguish public and private assets
            switch (type)
            {
            case AssetType.CallingCard:
            case AssetType.Gesture:
            case AssetType.LSLBytecode:
            case AssetType.LSLText:
                isPublic = false;
                break;
            }

            object[] args = new object[] { asset.id, isPublic, asset.name, contentType, asset.data };

            m_semaphore.WaitOne();
            ThreadPool.QueueUserWorkItem(DoCreateAsset, args);
        }
Example #3
0
        public void Assets_Filter()
        {
            test = extent.StartTest("filter asset");
            assets AF = new assets();

            AF.NavAssetsPage();
            AF.FilterAsset();
        }
Example #4
0
        public void Asset_editRoom()
        {
            test = extent.StartTest("Edit asset room");
            assets EAR = new assets();

            EAR.NavAssetsPage();
            EAR.EditAssetRoom();
        }
Example #5
0
        public void Assets_Editassetname()
        {
            test = extent.StartTest("Edit Asset Name");
            assets EA = new assets();

            EA.NavAssetsPage();
            EA.EditAssetname();
        }
Example #6
0
        public void Assets_DeleteAsset()
        {
            test = extent.StartTest("Delete asset");
            assets DA = new assets();

            DA.NavAssetsPage();
            DA.DeleteAsset();
        }
Example #7
0
        public void Assets_Addnewasset_Invaliddata()
        {
            test = extent.StartTest("Add new Asset");

            assets AA = new assets();

            AA.NavAssetsPage();
            AA.Addnewasset_Invaliddata();
        }
Example #8
0
        public static assets CreateAsset(Session session, assets asset)
        {
            if (session != null && asset != null)
            {
                return new assets(session)
                       {
                           Name              = asset.Name,
                           Agentur           = asset.Agentur,
                           Archive           = asset.Archive,
                           AssetId           = asset.AssetId,
                           Attribut1         = asset.Attribut1,
                           Attribut2         = asset.Attribut2,
                           Brand             = asset.Brand,
                           Copyright         = asset.Copyright,
                           DateiGroesse      = asset.DateiGroesse,
                           DatenMenge        = asset.DatenMenge,
                           DatumEnd          = asset.DatumEnd,
                           DatumStart        = asset.DatumStart,
                           EanSekundaer      = asset.EanSekundaer,
                           Ean_Klein         = asset.Ean_Klein,
                           EmailSended       = asset.EmailSended,
                           Export            = asset.Export,
                           FileNameAlt       = asset.FileNameAlt,
                           FileNameEu        = asset.FileNameEu,
                           FileNameLang      = asset.FileNameLang,
                           FileNameOriginal  = asset.FileNameOriginal,
                           Fotograf          = asset.Fotograf,
                           Geschmack         = asset.Geschmack,
                           MediaType         = asset.MediaType,
                           Nicht_Exportieren = asset.Nicht_Exportieren,
                           ParentAssetID     = asset.ParentAssetID,
                           Position          = asset.Position,
                           Promotion         = asset.Promotion,
                           Segment           = asset.Segment,
                           SichtbarAb        = asset.SichtbarAb,
                           Size              = asset.Size,
                           Vbn_Ean           = asset.Vbn_Ean,
                           Veroeffentlichung = asset.Veroeffentlichung,
                           VerpackungsArt    = asset.VerpackungsArt,
                           Version           = asset.Version,
                           Vse_Ean           = asset.Vse_Ean
                       }
            }
            ;

            session = GetWorkUnit();
            return(new assets(session));
        }
Example #9
0
        public static SalesInfo CreateSalesInfo(Session session, assets asset)
        {
            if (session != null && asset != null)
            {
                return(new SalesInfo(session)
                {
                    AssetId = asset.AssetId,
                    EanSekundaer = asset.EanSekundaer,
                    Ean_Klein = asset.Ean_Klein,
                    Vbn_Ean = asset.Vbn_Ean,
                    Vse_Ean = asset.Vse_Ean
                });
            }

            return(new SalesInfo(GetWorkUnit()));
        }
Example #10
0
        public static MarketingInfo CreateMarketingInfo(Session session, assets asset)
        {
            if (session != null && asset != null)
            {
                return(new MarketingInfo(session)
                {
                    AssetId = asset.AssetId,
                    Agentur = asset.Agentur,
                    Copyright = asset.Copyright,
                    Fotograf = asset.Fotograf,
                    Promotion = asset.Promotion,
                    SichtbarAb = asset.SichtbarAb,
                    Veroeffentlichung = asset.Veroeffentlichung
                });
            }

            return(new MarketingInfo(GetWorkUnit()));
        }
Example #11
0
        public static AssetInfo CreateAssetInfo(Session session, assets asset)
        {
            if (session != null && asset != null)
            {
                return new AssetInfo(session)
                       {
                           AssetId          = asset.AssetId,
                           ParentAssetID    = asset.ParentAssetID,
                           DateiGroesse     = asset.DateiGroesse,
                           DatenMenge       = asset.DatenMenge,
                           FileNameAlt      = asset.FileNameAlt,
                           FileNameEu       = asset.FileNameEu,
                           FileNameLang     = asset.FileNameLang,
                           FileNameOriginal = asset.FileNameOriginal
                       }
            }
            ;

            return(new AssetInfo(GetWorkUnit()));
        }