Ejemplo n.º 1
0
 public ProposalStatus FetchProposalStatus(ProposalStatus proposalStatus)
 {
     #region Call API
     proposalStatus = WebApiLogic.GetPostComplexTypeToAPI<ProposalStatus>(proposalStatus, "FetchProposalStatus", "Policy");
     #endregion
     return proposalStatus;
 }
Ejemplo n.º 2
0
 private static void SetProposalStatus( Proposal proposal, ProposalStatus status )
 {
     if( proposal.Status != ProposalStatus.Created )
     {
         throw new InvalidOperationException();
     }
     proposal.Status = status;
 }
Ejemplo n.º 3
0
 private static void SetProposalStatus(Proposal proposal, ProposalStatus status)
 {
     if (proposal.Status != ProposalStatus.Created)
     {
         throw new InvalidOperationException();
     }
     proposal.Status = status;
 }
Ejemplo n.º 4
0
 public Excursion(
     User user,
     string name,
     ProposalStatus status
     ) : this()
 {
     User           = user;
     Name           = name;
     ProposalStatus = status;
 }
Ejemplo n.º 5
0
 public Article(
     User user,
     string name,
     ProposalStatus status
     ) : this()
 {
     User           = user;
     Name           = name;
     ProposalStatus = status;
 }
Ejemplo n.º 6
0
 public Proposal(IProposalContent content, ulong proposalId, ProposalStatus status, TallyResult finalTallyResult, DateTimeOffset submitTime, DateTimeOffset depositEndTime, IList <Coin> totalDeposit, DateTimeOffset votingStartTime, DateTimeOffset votingEndTime)
 {
     Content          = content;
     ProposalId       = proposalId;
     Status           = status;
     FinalTallyResult = finalTallyResult;
     SubmitTime       = submitTime;
     DepositEndTime   = depositEndTime;
     TotalDeposit     = totalDeposit;
     VotingStartTime  = votingStartTime;
     VotingEndTime    = votingEndTime;
 }
Ejemplo n.º 7
0
 private void ChangeStatus(Content content, ProposalStatus status = ProposalStatus.Added)
 {
     try
     {
         content.SetStatus(User, ProposalStatus.Added);
         Manager.Container.SaveChanges();
     }
     catch (AccessDeniedException)
     {
         Utility.Warn(
             "У Вас недостаточно полномочий для работы с заявками."
             );
     }
 }
Ejemplo n.º 8
0
        public ProposalStatus FetchProposalStatus(ProposalStatus proposalStatus)
        {
            TpServiceLog tpServiceLog = new TpServiceLog();

            tpServiceLog.ServiceRequest = Newtonsoft.Json.JsonConvert.SerializeObject(proposalStatus);
            TransactLog transactLog = new TransactLog();

            transactLog.SerivceTraceID = tpServiceLog.ServiceTraceID = proposalStatus.ServiceTraceID;
            transactLog.UserName       = proposalStatus.UserName;
            string Message = ValidateUserAuth(transactLog);

            if (Message != "" && Message != null)
            {
                proposalStatus.Message = Message;
                return(proposalStatus);
            }
            AIA.Life.Business.Policy.PolicyBusiness objPolicyBusiness = new AIA.Life.Business.Policy.PolicyBusiness();

            proposalStatus = objPolicyBusiness.FetchProposalStatus(proposalStatus);

            tpServiceLog.ServiceResponse = Newtonsoft.Json.JsonConvert.SerializeObject(proposalStatus);
            commonBusiness.CreateServiceLog(tpServiceLog);
            return(proposalStatus);
        }