Control + k + d on TemporaryClientRegistrationApplication

This commit is contained in:
SamSys
2025-04-14 21:48:12 +03:30
parent aaa3618522
commit f5195ecaa2

View File

@@ -179,7 +179,7 @@ public class TemporaryClientRegistrationApplication : ITemporaryClientRegistrati
if (updateWorkshopList.Count == 0 && createNewWorkshopList.Count == 0)
return op.Failed("هیچ مجموعه ای ایجاد نشده است");
#region Update
if (updateWorkshopList.Count > 0)
{
@@ -325,7 +325,7 @@ public class TemporaryClientRegistrationApplication : ITemporaryClientRegistrati
/// <returns></returns>
public InstitutionPlanViewModel GetInstitutionPlanForWorkshop(WorkshopTempViewModel workshop)
{
return _planPercentageRepository.GetInstitutionPlanForWorkshop(workshop);
return _planPercentageRepository.GetInstitutionPlanForWorkshop(workshop);
}
@@ -341,14 +341,14 @@ public class TemporaryClientRegistrationApplication : ITemporaryClientRegistrati
var workshops = await _workshopTempRepository.GetWorkshopTemp(contractingPartyTempId);
double totalPayment1MonthDouble = 0;
//بدست آوردن جمع کل برای یک ماه
foreach (var workshop in workshops)
{
totalPayment1MonthDouble += workshop.WorkshopServicesAmount;
}
if(totalPayment1MonthDouble == 0)
if (totalPayment1MonthDouble == 0)
return new ReviewAndPaymentViewModel();
var result = new ReviewAndPaymentViewModel();
@@ -368,7 +368,7 @@ public class TemporaryClientRegistrationApplication : ITemporaryClientRegistrati
result.SumOfWorkshopsPaymentDouble = roundAmount * months;
result.SumOfWorkshopsPaymentPaymentStr = result.SumOfWorkshopsPaymentDouble.ToMoney();
result.PeriodModel = periodModel;
result.PaymentModel = paymentModel;
@@ -400,11 +400,15 @@ public class TemporaryClientRegistrationApplication : ITemporaryClientRegistrati
{
var op = new OperationResult();
var contractingPartyTemp = await
var contractingPartyTemp = await
_institutionContractTempRepository.GetInstitutionContractTemp(0, contractingPartyTempId);
if(contractingPartyTemp == null)
if (contractingPartyTemp == null)
return op.Failed("");
throw new System.NotImplementedException();
throw new System.NotImplementedException();
}
}