/// <summary> /// GetListForClientIncludingDisabled /// Calls [usp_selectAll_Login_for_Client_including_Disabled] /// </summary> public static List <Login> GetListForClientIncludingDisabled(System.Int32?clientNo) { List <LoginDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.Login.GetListForClientIncludingDisabled(clientNo); if (lstDetails == null) { return(new List <Login>()); } else { List <Login> lst = new List <Login>(); foreach (LoginDetails objDetails in lstDetails) { Rebound.GlobalTrader.BLL.Login obj = new Rebound.GlobalTrader.BLL.Login(); obj.LoginId = objDetails.LoginId; obj.EmployeeName = objDetails.EmployeeName; obj.Inactive = objDetails.Inactive; obj.LoginName = objDetails.LoginName; obj.Administrator = objDetails.Administrator; obj.NumberOfSalesAccounts = objDetails.NumberOfSalesAccounts; obj.TeamName = objDetails.TeamName; obj.DivisionName = objDetails.DivisionName; lst.Add(obj); obj = null; } lstDetails = null; return(lst); } }
/// <summary> /// AutoSearchForMail /// Calls [usp_autosearch_Login_for_Mail] /// </summary> public static List <Login> AutoSearchForMail(System.Int32?clientId, System.Int32?loginId, System.String nameSearch) { List <LoginDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.Login.AutoSearchForMail(clientId, loginId, nameSearch); if (lstDetails == null) { return(new List <Login>()); } else { List <Login> lst = new List <Login>(); foreach (LoginDetails objDetails in lstDetails) { Rebound.GlobalTrader.BLL.Login obj = new Rebound.GlobalTrader.BLL.Login(); obj.LoginId = objDetails.LoginId; obj.EmployeeName = objDetails.EmployeeName; obj.MailMessageAddressType = objDetails.MailMessageAddressType; obj.MailMessageAddressSort = objDetails.MailMessageAddressSort; lst.Add(obj); obj = null; } lstDetails = null; return(lst); } }
/// <summary> /// Calls [usp_get_password_by_Email_client] /// </summary> /// <param name="clientNo"></param> /// <param name="email"></param> /// <returns></returns> public static List <Login> ForgotUserName(System.Int32?clientNo, System.String email) { List <LoginDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.Login.ForgotUserName(clientNo, email); if (lstDetails == null) { return(new List <Login>()); } else { List <Login> lst = new List <Login>(); foreach (LoginDetails objDetails in lstDetails) { Rebound.GlobalTrader.BLL.Login obj = new Rebound.GlobalTrader.BLL.Login(); obj.LoginName = objDetails.LoginName; obj.ClientName = objDetails.ClientName; obj.LastName = objDetails.LastName; obj.EMail = objDetails.EMail; lst.Add(obj); obj = null; } lstDetails = null; return(lst); } }
/// <summary> /// GetListTopSalespersons /// Calls [usp_selectAll_Login_Top_Salespersons] /// </summary> public static List <Login> GetListTopSalespersons(System.Int32?clientNo, System.Int32?topToSelect) { List <LoginDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.Login.GetListTopSalespersons(clientNo, topToSelect); if (lstDetails == null) { return(new List <Login>()); } else { List <Login> lst = new List <Login>(); foreach (LoginDetails objDetails in lstDetails) { Rebound.GlobalTrader.BLL.Login obj = new Rebound.GlobalTrader.BLL.Login(); obj.LoginId = objDetails.LoginId; obj.EmployeeName = objDetails.EmployeeName; obj.Cost = objDetails.Cost; obj.Resale = objDetails.Resale; obj.GrossProfit = objDetails.GrossProfit; obj.Margin = objDetails.Margin; obj.NoOfOrders = objDetails.NoOfOrders; obj.NoOfCredits = objDetails.NoOfCredits; lst.Add(obj); obj = null; } lstDetails = null; return(lst); } }
/// <summary> /// GetListForTeam /// Calls [usp_selectAll_Login_for_Team] /// </summary> public static List <Login> GetListForTeam(System.Int32?teamId) { List <LoginDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.Login.GetListForTeam(teamId); if (lstDetails == null) { return(new List <Login>()); } else { List <Login> lst = new List <Login>(); foreach (LoginDetails objDetails in lstDetails) { Rebound.GlobalTrader.BLL.Login obj = new Rebound.GlobalTrader.BLL.Login(); obj.LoginId = objDetails.LoginId; obj.ClientNo = objDetails.ClientNo; obj.LoginName = objDetails.LoginName; obj.EmployeeName = objDetails.EmployeeName; obj.EmployeePassword = objDetails.EmployeePassword; obj.FirstName = objDetails.FirstName; obj.LastName = objDetails.LastName; obj.AddressNo = objDetails.AddressNo; obj.Title = objDetails.Title; obj.Extension = objDetails.Extension; obj.Telephone = objDetails.Telephone; obj.Fax = objDetails.Fax; obj.EMail = objDetails.EMail; obj.Notes = objDetails.Notes; obj.HomeTelephone = objDetails.HomeTelephone; obj.HomeFax = objDetails.HomeFax; obj.HomeEmail = objDetails.HomeEmail; obj.Mobile = objDetails.Mobile; obj.DivisionNo = objDetails.DivisionNo; obj.TeamNo = objDetails.TeamNo; obj.Salutation = objDetails.Salutation; obj.Inactive = objDetails.Inactive; obj.UpdatedBy = objDetails.UpdatedBy; obj.DLUP = objDetails.DLUP; obj.KeyLogin = objDetails.KeyLogin; obj.DivisionName = objDetails.DivisionName; obj.TeamName = objDetails.TeamName; obj.ClientName = objDetails.ClientName; obj.ClientCurrencyNo = objDetails.ClientCurrencyNo; obj.ClientCurrencyCode = objDetails.ClientCurrencyCode; lst.Add(obj); obj = null; } lstDetails = null; return(lst); } }
/// <summary> /// DropDownForClient /// Calls [usp_dropdown_Login_for_ClientNPR] /// </summary> public static List <Login> DropDownForClientNPR(System.Int32?goodsInLineNo, System.Int32?teamNo, System.Int32?divisionNo, System.Int32?excludeLoginNo) { List <LoginDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.Login.DropDownForClientNPR(goodsInLineNo, teamNo, divisionNo, excludeLoginNo); if (lstDetails == null) { return(new List <Login>()); } else { List <Login> lst = new List <Login>(); foreach (LoginDetails objDetails in lstDetails) { Rebound.GlobalTrader.BLL.Login obj = new Rebound.GlobalTrader.BLL.Login(); obj.LoginId = objDetails.LoginId; obj.EmployeeName = objDetails.EmployeeName; lst.Add(obj); obj = null; } lstDetails = null; return(lst); } }