/// <summary> /// Removes the type of the payor. /// </summary> /// <param name="payorType">Type of the payor.</param> public virtual void RemovePayorType(PayorType payorType) { Check.IsNotNull(payorType, "Payor Type is required."); _payorTypes.Remove(payorType); NotifyItemRemoved(() => PayorTypes, payorType); }
/// <summary> /// Initializes a new instance of the <see cref="ClaimBatch"/> class. /// </summary> /// <param name="chargeAmount">The charge amount.</param> /// <param name="payorType">Type of the payor.</param> protected internal ClaimBatch( Money chargeAmount, PayorType payorType ) : this() { Check.IsNotNull ( chargeAmount, () => ChargeAmount ); Check.IsNotNull ( payorType, () => PayorType ); ChargeAmount = chargeAmount; PayorType = payorType; var lookupValueRepository = IoC.CurrentContainer.Resolve<ILookupValueRepository>(); ClaimBatchStatus = lookupValueRepository.GetLookupByWellKnownName<ClaimBatchStatus>(WellKnownNames.ClaimModule.ClaimBatchStatus.Active); }
/// <summary> /// Revises the type of the payor. /// </summary> /// <param name="payorType">Type of the payor.</param> public virtual void RevisePayorType(PayorType payorType) { Check.IsNotNull ( payorType, () => PayorType ); PayorType = payorType; }
/// <summary> /// Destroys the type of the payor. /// </summary> /// <param name="payorType">Type of the payor.</param> public void DestroyPayorType( PayorType payorType ) { _payorTypeRepository.MakeTransient ( payorType ); }
/// <summary> /// Creates the type of the payor. /// </summary> /// <param name="name">The name.</param> /// <param name="billingOffice">The billing office.</param> /// <param name="billingForm">The billing form.</param> /// <returns>A payor type.</returns> public PayorType CreatePayorType( string name, BillingOffice billingOffice, BillingForm billingForm ) { var payorType = new PayorType ( name, billingOffice, billingForm ); _payorTypeRepository.MakePersistent ( payorType ); return payorType; }
/// <summary> /// Destroys the type of the payor. /// </summary> /// <param name="payorType">Type of the payor.</param> public void DestroyPayorType(PayorType payorType) { _payorTypeRepository.MakeTransient(payorType); }
/// <summary> /// Revises the primary payor type member. /// </summary> /// <param name="payorType">Type of the payor.</param> public virtual void RevisePrimaryPayorTypeMember(PayorType payorType) { Check.IsNotNull ( payorType, "Primary Payor Type is required." ); var payorTypeMember = _payorTypeMembers.FirstOrDefault ( m => m.PayorType.Key == payorType.Key ); if (payorTypeMember != null) { PrimaryPayorTypeMember = payorTypeMember; } }
/// <summary> /// Adds the payor type member. /// </summary> /// <param name="payorType">Type of the payor.</param> public virtual void AddPayorTypeMember(PayorType payorType) { var payorTypeMember = new PayorTypeMember(payorType, this); _payorTypeMembers.Add(payorTypeMember); NotifyItemAdded(() => PayorTypeMembers, payorTypeMember); }