// ReSharper restore InconsistentNaming
 public override void SetUpLinks()
 {
     Link_01 = ResolveLink("DMS", "Document Management", "http://docs.talbotuw.com/default.aspx");
     Link_02 = ResolveLink("MMT", "ebusiness", "https://acord.validusholdings.com/MMT/MessageSummary.aspx");
     Link_03 = ResolveLink("Qatarlyst", "eBusiness", "https://www.ri3k.com/marketplace/login/index.html");
     Link_04 = ResolveLink("Weekly Management Reports", "Reports", "http://intranet.validusholdings.com/BI/SitePages/Regular%20Talbot%20Reports.aspx");
     Link_05 = ResolveLink("Class Summaries & Triangles", "Reports", "http://ireport:8700/talbot/getfolderitems.do?folder=/UW/Monthly%20UW%20Figures");
     Link_06 = ResolveLink("Market wordings database", "Information", "https://www.lloydswordings.com/lma/auth/login.do?req_url=https://www.lloydswordings.com/lma/app/start.do");
     Link_07 = ResolveLink("Workflow Dashboard", "Workflow", "https://www.lloydswordings.com/lma/auth/login.do?req_url=https://www.lloydswordings.com/lma/app/start.do");
     Link_08 = ResolveLink("Crystal", "Compliance Tools", "https://www.lloydswordings.com/lma/auth/login.do?req_url=https://www.lloydswordings.com/lma/app/start.do");
 }
        protected Link ResolveLink(string title, string category, string url)
        {
            var link = _consoleRepository.Query<Link>(lnk => lnk.Title == title).SingleOrDefault();

            if (link == null)
            {
                link = new Link{Category = category,Title = title,Url = url,CreatedBy = "InitialSetup",CreatedOn = DateTime.Now,ModifiedBy = "InitialSetup",ModifiedOn = DateTime.Now};
                _consoleRepository.Add(link);
            }

            return link;

        }
        private Link Link_20; //World Port Source http://www.worldportsource.com/
        // ReSharper restore InconsistentNaming
        public override void SetUpLinks()
        {

            Link_01 = _consoleRepository.Query<Link>(lnk => lnk.Title == "DMS").SingleOrDefault();
            Link_01 = Link_01 ?? new Link { Category = "Document Management", Title = "DMS", Url = "http://docs.talbotuw.com/default.aspx", CreatedBy = "InitialSetup", CreatedOn = DateTime.Now, ModifiedBy = "InitialSetup", ModifiedOn = DateTime.Now };
            Link_02 = _consoleRepository.Query<Link>(lnk => lnk.Title == "MMT").SingleOrDefault();
            Link_02 = Link_02 ?? new Link { Category = "ebusiness", Title = "MMT", Url = "https://acord.validusholdings.com/MMT/MessageSummary.aspx", CreatedBy = "InitialSetup", CreatedOn = DateTime.Now, ModifiedBy = "InitialSetup", ModifiedOn = DateTime.Now };
            Link_03 = _consoleRepository.Query<Link>(lnk => lnk.Title == "Qatarlyst").SingleOrDefault();
            Link_03 = Link_03 ?? new Link { Category = "eBusiness", Title = "Qatarlyst", Url = "https://www.ri3k.com/marketplace/login/index.html", CreatedBy = "InitialSetup", CreatedOn = DateTime.Now, ModifiedBy = "InitialSetup", ModifiedOn = DateTime.Now };
            Link_04 = _consoleRepository.Query<Link>(lnk => lnk.Title == "Tamarine").SingleOrDefault();
            Link_04 = Link_04 ?? new Link { Category = "Pricing Models", Title = "Tamarine", Url = @"G:\Underwriting\Marine\TAMARINE\Tamarine v102.01.xlsm", CreatedBy = "InitialSetup", CreatedOn = DateTime.Now, ModifiedBy = "InitialSetup", ModifiedOn = DateTime.Now };
            Link_05 = _consoleRepository.Query<Link>(lnk => lnk.Title == "Marine War Model").SingleOrDefault();
            Link_05 = Link_05 ?? new Link { Category = "Pricing Models", Title = "Marine War Model", Url = @"G:\Underwriting\Marine\TAMARINE\Marine War\Marine War_v102.02.xlsm", CreatedBy = "InitialSetup", CreatedOn = DateTime.Now, ModifiedBy = "InitialSetup", ModifiedOn = DateTime.Now };
            Link_06 = _consoleRepository.Query<Link>(lnk => lnk.Title == "Hull Pricing Pro Forma").SingleOrDefault();
            Link_06 = Link_06 ?? new Link { Category = "Pricing Models", Title = "Hull Pricing Pro Forma", Url = @"G:\Underwriting\Marine\TAMARINE\Pro Forma 2013 Risks.xlsx", CreatedBy = "InitialSetup", CreatedOn = DateTime.Now, ModifiedBy = "InitialSetup", ModifiedOn = DateTime.Now };
            Link_07 = _consoleRepository.Query<Link>(lnk => lnk.Title == "Weekly Management Reports").SingleOrDefault();
            Link_07 = Link_07 ?? new Link { Category = "Reports", Title = "Weekly Management Reports", Url = "http://intranet.validusholdings.com/BI/SitePages/Regular%20Talbot%20Reports.aspx", CreatedBy = "InitialSetup", CreatedOn = DateTime.Now, ModifiedBy = "InitialSetup", ModifiedOn = DateTime.Now };
            Link_08 = _consoleRepository.Query<Link>(lnk => lnk.Title == "Class Summaries & Triangles").SingleOrDefault();
            Link_08 = Link_08 ?? new Link { Category = "Reports", Title = "Class Summaries & Triangles", Url = "http://ireport:8700/talbot/getfolderitems.do?folder=/UW/Monthly%20UW%20Figures", CreatedBy = "InitialSetup", CreatedOn = DateTime.Now, ModifiedBy = "InitialSetup", ModifiedOn = DateTime.Now };
            Link_09 = _consoleRepository.Query<Link>(lnk => lnk.Title == "Market wordings database").SingleOrDefault();
            Link_09 = Link_09 ?? new Link { Category = "Information", Title = "Market wordings database", Url = "https://www.lloydswordings.com/lma/auth/login.do?req_url=https://www.lloydswordings.com/lma/app/start.do", CreatedBy = "InitialSetup", CreatedOn = DateTime.Now, ModifiedBy = "InitialSetup", ModifiedOn = DateTime.Now };
            //Link_10 = _consoleRepository.Query<Link>(lnk => lnk.Title == "Market wordings database - Workflow").SingleOrDefault();
            //Link_10 = Link_10 ?? new Link { Category = "Information", Title = "Market wordings database - Workflow", Url = "https://www.lloydswordings.com/lma/auth/login.do?req_url=https://www.lloydswordings.com/lma/app/start.do", CreatedBy = "InitialSetup", CreatedOn = DateTime.Now, ModifiedBy = "InitialSetup", ModifiedOn = DateTime.Now };
            Link_11 = _consoleRepository.Query<Link>(lnk => lnk.Title == "Workflow Dashboard").SingleOrDefault();
            Link_11 = Link_11 ?? new Link { Category = "Workflow", Title = "Workflow Dashboard", Url = "http://apps.talbotuw.com/sites/workflow/pages/underwritingworkflow.aspx", CreatedBy = "InitialSetup", CreatedOn = DateTime.Now, ModifiedBy = "InitialSetup", ModifiedOn = DateTime.Now };
            Link_12 = _consoleRepository.Query<Link>(lnk => lnk.Title == "Crystal").SingleOrDefault();
            Link_12 = Link_12 ?? new Link { Category = "Compliance Tools", Title = "Crystal", Url = "http://www.lloyds.com/The-Market/Tools-and-Resources/Tools-E-Services/Crystal", CreatedBy = "InitialSetup", CreatedOn = DateTime.Now, ModifiedBy = "InitialSetup", ModifiedOn = DateTime.Now };
            Link_13 = _consoleRepository.Query<Link>(lnk => lnk.Title == "XE Live Exchange Rates").SingleOrDefault();
            Link_13 = Link_13 ?? new Link { Category = "Information", Title = "XE Live Exchange Rates", Url = "www.xe.com", CreatedBy = "InitialSetup", CreatedOn = DateTime.Now, ModifiedBy = "InitialSetup", ModifiedOn = DateTime.Now };
            Link_14 = _consoleRepository.Query<Link>(lnk => lnk.Title == "Weekly Underwriter Pack").SingleOrDefault();
            Link_14 = Link_14 ?? new Link { Category = "Information", Title = "Weekly Underwriter Pack", Url = "http://intranet.validusholdings.com/Underwriting/Talbot/SitePages/UWPack.aspx", CreatedBy = "InitialSetup", CreatedOn = DateTime.Now, ModifiedBy = "InitialSetup", ModifiedOn = DateTime.Now };
            Link_15 = _consoleRepository.Query<Link>(lnk => lnk.Title == "Proclarity").SingleOrDefault();
            Link_15 = Link_15 ?? new Link { Category = "Reports", Title = "Proclarity", Url = "NA", CreatedBy = "InitialSetup", CreatedOn = DateTime.Now, ModifiedBy = "InitialSetup", ModifiedOn = DateTime.Now };
            Link_16 = _consoleRepository.Query<Link>(lnk => lnk.Title == "Worldcheck").SingleOrDefault();
            Link_16 = Link_16 ?? new Link { Category = "Compliance Tools", Title = "Worldcheck", Url = "http://worldcheck.talbotuw.com/Default.aspx", CreatedBy = "InitialSetup", CreatedOn = DateTime.Now, ModifiedBy = "InitialSetup", ModifiedOn = DateTime.Now };
            Link_17 = _consoleRepository.Query<Link>(lnk => lnk.Title == "Renewals").SingleOrDefault();
            Link_17 = Link_17 ?? new Link { Category = "Reports", Title = "Renewals", Url = "http://intranet.validusholdings.com/BI/_layouts/ReportServer/RSViewerPage.aspx?rv:RelativeReportUrl=/bi/talbotreports/renewal%20monitor.rdl", CreatedBy = "InitialSetup", CreatedOn = DateTime.Now, ModifiedBy = "InitialSetup", ModifiedOn = DateTime.Now };
            Link_18 = _consoleRepository.Query<Link>(lnk => lnk.Title == "Sea-Web").SingleOrDefault();
            Link_18 = Link_18 ?? new Link { Category = "Information", Title = "Sea-Web", Url = "http://www.sea-web.com/authenticated/seaweb_subscriber_welcome.aspx", CreatedBy = "InitialSetup", CreatedOn = DateTime.Now, ModifiedBy = "InitialSetup", ModifiedOn = DateTime.Now };
            Link_19 = _consoleRepository.Query<Link>(lnk => lnk.Title == "Trade Winds").SingleOrDefault();
            Link_19 = Link_19 ?? new Link { Category = "Information", Title = "Trade Winds", Url = "http://www.tradewindsnews.com/", CreatedBy = "InitialSetup", CreatedOn = DateTime.Now, ModifiedBy = "InitialSetup", ModifiedOn = DateTime.Now };
            Link_20 = _consoleRepository.Query<Link>(lnk => lnk.Title == "World Port Source").SingleOrDefault();
            Link_20 = Link_20 ?? new Link { Category = "Information", Title = "World Port Source", Url = "http://www.worldportsource.com/", CreatedBy = "InitialSetup", CreatedOn = DateTime.Now, ModifiedBy = "InitialSetup", ModifiedOn = DateTime.Now };

        }
 // ReSharper restore InconsistentNaming
 public override void SetUpLinks()
 {
     Link_01	=	ResolveLink("DMS","Document Management","http://docs.talbotuw.com/default.aspx");
     Link_02	=	ResolveLink("MMT","ebusiness","https://acord.validusholdings.com/MMT/MessageSummary.aspx");
     Link_03	=	ResolveLink("Qatarlyst","eBusiness","https://www.ri3k.com/marketplace/login/index.html");
     Link_04	=	ResolveLink("Open Xposure","Exposure Management","Current open Xposure management link as per desktop setup");
     Link_05	=	ResolveLink("Subscribe","Policy Admin","As per standard desktop installation");
     Link_06	=	ResolveLink("Weekly Management Reports","Reports","http://intranet.validusholdings.com/BI/SitePages/Regular%20Talbot%20Reports.aspx");
     Link_07	=	ResolveLink("Class Summaries & Triangles","Reports","http://*****:*****@"G:\Underwriting\Liability\New Liabs Shared Folder\Rating\2013");
     Link_15	=	ResolveLink("Rig Zone","Information","http://www.rigzone.com/");
 }
 // ReSharper restore InconsistentNaming
 public override void SetUpLinks()
 {
     Link_01	=	ResolveLink("DMS", "Document Management", "http://docs.talbotuw.com/default.aspx");
     Link_02	=	ResolveLink("Open Xposure", "Exposure Management", "Current open Xposure management link as per desktop setup");
     Link_03	=	ResolveLink("Subscribe", "Policy Admin", "As per standard desktop installation");
     Link_04	=	ResolveLink("Terrorism Model", "Pricing Models", @"G:\Underwriting\Marine\Terrorism\Terrorism Model\Terrorism Model folder");
     Link_05	=	ResolveLink("Weekly Management Reports", "Reports", "http://intranet.validusholdings.com/BI/SitePages/Regular%20Talbot%20Reports.aspx");
     Link_06	=	ResolveLink("Class Summaries & Triangles", "Reports", "http://*****:*****@"G:\Underwriting\Crisis Management\Product Recall\1 PCI - Food & Beverage\Rate Models ");
     Link_18	=	ResolveLink("Auto rating model", "Pricing Models", @"G:\Underwriting\Crisis Management\Product Recall\2 Auto");
 }
 // ReSharper restore InconsistentNaming
 public override void SetUpLinks()
 {
     Link_01= ResolveLink("DMS", "Document Management", "http://docs.talbotuw.com/default.aspx");
     Link_02= ResolveLink("MMT", "ebusiness", "https://acord.validusholdings.com/MMT/MessageSummary.aspx");
     Link_03= ResolveLink("Qatarlyst", "eBusiness", "https://www.ri3k.com/marketplace/login/index.html");
     Link_04= ResolveLink("Open Xposure", "Exposure Management", "Current open Xposure management link as per desktop setup");
     Link_05= ResolveLink("Subscribe", "Policy Admin", "As per standard desktop installation");
     Link_06= ResolveLink("Weekly Management Reports", "Reports", "http://intranet.validusholdings.com/BI/SitePages/Regular%20Talbot%20Reports.aspx");
     Link_07= ResolveLink("Class Summaries & Triangles", "Reports", "http://*****:*****@"G:\Underwriting\Property Fac\CONSTRUCTION\PUMA 3.3.1\2013 Projects\PUMA modifier v102 02.xls");
     Link_14= ResolveLink("Munich Re on-line natural peril mapping", "Information", "https://register.munichre.com/webcrm/LoginSite/Login.aspx");
     Link_15= ResolveLink("IMIA – The International Association of Engineering Insurers (international market body)", "Information", "http://www.imia.com/");
     Link_16= ResolveLink("LEG – London Engineering Group (London market body)", "Information", "http://www.londonengineeringgroup.com/");
     Link_17= ResolveLink("Cyclone tracking in USA", "Information", "http://www.nhc.noaa.gov/");
     Link_18= ResolveLink("FEMA - Flood exposure mapping in USA", "Information", "http://fema.maps.arcgis.com/home/");
     Link_19= ResolveLink("Cyclone tracking in Australia", "Information", "http://www.bom.gov.au/cyclone/?ref=dropdown");
 }
        public ActionResult DeleteLink(Link link)
        {
            try
            {
                var result = AdminModuleManager.DeleteLink(link);

                return new JsonNetResult
                {
                    Data = result
                };
            }
			catch (Exception ex) // TODO: Remove
            {
                LogHandler.WriteLog(ex.ToString(), LogSeverity.Error, LogCategory.BusinessComponent);
                throw new HttpException(500, "Server Error");
            }
        }
        public ActionResult EditLink(Link link)
        {
            if (!ModelState.IsValid)
                throw new HttpException(406, "Not Acceptable - Invalid Data");

            try
            {
                var updatedLink = AdminModuleManager.EditLink(link);

                return new JsonNetResult
                {
                    Data = updatedLink
                };
            }
            catch (Exception ex) // TODO: Remove
            {
                LogHandler.WriteLog(ex.ToString(), LogSeverity.Error, LogCategory.BusinessComponent);
                throw new HttpException(500, "Server Error");
            }
        }
 public string DeleteLink(Link link)
 {
     using (ConsoleRepository)
     {
         ConsoleRepository.Attach<Link>(link);
         ConsoleRepository.Delete<Link>(link);
         ConsoleRepository.SaveChanges();
         return "Successfully Deleted Link";
     }
 }
 public Link EditLink(Link link)
 {
     using (ConsoleRepository)
     {
         ConsoleRepository.Attach<Link>(link);
         ConsoleRepository.SaveChanges();
         return link;
     }
 }
        public Link CreateLink(Link link)
        {
            // TODO: sort out http etc on url string
            //if(link.Url.sub

            using (ConsoleRepository)
            {
                ConsoleRepository.Add<Link>(link);
                ConsoleRepository.SaveChanges();
                return link;
            }
        }
Esempio n. 12
0
 private Link Link_14; //Weekly Underwriter Pack http://intranet.validusholdings.com/Underwriting/Talbot/SitePages/UWPack.aspx
 // ReSharper restore InconsistentNaming
 public override void SetUpLinks()
 {
     Link_01 = _consoleRepository.Query<Link>(lnk => lnk.Title == "DMS").SingleOrDefault();
     Link_01 = Link_01 ?? new Link { Category = "Document Management", Title = "DMS", Url = "http://docs.talbotuw.com/default.aspx", CreatedBy = "InitialSetup", CreatedOn = DateTime.Now, ModifiedBy = "InitialSetup", ModifiedOn = DateTime.Now };
     Link_02 = _consoleRepository.Query<Link>(lnk => lnk.Title == "MMT").SingleOrDefault();
     Link_02 = Link_02 ?? new Link { Category = "ebusiness", Title = "MMT", Url = "https://acord.validusholdings.com/MMT/MessageSummary.aspx", CreatedBy = "InitialSetup", CreatedOn = DateTime.Now, ModifiedBy = "InitialSetup", ModifiedOn = DateTime.Now };
     Link_03 = _consoleRepository.Query<Link>(lnk => lnk.Title == "Qatarlyst").SingleOrDefault();
     Link_03 = Link_03 ?? new Link { Category = "eBusiness", Title = "Qatarlyst", Url = "https://www.ri3k.com/marketplace/login/index.html", CreatedBy = "InitialSetup", CreatedOn = DateTime.Now, ModifiedBy = "InitialSetup", ModifiedOn = DateTime.Now };
     Link_07 = _consoleRepository.Query<Link>(lnk => lnk.Title == "Weekly Management Reports").SingleOrDefault();
     Link_07 = Link_07 ?? new Link { Category = "Reports", Title = "Weekly Management Reports", Url = "http://intranet.validusholdings.com/BI/SitePages/Regular%20Talbot%20Reports.aspx", CreatedBy = "InitialSetup", CreatedOn = DateTime.Now, ModifiedBy = "InitialSetup", ModifiedOn = DateTime.Now };
     Link_08 = _consoleRepository.Query<Link>(lnk => lnk.Title == "Class Summaries & Triangles").SingleOrDefault();
     Link_08 = Link_08 ?? new Link { Category = "Reports", Title = "Class Summaries & Triangles", Url = "http://ireport:8700/talbot/getfolderitems.do?folder=/UW/Monthly%20UW%20Figures", CreatedBy = "InitialSetup", CreatedOn = DateTime.Now, ModifiedBy = "InitialSetup", ModifiedOn = DateTime.Now };
     Link_09 = _consoleRepository.Query<Link>(lnk => lnk.Title == "Market wordings database").SingleOrDefault();
     Link_09 = Link_09 ?? new Link { Category = "Information", Title = "Market wordings database", Url = "https://www.lloydswordings.com/lma/auth/login.do?req_url=https://www.lloydswordings.com/lma/app/start.do", CreatedBy = "InitialSetup", CreatedOn = DateTime.Now, ModifiedBy = "InitialSetup", ModifiedOn = DateTime.Now };
     Link_11 = _consoleRepository.Query<Link>(lnk => lnk.Title == "Workflow Dashboard").SingleOrDefault();
     Link_11 = Link_11 ?? new Link { Category = "Workflow", Title = "Workflow Dashboard", Url = "http://apps.talbotuw.com/sites/workflow/pages/underwritingworkflow.aspx", CreatedBy = "InitialSetup", CreatedOn = DateTime.Now, ModifiedBy = "InitialSetup", ModifiedOn = DateTime.Now };
     Link_12 = _consoleRepository.Query<Link>(lnk => lnk.Title == "Crystal").SingleOrDefault();
     Link_12 = Link_12 ?? new Link { Category = "Compliance Tools", Title = "Crystal", Url = "http://www.lloyds.com/The-Market/Tools-and-Resources/Tools-E-Services/Crystal", CreatedBy = "InitialSetup", CreatedOn = DateTime.Now, ModifiedBy = "InitialSetup", ModifiedOn = DateTime.Now };
     Link_13 = _consoleRepository.Query<Link>(lnk => lnk.Title == "XE Live Exchange Rates").SingleOrDefault();
     Link_13 = Link_13 ?? new Link { Category = "Information", Title = "XE Live Exchange Rates", Url = "www.xe.com", CreatedBy = "InitialSetup", CreatedOn = DateTime.Now, ModifiedBy = "InitialSetup", ModifiedOn = DateTime.Now };
     Link_14 = _consoleRepository.Query<Link>(lnk => lnk.Title == "Weekly Underwriter Pack").SingleOrDefault();
     Link_14 = Link_14 ?? new Link { Category = "Information", Title = "Weekly Underwriter Pack", Url = "http://intranet.validusholdings.com/Underwriting/Talbot/SitePages/UWPack.aspx", CreatedBy = "InitialSetup", CreatedOn = DateTime.Now, ModifiedBy = "InitialSetup", ModifiedOn = DateTime.Now };
 }