[성현모] Search UI 추가

This commit is contained in:
SHM
2025-08-29 16:54:59 +09:00
parent adc66987c0
commit dc09a54ec8
5 changed files with 57 additions and 24 deletions

View File

@ -1,5 +1,5 @@
{ {
"ApplicationName": "KIP Web Tools", "ApplicationName": "CPXV2 Web Tools",
"Server": { "Server": {
"Address": "https://*", "Address": "https://*",
"Port": 11000, "Port": 11000,

View File

@ -9,6 +9,7 @@
<link rel="stylesheet" href="app.css" /> <link rel="stylesheet" href="app.css" />
<link rel="stylesheet" href="Web.Tra.styles.css" /> <link rel="stylesheet" href="Web.Tra.styles.css" />
<link rel="icon" type="image/png" href="favicon.png" /> <link rel="icon" type="image/png" href="favicon.png" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&icon_names=search" />
<HeadOutlet /> <HeadOutlet />
<RadzenTheme Theme="material-dark" @rendermode="InteractiveServer" /> <RadzenTheme Theme="material-dark" @rendermode="InteractiveServer" />
</head> </head>

View File

@ -3,34 +3,40 @@
@inherits LayoutComponentBase @inherits LayoutComponentBase
@inject ConfigService<WebClientConfig> configService @inject ConfigService<WebClientConfig> configService
@inject NavigationManager NavigationManager
<RadzenComponents @rendermode="InteractiveServer" /> <RadzenComponents @rendermode="InteractiveServer" />
<RadzenLayout> <RadzenLayout>
<RadzenHeader> <RadzenHeader Style="height: 5rem; font-size: 2rem;" class="rz-px-5">
<RadzenStack Orientation="Orientation.Horizontal" AlignItems="AlignItems.Center" Gap="0"> <RadzenStack Orientation="Orientation.Horizontal" AlignItems="AlignItems.Center" JustifyContent="JustifyContent.SpaceBetween" Gap="0">
<RadzenSidebarToggle Click="@(() => sidebarExpanded = !sidebarExpanded)" /> <RadzenStack Style="height: 5rem;" Orientation="Orientation.Horizontal" AlignItems="AlignItems.Center" JustifyContent="JustifyContent.Center">
<RadzenLabel Text="@configService?.GetConfig()?.ApplicationName" /> <RadzenLabel Text="@($"{ApplicationName}")" />
</RadzenStack>
<div class="rz-mr-2">
<RadzenAppearanceToggle />
</div>
</RadzenStack> </RadzenStack>
</RadzenHeader> </RadzenHeader>
<RadzenSidebar @bind-Expanded="@sidebarExpanded"> <RadzenBody Style="margin:0; padding:0;">
<RadzenPanelMenu>
<RadzenPanelMenuItem Text="Home" Icon="home" Path="/" />
<RadzenPanelMenuItem Text="TRA" Icon="assessment" Path="/tra" />
</RadzenPanelMenu>
</RadzenSidebar>
<RadzenBody>
<div class="rz-p-4">
@Body @Body
</div>
</RadzenBody> </RadzenBody>
<RadzenFooter>
Footer
</RadzenFooter>
</RadzenLayout> </RadzenLayout>
@code { @code {
bool sidebarExpanded = true; bool sidebarExpanded = true;
string ApplicationName = string.Empty;
string Page = string.Empty;
protected override async Task OnInitializedAsync()
{
ApplicationName = configService?.GetConfig()?.ApplicationName;
Page = NavigationManager.ToBaseRelativePath(NavigationManager.Uri);
}
private void OnClickMenu(MenuItemEventArgs args)
{
Page = args.Text;
}
} }

View File

@ -2,11 +2,36 @@
@using Web.Tra.Services @using Web.Tra.Services
@inject CPXV2LogService CPXV2LogService @inject CPXV2LogService CPXV2LogService
<h3>TRA</h3> <RadzenStack Style="width:100%; background-color:var(--rz-primary-lighter);" class="rz-border-bottom rz-p-3" Orientation="Orientation.Horizontal" AlignItems="AlignItems.Start" JustifyContent="JustifyContent.Start">
<!--Search Block-->
<RadzenStack Style="height:12rem; width:fit-content;" class="rz-border-right rz-pr-5" Orientation="Orientation.Horizontal" AlignItems="AlignItems.Start" JustifyContent="JustifyContent.Start">
<!--Date Picker Block-->
<RadzenStack Style="font-size:1.3rem;" Orientation="Orientation.Vertical" AlignItems="AlignItems.Start" JustifyContent="JustifyContent.Center">
<RadzenStack Style="width: 20rem;" Orientation="Orientation.Horizontal" JustifyContent="JustifyContent.SpaceBetween">
<RadzenLabel Text="Begin"></RadzenLabel>
<RadzenDatePicker TValue="DateTime"></RadzenDatePicker>
</RadzenStack>
<RadzenStack Style="width:20rem;" Orientation="Orientation.Horizontal" JustifyContent="JustifyContent.SpaceBetween">
<RadzenLabel Text="End"></RadzenLabel>
<RadzenDatePicker TValue="DateTime"></RadzenDatePicker>
</RadzenStack>
</RadzenStack>
<RadzenStack Style="cursor: pointer;" class="" Orientation="Orientation.Vertical" AlignItems="AlignItems.Center" JustifyContent="JustifyContent.Start" @onclick="@OnSearch">
<RadzenIcon IconStyle="IconStyle.Warning" Style="font-size: 3.5rem; font-weight:400;" Icon="search"></RadzenIcon>
<RadzenLabel Style="font-size: 1.2rem; cursor:pointer;" Text="Search"></RadzenLabel>
</RadzenStack>
</RadzenStack>
</RadzenStack>
@code { @code {
protected override async Task OnInitializedAsync() protected override async Task OnInitializedAsync()
{ {
CPXV2LogService.Test(); }
private async Task OnSearch()
{
await CPXV2LogService.Test();
} }
} }

View File

@ -1,5 +1,6 @@
html, body { html, body {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 62.5% !important;
} }
a, .btn-link { a, .btn-link {