using System.Collections.Generic; using SEIeSCM.Models.Dto; using SEIeSCM.Models.Dto.SysLogin; using SEIeSCM.Models.Dto.Home; using IBatisNet.DataMapper; namespace SEIeSCM.Service { public class UserService : IUserService { public SysDto GetUser(string strCompanyCd, string strUserId) { SysDto cdto = (SysDto)Mapper.Instance().QueryForObject("Sys.GetUserInfo", new SysDto { Sy_CompanyCd = strCompanyCd, Sy_UserId = strUserId }); return cdto; } public IList GetMenuList(string strCompanyCd, string strUserId, string strUserGb) { SysDto cdto = new SysDto { CD_CORP = strCompanyCd, CD_EMP = strUserId }; if (strUserGb == "A") { return Mapper.Instance().QueryForList("Sys.GetUserMenuList", cdto); } else { return Mapper.Instance().QueryForList("Sys.GetUserMenuList2", cdto); } } } }