public dtoCallForPaperAvailable(long id, CallStatusForSubmitters status, dtoCallForPaper callForPaper, dtoSubmission submission)
     : base(id)
 {
     Status       = status;
     CallForPaper = callForPaper;
     if (submission == null)
     {
         Submission = new dtoSubmission(0);
     }
     else
     {
         Submission = submission;
     }
 }
Exemplo n.º 2
0
 public static string ViewSubmissionAsManager(
     CallForPaperType type,
     long idCall,
     long idSubmission,
     long idRevision,
     System.Guid uniqueId,
     Boolean isPublic,
     CallStatusForSubmitters view,
     SubmissionFilterStatus filter,
     SubmissionsOrder order,
     Boolean ascending,
     int pageIndex,
     int pageSize,
     long CommissionId)
 {
     return(ViewSubmission(type, idCall, idSubmission, idRevision, uniqueId, isPublic, false, view, -1, CommissionId)
            + "&Manage=true&filter=" + filter.ToString() + "&order=" + order.ToString()
            + "&ascending=" + ascending.ToString() + "&pageIndex=" + pageIndex.ToString()
            + "&pageSize=" + pageSize.ToString());
 }
Exemplo n.º 3
0
        public static string ViewSubmission(
            CallForPaperType type,
            long idCall,
            long idSubmission,
            long idRevision,
            System.Guid uniqueId,
            Boolean isPublic,
            Boolean fromPublicList,
            CallStatusForSubmitters view,
            Int32 containerIdCommunity,
            long CommissionId)
        {
            String baseurl = "Modules/CallForPapers/" + ((isPublic) ? "Public" : "") + "Submission.aspx?";

            baseurl += "type=" + type.ToString() + "&idCall=" + idCall.ToString() + "&idSubmission="
                       + idSubmission.ToString() + ((idRevision == 0) ? "" : "&idRevision=" + idRevision.ToString())
                       + ((uniqueId == System.Guid.Empty) ? "" : "&uniqueId=" + uniqueId.ToString()) + "&View=" + view.ToString()
                       + ((fromPublicList == true) ? "&FromPublicList=true" : "") + ((containerIdCommunity > -1) ? "&idOtherCommunity="
                                                                                     + containerIdCommunity.ToString() : "");
            baseurl += "&cmmId=" + CommissionId;

            return(baseurl);
        }
Exemplo n.º 4
0
        public static string ViewSubmissionsToEvaluateAdv(
            CallForPaperType type,
            long idCall,
            int idCommunity,
            long idCommission,
            CallStatusForSubmitters view,
            SubmissionsOrder order,
            Boolean ascending,
            long idType,
            lm.Comol.Modules.CallForPapers.Domain.Evaluation.EvaluationFilterStatus status,
            String searchBy)
        {
            return(string.Format("Modules/CallForPapers/Evaluate/SubmissionsToEvaluate.aspx?type={0}&View={1}&idCall={2}&AdCId={3}&idCommunity={4}&OrderBy={5}&Ascending={6}{7}&Filter={8}{9}",
                                 type.ToString(),
                                 view,
                                 idCall,
                                 idCommission,
                                 idCommunity,
                                 order,
                                 ascending,
                                 ((idType > 0) ? "&idType=" + idType.ToString() : ""),
                                 status,
                                 ((String.IsNullOrEmpty(searchBy)) ? "" : "&searchBy=" + searchBy)));

            //return "Modules/CallForPapers/Evaluate/SubmissionsToEvaluate.aspx?type="
            //    + type.ToString()
            //    + "&View=" + view.ToString()
            //    + "&idCall=" + idCall.ToString()
            //    + "&AdCId=" + idCommission.ToString()
            //    + "&idCommunity=" + idCommunity.ToString()
            //    + "&OrderBy=" + order.ToString()
            //    + "&Ascending=" + ascending.ToString()
            //    + ((idType > 0) ? "&idType=" + idType.ToString() : "")
            //    + "&Filter=" + status.ToString()
            //    + ((String.IsNullOrEmpty(searchBy)) ? "" : "&searchBy=" + searchBy);
        }
