年度变更建库软件5.0版本
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

148 lines
12 KiB

<windows:BaseWindow x:Class="Kingo.Plugin.DTBJK_XJ.View.UCLoadDTBJKData"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
xmlns:dxlc="http://schemas.devexpress.com/winfx/2008/xaml/layoutcontrol"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:windows="clr-namespace:KGIS.Framework.Utils;assembly=KGIS.Framework.Utils"
xmlns:kuiBtn="clr-namespace:KUI.Button;assembly=KUI"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<Window.Resources >
<Style TargetType = "{x:Type dxg:GridColumn}" >
<!--列头居中-->
<Setter Property = "HorizontalHeaderContentAlignment" Value = "Center" />
<!--列值居中-->
<Setter Property = "EditSettings" >
<Setter.Value >
<dxe:TextEditSettings HorizontalContentAlignment = "Center" />
</Setter.Value >
</Setter >
</Style >
</Window.Resources >
<Grid>
<dxlc:LayoutControl Orientation="Vertical">
<dxlc:LayoutGroup Orientation="Horizontal">
<kuiBtn:KImgButton Name="btnCreate" Content="生成任务" Width="90" Height="30" CornerRadius="3" Foreground="White" Click="btnCreate_Click" />
<kuiBtn:KImgButton Name="btnSubmitJKTB" Content="数据上报" Width="90" Height="30" CornerRadius="3" Foreground="White" Click="btnSubmitJKTB_Click" />
</dxlc:LayoutGroup>
<StackPanel Height="30" Orientation="Horizontal">
<StackPanel Height="30" Orientation="Horizontal">
<Label Width="65" HorizontalAlignment="Left" VerticalAlignment="Center" >业务类型:</Label>
<ComboBox x:Name="cbxYwlx" Width="150" HorizontalAlignment="Left" VerticalAlignment="Center" DisplayMemberPath="Value" SelectedValuePath="Text" SelectionChanged="cbxYwlx_SelectionChanged" />
</StackPanel>
<!--<StackPanel Height="30" Orientation="Horizontal" Margin="5,0,0,0">
<Label Width="65" HorizontalAlignment="Left" VerticalAlignment="Center" >地区代码:</Label>
<ComboBox x:Name="cbxDqdm" Width="120" HorizontalAlignment="Left" VerticalAlignment="Center" DisplayMemberPath="Value" SelectedValuePath="Text" SelectionChanged="cbxDqdm_SelectionChanged" />
</StackPanel>-->
<StackPanel Height="30" Orientation="Horizontal" Margin="5,0,0,0">
<Label Width="65" HorizontalAlignment="Left" VerticalAlignment="Center" >生命周期:</Label>
<ComboBox x:Name="cycle" Width="150" HorizontalAlignment="Left" VerticalAlignment="Center" DisplayMemberPath="Value" SelectedValuePath="Text" SelectionChanged="cycle_SelectionChanged" />
</StackPanel>
<StackPanel Height="30" Orientation="Horizontal" Margin="5,0,0,0">
<Label Width="65" HorizontalAlignment="Left" VerticalAlignment="Center" >文件名称:</Label>
<ComboBox x:Name="fileName" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" DisplayMemberPath="PackageName" SelectedValuePath="PackagePath" SelectionChanged="fileName_SelectionChanged" />
</StackPanel>
</StackPanel>
<StackPanel Height="30" Orientation="Horizontal">
<!--市县镇村 接口尚未完成-->
<StackPanel Height="30" Orientation="Horizontal">
<Label Width="65" HorizontalAlignment="Left" VerticalAlignment="Center" >地区选择:</Label>
<Label HorizontalAlignment="Left" VerticalAlignment="Center" ></Label>
<ComboBox x:Name="cbxShidm" Text="市" Width="150" HorizontalAlignment="Left" VerticalAlignment="Center" SelectionChanged="cbxShidm_SelectionChanged" />
<Label HorizontalAlignment="Left" VerticalAlignment="Center" Margin="10,0,0,0" ></Label>
<ComboBox x:Name="cbxXiandm" Text="县" Width="150" HorizontalAlignment="Left" VerticalAlignment="Center" SelectionChanged="cbxXiandm_SelectionChanged" />
<Label HorizontalAlignment="Left" VerticalAlignment="Center" Margin="10,0,0,0" ></Label>
<ComboBox x:Name="cbxZhendm" Text="镇" Width="150" HorizontalAlignment="Left" VerticalAlignment="Center" SelectionChanged="cbxZhendm_SelectionChanged" />
<Label HorizontalAlignment="Left" VerticalAlignment="Center" Margin="10,0,0,0" ></Label>
<ComboBox x:Name="cbxCundm" Text="村" Width="150" HorizontalAlignment="Left" VerticalAlignment="Center" SelectionChanged="cbxCundm_SelectionChanged" />
</StackPanel>
<!--县镇村-->
<!--<StackPanel Height="30" Orientation="Horizontal">
<Label Width="65" HorizontalAlignment="Left" VerticalAlignment="Center" >地区选择:</Label>
<ComboBox x:Name="cbxXiandm" Text="县" Width="150" HorizontalAlignment="Left" VerticalAlignment="Center" SelectionChanged="cbxXiandm_SelectionChanged" />
<ComboBox x:Name="cbxZhendm" Text="镇" Width="150" Margin="10,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" SelectionChanged="cbxZhendm_SelectionChanged" />
<ComboBox x:Name="cbxCundm" Text="村" Width="150" Margin="10,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" SelectionChanged="cbxCundm_SelectionChanged" />
</StackPanel>-->
</StackPanel>
<dxlc:LayoutGroup Orientation="Horizontal">
<dxlc:LayoutItem IsRequired="True" x:Name="TagFieldName" Label="" dxlc:LayoutControl.AllowHorizontalSizing="True" VerticalAlignment="Stretch" LabelPosition="Top">
<dxg:GridControl x:Name="dgTableMapping" CustomColumnDisplayText="dgTableMapping_CustomColumnDisplayText" SelectionMode="Row" HorizontalAlignment="Center">
<dxg:GridControl.View>
<dxg:TableView Name="tvAttrDTB" IsColumnMenuEnabled="False" RowMinHeight="30" AllowColumnFiltering="True" ShowTotalSummary="False" AllowSorting="False" AllowGrouping="False" ShowGroupPanel="False" AllowEditing="True" HorizontalContentAlignment="Center" VerticalScrollbarVisibility="Auto" HorizontalAlignment="Center" ShowAutoFilterRow="True" AllowBandMultiRow="False"/>
</dxg:GridControl.View>
<dxg:GridControl.Columns>
<dxg:GridColumn Header="导入状态" x:Name="chkSelectedAll" Width="50" HorizontalHeaderContentAlignment="Center" >
<dxg:GridColumn.HeaderTemplate>
<DataTemplate>
<dxe:CheckEdit x:Name="AllCheckEidt" HorizontalAlignment="Center" HorizontalContentAlignment="Center" IsChecked="False" EditValueChanged="AllCheckEidt_EditValueChanged" />
</DataTemplate>
</dxg:GridColumn.HeaderTemplate>
<dxg:GridColumn.CellTemplate>
<DataTemplate>
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
<CheckBox x:Name="checkBox" HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="{Binding RowData.Row.ischeck,Mode=TwoWay}" Tag="{Binding RowData.Row.tbbsm}" Click="checkBox_Click" />
</Grid>
</DataTemplate>
</dxg:GridColumn.CellTemplate>
</dxg:GridColumn>
<dxg:GridColumn Header="标识码" FieldName="bsm" Width="100" ReadOnly="True" HorizontalHeaderContentAlignment="Center"/>
<dxg:GridColumn Header="图斑标识码" FieldName="tbbsm" Width="180" ReadOnly="True" HorizontalHeaderContentAlignment="Center"/>
<dxg:GridColumn Header="图斑状态" FieldName="lifecycle" Width="*" ReadOnly="True" HorizontalHeaderContentAlignment="Center"/>
<dxg:GridColumn Header="领取时间" FieldName="receivetime" Width="*" ReadOnly="True" HorizontalHeaderContentAlignment="Center"/>
<dxg:GridColumn Header="用户" FieldName="username" Width="*" ReadOnly="True" HorizontalHeaderContentAlignment="Center" />
</dxg:GridControl.Columns>
</dxg:GridControl>
</dxlc:LayoutItem>
</dxlc:LayoutGroup>
<dxlc:LayoutItem Height="40">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Right">
<!--<Grid x:Name="PageControl" Margin="2,0" Grid.Row="2"/>-->
<Label Content="" Name="total"/>
<Label Content="每页显示数"/>
<ComboBox x:Name="perPageNum" Width="60" Height="18" Margin="3,0,10,0" SelectionChanged="perPageNum_SelectionChanged"/>
<Label Content="" Name="currentPageNum"/>
<Button x:Name="FirstPageButton" Background="Transparent" Margin="5,0" Click="FirstPageButton_Click">
<Path Width="7" Height="10" Data="M0,0L0,10 M0,5L6,2 6,8 0,5" Stroke="#1B417C" StrokeThickness="1" Fill="#5D84BD" VerticalAlignment="Center" HorizontalAlignment="Center" />
</Button>
<Button x:Name="PreviousPageButton" Background="Transparent" Margin="0,0,5,0" Click="PreviousPageButton_Click">
<Path Width="8" Height="8" Data="M0,4L8,0 8,8z" Stroke="#1B417C" Fill="#5D84BD" VerticalAlignment="Center" HorizontalAlignment="Center" />
</Button>
<TextBlock VerticalAlignment="Center">
<Run Text="第"/>
<Run x:Name="rCurrent" Text="1"/>
<Run Text="页"/>
</TextBlock>
<Button Margin="5,0" x:Name="NextPageButton" Background="Transparent" Click="NextPageButton_Click">
<Path Width="8" Height="8" Data="M0,4L8,0 8,8z" Stroke="#1B417C" Fill="#5D84BD" VerticalAlignment="Center" HorizontalAlignment="Center">
<Path.RenderTransform>
<RotateTransform Angle="180" CenterX="4" CenterY="4" />
</Path.RenderTransform>
</Path>
</Button>
<Button Margin="0,0,5,0" x:Name="LastPageButton" Background="Transparent" Click="LastPageButton_Click">
<Path x:Name="MainPath" Width="7" Height="10" Data="M0,0L0,10 M0,5 L6,2 6,8 0,5" Stroke="#1B417C" StrokeThickness="1" Fill="#5D84BD" VerticalAlignment="Center" HorizontalAlignment="Center">
<Path.RenderTransform>
<RotateTransform Angle="180" CenterX="3" CenterY="5" />
</Path.RenderTransform>
</Path>
</Button>
<TextBlock VerticalAlignment="Center">
<Run Text="共"/>
<Run x:Name="rTotal" Text="1"/>
<Run Text="页"/>
</TextBlock>
</StackPanel>
</dxlc:LayoutItem>
</dxlc:LayoutControl>
</Grid>
</windows:BaseWindow>