Browse Source

完善档案页

CaptB 4 months ago
parent
commit
723fc36616
3 changed files with 140 additions and 66 deletions
  1. 2 0
      ArchivesCenter3.csproj
  2. 138 66
      MainWindow.xaml
  3. BIN
      Resources/refresh_16px.png

+ 2 - 0
ArchivesCenter3.csproj

@@ -14,6 +14,7 @@
     <None Remove="Resources\icons8_omnichannel.ico" />
     <None Remove="Resources\icons8_omnichannel_128.png" />
     <None Remove="Resources\icons8_omnichannel_48.png" />
+    <None Remove="Resources\refresh_16px.png" />
     <None Remove="SplashScreen1.png" />
   </ItemGroup>
 
@@ -23,6 +24,7 @@
     <Resource Include="Resources\icons8_omnichannel.ico" />
     <Resource Include="Resources\icons8_omnichannel_128.png" />
     <Resource Include="Resources\icons8_omnichannel_48.png" />
+    <Resource Include="Resources\refresh_16px.png" />
   </ItemGroup>
 
   <ItemGroup>

+ 138 - 66
MainWindow.xaml

@@ -5,7 +5,7 @@
         xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
         xmlns:local="clr-namespace:ArchivesCenter3"
         mc:Ignorable="d"
-        Title="MainWindow" Height="450" Width="800" Icon="Resources/icons8_omnichannel.ico">
+        Title="Archives Center 主窗口" Height="4500" Width="800" Icon="Resources/icons8_omnichannel.ico">
     <Grid>
         <TabControl Background="#0368ba">
             <TabItem Header="开始">
@@ -159,76 +159,148 @@
                 </Grid>
             </TabItem>
             <TabItem Header="关系人">
-                <Grid Background="White">
-                    <Grid.ColumnDefinitions>
-                        <ColumnDefinition Width="Auto" />
-                        <ColumnDefinition Width="Auto" />
-                        <ColumnDefinition Width="Auto" />
-                        <ColumnDefinition Width="30" />
-                        <ColumnDefinition Width="Auto" />
-                        <ColumnDefinition Width="Auto" />
-                    </Grid.ColumnDefinitions>
-                    <Grid.RowDefinitions>
-                        <RowDefinition Height="Auto" />
-                        <RowDefinition Height="Auto" />
-                        <RowDefinition Height="Auto" />
-                        <RowDefinition Height="Auto" />
-                        <RowDefinition Height="Auto" />
-                        <RowDefinition Height="Auto" />
-                        <RowDefinition Height="Auto" />
-                    </Grid.RowDefinitions>
-                    <Grid Grid.RowSpan="100" Grid.Column="0" HorizontalAlignment="Left" VerticalAlignment="Top">
+                <ScrollViewer>
+                    <Grid Background="White">
+                        <Grid.ColumnDefinitions>
+                            <ColumnDefinition Width="Auto" />
+                            <ColumnDefinition Width="Auto" />
+                            <ColumnDefinition Width="Auto" />
+                            <ColumnDefinition Width="Auto" />
+                            <ColumnDefinition Width="30" />
+                            <ColumnDefinition Width="Auto" />
+                            <ColumnDefinition Width="Auto" />
+                            <ColumnDefinition Width="Auto" />
+                        </Grid.ColumnDefinitions>
                         <Grid.RowDefinitions>
                             <RowDefinition Height="Auto" />
                             <RowDefinition Height="Auto" />
+                            <RowDefinition Height="30" />
+                            <RowDefinition Height="Auto" />
+                            <RowDefinition Height="30" />
+                            <RowDefinition Height="Auto" />
+                            <RowDefinition Height="Auto" />
+                            <RowDefinition Height="30" />
+                            <RowDefinition Height="Auto" />
+                            <RowDefinition Height="Auto" />
+                            <RowDefinition Height="30" />
+                            <RowDefinition Height="Auto" />
+                            <RowDefinition Height="Auto" />
+                            <RowDefinition Height="Auto" />
+                            <RowDefinition Height="Auto" />
+                            <RowDefinition Height="Auto" />
+                            <RowDefinition Height="Auto" />
                         </Grid.RowDefinitions>