Exemplo n.º 5
0
 public dtoItemPermission(long id, liteCommunity community, CallStatusForSubmitters status, dtoSubmissionDisplayInfo subInfo)
     : this(id, community, status)
 {
     SubmissionsInfo.Add(subInfo);
 }
Exemplo n.º 6
0
        public void InitView(Boolean forPublicCall)
        {
            Boolean          allowAdmin      = false;
            Boolean          isAnonymousUser = UserContext.isAnonymous;
            long             idCall          = View.PreloadIdCall;
            CallForPaperType type            = ServiceCall.GetCallType(idCall);
            long             idSubmission    = View.PreloadedIdSubmission;
            long             idRevision      = View.PreloadedIdRevision;
            Guid             uniqueId        = View.PreloadedUniqueID;


            View.IsAdvance = ServiceCall.CallIsAdvanced(idCall);


            dtoSubmissionRevision submission = ServiceCall.GetSubmissionWithRevisions(idSubmission, true);
            int idModule = (type == CallForPaperType.CallForBids) ? ServiceCall.ServiceModuleID() : ServiceRequest.ServiceModuleID();

            dtoBaseForPaper call        = ServiceCall.GetDtoBaseCall(idCall);
            int             idCommunity = SetCallCurrentCommunity(call);

            View.isAnonymousSubmission = forPublicCall;
            View.IdCall          = idCall;
            View.IdCallModule    = idModule;
            View.IdCallCommunity = idCommunity;
            View.CallType        = type;
            View.IdSubmission    = idSubmission;
            if (idRevision == 0 && submission != null)
            {
                idRevision = submission.GetIdLastActiveRevision();
            }
            View.IdRevision = idRevision;
            if (submission == null || submission.Owner == null)
            {
                View.DisplayUnknownSubmission(idCommunity, idModule, idSubmission, type);
            }
            else
            {
                if (idCall != submission.IdCall)
                {
                    idCall      = submission.IdCall;
                    call        = ServiceCall.GetDtoBaseCall(idCall);
                    idCommunity = SetCallCurrentCommunity(call);
                    type        = (call != null) ? call.Type : type;
                    idModule    = (type == CallForPaperType.CallForBids) ? ServiceCall.ServiceModuleID() : ServiceRequest.ServiceModuleID();

                    View.IdCall          = idCall;
                    View.IdCallModule    = idModule;
                    View.IdCallCommunity = idCommunity;
                    View.CallType        = type;
                }
                if (call == null)
                {
                    View.DisplayUnknownCall(idCommunity, idModule, idCall, type);
                    if (!isAnonymousUser)
                    {
                        View.SetActionUrl(CallStandardAction.List, RootObject.ViewCalls(type, CallStandardAction.List, View.PreloadIdOtherCommunity, View.PreloadView));
                    }
                }
                else if (isAnonymousUser && !forPublicCall)
                {
                    if (call.IsPublic && submission.IsAnonymous)
                    {
                        View.GoToUrl(RootObject.ViewSubmission(type, idCall, idSubmission, idRevision, uniqueId, true, false, View.PreloadView, View.PreloadIdOtherCommunity, 0));
                    }
                    else
                    {
                        View.DisplaySessionTimeout();
                    }
                }
                else if (isAnonymousUser && forPublicCall && !call.IsPublic)
                {
                    View.DisplayCallUnavailableForPublic();
                }
                else
                {
                    int        idUser     = UserContext.CurrentUserID;
                    litePerson currenUser = GetCurrentUser(ref idUser);
                    Boolean    allowView  = false;
                    View.CallRepository = call.GetRepositoryIdentifier();
                    switch (type)
                    {
                    case CallForPaperType.CallForBids:
                        ModuleCallForPaper module = ServiceCall.CallForPaperServicePermission(idUser, idCommunity);
                        allowView  = (submission.Owner.Id == idUser || module.ManageCallForPapers || module.Administration || ((module.CreateCallForPaper || module.EditCallForPaper) && call.Owner.Id == idUser));
                        allowAdmin = (View.PreloadFromManagement && (module.ManageCallForPapers || module.Administration || ((module.CreateCallForPaper || module.EditCallForPaper) && call.Owner.Id == idUser)));
                        break;

                    case CallForPaperType.RequestForMembership:
                        ModuleRequestForMembership moduleR = ServiceCall.RequestForMembershipServicePermission(idUser, idCommunity);
                        allowView  = (submission.Owner.Id == idUser || moduleR.ManageBaseForPapers || moduleR.Administration || ((moduleR.CreateBaseForPaper || moduleR.EditBaseForPaper) && call.Owner.Id == idUser));
                        allowAdmin = (View.PreloadFromManagement && (moduleR.ManageBaseForPapers || moduleR.Administration || ((moduleR.CreateBaseForPaper || moduleR.EditBaseForPaper) && call.Owner.Id == idUser)));
                        break;
                    }

                    if (View.IsAdvance)
                    {
                        Advanced.SubmissionListPermission permission = ServiceCall.SubmissionCanList(idCall);

                        if ((permission & Advanced.SubmissionListPermission.View) == Advanced.SubmissionListPermission.View)
                        {
                            allowView = true;
                        }

                        if ((permission & Advanced.SubmissionListPermission.Manage) == Advanced.SubmissionListPermission.Manage)
                        {
                            allowAdmin = true;
                        }
                    }


                    View.ShowAdministrationTools = allowAdmin;
                    CallStatusForSubmitters fromView = View.PreloadView;
                    if (fromView == CallStatusForSubmitters.None)
                    {
                        fromView = (allowAdmin) ? CallStatusForSubmitters.SubmissionClosed : CallStatusForSubmitters.Submitted;
                    }

                    if (!allowAdmin && allowView)
                    {
                        View.SetActionUrl(CallStandardAction.List, RootObject.ViewCalls(type, CallStandardAction.List, View.PreloadIdOtherCommunity, fromView));
                    }
                    else if (allowAdmin)
                    {
                        View.SetActionUrl(CallStandardAction.Manage, RootObject.ViewSubmissions(type, idCall, idSubmission, idRevision, fromView, View.PreloadFilterSubmission, View.PreloadOrderSubmission, View.PreloadAscending, View.PreloadPageIndex, View.PreloadPageSize));
                    }

                    if (submission.Deleted != BaseStatusDeleted.None && !allowAdmin)
                    {
                        View.DisplaySubmissionUnavailable();
                    }
                    else if (allowAdmin || allowView || (isAnonymousUser && submission.IsAnonymous && submission.UniqueId == View.PreloadedUniqueID))
                    {
                        LoadSubmission(call, submission, idUser, allowAdmin);
                    }
                    else
                    {
                        View.DisplayNoPermission(idCommunity, idModule);
                    }
                }
            }

            bool ShowSendIntegration = false;

            if (call.AdvacedEvaluation)
            {
                ShowSendIntegration = ServiceCall.ShowSendIntegration(idSubmission, View.CommissionId);
            }

            View.ShowHideSendIntegration(ShowSendIntegration);

            if (View.IsAdvance)
            {
                if (!ServiceCall.SignSubmissionIsNotExpired(idSubmission, idRevision, DateTime.Now, DateTime.Now))
                {
                    bool ShowMessage = (submission.Status == SubmissionStatus.waitforsignature);
                    View.DisplayOutOfTime("Expired", ShowMessage, false);
                }
            }
        }
Exemplo n.º 7
0
 public static string FinalMessage(CallForPaperType type, long idCall, long idSubmission, long idRevision, Boolean fromPublicList, CallStatusForSubmitters view, Int32 containerIdCommunity)
 {
     return(FinalMessage(type, idCall, idSubmission, idRevision, Guid.Empty, false, fromPublicList, view, containerIdCommunity));
 }
Exemplo n.º 8
0
 public static string StartNewSubmission(CallForPaperType type, long idCall, Boolean isPublic, Boolean fromPublicList, CallStatusForSubmitters view, Int32 containerIdCommunity)
 {
     return(BaseSubmitToCall(type, idCall, isPublic, fromPublicList, view, containerIdCommunity));
 }
Exemplo n.º 9
0
 public static string CommitteeSummary(long idCommittee, long idCall, int idCommunity, CallStatusForSubmitters view)
 {
     return("Modules/CallForPapers/Statistics/CommitteeSummary.aspx?idCommunity=" + idCommunity.ToString() + "&View=" + view.ToString() + "&idCall=" + idCall.ToString() + "&idCommittee=" + idCommittee.ToString());
 }
Exemplo n.º 10
0
 public static string ViewSubmissionsToEvaluate(long idCommittee, CallForPaperType type, long idCall, int idCommunity, CallStatusForSubmitters view, SubmissionsOrder order, Boolean ascending, long idType, lm.Comol.Modules.CallForPapers.Domain.Evaluation.EvaluationFilterStatus status, String searchBy)
 {
     return(ViewSubmissionsToEvaluate(type, idCall, idCommunity, view, order, ascending, idType, status, searchBy) + "&idCommittee=" + idCommittee.ToString());
 }
