Selaa lähdekoodia

添加FCC配置页面

DFS_Shuo_Chen 1 vuosi sitten
vanhempi
commit
2b1cd6fd5e
1 muutettua tiedostoa jossa 171 lisäystä ja 0 poistoa
  1. 171 0
      src/XF.Common.Api/Pages/FCC/FccIndex.razor

+ 171 - 0
src/XF.Common.Api/Pages/FCC/FccIndex.razor

@@ -0,0 +1,171 @@
+@namespace XF.Common.Pages.SiteConfig
+@page "/FCC"
+@using System.ComponentModel.DataAnnotations;
+@using System.ComponentModel
+@using System.Reflection
+@using System.Text.Json
+@using AntDesign;
+@using Microsoft.AspNetCore.Components;
+@using Microsoft.AspNetCore.Components.Authorization;
+@using XF.Common.Core.VM;
+@using XF.Common.Core.Server;
+
+
+
+<PageContainer Title="FCC油机配置">
+
+
+	<ChildContent>
+
+
+		<Form Model="@model" Name="advanced_search" Class="ant-advanced-search-form">
+			<GridRow>
+				<GridCol Span="10">
+					<FormItem Label="恒山IC卡UI板">
+						<Input @bind-Value="context.ui_number" Placeholder="请输入个数" />
+					</FormItem>
+				</GridCol>
+
+
+
+				<GridCol Span="2" />
+
+				<GridCol Span="9">
+					<FormItem Label="BUID">
+						<Input Placeholder="请输入" @bind-Value="context.buid" />
+					</FormItem>
+				</GridCol>
+			</GridRow>
+			<br />
+			<br />
+
+			<GridRow>
+				<GridCol Span="10">
+					<FormItem Label="Sps传输服务App">
+						<Input Placeholder="请输入" @bind-Value="context.sps_app" />
+					</FormItem>
+				</GridCol>
+
+				<GridCol Span="2" />
+
+				<GridCol Span="9">
+					<label>激活配置</label>
+					<Switch @bind-Checked="context.config_active" />
+				</GridCol>
+			</GridRow>
+			<br />
+			<br />
+
+
+
+			<div>
+				FCC小程序开启(PumpInfoToRemote):
+				<Switch @bind-Checked="model.fcc_remote" />
+			</div>
+
+
+
+			<br />
+			<br />
+
+
+			<GridRow>
+				<GridCol Span="7">
+					<lable style="margin-right:10px">IposPlus:</lable>
+
+					<RadioGroup @bind-Value="context.ipos_cardtype">
+						<Radio Value="0">无卡</Radio>
+						<Radio Value="1">感应卡</Radio>
+						<Radio Value="2">CPU卡</Radio>
+					</RadioGroup>
+				</GridCol>
+
+				<GridCol Span="2" />
+
+				<GridCol Span="8">
+
+					<RadioGroup @bind-Value="context.ipos_authmode">
+						<Radio Value="0">卡自助授权</Radio>
+						<Radio Value="1">后台自动授权</Radio>
+					</RadioGroup>
+				</GridCol>
+
+
+
+			</GridRow>
+			<br />
+			<br />
+			<br />
+
+
+
+
+			<FormItem>
+				<GridRow Justify="center">
+					<GridCol Span="6">
+						<Button Size="large" Type="@ButtonType.Primary" HtmlType="submit">
+							下载FCC脚本
+						</Button>
+					</GridCol>
+				</GridRow>
+			</FormItem>
+
+
+
+		</Form>
+
+
+		<style>
+			[data-theme='compact'] .ant-advanced-search-form,
+			.ant-advanced-search-form {
+				padding: 24px;
+				background: #fbfbfb;
+				border: 1px solid #d9d9d9;
+				border-radius: 2px;
+			}
+
+
+				[data-theme='compact'] .ant-advanced-search-form .ant-form-item-control-wrapper,
+				.ant-advanced-search-form .ant-form-item-control-wrapper {
+					flex: 1;
+				}
+		</style>
+
+	</ChildContent>
+
+</PageContainer>
+
+
+
+
+
+
+
+@code {
+	class FccInfo
+	{
+
+		[Required]
+		public int? ui_number { get; set; }
+
+		[Required]
+		public string? buid { get; set; }
+		[Required]
+		public string? sps_app { get; set; }
+
+		[Required]
+		public bool config_active { get; set; } = false;
+		[Required]
+		public bool fcc_remote { get; set; } = true;
+
+		[Required]
+		public int ipos_cardtype { get; set; } = 0;
+		[Required]
+		public int ipos_authmode { get; set; } = 0;
+
+
+	}
+
+	FccInfo model = new FccInfo();
+}
+