Fixed:
Decoupling of userprincipalName and PrimaryEmailAddress OrganizationUsers updated with image buttons with the ability to go directly to offering settings When changing primaryemailaddress, sip address changes accordingly Mailboxes list view updated with Login (=userprincipalName) with the ability to go directly to user setting Lync list view updated with Login (=userprincipalName) with the ability to go directly to user setting
This commit is contained in:
parent
bc1168a1a4
commit
6cf946b6b4
30 changed files with 869 additions and 121 deletions
|
@ -3257,7 +3257,7 @@ namespace WebsitePanel.EnterpriseServer
|
|||
|
||||
#region Lync
|
||||
|
||||
public static void AddLyncUser(int accountId, int lyncUserPlanId)
|
||||
public static void AddLyncUser(int accountId, int lyncUserPlanId, string sipAddress)
|
||||
{
|
||||
SqlHelper.ExecuteNonQuery(ConnectionString,
|
||||
CommandType.StoredProcedure,
|
||||
|
@ -3265,10 +3265,24 @@ namespace WebsitePanel.EnterpriseServer
|
|||
new[]
|
||||
{
|
||||
new SqlParameter("@AccountID", accountId),
|
||||
new SqlParameter("@LyncUserPlanID", lyncUserPlanId)
|
||||
new SqlParameter("@LyncUserPlanID", lyncUserPlanId),
|
||||
new SqlParameter("@SipAddress", sipAddress)
|
||||
});
|
||||
}
|
||||
|
||||
public static void UpdateLyncUser(int accountId, string sipAddress)
|
||||
{
|
||||
SqlHelper.ExecuteNonQuery(ConnectionString,
|
||||
CommandType.StoredProcedure,
|
||||
"UpdateLyncUser",
|
||||
new[]
|
||||
{
|
||||
new SqlParameter("@AccountID", accountId),
|
||||
new SqlParameter("@SipAddress", sipAddress)
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
public static bool CheckLyncUserExists(int accountId)
|
||||
{
|
||||
int res = (int)SqlHelper.ExecuteScalar(ConnectionString, CommandType.StoredProcedure, "CheckLyncUserExists",
|
||||
|
@ -3276,6 +3290,25 @@ namespace WebsitePanel.EnterpriseServer
|
|||
return res > 0;
|
||||
}
|
||||
|
||||
public static bool LyncUserExists(int accountId, string sipAddress)
|
||||
{
|
||||
SqlParameter outParam = new SqlParameter("@Exists", SqlDbType.Bit);
|
||||
outParam.Direction = ParameterDirection.Output;
|
||||
|
||||
SqlHelper.ExecuteNonQuery(
|
||||
ConnectionString,
|
||||
CommandType.StoredProcedure,
|
||||
"LyncUserExists",
|
||||
new SqlParameter("@AccountID", accountId),
|
||||
new SqlParameter("@SipAddress", sipAddress),
|
||||
outParam
|
||||
);
|
||||
|
||||
return Convert.ToBoolean(outParam.Value);
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static IDataReader GetLyncUsers(int itemId, string sortColumn, string sortDirection, int startRow, int count)
|
||||
{
|
||||
SqlParameter[] sqlParams = new SqlParameter[]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue