protected void DisplayRedmineData() { string HeadText = "Cотрудник: {0}"; string userName = WebPartsHelper.GetPersonalPageUserName(); WebPartHeaderLabel.Text = String.Format(HeadText, userName); RedmineDataCache.RemoveUserIssues(userName); BindRedmineData(); }
protected void BindRedmineData() { string userName = WebPartsHelper.GetPersonalPageUserName(); SPWeb web = SPControl.GetContextWeb(HttpContext.Current); AppSettingsSection appSettings = WebPartsHelper.GetWebAppSettings(web); RedmineData.InitParams(appSettings); List <RedmineIssue> issuesByUser = RedmineData.GetUserIssuesAndSetCache(userName); Array issuesArrayForGridView = RedmineData.ConvertRedmineIssuesToArrayForGridView(issuesByUser); RedmineGridView.PagerTemplate = null; RedmineGridView.DataSource = issuesArrayForGridView; RedmineGridView.DataBind(); }
static void Main(string[] args) { Introduction(); Messenger.Attention("Enter target site URL:"); Messenger.Info("Example: https://contoso.sharepoint.com/portal or http://SP2013Portal/subsite/"); System.Console.Write("URL: "); string targetSiteUrl = System.Console.ReadLine(); Messenger.Attention("Enter login:"******"Examples:"); Messenger.Info("SharePoint Online: [email protected]"); Messenger.Info("SharePoint Online: [email protected]"); Messenger.Info("SharePoint 2013/2016: contoso\\johnP"); System.Console.Write("Login: "******"Enter target list Title:"); System.Console.Write("List title: "); string targetListTitle = System.Console.ReadLine(); List targetList = clientContext.Web.Lists.GetByTitle(targetListTitle); clientContext.Load(targetList); clientContext.ExecuteQuery(); DeployAttachmentsLibrary(clientContext, targetList); AngularHelper.GenerateView(clientContext, targetList); FileHelper.UploadFoldersRecursively(clientContext, SourceFolder, AppDestinationLibraryTitle); WebPartsHelper.AddCEWPToList(clientContext, targetList); //Open freshly generated Form in the browser: System.Diagnostics.Process.Start(new Uri(clientContext.Web.Url).GetLeftPart(UriPartial.Authority) + "/" + targetList.DefaultNewFormUrl); }