Untitled
unknown
plain_text
2 years ago
2.4 kB
9
Indexable
@page "/UserInforComponent/{Pno}/{status}"
@using SAPConnection.Data.Services;
@inject SAPService SAPService
@*Responsiveness*@
<div class="container-fluid" style="width : 100% ; padding-left : 10px ; padding-right : 10px; border:1px solid black;">
<div class="row bg-primary">
<div class="col-md-12" style="background-color: #000080 ; height:50px; display: flex; align-items: center;">
<h5 class="text-white">Employee Details</h5>
</div>
</div>
<div class="row" style="margin-top:10px;">
<div class="col-md-2">
<p><b>Request Date:</b></p>
</div>
<div class="col-md-4">
<InputDate readonly="true" @bind-Value="@Date" />
</div>
<div class="col-md-2">
<p><b>Status:</b></p>
</div>
<div class="col-md-4">
<p>@Status</p>
</div>
</div>
<div class="row" style="margin-top:10px;">
<div class="col-md-2">
<p><b>Employee Name:</b></p>
</div>
<div class="col-md-4">
<p>@Name</p>
</div>
<div class="col-md-2">
<p><b>Employee Number:</b></p>
</div>
<div class="col-md-4">
<p>@Pno</p>
</div>
</div>
<div class="row" style="margin-top:10px;">
<div class="col-md-2">
<p><b>Department:</b></p>
</div>
<div class="col-md-4">
<p>@Department</p>
</div>
<div class="col-md-2">
<p><b>Designation:</b></p>
</div>
<div class="col-md-4">
<p>@Designation</p>
</div>
</div>
</div>
<br />
@code {
[Parameter]
public string Pno { get; set; }
[Parameter]
public string Status { get; set; }
[Parameter]
public DateTime Date { get; set; }
string Name;
string Designation;
string Department;
protected override async Task OnInitializedAsync()
{
var employeeData = SAPService.GetSapEmployeeData(Pno);
Name = employeeData.Items[0].Name.ToString();
Designation = employeeData.Items[0].Designation.ToString();
Department = employeeData.Items[0].Department.ToString();
Pno = employeeData.Items[0].Pno.ToString();
//Date = DateTime.Now.Date;
}
}
Editor is loading...