...
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<Reference Include="Service">
|
||||
<HintPath>..\..\..\LocalGit\TaxPayerTools\Service\bin\Debug\Service.dll</HintPath>
|
||||
<HintPath>..\..\Dlls\Service.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
|
@@ -17,15 +17,19 @@ namespace Back.Controllers
|
||||
[ApiController]
|
||||
public class InvoiceController : ControllerBase
|
||||
{
|
||||
private readonly IConfiguration _configuration;
|
||||
private readonly servInvoice _servInvoice;
|
||||
private readonly servUser _servUser;
|
||||
private readonly AddOrUpdateInvoiceValidation _validationInvoice;
|
||||
private readonly servTaxPayer _servTaxPayer;
|
||||
public InvoiceController(servInvoice servInvoice, servUser servUser, AddOrUpdateInvoiceValidation validationInvoice, servTaxPayer servTaxPayer)
|
||||
public InvoiceController(servInvoice servInvoice, servUser servUser
|
||||
, AddOrUpdateInvoiceValidation validationInvoice
|
||||
, servTaxPayer servTaxPayer, IConfiguration configuration)
|
||||
{
|
||||
_servInvoice = servInvoice;
|
||||
_servUser = servUser;
|
||||
_validationInvoice = validationInvoice;
|
||||
_configuration=configuration;
|
||||
_servTaxPayer = servTaxPayer;
|
||||
|
||||
}
|
||||
@@ -455,16 +459,17 @@ namespace Back.Controllers
|
||||
if (!await _servInvoice.ExistInvoiceByInvoiceID(CompanyID.Value, InvoiceID))
|
||||
return NotFound();
|
||||
|
||||
|
||||
// Start the child process.
|
||||
Process p = new Process();
|
||||
// Redirect the output stream of the child process.
|
||||
p.StartInfo.UseShellExecute = false;
|
||||
p.StartInfo.RedirectStandardOutput = true;
|
||||
p.StartInfo.FileName = "C:\\CreateReport\\CreateReport.exe";
|
||||
p.StartInfo.FileName = _configuration["CreateReportFileName"].ToString();
|
||||
p.StartInfo.Arguments = $"{CompanyID} {InvoiceID}";
|
||||
p.Start();
|
||||
output = p.StandardOutput.ReadToEnd();
|
||||
p.WaitForExit();
|
||||
output =await p.StandardOutput.ReadToEndAsync();
|
||||
await p.WaitForExitAsync();
|
||||
return Ok(output);
|
||||
}
|
||||
[HttpPut("SetExternalAccessCode/{InvoiceID}")]
|
||||
|
@@ -11,5 +11,6 @@
|
||||
},
|
||||
"Fixedvalues": {
|
||||
"Jwt_Lifetime_Minutes": "144000"
|
||||
}
|
||||
},
|
||||
"CreateReportFileName": "E:\\CreateReport\\CreateReport.exe"
|
||||
}
|
||||
|
16
Back/appsettings.production.json
Normal file
16
Back/appsettings.production.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
"Microsoft.AspNetCore": "Warning"
|
||||
}
|
||||
},
|
||||
"ConnectionStrings": {
|
||||
"Base": "Data Source=.;Initial Catalog=TaxPayer020713;User ID=sa;Password=M439610m@;TrustServerCertificate=True"
|
||||
|
||||
},
|
||||
"Fixedvalues": {
|
||||
"Jwt_Lifetime_Minutes": "144000"
|
||||
},
|
||||
"CreateReportFileName": "E:\\CreateReport\\CreateReport.exe"
|
||||
}
|
@@ -6,4 +6,13 @@
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Reference Include="Stimulsoft.Base">
|
||||
<HintPath>..\..\Dlls\stimull\Stimulsoft.Base.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Stimulsoft.Report">
|
||||
<HintPath>..\..\Dlls\stimull\Stimulsoft.Report.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
@@ -3,6 +3,7 @@
|
||||
@inject HttpClientController hc;
|
||||
<Preload LoadingText="در حال بارگذاری..." />
|
||||
<Toasts class="p-3" Messages="messages" Placement="ToastsPlacement.MiddleCenter" />
|
||||
@layout EmptyLayout
|
||||
@page "/InvoiceReport/{ExternalAccessCode}"
|
||||
@using Front.Services
|
||||
|
||||
@@ -13,7 +14,7 @@
|
||||
protected async override Task OnParametersSetAsync()
|
||||
{
|
||||
if (!string.IsNullOrEmpty(ExternalAccessCode))
|
||||
ShowReport();
|
||||
await ShowReport();
|
||||
await base.OnParametersSetAsync();
|
||||
}
|
||||
|
||||
|
@@ -16,7 +16,8 @@
|
||||
|
||||
<Modal @ref="Codemodal" title="لینک برای دانلود" IsVerticallyCentered="true">
|
||||
<BodyTemplate>
|
||||
@ExUrl
|
||||
<h5>با لینک زیر دیگران میتوانند به این صورتحساب دسترسی داشته باشند</h5>
|
||||
<NavLink href="@ExUrl">@ExUrl</NavLink>
|
||||
</BodyTemplate>
|
||||
<FooterTemplate>
|
||||
<Button Color="ButtonColor.Secondary" @onclick="OnHideModalClick">Close</Button>
|
||||
@@ -342,7 +343,7 @@
|
||||
<Button class="mt-3" Color="ButtonColor.Primary" @onclick="ShowReport" Type="ButtonType.Button">
|
||||
pdf
|
||||
</Button>
|
||||
<Button class="mt-3" Color="ButtonColor.Secondary" @onclick="onClickExternalAccessCode" Type="ButtonType.Button">
|
||||
<Button class="mt-3" Color="ButtonColor.Info" @onclick="onClickExternalAccessCode" Type="ButtonType.Button">
|
||||
لینک
|
||||
</Button>
|
||||
}
|
||||
|
@@ -37,10 +37,10 @@ builder.Services.AddScoped(sp => new UserAuthenticationDTO()
|
||||
//builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("http://195.88.208.142:7075/api/") });
|
||||
|
||||
//Home
|
||||
//builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("https://localhost:7075/api/") });
|
||||
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("https://localhost:7075/api/") });
|
||||
|
||||
//farzan
|
||||
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("http://localhost:5271/api/") });
|
||||
//builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("http://localhost:5271/api/") });
|
||||
|
||||
CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("fa-Ir");
|
||||
|
||||
|
Reference in New Issue
Block a user