public List <Tuple <string, string, string, int, int, int> > GetSurveyByEvaluators(string GetSurveyByEvaluators) { //Get Charts By Module List <GenericChartsModel> oResult = new List <GenericChartsModel>(); GenericChartsModel oRelatedChart = null; #region Survey oRelatedChart = new GenericChartsModel() { ChartModuleType = ((int)enumCategoryInfoType.CH_SurveyModule).ToString(), GenericChartsInfoModel = new List <GenericChartsModelInfo>(), }; if (SessionModel.CurrentCompany.RelatedUser.FirstOrDefault().RelatedCompanyRole.ParentRoleCompany == null) { oRelatedChart.GenericChartsInfoModel = ProveedoresOnLine.SurveyModule.Controller.SurveyModule.GetSurveyByEvaluator(MarketPlace.Models.General.SessionModel.CurrentCompany.CompanyPublicId, string.Empty); } else { oRelatedChart.GenericChartsInfoModel = ProveedoresOnLine.SurveyModule.Controller.SurveyModule.GetSurveyByEvaluator(MarketPlace.Models.General.SessionModel.CurrentCompany.CompanyPublicId, SessionModel.CurrentLoginUser.Email); } List <Tuple <string, string, string, int, int, int> > oReturn = new List <Tuple <string, string, string, int, int, int> >(); if (oRelatedChart.GenericChartsInfoModel != null && oRelatedChart.GenericChartsInfoModel.Count > 0) { oRelatedChart.GenericChartsInfoModel.All(x => { oReturn.Add(Tuple.Create(x.AxisY, x.ItemName, x.AxisX, x.Count, x.CountX, x.Year)); return(true); }); } #endregion return(oReturn); }
public List <Tuple <string, int, int> > GetPeriodsByPlan(string GetPeriodsByPlan) { //Get Charts By Module List <GenericChartsModel> oResult = new List <GenericChartsModel>(); GenericChartsModel oRelatedChart = null; oRelatedChart = new GenericChartsModel() { ChartModuleType = ((int)enumCategoryInfoType.CH_ThirdKnowledgeModule).ToString(), GenericChartsInfoModel = new List <GenericChartsModelInfo>(), }; List <ProveedoresOnLine.ThirdKnowledge.Models.PlanModel> oPlanModel = ProveedoresOnLine.ThirdKnowledge.Controller.ThirdKnowledgeModule.GetAllPlanByCustomer(SessionModel.CurrentCompany.CompanyPublicId, true); List <Tuple <string, int, int> > oReturn = new List <Tuple <string, int, int> >(); if (oPlanModel != null) { oPlanModel.All(x => { x.RelatedPeriodModel.All(y => { oReturn.Add(Tuple.Create(y.InitDate.ToString("dd/MM/yy") + " - " + y.EndDate.ToString("dd/MM/yy") , y.TotalQueries, y.AssignedQueries)); return(true); }); return(true); }); } return(oReturn); }
public Dictionary <string, int> GetProvidersByState(string GetProvidersByState) { //Get Charts By Module List <GenericChartsModel> oResult = new List <GenericChartsModel>(); GenericChartsModel oRelatedChart = null; oRelatedChart = new GenericChartsModel() { ChartModuleType = ((int)enumCategoryInfoType.CH_ProvidersStateModule).ToString(), GenericChartsInfoModel = new List <GenericChartsModelInfo>(), }; //Get Providers of the Company oRelatedChart.GenericChartsInfoModel = ProveedoresOnLine.CompanyProvider.Controller.CompanyProvider.GetProvidersByState(MarketPlace.Models.General.SessionModel.CurrentCompany.CompanyPublicId); Dictionary <string, int> oReturn = new Dictionary <string, int>(); if (oRelatedChart.GenericChartsInfoModel != null && oRelatedChart.GenericChartsInfoModel.Count > 0) { oRelatedChart.GenericChartsInfoModel.All(x => { oReturn.Add(x.ItemName, x.Count); return(true); }); } return(oReturn); }