Exemplo n.º 11
0
 public static string OptionRemovedFromCriterion(long idNewOption, long idCall, int idCommunity, CallStatusForSubmitters view)
 {
     return(EditCommitteeSettings(idCall, idCommunity, view) + "#option_" + idNewOption.ToString());
 }
Exemplo n.º 12
0
 public static string CriterionAddedToCommittee(long idCriterion, long idCall, int idCommunity, CallStatusForSubmitters view)
 {
     return(EditCommitteeSettings(idCall, idCommunity, view) + "#criterion_" + idCriterion.ToString());
 }
Exemplo n.º 13
0
 public static string CommitteeRemovedFromCall(long idNewCommittee, long idCall, int idCommunity, CallStatusForSubmitters view)
 {
     return(EditCommitteeSettings(idCall, idCommunity, view) + "#committee_" + idNewCommittee.ToString());
 }
Exemplo n.º 14
0
 public static string EditCommitteeSettings(long idCall, int idCommunity, CallStandardAction action, CallStatusForSubmitters view)
 {
     return("Modules/CallForPapers/Evaluate/EditEvaluationCommittees.aspx?idCommunity=" + idCommunity.ToString() + "&action=" + action.ToString() + "&idCall=" + idCall.ToString() + "&View=" + view.ToString());
 }
Exemplo n.º 15
0
 public static string EditCommitteeSettings(long idCall, int idCommunity, CallStatusForSubmitters view)
 {
     return(EditCommitteeSettings(idCall, idCommunity, CallStandardAction.Edit, view));
 }
Exemplo n.º 16
0
 public static string ViewSubmissionsToEvaluate(CallForPaperType type, long idCall, int idCommunity, CallStatusForSubmitters view, SubmissionsOrder order, Boolean ascending)
 {
     return(ViewSubmissionsToEvaluate(type, idCall, idCommunity, view, order, ascending, -1, Evaluation.EvaluationFilterStatus.All, ""));
 }
Exemplo n.º 17
0
 public static string ViewSubmissionsToEvaluate(CallForPaperType type, long idCall, int idCommunity, CallStatusForSubmitters view, SubmissionsOrder order, Boolean ascending, long idType, lm.Comol.Modules.CallForPapers.Domain.Evaluation.EvaluationFilterStatus status, String searchBy)
 {
     return("Modules/CallForPapers/Evaluate/SubmissionsToEvaluate.aspx?type=" + type.ToString() + "&View=" + view.ToString() + "&idCall=" + idCall.ToString() + "&idCommunity=" + idCommunity.ToString() + "&OrderBy=" + order.ToString() + "&Ascending=" + ascending.ToString()
            + ((idType > 0) ? "&idType=" + idType.ToString() : "") + "&Filter=" + status.ToString() + ((String.IsNullOrEmpty(searchBy)) ? "" : "&searchBy=" + searchBy));
 }
