public static Enterprise IsLogin(string email, string pwd) { Enterprise enterprise = BLLEnterprise.GetEnterprise(email, pwd); if (enterprise == null) { return(null); } EMSCookie.AddCookie("EnterpriseCookie", email); return(enterprise); }
public static List <SelectListItem> GetCasesList() { List <Enterprise> Elist = BLLEnterprise.GetEnterprise(); List <MEnterpriseCases> Mlist = BLLMEnterpriseCases.GetMEnterpriseCases(); List <SelectListItem> list = new List <SelectListItem>(); foreach (MEnterpriseCases item in Mlist) { Elist.RemoveAll(m => m.EnterpriseUrl == item.EnterprisUrl); } list.Add(new SelectListItem() { Text = "--请选择--", Value = "0" }); foreach (Enterprise item in Elist) { list.Add(new SelectListItem() { Text = item.EnterpriseName, Value = item.EnterpriseID.ToString() }); } return(list); }