Merge
This commit is contained in:
commit
6b0235e4f5
5 changed files with 83 additions and 73 deletions
|
@ -20,3 +20,4 @@ WebsitePanel.Installer/Build
|
||||||
WebsitePanel/Bin
|
WebsitePanel/Bin
|
||||||
msbuild.log
|
msbuild.log
|
||||||
_ReSharper.*
|
_ReSharper.*
|
||||||
|
web.config
|
||||||
|
|
|
@ -2537,7 +2537,10 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
|
|
||||||
UserInfo user = ObjectUtils.FillObjectFromDataReader<UserInfo>(DataProvider.GetUserByExchangeOrganizationIdInternally(itemId));
|
UserInfo user = ObjectUtils.FillObjectFromDataReader<UserInfo>(DataProvider.GetUserByExchangeOrganizationIdInternally(itemId));
|
||||||
|
|
||||||
ExchangeServerController.GetExchangeMailboxPlansByUser(user, ref mailboxPlans);
|
if (user.Role == UserRole.User)
|
||||||
|
ExchangeServerController.GetExchangeMailboxPlansByUser(itemId, user, ref mailboxPlans);
|
||||||
|
else
|
||||||
|
ExchangeServerController.GetExchangeMailboxPlansByUser(0, user, ref mailboxPlans);
|
||||||
|
|
||||||
return mailboxPlans;
|
return mailboxPlans;
|
||||||
}
|
}
|
||||||
|
@ -2551,7 +2554,7 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void GetExchangeMailboxPlansByUser(UserInfo user, ref List<ExchangeMailboxPlan>mailboxPlans)
|
private static void GetExchangeMailboxPlansByUser(int itemId, UserInfo user, ref List<ExchangeMailboxPlan>mailboxPlans)
|
||||||
{
|
{
|
||||||
if ((user != null))
|
if ((user != null))
|
||||||
{
|
{
|
||||||
|
@ -2571,9 +2574,14 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
orgs = GetExchangeOrganizationsInternal(1, false);
|
orgs = GetExchangeOrganizationsInternal(1, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((orgs != null) &(orgs.Count > 0))
|
int OrgId = -1;
|
||||||
|
if (itemId > 0) OrgId = itemId;
|
||||||
|
else if ((orgs != null) & (orgs.Count > 0)) OrgId = orgs[0].Id;
|
||||||
|
|
||||||
|
|
||||||
|
if (OrgId != -1)
|
||||||
{
|
{
|
||||||
List<ExchangeMailboxPlan> Plans = ObjectUtils.CreateListFromDataReader<ExchangeMailboxPlan>(DataProvider.GetExchangeMailboxPlans(orgs[0].Id));
|
List<ExchangeMailboxPlan> Plans = ObjectUtils.CreateListFromDataReader<ExchangeMailboxPlan>(DataProvider.GetExchangeMailboxPlans(OrgId));
|
||||||
|
|
||||||
foreach (ExchangeMailboxPlan p in Plans)
|
foreach (ExchangeMailboxPlan p in Plans)
|
||||||
{
|
{
|
||||||
|
@ -2583,7 +2591,7 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
|
|
||||||
UserInfo owner = UserController.GetUserInternally(user.OwnerId);
|
UserInfo owner = UserController.GetUserInternally(user.OwnerId);
|
||||||
|
|
||||||
GetExchangeMailboxPlansByUser(owner, ref mailboxPlans);
|
GetExchangeMailboxPlansByUser(0, owner, ref mailboxPlans);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -543,14 +543,12 @@ namespace WebsitePanel.EnterpriseServer.Code.HostedSolution
|
||||||
|
|
||||||
UserInfo user = ObjectUtils.FillObjectFromDataReader<UserInfo>(DataProvider.GetUserByExchangeOrganizationIdInternally(itemId));
|
UserInfo user = ObjectUtils.FillObjectFromDataReader<UserInfo>(DataProvider.GetUserByExchangeOrganizationIdInternally(itemId));
|
||||||
|
|
||||||
LyncController.GetLyncUserPlansByUser(user, ref plans);
|
if (user.Role == UserRole.User)
|
||||||
|
LyncController.GetLyncUserPlansByUser(itemId, user, ref plans);
|
||||||
|
else
|
||||||
|
LyncController.GetLyncUserPlansByUser(0, user, ref plans);
|
||||||
|
|
||||||
return plans;
|
return plans;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return ObjectUtils.CreateListFromDataReader<LyncUserPlan>(
|
|
||||||
DataProvider.GetLyncUserPlans(itemId));
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
@ -562,7 +560,7 @@ namespace WebsitePanel.EnterpriseServer.Code.HostedSolution
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void GetLyncUserPlansByUser(UserInfo user, ref List<LyncUserPlan> plans)
|
private static void GetLyncUserPlansByUser(int itemId, UserInfo user, ref List<LyncUserPlan> plans)
|
||||||
{
|
{
|
||||||
if ((user != null))
|
if ((user != null))
|
||||||
{
|
{
|
||||||
|
@ -582,9 +580,13 @@ namespace WebsitePanel.EnterpriseServer.Code.HostedSolution
|
||||||
orgs = ExchangeServerController.GetExchangeOrganizations(1, false);
|
orgs = ExchangeServerController.GetExchangeOrganizations(1, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((orgs != null) & (orgs.Count > 0))
|
int OrgId = -1;
|
||||||
|
if (itemId > 0) OrgId = itemId;
|
||||||
|
else if ((orgs != null) & (orgs.Count > 0)) OrgId = orgs[0].Id;
|
||||||
|
|
||||||
|
if (OrgId != -1)
|
||||||
{
|
{
|
||||||
List<LyncUserPlan> Plans = ObjectUtils.CreateListFromDataReader<LyncUserPlan>(DataProvider.GetLyncUserPlans(orgs[0].Id));
|
List<LyncUserPlan> Plans = ObjectUtils.CreateListFromDataReader<LyncUserPlan>(DataProvider.GetLyncUserPlans(OrgId));
|
||||||
|
|
||||||
foreach (LyncUserPlan p in Plans)
|
foreach (LyncUserPlan p in Plans)
|
||||||
{
|
{
|
||||||
|
@ -594,7 +596,7 @@ namespace WebsitePanel.EnterpriseServer.Code.HostedSolution
|
||||||
|
|
||||||
UserInfo owner = UserController.GetUserInternally(user.OwnerId);
|
UserInfo owner = UserController.GetUserInternally(user.OwnerId);
|
||||||
|
|
||||||
GetLyncUserPlansByUser(owner, ref plans);
|
GetLyncUserPlansByUser(0, owner, ref plans);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,56 +1,56 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<configSections>
|
<configSections>
|
||||||
<section name="microsoft.web.services3" type="Microsoft.Web.Services3.Configuration.WebServicesConfiguration, Microsoft.Web.Services3"/>
|
<section name="microsoft.web.services3" type="Microsoft.Web.Services3.Configuration.WebServicesConfiguration, Microsoft.Web.Services3" />
|
||||||
</configSections>
|
</configSections>
|
||||||
<!-- Connection strings -->
|
<!-- Connection strings -->
|
||||||
<connectionStrings>
|
<connectionStrings>
|
||||||
<add name="EnterpriseServer" connectionString="Server=(local)\SQLExpress;Database=WebsitePanel;uid=WebsitePanel;pwd=Password12" providerName="System.Data.SqlClient"/>
|
<add name="EnterpriseServer" connectionString="server=HSTPROV01;database=WebsitePanelMerge;uid=WebsitePanel;pwd=aj7ep6fyhmw3b5qeth7c;" providerName="System.Data.SqlClient" />
|
||||||
</connectionStrings>
|
</connectionStrings>
|
||||||
<appSettings>
|
<appSettings>
|
||||||
<!-- Encryption util settings -->
|
<!-- Encryption util settings -->
|
||||||
<add key="WebsitePanel.CryptoKey" value="1234567890" />
|
<add key="WebsitePanel.CryptoKey" value="3x7eqt7zabc5n5afs6dg" />
|
||||||
<!-- A1D4KDHUE83NKHddF -->
|
<!-- A1D4KDHUE83NKHddF -->
|
||||||
<add key="WebsitePanel.EncryptionEnabled" value="true"/>
|
<add key="WebsitePanel.EncryptionEnabled" value="true" />
|
||||||
<!-- Web Applications -->
|
<!-- Web Applications -->
|
||||||
<add key="WebsitePanel.EnterpriseServer.WebApplicationsPath" value="~/WebApplications"/>
|
<add key="WebsitePanel.EnterpriseServer.WebApplicationsPath" value="~/WebApplications" />
|
||||||
<!-- Communication settings -->
|
<!-- Communication settings -->
|
||||||
<!-- Maximum waiting time when sending request to the remote server
|
<!-- Maximum waiting time when sending request to the remote server
|
||||||
The value is in seconds. "-1" - infinite. -->
|
The value is in seconds. "-1" - infinite. -->
|
||||||
<add key="WebsitePanel.EnterpriseServer.ServerRequestTimeout" value="3600"/>
|
<add key="WebsitePanel.EnterpriseServer.ServerRequestTimeout" value="3600" />
|
||||||
</appSettings>
|
</appSettings>
|
||||||
<system.web>
|
<system.web>
|
||||||
<!-- Disable any authentication -->
|
<!-- Disable any authentication -->
|
||||||
<authentication mode="None"/>
|
<authentication mode="None" />
|
||||||
<!-- Correct HTTP runtime settings -->
|
<!-- Correct HTTP runtime settings -->
|
||||||
<httpRuntime executionTimeout="3600" maxRequestLength="16384"/>
|
<httpRuntime executionTimeout="3600" maxRequestLength="16384" />
|
||||||
<!-- Set globalization settings -->
|
<!-- Set globalization settings -->
|
||||||
<globalization culture="en-US" uiCulture="en" requestEncoding="UTF-8" responseEncoding="UTF-8" fileEncoding="UTF-8"/>
|
<globalization culture="en-US" uiCulture="en" requestEncoding="UTF-8" responseEncoding="UTF-8" fileEncoding="UTF-8" />
|
||||||
<!-- Web Services settings -->
|
<!-- Web Services settings -->
|
||||||
<webServices>
|
<webServices>
|
||||||
<protocols>
|
<protocols>
|
||||||
<remove name="HttpPost"/>
|
<remove name="HttpPost" />
|
||||||
<remove name="HttpPostLocalhost"/>
|
<remove name="HttpPostLocalhost" />
|
||||||
<remove name="HttpGet"/>
|
<remove name="HttpGet" />
|
||||||
</protocols>
|
</protocols>
|
||||||
<soapServerProtocolFactory type="Microsoft.Web.Services3.WseProtocolFactory, Microsoft.Web.Services3"/>
|
<soapServerProtocolFactory type="Microsoft.Web.Services3.WseProtocolFactory, Microsoft.Web.Services3" />
|
||||||
</webServices>
|
</webServices>
|
||||||
<compilation targetFramework="4.0"/>
|
<compilation targetFramework="4.0" />
|
||||||
</system.web>
|
</system.web>
|
||||||
<!-- WSE 3.0 settings -->
|
<!-- WSE 3.0 settings -->
|
||||||
<microsoft.web.services3>
|
<microsoft.web.services3>
|
||||||
<diagnostics>
|
<diagnostics>
|
||||||
<trace enabled="false" input="InputTrace.webinfo" output="OutputTrace.webinfo"/>
|
<trace enabled="false" input="InputTrace.webinfo" output="OutputTrace.webinfo" />
|
||||||
</diagnostics>
|
</diagnostics>
|
||||||
<messaging>
|
<messaging>
|
||||||
<maxMessageLength value="-1"/>
|
<maxMessageLength value="-1" />
|
||||||
<mtom clientMode="On"/>
|
<mtom clientMode="On" />
|
||||||
</messaging>
|
</messaging>
|
||||||
<security>
|
<security>
|
||||||
<securityTokenManager>
|
<securityTokenManager>
|
||||||
<add type="WebsitePanel.EnterpriseServer.ServiceUsernameTokenManager, WebsitePanel.EnterpriseServer" namespace="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" localName="UsernameToken"/>
|
<add type="WebsitePanel.EnterpriseServer.ServiceUsernameTokenManager, WebsitePanel.EnterpriseServer" namespace="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" localName="UsernameToken" />
|
||||||
</securityTokenManager>
|
</securityTokenManager>
|
||||||
</security>
|
</security>
|
||||||
<policy fileName="WsePolicyCache.Config"/>
|
<policy fileName="WsePolicyCache.Config" />
|
||||||
</microsoft.web.services3>
|
</microsoft.web.services3>
|
||||||
</configuration>
|
</configuration>
|
|
@ -19,7 +19,6 @@
|
||||||
</UpgradeBackupLocation>
|
</UpgradeBackupLocation>
|
||||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||||
<TargetFrameworkProfile />
|
<TargetFrameworkProfile />
|
||||||
<UseIISExpress>true</UseIISExpress>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
@ -433,9 +432,9 @@
|
||||||
<WebProjectProperties>
|
<WebProjectProperties>
|
||||||
<UseIIS>True</UseIIS>
|
<UseIIS>True</UseIIS>
|
||||||
<AutoAssignPort>False</AutoAssignPort>
|
<AutoAssignPort>False</AutoAssignPort>
|
||||||
<DevelopmentServerPort>9005</DevelopmentServerPort>
|
<DevelopmentServerPort>9002</DevelopmentServerPort>
|
||||||
<DevelopmentServerVPath>/</DevelopmentServerVPath>
|
<DevelopmentServerVPath>/</DevelopmentServerVPath>
|
||||||
<IISUrl>http://localhost:9005/</IISUrl>
|
<IISUrl>http://localhost:9002/</IISUrl>
|
||||||
<NTLMAuthentication>False</NTLMAuthentication>
|
<NTLMAuthentication>False</NTLMAuthentication>
|
||||||
<UseCustomServer>False</UseCustomServer>
|
<UseCustomServer>False</UseCustomServer>
|
||||||
<CustomServerUrl>
|
<CustomServerUrl>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue