终端一体化运控平台
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 

320 wiersze
14 KiB

  1. <Window
  2. x:Class="BPASmartClient.MainWindow"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:control="clr-namespace:BPASmartClient.CustomResource.UserControls;assembly=BPASmartClient.CustomResource"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:local="clr-namespace:BPASmartClient"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. xmlns:pry="clr-namespace:BPASmartClient.CustomResource.UserControls;assembly=BPASmartClient.CustomResource"
  10. xmlns:vm="clr-namespace:BPASmartClient.ViewModel;assembly=BPASmartClient.ViewModel"
  11. Title="MainWindow"
  12. Width="1300"
  13. Height="800"
  14. AllowsTransparency="True"
  15. Background="{x:Null}"
  16. Topmost="False"
  17. WindowStartupLocation="CenterScreen"
  18. WindowStyle="None"
  19. mc:Ignorable="d">
  20. <Window.Resources>
  21. <ResourceDictionary>
  22. <ResourceDictionary.MergedDictionaries>
  23. <ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/GenricStyle.xaml" />
  24. <ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/MyStyle.xaml" />
  25. </ResourceDictionary.MergedDictionaries>
  26. </ResourceDictionary>
  27. </Window.Resources>
  28. <Border x:Name="br" Style="{DynamicResource border主窗体背景}">
  29. <Grid>
  30. <Grid.RowDefinitions>
  31. <RowDefinition Height="60" />
  32. <RowDefinition />
  33. </Grid.RowDefinitions>
  34. <!-- 标题 -->
  35. <Grid Grid.Row="0">
  36. <Grid.ColumnDefinitions>
  37. <ColumnDefinition Width="300" />
  38. <ColumnDefinition />
  39. </Grid.ColumnDefinitions>
  40. <Border
  41. Grid.ColumnSpan="2"
  42. Height="52"
  43. VerticalAlignment="Top"
  44. Style="{DynamicResource bordertop矩形}" />
  45. <Border Style="{DynamicResource bordertopL}" />
  46. <Image
  47. Margin="20,0,0,0"
  48. VerticalAlignment="Center"
  49. Style="{DynamicResource imagetop_Title}" />
  50. <Grid Grid.Column="1" Visibility="{Binding VsMenuItem}" >
  51. <Menu>
  52. <MenuItem Header="功能列表">
  53. <MenuItem
  54. Click="MenuItem_Click"
  55. FontSize="12"
  56. Header="加盟商管理"
  57. Tag="BatchingAddView" />
  58. <Separator />
  59. <MenuItem
  60. Click="MenuItem_Click"
  61. FontSize="12"
  62. Header="业务编排"
  63. Tag="BusinessOrchestrationView" />
  64. <Separator />
  65. <MenuItem
  66. Click="MenuItem_Click"
  67. FontSize="12"
  68. Header="大屏导航"
  69. Tag="IOT" />
  70. <Separator />
  71. <MenuItem
  72. Click="MenuItem_Click"
  73. FontSize="12"
  74. Header="店铺设备配置"
  75. Tag="ShopDeviceConfigView" />
  76. <Separator />
  77. <MenuItem
  78. Click="MenuItem_Click"
  79. FontSize="12"
  80. Header="阿里连接维护"
  81. Tag="DataVView" />
  82. <Separator />
  83. <MenuItem
  84. Click="MenuItem_Click"
  85. FontSize="12"
  86. Header="调试界面"
  87. Tag="DebugView" />
  88. </MenuItem>
  89. <MenuItem Header="状态监视">
  90. <MenuItem
  91. Click="MenuItem_Click"
  92. FontSize="12"
  93. Header="日志监视"
  94. Tag="LogView" />
  95. <Separator />
  96. <MenuItem
  97. Click="MenuItem_Click"
  98. FontSize="12"
  99. Header="订单监视"
  100. Tag="OrderStatusView" />
  101. <Separator />
  102. <MenuItem
  103. Click="MenuItem_Click"
  104. FontSize="12"
  105. Header="设备监视"
  106. Tag="DeviceMonitorView" />
  107. <Separator />
  108. <MenuItem
  109. Click="MenuItem_Click"
  110. FontSize="12"
  111. Header="IOT监视"
  112. Tag="IOTView" />
  113. <Separator />
  114. </MenuItem>
  115. <MenuItem Header="综合查询">
  116. <MenuItem
  117. Click="MenuItem_Click"
  118. FontSize="12"
  119. Header="日志/告警查询"
  120. Tag="LogOrAlarmView" />
  121. <Separator />
  122. <MenuItem
  123. Click="MenuItem_Click"
  124. FontSize="12"
  125. Header="维护查询"
  126. Tag="LogOrAlarmView" />
  127. </MenuItem>
  128. <MenuItem Header="参数配置">
  129. <MenuItem
  130. Click="MenuItem_Click"
  131. FontSize="12"
  132. Header="参数设置"
  133. Tag="SystemSetView" />
  134. </MenuItem>
  135. <MenuItem Header="系统帮助">
  136. <MenuItem
  137. Click="MenuItem_Click"
  138. FontSize="12"
  139. Header="版本更新历史"
  140. Tag="VersionView" />
  141. <Separator />
  142. <MenuItem
  143. Click="MenuItem_Click"
  144. FontSize="12"
  145. Header="帮助文档"
  146. Tag="SystemParameterControl" />
  147. <Separator />
  148. <MenuItem
  149. Click="MenuItem_Click"
  150. FontSize="12"
  151. Header="退出程序"
  152. Tag="Close" />
  153. </MenuItem>
  154. </Menu>
  155. </Grid>
  156. <StackPanel
  157. Grid.Column="4"
  158. Height="50"
  159. HorizontalAlignment="Right"
  160. VerticalAlignment="Top"
  161. Orientation="Horizontal">
  162. <Border Style="{DynamicResource border竖线}" />
  163. <StackPanel
  164. Margin="5"
  165. HorizontalAlignment="Center"
  166. VerticalAlignment="Center">
  167. <TextBlock FontSize="12">网</TextBlock>
  168. <TextBlock FontSize="12">络</TextBlock>
  169. </StackPanel>
  170. <ToggleButton
  171. Margin="5"
  172. HorizontalAlignment="Center"
  173. VerticalAlignment="Center"
  174. Cursor="Hand"
  175. IsChecked="{Binding NetworkConnectState}"
  176. Style="{DynamicResource StatusBtnStyle网络连接状态}"
  177. ToolTip="网络连接状态" />
  178. <Border Style="{DynamicResource border竖线}" />
  179. <ToggleButton
  180. HorizontalAlignment="Center"
  181. VerticalAlignment="Center"
  182. Cursor="Hand"
  183. DataContext="{Binding IsAlarm}"
  184. Style="{DynamicResource StatusBtnStyle告警}"
  185. ToolTip="告警消息" />
  186. <Border Style="{DynamicResource border竖线}" />
  187. <control:DateTimeUI Margin="10,0,10,0" VerticalAlignment="Center" />
  188. <Border Style="{DynamicResource border竖线}" />
  189. <Button
  190. x:Name="ButClose"
  191. Grid.Column="4"
  192. Margin="10,0,20,0"
  193. VerticalAlignment="Center"
  194. Content="退出"
  195. Cursor="Hand"
  196. Style="{DynamicResource CommonBtn_返回}"
  197. ToolTip="退出程序" />
  198. </StackPanel>
  199. </Grid>
  200. <!-- 底部窗体 -->
  201. <Grid Grid.Row="1" Margin="10">
  202. <Grid.RowDefinitions>
  203. <RowDefinition Height="45" />
  204. <RowDefinition />
  205. </Grid.RowDefinitions>
  206. <!-- 顶部装饰 -->
  207. <Border
  208. Grid.Row="0"
  209. Grid.RowSpan="2"
  210. Style="{DynamicResource border右下}" />
  211. <Border
  212. Grid.Row="0"
  213. Grid.RowSpan="2"
  214. Style="{DynamicResource border左下}" />
  215. <Border
  216. Grid.Row="0"
  217. Grid.RowSpan="2"
  218. Style="{DynamicResource border右上}" />
  219. <Border
  220. Grid.Row="0"
  221. Grid.RowSpan="2"
  222. Style="{DynamicResource border左上}" />
  223. <Grid Margin="10">
  224. <Border Width="600" Style="{DynamicResource borderFromTitle}" />
  225. <Button
  226. Grid.Row="0"
  227. HorizontalAlignment="Left"
  228. VerticalAlignment="Top"
  229. Click="Button_Click"
  230. Content="测试"
  231. Cursor="Hand" />
  232. <Button
  233. Grid.Row="0"
  234. Width="100"
  235. Margin="100,0,0,0"
  236. HorizontalAlignment="Left"
  237. VerticalAlignment="Top"
  238. Click="Button_Click_1"
  239. Content="测试消息弹窗"
  240. Cursor="Hand"/>
  241. <!--<Button
  242. Name="save"
  243. Grid.Row="0"
  244. Width="100"
  245. Margin="230,0,0,0"
  246. HorizontalAlignment="Left"
  247. VerticalAlignment="Top"
  248. Click="Button_Click_2"
  249. Content="保存订单数据"
  250. Cursor="Hand"
  251. Style="{DynamicResource CommonBtn_返回}" />-->
  252. <Button
  253. Name="init"
  254. Grid.Row="0"
  255. Width="90"
  256. Margin="230,0,0,0"
  257. HorizontalAlignment="Left"
  258. VerticalAlignment="Top"
  259. Click="init_Click"
  260. Content="初始化设备"
  261. Cursor="Hand"/>
  262. <CheckBox
  263. Margin="350,0,0,0"
  264. Content="开机启动"
  265. IsChecked="{Binding AutoStart}" />
  266. <TextBlock
  267. x:Name="Title"
  268. HorizontalAlignment="Center"
  269. FontSize="18"
  270. Foreground="#feffff">
  271. 日志监控界面
  272. </TextBlock>
  273. <Button
  274. Name="login"
  275. Grid.Row="0"
  276. Width="45"
  277. Margin="0,0,60,0"
  278. HorizontalAlignment="Right"
  279. VerticalAlignment="Top"
  280. Click="Button_Login"
  281. Content="登录"
  282. Cursor="Hand"
  283. Style="{DynamicResource CommonBtn_返回}" />
  284. <Button
  285. Name="logout"
  286. Grid.Row="0"
  287. Width="45"
  288. Margin="350,0,0,0"
  289. HorizontalAlignment="Right"
  290. VerticalAlignment="Top"
  291. Click="Button_LogOut"
  292. Content="注销"
  293. Cursor="Hand"
  294. Style="{DynamicResource CommonBtn_返回}"
  295. Command="{Binding LogoutCommand}"/>
  296. </Grid>
  297. <!--#region 底部窗体栏-->
  298. <ContentControl x:Name="contentRegion" Grid.Row="1" />
  299. <!--#endregion-->
  300. <!--<Button Grid.Row="2" Content="返回" Style="{DynamicResource CommonBtn_返回}" HorizontalAlignment="Left" VerticalAlignment="Top" Click="Button_Click"/>
  301. <Button Grid.Row="2" Visibility="Collapsed" Content="测试" HorizontalAlignment="Left" Margin="153,123,0,0" VerticalAlignment="Top" Click="Button_Click"/>-->
  302. </Grid>
  303. </Grid>
  304. </Border>
  305. </Window>