Exemplo n.º 18
0
 public static string EvaluatorRemovedFromCall(long idEvaluator, long idCall, int idCommunity, CallStatusForSubmitters view)
 {
     return(EditFullManageEvaluators(idCall, idCommunity, view) + "#evaluator_" + idEvaluator.ToString());
 }
Exemplo n.º 19
0
 public static string CommitteesSummary(long idCall, int idCommunity, CallStatusForSubmitters view, long idSubmitterType, Evaluation.EvaluationFilterStatus filter, SubmissionsOrder order, Boolean ascending, int pageIndex, int pageSize)
 {
     return(CommitteesSummary(idCall, idCommunity, view, idSubmitterType, filter, order, ascending, pageIndex, pageSize, ""));
 }
Exemplo n.º 20
0
 public static string ViewEvaluators(long idMembership, long idCall, int idCommunity, CallStatusForSubmitters view)
 {
     return(ViewEvaluators(idCall, idCommunity, view) + "#membership_" + idMembership.ToString());
 }
Exemplo n.º 21
0
 public static string CommitteeSummary(long idCommittee, long idCall, int idCommunity, CallStatusForSubmitters view, long idSubmitterType, Evaluation.EvaluationFilterStatus filter, SubmissionsOrder order, Boolean ascending, int pageIndex, int pageSize, String searchBy)
 {
     return(CommitteeSummary(idCommittee, idCall, idCommunity, view) + (String.IsNullOrEmpty(searchBy) ? "" : "&SearchForName=" + searchBy) + "&idType=" + idSubmitterType.ToString() + "&filter=" + filter.ToString() + "&OrderBy=" + order.ToString() + "&ascending=" + ascending.ToString() + "&pageIndex=" + pageIndex.ToString() + "&pageSize=" + pageSize.ToString());
 }
Exemplo n.º 22
0
 public static string ReplaceInEvaluationMembership(long idMembership, long idCall, int idCommunity, CallStatusForSubmitters view)
 {
     return("Modules/CallForPapers/Evaluate/ReplaceInEvaluationMembership.aspx?idMembership=" + idMembership.ToString() + "&idCommunity=" + idCommunity.ToString() + "&idCall=" + idCall.ToString() + "&View=" + view.ToString());
 }
Exemplo n.º 23
0
 public static string SubmitToCallBySubmitterType(CallForPaperType type, long idCall, Boolean isPublic, long idSubmission, long idSubmitterType, Boolean fromPublicList, CallStatusForSubmitters view, Int32 containerIdCommunity)
 {
     return(ContinueSubmission(type, idCall, isPublic, idSubmission, fromPublicList, view, containerIdCommunity) + "&idType=" + idSubmitterType.ToString());
 }
Exemplo n.º 24
0
 public static string EditMultipleCommitteeAssignments(long idCall, int idCommunity, CallStatusForSubmitters view)
 {
     return(EditCommitteeAssignments(true) + "idCommunity=" + idCommunity.ToString() + "&idCall=" + idCall.ToString() + "&View=" + view.ToString());
 }
Exemplo n.º 25
0
        public static string ViewRevisions(CallForPaperType type, CallStandardAction action, int idCommunity, CallStatusForSubmitters view)
        {
            String url = "Modules/CallForPapers/Revisions.aspx?action={0}&idCommunity={1}&View={2}&Type={3}";

            return(String.Format(url, action.ToString(), idCommunity.ToString(), view.ToString(), type.ToString()));
        }
Exemplo n.º 26
0
 public static string EditAssignSubmissionWithNoEvaluation(long idCall, int idCommunity, CallStatusForSubmitters view)
 {
     return("Modules/CallForPapers/Evaluate/AssignSubmissionWithNoEvaluation.aspx?" + "idCommunity=" + idCommunity.ToString() + "&idCall=" + idCall.ToString() + "&View=" + view.ToString());
 }
