本文整理汇总了C#中CY.SearchGroupPictureCount方法的典型用法代码示例。如果您正苦于以下问题:C# CY.SearchGroupPictureCount方法的具体用法?C# CY.SearchGroupPictureCount怎么用?C# CY.SearchGroupPictureCount使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CY
的用法示例。
在下文中一共展示了CY.SearchGroupPictureCount方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: BindData
protected void BindData(CY.UME.Core.Business.Group group)
{
if (group == null)
{
return;
}
#region 获取搜索条件
CY.UME.Core.PagingInfo pageInfo = new CY.UME.Core.PagingInfo();
pageInfo.CurrentPage = 1;
pageInfo.PageSize = 8;
int groupId = group.Id;
string isDisply = "0";
string strAuthorName = String.Empty;
string strPicName = String.Empty;
DateTime d_minDate = CY.UME.Core.Global.MinDateTime;
DateTime d_maxDate = DateTime.MaxValue;
isDisply = IsDisply.Value.Trim();
strAuthorName = authorName.Value.Trim();
strPicName = picName.Value.Trim();
if (minPubDate.Value.Trim().Length > 0)
{
DateTime.TryParse(minPubDate.Value.Trim(), out d_minDate);
}
if (maxPubDate.Value.Trim().Length > 0)
{
DateTime.TryParse(maxPubDate.Value.Trim(), out d_maxDate);
}
#endregion
if (isDisply == "0")
{
selOperation.Items.Clear();
selOperation.Items.Add(new ListItem("删除", "0"));
selOperation.Items.Add(new ListItem("设为首页显示", "1"));
}
else
{
selOperation.Items.Clear();
selOperation.Items.Add(new ListItem("删除", "0"));
selOperation.Items.Add(new ListItem("取消首页显示", "2"));
}
picList = group.SearchGroupPicture(strAuthorName, isDisply, strPicName, d_minDate, d_maxDate, pageInfo);
int count = group.SearchGroupPictureCount(strAuthorName, isDisply, strPicName, d_minDate, d_maxDate);
if (count > pageInfo.PageSize)
{
IsDisPaged = true;
}
mgp_HiddenPageSize.Value = "8";
mgp_HiddenRecordCount.Value = count.ToString();
mgp_HiddenSiteUrl.Value = SiteUrl;
mgp_HiddenGroupId.Value = groupId.ToString();
}