개정판 ad3c4ac3
add Dialog validation 완성
Change-Id: Idce8b540e3f9c356d9ce1c4929022d433922639e
ConvertService/ServiceBase/Markus.Service.StationController/Views/ConvertAddDialog.xaml | ||
---|---|---|
57 | 57 |
<RowDefinition /> |
58 | 58 |
<RowDefinition Height="Auto" /> |
59 | 59 |
<RowDefinition Height="Auto" /> |
60 |
|
|
60 | 61 |
</Grid.RowDefinitions> |
61 | 62 |
|
62 | 63 |
<Grid Grid.Row="0" Margin="10" Grid.ColumnSpan="2"> |
... | ... | |
70 | 71 |
<ColumnDefinition Width="1.5*"/> |
71 | 72 |
</Grid.ColumnDefinitions> |
72 | 73 |
<Grid.RowDefinitions> |
74 |
<RowDefinition Height="12"/> |
|
73 | 75 |
<RowDefinition /> |
76 |
<RowDefinition Height="12"/> |
|
74 | 77 |
<RowDefinition /> |
75 | 78 |
</Grid.RowDefinitions> |
76 |
<TextBlock Grid.Row="0" Text="Project NO" /> |
|
77 |
<TextBlock Grid.Row="0" Grid.Column="4" Text="DOCUMENT ID" /> |
|
78 |
<TextBlock Grid.Row="1" Grid.Column="0" Text="Document URL" /> |
|
79 |
<TextBlock Grid.Row="1" Text="Project NO" /> |
|
80 |
<TextBlock Grid.Row="1" Grid.Column="4" Text="DOCUMENT ID" /> |
|
81 |
<TextBlock Grid.Row="3" Grid.Column="0" Text="Document URL" /> |
|
82 |
|
|
83 |
<TextBox Text="{Binding ConverAdd_Project_NO, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Grid.Row="1" Grid.Column="2" BorderBrush="{Binding Project_NO_Border}" /> |
|
84 |
<TextBox Text="{Binding ConverAdd_DOCUMENT_ID, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Grid.Row="1" Grid.Column="6" BorderBrush="{Binding DOCUMENT_ID_Border}"/> |
|
85 |
<TextBox Text="{Binding ConverAdd_DOCUMENT_URL, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged }" Grid.Row="3" Grid.Column="2" Grid.ColumnSpan="5" BorderBrush="{Binding DOCUMENT_URL_Border}" /> |
|
86 |
|
|
87 |
<DockPanel Grid.Column="2" Grid.Row="0"> |
|
88 |
<StackPanel Orientation="Horizontal" DockPanel.Dock="Top"> |
|
89 |
<Grid Width="12" Height="12"> |
|
90 |
<Ellipse Width="12" Height="12" Fill="{Binding Project_NO_Color}" HorizontalAlignment="Center" VerticalAlignment="Center" ></Ellipse> |
|
91 |
<TextBlock Foreground="White" FontWeight="Heavy" FontSize="8" HorizontalAlignment="Center" VerticalAlignment="Center" TextAlignment="Center" |
|
92 |
ToolTip="{Binding ElementName=ErrorAdorner, Path=AdornedElement.(Validation.Errors)[0].ErrorContent}" >!</TextBlock> |
|
93 |
</Grid> |
|
94 |
<TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Text="ProjectNO empty" FontSize="9" Foreground="{Binding Project_NO_Color}" /> |
|
95 |
</StackPanel> |
|
96 |
</DockPanel> |
|
97 |
<DockPanel Grid.Column="6" Grid.Row="0"> |
|
98 |
<StackPanel Orientation="Horizontal" DockPanel.Dock="Top"> |
|
99 |
<Grid Width="12" Height="12"> |
|
100 |
<Ellipse Width="12" Height="12" HorizontalAlignment="Center" VerticalAlignment="Center" |
|
101 |
Fill="{Binding DOCUMENT_ID_Color}"/> |
|
102 |
<TextBlock Foreground="White" FontWeight="Heavy" FontSize="8" HorizontalAlignment="Center" VerticalAlignment="Center" TextAlignment="Center" |
|
103 |
ToolTip="{Binding ElementName=ErrorAdorner, Path=AdornedElement.(Validation.Errors)[0].ErrorContent}" >!</TextBlock> |
|
104 |
</Grid> |
|
105 |
<TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Text="DOCUMENT ID empty" FontSize="9" Foreground="{Binding DOCUMENT_ID_Color}" /> |
|
106 |
</StackPanel> |
|
107 |
</DockPanel> |
|
108 |
|
|
109 |
<DockPanel Grid.Column="2" Grid.Row="2" Grid.ColumnSpan="5" > |
|
110 |
<StackPanel Orientation="Horizontal" DockPanel.Dock="Top"> |
|
111 |
<Grid Width="12" Height="12"> |
|
112 |
<Ellipse Width="12" Height="12" Fill="{Binding DOCUMENT_URL_Color}" HorizontalAlignment="Center" VerticalAlignment="Center" /> |
|
113 |
<TextBlock Foreground="White" FontWeight="Heavy" FontSize="8" HorizontalAlignment="Center" VerticalAlignment="Center" TextAlignment="Center" |
|
114 |
ToolTip="{Binding ElementName=ErrorAdorner, Path=AdornedElement.(Validation.Errors)[0].ErrorContent}" >!</TextBlock> |
|
115 |
</Grid> |
|
116 |
<TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Text="DOCUMENT URL empty" FontSize="9" Foreground="{Binding DOCUMENT_URL_Color}" /> |
|
117 |
</StackPanel> |
|
118 |
</DockPanel> |
|
79 | 119 |
|
80 |
<TextBox Text="{Binding ConverAdd_Project_NO, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}" Grid.Row="0" Grid.Column="2" /> |
|
81 |
<TextBox Text="{Binding ConverAdd_DOCUMENT_ID, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True }" Grid.Row="0" Grid.Column="6" /> |
|
82 |
<TextBox Text="{Binding ConverAdd_DOCUMENT_URL, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True }" Grid.Row="1" Grid.Column="2" Grid.ColumnSpan="5"/> |
|
83 |
|
|
84 | 120 |
</Grid> |
85 |
|
|
121 |
|
|
86 | 122 |
<StackPanel Orientation="Horizontal" Grid.Row="1" HorizontalAlignment="Right" Margin="0 0 0 10" Grid.Column="1"> |
87 | 123 |
|
88 | 124 |
<telerik:RadButton Content=" SEND" MinWidth="50" Margin="8 0" VerticalAlignment="Center" |
내보내기 Unified diff