webdav portal sp fixes
This commit is contained in:
parent
c5c60314a4
commit
fe391560cb
3 changed files with 39 additions and 4 deletions
|
@ -8562,3 +8562,38 @@ RETURN
|
||||||
GO
|
GO
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
IF OBJECTPROPERTY(object_id('dbo.GetExchangeAccountByAccountNameWithoutItemId'), N'IsProcedure') = 1
|
||||||
|
DROP PROCEDURE [dbo].[GetExchangeAccountByAccountNameWithoutItemId]
|
||||||
|
GO
|
||||||
|
CREATE PROCEDURE [dbo].[GetExchangeAccountByAccountNameWithoutItemId]
|
||||||
|
(
|
||||||
|
@UserPrincipalName nvarchar(300)
|
||||||
|
)
|
||||||
|
AS
|
||||||
|
SELECT
|
||||||
|
E.AccountID,
|
||||||
|
E.ItemID,
|
||||||
|
E.AccountType,
|
||||||
|
E.AccountName,
|
||||||
|
E.DisplayName,
|
||||||
|
E.PrimaryEmailAddress,
|
||||||
|
E.MailEnabledPublicFolder,
|
||||||
|
E.MailboxManagerActions,
|
||||||
|
E.SamAccountName,
|
||||||
|
E.AccountPassword,
|
||||||
|
E.MailboxPlanId,
|
||||||
|
P.MailboxPlan,
|
||||||
|
E.SubscriberNumber,
|
||||||
|
E.UserPrincipalName,
|
||||||
|
E.ArchivingMailboxPlanId,
|
||||||
|
AP.MailboxPlan as 'ArchivingMailboxPlan',
|
||||||
|
E.EnableArchiving
|
||||||
|
FROM
|
||||||
|
ExchangeAccounts AS E
|
||||||
|
LEFT OUTER JOIN ExchangeMailboxPlans AS P ON E.MailboxPlanId = P.MailboxPlanId
|
||||||
|
LEFT OUTER JOIN ExchangeMailboxPlans AS AP ON E.ArchivingMailboxPlanId = AP.MailboxPlanId
|
||||||
|
WHERE
|
||||||
|
E.UserPrincipalName = @UserPrincipalName
|
||||||
|
RETURN
|
||||||
|
GO
|
|
@ -2684,13 +2684,13 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static IDataReader GetExchangeAccountByAccountNameWithoutItemId(string primaryEmailAddress)
|
public static IDataReader GetExchangeAccountByAccountNameWithoutItemId(string userPrincipalName)
|
||||||
{
|
{
|
||||||
return SqlHelper.ExecuteReader(
|
return SqlHelper.ExecuteReader(
|
||||||
ConnectionString,
|
ConnectionString,
|
||||||
CommandType.StoredProcedure,
|
CommandType.StoredProcedure,
|
||||||
"GetExchangeAccountByAccountNameWithoutItemId",
|
"GetExchangeAccountByAccountNameWithoutItemId",
|
||||||
new SqlParameter("@PrimaryEmailAddress", primaryEmailAddress)
|
new SqlParameter("@UserPrincipalName", userPrincipalName)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1217,10 +1217,10 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
return account;
|
return account;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ExchangeAccount GetAccountByAccountName(string primaryEmailAddress)
|
public static ExchangeAccount GetAccountByAccountName(string userPrincipalName)
|
||||||
{
|
{
|
||||||
ExchangeAccount account = ObjectUtils.FillObjectFromDataReader<ExchangeAccount>(
|
ExchangeAccount account = ObjectUtils.FillObjectFromDataReader<ExchangeAccount>(
|
||||||
DataProvider.GetExchangeAccountByAccountNameWithoutItemId(primaryEmailAddress));
|
DataProvider.GetExchangeAccountByAccountNameWithoutItemId(userPrincipalName));
|
||||||
|
|
||||||
if (account == null)
|
if (account == null)
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue