public void SetStatePlanReceiptOrder(long id, PlanReceiptOrderState newState)
        {
            var entity  = GetEntity <PlanReceiptOrder>(id);
            var manager = new SetStateEntityManagerFactory <PlanReceiptOrder, PlanReceiptOrderState>(RepositoryFactory).Create();

            manager.SetState(entity, newState);

            try
            {
                var createCreditSlip = new CreditSlipManager(RepositoryFactory);
                createCreditSlip.Flush();
            }
            finally
            {
                CreditSlipManager.Clean();
            }
        }
 public CheckingSetStatePlanReceiptOrderInvalidException(PlanReceiptOrderState newState)
     : base(Resource.CheckingSetStatePlanReceiptOrderInvalid.StringFormat(newState))
 {
 }
Exemplo n.º 3
0
 public void GivenБеруУстанавливаемоеСостояние(string p0)
 {
     _state = (PlanReceiptOrderState)Enum.Parse(typeof(PlanReceiptOrderState), p0);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PlanReceiptOrderSetState"/> class.
 /// </summary>
 /// <param name="planReceiptOrder">
 /// The plan receipt order.
 /// </param>
 /// <param name="state">
 /// The state.
 /// </param>
 public PlanReceiptOrderSetState(PlanReceiptOrder planReceiptOrder, PlanReceiptOrderState state)
 {
     RN    = planReceiptOrder.Rn;
     State = state;
 }
 public void SetStateBase(PlanReceiptOrderState newState)
 {
     _repository.ExecuteSPUniqueResult <PlanReceiptOrder>(new PlanReceiptOrderSetState(Entity, newState));
     Entity.State = newState;
 }
Exemplo n.º 6
0
 public virtual void PlanReceiptOrderChangeState(PlanReceiptOrderDto planReceiptOrder, PlanReceiptOrderState state)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 7
0
 public void SetStatePlanReceiptOrder(long id, PlanReceiptOrderState newState)
 {
 }