public SecurityDataService(ISurveyInfoDao surveyInfoDao, ISurveyResponseDao surveyResponseDao, IFormInfoDao formInfoDao, IFormSettingFacade formSettingFacade, IUserDao userDao, IOrganizationDao organizationDao) { _surveyInfoDao = surveyInfoDao; _surveyResponseDao = surveyResponseDao; _formInfoDao = formInfoDao; _formSettingFacade = formSettingFacade; _userDao = userDao; _organizationDao = organizationDao; }
public DataEntryService( ISurveyInfoService surveyInfoService, ISecurityDataService securityDataService, IFormInfoDao formInfoDao, ISurveyInfoDao surveyInfoDao, SurveyResponseProvider surveyResponseProvider, ISurveyResponseDao surveyResponseDao) { _surveyInfoService = surveyInfoService; _securityDataService = securityDataService; _formInfoDao = formInfoDao; _surveyInfoDao = surveyInfoDao; _surveyResponseDao = surveyResponseDao; _surveyResponseProvider = surveyResponseProvider; }
private bool IsSurveyInfoValidByOrgKeyAndPublishKey(string SurveyId, string Orgkey, Guid publishKey) { IDaoFactory entityDaoFactory = new EF.EntityDaoFactory(); ISurveyInfoDao surveyInfoDao = entityDaoFactory.SurveyInfoDao; string EncryptedKey = Epi.Web.Common.Security.Cryptography.Encrypt(Orgkey.ToString()); List <SurveyInfoBO> result = surveyInfoDao.GetSurveyInfoByOrgKeyAndPublishKey(SurveyId.ToString(), EncryptedKey, publishKey); if (result != null && result.Count > 0) { return(true); } else { return(false); } }
public List <SurveyInfoBO> GetSurveyInfo(PreFilledAnswerRequest request) { List <string> SurveyIdList = new List <string>(); string SurveyId = request.AnswerInfo.SurveyId.ToString(); string OrganizationId = request.AnswerInfo.OrganizationKey.ToString(); Guid UserPublishKey = request.AnswerInfo.UserPublishKey; List <SurveyInfoBO> SurveyBOList = new List <SurveyInfoBO>(); SurveyIdList.Add(SurveyId); Epi.Web.Common.Message.SurveyInfoRequest pRequest = new Epi.Web.Common.Message.SurveyInfoRequest(); var criteria = pRequest.Criteria as Epi.Web.Common.Criteria.SurveyInfoCriteria; IDaoFactory entityDaoFactory = new EF.EntityDaoFactory(); ISurveyInfoDao surveyInfoDao = entityDaoFactory.SurveyInfoDao; SurveyInfo implementation = new SurveyInfo(surveyInfoDao); SurveyBOList = implementation.GetSurveyInfo(SurveyIdList, criteria.ClosingDate, OrganizationId, criteria.SurveyType, criteria.PageNumber, criteria.PageSize);//Default return(SurveyBOList); }
public SurveyDashboardInfo(Epi.Web.Interfaces.DataInterfaces.ISurveyResponseDao pSurveyResponseDao, ISurveyInfoDao pSurveyInfoDao) { this.SurveyResponseDao = pSurveyResponseDao; this.SurveyInfoDao = pSurveyInfoDao; }
public SurveyResponse(ISurveyResponseDao pSurveyResponseDao, ISurveyInfoDao pSurveyInfoDao = null) { this.SurveyResponseDao = pSurveyResponseDao; this.SurveyInfoDao = pSurveyInfoDao; }