This commit is contained in:
mmrbnjd
2025-07-26 11:47:32 +03:30
parent 29107ce9c6
commit c045ace959
10 changed files with 88 additions and 64 deletions

View File

@@ -40,8 +40,8 @@
</style>
<div class="container-fluid">
<div class="row row-fullheight">
@* <div class="row row-fullheight"> *@
<div class="row">
<!-- تغییر کلمه عبور -->
<div class="col-md-6 d-flex flex-column" style="height: fit-content;">
<div class="section-box w-100">
@@ -82,7 +82,7 @@
<div class="col-md-12">
<input dir="ltr" class="form-control text-center mb-2" @bind-value="@dto.WebSite" type="text" placeholder="وب سایت" />
</div>
<div class="col-md-12 d-flex align-items-center mb-2">
<InputFile type="file" OnChange="OnFileChange" accept=".png" />
@if (dto.logo != null && dto.logo.Length > 0)
@@ -101,7 +101,7 @@
}
<!-- پایین چپ -->
@* <!-- پایین چپ -->
<div class="col-md-6 d-flex flex-column">
<div class="section-box w-100">
<div class="section-title">
@@ -119,23 +119,25 @@
</div>
<!-- محتوای دلخواه -->
</div>
</div>
</div> *@
</div>
</div>
@code {
[Inject] protected ToastService ToastService { get; set; } = default!;
[Inject] protected ToastService ToastService { get; set; } = default!;
bool ALLOWcompanyinfo = true;
bool ALLOWcompanyinfo = false;
public bool loading { get; set; } = false;
public ReadANDUpdate_CompanyDto dto { get; set; }
= new();
int CompanyID = 0;
protected override async Task OnInitializedAsync()
{
if (await localStorageService.GetItem<string>("Role") != "Company")
if (await localStorageService.GetItem<string>("C/Role") == "User")
navigationManager.NavigateTo("/NotFound");
ALLOWcompanyinfo = await localStorageService.GetItem<string>("C/Role") == "Company";
CompanyID= await localStorageService.GetItem<int>("C/CompanyId");
dto = await companyService.GetCompany(CompanyID);