Merge
This commit is contained in:
commit
1c9b4817ae
10 changed files with 105 additions and 36 deletions
|
@ -145,16 +145,16 @@ namespace WebsitePanel.EnterpriseServer
|
|||
{
|
||||
return SqlHelper.ExecuteDataset(ConnectionString, CommandType.StoredProcedure,
|
||||
ObjectQualifier + "GetSearchObject",
|
||||
new SqlParameter("@actorId", actorId),
|
||||
new SqlParameter("@ActorId", actorId),
|
||||
new SqlParameter("@UserID", userId),
|
||||
new SqlParameter("@FilterColumn", VerifyColumnName(filterColumn)),
|
||||
new SqlParameter("@FilterValue", VerifyColumnValue(filterValue)),
|
||||
new SqlParameter("@statusId", statusId),
|
||||
new SqlParameter("@roleId", roleId),
|
||||
new SqlParameter("@StatusId", statusId),
|
||||
new SqlParameter("@RoleId", roleId),
|
||||
new SqlParameter("@SortColumn", VerifyColumnName(sortColumn)),
|
||||
new SqlParameter("@startRow", startRow),
|
||||
new SqlParameter("@maximumRows", maximumRows),
|
||||
new SqlParameter("@recursive", recursive),
|
||||
new SqlParameter("@StartRow", startRow),
|
||||
new SqlParameter("@MaximumRows", maximumRows),
|
||||
new SqlParameter("@Recursive", recursive),
|
||||
new SqlParameter("@ColType", colType),
|
||||
new SqlParameter("@FullType", fullType));
|
||||
}
|
||||
|
|
|
@ -43,6 +43,7 @@ namespace WebsitePanel.WebPortal
|
|||
obj["ItemID"] = row["ItemID"].ToString();
|
||||
obj["PackageID"] = row["PackageID"].ToString();
|
||||
obj["FullType"] = "Space";
|
||||
obj["AccountID"] = row["AccountID"].ToString();
|
||||
dataList.Add(obj);
|
||||
}
|
||||
|
||||
|
@ -67,6 +68,7 @@ namespace WebsitePanel.WebPortal
|
|||
obj["ItemID"] = row["ItemID"].ToString();
|
||||
obj["PackageID"] = row["PackageID"].ToString();
|
||||
obj["FullType"] = row["FullType"].ToString();
|
||||
obj["AccountID"] = row["AccountID"].ToString();
|
||||
dataList.Add(obj);
|
||||
}
|
||||
|
||||
|
|
|
@ -75,7 +75,7 @@
|
|||
</asp:TemplateField>
|
||||
<asp:TemplateField SortExpression="TextSearch" HeaderText="gvText" HeaderStyle-Wrap="false">
|
||||
<ItemTemplate>
|
||||
<asp:hyperlink id=lnkUser runat="server" NavigateUrl='<%# GetItemPageUrl((string)Eval("FullType"), (string)Eval("ColumnType"), (int)Eval("ItemID"), (int)Eval("PackageID")) %>'>
|
||||
<asp:hyperlink id=lnkUser runat="server" NavigateUrl='<%# GetItemPageUrl((string)Eval("FullType"), (string)Eval("ColumnType"), (int)Eval("ItemID"), (int)Eval("PackageID"), (int)Eval("AccountID")) %>'>
|
||||
<%# Eval("TextSearch") %>
|
||||
</asp:hyperlink>
|
||||
</ItemTemplate>
|
||||
|
|
|
@ -14,6 +14,7 @@ namespace WebsitePanel.Portal
|
|||
const string TYPE_WEBSITE = "WebSite";
|
||||
const string TYPE_DOMAIN = "Domain";
|
||||
const string TYPE_ORGANIZATION = "Organization";
|
||||
const string TYPE_EXCHANGEACCOUNT = "ExchangeAccount";
|
||||
const string PID_SPACE_WEBSITES = "SpaceWebSites";
|
||||
const string PID_SPACE_DIMAINS = "SpaceDomains";
|
||||
const string PID_SPACE_EXCHANGESERVER = "SpaceExchangeServer";
|
||||
|
@ -47,7 +48,7 @@ namespace WebsitePanel.Portal
|
|||
}
|
||||
}
|
||||
|
||||
public string GetItemPageUrl(string fullType, string itemType, int itemId, int spaceId)
|
||||
public string GetItemPageUrl(string fullType, string itemType, int itemId, int spaceId, int accountId)
|
||||
{
|
||||
string res = "";
|
||||
if (fullType.Equals("Users"))
|
||||
|
@ -73,6 +74,12 @@ namespace WebsitePanel.Portal
|
|||
PortalUtils.SPACE_ID_PARAM + "=" + spaceId, DefaultPage.CONTROL_ID_PARAM + "=" + "organization_home",
|
||||
"moduleDefId=ExchangeServer");
|
||||
break;
|
||||
case TYPE_EXCHANGEACCOUNT:
|
||||
res = PortalUtils.NavigatePageURL(PID_SPACE_EXCHANGESERVER, "ItemID", itemId.ToString(),
|
||||
PortalUtils.SPACE_ID_PARAM + "=" + spaceId, "ctl=edit_user",//"mid="+this.ModuleID.ToString(),
|
||||
"AccountID=" + accountId, "Context=User",
|
||||
"moduleDefId=ExchangeServer");
|
||||
break;
|
||||
default:
|
||||
res = PortalUtils.GetSpaceHomePageUrl(itemId);
|
||||
break;
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
$("#<%= tbSearchText.ClientID %>").val('');
|
||||
$("#<%= tbObjectId.ClientID %>").val('');
|
||||
$("#<%= tbPackageId.ClientID %>").val('');
|
||||
$("#<%= tbAccountId.ClientID %>").val('');
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -43,6 +44,7 @@
|
|||
$("#<%= tbSearchText.ClientID %>").val(item.code.TextSearch);
|
||||
$("#<%= tbObjectId.ClientID %>").val(item.code.ItemID);
|
||||
$("#<%= tbPackageId.ClientID %>").val(item.code.PackageID);
|
||||
$("#<%= tbAccountId.ClientID %>").val(item.code.AccountID);
|
||||
$("#<%= ImageButton1.ClientID %>").trigger("click");
|
||||
}
|
||||
});
|
||||
|
@ -93,6 +95,12 @@
|
|||
type="hidden"
|
||||
>
|
||||
</asp:TextBox>
|
||||
<asp:TextBox
|
||||
ID="tbAccountId"
|
||||
runat="server"
|
||||
type="hidden"
|
||||
>
|
||||
</asp:TextBox>
|
||||
|
||||
<asp:ImageButton
|
||||
ID="ImageButton1"
|
||||
|
|
|
@ -47,6 +47,7 @@ namespace WebsitePanel.Portal.SkinControls
|
|||
const string TYPE_WEBSITE = "WebSite";
|
||||
const string TYPE_DOMAIN = "Domain";
|
||||
const string TYPE_ORGANIZATION = "Organization";
|
||||
const string TYPE_EXCHANGEACCOUNT = "ExchangeAccount";
|
||||
const string PID_SPACE_WEBSITES = "SpaceWebSites";
|
||||
const string PID_SPACE_DIMAINS = "SpaceDomains";
|
||||
const string PID_SPACE_EXCHANGESERVER = "SpaceExchangeServer";
|
||||
|
@ -148,6 +149,12 @@ namespace WebsitePanel.Portal.SkinControls
|
|||
PortalUtils.SPACE_ID_PARAM + "=" + spaceId, "ctl=edit_item",
|
||||
"moduleDefId=ExchangeServer");
|
||||
break;
|
||||
case TYPE_EXCHANGEACCOUNT:
|
||||
res = PortalUtils.NavigatePageURL(PID_SPACE_EXCHANGESERVER, "ItemID", itemId.ToString(),
|
||||
PortalUtils.SPACE_ID_PARAM + "=" + spaceId, "ctl=edit_user",//"mid="+this.ModuleID.ToString(),
|
||||
"AccountID="+this.tbAccountId.Text,"Context=User",
|
||||
"moduleDefId=ExchangeServer");
|
||||
break;
|
||||
default:
|
||||
res = PortalUtils.GetSpaceHomePageUrl(itemId);
|
||||
break;
|
||||
|
|
|
@ -75,6 +75,15 @@ namespace WebsitePanel.Portal.SkinControls {
|
|||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox tbPackageId;
|
||||
|
||||
/// <summary>
|
||||
/// tbAccountId 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 tbAccountId;
|
||||
|
||||
/// <summary>
|
||||
/// ImageButton1 control.
|
||||
/// </summary>
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
$("#tbSearchText").val('');
|
||||
$("#tbObjectId").val('');
|
||||
$("#tbPackageId").val('');
|
||||
$("#tbAccountId").val('');
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -40,6 +41,7 @@
|
|||
$("#tbSearchText").val(item.code.TextSearch);
|
||||
$("#tbObjectId").val(item.code.ItemID);
|
||||
$("#tbPackageId").val(item.code.PackageID);
|
||||
$("#tbAccountId").val(item.code.AccountID);
|
||||
$("#<%= cmdSearch.ClientID %>").trigger("click");
|
||||
}
|
||||
});
|
||||
|
@ -97,6 +99,13 @@
|
|||
type="hidden"
|
||||
>
|
||||
</asp:TextBox>
|
||||
<asp:TextBox
|
||||
ID="tbAccountId"
|
||||
ClientIDMode="Static"
|
||||
runat="server"
|
||||
type="hidden"
|
||||
>
|
||||
</asp:TextBox>
|
||||
<asp:ImageButton
|
||||
ID="cmdSearch"
|
||||
runat="server"
|
||||
|
|
|
@ -84,6 +84,15 @@ namespace WebsitePanel.Portal {
|
|||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox tbPackageId;
|
||||
|
||||
/// <summary>
|
||||
/// tbAccountId 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 tbAccountId;
|
||||
|
||||
/// <summary>
|
||||
/// cmdSearch control.
|
||||
/// </summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue