public void InitView() { Boolean isAnonymousUser = UserContext.isAnonymous; long idCall = View.PreloadIdCall; Int32 idUser = UserContext.CurrentUserID; lm.Comol.Modules.CallForPapers.Domain.CallForPaperType type = ServiceCall.GetCallType(idCall); int idModule = (type == CallForPaperType.CallForBids) ? ServiceCall.ServiceModuleID() : ServiceRequest.ServiceModuleID(); dtoCall call = (type == CallForPaperType.CallForBids) ? ServiceCall.GetDtoCall(idCall) : null; if (call != null) { View.SetContainerName(call.Name, call.EndEvaluationOn); } int idCommunity = GetCurrentCommunity(call); View.IdCall = idCall; View.IdCallModule = idModule; View.IdCallCommunity = idCommunity; View.CallType = type; ModuleCallForPaper module = ServiceCall.CallForPaperServicePermission(idUser, idCommunity); Boolean allowAdmin = ((module.ManageCallForPapers || module.Administration || ((module.CreateCallForPaper || module.EditCallForPaper) && call.Owner.Id == idUser))); View.SetActionUrl((allowAdmin) ? CallStandardAction.Manage : CallStandardAction.List, RootObject.ViewCalls(idCall, type, ((allowAdmin) ? CallStandardAction.Manage : CallStandardAction.List), idCommunity, View.PreloadView)); if (UserContext.isAnonymous) { View.DisplaySessionTimeout(RootObject.CommitteeSummary(View.PreloadIdCommittee, idCall, idCommunity, View.PreloadView, View.PreloadIdSubmitterType, View.PreloadFilterBy, View.PreloadOrderBy, View.PreloadAscending, View.PreloadPageIndex, View.PreloadPageSize, View.GetItemEncoded(View.PreloadSearchForName))); } else if (call == null) { View.DisplayUnknownCall(idCommunity, idModule, idCall); } else if (type == CallForPaperType.RequestForMembership) { View.DisplayEvaluationUnavailable(); } else if (allowAdmin) { View.CurrentEvaluationType = call.EvaluationType; if (call.EvaluationType == EvaluationType.Dss) { View.CallUseFuzzy = Service.CallUseFuzzy(idCall); } View.AllowHideComments = true; View.AllowExportAll = Service.HasEvaluations(idCall); View.DisplayEvaluationInfo(call.EndEvaluationOn); InitializeView(idCall, call.EvaluationType, idCommunity, View.PreloadFilters); } }