本文整理汇总了C#中BLL.manager.GetList方法的典型用法代码示例。如果您正苦于以下问题:C# BLL.manager.GetList方法的具体用法?C# BLL.manager.GetList怎么用?C# BLL.manager.GetList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BLL.manager
的用法示例。
在下文中一共展示了BLL.manager.GetList方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RptBind
/// <summary>
/// 绑定列表
/// </summary>
private void RptBind()
{
BLL.wx_hotel_user dcBll = new BLL.wx_hotel_user();
List<Model.wx_hotel_user> hotelAdmins = dcBll.GetModelList("hotelId=" + hotelid);
BLL.manager managerBll = new BLL.manager();
DataSet dsData = new DataSet();
if (hotelAdmins.Any())
{
string strWhere = string.Empty;
for (int index = 0; index <= hotelAdmins.Count - 1; index++)
{
strWhere += "," + hotelAdmins[index].ManagerId;
}
strWhere = "(" + strWhere.Substring(1) + ")";
dsData = managerBll.GetList(0, "id in " + strWhere, string.Empty);
rptList.DataSource = dsData;
}
else
{
rptList.DataSource = new List<Model.manager>();
}
rptList.DataBind();
}
示例2: RptBind
private void RptBind(string _strWhere, string _orderby)
{
this.page = DTRequest.GetQueryInt("page", 1);
this.txtKeywords.Text = this.keywords;
BLL.manager bll = new BLL.manager();
this.rptList.DataSource = bll.GetList(this.pageSize, this.page, _strWhere, _orderby, out this.totalCount);
this.rptList.DataBind();
//绑定页码
txtPageNum.Text = this.pageSize.ToString();
string pageUrl = Utils.CombUrlTxt("manager_list.aspx", "keywords={0}&page={1}", this.keywords, "__id__");
PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8);
}