public void SetGroupPersonalAccountPlanReceiptOrder(PlanReceiptOrderDto entity, PersonalAccountDto personalAccount)
        {
            var planReceiptOrder = RepositoryFactory.Create <PlanReceiptOrder>().Get(entity.Rn);

            if (planReceiptOrder.PlanCertificates.Any(x => x.PlanReceiptOrderPersonalAccounts.Any(v => v.State == PlanReceiptOrderPersonalAccountState.Confirm)))
            {
                throw new CheckingSetStatePlanReceiptOrderInvalidException(Resource.PCO_17);
            }
            if (planReceiptOrder.PlanCertificates.Any(x => x.PlanReceiptOrderPersonalAccounts.Any(v => v.State == PlanReceiptOrderPersonalAccountState.Close)))
            {
                throw new CheckingSetStatePlanReceiptOrderInvalidException(Resource.PCO_18);
            }

            ExecuteStoreProcedure <PlanCertificate>(
                new PlanReceiptOrderSetGroupState(
                    entity.MapTo <PlanReceiptOrder>(),
                    personalAccount.MapTo <PersonalAccount>()));
        }
예제 #2
0
 public void SetGroupStatusPlanCertificate(PlanCertificateDto planCertificate, PersonalAccountDto personalAccount)
 {
 }
예제 #3
0
 public void SetGroupStatusPlanReceiptOrder(PlanReceiptOrderDto planReceiptOrderDto, PersonalAccountDto personalAccount)
 {
 }
예제 #4
0
 public void SetGroupPersonalAccountPlanReceiptOrder(PlanReceiptOrderDto entity, PersonalAccountDto personalAccount)
 {
     throw new NotImplementedException();
 }