DataSourceSelection.xaml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. <Window x:Class="Aitex.UI.Charting.View.DataSourceSelection"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:dt="clr-namespace:Loya.Dameer;assembly=Loya.Dameer"
  5. Title="{DynamicResource GlobalLableDataSourceSelection}" Height="401" Width="980" WindowStartupLocation="CenterScreen" WindowStyle="SingleBorderWindow" ResizeMode="NoResize" xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit" FontFamily="Arial,SimSun">
  6. <Window.Resources>
  7. <Style TargetType="{x:Type Label}">
  8. <Setter Property="Foreground" Value="Black"/>
  9. </Style>
  10. <Style TargetType="TabControl" />
  11. </Window.Resources>
  12. <Grid>
  13. <TabControl>
  14. <TabItem Header="{DynamicResource GlobalLableByRecipe}" Name="tab1">
  15. <Grid Background="LightGoldenrodYellow">
  16. <Grid Margin="0,0,0,0" Width="960">
  17. <Grid.Resources>
  18. <Style TargetType="Button">
  19. <Setter Property="VerticalAlignment" Value="Top"/>
  20. </Style>
  21. </Grid.Resources>
  22. <Button Command="{Binding SearchRecipeHistoryCommand}" Content="{DynamicResource GlobalLableQuery}" Height="54" HorizontalAlignment="Left" IsDefault="False" Margin="364,267,0,0" Name="buttonQuery" VerticalAlignment="Top" Width="90" />
  23. <!--<ComboBox ItemsSource="{Binding RecipeSearch_UserDefinedIdList}" Text="{Binding RecipeSearch_SelectedUserDefinedId,Mode=TwoWay}" FontSize="13" Height="25" HorizontalAlignment="Left" IsEditable="True" Margin="392,268,0,0" Name="userSusceptorId" VerticalAlignment="Top" Width="190" />-->
  24. <!--<Label Content="用户编号" FontSize="13" Height="28" HorizontalAlignment="Left" Margin="327,267,0,0" Name="label51" VerticalAlignment="Top" />-->
  25. <!--<Label Content="工艺程序名" FontSize="13" Height="28" HorizontalAlignment="Left" Margin="610,262,0,0" Name="label3" VerticalAlignment="Top" />-->
  26. <!--<ComboBox ItemsSource="{Binding RecipeSearch_ChamberList}" SelectedItem="{Binding RecipeSearch_SelectedChamber,Mode=TwoWay}" FontSize="13" Height="25" HorizontalAlignment="Left" Margin="686,298,0,0" Name="comboBoxReactor" SelectedIndex="1" VerticalAlignment="Top" Width="190"/>-->
  27. <Label Content="{DynamicResource GlobalLableBeginTime}" FontSize="13" Height="28" HorizontalAlignment="Left" Margin="12,268,0,0" Name="label4" VerticalAlignment="Top" />
  28. <!--<Label Content="工艺反应腔" FontSize="13" Height="28" HorizontalAlignment="Left" Margin="610,296,0,0" Name="label5" VerticalAlignment="Top" />-->
  29. <!--<ComboBox ItemsSource="{Binding RecipeSearch_RecipeNameList}" Text="{Binding RecipeSearch_SelectedRecipeName,Mode=TwoWay}" FontSize="13" Height="25" HorizontalAlignment="Left" IsEditable="True" Margin="686,264,0,0" Name="recipeName" VerticalAlignment="Top" Width="190" />-->
  30. <!--<Label Content="石墨盘描述" FontSize="13" Height="28" HorizontalAlignment="Left" Margin="316,298,0,0" Name="label6" VerticalAlignment="Top" />
  31. <ComboBox ItemsSource="{Binding RecipeSearch_SusceptorDescList}" Text="{Binding RecipeSearch_SelectedSusceptorDesc,Mode=TwoWay}" FontSize="13" Height="25" IsEditable="True" Margin="392,299,0,0" Name="susceptorDescription" VerticalAlignment="Top" HorizontalAlignment="Left" Width="190" />-->
  32. <xctk:TimePicker Value="{Binding RecipeSearch_BeginTime,Mode=TwoWay}" FontFamily="Arial,SimSun" Height="25" HorizontalAlignment="Left" Margin="194,268,0,0" Name="timeBegin" VerticalAlignment="Top" Width="83" FontSize="12" Format="Custom" FormatString="HH:mm" />
  33. <DatePicker SelectedDate="{Binding RecipeSearch_BeginDate,Mode=TwoWay}" FontFamily="Arial,SimSun" Height="25" HorizontalAlignment="Left" Margin="87,268,0,0" Name="dateBegin" VerticalAlignment="Top" Width="101" FontSize="12" />
  34. <xctk:TimePicker Value="{Binding RecipeSearch_EndTime,Mode=TwoWay}" FontFamily="Arial,SimSun" Height="25" HorizontalAlignment="Left" Margin="194,299,0,0" Name="timeEnd" VerticalAlignment="Top" Width="83" FontSize="12" Format="Custom" FormatString="HH:mm" />
  35. <DatePicker SelectedDate="{Binding RecipeSearch_EndDate,Mode=TwoWay}" FontFamily="Arial,SimSun" Height="25" HorizontalAlignment="Left" Margin="87,299,0,0" Name="dateEnd" VerticalAlignment="Top" Width="101" FontSize="12" />
  36. <DataGrid AutoGenerateColumns="False" Background="White" FontFamily="Arial,SimSun" FontSize="12" Height="248" ItemsSource="{Binding RecipeSearch_SusceptorData}" Margin="-7,6,-2,0" Name="dataGrid_SusceptorList" SelectionUnit="FullRow" VerticalAlignment="Top" HorizontalScrollBarVisibility="Visible" CanUserAddRows="False" CanUserDeleteRows="False">
  37. <DataGrid.Columns>
  38. <!--<DataGridTextColumn Binding="{Binding SusceptorId, Mode=OneWay}" CanUserReorder="False" CanUserResize="False" CanUserSort="True" Header="炉次编号" IsReadOnly="True" Width="100">
  39. <DataGridTextColumn.CellStyle>
  40. <Style TargetType="DataGridCell">
  41. <Setter Property="FrameworkElement.ToolTip" Value="{Binding SusceptorId}" />
  42. </Style>
  43. </DataGridTextColumn.CellStyle>
  44. </DataGridTextColumn>-->
  45. <!--<DataGridTextColumn Binding="{Binding UserDefinedId, Mode=OneWay}" CanUserReorder="False" CanUserResize="False" CanUserSort="True" Header="用户定义编号" IsReadOnly="True" Width="200">
  46. <DataGridTextColumn.CellStyle>
  47. <Style TargetType="DataGridCell">
  48. <Setter Property="FrameworkElement.ToolTip" Value="{Binding UserDefinedId}" />
  49. </Style>
  50. </DataGridTextColumn.CellStyle>
  51. </DataGridTextColumn>-->
  52. <!--<DataGridTextColumn Binding="{Binding CreateTime, Mode=OneWay}" CanUserReorder="False" CanUserResize="False" CanUserSort="True" Header="记录创建时间" IsReadOnly="True" Width="128">
  53. <DataGridTextColumn.CellStyle>
  54. <Style TargetType="DataGridCell">
  55. <Setter Property="FrameworkElement.ToolTip" Value="{Binding CreateTime}" />
  56. </Style>
  57. </DataGridTextColumn.CellStyle>
  58. </DataGridTextColumn>-->
  59. <DataGridTextColumn Binding="{Binding ProcessBeginTime, Mode=OneWay}" CanUserReorder="False" CanUserResize="False" CanUserSort="True" IsReadOnly="True" Width="128">
  60. <DataGridTextColumn.HeaderTemplate >
  61. <DataTemplate>
  62. <TextBlock Text="{DynamicResource GlobalLableProcessBeginTime}" />
  63. </DataTemplate>
  64. </DataGridTextColumn.HeaderTemplate>
  65. <DataGridTextColumn.CellStyle>
  66. <Style TargetType="DataGridCell">
  67. <Setter Property="FrameworkElement.ToolTip" Value="{Binding ProcessBeginTime}" />
  68. </Style>
  69. </DataGridTextColumn.CellStyle>
  70. </DataGridTextColumn>
  71. <DataGridTextColumn Binding="{Binding ProcessEndTime, Mode=OneWay}" CanUserReorder="False" CanUserResize="False" CanUserSort="True" IsReadOnly="True" Width="128">
  72. <DataGridTextColumn.HeaderTemplate >
  73. <DataTemplate>
  74. <TextBlock Text="{DynamicResource GlobalLableProcessEndTime}" />
  75. </DataTemplate>
  76. </DataGridTextColumn.HeaderTemplate>
  77. <DataGridTextColumn.CellStyle>
  78. <Style TargetType="DataGridCell">
  79. <Setter Property="FrameworkElement.ToolTip" Value="{Binding ProcessEndTime}" />
  80. </Style>
  81. </DataGridTextColumn.CellStyle>
  82. </DataGridTextColumn>
  83. <!--<DataGridTextColumn Binding="{Binding DeleteTime, Mode=OneWay}" CanUserReorder="False" CanUserResize="False" CanUserSort="True" Header="记录结束时间" IsReadOnly="True" Width="128">
  84. <DataGridTextColumn.CellStyle>
  85. <Style TargetType="DataGridCell">
  86. <Setter Property="FrameworkElement.ToolTip" Value="{Binding DeleteTime}" />
  87. </Style>
  88. </DataGridTextColumn.CellStyle>
  89. </DataGridTextColumn>-->
  90. <!--<DataGridTextColumn Binding="{Binding ProcessIn, Mode=OneWay}" CanUserReorder="False" CanUserResize="False" CanUserSort="True" Header="反应腔" IsReadOnly="True" Width="70">
  91. <DataGridTextColumn.CellStyle>
  92. <Style TargetType="DataGridCell">
  93. <Setter Property="FrameworkElement.ToolTip" Value="{Binding ProcessIn}" />
  94. </Style>
  95. </DataGridTextColumn.CellStyle>
  96. </DataGridTextColumn>-->
  97. <DataGridTextColumn Binding="{Binding RecipeShortName, Mode=OneWay}" CanUserReorder="False" CanUserResize="False" CanUserSort="True" IsReadOnly="True" Width="250">
  98. <DataGridTextColumn.HeaderTemplate >
  99. <DataTemplate>
  100. <TextBlock Text="{DynamicResource GlobalLableProcessName}" />
  101. </DataTemplate>
  102. </DataGridTextColumn.HeaderTemplate>
  103. <DataGridTextColumn.CellStyle>
  104. <Style TargetType="DataGridCell">
  105. <Setter Property="FrameworkElement.ToolTip" Value="{Binding RecipeShortName}" />
  106. </Style>
  107. </DataGridTextColumn.CellStyle>
  108. </DataGridTextColumn>
  109. <DataGridTextColumn Binding="{Binding SusceptorStatus, Mode=OneWay}" CanUserReorder="True" CanUserResize="False" CanUserSort="True" IsReadOnly="True" Width="110">
  110. <DataGridTextColumn.HeaderTemplate >
  111. <DataTemplate>
  112. <TextBlock Text="{DynamicResource GlobalLableProcessStatus}" />
  113. </DataTemplate>
  114. </DataGridTextColumn.HeaderTemplate>
  115. <DataGridTextColumn.CellStyle>
  116. <Style TargetType="DataGridCell">
  117. <Setter Property="FrameworkElement.ToolTip" Value="{Binding SusceptorStatus}" />
  118. </Style>
  119. </DataGridTextColumn.CellStyle>
  120. </DataGridTextColumn>
  121. <DataGridTextColumn Binding="{Binding Description, Mode=OneWay}" CanUserReorder="False" CanUserResize="False" CanUserSort="True" IsReadOnly="True" Width="*">
  122. <DataGridTextColumn.HeaderTemplate >
  123. <DataTemplate>
  124. <TextBlock Text="{DynamicResource GlobalLableDescription}" />
  125. </DataTemplate>
  126. </DataGridTextColumn.HeaderTemplate>
  127. <DataGridTextColumn.CellStyle>
  128. <Style TargetType="DataGridCell">
  129. <Setter Property="FrameworkElement.ToolTip" Value="{Binding Description}" />
  130. </Style>
  131. </DataGridTextColumn.CellStyle>
  132. </DataGridTextColumn>
  133. </DataGrid.Columns>
  134. <DataGrid.Style>
  135. <Style TargetType="ItemsControl">
  136. <Style.Resources>
  137. </Style.Resources>
  138. <Setter Property="Control.HorizontalContentAlignment" Value="Stretch" />
  139. </Style>
  140. </DataGrid.Style>
  141. </DataGrid>
  142. <Label Content="{DynamicResource GlobalLableEndTime}" FontSize="13" Height="28" HorizontalAlignment="Left" Margin="22,296,0,0" Name="label8" VerticalAlignment="Top" />
  143. <Button Content="{DynamicResource GlobalLableAdd}" Height="54" HorizontalAlignment="Left" VerticalAlignment="Top" Width="85" Command="{Binding AddDataSourceByRecipeCommand}" Margin="484,268,0,0" />
  144. </Grid>
  145. </Grid>
  146. </TabItem>
  147. <TabItem Header="{DynamicResource GlobalLableByTime}" Name="tab2">
  148. <Grid HorizontalAlignment="Stretch" Background="LightGoldenrodYellow" VerticalAlignment="Stretch">
  149. <Grid.Resources>
  150. <Style TargetType="Button">
  151. <Setter Property="VerticalAlignment" Value="Top"/>
  152. </Style>
  153. </Grid.Resources>
  154. <xctk:TimePicker Value="{Binding TimeSearch_BeginTime,Mode=TwoWay}" FontFamily="Arial,SimSun" FontSize="12" Height="25" HorizontalAlignment="Left" Margin="199,13,0,0" Name="CustomizedTimeBegin" VerticalAlignment="Top" Width="101" EndTime="23:59:59" TimeInterval="01:00:00" Format="Custom" FormatString="HH:mm" />
  155. <DatePicker SelectedDate="{Binding TimeSearch_BeginDate,Mode=TwoWay}" FontFamily="Arial,SimSun" FontSize="12" Height="25" HorizontalAlignment="Left" Margin="90,10,0,0" Name="CustomizedDateBegin" VerticalAlignment="Top" Width="101" />
  156. <xctk:TimePicker Value="{Binding TimeSearch_EndTime,Mode=TwoWay}" FontFamily="Arial,SimSun" FontSize="12" Height="25" HorizontalAlignment="Left" Margin="199,44,0,0" Name="CustomizedTimeEnd" VerticalAlignment="Top" Width="101" EndTime="23:59:59" TimeInterval="01:00:00" Format="Custom" FormatString="HH:mm" />
  157. <DatePicker SelectedDate="{Binding TimeSearch_EndDate,Mode=TwoWay}" FontFamily="Arial,SimSun" FontSize="12" Height="25" HorizontalAlignment="Left" Margin="90,44,0,0" Name="CustomizedDateEnd" VerticalAlignment="Top" Width="101" />
  158. <!--<ComboBox ItemsSource="{Binding TimeSearch_ChamberList}" SelectedItem="{Binding TimeSearch_SelectedChamber}" FontSize="13" Height="25" HorizontalAlignment="Left" Margin="90,77,0,0" Name="CustomizedChamberSelection" SelectedIndex="1" VerticalAlignment="Top" Width="101"/>-->
  159. <Label Content="{DynamicResource GlobalLableBeginTime}" FontSize="13" Height="28" HorizontalAlignment="Left" Margin="23,10,0,0" Name="label2" VerticalAlignment="Top" />
  160. <Label Content="{DynamicResource GlobalLableEndTime}" FontSize="13" Height="28" HorizontalAlignment="Left" Margin="23,44,0,0" Name="label14" VerticalAlignment="Top" />
  161. <!--<Label Content="腔体选择" FontSize="13" Height="28" HorizontalAlignment="Left" Margin="23,74,0,0" Name="label7" VerticalAlignment="Top" />-->
  162. <Button Command="{Binding AddDataSourceByTimeCommand}" Content="{DynamicResource GlobalLableAdd}" Height="26" HorizontalAlignment="Left" Margin="199,77,0,0" VerticalAlignment="Top" Width="101" />
  163. </Grid>
  164. </TabItem>
  165. </TabControl>
  166. </Grid>
  167. </Window>