本文整理汇总了C#中Eme.Model.Eme.EmeEntities.GetEWordBookStudent方法的典型用法代码示例。如果您正苦于以下问题:C# EmeEntities.GetEWordBookStudent方法的具体用法?C# EmeEntities.GetEWordBookStudent怎么用?C# EmeEntities.GetEWordBookStudent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Eme.Model.Eme.EmeEntities
的用法示例。
在下文中一共展示了EmeEntities.GetEWordBookStudent方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetEwordBookStudent
/// <summary>
/// 作者:Primo
/// 时间:2015.05.25
/// 描述:获取符合条件的一课一练的学员
/// </summary>
/// <param name="branchId"></param>
/// <param name="userId"></param>
/// <param name="isMyStudent"></param>
/// <param name="isAllStudent"></param>
/// <param name="productId"></param>
/// <param name="currentLevel"></param>
/// <param name="searchKey"></param>
/// <param name="searchKeyword"></param>
/// <returns></returns>
public static List<GetEWordBookStudent_Result> GetEwordBookStudent(int? branchId, int? userId, bool? isMyStudent, bool? isAllStudent, int? productId, int? currentLevel, int? searchKey, string searchKeyword)
{
var Db = new EmeEntities(dbRead);
var cc = "";
var sa = "";
var userName = "";
var account = "";
if (searchKey.HasValue)
{
//登录帐号
if (ConvertEnum.SearchStudentKeyForAccount == searchKey.Value)
{
account = searchKeyword;
}
//用户名称
if (ConvertEnum.SearchStudentKeyForUserName == searchKey.Value)
{
userName = searchKeyword;
}
//CC
if (ConvertEnum.SearchStudentKeyForCC == searchKey.Value)
{
cc = searchKeyword;
}
//SA
if (ConvertEnum.SearchStudentKeyForSA == searchKey.Value)
{
sa = searchKeyword;
}
}
if (isMyStudent.HasValue)
{
if (!isMyStudent.Value)
{
userId = 0;
}
}
if (isAllStudent.HasValue)
{
if (isAllStudent.Value)
{
userId = 0;
}
}
var modelList = Db.GetEWordBookStudent(branchId, productId, currentLevel, cc, sa, userName, account, userId).ToList();
return modelList;
}