Blackberry 5 - Add Mapi Profile to Provider Settings

This commit is contained in:
Virtuworks 2014-06-08 14:24:38 -04:00
parent 35fba3da19
commit 13c56d7de7
4 changed files with 41 additions and 5 deletions

View file

@ -66,6 +66,8 @@ namespace WebsitePanel.Providers.Common
public const string UtilityPath = "UtilityPath";
public const string MAPIProfile = "MAPIProfile";
public const string EnterpriseServer = "EnterpriseServer";
public const string EnterpriseServerFQDN = "EnterpriseServerFQDN";

View file

@ -8,14 +8,12 @@
</td>
</tr>
<tr>
<td class="SubHead" width="200" nowrap><asp:Label runat="server" ID="Label1" meta:resourcekey="lblUser" /></td>
<td class="SubHead" width="200" nowrap><asp:Label runat="server" ID="lblUser" meta:resourcekey="lblUser" /></td>
<td>
<asp:TextBox runat="server" ID="txtUser" MaxLength="256" Width="200px" />
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtUser" Display="Dynamic" ErrorMessage="*" />
</td>
</tr>
<tr>
<td class="SubHead" width="200" nowrap><asp:Label runat="server" ID="lblPassword" meta:resourcekey="lblPassword" /></td>
<td>
@ -39,5 +37,12 @@
</td>
</tr>
<tr>
<td class="SubHead" width="200" nowrap><asp:Label runat="server" ID="lblMAPIProfile" meta:resourcekey="lblMAPIProfile" /></td>
<td>
<asp:TextBox runat="server" ID="txtMAPIProfile" MaxLength="256" Width="200px" />
<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtMAPIProfile" Display="Dynamic" ErrorMessage="*" />
</td>
</tr>
</table>

View file

@ -45,6 +45,7 @@ namespace WebsitePanel.Portal.ProviderControls
txtPassword.Text = settings[Constants.Password];
txtEnterpriseServer.Text = settings[Constants.EnterpriseServer];
txtEnterpriseServerFQDN.Text = settings[Constants.EnterpriseServerFQDN];
//txtMAPIProfile.Text = settings[Constants.MAPIProfile];
ViewState["PWD"] = settings[Constants.Password];
txtUser.Text = settings[Constants.UserName];
}
@ -56,6 +57,7 @@ namespace WebsitePanel.Portal.ProviderControls
settings[Constants.EnterpriseServerFQDN] = txtEnterpriseServerFQDN.Text;
settings[Constants.Password] = (txtPassword.Text.Length > 0) ? txtPassword.Text : (string)ViewState["PWD"];
settings[Constants.UserName] = txtUser.Text;
//settings[Constants.MAPIProfile] = txtMAPIProfile;
}
}
}

View file

@ -40,13 +40,13 @@ namespace WebsitePanel.Portal.ProviderControls {
protected global::System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator1;
/// <summary>
/// Label1 control.
/// lblUser control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label Label1;
protected global::System.Web.UI.WebControls.Label lblUser;
/// <summary>
/// txtUser control.
@ -146,5 +146,32 @@ namespace WebsitePanel.Portal.ProviderControls {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator5;
/// <summary>
/// lblMAPIProfile control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblMAPIProfile;
/// <summary>
/// txtMAPIProfile control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox txtMAPIProfile;
/// <summary>
/// RequiredFieldValidator6 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator6;
}
}