sharepoint 2013

remove old provider
Fix up organization menu
This commit is contained in:
robvde 2015-04-06 18:18:29 +08:00
parent 9dc1a04cd0
commit 7299fe2ab7
4 changed files with 27 additions and 18 deletions

View file

@ -9492,4 +9492,14 @@ UPDATE [dbo].[Quotas] SET QuotaName = 'HostedSharePointEnterprise.UseSharedSSL'
GO GO
UPDATE [dbo].[ServiceItemTypes] SET DisplayName = 'SharePointEnterpriseSiteCollection' WHERE DisplayName = 'SharePointSiteCollection' UPDATE [dbo].[ServiceItemTypes] SET DisplayName = 'SharePointEnterpriseSiteCollection' WHERE DisplayName = 'SharePointSiteCollection'
GO GO
IF EXISTS (SELECT * FROM Providers WHERE ProviderName = 'HostedSharePoint2013' AND GroupID IN (Select GroupID FROM ResourceGroups WHERE GroupName = 'Sharepoint Enterprise Server'))
BEGIN
DECLARE @group_id INT
SELECT @group_id = GroupId FROM ResourceGroups WHERE GroupName = 'Sharepoint Enterprise Server'
DELETE FROM Providers WHERE ProviderName = 'HostedSharePoint2013' AND GroupID = @group_id
END
GO

View file

@ -239,7 +239,7 @@
</data> </data>
<data name="Text.SharePointEnterpriseServerGroup" xml:space="preserve"> <data name="Text.SharePointEnterpriseServerGroup" xml:space="preserve">
<value>Hosted Organization - SharePoint Enterprise Server</value> <value>Hosted Organization - SharePoint Enterprise Server</value>
</data> </data>
<data name="Text.SiteCollections" xml:space="preserve"> <data name="Text.SiteCollections" xml:space="preserve">
<value>Sharepoint Sites</value> <value>Sharepoint Sites</value>
</data> </data>
@ -250,7 +250,7 @@
<value>Storage Usage</value> <value>Storage Usage</value>
</data> </data>
<data name="Text.Users" xml:space="preserve"> <data name="Text.Users" xml:space="preserve">
<value>Users</value> <value>Users (User Organization)</value>
</data> </data>
<data name="Text.CreateOrganization" xml:space="preserve"> <data name="Text.CreateOrganization" xml:space="preserve">
<value>Create Organization</value> <value>Create Organization</value>

View file

@ -58,7 +58,7 @@ namespace WebsitePanel.Portal
siteCollectionsQuota.QuotaUsedValue = stats.CreatedSharePointEnterpriseSiteCollections; siteCollectionsQuota.QuotaUsedValue = stats.CreatedSharePointEnterpriseSiteCollections;
siteCollectionsQuota.QuotaValue = stats.AllocatedSharePointEnterpriseSiteCollections; siteCollectionsQuota.QuotaValue = stats.AllocatedSharePointEnterpriseSiteCollections;
if (stats.AllocatedSharePointSiteCollections != -1) siteCollectionsQuota.QuotaAvailable = tenantStats.AllocatedSharePointEnterpriseSiteCollections - tenantStats.CreatedSharePointEnterpriseSiteCollections; if (stats.AllocatedSharePointEnterpriseSiteCollections != -1) siteCollectionsQuota.QuotaAvailable = tenantStats.AllocatedSharePointEnterpriseSiteCollections - tenantStats.CreatedSharePointEnterpriseSiteCollections;
} }
protected void btnCreateSiteCollection_Click(object sender, EventArgs e) protected void btnCreateSiteCollection_Click(object sender, EventArgs e)

View file

@ -96,10 +96,10 @@ namespace WebsitePanel.Portal.UserControls
//SharePoint menu group; //SharePoint menu group;
if (Cntx.Groups.ContainsKey(ResourceGroups.SharepointFoundationServer)) if (Cntx.Groups.ContainsKey(ResourceGroups.SharepointFoundationServer))
PrepareSharePointMenuRoot(items, GetLocalizedString("Text.SharePointFoundationServerGroup")); PrepareSharePointMenuRoot(items);
if (Cntx.Groups.ContainsKey(ResourceGroups.SharepointEnterpriseServer)) if (Cntx.Groups.ContainsKey(ResourceGroups.SharepointEnterpriseServer))
PrepareSharePointEnterpriseMenuRoot(items, GetLocalizedString("Text.SharePointEnterpriseServerGroup")); PrepareSharePointEnterpriseMenuRoot(items);
//CRM Menu //CRM Menu
if (Cntx.Groups.ContainsKey(ResourceGroups.HostedCRM2013)) if (Cntx.Groups.ContainsKey(ResourceGroups.HostedCRM2013))
@ -362,7 +362,7 @@ namespace WebsitePanel.Portal.UserControls
bbItems.Add(CreateMenuItem("BlackBerryUsers", "blackberry_users", @"Icons/blackberry_users_48.png")); bbItems.Add(CreateMenuItem("BlackBerryUsers", "blackberry_users", @"Icons/blackberry_users_48.png"));
} }
private void PrepareSharePointMenuRoot(MenuItemCollection items, string menuItemText) private void PrepareSharePointMenuRoot(MenuItemCollection items)
{ {
if (ShortMenu) if (ShortMenu)
{ {
@ -370,7 +370,7 @@ namespace WebsitePanel.Portal.UserControls
} }
else else
{ {
MenuItem item = new MenuItem(menuItemText, "", "", null); MenuItem item = new MenuItem(GetLocalizedString("Text.SharePointFoundationServerGroup"), "", "", null);
item.Selectable = false; item.Selectable = false;
@ -385,13 +385,13 @@ namespace WebsitePanel.Portal.UserControls
private void PrepareSharePointMenu(MenuItemCollection spItems) private void PrepareSharePointMenu(MenuItemCollection spItems)
{ {
spItems.Add(CreateMenuItem("Text.SiteCollections", "sharepoint_sitecollections", @"Icons/sharepoint_sitecollections_48.png")); spItems.Add(CreateMenuItem("SiteCollections", "sharepoint_sitecollections", @"Icons/sharepoint_sitecollections_48.png"));
spItems.Add(CreateMenuItem("Text.StorageUsage", "sharepoint_storage_usage", @"Icons/sharepoint_storage_usage_48.png")); spItems.Add(CreateMenuItem("StorageUsage", "sharepoint_storage_usage", @"Icons/sharepoint_storage_usage_48.png"));
spItems.Add(CreateMenuItem("Text.StorageLimits", "sharepoint_storage_settings", @"Icons/sharepoint_storage_settings_48.png")); spItems.Add(CreateMenuItem("StorageLimits", "sharepoint_storage_settings", @"Icons/sharepoint_storage_settings_48.png"));
} }
private void PrepareSharePointEnterpriseMenuRoot(MenuItemCollection items, string menuItemText) private void PrepareSharePointEnterpriseMenuRoot(MenuItemCollection items)
{ {
if (ShortMenu) if (ShortMenu)
{ {
@ -399,7 +399,7 @@ namespace WebsitePanel.Portal.UserControls
} }
else else
{ {
MenuItem item = new MenuItem(menuItemText, "", "", null); MenuItem item = new MenuItem(GetLocalizedString("Text.SharePointEnterpriseServerGroup"), "", "", null);
item.Selectable = false; item.Selectable = false;
@ -415,9 +415,9 @@ namespace WebsitePanel.Portal.UserControls
private void PrepareSharePointEnterpriseMenu(MenuItemCollection spItems) private void PrepareSharePointEnterpriseMenu(MenuItemCollection spItems)
{ {
spItems.Add(CreateMenuItem("Text.SiteCollections", "sharepoint_enterprise_sitecollections", @"Icons/sharepoint_sitecollections_48.png")); spItems.Add(CreateMenuItem("SiteCollections", "sharepoint_enterprise_sitecollections", @"Icons/sharepoint_sitecollections_48.png"));
spItems.Add(CreateMenuItem("Text.StorageUsage", "sharepoint_enterprise_storage_usage", @"Icons/sharepoint_storage_usage_48.png")); spItems.Add(CreateMenuItem("StorageUsage", "sharepoint_enterprise_storage_usage", @"Icons/sharepoint_storage_usage_48.png"));
spItems.Add(CreateMenuItem("Text.StorageLimits", "sharepoint_enterprise_storage_settings", @"Icons/sharepoint_storage_settings_48.png")); spItems.Add(CreateMenuItem("StorageLimits", "sharepoint_enterprise_storage_settings", @"Icons/sharepoint_storage_settings_48.png"));
} }
@ -556,8 +556,7 @@ namespace WebsitePanel.Portal.UserControls
MenuItem item = new MenuItem(); MenuItem item = new MenuItem();
item.Text = GetLocalizedString("Text." + text); item.Text = GetLocalizedString("Text." + text);
item.NavigateUrl = PortalUtils.EditUrl("ItemID", ItemID.ToString(), key, item.NavigateUrl = PortalUtils.EditUrl("ItemID", ItemID.ToString(), key, "SpaceID=" + PackageId);
"SpaceID=" + PackageId);
if (ShowImg) if (ShowImg)
{ {