Compare commits
2 Commits
ed968f39f9
...
b37d04a1e6
Author | SHA1 | Date | |
---|---|---|---|
![]() |
b37d04a1e6 | ||
![]() |
c615747f8a |
@ -97,9 +97,9 @@ namespace SWS.Electrical
|
|||||||
var listProjects = (await projectService.GetProjects(1, 1000)).Rows;
|
var listProjects = (await projectService.GetProjects(1, 1000)).Rows;
|
||||||
var p = listProjects.FirstOrDefault(a => a.ProjectId == curProjId);
|
var p = listProjects.FirstOrDefault(a => a.ProjectId == curProjId);
|
||||||
GlobalObject.curProject = p;
|
GlobalObject.curProject = p;
|
||||||
var obj = await projectService.InitProjInfo(curProjId, "");
|
//var obj = await projectService.InitProjInfo(curProjId, "");
|
||||||
var treeData = obj.First(x => (string)x["Name"] == "图纸树(按目录)")["data"];
|
//var treeData = obj.First(x => (string)x["Name"] == "图纸树(按目录)")["data"];
|
||||||
treeDrawings = JsonConvert.DeserializeObject<List<TreeModel>>(treeData.ToString());
|
//treeDrawings = JsonConvert.DeserializeObject<List<TreeModel>>(treeData.ToString());
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -49,7 +49,7 @@ namespace SWS.Electrical.ViewModels
|
|||||||
}
|
}
|
||||||
private ObservableCollection<DtoAutoPlotLayout> _listBasePoint;
|
private ObservableCollection<DtoAutoPlotLayout> _listBasePoint;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 基点元件列表
|
/// 正常基点元件列表
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public ObservableCollection<DtoAutoPlotLayout> listBasePoint
|
public ObservableCollection<DtoAutoPlotLayout> listBasePoint
|
||||||
{
|
{
|
||||||
@ -63,6 +63,22 @@ namespace SWS.Electrical.ViewModels
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
private ObservableCollection<DtoAutoPlotLayout> _listErrBasePoint;
|
||||||
|
/// <summary>
|
||||||
|
/// 异常基点元件列表
|
||||||
|
/// </summary>
|
||||||
|
public ObservableCollection<DtoAutoPlotLayout> listErrBasePoint
|
||||||
|
{
|
||||||
|
get { return this._listErrBasePoint; }
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if (value != this._listErrBasePoint)
|
||||||
|
{
|
||||||
|
this._listErrBasePoint = value;
|
||||||
|
RaisePropertyChanged(nameof(listErrBasePoint));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
private DtoAutoPlotLayout _SelectedTag;
|
private DtoAutoPlotLayout _SelectedTag;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 基点元件
|
/// 基点元件
|
||||||
@ -193,6 +209,24 @@ namespace SWS.Electrical.ViewModels
|
|||||||
get { return _inputValue; }
|
get { return _inputValue; }
|
||||||
set { _inputValue = value; OnPropertyChanged(nameof(inputValue)); }
|
set { _inputValue = value; OnPropertyChanged(nameof(inputValue)); }
|
||||||
}
|
}
|
||||||
|
private string _NormalTagCount = "正常元件";
|
||||||
|
/// <summary>
|
||||||
|
/// 正常位号
|
||||||
|
/// </summary>
|
||||||
|
public string NormalTagCount
|
||||||
|
{
|
||||||
|
get { return _NormalTagCount; }
|
||||||
|
set { _NormalTagCount = value; OnPropertyChanged(nameof(NormalTagCount)); }
|
||||||
|
}
|
||||||
|
private string _ErrTagCount = "异常元件";
|
||||||
|
/// <summary>
|
||||||
|
/// 异常位号
|
||||||
|
/// </summary>
|
||||||
|
public string ErrTagCount
|
||||||
|
{
|
||||||
|
get { return _ErrTagCount; }
|
||||||
|
set { _ErrTagCount = value; OnPropertyChanged(nameof(ErrTagCount)); }
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 命令事件
|
/// 命令事件
|
||||||
@ -238,6 +272,7 @@ namespace SWS.Electrical.ViewModels
|
|||||||
_ServiceDataItem = GlobalObject.container.Resolve<DataItemService>();
|
_ServiceDataItem = GlobalObject.container.Resolve<DataItemService>();
|
||||||
listDrawings = new ObservableCollection<DtoDrawing>();
|
listDrawings = new ObservableCollection<DtoDrawing>();
|
||||||
listBasePoint = new ObservableCollection<DtoAutoPlotLayout>();
|
listBasePoint = new ObservableCollection<DtoAutoPlotLayout>();
|
||||||
|
listErrBasePoint = new ObservableCollection<DtoAutoPlotLayout>();
|
||||||
listMsg = new ObservableCollection<TextBlock>();
|
listMsg = new ObservableCollection<TextBlock>();
|
||||||
var list = new ObservableCollection<KeyValueModel>();
|
var list = new ObservableCollection<KeyValueModel>();
|
||||||
list.Add(new KeyValueModel { Key = "甲板号", Value = "甲板号" });
|
list.Add(new KeyValueModel { Key = "甲板号", Value = "甲板号" });
|
||||||
@ -442,48 +477,91 @@ namespace SWS.Electrical.ViewModels
|
|||||||
BusyContent = "数据加载中...";
|
BusyContent = "数据加载中...";
|
||||||
AddMsg("开始查询布置图基点元件信息...");
|
AddMsg("开始查询布置图基点元件信息...");
|
||||||
List<DtoAutoPlotLayout> listDto = new List<DtoAutoPlotLayout>();
|
List<DtoAutoPlotLayout> listDto = new List<DtoAutoPlotLayout>();
|
||||||
|
List<DtoAutoPlotLayout> listErrDto = new List<DtoAutoPlotLayout>();
|
||||||
|
bool isBasePointErr = false;
|
||||||
|
bool isTagErr = false;
|
||||||
|
int index = 1;
|
||||||
|
int count = listSelDwg.Count;
|
||||||
foreach (var dwg in listSelDwg)
|
foreach (var dwg in listSelDwg)
|
||||||
{
|
{
|
||||||
|
BusyContent = $"数据加载中......{index}/{count}";
|
||||||
var list = await _ServicePlotLayout.GetBasePointByDwg(selectRange.Value, selectOperator.Value, inputValue, dwg.DrawingFileID);
|
var list = await _ServicePlotLayout.GetBasePointByDwg(selectRange.Value, selectOperator.Value, inputValue, dwg.DrawingFileID);
|
||||||
|
index++;
|
||||||
if (list == null)
|
if (list == null)
|
||||||
{ continue; }
|
{ continue; }
|
||||||
foreach (var basePoint in list)
|
foreach (var basePoint in list)
|
||||||
{
|
{
|
||||||
if (basePoint.area != null && basePoint.area.ToLower() == "err")
|
if (basePoint.area != null && basePoint.area.ToLower() == "err")
|
||||||
{ continue; }
|
{ isBasePointErr = true; }
|
||||||
|
else { isBasePointErr = false; }
|
||||||
if (basePoint.Tags.Any())
|
if (basePoint.Tags.Any())
|
||||||
{
|
{
|
||||||
foreach (var tag in basePoint.Tags)
|
foreach (var tag in basePoint.Tags)
|
||||||
{
|
{
|
||||||
if (tag.area != null && tag.area.ToLower() == "err")
|
if (tag.area != null && tag.area.ToLower() == "err")
|
||||||
{ continue; }
|
{ isTagErr = true; }
|
||||||
listDto.Add(new DtoAutoPlotLayout()
|
else { isTagErr = false; }
|
||||||
|
if (isBasePointErr || isTagErr)
|
||||||
{
|
{
|
||||||
IsSelected = true,
|
string strErr = isBasePointErr ? "基点异常;" : "";
|
||||||
DrawingFileID = dwg.DrawingFileID,
|
strErr += isTagErr ? "元件异常" : "";
|
||||||
DrawingFileName = dwg.DrawingFileName,
|
strErr = strErr.Replace(";","");
|
||||||
EngineDataID = basePoint.EngineDataID,
|
listErrDto.Add(new DtoAutoPlotLayout()
|
||||||
BasePointTagNumber = basePoint.TagNumber,
|
{
|
||||||
Scale = basePoint.Scale,
|
IsSelected = true,
|
||||||
FileId = basePoint.FileId,
|
DrawingFileID = dwg.DrawingFileID,
|
||||||
PixelOnDwg = basePoint.PixelOnDwg,
|
DrawingFileName = dwg.DrawingFileName,
|
||||||
IsNotDefaultSymbol = basePoint.IsNotDefaultSymbol,
|
EngineDataID = basePoint.EngineDataID,
|
||||||
X = basePoint.X,
|
BasePointTagNumber = basePoint.TagNumber,
|
||||||
XOff = basePoint.XOff,
|
Scale = basePoint.Scale,
|
||||||
YOff = basePoint.YOff,
|
FileId = basePoint.FileId,
|
||||||
deck = basePoint.deck,
|
PixelOnDwg = basePoint.PixelOnDwg,
|
||||||
area = basePoint.area,
|
IsNotDefaultSymbol = basePoint.IsNotDefaultSymbol,
|
||||||
AutoDrawing = "未绘制",
|
X = basePoint.X,
|
||||||
TagNumber = tag.TagNumber,
|
XOff = basePoint.XOff,
|
||||||
TagNumber_Upper = basePoint.TagNumber_Upper,
|
YOff = basePoint.YOff,
|
||||||
TagNumber_Lower = basePoint.TagNumber_Lower,
|
deck = basePoint.deck,
|
||||||
Tag = tag
|
area = basePoint.area,
|
||||||
});
|
AutoDrawing = strErr,
|
||||||
|
TagNumber = tag.TagNumber,
|
||||||
|
TagNumber_Upper = basePoint.TagNumber_Upper,
|
||||||
|
TagNumber_Lower = basePoint.TagNumber_Lower,
|
||||||
|
Tag = tag
|
||||||
|
});
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
listDto.Add(new DtoAutoPlotLayout()
|
||||||
|
{
|
||||||
|
IsSelected = true,
|
||||||
|
DrawingFileID = dwg.DrawingFileID,
|
||||||
|
DrawingFileName = dwg.DrawingFileName,
|
||||||
|
EngineDataID = basePoint.EngineDataID,
|
||||||
|
BasePointTagNumber = basePoint.TagNumber,
|
||||||
|
Scale = basePoint.Scale,
|
||||||
|
FileId = basePoint.FileId,
|
||||||
|
PixelOnDwg = basePoint.PixelOnDwg,
|
||||||
|
IsNotDefaultSymbol = basePoint.IsNotDefaultSymbol,
|
||||||
|
X = basePoint.X,
|
||||||
|
XOff = basePoint.XOff,
|
||||||
|
YOff = basePoint.YOff,
|
||||||
|
deck = basePoint.deck,
|
||||||
|
area = basePoint.area,
|
||||||
|
AutoDrawing = "未绘制",
|
||||||
|
TagNumber = tag.TagNumber,
|
||||||
|
TagNumber_Upper = basePoint.TagNumber_Upper,
|
||||||
|
TagNumber_Lower = basePoint.TagNumber_Lower,
|
||||||
|
Tag = tag
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
listBasePoint = new ObservableCollection<DtoAutoPlotLayout>(listDto);
|
listBasePoint = new ObservableCollection<DtoAutoPlotLayout>(listDto);
|
||||||
|
listErrBasePoint = new ObservableCollection<DtoAutoPlotLayout>(listErrDto);
|
||||||
|
NormalTagCount = $"正常元件({listBasePoint.Count}个)";
|
||||||
|
ErrTagCount = $"异常元件({listErrBasePoint.Count}个)";
|
||||||
IsSelectAll = listBasePoint.Any() ? true : false;
|
IsSelectAll = listBasePoint.Any() ? true : false;
|
||||||
AddMsg("布置图基点元件信息查询完成!");
|
AddMsg("布置图基点元件信息查询完成!");
|
||||||
IsBusy = false;
|
IsBusy = false;
|
||||||
|
@ -228,110 +228,161 @@
|
|||||||
Content="开始自动绘图"
|
Content="开始自动绘图"
|
||||||
FontSize="16" />
|
FontSize="16" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<DataGrid
|
<TabControl
|
||||||
x:Name="dgTag"
|
|
||||||
Grid.Row="2"
|
Grid.Row="2"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
Height="auto"
|
Height="auto">
|
||||||
AutoGenerateColumns="False"
|
<TabItem Header="{Binding NormalTagCount}">
|
||||||
CanUserAddRows="False"
|
<DataGrid
|
||||||
CanUserResizeColumns="True"
|
x:Name="dgTag"
|
||||||
HeadersVisibility="Column"
|
AutoGenerateColumns="False"
|
||||||
ItemsSource="{Binding listBasePoint, Mode=TwoWay}"
|
CanUserAddRows="False"
|
||||||
LoadingRow="dgTag_LoadingRow"
|
CanUserResizeColumns="True"
|
||||||
RowHeight="22"
|
HeadersVisibility="Column"
|
||||||
ScrollViewer.VerticalScrollBarVisibility="Auto"
|
ItemsSource="{Binding listBasePoint, Mode=TwoWay}"
|
||||||
SelectedItem="{Binding SelectedTag, Mode=TwoWay}"
|
LoadingRow="dgTag_LoadingRow"
|
||||||
SelectionMode="Single">
|
RowHeight="22"
|
||||||
<DataGrid.Columns>
|
ScrollViewer.VerticalScrollBarVisibility="Auto"
|
||||||
<!--<DataGridCheckBoxColumn Binding="{Binding IsSelected, Mode=TwoWay}">
|
SelectedItem="{Binding SelectedTag, Mode=TwoWay}"
|
||||||
<DataGridCheckBoxColumn.HeaderTemplate>
|
SelectionMode="Single">
|
||||||
<DataTemplate>
|
<DataGrid.Columns>
|
||||||
<CheckBox
|
<!--<DataGridCheckBoxColumn Binding="{Binding IsSelected, Mode=TwoWay}">
|
||||||
x:Name="ckbSelectedAll"
|
<DataGridCheckBoxColumn.HeaderTemplate>
|
||||||
Margin="4"
|
<DataTemplate>
|
||||||
Click="CheckAll_Click"
|
<CheckBox
|
||||||
IsChecked="{Binding DataContext.IsSelectAll, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, RelativeSource={RelativeSource AncestorType=UserControl, AncestorLevel=1}}" />
|
x:Name="ckbSelectedAll"
|
||||||
</DataTemplate>
|
Margin="4"
|
||||||
</DataGridCheckBoxColumn.HeaderTemplate>
|
Click="CheckAll_Click"
|
||||||
</DataGridCheckBoxColumn>-->
|
IsChecked="{Binding DataContext.IsSelectAll, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, RelativeSource={RelativeSource AncestorType=UserControl, AncestorLevel=1}}" />
|
||||||
<DataGridTemplateColumn Width="30">
|
</DataTemplate>
|
||||||
<DataGridTemplateColumn.Header>
|
</DataGridCheckBoxColumn.HeaderTemplate>
|
||||||
<CheckBox IsChecked="{Binding DataContext.IsSelectAll, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, RelativeSource={RelativeSource AncestorType=UserControl, AncestorLevel=1}}">
|
</DataGridCheckBoxColumn>-->
|
||||||
<i:Interaction.Triggers>
|
<DataGridTemplateColumn Width="30">
|
||||||
<i:EventTrigger EventName="Click">
|
<DataGridTemplateColumn.Header>
|
||||||
<i:InvokeCommandAction Command="{Binding DataContext.Command_SelectedAll, RelativeSource={RelativeSource AncestorType=UserControl, AncestorLevel=1}}" />
|
<CheckBox IsChecked="{Binding DataContext.IsSelectAll, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, RelativeSource={RelativeSource AncestorType=UserControl, AncestorLevel=1}}">
|
||||||
</i:EventTrigger>
|
<i:Interaction.Triggers>
|
||||||
</i:Interaction.Triggers>
|
<i:EventTrigger EventName="Click">
|
||||||
</CheckBox>
|
<i:InvokeCommandAction Command="{Binding DataContext.Command_SelectedAll, RelativeSource={RelativeSource AncestorType=UserControl, AncestorLevel=1}}" />
|
||||||
</DataGridTemplateColumn.Header>
|
</i:EventTrigger>
|
||||||
<DataGridTemplateColumn.CellTemplate>
|
</i:Interaction.Triggers>
|
||||||
<DataTemplate>
|
</CheckBox>
|
||||||
<CheckBox
|
</DataGridTemplateColumn.Header>
|
||||||
HorizontalAlignment="Center"
|
<DataGridTemplateColumn.CellTemplate>
|
||||||
VerticalAlignment="Center"
|
<DataTemplate>
|
||||||
IsChecked="{Binding IsSelected, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
|
<CheckBox
|
||||||
<i:Interaction.Triggers>
|
HorizontalAlignment="Center"
|
||||||
<i:EventTrigger EventName="Click">
|
VerticalAlignment="Center"
|
||||||
<i:InvokeCommandAction Command="{Binding DataContext.Command_SelectedTag, RelativeSource={RelativeSource AncestorType=UserControl, AncestorLevel=1}}" CommandParameter="{Binding TagNumber}" />
|
IsChecked="{Binding IsSelected, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
|
||||||
</i:EventTrigger>
|
<i:Interaction.Triggers>
|
||||||
</i:Interaction.Triggers>
|
<i:EventTrigger EventName="Click">
|
||||||
</CheckBox>
|
<i:InvokeCommandAction Command="{Binding DataContext.Command_SelectedTag, RelativeSource={RelativeSource AncestorType=UserControl, AncestorLevel=1}}" CommandParameter="{Binding TagNumber}" />
|
||||||
</DataTemplate>
|
</i:EventTrigger>
|
||||||
</DataGridTemplateColumn.CellTemplate>
|
</i:Interaction.Triggers>
|
||||||
</DataGridTemplateColumn>
|
</CheckBox>
|
||||||
<DataGridTemplateColumn Width="30" Header="序号">
|
</DataTemplate>
|
||||||
<DataGridTemplateColumn.CellTemplate>
|
</DataGridTemplateColumn.CellTemplate>
|
||||||
<DataTemplate>
|
</DataGridTemplateColumn>
|
||||||
<TextBlock HorizontalAlignment="Center" Text="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=DataGridRow}, Path=Header}" />
|
<DataGridTemplateColumn Width="30" Header="序号">
|
||||||
</DataTemplate>
|
<DataGridTemplateColumn.CellTemplate>
|
||||||
</DataGridTemplateColumn.CellTemplate>
|
<DataTemplate>
|
||||||
</DataGridTemplateColumn>
|
<TextBlock HorizontalAlignment="Center" Text="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=DataGridRow}, Path=Header}" />
|
||||||
<!--<DataGridCheckBoxColumn
|
</DataTemplate>
|
||||||
Width="30"
|
</DataGridTemplateColumn.CellTemplate>
|
||||||
Binding="{Binding isChecked}"
|
</DataGridTemplateColumn>
|
||||||
Header=""
|
<!--<DataGridCheckBoxColumn
|
||||||
IsReadOnly="False" />-->
|
Width="30"
|
||||||
<DataGridTextColumn
|
Binding="{Binding isChecked}"
|
||||||
Width="0.65*"
|
Header=""
|
||||||
Binding="{Binding DrawingFileName}"
|
IsReadOnly="False" />-->
|
||||||
Header="布置图"
|
<DataGridTextColumn
|
||||||
IsReadOnly="True" />
|
Width="0.65*"
|
||||||
<DataGridTextColumn
|
Binding="{Binding DrawingFileName}"
|
||||||
Width="0.35*"
|
Header="布置图"
|
||||||
Binding="{Binding BasePointTagNumber}"
|
IsReadOnly="True" />
|
||||||
Header="基点"
|
<DataGridTextColumn
|
||||||
IsReadOnly="True" />
|
Width="0.35*"
|
||||||
<DataGridTextColumn
|
Binding="{Binding BasePointTagNumber}"
|
||||||
Width="110"
|
Header="基点"
|
||||||
Binding="{Binding TagNumber}"
|
IsReadOnly="True" />
|
||||||
Header="元件位号"
|
<DataGridTextColumn
|
||||||
IsReadOnly="True" />
|
Width="110"
|
||||||
<DataGridTextColumn
|
Binding="{Binding TagNumber}"
|
||||||
Width="60"
|
Header="元件位号"
|
||||||
Binding="{Binding AutoDrawing}"
|
IsReadOnly="True" />
|
||||||
Header="绘制"
|
<DataGridTextColumn
|
||||||
IsReadOnly="True" />
|
Width="60"
|
||||||
<DataGridTextColumn
|
Binding="{Binding AutoDrawing}"
|
||||||
Width="70"
|
Header="绘制"
|
||||||
Binding="{Binding TagPixelOnDwg}"
|
IsReadOnly="True" />
|
||||||
Header="句柄"
|
<DataGridTextColumn
|
||||||
IsReadOnly="True" />
|
Width="70"
|
||||||
</DataGrid.Columns>
|
Binding="{Binding TagPixelOnDwg}"
|
||||||
<DataGrid.RowStyle>
|
Header="句柄"
|
||||||
<Style TargetType="DataGridRow">
|
IsReadOnly="True" />
|
||||||
<Setter Property="Background" Value="White" />
|
</DataGrid.Columns>
|
||||||
<Style.Triggers>
|
<DataGrid.RowStyle>
|
||||||
<DataTrigger Binding="{Binding AutoDrawing}" Value="已绘制">
|
<Style TargetType="DataGridRow">
|
||||||
<Setter Property="Background" Value="LightGreen" />
|
<Setter Property="Background" Value="White" />
|
||||||
</DataTrigger>
|
<Style.Triggers>
|
||||||
<DataTrigger Binding="{Binding AutoDrawing}" Value="已存在">
|
<DataTrigger Binding="{Binding AutoDrawing}" Value="已绘制">
|
||||||
<Setter Property="Background" Value="LightYellow" />
|
<Setter Property="Background" Value="LightGreen" />
|
||||||
</DataTrigger>
|
</DataTrigger>
|
||||||
</Style.Triggers>
|
<DataTrigger Binding="{Binding AutoDrawing}" Value="已存在">
|
||||||
</Style>
|
<Setter Property="Background" Value="LightYellow" />
|
||||||
</DataGrid.RowStyle>
|
</DataTrigger>
|
||||||
</DataGrid>
|
</Style.Triggers>
|
||||||
|
</Style>
|
||||||
|
</DataGrid.RowStyle>
|
||||||
|
</DataGrid>
|
||||||
|
</TabItem>
|
||||||
|
<TabItem Header="{Binding ErrTagCount}">
|
||||||
|
<DataGrid
|
||||||
|
x:Name="dgErrTag"
|
||||||
|
AutoGenerateColumns="False"
|
||||||
|
CanUserAddRows="False"
|
||||||
|
CanUserResizeColumns="True"
|
||||||
|
HeadersVisibility="Column"
|
||||||
|
ItemsSource="{Binding listErrBasePoint, Mode=TwoWay}"
|
||||||
|
LoadingRow="dgTag_LoadingRow"
|
||||||
|
RowHeight="22"
|
||||||
|
ScrollViewer.VerticalScrollBarVisibility="Auto"
|
||||||
|
SelectionMode="Single">
|
||||||
|
<DataGrid.Columns>
|
||||||
|
|
||||||
|
<DataGridTemplateColumn Width="50" Header="序号">
|
||||||
|
<DataGridTemplateColumn.CellTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBlock HorizontalAlignment="Center" Text="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=DataGridRow}, Path=Header}" />
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTemplateColumn.CellTemplate>
|
||||||
|
</DataGridTemplateColumn>
|
||||||
|
|
||||||
|
<DataGridTextColumn
|
||||||
|
Width="0.65*"
|
||||||
|
Binding="{Binding DrawingFileName}"
|
||||||
|
Header="布置图"
|
||||||
|
IsReadOnly="True" />
|
||||||
|
<DataGridTextColumn
|
||||||
|
Width="0.35*"
|
||||||
|
Binding="{Binding BasePointTagNumber}"
|
||||||
|
Header="基点"
|
||||||
|
IsReadOnly="True" />
|
||||||
|
<DataGridTextColumn
|
||||||
|
Width="110"
|
||||||
|
Binding="{Binding TagNumber}"
|
||||||
|
Header="元件位号"
|
||||||
|
IsReadOnly="True" />
|
||||||
|
<DataGridTextColumn
|
||||||
|
Width="110"
|
||||||
|
Binding="{Binding AutoDrawing}"
|
||||||
|
Header="绘制"
|
||||||
|
IsReadOnly="True" />
|
||||||
|
|
||||||
|
</DataGrid.Columns>
|
||||||
|
</DataGrid>
|
||||||
|
</TabItem>
|
||||||
|
</TabControl>
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid
|
<Grid
|
||||||
Grid.Row="2"
|
Grid.Row="2"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#pragma checksum "..\..\..\Views\DialogAutoArrangeLayout.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "D0C5F0216DF6BCDDDA98AFD5EEED25E2B5C8BB0236746F3B9CC6B583DD7624FD"
|
#pragma checksum "..\..\..\Views\DialogAutoArrangeLayout.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "D381518E6A709FE4FD61B7B59C0FE6A02830580BBED56CC9959DA9E027AC6A01"
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// 此代码由工具生成。
|
// 此代码由工具生成。
|
||||||
@ -85,13 +85,21 @@ namespace SWS.Electrical.Views {
|
|||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
|
|
||||||
#line 232 "..\..\..\Views\DialogAutoArrangeLayout.xaml"
|
#line 237 "..\..\..\Views\DialogAutoArrangeLayout.xaml"
|
||||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
internal System.Windows.Controls.DataGrid dgTag;
|
internal System.Windows.Controls.DataGrid dgTag;
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
|
|
||||||
|
#line 340 "..\..\..\Views\DialogAutoArrangeLayout.xaml"
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
|
internal System.Windows.Controls.DataGrid dgErrTag;
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
|
||||||
private bool _contentLoaded;
|
private bool _contentLoaded;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -128,9 +136,18 @@ namespace SWS.Electrical.Views {
|
|||||||
case 2:
|
case 2:
|
||||||
this.dgTag = ((System.Windows.Controls.DataGrid)(target));
|
this.dgTag = ((System.Windows.Controls.DataGrid)(target));
|
||||||
|
|
||||||
#line 241 "..\..\..\Views\DialogAutoArrangeLayout.xaml"
|
#line 243 "..\..\..\Views\DialogAutoArrangeLayout.xaml"
|
||||||
this.dgTag.LoadingRow += new System.EventHandler<System.Windows.Controls.DataGridRowEventArgs>(this.dgTag_LoadingRow);
|
this.dgTag.LoadingRow += new System.EventHandler<System.Windows.Controls.DataGridRowEventArgs>(this.dgTag_LoadingRow);
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
return;
|
||||||
|
case 3:
|
||||||
|
this.dgErrTag = ((System.Windows.Controls.DataGrid)(target));
|
||||||
|
|
||||||
|
#line 346 "..\..\..\Views\DialogAutoArrangeLayout.xaml"
|
||||||
|
this.dgErrTag.LoadingRow += new System.EventHandler<System.Windows.Controls.DataGridRowEventArgs>(this.dgTag_LoadingRow);
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
return;
|
return;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#pragma checksum "..\..\..\Views\DialogAutoArrangeLayout.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "D0C5F0216DF6BCDDDA98AFD5EEED25E2B5C8BB0236746F3B9CC6B583DD7624FD"
|
#pragma checksum "..\..\..\Views\DialogAutoArrangeLayout.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "D381518E6A709FE4FD61B7B59C0FE6A02830580BBED56CC9959DA9E027AC6A01"
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// 此代码由工具生成。
|
// 此代码由工具生成。
|
||||||
@ -85,13 +85,21 @@ namespace SWS.Electrical.Views {
|
|||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
|
|
||||||
#line 232 "..\..\..\Views\DialogAutoArrangeLayout.xaml"
|
#line 237 "..\..\..\Views\DialogAutoArrangeLayout.xaml"
|
||||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
internal System.Windows.Controls.DataGrid dgTag;
|
internal System.Windows.Controls.DataGrid dgTag;
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
|
|
||||||
|
#line 340 "..\..\..\Views\DialogAutoArrangeLayout.xaml"
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
|
internal System.Windows.Controls.DataGrid dgErrTag;
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
|
||||||
private bool _contentLoaded;
|
private bool _contentLoaded;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -128,9 +136,18 @@ namespace SWS.Electrical.Views {
|
|||||||
case 2:
|
case 2:
|
||||||
this.dgTag = ((System.Windows.Controls.DataGrid)(target));
|
this.dgTag = ((System.Windows.Controls.DataGrid)(target));
|
||||||
|
|
||||||
#line 241 "..\..\..\Views\DialogAutoArrangeLayout.xaml"
|
#line 243 "..\..\..\Views\DialogAutoArrangeLayout.xaml"
|
||||||
this.dgTag.LoadingRow += new System.EventHandler<System.Windows.Controls.DataGridRowEventArgs>(this.dgTag_LoadingRow);
|
this.dgTag.LoadingRow += new System.EventHandler<System.Windows.Controls.DataGridRowEventArgs>(this.dgTag_LoadingRow);
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
return;
|
||||||
|
case 3:
|
||||||
|
this.dgErrTag = ((System.Windows.Controls.DataGrid)(target));
|
||||||
|
|
||||||
|
#line 346 "..\..\..\Views\DialogAutoArrangeLayout.xaml"
|
||||||
|
this.dgErrTag.LoadingRow += new System.EventHandler<System.Windows.Controls.DataGridRowEventArgs>(this.dgTag_LoadingRow);
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
return;
|
return;
|
||||||
|
Binary file not shown.
@ -1,4 +1,4 @@
|
|||||||
#pragma checksum "..\..\..\..\Views\DialogSignalManagements\DialogSignalManagement.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "D4B655A725F9DA5CEF801330CC2E000E8A952FC6E92D22159739897F8A32A6A6"
|
#pragma checksum "..\..\..\..\Views\DialogSignalManagements\DialogSignalManagement.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "9BC88517AA32E047BA6D8CB1D1F60D2837D4E22C18FF9DE0448C2276C8824A00"
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// 此代码由工具生成。
|
// 此代码由工具生成。
|
||||||
@ -86,7 +86,7 @@ namespace SWS.WPF.Views {
|
|||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
|
|
||||||
#line 233 "..\..\..\..\Views\DialogSignalManagements\DialogSignalManagement.xaml"
|
#line 231 "..\..\..\..\Views\DialogSignalManagements\DialogSignalManagement.xaml"
|
||||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
internal System.Windows.Controls.TextBlock txtReviewCountdown;
|
internal System.Windows.Controls.TextBlock txtReviewCountdown;
|
||||||
|
|
||||||
@ -94,7 +94,7 @@ namespace SWS.WPF.Views {
|
|||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
|
|
||||||
#line 252 "..\..\..\..\Views\DialogSignalManagements\DialogSignalManagement.xaml"
|
#line 250 "..\..\..\..\Views\DialogSignalManagements\DialogSignalManagement.xaml"
|
||||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
internal System.Windows.Controls.TextBlock txtConstructionCountdown;
|
internal System.Windows.Controls.TextBlock txtConstructionCountdown;
|
||||||
|
|
||||||
@ -102,7 +102,7 @@ namespace SWS.WPF.Views {
|
|||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
|
|
||||||
#line 308 "..\..\..\..\Views\DialogSignalManagements\DialogSignalManagement.xaml"
|
#line 306 "..\..\..\..\Views\DialogSignalManagements\DialogSignalManagement.xaml"
|
||||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
internal SWS.CustomControl.IconButton PopupButton;
|
internal SWS.CustomControl.IconButton PopupButton;
|
||||||
|
|
||||||
@ -110,7 +110,7 @@ namespace SWS.WPF.Views {
|
|||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
|
|
||||||
#line 318 "..\..\..\..\Views\DialogSignalManagements\DialogSignalManagement.xaml"
|
#line 317 "..\..\..\..\Views\DialogSignalManagements\DialogSignalManagement.xaml"
|
||||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
internal System.Windows.Controls.Primitives.Popup CustomPopup;
|
internal System.Windows.Controls.Primitives.Popup CustomPopup;
|
||||||
|
|
||||||
@ -118,7 +118,7 @@ namespace SWS.WPF.Views {
|
|||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
|
|
||||||
#line 367 "..\..\..\..\Views\DialogSignalManagements\DialogSignalManagement.xaml"
|
#line 368 "..\..\..\..\Views\DialogSignalManagements\DialogSignalManagement.xaml"
|
||||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
internal SWS.CustomControl.IconButton myButton;
|
internal SWS.CustomControl.IconButton myButton;
|
||||||
|
|
||||||
@ -126,7 +126,7 @@ namespace SWS.WPF.Views {
|
|||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
|
|
||||||
#line 400 "..\..\..\..\Views\DialogSignalManagements\DialogSignalManagement.xaml"
|
#line 401 "..\..\..\..\Views\DialogSignalManagements\DialogSignalManagement.xaml"
|
||||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
internal Telerik.Windows.Controls.RadTreeListView RadGridView1;
|
internal Telerik.Windows.Controls.RadTreeListView RadGridView1;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user