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)) { }
public void GivenБеруУстанавливаемоеСостояние(string p0) { _state = (PlanReceiptOrderState)Enum.Parse(typeof(PlanReceiptOrderState), p0); }
/// <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; }
public virtual void PlanReceiptOrderChangeState(PlanReceiptOrderDto planReceiptOrder, PlanReceiptOrderState state) { throw new NotImplementedException(); }
public void SetStatePlanReceiptOrder(long id, PlanReceiptOrderState newState) { }