merge task schedule with file for orginal publish

This commit is contained in:
MahanCh
2025-04-16 17:02:14 +03:30
17 changed files with 1725 additions and 26 deletions

View File

@@ -93,20 +93,52 @@ namespace ServiceHost.Pages
// var dateOfBirth = Console.ReadLine();
// Console.WriteLine("enter phoneNumber ... ");
// var phone = Console.ReadLine();
// var res = _clientRegistrationApplication.CreateContractingPartyTemp(nationalCode, dateOfBirth, phone).GetAwaiter().GetResult();
// var res = await _clientRegistrationApplication.CreateContractingPartyTemp(nationalCode, dateOfBirth,
// phone);
// if (res.IsSuccedded)
// {
// var updateAddress =
// _clientRegistrationApplication.UpdateAddress(res.Data.Id, "gilan", "rasht", "hajiabad").GetAwaiter().GetResult();
// {
// var updateAddress =await
// _clientRegistrationApplication.UpdateAddress(res.Data.Id, "gilan", "rasht", "hajiabad");
// if (updateAddress.IsSuccedded)
// {
// var workshopSelected = _clientRegistrationApplication.GetWorkshopTemp(res.Data.Id).GetAwaiter().GetResult();
// if (workshopSelected.Count > 0)
// {
// var result = _clientRegistrationApplication.GetTotalPaymentAndWorkshopList(res.Data.Id,"12","OneTime").GetAwaiter().GetResult();
// {
// var result = await
// _clientRegistrationApplication.GetTotalPaymentAndWorkshopList(res.Data.Id, "12",
// "OneTime");
// Console.WriteLine("sumOfWorkshopPayment : " + result.SumOfWorkshopsPaymentDouble);
// Console.WriteLine("TotalPaymentDouble : " + result.TotalPaymentDouble);
// }
// var createInstitutionContract = await
// _clientRegistrationApplication.CreateOrUpdateInstitutionContractTemp(res.Data.Id, null,
// null, result.TotalPaymentDouble, 0);
// if (createInstitutionContract.IsSuccedded)
// {
// var sendVerfyCode =await _clientRegistrationApplication.ReceivedCodeFromServer(res.Data.Id);
// if (sendVerfyCode.IsSuccedded)
// {
// Console.WriteLine("enter the code ... ");
// var codeReceived = Console.ReadLine();
// var completeSms = await
// _clientRegistrationApplication.CheckVerifyCodeIsTrue(res.Data.Id, codeReceived);
// if (completeSms.IsSuccedded)
// {
// var payOffCompleted =
// await _clientRegistrationApplication.PayOffCompleted(res.Data.Id);
// if (payOffCompleted.IsSuccedded)
// {
// Console.WriteLine("finaly completed");
// }
// else
// {
// Console.WriteLine(payOffCompleted.Message);
// }
// }
// }
// }
// }
// else
// {
// var workshops = new List<WorkshopTempViewModel>();
@@ -140,17 +172,51 @@ namespace ServiceHost.Pages
// var result = _clientRegistrationApplication.GetTotalPaymentAndWorkshopList(res.Data.Id).GetAwaiter().GetResult();
// Console.WriteLine("sumOfWorkshopPayment : " + result.SumOfWorkshopsPaymentDouble);
// Console.WriteLine("TotalPaymentDouble : " + result.TotalPaymentDouble);
// }
// var createInstitutionContract = await
// _clientRegistrationApplication.CreateOrUpdateInstitutionContractTemp(res.Data.Id, null,
// null, result.TotalPaymentDouble, 0);
// if (createInstitutionContract.IsSuccedded)
// {
// var sendVerfyCode = await _clientRegistrationApplication.ReceivedCodeFromServer(res.Data.Id);
// if (sendVerfyCode.IsSuccedded)
// {
// Console.WriteLine("enter the code ... ");
// var codeReceived = Console.ReadLine();
// var completeSms = await
// _clientRegistrationApplication.CheckVerifyCodeIsTrue(res.Data.Id, codeReceived);
// if (completeSms.IsSuccedded)
// {
// var payOffCompleted =
// await _clientRegistrationApplication.PayOffCompleted(res.Data.Id);
// if (payOffCompleted.IsSuccedded)
// {
// Console.WriteLine("finaly completed");
// }
// else
// {
// Console.WriteLine(payOffCompleted.Message);
// }
// }
// }
// }
// }
// }
// }
// }
// Console.WriteLine("do you want to exit ... ");
// var exitCheck = Console.ReadLine();
// if (exitCheck == "yes")
// if (exitCheck == "y")
// ex = true;
//}
// while (!ex)
// {
// var onGet = _institutionPlanApplication.GetByFirst();