public void SetStateBase(PlanCertificateState newState)
 {
     _repository.ExecuteSPUniqueResult <PlanCertificate>(
         new PlanCertificateSetStateSP(new PlanCertificate {
         Rn = Entity.Rn
     }, newState));
     Entity.State = newState;
 }
        public void SetStatusPlanCertificate(long id, PlanCertificateState newState)
        {
            var entity  = GetEntity <PlanCertificate>(id);
            var manager = new SetStateEntityManagerFactory <PlanCertificate, PlanCertificateState>(RepositoryFactory).Create();

            manager.SetState(entity, newState, Sense.Full);

            try
            {
                var createCreditSlip = new CreditSlipManager(RepositoryFactory);
                createCreditSlip.Flush();
            }
            finally
            {
                CreditSlipManager.Clean();
            }
        }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PlanCertificateSetStateSP"/> class.
 /// </summary>
 /// <param name="certificate">
 /// The certificate.
 /// </param>
 /// <param name="state">
 /// The state.
 /// </param>
 public PlanCertificateSetStateSP(PlanCertificate certificate, PlanCertificateState state)
 {
     Rn    = certificate.Rn;
     State = state;
 }
예제 #4
0
 public void SetStatusPlanCertificate(long id, PlanCertificateState newState)
 {
 }