change - 参数配置页面修改

dev
wenjy 7 months ago
parent dd97e86db1
commit 47fb0844d2

@ -48,7 +48,7 @@ namespace SlnMesnac.Business
public List<BaseConfigInfo> GetConfigInfos()
{
_configInfoService.GetConfigInfos(ref _configInfos);
//_configInfoService.GetConfigInfos(ref _configInfos);
return _configInfos;
}

@ -8,9 +8,6 @@ namespace SlnMesnac.Repository.service
{
public interface IBaseConfigInfoService:IBaseService<BaseConfigInfo>
{
void GetConfigInfos(ref List<BaseConfigInfo> configInfos);
void SaveConfigInfo(BaseConfigInfo configInfo);
void UpdateConfigInfo(BaseConfigInfo configInfo);

@ -40,11 +40,6 @@ namespace SlnMesnac.Repository.service.Impl
_serviceProvider = serviceProvider;
}
public void GetConfigInfos(ref List<BaseConfigInfo> _configInfos)
{
//RefreshLocalTask(ref _configInfos);
}
public void SaveConfigInfo(BaseConfigInfo configInfo)
{
bool isRes = base._rep.Insert(configInfo);

@ -12,7 +12,7 @@
<RowDefinition Height="1*"/>
<RowDefinition Height="8*"/>
</Grid.RowDefinitions>
<Border Grid.Row="0" BorderBrush="Green" BorderThickness="2" CornerRadius="5" Margin="0,0,0,10">
<Border Grid.Row="0" BorderBrush="Green" BorderThickness="0" CornerRadius="5" Margin="0,0,0,10">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center">
<TextBlock Text="配置名称:" FontSize="20" Foreground="White" VerticalAlignment="Center" Margin="80,0,10,0"/>
@ -25,7 +25,7 @@
</StackPanel>
</Border>
<Border Grid.Row="1" BorderBrush="Green" BorderThickness="2" CornerRadius="5" Margin="0,0,0,10">
<Border Grid.Row="1" BorderBrush="Green" BorderThickness="0" CornerRadius="5" Margin="0,0,0,10">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center">
<TextBox Text="{Binding SelectedItem.ConfigId, ElementName=dgvMH}" x:Name="ConfigId" Foreground="White" FontSize="18" Width="50" Visibility="Hidden"/>
@ -46,7 +46,7 @@
</StackPanel>
</Border>
<Border Grid.Row="2" BorderBrush="Green" BorderThickness="2" CornerRadius="5" Margin="0,0,0,10">
<Border Grid.Row="2" BorderBrush="Green" BorderThickness="0" CornerRadius="5" Margin="0,0,0,10">
<DataGrid x:Name="dgvMH" Grid.Row="0" ItemsSource="{Binding TablesDataGrid}" Background="Transparent"
FontSize="15" ColumnHeaderHeight="35"
RowHeight="31" AutoGenerateColumns="False" RowHeaderWidth="0"

@ -51,6 +51,7 @@ namespace SlnMesnac.WPF.ViewModel
ResetSearchCommand = new RelayCommand(ResetSearch);
Query(string.Empty);
}
@ -110,6 +111,7 @@ namespace SlnMesnac.WPF.ViewModel
ConfigKey = configKey,
ConfigName = configName,
ConfigValue = configValue,
IsFlag = 1,
CreateTime = DateTime.Now,
};
@ -125,6 +127,7 @@ namespace SlnMesnac.WPF.ViewModel
ConfigKey = configKey,
ConfigName = configName,
ConfigValue = configValue,
IsFlag = 1,
CreateTime = DateTime.Now,
};

Loading…
Cancel
Save