|
@@ -9,46 +9,80 @@
|
|
|
mc:Ignorable="d"
|
|
|
x:Name="this"
|
|
|
d:DesignHeight="450"
|
|
|
- xmlns:model="clr-namespace:SCADA_DAQ.Customer.Models.ProcessingManagement"
|
|
|
- x:TypeArguments="model:QueryProcessingModel"
|
|
|
d:DesignWidth="800">
|
|
|
-
|
|
|
- <!--多表联动-->
|
|
|
- <!--<wpfcontrol:QueryFrm x:Name="FrmQuery">
|
|
|
- <wpfcontrol:SmartGrid x:Name="MainGrid" SelectionUnit="CellOrRowHeader" IsAutoUpdate="True"
|
|
|
- CanUserDeleteRows="{Binding IsAdmin,ElementName=this}"
|
|
|
- AutoGenerateColumns="True" IsReadOnly="{Binding IsReadOnly,ElementName=this}">
|
|
|
- <wpfcontrol:SmartGrid.ChildContent >
|
|
|
- <wpfcontrol:SmartGrid x:Name="ChildGrid" SelectionUnit="CellOrRowHeader" IsAutoUpdate="True"
|
|
|
- CanUserDeleteRows="{Binding IsAdmin,ElementName=this}"
|
|
|
- AutoGenerateColumns="True" IsReadOnly="{Binding IsReadOnly,ElementName=this}">
|
|
|
- </wpfcontrol:SmartGrid>
|
|
|
- </wpfcontrol:SmartGrid.ChildContent>
|
|
|
- </wpfcontrol:SmartGrid>
|
|
|
- </wpfcontrol:QueryFrm>-->
|
|
|
+
|
|
|
+ <!--xmlns:model="clr-namespace:SCADA_DAQ.Customer.Models.ProcessingManagement"
|
|
|
+ x:TypeArguments="model:QueryProcessingModel"-->
|
|
|
<Grid>
|
|
|
<Grid.RowDefinitions>
|
|
|
<RowDefinition Height="1*"/>
|
|
|
<RowDefinition Height="1*"/>
|
|
|
</Grid.RowDefinitions>
|
|
|
<wpfcontrol:QueryFrm x:Name="FrmQuery" Grid.Row="0">
|
|
|
- <wpfcontrol:SmartGrid x:Name="MainGrid" SelectionUnit="FullRow" IsAutoUpdate="True"
|
|
|
+ <wpfcontrol:SmartGrid x:Name="MainGrid" SelectionUnit="FullRow" IsAutoUpdate="False"
|
|
|
CanUserDeleteRows="{Binding IsAdmin,ElementName=this}"
|
|
|
- AutoGenerateColumns="True" IsReadOnly="True"
|
|
|
- MouseDoubleClick="MainGrid_MouseDoubleClick">
|
|
|
+ AutoGenerateColumns="True" IsReadOnly="True">
|
|
|
+ <wpfcontrol:SmartGrid.HeaderExControl>
|
|
|
+ <wpfcontrol:IconButton ButtonKind="AddButton" ButtonStyle="Warning"
|
|
|
+ Title="开始加工" Margin="10" Cursor="Hand" FontSize="13"
|
|
|
+ Tag="Start"
|
|
|
+ Click="IconButton_Click"/>
|
|
|
+ </wpfcontrol:SmartGrid.HeaderExControl>
|
|
|
+ <wpfcontrol:SmartGrid.RowStyle>
|
|
|
+ <Style TargetType="DataGridRow">
|
|
|
+ <Setter Property="Height" Value="25" />
|
|
|
+ </Style>
|
|
|
+ </wpfcontrol:SmartGrid.RowStyle>
|
|
|
<wpfcontrol:SmartGrid.Columns>
|
|
|
- <DataGridTemplateColumn Header="选择">
|
|
|
+ <DataGridTextColumn Header="创建时间" Binding="{Binding CreateTime_Dt}" Visibility="Visible"/>
|
|
|
+ <DataGridTextColumn Header="创建者" Binding="{Binding CreateUser_Str}" Visibility="Collapsed"/>
|
|
|
+ <DataGridTextColumn Header="修改时间" Binding="{Binding ModifyTime_Dt}" Visibility="Collapsed"/>
|
|
|
+ <DataGridTextColumn Header="修改者" Binding="{Binding ModifyUser_Str}" Visibility="Collapsed"/>
|
|
|
+ <!--<DataGridTemplateColumn Header="操作" Width="auto">
|
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
|
<DataTemplate>
|
|
|
- <CheckBox x:Name="DepPatientCheckBox" Margin="10,0,0,0"/>
|
|
|
+ <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
|
|
|
+ <wpfcontrol:IconButton ButtonKind="AddButton" ButtonStyle="Warning"
|
|
|
+ Title="开始加工" Margin="2" Cursor="Hand" FontSize="11"
|
|
|
+ Tag="{Binding OrderNo_Str}"
|
|
|
+ Click="IconButton_Click" />
|
|
|
+ </StackPanel>
|
|
|
</DataTemplate>
|
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
|
- </DataGridTemplateColumn>
|
|
|
+ </DataGridTemplateColumn>-->
|
|
|
</wpfcontrol:SmartGrid.Columns>
|
|
|
- <wpfcontrol:SmartGrid.HeaderExControl>
|
|
|
- <wpfcontrol:IconButton ButtonKind="AddButton" ButtonStyle="Warning"
|
|
|
- Title="开始加工" Margin="10" Cursor="Hand" FontSize="13"/>
|
|
|
- </wpfcontrol:SmartGrid.HeaderExControl>
|
|
|
+ <!--<wpfcontrol:SmartGrid.Columns>
|
|
|
+ <DataGridTemplateColumn Header="" Width="auto" DisplayIndex="0">
|
|
|
+ <DataGridTemplateColumn.HeaderTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <CheckBox x:Name="SelectAllCheckBox" Margin="10,0,0,0" Content="全选"
|
|
|
+ Click="SelectAllPatientInDep_Click"></CheckBox>
|
|
|
+ </StackPanel>
|
|
|
+ </DataTemplate>
|
|
|
+ </DataGridTemplateColumn.HeaderTemplate>
|
|
|
+ <DataGridTemplateColumn.CellTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <CheckBox Name="CkbItem" IsChecked="{Binding IsCheckBinding,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
|
|
|
+ Click="CkbItem_OnClick" HorizontalAlignment="Center"></CheckBox>
|
|
|
+ </DataTemplate>
|
|
|
+ </DataGridTemplateColumn.CellTemplate>
|
|
|
+ </DataGridTemplateColumn>
|
|
|
+ <DataGridTextColumn Header="计划部门" Binding="{Binding ProjectDivision_Str}"/>
|
|
|
+ <DataGridTextColumn Header="车间号" Binding="{Binding WorkShopID_Str}"/>
|
|
|
+ <DataGridTextColumn Header="设备名称" Binding="{Binding DeviceName_Str}"/>
|
|
|
+ <DataGridTextColumn Header="机床编号" Binding="{Binding ToolNo_Str}"/>
|
|
|
+ <DataGridTextColumn Header="计划单号" Binding="{Binding PlanNo_Str}"/>
|
|
|
+ <DataGridTextColumn Header="订单编号" Binding="{Binding OrderNo_Str}"/>
|
|
|
+ <DataGridTextColumn Header="工件名称" Binding="{Binding WorkPieceName_Str}"/>
|
|
|
+ <DataGridTextColumn Header="操作编号" Binding="{Binding OperationNo_Str}"/>
|
|
|
+ <DataGridTextColumn Header="图号" Binding="{Binding DrawNumber_Str}"/>
|
|
|
+ <DataGridTextColumn Header="计划数量" Binding="{Binding PlanPiecesNumber_Int}"/>
|
|
|
+ <DataGridTextColumn Header="加工状态" Binding="{Binding TaskState_Str}"/>
|
|
|
+ <DataGridTextColumn Header="操作员" Binding="{Binding OperatorName_Str}"/>
|
|
|
+ <DataGridCheckBoxColumn Header="人脸识别" Binding="{Binding IsFaceRecognition_Bool}"/>
|
|
|
+ <DataGridCheckBoxColumn Header="刷卡上岗" Binding="{Binding IsCardOnline_Bool}"/>
|
|
|
+ </wpfcontrol:SmartGrid.Columns>-->
|
|
|
</wpfcontrol:SmartGrid>
|
|
|
</wpfcontrol:QueryFrm>
|
|
|
<wpfcontrol:QueryFrm x:Name="ChildFrmQuery" Grid.Row="1">
|
|
@@ -62,11 +96,42 @@
|
|
|
<ColumnDefinition/>
|
|
|
</Grid.ColumnDefinitions>
|
|
|
<wpfcontrol:IconButton ButtonKind="OkButton" ButtonStyle="Success"
|
|
|
- Title="完成加工" Margin="10" Cursor="Hand" FontSize="13"/>
|
|
|
+ Title="完成加工" Margin="10" Cursor="Hand" FontSize="13"
|
|
|
+ Tag="Done"
|
|
|
+ Click="IconButton_Click"/>
|
|
|
<wpfcontrol:IconButton ButtonKind="CancelButton" ButtonStyle="Danger"
|
|
|
- Title="取消加工" Margin="0" Cursor="Hand" FontSize="13" Grid.Column="1"/>
|
|
|
+ Title="取消加工" Margin="0" Cursor="Hand" FontSize="13" Grid.Column="1"
|
|
|
+ Tag="Cancel"
|
|
|
+ Click="IconButton_Click"/>
|
|
|
</Grid>
|
|
|
</wpfcontrol:SmartGrid.HeaderExControl>
|
|
|
+ <wpfcontrol:SmartGrid.RowStyle>
|
|
|
+ <Style TargetType="DataGridRow">
|
|
|
+ <Setter Property="Height" Value="25" />
|
|
|
+ </Style>
|
|
|
+ </wpfcontrol:SmartGrid.RowStyle>
|
|
|
+ <wpfcontrol:SmartGrid.Columns>
|
|
|
+ <DataGridTextColumn Header="创建时间" Binding="{Binding CreateTime_Dt}" Visibility="Visible"/>
|
|
|
+ <DataGridTextColumn Header="创建者" Binding="{Binding CreateUser_Str}" Visibility="Collapsed"/>
|
|
|
+ <DataGridTextColumn Header="修改时间" Binding="{Binding ModifyTime_Dt}" Visibility="Collapsed"/>
|
|
|
+ <DataGridTextColumn Header="修改者" Binding="{Binding ModifyUser_Str}" Visibility="Collapsed"/>
|
|
|
+ <!--<DataGridTemplateColumn Header="操作" Width="auto">
|
|
|
+ <DataGridTemplateColumn.CellTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
|
|
|
+ <wpfcontrol:IconButton ButtonKind="OkButton" ButtonStyle="Success"
|
|
|
+ Title="完成加工" Margin="2" Cursor="Hand" FontSize="11"
|
|
|
+ Tag="{Binding OrderNo}"
|
|
|
+ Click="ProcessedButton_Click" />
|
|
|
+ <wpfcontrol:IconButton ButtonKind="CancelButton" ButtonStyle="Danger"
|
|
|
+ Title="取消加工" Margin="2" Cursor="Hand" FontSize="11"
|
|
|
+ Tag="{Binding OrderNo}"
|
|
|
+ Click="CancelProcessingButton_Click" />
|
|
|
+ </StackPanel>
|
|
|
+ </DataTemplate>
|
|
|
+ </DataGridTemplateColumn.CellTemplate>
|
|
|
+ </DataGridTemplateColumn>-->
|
|
|
+ </wpfcontrol:SmartGrid.Columns>
|
|
|
</wpfcontrol:SmartGrid>
|
|
|
</wpfcontrol:QueryFrm>
|
|
|
</Grid>
|