本文整理匯總了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);
}