Exemplo n.º 27
0
        private void InitializeView(CallStandardAction action, Boolean allowManage, int idCommunity, CallStatusForSubmitters preloadView, CallForPaperType type, RevisionStatus status)
        {
            //Boolean initialize = true;
            List <CallStatusForSubmitters> views = null;

            if (type == CallForPaperType.CallForBids)
            {
                views = Service.GetAvailableViews(action, Service.CallForPaperServicePermission(UserContext.CurrentUserID, idCommunity), (action == CallStandardAction.List && idCommunity == 0), idCommunity, UserContext.CurrentUserID);
            }
            else
            {
                views = ServiceRequest.GetAvailableViews(action, allowManage, (action == CallStandardAction.List && idCommunity == 0), (idCommunity == 0), idCommunity, UserContext.CurrentUserID, type);
            }
            if ((!views.Contains(preloadView) && views.Count == 0) || !views.Contains(CallStatusForSubmitters.Revisions))
            {
                preloadView = CallStatusForSubmitters.Revisions;
                views.Add(CallStatusForSubmitters.Revisions);
            }
            else if (!views.Contains(preloadView))
            {
                preloadView = views[0];
            }

            /*if ((preloadView == CallStatusForSubmitters.Revisions && !views.Contains(CallStatusForSubmitters.Revisions)) || preloadView != CallStatusForSubmitters.Revisions)
             *  initialize = false;
             * else
             * {*/
            View.LoadAvailableView(idCommunity, views);
            List <RevisionStatus> items = LoadAvailableStatus(action, idCommunity, type);

            if (items.Count == 0 || items.Count > 1)
            {
                items.Insert(0, RevisionStatus.None);
            }
            View.LoadRevisionStatus(items, status);
            View.CurrentView = preloadView;
            //}
            // return initialize;
        }