-                        <Border Grid.Row="0" BorderBrush="Black" BorderThickness="1" Margin="10" Width="75" Height="105">
-                            <Image Width="75" Height="105"/>
-                        </Border>
-                        <Button Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center">更改照片</Button>
-                    </Grid>
+                        <Grid Grid.RowSpan="100" Grid.Column="0" HorizontalAlignment="Left" VerticalAlignment="Top">
+                            <Grid.RowDefinitions>
+                                <RowDefinition Height="Auto" />
+                                <RowDefinition Height="Auto" />
+                                <RowDefinition Height="20" />
+                                <RowDefinition Height="Auto" />
+                            </Grid.RowDefinitions>
+                            <Border Grid.Row="0" BorderBrush="Black" BorderThickness="1" Margin="10" Width="75" Height="105">
+                                <Image Width="75" Height="105"/>
+                            </Border>
+                            <Button Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center" Width="60" Height="20">更改照片</Button>
+                            <Button Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Center" Width="60" Height="20">保存</Button>
+                        </Grid>
 
-                    <TextBlock Grid.Column="1" Grid.Row="0" Text="姓名" Margin="5" VerticalAlignment="Top" HorizontalAlignment="Right"/>
-                    <TextBox Grid.Column="2" Grid.Row="0" Height="20" Width="150" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="5"/>
-
-                    <TextBlock Grid.Column="1" Grid.Row="1" Text="级别" Margin="5" VerticalAlignment="Top" HorizontalAlignment="Right"/>
-                    <ComboBox Grid.Column="2" Grid.Row="1" Height="20" Width="150" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="5">
-                        <ComboBoxItem>0x7F|老死不相往来</ComboBoxItem>
-                        <ComboBoxItem>1x00|认识的人</ComboBoxItem>
-                        <ComboBoxItem>1x01|亲属</ComboBoxItem>
-                        <ComboBoxItem>2x00|熟人</ComboBoxItem>
-                        <ComboBoxItem>2x01|朋友</ComboBoxItem>
-                        <ComboBoxItem>2x02|好朋友</ComboBoxItem>
-                        <ComboBoxItem>2x05|近亲属</ComboBoxItem>
-                        <ComboBoxItem>3x00|直系亲属</ComboBoxItem>
-                        <ComboBoxItem>3x01|知己</ComboBoxItem>
-                        <ComboBoxItem>4x00|爱人</ComboBoxItem>
-                        <ComboBoxItem>4x01|子女</ComboBoxItem>
-                    </ComboBox>
-
-                    <TextBlock Grid.Column="1" Grid.Row="2" Text="级别" Margin="5" VerticalAlignment="Top" HorizontalAlignment="Right"/>
-                    <ComboBox Grid.Column="2" Grid.Row="2" Height="20" Width="150" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="5">
-                        <CheckBox Content="令我感动"/>
-                        <CheckBox Content="厌恶"/>
-                        <CheckBox Content="有趣的灵魂"/>
-                        <CheckBox Content="长得漂亮"/>
-                        <CheckBox Content="有过爱慕"/>
-                        <CheckBox Content="有过暧昧"/>
-                    </ComboBox>
-
-                    <TextBlock Grid.Column="1" Grid.Row="3" Text="证件类型" Margin="5" VerticalAlignment="Top" HorizontalAlignment="Right"/>
-                    <ComboBox Grid.Column="2" Grid.Row="3" Height="20" Width="150" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="5">
-                        <ComboBoxItem>居民身份证</ComboBoxItem>
-                        <ComboBoxItem>港澳居民居住证</ComboBoxItem>
-                        <ComboBoxItem>台湾居民居住证</ComboBoxItem>
-                        <ComboBoxItem>往来港澳通行证</ComboBoxItem>
-                        <ComboBoxItem>护照</ComboBoxItem>
-                        <ComboBoxItem>港澳台居民来往大陆通行证</ComboBoxItem>
-                    </ComboBox>
-
-                    <TextBlock Grid.Column="1" Grid.Row="4" Text="证件号码" Margin="5" VerticalAlignment="Top" HorizontalAlignment="Right"/>
-                    <TextBox Grid.Column="2" Grid.Row="4" Height="20" Width="150" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="5"/>
-                </Grid>
+                        <TextBlock Grid.Column="1" Grid.Row="0" Text="姓名" Margin="5" VerticalAlignment="Center" HorizontalAlignment="Right"/>
+                        <TextBox Grid.Column="2" Grid.Row="0" Height="20" Width="100" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="5"/>
+
+                        <TextBlock Grid.Column="5" Grid.Row="0" Text="性别" Margin="5" VerticalAlignment="Top" HorizontalAlignment="Right"/>
+                        <ComboBox Grid.Column="6" Grid.Row="0" Height="20" Width="50" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="5">
+                            <ComboBoxItem>男</ComboBoxItem>
+                            <ComboBoxItem>女</ComboBoxItem>
+                        </ComboBox>
+
+                        <TextBlock Grid.Column="1" Grid.Row="1" Text="出生日期" Margin="5" VerticalAlignment="Center" HorizontalAlignment="Right"/>
+                        <DatePicker Grid.Column="2" Grid.Row="1" Height="25" Width="156" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="5"/>
+
+                        <TextBlock Grid.Column="1" Grid.Row="3" Text="级别" Margin="5" VerticalAlignment="Center" HorizontalAlignment="Right"/>
+                        <ComboBox Grid.Column="2" Grid.Row="3" Height="20" Width="156" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="5">
+                            <ComboBoxItem>0x00|陌生人</ComboBoxItem>
+                            <ComboBoxItem>0x7F|老死不相往来</ComboBoxItem>
+                            <ComboBoxItem>1x00|认识的人</ComboBoxItem>
+                            <ComboBoxItem>1x01|亲属</ComboBoxItem>
+                            <ComboBoxItem>2x00|熟人</ComboBoxItem>
+                            <ComboBoxItem>2x01|朋友</ComboBoxItem>
+                            <ComboBoxItem>2x02|好朋友</ComboBoxItem>
+                            <ComboBoxItem>2x05|近亲属</ComboBoxItem>
+                            <ComboBoxItem>3x00|直系亲属</ComboBoxItem>
+                            <ComboBoxItem>3x01|知己</ComboBoxItem>
+                            <ComboBoxItem>4x00|爱人</ComboBoxItem>
+                            <ComboBoxItem>4x01|子女</ComboBoxItem>
+                        </ComboBox>
+                        <Button Grid.Column="3" Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="5" Background="White">
+                            <Image Source="Resources/refresh_16px.png"></Image>
+                        </Button>
+
+                        <TextBlock Grid.Column="5" Grid.Row="3" Text="标签" Margin="5" VerticalAlignment="Center" HorizontalAlignment="Right"/>
+                        <ComboBox Grid.Column="6" Grid.Row="3" Height="20" Width="156" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="5"/>
+                        <Button Grid.Column="7" Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="5" Background="White">
+                            <Image Source="Resources/refresh_16px.png"></Image>
+                        </Button>
+
+                        <TextBlock Grid.Column="1" Grid.Row="5" Text="证件类型" Margin="5" VerticalAlignment="Top" HorizontalAlignment="Right"/>
+                        <ComboBox Grid.Column="2" Grid.Row="5" Height="20" Width="156" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="5">
+                            <ComboBoxItem>居民身份证</ComboBoxItem>
+                            <ComboBoxItem>港澳居民居住证</ComboBoxItem>
+                            <ComboBoxItem>台湾居民居住证</ComboBoxItem>
+                            <ComboBoxItem>往来港澳通行证</ComboBoxItem>
+                            <ComboBoxItem>护照</ComboBoxItem>
+                            <ComboBoxItem>港澳台居民来往大陆通行证</ComboBoxItem>
+                        </ComboBox>
+
+                        <TextBlock Grid.Column="5" Grid.Row="5" Text="证件号码" Margin="5" VerticalAlignment="Top" HorizontalAlignment="Right"/>
+                        <TextBox Grid.Column="6" Grid.Row="5" Height="20" Width="156" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="5" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto"/>
+
+                        <TextBlock Grid.Column="1" Grid.Row="6" Text="籍贯" Margin="5" VerticalAlignment="Center" HorizontalAlignment="Right"/>
+                        <ComboBox Grid.Column="2" Grid.Row="6" Height="20" Width="156" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="5"/>
+                        <Button Grid.Column="3" Grid.Row="6" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="5" Background="White">
+                            <Image Source="Resources/refresh_16px.png"></Image>
+                        </Button>
+
+                        <TextBlock Grid.Column="5" Grid.Row="6" Text="政治面貌" Margin="5" VerticalAlignment="Center" HorizontalAlignment="Right"/>
+                        <ComboBox Grid.Column="6" Grid.Row="6" Height="20" Width="156" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="5">
+                            <ComboBoxItem>中共党员</ComboBoxItem>
+                            <ComboBoxItem>中共预备党员</ComboBoxItem>
+                            <ComboBoxItem>共青团员</ComboBoxItem>
+                            <ComboBoxItem>民革党员</ComboBoxItem>
+                            <ComboBoxItem>民盟盟员</ComboBoxItem>
+                            <ComboBoxItem>民建会员</ComboBoxItem>
+                            <ComboBoxItem>民进会员</ComboBoxItem>
+                            <ComboBoxItem>农工党党员</ComboBoxItem>
+                            <ComboBoxItem>致公党党员</ComboBoxItem>
+                            <ComboBoxItem>九三学社社员</ComboBoxItem>
+                            <ComboBoxItem>台盟盟员</ComboBoxItem>
+                            <ComboBoxItem>无党派人士</ComboBoxItem>
+                            <ComboBoxItem>群众</ComboBoxItem>
+                        </ComboBox>
+
+                        <TextBlock Grid.Column="1" Grid.Row="8" Text="婚姻状况" Margin="5" VerticalAlignment="Top" HorizontalAlignment="Right"/>
+                        <ComboBox Grid.Column="2" Grid.Row="8" Height="20" Width="75" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="5">
+                            <ComboBoxItem>未婚</ComboBoxItem>
+                            <ComboBoxItem>已婚</ComboBoxItem>
+                            <ComboBoxItem>离异</ComboBoxItem>
+                            <ComboBoxItem>丧偶</ComboBoxItem>
+                        </ComboBox>
+
+                        <TextBlock Grid.Column="5" Grid.Row="8" Text="住址" Margin="5" VerticalAlignment="Top" HorizontalAlignment="Right"/>
+                        <TextBox Grid.Column="6" Grid.Row="8" Height="60" Width="156" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="5" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto"/>
+
+                        <TextBlock Grid.Column="1" Grid.Row="9" Text="家庭情况" Margin="5" VerticalAlignment="Top" HorizontalAlignment="Right"/>
+                        <TextBox Grid.Column="2" Grid.Row="9" Height="60" Width="156" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="5" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto"/>
+
+                        <TextBlock Grid.Column="1" Grid.Row="11" Text="结识地点" Margin="5" VerticalAlignment="Top" HorizontalAlignment="Right"/>
+                        <TextBox Grid.Column="2" Grid.Row="11" Height="60" Width="156" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="5" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto"/>
+
+                        <TextBlock Grid.Column="5" Grid.Row="11" Text="相对身份" Margin="5" VerticalAlignment="Top" HorizontalAlignment="Right"/>
+                        <ComboBox Grid.Column="6" Grid.Row="11" Height="20" Width="156" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="5"/>
+                        <Button Grid.Column="7" Grid.Row="11" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="5" Background="White">
+                            <Image Source="Resources/refresh_16px.png"></Image>
+                        </Button>
+                    </Grid>
+                </ScrollViewer>
             </TabItem>
             <TabItem Header="日志" IsEnabled="False">
                 <Grid>

BIN
Resources/refresh_16px.png