This commit is contained in:
mmrbnjd
2024-05-29 11:17:30 +03:30
parent 127c2cb326
commit 8efa1d6f81
3 changed files with 35 additions and 8 deletions

View File

@@ -35,7 +35,7 @@
<ItemGroup>
<Reference Include="Service">
<HintPath>..\..\Dlls\Service.dll</HintPath>
<HintPath>..\..\..\LocalGit\TaxPayerTools\Service\bin\Debug\Service.dll</HintPath>
</Reference>
</ItemGroup>

View File

@@ -24,11 +24,38 @@
<div class="row g-3">
<div class="multi-button">
<button class="button" id="cut"><span>فاکتور</span></button>
<button class="button" id="copy"><span>برگشت فروش</span></button>
<button class="button" id="paste"><span>اصلاح</span></button>
<button class="button" id="sred"><span>ابطال</span></button>
<button class="button" id="sred1"><span>لغو</span></button>
@switch (invoice.invoiceType)
{
case(InvoiceType.Bidding):
<button class="button" id="cut"><span>فاکتور</span></button>
<button class="button" id="sred1"><span>لغو</span></button>
break;
case (InvoiceType.Sale):
<button class="button" id="copy"><span>برگشت فروش</span></button>
<button class="button" id="paste"><span>اصلاح</span></button>
<button class="button" id="sred"><span>ابطال</span></button>
<button class="button" id="sred1"><span>لغو</span></button>
break;
case (InvoiceType.BackFrmSale):
<button class="button" id="sred"><span>ابطال</span></button>
<button class="button" id="sred1"><span>لغو</span></button>
break;
case (InvoiceType.Repair):
<button class="button" id="sred"><span>ابطال</span></button>
<button class="button" id="sred1"><span>لغو</span></button>
<button class="button" id="copy"><span>برگشت فروش</span></button>
break;
case (InvoiceType.Cancellation):
<button class="button" id="sred1"><span>لغو</span></button>
break;
}
</div>
</div>
<br />

View File

@@ -34,9 +34,9 @@ builder.Services.AddScoped(sp => new UserAuthenticationDTO()
}) ;
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/") });
//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");