本文整理汇总了C#中Nevoweb.DNN.NBrightBuy.Components.NBrightBuyController.GetDnnUsers方法的典型用法代码示例。如果您正苦于以下问题:C# NBrightBuyController.GetDnnUsers方法的具体用法?C# NBrightBuyController.GetDnnUsers怎么用?C# NBrightBuyController.GetDnnUsers使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Nevoweb.DNN.NBrightBuy.Components.NBrightBuyController
的用法示例。
在下文中一共展示了NBrightBuyController.GetDnnUsers方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetClientSelectList
private String GetClientSelectList(HttpContext context)
{
try
{
//get uploaded params
var settings = GetAjaxFields(context);
if (!settings.ContainsKey("itemid")) settings.Add("itemid", "");
var productitemid = settings["itemid"];
if (!settings.ContainsKey("header")) settings.Add("header", "");
if (!settings.ContainsKey("body")) settings.Add("body", "");
if (!settings.ContainsKey("footer")) settings.Add("footer", "");
if (!settings.ContainsKey("searchtext")) settings.Add("searchtext", "");
// get template
var themeFolder = StoreSettings.Current.ThemeFolder;
if (settings.ContainsKey("themefolder")) themeFolder = settings["themefolder"];
var templCtrl = NBrightBuyUtils.GetTemplateGetter(themeFolder);
var headTempl = templCtrl.GetTemplateData(settings["header"], _lang, true, true, true, StoreSettings.Current.Settings());
var bodyTempl = templCtrl.GetTemplateData(settings["body"], _lang, true, true, true, StoreSettings.Current.Settings());
var footTempl = templCtrl.GetTemplateData(settings["footer"], _lang, true, true, true, StoreSettings.Current.Settings());
//get data
var prodData = ProductUtils.GetProductData(productitemid, _lang);
var objCtrl = new NBrightBuyController();
var userlist = objCtrl.GetDnnUsers(prodData.Info.PortalId, "%" + settings["searchtext"] + "%", 0,1,20,20);
var l = new List<NBrightInfo>();
l.Add(prodData.Info);
var strHead = GenXmlFunctions.RenderRepeater(l, headTempl);
var strOut = GenXmlFunctions.RenderRepeater(userlist, bodyTempl);
var strFoot = GenXmlFunctions.RenderRepeater(l, footTempl);
return strHead + strOut + strFoot;
}
catch (Exception ex)
{
return ex.ToString();
}
}