private void CreateListeners() { _pipeline = new Pipeline(); _resultHandler = new QueryResultHandler(this); _webResourceManager = new WebResourceManager(_pipeline, _resultHandler); _pipeline.InputTextSubscriberManager.AddSubscriber(_webResourceManager); _webResourceManager.AddSearchEngine(new GoogleSearchEngine()); _webResourceManager.AddSearchEngine(new BaiduSearchEngine()); _webResourceManager.AddSearchEngine(new SogouSearchEngine()); _webResourceManager.AddSearchEngine(new WikipediaSearchEngine()); //_webResourceManager.AddSearchEngine( new GoogleSuggestion() ); _webResourceManager.AddSearchEngine(new DictCn()); InputQueryObsoletedTime = _defaultInputQueryObsoletedTime; //_inputQueryRecordManager = new InputQueryRecordManager( // "data\\query.xml", InputQueryObsoletedTime); _pipeline.InputTextSubscriberManager.AddSubscriber(_inputQueryRecordManager); _queryResultRecordManager = new QueryResultRecordManager( "data", new TimeSpan(30, 0, 0, 0)); _pipeline.QueryResultSubscriberManager.AddSubscriber(_queryResultRecordManager); }
/// <summary> /// Handles all web ressource requests /// </summary> public void DeployWebresource() { var crud = new Crud(Service, log, err); var manager = new WebResourceManager(Service, PackageCollection, crud, log, err, Args); var webResources = manager.RetrieveWebResourcesForActiveSolution(); manager.Manage(webResources); }
public void LoadWebResourceFromASpecificSolution() { wrManager = new WebResourceManager(Service); var sPicker = new SolutionPicker(Service) { StartPosition = FormStartPosition.CenterParent }; if (sPicker.ShowDialog(this) == DialogResult.OK) { LoadWebResourcesGeneral(sPicker.SelectedSolution); } }
public void LoadWebResourcesGeneral(Entity specificSolution) { wrManager = new WebResourceManager(Service); tvWebResources.Nodes.Clear(); var dialog = new WebResourceTypeSelectorDialog(); if (dialog.ShowDialog(ParentForm) == DialogResult.OK) { var settings = new LoadCrmResourcesSettings { SolutionId = specificSolution != null ? specificSolution.Id : Guid.Empty, SolutionName = specificSolution != null ?specificSolution.GetAttributeValue<string>("friendlyname") : "", SolutionVersion = specificSolution != null ?specificSolution.GetAttributeValue<string>("version") : "", Types = dialog.TypesToLoad }; SetWorkingState(true); tvWebResources.Nodes.Clear(); WorkAsync("Loading web resources...", e => { Guid solutionId = e.Argument != null ? ((LoadCrmResourcesSettings)e.Argument).SolutionId : Guid.Empty; RetrieveWebResources(solutionId, ((LoadCrmResourcesSettings)e.Argument).Types); e.Result = e.Argument; }, e => { if (e.Error != null) { string errorMessage = CrmExceptionHelper.GetErrorMessage(e.Error, true); MessageBox.Show(this, errorMessage, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } else { tvWebResources.Enabled = true; var currentSettings = (LoadCrmResourcesSettings)e.Result; tssCurrentlyLoadedSolution.Visible = currentSettings.SolutionId != Guid.Empty; tslCurrentlyLoadedSolution.Visible = currentSettings.SolutionId != Guid.Empty; tslCurrentlyLoadedSolution.Text = string.Format("Solution loaded: {0} - v{1}", currentSettings.SolutionName, currentSettings.SolutionVersion); } tvWebResources.ExpandAll(); tvWebResources.TreeViewNodeSorter = new NodeSorter(); tvWebResources.Sort(); TvWebResourcesAfterSelect(null, null); tsbClear.Visible = true; SetWorkingState(false); }, settings); } }
/// <summary> /// Retrieve and store web resources in the current control /// </summary> /// <param name="solutionId">Solution unique identifier</param> /// <param name="typesToLoad">Web resources types to load</param> /// <param name="hideMicrosoftWebresources"></param> /// <param name="lcids"></param> public void LoadWebResourcesFromServer(Guid solutionId, List <int> typesToLoad, bool hideMicrosoftWebresources = true, params int[] lcids) { WebResources.Clear(); var wrManager = new WebResourceManager(Service); var webResourcesCollection = wrManager.RetrieveWebResources(solutionId, typesToLoad, hideMicrosoftWebresources, lcids); WebResources = webResourcesCollection.Entities.Select(e => new WebResource(e)).ToList(); }
private void UpdateWebResources(List <string> files) { WriteObject($"Updating {files.Count} webresources"); var progress = new ProgressRecord(0, "UpdateWebResources", "Idle"); var fileno = 0; var updatecount = 0; foreach (var file in files) { fileno++; var crmpath = GetCrmPath(file); WriteVerbose($"Retrieving {crmpath}"); progress.StatusDescription = $"Retrieving {crmpath}"; progress.PercentComplete = (fileno * 50) / files.Count; WriteProgress(progress); var wr = WebResourceManager.RetrieveWebResource(Service, crmpath); if (wr == null) { throw new ArgumentOutOfRangeException("file", crmpath, $"{crmpath} does not exist in target CRM. Make sure it is uploaded before updating."); } if (wr.Attributes["ismanaged"] as bool? ?? false) { if (!UpdateManaged) { throw new ArgumentOutOfRangeException("file", crmpath, $"{crmpath} is managed in target CRM. Use parameter UpdateManaged to allow this."); } else { WriteWarning($"Updating managed webresource: {crmpath}"); } } fileno++; progress.StatusDescription = $"Updating {crmpath}"; progress.PercentComplete = (fileno * 50) / files.Count; WriteProgress(progress); var filecontent = Convert.ToBase64String(File.ReadAllBytes(file)); if (filecontent != wr.Attributes["content"] as string) { var updatewr = wr; updatewr.Attributes["content"] = filecontent; Service.Update(updatewr); WriteObject($"Updated {crmpath}"); updatecount++; } else { WriteVerbose($"No change: {crmpath}"); } } WriteObject($"Successfully updated {updatecount} webresources."); }
private void UpdateWebResources(List <string> files, CintContainer container) { WriteObject(string.Format("Updating {0} webresources", files.Count)); var progress = new ProgressRecord(0, "UpdateWebResources", "Idle"); var fileno = 0; var updatecount = 0; foreach (var file in files) { fileno++; string crmpath = GetCrmPath(file); WriteVerbose(" " + crmpath); progress.StatusDescription = $"Retrieving {crmpath}"; progress.PercentComplete = (fileno * 50) / files.Count; WriteProgress(progress); var wr = WebResourceManager.RetrieveWebResource(container, crmpath); if (wr == null) { throw new ArgumentOutOfRangeException("file", crmpath, $"{crmpath} does not exist in target CRM. Make sure it is uploaded before updating."); } if (wr.Property("ismanaged", false)) { if (!UpdateManaged) { throw new ArgumentOutOfRangeException("file", crmpath, $"{crmpath} is managed in target CRM. Use parameter UpdateManaged to allow this."); } else { WriteWarning("Updating managed webresource: " + crmpath); } } fileno++; progress.StatusDescription = $"Updating {crmpath}"; progress.PercentComplete = (fileno * 50) / files.Count; WriteProgress(progress); var filecontent = Convert.ToBase64String(File.ReadAllBytes(file)); if (filecontent != wr.Property("content", string.Empty)) { var updatewr = wr.Clone(true); updatewr.AddProperty("content", filecontent); updatewr.Save(); WriteObject($"Updated {wr}"); updatecount++; } else { WriteVerbose($"No change: {wr}"); } } WriteObject($"Successfully updated {updatecount} webresources."); }
public static void Test() { Pipeline pipeline = new Pipeline(); pipeline.QueryResultItemSubscriberManager.AddSubscriber(new ResultItemSubscriber(500)); WebResourceManager manager = new WebResourceManager(pipeline, new QueryResultHandler()); InputQuery query = new InputQuery("Ba"); Console.WriteLine(query.Text); //manager.SearchEngineList.Add(new SearchEngine(2000)); // manager.SearchEngineList.Add(new SearchEngine(1000)); manager.SearchEngineList.Add(new GoogleSearchEngine()); manager.SearchEngineList.Add(new BaiduSearchEngine()); manager.SearchEngineList.Add( new GoogleSuggestion() ); manager.SearchEngineList.Add(new DictCn()); manager.Handle(query); Thread.Sleep(8000); }
public static void Test() { Pipeline pipeline = new Pipeline(); pipeline.QueryResultItemSubscriberManager.AddSubscriber(new ResultItemSubscriber(500)); WebResourceManager manager = new WebResourceManager(pipeline, new QueryResultHandler()); InputQuery query = new InputQuery("Ba"); Console.WriteLine(query.Text); //manager.SearchEngineList.Add(new SearchEngine(2000)); // manager.SearchEngineList.Add(new SearchEngine(1000)); manager.SearchEngineList.Add(new GoogleSearchEngine()); manager.SearchEngineList.Add(new BaiduSearchEngine()); manager.SearchEngineList.Add(new GoogleSuggestion()); manager.SearchEngineList.Add(new DictCn()); manager.Handle(query); Thread.Sleep(8000); }
#pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { #line 5 "C:\Users\USER\Desktop\aspzero\aspnet-core\src\GSoft.AbpZeroTemplate.Web.Mvc\Views\Shared\Components\TenantChange\Default.cshtml" WebResourceManager.AddScript(ApplicationPath + "view-resources/Views/Shared/Components/TenantChange/Default.js"); #line default #line hidden BeginContext(312, 43, true); WriteLiteral("<span class=\"tenant-change-component\">\n "); EndContext(); BeginContext(356, 18, false); #line 9 "C:\Users\USER\Desktop\aspzero\aspnet-core\src\GSoft.AbpZeroTemplate.Web.Mvc\Views\Shared\Components\TenantChange\Default.cshtml" Write(L("CurrentTenant")); #line default #line hidden EndContext(); BeginContext(374, 3, true); WriteLiteral(":\n\n"); EndContext(); #line 11 "C:\Users\USER\Desktop\aspzero\aspnet-core\src\GSoft.AbpZeroTemplate.Web.Mvc\Views\Shared\Components\TenantChange\Default.cshtml" if (Model.Tenant != null) { #line default #line hidden BeginContext(414, 13, true); WriteLiteral(" <span"); EndContext(); BeginWriteAttribute("title", " title=\"", 427, "\"", 453, 1); #line 13 "C:\Users\USER\Desktop\aspzero\aspnet-core\src\GSoft.AbpZeroTemplate.Web.Mvc\Views\Shared\Components\TenantChange\Default.cshtml" WriteAttributeValue("", 435, Model.Tenant.Name, 435, 18, false); #line default #line hidden EndWriteAttribute(); BeginContext(454, 9, true); WriteLiteral("><strong>"); EndContext(); BeginContext(464, 24, false); #line 13 "C:\Users\USER\Desktop\aspzero\aspnet-core\src\GSoft.AbpZeroTemplate.Web.Mvc\Views\Shared\Components\TenantChange\Default.cshtml" Write(Model.Tenant.TenancyName); #line default #line hidden EndContext(); BeginContext(488, 17, true); WriteLiteral("</strong></span>\n"); EndContext(); #line 14 "C:\Users\USER\Desktop\aspzero\aspnet-core\src\GSoft.AbpZeroTemplate.Web.Mvc\Views\Shared\Components\TenantChange\Default.cshtml" } else { #line default #line hidden BeginContext(526, 14, true); WriteLiteral(" <span>"); EndContext(); BeginContext(541, 16, false); #line 17 "C:\Users\USER\Desktop\aspzero\aspnet-core\src\GSoft.AbpZeroTemplate.Web.Mvc\Views\Shared\Components\TenantChange\Default.cshtml" Write(L("NotSelected")); #line default #line hidden EndContext(); BeginContext(557, 8, true); WriteLiteral("</span>\n"); EndContext(); #line 18 "C:\Users\USER\Desktop\aspzero\aspnet-core\src\GSoft.AbpZeroTemplate.Web.Mvc\Views\Shared\Components\TenantChange\Default.cshtml" } #line default #line hidden BeginContext(571, 18, true); WriteLiteral("\n (<a href=\"#\">"); EndContext(); BeginContext(590, 11, false); #line 20 "C:\Users\USER\Desktop\aspzero\aspnet-core\src\GSoft.AbpZeroTemplate.Web.Mvc\Views\Shared\Components\TenantChange\Default.cshtml" Write(L("Change")); #line default #line hidden EndContext(); BeginContext(601, 13, true); WriteLiteral("</a>)\n</span>"); EndContext(); }
static void Main(string[] args) { try { var parametersManager = new ParametersManager(); var parameters = parametersManager.GetParameters(args); Console.WriteLine("Connecting to CRM service..."); Console.WriteLine(); var connectionManager = new ConnectionManager(); var service = connectionManager.GetCrmService(parameters.OrganizationServiceUrl); var webResourceManager = new WebResourceManager(service); var webResources = webResourceManager.GetWebResourceFiles(parameters.WebResourcesRootPath, parameters); var crmWebResources = webResourceManager.GetCrmWebResources(); if (webResources.Count > 0) { foreach (var webResource in webResources) { try { webResourceManager.ValidateWebResourceName(webResource.Name, parameters.PublisherPrefix); } catch (Exception ex) { Console.WriteLine($"Web resource name is invalid: {webResource.Name} ({ex.Message})"); continue; } var existingWebResource = crmWebResources.FirstOrDefault(w => w.GetAttributeValue <string>("name") == webResource.Name); if (existingWebResource != null) { webResourceManager.UpdateWebResource(webResource, existingWebResource.Id); Console.WriteLine($"Web resource updated: {webResource.Name}"); } else { webResourceManager.CreateWebResource(webResource); Console.WriteLine($"Web resource created: {webResource.Name}"); } } if (parameters.PublishChanges) { Console.WriteLine(); Console.WriteLine("Publishing customizations..."); var publishRequest = new PublishAllXmlRequest(); service.Execute(publishRequest); } else { Console.WriteLine(); Console.WriteLine("You chose NOT to publish changes"); } } else { Console.WriteLine($"No web resources found in this folder: {parameters.WebResourcesRootPath}"); } if (!parameters.CloseIfSucceeded) { Console.WriteLine(); Console.WriteLine("Done"); Console.ReadKey(); } } catch (Exception ex) { Console.WriteLine(ex.Message); Console.WriteLine(); Console.WriteLine(); Console.WriteLine("Customizations NOT published due to error"); Console.ReadKey(); } }
#pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { #line 3 "G:\杂项\Me\DemoCore\4.0.1\aspnet-core\src\DemoCore.Web.Mvc\Views\Shared\Components\TenantChange\Default.cshtml" WebResourceManager.AddScript(ApplicationPath + "view-resources/Views/Shared/Components/TenantChange/Default.js"); #line default #line hidden BeginContext(205, 136, true); WriteLiteral("<div class=\"card tenant-change-component\" style=\"margin-bottom: 3px;\">\r\n <div class=\"body text-center\">\r\n <span>\r\n "); EndContext(); BeginContext(342, 18, false); #line 9 "G:\杂项\Me\DemoCore\4.0.1\aspnet-core\src\DemoCore.Web.Mvc\Views\Shared\Components\TenantChange\Default.cshtml" Write(L("CurrentTenant")); #line default #line hidden EndContext(); BeginContext(360, 5, true); WriteLiteral(":\r\n\r\n"); EndContext(); #line 11 "G:\杂项\Me\DemoCore\4.0.1\aspnet-core\src\DemoCore.Web.Mvc\Views\Shared\Components\TenantChange\Default.cshtml" if (Model.Tenant != null) { #line default #line hidden BeginContext(420, 21, true); WriteLiteral(" <span"); EndContext(); BeginWriteAttribute("title", " title=\"", 441, "\"", 467, 1); #line 13 "G:\杂项\Me\DemoCore\4.0.1\aspnet-core\src\DemoCore.Web.Mvc\Views\Shared\Components\TenantChange\Default.cshtml" WriteAttributeValue("", 449, Model.Tenant.Name, 449, 18, false); #line default #line hidden EndWriteAttribute(); BeginContext(468, 9, true); WriteLiteral("><strong>"); EndContext(); BeginContext(478, 24, false); #line 13 "G:\杂项\Me\DemoCore\4.0.1\aspnet-core\src\DemoCore.Web.Mvc\Views\Shared\Components\TenantChange\Default.cshtml" Write(Model.Tenant.TenancyName); #line default #line hidden EndContext(); BeginContext(502, 18, true); WriteLiteral("</strong></span>\r\n"); EndContext(); #line 14 "G:\杂项\Me\DemoCore\4.0.1\aspnet-core\src\DemoCore.Web.Mvc\Views\Shared\Components\TenantChange\Default.cshtml" } else { #line default #line hidden BeginContext(568, 22, true); WriteLiteral(" <span>"); EndContext(); BeginContext(591, 16, false); #line 17 "G:\杂项\Me\DemoCore\4.0.1\aspnet-core\src\DemoCore.Web.Mvc\Views\Shared\Components\TenantChange\Default.cshtml" Write(L("NotSelected")); #line default #line hidden EndContext(); BeginContext(607, 9, true); WriteLiteral("</span>\r\n"); EndContext(); #line 18 "G:\杂项\Me\DemoCore\4.0.1\aspnet-core\src\DemoCore.Web.Mvc\Views\Shared\Components\TenantChange\Default.cshtml" } #line default #line hidden BeginContext(631, 80, true); WriteLiteral("\r\n (<a href=\"#\" data-toggle=\"modal\" data-target=\"#TenantChangeModal\">"); EndContext(); BeginContext(712, 11, false); #line 20 "G:\杂项\Me\DemoCore\4.0.1\aspnet-core\src\DemoCore.Web.Mvc\Views\Shared\Components\TenantChange\Default.cshtml" Write(L("Change")); #line default #line hidden EndContext(); BeginContext(723, 306, true); WriteLiteral(@"</a>) </span> </div> </div> <div class=""modal fade"" id=""TenantChangeModal"" tabindex=""-1"" role=""dialog"" aria-labelledby=""UserCreateModalLabel"" data-backdrop=""static""> <div class=""modal-dialog"" role=""document""> <div class=""modal-content""> </div> </div> </div> "); EndContext(); }
private void getLatestVersionToolStripMenuItem_Click(object sender, EventArgs e) { var selectedWr = (WebResource) tvWebResources.SelectedNode.Tag; if (selectedWr.WebResourceEntity == null || selectedWr.WebResourceEntity.Id == Guid.Empty) { MessageBox.Show(ParentForm, "This web resource has not been synchronized to CRM server yet. You cannot get latest version", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } WorkAsync("", evt => { var wrm = new WebResourceManager(Service); var wr = wrm.RetrieveWebResource((Guid) evt.Argument); evt.Result = wr; }, evt => { var wr = (Entity) evt.Result; ((WebResource) tvWebResources.SelectedNode.Tag).WebResourceEntity = wr; ((WebResource) tvWebResources.SelectedNode.Tag).InitialBase64 = wr.GetAttributeValue<string>("content"); TvWebResourcesAfterSelect(null, null); }, selectedWr.WebResourceEntity.Id); }
private void DoUpdate(bool[] options) { try { wrManager = new WebResourceManager(Service); // Retrieve checked web resources var nodesList = new List<TreeNode>(); TreeViewHelper.GetNodes(nodesList, tvWebResources, true); if (nodesList.Count == 0) { MessageBox.Show(this, "Please check at least one web resource before using this function", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } UpdateWebResources(options[0], nodesList, options[1]); } catch (Exception error) { MessageBox.Show(this, "An error occured: " + error.ToString(), "error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void UpdateWebResources(bool publish, IEnumerable<TreeNode> nodes, bool addToSolution = false) { var solutionUniqueName = string.Empty; if (addToSolution) { var sPicker = new SolutionPicker(Service) { StartPosition = FormStartPosition.CenterParent }; if (sPicker.ShowDialog(this) == DialogResult.OK) { solutionUniqueName = sPicker.SelectedSolution["uniquename"].ToString(); } else { return; } } SetWorkingState(true); var parameters = new object[] { nodes, publish, solutionUniqueName }; WorkAsync("Updating web resources...", (bw, e) => { var webResourceManager = new WebResourceManager(Service); var idsToPublish = new List<Guid>(); var localNodes = (IEnumerable<TreeNode>)((object[])e.Argument)[0]; var wrDifferentFromServer = new List<TreeNode>(); foreach (TreeNode node in localNodes.Where(n => n.Tag != null)) { var wr = (WebResource)node.Tag; Entity serverVersion = null; if (wr.WebResourceEntity != null && wr.WebResourceEntity.Id != Guid.Empty) { serverVersion = webResourceManager.RetrieveWebResource(wr.WebResourceEntity.Id); } if (serverVersion != null && serverVersion.GetAttributeValue<string>("content") != wr.InitialBase64) { wrDifferentFromServer.Add(node); } else { bw.ReportProgress(1, string.Format("Updating {0}...", wr.WebResourceEntity["name"])); wr.WebResourceEntity.Id = webResourceManager.UpdateWebResource(wr.WebResourceEntity); idsToPublish.Add(wr.WebResourceEntity.Id); wr.InitialBase64 = wr.WebResourceEntity.GetAttributeValue<string>("content"); } } if (wrDifferentFromServer.Count > 0) { if ( CommonDelegates.DisplayMessageBox(null, string.Format( "The following web resources were updated on the server by someone else:\r\n{0}\r\n\r\nAre you sure you want to update them with your content?", String.Join("\r\n", wrDifferentFromServer.Select(r => ((WebResource)r.Tag).WebResourceEntity.GetAttributeValue<string>("name")))), "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.Yes) { foreach (var resource in wrDifferentFromServer) { var wr = (WebResource)resource.Tag; bw.ReportProgress(1, string.Format("Updating {0}...", wr.WebResourceEntity["name"])); wr.WebResourceEntity.Id = webResourceManager.UpdateWebResource(wr.WebResourceEntity); idsToPublish.Add(wr.WebResourceEntity.Id); wr.InitialBase64 = wr.WebResourceEntity.GetAttributeValue<string>("content"); } } } // if publish if ((bool)((object[])e.Argument)[1] && wrDifferentFromServer.Count <= localNodes.Count()) { bw.ReportProgress(2, "Publishing web resources..."); webResourceManager.PublishWebResources(idsToPublish); } if (((object[])e.Argument)[2].ToString().Length > 0 && wrDifferentFromServer.Count < localNodes.Count()) { bw.ReportProgress(3, "Adding web resources to solution..."); webResourceManager.AddToSolution(idsToPublish, ((object[])e.Argument)[2].ToString()); } }, e => { if (e.Error != null) { MessageBox.Show(this, "An error occured: " + e.Error, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } if (tslResourceName.Text.Contains(" (not published)")) { tslResourceName.Text = tslResourceName.Text.Replace(" (not published)", ""); tslResourceName.ForeColor = Color.Black; } SetWorkingState(false); }, e=>SetWorkingMessage(e.UserState.ToString()), parameters); }
#pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { #line 6 "C:\Users\USER\Desktop\aspzero\aspnet-core\src\GSoft.AbpZeroTemplate.Web.Mvc\Views\Payment\_PayPal.cshtml" WebResourceManager.AddScript("https://www.paypalobjects.com/api/checkout.js"); WebResourceManager.AddScript(ApplicationPath + "view-resources/Views/Payment/_PayPal.js"); #line default #line hidden BeginContext(423, 45, true); WriteLiteral("\n<input type=\"hidden\" id=\"paypal-environment\""); EndContext(); BeginWriteAttribute("value", " value=\"", 468, "\"", 554, 1); #line 11 "C:\Users\USER\Desktop\aspzero\aspnet-core\src\GSoft.AbpZeroTemplate.Web.Mvc\Views\Payment\_PayPal.cshtml" WriteAttributeValue("", 476, Model.GetAdditionalData(SubscriptionPaymentGatewayType.Paypal, "Environment"), 476, 78, false); #line default #line hidden EndWriteAttribute(); BeginContext(555, 102, true); WriteLiteral(" />\n<input type=\"hidden\" name=\"PaymentId\" value=\"\" />\n<input type=\"hidden\" name=\"PayerId\" value=\"\" />\n"); EndContext(); #line 14 "C:\Users\USER\Desktop\aspzero\aspnet-core\src\GSoft.AbpZeroTemplate.Web.Mvc\Views\Payment\_PayPal.cshtml" if (!Model.GetAdditionalData(SubscriptionPaymentGatewayType.Paypal, "DemoUsername").IsNullOrEmpty()) { #line default #line hidden BeginContext(761, 215, true); WriteLiteral(" <div class=\"m-alert m-alert--icon m-alert--icon-solid m-alert--outline alert alert-brand alert-dismissible fade show\" role=\"alert\">\n <div class=\"m-alert__icon\">\n <i class=\"flaticon-exclamation\""); EndContext(); BeginWriteAttribute("aria-label", " aria-label=\"", 976, "\"", 1002, 1); #line 18 "C:\Users\USER\Desktop\aspzero\aspnet-core\src\GSoft.AbpZeroTemplate.Web.Mvc\Views\Payment\_PayPal.cshtml" WriteAttributeValue("", 989, L("Payment"), 989, 13, false); #line default #line hidden EndWriteAttribute(); BeginContext(1003, 116, true); WriteLiteral("></i>\n <span></span>\n </div>\n <div class=\"m-alert__text\">\n <h4>\n "); EndContext(); BeginContext(1120, 22, false); #line 23 "C:\Users\USER\Desktop\aspzero\aspnet-core\src\GSoft.AbpZeroTemplate.Web.Mvc\Views\Payment\_PayPal.cshtml" Write(L("DemoPayPalAccount")); #line default #line hidden EndContext(); BeginContext(1142, 57, true); WriteLiteral("\n </h4>\n <p>\n <span>"); EndContext(); BeginContext(1200, 13, false); #line 26 "C:\Users\USER\Desktop\aspzero\aspnet-core\src\GSoft.AbpZeroTemplate.Web.Mvc\Views\Payment\_PayPal.cshtml" Write(L("UserName")); #line default #line hidden EndContext(); BeginContext(1213, 10, true); WriteLiteral(": <strong>"); EndContext(); BeginContext(1224, 78, false); #line 26 "C:\Users\USER\Desktop\aspzero\aspnet-core\src\GSoft.AbpZeroTemplate.Web.Mvc\Views\Payment\_PayPal.cshtml" Write(Model.GetAdditionalData(SubscriptionPaymentGatewayType.Paypal, "DemoUsername")); #line default #line hidden EndContext(); BeginContext(1302, 45, true); WriteLiteral("</strong></span><br />\n <span>"); EndContext(); BeginContext(1348, 13, false); #line 27 "C:\Users\USER\Desktop\aspzero\aspnet-core\src\GSoft.AbpZeroTemplate.Web.Mvc\Views\Payment\_PayPal.cshtml" Write(L("Password")); #line default #line hidden EndContext(); BeginContext(1361, 10, true); WriteLiteral(": <strong>"); EndContext(); BeginContext(1372, 78, false); #line 27 "C:\Users\USER\Desktop\aspzero\aspnet-core\src\GSoft.AbpZeroTemplate.Web.Mvc\Views\Payment\_PayPal.cshtml" Write(Model.GetAdditionalData(SubscriptionPaymentGatewayType.Paypal, "DemoPassword")); #line default #line hidden EndContext(); BeginContext(1450, 60, true); WriteLiteral("</strong></span>\n </p>\n </div>\n </div>\n"); EndContext(); #line 31 "C:\Users\USER\Desktop\aspzero\aspnet-core\src\GSoft.AbpZeroTemplate.Web.Mvc\Views\Payment\_PayPal.cshtml" } #line default #line hidden BeginContext(1512, 30, true); WriteLiteral("<div id=\"paypal-button\"></div>"); EndContext(); }
#pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { #line 3 "E:\Demo\MyProject_Build\4.2.1\aspnet-core\src\MyProject.Web.Mvc\Views\Shared\Components\TenantChange\Default.cshtml" WebResourceManager.AddScript(ApplicationPath + "view-resources/Views/Shared/Components/TenantChange/Default.js"); #line default #line hidden BeginContext(201, 133, true); WriteLiteral("<div class=\"card tenant-change-component\" style=\"margin-bottom: 3px;\">\n <div class=\"body text-center\">\n <span>\n "); EndContext(); BeginContext(335, 18, false); #line 9 "E:\Demo\MyProject_Build\4.2.1\aspnet-core\src\MyProject.Web.Mvc\Views\Shared\Components\TenantChange\Default.cshtml" Write(L("CurrentTenant")); #line default #line hidden EndContext(); BeginContext(353, 3, true); WriteLiteral(":\n\n"); EndContext(); #line 11 "E:\Demo\MyProject_Build\4.2.1\aspnet-core\src\MyProject.Web.Mvc\Views\Shared\Components\TenantChange\Default.cshtml" if (Model.Tenant != null) { #line default #line hidden BeginContext(409, 21, true); WriteLiteral(" <span"); EndContext(); BeginWriteAttribute("title", " title=\"", 430, "\"", 456, 1); #line 13 "E:\Demo\MyProject_Build\4.2.1\aspnet-core\src\MyProject.Web.Mvc\Views\Shared\Components\TenantChange\Default.cshtml" WriteAttributeValue("", 438, Model.Tenant.Name, 438, 18, false); #line default #line hidden EndWriteAttribute(); BeginContext(457, 9, true); WriteLiteral("><strong>"); EndContext(); BeginContext(467, 24, false); #line 13 "E:\Demo\MyProject_Build\4.2.1\aspnet-core\src\MyProject.Web.Mvc\Views\Shared\Components\TenantChange\Default.cshtml" Write(Model.Tenant.TenancyName); #line default #line hidden EndContext(); BeginContext(491, 17, true); WriteLiteral("</strong></span>\n"); EndContext(); #line 14 "E:\Demo\MyProject_Build\4.2.1\aspnet-core\src\MyProject.Web.Mvc\Views\Shared\Components\TenantChange\Default.cshtml" } else { #line default #line hidden BeginContext(553, 22, true); WriteLiteral(" <span>"); EndContext(); BeginContext(576, 16, false); #line 17 "E:\Demo\MyProject_Build\4.2.1\aspnet-core\src\MyProject.Web.Mvc\Views\Shared\Components\TenantChange\Default.cshtml" Write(L("NotSelected")); #line default #line hidden EndContext(); BeginContext(592, 8, true); WriteLiteral("</span>\n"); EndContext(); #line 18 "E:\Demo\MyProject_Build\4.2.1\aspnet-core\src\MyProject.Web.Mvc\Views\Shared\Components\TenantChange\Default.cshtml" } #line default #line hidden BeginContext(614, 79, true); WriteLiteral("\n (<a href=\"#\" data-toggle=\"modal\" data-target=\"#TenantChangeModal\">"); EndContext(); BeginContext(694, 11, false); #line 20 "E:\Demo\MyProject_Build\4.2.1\aspnet-core\src\MyProject.Web.Mvc\Views\Shared\Components\TenantChange\Default.cshtml" Write(L("Change")); #line default #line hidden EndContext(); BeginContext(705, 295, true); WriteLiteral(@"</a>) </span> </div> </div> <div class=""modal fade"" id=""TenantChangeModal"" tabindex=""-1"" role=""dialog"" aria-labelledby=""UserCreateModalLabel"" data-backdrop=""static""> <div class=""modal-dialog"" role=""document""> <div class=""modal-content""> </div> </div> </div> "); EndContext(); }