Пример #1
0
 public PersonalAccountSetStateSP(
     PlanReceiptOrderPersonalAccount planReceiptOrderPersonalAccount,
     PlanReceiptOrderPersonalAccountState state)
 {
     Rn         = planReceiptOrderPersonalAccount.Rn;
     this.State = state;
 }
        public void SetStatusPersonalAccount(long id, PlanReceiptOrderPersonalAccountState newState)
        {
            var entity  = GetEntity <PlanReceiptOrderPersonalAccount>(id);
            var manager = new SetStateEntityManagerFactory <PlanReceiptOrderPersonalAccount, PlanReceiptOrderPersonalAccountState>(RepositoryFactory).Create();

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

            try
            {
                var createCreditSlip = new CreditSlipManager(RepositoryFactory);
                createCreditSlip.Flush();
            }
            finally
            {
                CreditSlipManager.Clean();
            }
        }
 public virtual void SetStateBase(PlanReceiptOrderPersonalAccountState newState)
 {
     _repository.ExecuteSPUniqueResult <PlanReceiptOrderPersonalAccount>(
         new PersonalAccountSetStateSP(Entity, newState));
     Entity.State = newState;
 }
Пример #4
0
 public void SetStatusPersonalAccount(long id, PlanReceiptOrderPersonalAccountState newState)
 {
 }