Exemplo n.º 28
0
 public static string EditManageEvaluations(long idCall, int idCommunity, CallStatusForSubmitters view)
 {
     return("Modules/CallForPapers/Evaluate/ManageEvaluations.aspx?idCommunity=" + idCommunity.ToString() + "&idCall=" + idCall.ToString() + "&View=" + view.ToString());
 }
        public void InitView()
        {
            Boolean          allowAdmin      = false;
            Boolean          isAnonymousUser = UserContext.isAnonymous;
            long             idCall          = View.PreloadIdCall;
            CallForPaperType type            = ServiceCall.GetCallType(idCall);
            long             idSubmission    = View.PreloadedIdSubmission;
            long             idRevision      = View.PreloadedIdRevision;
            Guid             uniqueId        = View.PreloadedUniqueID;

            dtoSubmissionRevision submission = ServiceCall.GetSubmissionWithRevisions(idSubmission, true);
            int idModule = (type == CallForPaperType.CallForBids) ? ServiceCall.ServiceModuleID() : ServiceRequest.ServiceModuleID();

            dtoBaseForPaper call        = ServiceCall.GetDtoBaseCall(idCall);
            int             idCommunity = SetCallCurrentCommunity(call);

            View.isAnonymousSubmission = true;
            View.IdCall          = idCall;
            View.IdCallModule    = idModule;
            View.IdCallCommunity = idCommunity;
            View.CallType        = type;
            View.IdSubmission    = idSubmission;
            if (idRevision == 0 && submission != null)
            {
                idRevision = submission.GetIdLastActiveRevision();
            }
            View.IdRevision = idRevision;
            if (submission == null || submission.Owner == null || (submission != null && submission.UniqueId != uniqueId))
            {
                View.DisplayUnknownSubmission(idCommunity, idModule, idSubmission, type);
            }
            else
            {
                if (idCall != submission.IdCall)
                {
                    idCall      = submission.IdCall;
                    call        = ServiceCall.GetDtoBaseCall(idCall);
                    idCommunity = SetCallCurrentCommunity(call);
                    type        = (call != null) ? call.Type : type;
                    idModule    = (type == CallForPaperType.CallForBids) ? ServiceCall.ServiceModuleID() : ServiceRequest.ServiceModuleID();

                    View.IdCall          = idCall;
                    View.IdCallModule    = idModule;
                    View.IdCallCommunity = idCommunity;
                    View.CallType        = type;
                }
                if (call == null)
                {
                    View.DisplayUnknownCall(idCommunity, idModule, idCall, type);
                    if (!isAnonymousUser)
                    {
                        View.SetActionUrl(CallStandardAction.List, RootObject.ViewCalls(type, CallStandardAction.List, idCommunity, View.PreloadView));
                    }
                }
                else if (isAnonymousUser && !submission.IsAnonymous)
                {
                    View.DisplaySessionTimeout();
                }
                else if (isAnonymousUser && !call.IsPublic)
                {
                    View.DisplayCallUnavailableForPublic();
                }
                else
                {
                    int        idUser     = UserContext.CurrentUserID;
                    litePerson currenUser = GetCurrentUser(ref idUser);
                    Boolean    allowView  = false;
                    View.CallRepository = call.GetRepositoryIdentifier();
                    switch (type)
                    {
                    case CallForPaperType.CallForBids:
                        ModuleCallForPaper module = ServiceCall.CallForPaperServicePermission(idUser, idCommunity);
                        allowView  = (submission.Owner.Id == idUser || module.ManageCallForPapers || module.Administration || ((module.CreateCallForPaper || module.EditCallForPaper) && call.Owner.Id == idUser));
                        allowAdmin = (module.ManageCallForPapers || module.Administration || ((module.CreateCallForPaper || module.EditCallForPaper) && call.Owner.Id == idUser));
                        break;

                    case CallForPaperType.RequestForMembership:
                        ModuleRequestForMembership moduleR = ServiceCall.RequestForMembershipServicePermission(idUser, idCommunity);
                        allowView  = (submission.Owner.Id == idUser || moduleR.ManageBaseForPapers || moduleR.Administration || ((moduleR.CreateBaseForPaper || moduleR.EditBaseForPaper) && call.Owner.Id == idUser));
                        allowAdmin = (moduleR.ManageBaseForPapers || moduleR.Administration || ((moduleR.CreateBaseForPaper || moduleR.EditBaseForPaper) && call.Owner.Id == idUser));
                        break;
                    }
                    View.InitializeView(ServiceCall.GetExternalContext(idCall));
                    CallStatusForSubmitters fromView = View.PreloadView;
                    if (fromView == CallStatusForSubmitters.None)
                    {
                        fromView = (allowAdmin) ? CallStatusForSubmitters.SubmissionClosed : CallStatusForSubmitters.Submitted;
                    }

                    if (allowView)
                    {
                        if (!isAnonymousUser)
                        {
                            View.SetActionUrl(CallStandardAction.List, RootObject.ViewCalls(type, CallStandardAction.List, idCommunity, fromView));
                        }
                        else if (View.FromPublicList)
                        {
                            View.SetActionUrl(CallStandardAction.List, RootObject.PublicCollectorCalls(type, idCall, idCommunity));
                        }
                    }
                    if (submission.Deleted != BaseStatusDeleted.None && !allowAdmin)
                    {
                        View.DisplaySubmissionUnavailable();
                    }
                    else if (allowAdmin || allowView || (isAnonymousUser && submission.IsAnonymous && submission.UniqueId == View.PreloadedUniqueID))
                    {
                        LoadSubmission(call, submission, idUser, allowAdmin);
                    }
                    else
                    {
                        View.DisplayNoPermission(idCommunity, idModule);
                    }
                }
            }
        }
Exemplo n.º 30
0
        private static string BaseSubmitToCall(CallForPaperType type, long idCall, Boolean isPublic, Boolean fromPublicList, CallStatusForSubmitters view, Int32 containerIdCommunity)
        {
            String baseurl = "Modules/CallForPapers/" + ((isPublic) ? "Public" : "");

            switch (type)
            {
            case CallForPaperType.CallForBids:
                baseurl += "SubmitCall.aspx?";
                break;

            case CallForPaperType.RequestForMembership:
                baseurl += "SubmitRequest.aspx?";
                break;
            }
            return(baseurl + "type=" + type.ToString() + "&View=" + view.ToString() + "&idCall=" + idCall.ToString() + ((fromPublicList == true) ? "&FromPublicList=true" : "") + ((containerIdCommunity > -1) ? "&idOtherCommunity=" + containerIdCommunity.ToString() :""));
        }