添加项目文件。
No files matched your search
@@ -0,0 +1,63 @@
|
||||
###############################################################################
|
||||
# Set default behavior to automatically normalize line endings.
|
||||
###############################################################################
|
||||
* text=auto
|
||||
|
||||
###############################################################################
|
||||
# Set default behavior for command prompt diff.
|
||||
#
|
||||
# This is need for earlier builds of msysgit that does not have it on by
|
||||
# default for csharp files.
|
||||
# Note: This is only used by command line
|
||||
###############################################################################
|
||||
#*.cs diff=csharp
|
||||
|
||||
###############################################################################
|
||||
# Set the merge driver for project and solution files
|
||||
#
|
||||
# Merging from the command prompt will add diff markers to the files if there
|
||||
# are conflicts (Merging from VS is not affected by the settings below, in VS
|
||||
# the diff markers are never inserted). Diff markers may cause the following
|
||||
# file extensions to fail to load in VS. An alternative would be to treat
|
||||
# these files as binary and thus will always conflict and require user
|
||||
# intervention with every merge. To do so, just uncomment the entries below
|
||||
###############################################################################
|
||||
#*.sln merge=binary
|
||||
#*.csproj merge=binary
|
||||
#*.vbproj merge=binary
|
||||
#*.vcxproj merge=binary
|
||||
#*.vcproj merge=binary
|
||||
#*.dbproj merge=binary
|
||||
#*.fsproj merge=binary
|
||||
#*.lsproj merge=binary
|
||||
#*.wixproj merge=binary
|
||||
#*.modelproj merge=binary
|
||||
#*.sqlproj merge=binary
|
||||
#*.wwaproj merge=binary
|
||||
|
||||
###############################################################################
|
||||
# behavior for image files
|
||||
#
|
||||
# image files are treated as binary by default.
|
||||
###############################################################################
|
||||
#*.jpg binary
|
||||
#*.png binary
|
||||
#*.gif binary
|
||||
|
||||
###############################################################################
|
||||
# diff behavior for common document formats
|
||||
#
|
||||
# Convert binary document formats to text before diffing them. This feature
|
||||
# is only available from the command line. Turn it on by uncommenting the
|
||||
# entries below.
|
||||
###############################################################################
|
||||
#*.doc diff=astextplain
|
||||
#*.DOC diff=astextplain
|
||||
#*.docx diff=astextplain
|
||||
#*.DOCX diff=astextplain
|
||||
#*.dot diff=astextplain
|
||||
#*.DOT diff=astextplain
|
||||
#*.pdf diff=astextplain
|
||||
#*.PDF diff=astextplain
|
||||
#*.rtf diff=astextplain
|
||||
#*.RTF diff=astextplain
|
||||
@@ -0,0 +1,363 @@
|
||||
## Ignore Visual Studio temporary files, build results, and
|
||||
## files generated by popular Visual Studio add-ons.
|
||||
##
|
||||
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
|
||||
|
||||
# User-specific files
|
||||
*.rsuser
|
||||
*.suo
|
||||
*.user
|
||||
*.userosscache
|
||||
*.sln.docstates
|
||||
|
||||
# User-specific files (MonoDevelop/Xamarin Studio)
|
||||
*.userprefs
|
||||
|
||||
# Mono auto generated files
|
||||
mono_crash.*
|
||||
|
||||
# Build results
|
||||
[Dd]ebug/
|
||||
[Dd]ebugPublic/
|
||||
[Rr]elease/
|
||||
[Rr]eleases/
|
||||
x64/
|
||||
x86/
|
||||
[Ww][Ii][Nn]32/
|
||||
[Aa][Rr][Mm]/
|
||||
[Aa][Rr][Mm]64/
|
||||
bld/
|
||||
[Bb]in/
|
||||
[Oo]bj/
|
||||
[Oo]ut/
|
||||
[Ll]og/
|
||||
[Ll]ogs/
|
||||
|
||||
# Visual Studio 2015/2017 cache/options directory
|
||||
.vs/
|
||||
# Uncomment if you have tasks that create the project's static files in wwwroot
|
||||
#wwwroot/
|
||||
|
||||
# Visual Studio 2017 auto generated files
|
||||
Generated\ Files/
|
||||
|
||||
# MSTest test Results
|
||||
[Tt]est[Rr]esult*/
|
||||
[Bb]uild[Ll]og.*
|
||||
|
||||
# NUnit
|
||||
*.VisualState.xml
|
||||
TestResult.xml
|
||||
nunit-*.xml
|
||||
|
||||
# Build Results of an ATL Project
|
||||
[Dd]ebugPS/
|
||||
[Rr]eleasePS/
|
||||
dlldata.c
|
||||
|
||||
# Benchmark Results
|
||||
BenchmarkDotNet.Artifacts/
|
||||
|
||||
# .NET Core
|
||||
project.lock.json
|
||||
project.fragment.lock.json
|
||||
artifacts/
|
||||
|
||||
# ASP.NET Scaffolding
|
||||
ScaffoldingReadMe.txt
|
||||
|
||||
# StyleCop
|
||||
StyleCopReport.xml
|
||||
|
||||
# Files built by Visual Studio
|
||||
*_i.c
|
||||
*_p.c
|
||||
*_h.h
|
||||
*.ilk
|
||||
*.meta
|
||||
*.obj
|
||||
*.iobj
|
||||
*.pch
|
||||
*.pdb
|
||||
*.ipdb
|
||||
*.pgc
|
||||
*.pgd
|
||||
*.rsp
|
||||
*.sbr
|
||||
*.tlb
|
||||
*.tli
|
||||
*.tlh
|
||||
*.tmp
|
||||
*.tmp_proj
|
||||
*_wpftmp.csproj
|
||||
*.log
|
||||
*.vspscc
|
||||
*.vssscc
|
||||
.builds
|
||||
*.pidb
|
||||
*.svclog
|
||||
*.scc
|
||||
|
||||
# Chutzpah Test files
|
||||
_Chutzpah*
|
||||
|
||||
# Visual C++ cache files
|
||||
ipch/
|
||||
*.aps
|
||||
*.ncb
|
||||
*.opendb
|
||||
*.opensdf
|
||||
*.sdf
|
||||
*.cachefile
|
||||
*.VC.db
|
||||
*.VC.VC.opendb
|
||||
|
||||
# Visual Studio profiler
|
||||
*.psess
|
||||
*.vsp
|
||||
*.vspx
|
||||
*.sap
|
||||
|
||||
# Visual Studio Trace Files
|
||||
*.e2e
|
||||
|
||||
# TFS 2012 Local Workspace
|
||||
$tf/
|
||||
|
||||
# Guidance Automation Toolkit
|
||||
*.gpState
|
||||
|
||||
# ReSharper is a .NET coding add-in
|
||||
_ReSharper*/
|
||||
*.[Rr]e[Ss]harper
|
||||
*.DotSettings.user
|
||||
|
||||
# TeamCity is a build add-in
|
||||
_TeamCity*
|
||||
|
||||
# DotCover is a Code Coverage Tool
|
||||
*.dotCover
|
||||
|
||||
# AxoCover is a Code Coverage Tool
|
||||
.axoCover/*
|
||||
!.axoCover/settings.json
|
||||
|
||||
# Coverlet is a free, cross platform Code Coverage Tool
|
||||
coverage*.json
|
||||
coverage*.xml
|
||||
coverage*.info
|
||||
|
||||
# Visual Studio code coverage results
|
||||
*.coverage
|
||||
*.coveragexml
|
||||
|
||||
# NCrunch
|
||||
_NCrunch_*
|
||||
.*crunch*.local.xml
|
||||
nCrunchTemp_*
|
||||
|
||||
# MightyMoose
|
||||
*.mm.*
|
||||
AutoTest.Net/
|
||||
|
||||
# Web workbench (sass)
|
||||
.sass-cache/
|
||||
|
||||
# Installshield output folder
|
||||
[Ee]xpress/
|
||||
|
||||
# DocProject is a documentation generator add-in
|
||||
DocProject/buildhelp/
|
||||
DocProject/Help/*.HxT
|
||||
DocProject/Help/*.HxC
|
||||
DocProject/Help/*.hhc
|
||||
DocProject/Help/*.hhk
|
||||
DocProject/Help/*.hhp
|
||||
DocProject/Help/Html2
|
||||
DocProject/Help/html
|
||||
|
||||
# Click-Once directory
|
||||
publish/
|
||||
|
||||
# Publish Web Output
|
||||
*.[Pp]ublish.xml
|
||||
*.azurePubxml
|
||||
# Note: Comment the next line if you want to checkin your web deploy settings,
|
||||
# but database connection strings (with potential passwords) will be unencrypted
|
||||
*.pubxml
|
||||
*.publishproj
|
||||
|
||||
# Microsoft Azure Web App publish settings. Comment the next line if you want to
|
||||
# checkin your Azure Web App publish settings, but sensitive information contained
|
||||
# in these scripts will be unencrypted
|
||||
PublishScripts/
|
||||
|
||||
# NuGet Packages
|
||||
*.nupkg
|
||||
# NuGet Symbol Packages
|
||||
*.snupkg
|
||||
# The packages folder can be ignored because of Package Restore
|
||||
**/[Pp]ackages/*
|
||||
# except build/, which is used as an MSBuild target.
|
||||
!**/[Pp]ackages/build/
|
||||
# Uncomment if necessary however generally it will be regenerated when needed
|
||||
#!**/[Pp]ackages/repositories.config
|
||||
# NuGet v3's project.json files produces more ignorable files
|
||||
*.nuget.props
|
||||
*.nuget.targets
|
||||
|
||||
# Microsoft Azure Build Output
|
||||
csx/
|
||||
*.build.csdef
|
||||
|
||||
# Microsoft Azure Emulator
|
||||
ecf/
|
||||
rcf/
|
||||
|
||||
# Windows Store app package directories and files
|
||||
AppPackages/
|
||||
BundleArtifacts/
|
||||
Package.StoreAssociation.xml
|
||||
_pkginfo.txt
|
||||
*.appx
|
||||
*.appxbundle
|
||||
*.appxupload
|
||||
|
||||
# Visual Studio cache files
|
||||
# files ending in .cache can be ignored
|
||||
*.[Cc]ache
|
||||
# but keep track of directories ending in .cache
|
||||
!?*.[Cc]ache/
|
||||
|
||||
# Others
|
||||
ClientBin/
|
||||
~$*
|
||||
*~
|
||||
*.dbmdl
|
||||
*.dbproj.schemaview
|
||||
*.jfm
|
||||
*.pfx
|
||||
*.publishsettings
|
||||
orleans.codegen.cs
|
||||
|
||||
# Including strong name files can present a security risk
|
||||
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
|
||||
#*.snk
|
||||
|
||||
# Since there are multiple workflows, uncomment next line to ignore bower_components
|
||||
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
|
||||
#bower_components/
|
||||
|
||||
# RIA/Silverlight projects
|
||||
Generated_Code/
|
||||
|
||||
# Backup & report files from converting an old project file
|
||||
# to a newer Visual Studio version. Backup files are not needed,
|
||||
# because we have git ;-)
|
||||
_UpgradeReport_Files/
|
||||
Backup*/
|
||||
UpgradeLog*.XML
|
||||
UpgradeLog*.htm
|
||||
ServiceFabricBackup/
|
||||
*.rptproj.bak
|
||||
|
||||
# SQL Server files
|
||||
*.mdf
|
||||
*.ldf
|
||||
*.ndf
|
||||
|
||||
# Business Intelligence projects
|
||||
*.rdl.data
|
||||
*.bim.layout
|
||||
*.bim_*.settings
|
||||
*.rptproj.rsuser
|
||||
*- [Bb]ackup.rdl
|
||||
*- [Bb]ackup ([0-9]).rdl
|
||||
*- [Bb]ackup ([0-9][0-9]).rdl
|
||||
|
||||
# Microsoft Fakes
|
||||
FakesAssemblies/
|
||||
|
||||
# GhostDoc plugin setting file
|
||||
*.GhostDoc.xml
|
||||
|
||||
# Node.js Tools for Visual Studio
|
||||
.ntvs_analysis.dat
|
||||
node_modules/
|
||||
|
||||
# Visual Studio 6 build log
|
||||
*.plg
|
||||
|
||||
# Visual Studio 6 workspace options file
|
||||
*.opt
|
||||
|
||||
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
|
||||
*.vbw
|
||||
|
||||
# Visual Studio LightSwitch build output
|
||||
**/*.HTMLClient/GeneratedArtifacts
|
||||
**/*.DesktopClient/GeneratedArtifacts
|
||||
**/*.DesktopClient/ModelManifest.xml
|
||||
**/*.Server/GeneratedArtifacts
|
||||
**/*.Server/ModelManifest.xml
|
||||
_Pvt_Extensions
|
||||
|
||||
# Paket dependency manager
|
||||
.paket/paket.exe
|
||||
paket-files/
|
||||
|
||||
# FAKE - F# Make
|
||||
.fake/
|
||||
|
||||
# CodeRush personal settings
|
||||
.cr/personal
|
||||
|
||||
# Python Tools for Visual Studio (PTVS)
|
||||
__pycache__/
|
||||
*.pyc
|
||||
|
||||
# Cake - Uncomment if you are using it
|
||||
# tools/**
|
||||
# !tools/packages.config
|
||||
|
||||
# Tabs Studio
|
||||
*.tss
|
||||
|
||||
# Telerik's JustMock configuration file
|
||||
*.jmconfig
|
||||
|
||||
# BizTalk build output
|
||||
*.btp.cs
|
||||
*.btm.cs
|
||||
*.odx.cs
|
||||
*.xsd.cs
|
||||
|
||||
# OpenCover UI analysis results
|
||||
OpenCover/
|
||||
|
||||
# Azure Stream Analytics local run output
|
||||
ASALocalRun/
|
||||
|
||||
# MSBuild Binary and Structured Log
|
||||
*.binlog
|
||||
|
||||
# NVidia Nsight GPU debugger configuration file
|
||||
*.nvuser
|
||||
|
||||
# MFractors (Xamarin productivity tool) working folder
|
||||
.mfractor/
|
||||
|
||||
# Local History for Visual Studio
|
||||
.localhistory/
|
||||
|
||||
# BeatPulse healthcheck temp database
|
||||
healthchecksdb
|
||||
|
||||
# Backup folder for Package Reference Convert tool in Visual Studio 2017
|
||||
MigrationBackup/
|
||||
|
||||
# Ionide (cross platform F# VS Code tools) working folder
|
||||
.ionide/
|
||||
|
||||
# Fody - auto-generated XML schema
|
||||
FodyWeavers.xsd
|
||||
@@ -0,0 +1,37 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.4.33205.214
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WCS_YongFeng_XB", "WCS_YongFeng_CP\WCS_YongFeng_CP.csproj", "{0CA66564-7D9E-4999-A6E2-0456525B8A48}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Debug|x64 = Debug|x64
|
||||
Debug|x86 = Debug|x86
|
||||
Release|Any CPU = Release|Any CPU
|
||||
Release|x64 = Release|x64
|
||||
Release|x86 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{0CA66564-7D9E-4999-A6E2-0456525B8A48}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{0CA66564-7D9E-4999-A6E2-0456525B8A48}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{0CA66564-7D9E-4999-A6E2-0456525B8A48}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{0CA66564-7D9E-4999-A6E2-0456525B8A48}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{0CA66564-7D9E-4999-A6E2-0456525B8A48}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{0CA66564-7D9E-4999-A6E2-0456525B8A48}.Debug|x86.Build.0 = Debug|x86
|
||||
{0CA66564-7D9E-4999-A6E2-0456525B8A48}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{0CA66564-7D9E-4999-A6E2-0456525B8A48}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{0CA66564-7D9E-4999-A6E2-0456525B8A48}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{0CA66564-7D9E-4999-A6E2-0456525B8A48}.Release|x64.Build.0 = Release|Any CPU
|
||||
{0CA66564-7D9E-4999-A6E2-0456525B8A48}.Release|x86.ActiveCfg = Release|x86
|
||||
{0CA66564-7D9E-4999-A6E2-0456525B8A48}.Release|x86.Build.0 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {81C8947B-5FF9-4CA9-A74A-AF71582E4795}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<appSettings>
|
||||
<add key="SqlConnect" value="server=127.0.0.1;port=3306;user=root;password=abc123*;database=wcs_yongfeng_cp;"/>
|
||||
<add key="WcsApiServer" value="http://localhost:65533"/>
|
||||
<add key="WmsApiClient" value="http://localhost/api/IWCS"/>
|
||||
<!--
|
||||
<add key="SubName" value="0"/>
|
||||
<add key="MesIp" value="0"/>
|
||||
-->
|
||||
</appSettings>
|
||||
</configuration>
|
||||
@@ -0,0 +1,30 @@
|
||||
<Application x:Class="WCS_YongFeng.App"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
StartupUri="MainWindow.xaml">
|
||||
<Application.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<!-- 如果你用到DMSkin窗体需要导入 -->
|
||||
<ResourceDictionary Source="pack://application:,,,/DMSkin;component/DMSkin.xaml" />
|
||||
<!-- AduWindow -->
|
||||
<ResourceDictionary Source="pack://application:,,,/DMSkin.AduDesign;component/Styles/AduWindow.xaml" />
|
||||
<!-- 引用目标设计库的Style -->
|
||||
<ResourceDictionary Source="pack://application:,,,/DMSkin.AduDesign;component/Style.xaml" />
|
||||
<!-- 自己库中的图标 -->
|
||||
<ResourceDictionary Source="pack://application:,,,/WCS_YongFeng_CP;component/Resources/Img/SIcon.xaml" />
|
||||
<ResourceDictionary Source="pack://application:,,,/DMSkin.CyanDesign;component/Style.xaml" />
|
||||
<!-- 引用目标设计库的Style -->
|
||||
<!-- 自己库中的图标 -->
|
||||
<ResourceDictionary>
|
||||
<Geometry x:Key="Search">M695.953104 225.229694c-62.669318-62.687738-145.999189-97.208972-234.629785-97.208972s-171.959443 34.521235-234.629785 97.208972c-129.384789 129.385812-129.384789 339.873758 0 469.258547 62.670342 62.688761 145.998165 97.208972 234.629785 97.208972s171.960467-34.520211 234.629785-97.208972C825.33687 565.103452 825.33687 354.615507 695.953104 225.229694zM666.651754 665.187915c-54.838979 54.837956-127.764895 85.069491-205.328435 85.069491-77.561493 0-150.490479-30.231535-205.328435-85.069491-113.216551-113.197108-113.216551-297.461809 0-410.657894 54.837956-54.837956 127.766942-85.068468 205.328435-85.068468 77.56354 0 150.490479 30.230512 205.328435 85.068468C779.868305 367.727129 779.868305 551.990806 666.651754 665.187915zM890.535801 859.770612 786.929118 756.165975c-8.091282-8.093329-21.204951-8.093329-29.300326 0-8.091282 8.094352-8.091282 21.208021 0 29.302373L861.235474 889.071961c4.047176 4.048199 9.348925 6.072299 14.647605 6.072299 5.302773 0 10.604522-2.0241 14.651698-6.072299C898.629129 880.977609 898.629129 867.86394 890.535801 859.770612z</Geometry>
|
||||
<Geometry x:Key="Menux">M229.720523 732.148816c-31.424034 71.516767 2.889566 114.13787 31.78523 130.391681 62.848068 35.758383 101.134821 55.985348 101.134821 55.985348L91.021339 918.525845C40.815124 918.525845 0 877.71072 0 827.865701L0 105.835315C0 55.990296 40.815124 15.175172 91.021339 15.175172l402.010915 0C492.671059 15.175172 259.338578 665.327595 229.720523 732.148816zM896.126757 458.362407c-36.480775-13.364244-69.710788-25.283705-105.469171-38.286754 9.391091 27.812076 17.698594 52.37339 26.367293 78.379487C844.114563 484.7297 869.037073 472.087847 896.126757 458.362407zM746.952896 403.821843c-39.009145-14.086636-73.683941-26.728489-111.970695-40.815124 12.641853 29.256859 23.838922 55.262956 35.758383 82.713836C696.385485 431.633918 720.585603 418.269674 746.952896 403.821843zM797.881502 497.010357c-10.113482-29.979251-18.782181-56.346543-28.173272-84.881011-27.45088 15.170223-53.095781 29.256859-81.991445 44.788278C725.281148 470.643064 759.594748 482.923721 797.881502 497.010357zM834.001081 509.291014c32.146425 11.558265 60.680893 22.032943 91.021339 33.230013-3.611958-25.644901-6.86272-48.03904-10.474678-74.045137C886.013275 482.923721 861.090765 495.565573 834.001081 509.291014zM623.423935 446.08175c7.946307-2.528371 15.892615-5.417937 24.92251-8.307503-10.113482-23.116531-20.949356-48.761432-32.868817-76.212312-18.420985 16.615006-33.952404 31.424034-50.928607 45.149474-8.668699 7.223916-9.391091 13.72544-5.417937 23.838922 14.447832 37.564362 28.173272 75.48992 41.898712 113.415478 11.19707 30.701642 22.755335 61.403284 33.952404 92.104927 1.444783-0.361196 3.250762-0.722392 4.695545-1.083587-4.334349-44.788278-8.668699-89.937752-13.364244-134.364834 13.364244-7.223916 17.337398-2.528371 18.420985 10.113482 3.973154 42.259908 8.307503 84.158619 12.641853 126.057331 1.805979 18.05979 3.973154 36.119579 6.140328 57.068935 7.946307-7.223916 13.003048-11.919461 18.420985-16.976202 37.925558-36.841971 75.851116-73.683941 113.415478-110.887108 9.391091-9.029895 15.892615-10.835874 21.310552 3.611958-33.591209 32.868817-66.821221 65.737634-100.41243 98.245255 0.722392 0.722392 1.444783 1.805979 2.167175 2.528371 63.209263-36.480775 126.779723-72.600354 194.684531-111.609499-92.827318-33.952404-180.597895-65.376438-268.007277-97.884059C637.149375 458.001211 630.647851 451.138491 623.423935 446.08175zM1081.420198 169.405774 630.647851 5.422885c-46.955453-16.976202-99.328842 7.223916-116.305045 54.179369L267.646081 737.927949c-16.976202 46.955453 7.223916 99.328842 54.179369 116.305045L772.236601 1018.577079c46.955453 16.976202 99.328842-7.223916 116.305045-54.179369l246.696725-678.325695C1152.575769 239.116562 1128.375651 186.381976 1081.420198 169.405774zM569.966958 202.274591c14.086636 7.223916 24.200118 5.056741 35.397188-5.056741 10.474678-9.752286 22.755335-17.698594 37.564362-28.895663-6.501524 17.698594-10.474678 31.78523-16.615006 44.788278-6.140328 12.641853-3.973154 22.032943 4.695545 32.146425 9.752286 11.19707 18.05979 23.838922 29.979251 39.731537-19.143377-6.86272-33.230013-13.364244-48.400236-16.976202-7.585112-1.805979-17.698594-0.722392-24.561314 2.889566-14.086636 8.307503-26.728489 19.504573-43.704691 32.146425 6.86272-18.782181 13.364244-33.230013 16.976202-48.400236 1.805979-7.585112 0.722392-17.698594-3.250762-24.561314-8.307503-14.086636-19.143377-26.367293-32.146425-43.704691C545.044448 192.883501 558.408693 196.134263 569.966958 202.274591zM777.654538 855.677777c1.805979-39.009145-13.72544-61.76448-52.734585-69.710788 38.64795 1.444783 61.403284-14.086636 70.433179-49.483823 3.250762 15.170223 2.167175 33.230013 10.474678 44.427082 7.946307 10.474678 25.283705 14.086636 39.731537 23.477726C807.994984 800.414821 785.962041 816.668632 777.654538 855.677777zM968.727111 588.031696c-99.690038 57.068935-199.380077 114.499066-299.431311 171.568001-11.919461 6.86272-23.838922 13.364244-37.925558 21.310552-46.955453-127.502114-92.827318-253.198249-139.782771-380.339168 36.841971-33.230013 73.322746-66.460026 110.525912-98.606451 3.611958-3.250762 12.280657-3.611958 17.698594-1.805979 110.164716 39.731537 219.968237 79.463074 329.771757 120.278198 5.779133 2.167175 12.280657 10.113482 13.003048 16.253811 7.223916 43.704691 12.280657 87.770577 19.504573 131.114072C984.619726 580.80778 976.673419 583.697346 968.727111 588.031696z</Geometry>
|
||||
<Geometry x:Key="Menu">M896 622.08c0-15.36-8.106667-29.44-20.906667-37.973333L554.666667 384V149.333333c0-35.413333-28.586667-64-64-64S426.666667 113.92 426.666667 149.333333V384l-320.426667 200.106667a44.8 44.8 0 0 0 37.12 80.64L426.666667 576V810.666667l-76.8 57.6a20.48 20.48 0 0 0-8.533334 17.066666v25.173334c0 14.08 13.653333 24.32 27.306667 20.48L490.666667 896l122.026666 34.986667c13.653333 3.84 27.306667-6.4 27.306667-20.48v-25.173334a20.48 20.48 0 0 0-8.533333-17.066666L554.666667 810.666667v-234.666667l283.306666 88.746667c29.013333 8.96 58.026667-12.8 58.026667-42.666667z</Geometry>
|
||||
<Geometry x:Key="Menu1">M874.666667 469.333333H810.666667V298.666667c0-46.933333-38.4-85.333333-85.333334-85.333334h-170.666666V149.333333a106.666667 106.666667 0 0 0-213.333334 0V213.333333H170.666667c-46.933333 0-84.906667 38.4-84.906667 85.333334v162.133333H149.333333c63.573333 0 115.2 51.626667 115.2 115.2s-51.626667 115.2-115.2 115.2H85.333333V853.333333c0 46.933333 38.4 85.333333 85.333334 85.333334h162.133333v-64c0-63.573333 51.626667-115.2 115.2-115.2s115.2 51.626667 115.2 115.2V938.666667H725.333333c46.933333 0 85.333333-38.4 85.333334-85.333334v-170.666666h64a106.666667 106.666667 0 0 0 0-213.333334z</Geometry>
|
||||
<Geometry x:Key="Menu2">M284.458667 941.397333c-36.437333 15.637333-68.48-7.68-64.896-47.168l22.613333-248.917333-164.394667-188.053333c-26.069333-29.824-13.653333-67.562667 24.789334-76.309334l243.370666-55.381333 127.786667-214.677333c20.288-34.090667 59.946667-34.069333 80.213333 0l127.786667 214.677333 243.370667 55.381333c38.656 8.789333 50.858667 46.485333 24.789333 76.309334l-164.394667 188.053333 22.741334 249.002667c3.605333 39.509333-28.458667 62.805333-64.896 47.146666l-229.504-98.517333-229.376 98.453333z</Geometry>
|
||||
<Geometry x:Key="Menu3">M640 311.04V128c0-23.466667-19.2-42.666667-42.666667-42.666667h-170.666666c-23.466667 0-42.666667 19.2-42.666667 42.666667v183.04c0 5.546667 2.133333 11.093333 6.4 14.933333l106.666667 106.666667c8.533333 8.533333 21.76 8.533333 30.293333 0l106.666667-106.666667c3.84-3.84 5.973333-8.96 5.973333-14.933333zM311.04 384H128c-23.466667 0-42.666667 19.2-42.666667 42.666667v170.666666c0 23.466667 19.2 42.666667 42.666667 42.666667h183.04c5.546667 0 11.093333-2.133333 14.933333-6.4l106.666667-106.666667c8.533333-8.533333 8.533333-21.76 0-30.293333l-106.666667-106.666667A20.608 20.608 0 0 0 311.04 384zM384 712.96V896c0 23.466667 19.2 42.666667 42.666667 42.666667h170.666666c23.466667 0 42.666667-19.2 42.666667-42.666667v-183.04a20.053333 20.053333 0 0 0-6.4-14.933333l-106.666667-106.666667c-8.533333-8.533333-21.76-8.533333-30.293333 0l-106.666667 106.666667c-3.84 3.84-5.973333 8.96-5.973333 14.933333z m313.6-322.56l-106.666667 106.666667c-8.533333 8.533333-8.533333 21.76 0 30.293333l106.666667 106.666667c3.84 3.84 9.386667 6.4 14.933333 6.4H896c23.466667 0 42.666667-19.2 42.666667-42.666667v-170.666667c0-23.466667-19.2-42.666667-42.666667-42.666666h-183.04a19.072 19.072 0 0 0-15.36 5.973333z</Geometry>
|
||||
</ResourceDictionary>
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</Application.Resources>
|
||||
</Application>
|
||||
@@ -0,0 +1,53 @@
|
||||
using DMSkin.Core;
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
|
||||
namespace WCS_YongFeng
|
||||
{
|
||||
/// <summary>
|
||||
/// App.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class App : Application
|
||||
{
|
||||
protected override void OnStartup(StartupEventArgs e)
|
||||
{
|
||||
//初始化UI调度器
|
||||
UIExecute.Initialize();
|
||||
}
|
||||
|
||||
public static List<F_ServiceModel> f_ServiceModels = new List<F_ServiceModel>();
|
||||
public static List<I_Excute> i_Excutes = new List<I_Excute>();
|
||||
public static ObservableCollection<VM_SrmRead> vM_SrmReads = new ObservableCollection<VM_SrmRead>();
|
||||
public static ObservableCollection<VM_SrmWrite> vM_SrmWrites = new ObservableCollection<VM_SrmWrite>();
|
||||
public static ObservableCollection<VM_StationDR> vM_StationDRs = new ObservableCollection<VM_StationDR>();
|
||||
public static ObservableCollection<VM_StationPR> vM_StationPRs = new ObservableCollection<VM_StationPR>();
|
||||
public static ObservableCollection<VM_StationDACK> vM_StationDACKs = new ObservableCollection<VM_StationDACK>();
|
||||
public static ObservableCollection<VM_StationACK> vM_StationACKs = new ObservableCollection<VM_StationACK>();
|
||||
|
||||
public static ObservableCollection<VM_StationStste> vM_StationStstes = new ObservableCollection<VM_StationStste>();
|
||||
|
||||
|
||||
public static ObservableCollection<string> ConveryErrMsgs = new ObservableCollection<string>();
|
||||
public static string weight = "";
|
||||
public static string srmErrMsg = "";
|
||||
public static string WeightValue = "";
|
||||
public static string conveyorErrMsg = "";
|
||||
//报错信息集合
|
||||
public static ObservableCollection<TextBlock> MessageList = new ObservableCollection<TextBlock>();
|
||||
|
||||
//坐标集合
|
||||
public static List<I_Pose> poseList = new List<I_Pose>();
|
||||
|
||||
//通讯类集合
|
||||
public static List<I_OpcHelp> helps = new List<I_OpcHelp>();
|
||||
|
||||
//任务流程集合
|
||||
public static List<T_TaskFlow> taskflowList = new List<T_TaskFlow>();
|
||||
|
||||
//任务集合
|
||||
public static ObservableCollection<I_Task> taskList = new ObservableCollection<I_Task>();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
|
||||
<PropertyChanged2 />
|
||||
<Costura />
|
||||
</Weavers>
|
||||
@@ -0,0 +1,150 @@
|
||||
<dmskin:DMSkinWindow
|
||||
x:Class="WCS_YongFeng.MainWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:attached="clr-namespace:DMSkin.Attached;assembly=DMSkin"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:dmskin="clr-namespace:DMSkin;assembly=DMSkin"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
|
||||
xmlns:local="clr-namespace:WCS_YongFeng"
|
||||
mc:Ignorable="d"
|
||||
Title=" 仓库控制系统"
|
||||
Width="1218.047"
|
||||
ResizeMode="CanResizeWithGrip"
|
||||
SystemButtonSize="40"
|
||||
Style="{DynamicResource AduWindowStyle}"
|
||||
FitSystemWindow="True"
|
||||
Height="791.41"
|
||||
Padding="0"
|
||||
MouseLeftButtonDown="Window_MouseLeftButtonDown"
|
||||
Loaded="DMSkinWindow_Loaded"
|
||||
Background="#5D6B99"
|
||||
Closing="DMSkinWindow_Closing">
|
||||
|
||||
<Border CornerRadius="4" Name="mainback">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="200"></ColumnDefinition>
|
||||
<ColumnDefinition></ColumnDefinition>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="5*"></RowDefinition>
|
||||
<RowDefinition Height="62.5*"></RowDefinition>
|
||||
<RowDefinition Height="32.5*"></RowDefinition>
|
||||
</Grid.RowDefinitions>
|
||||
<Border Grid.Column="0" Grid.Row="0" BorderBrush="#2B2833" BorderThickness="0,0,1,0">
|
||||
<TextBlock Text=" 仓库控制系统" FontWeight="Bold" FontSize="20" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,8,-1,8" Width="200" ></TextBlock>
|
||||
</Border>
|
||||
<Border Background="#CCD5F0" Grid.Column="0" Grid.Row="1" BorderThickness="6,6,3,3">
|
||||
<ScrollViewer Style="{StaticResource DMScrollViewer}" Margin="0,20">
|
||||
<StackPanel>
|
||||
<RadioButton
|
||||
Style="{StaticResource AduRadioButtonMenu}"
|
||||
FontSize="15"
|
||||
Foreground ="Black"
|
||||
Click="RadioButton_Click"
|
||||
CommandParameter="TaskView"
|
||||
Content="任务列表"
|
||||
attached:Icon.Geometry="{StaticResource Icon_SmallProgram}"
|
||||
attached:Icon.Height="20"
|
||||
attached:Icon.Width="20"
|
||||
IsChecked="False" Height="40" />
|
||||
<RadioButton
|
||||
Style="{StaticResource AduRadioButtonMenu}"
|
||||
FontSize="15"
|
||||
Foreground ="Black"
|
||||
Click="RadioButton_Click"
|
||||
CommandParameter="SrmView"
|
||||
Content="堆垛机状态监控"
|
||||
attached:Icon.Geometry="{StaticResource Icon_SmallProgram}"
|
||||
attached:Icon.Height="20"
|
||||
attached:Icon.Width="20"
|
||||
IsChecked="False" Height="40" />
|
||||
<RadioButton
|
||||
Style="{StaticResource AduRadioButtonMenu}"
|
||||
FontSize="15"
|
||||
Foreground ="Black"
|
||||
Click="RadioButton_Click"
|
||||
Content="输送线请求到达"
|
||||
CommandParameter="StationView"
|
||||
attached:Icon.Geometry="{StaticResource Icon_Project}"
|
||||
attached:Icon.Height="20"
|
||||
attached:Icon.Width="20"
|
||||
IsChecked="False" Height="40" />
|
||||
<RadioButton
|
||||
Style="{StaticResource AduRadioButtonMenu}"
|
||||
FontSize="15"
|
||||
Foreground ="Black"
|
||||
Click="RadioButton_Click"
|
||||
Content="输送线状态监控"
|
||||
CommandParameter="StationStateView"
|
||||
attached:Icon.Geometry="{StaticResource Icon_Project}"
|
||||
attached:Icon.Height="20"
|
||||
attached:Icon.Width="20"
|
||||
IsChecked="False" Height="40" />
|
||||
<!--<RadioButton
|
||||
Style="{StaticResource AduRadioButtonMenu}"
|
||||
FontSize="15"
|
||||
Foreground ="Black"
|
||||
Click="RadioButton_Click"
|
||||
Content="AGV交互监控"
|
||||
CommandParameter="AGVStateView"
|
||||
attached:Icon.Geometry="{StaticResource Icon_Project}"
|
||||
attached:Icon.Height="20"
|
||||
attached:Icon.Width="20"
|
||||
IsChecked="False" Height="40" />-->
|
||||
<RadioButton
|
||||
Style="{StaticResource AduRadioButtonMenu}"
|
||||
FontSize="15"
|
||||
Foreground ="Black"
|
||||
Click="RadioButton_Click"
|
||||
CommandParameter="HandView"
|
||||
Content="手动操作"
|
||||
attached:Icon.Geometry="{StaticResource Icon_WeiXin_Share}"
|
||||
attached:Icon.Height="20"
|
||||
attached:Icon.Width="20"
|
||||
IsChecked="False" Height="40" />
|
||||
<RadioButton
|
||||
Style="{StaticResource AduRadioButtonMenu}"
|
||||
Foreground ="Black"
|
||||
FontSize="15"
|
||||
Click="RadioButton_Click"
|
||||
CommandParameter="TaskFlow"
|
||||
Content="任务流程"
|
||||
attached:Icon.Geometry="{StaticResource Icon_SetManage}"
|
||||
attached:Icon.Height="20"
|
||||
attached:Icon.Width="20"
|
||||
IsChecked="False" Height="40" />
|
||||
<RadioButton
|
||||
Style="{StaticResource AduRadioButtonMenu}"
|
||||
FontSize="15"
|
||||
Foreground ="Black"
|
||||
Click="RadioButton_Click"
|
||||
CommandParameter="Seeting"
|
||||
Content="系统信息"
|
||||
attached:Icon.Geometry="{StaticResource Icon_Project3}"
|
||||
attached:Icon.Height="20"
|
||||
attached:Icon.Width="20"
|
||||
IsChecked="False" Height="40" />
|
||||
</StackPanel>
|
||||
</ScrollViewer>
|
||||
</Border>
|
||||
<Border Grid.Column="1" Grid.Row="1" Margin="3,6,0,3">
|
||||
<Frame x:Name="Frame" NavigationUIVisibility="Hidden" />
|
||||
</Border>
|
||||
<Border Background="#CCD5F0" Grid.Row="2" CornerRadius="4" Padding="6" Margin="6,3,6,6" Grid.ColumnSpan="2">
|
||||
<Border Margin="6,6,6,6" Background="#20ffffff" CornerRadius="4">
|
||||
<GroupBox Style="{StaticResource AduGroupBox}" Header="交互日志" FontWeight="Bold" FontSize="12" BorderThickness="3,0,0,0" BorderBrush="#4ABDA7">
|
||||
<GroupBox.ContextMenu>
|
||||
<ContextMenu>
|
||||
<MenuItem Name="MItem_ClearTask" Header="清空日志" Click="MItem_ClearLog"></MenuItem>
|
||||
</ContextMenu>
|
||||
</GroupBox.ContextMenu>
|
||||
<ListBox Background="#20ffffff" Foreground="White" Name="MessageList" />
|
||||
</GroupBox>
|
||||
</Border>
|
||||
</Border>
|
||||
</Grid>
|
||||
</Border>
|
||||
</dmskin:DMSkinWindow>
|
||||
@@ -0,0 +1,294 @@
|
||||
using DMSkin.Core;
|
||||
|
||||
using HslCommunication.BasicFramework;
|
||||
using HslCommunication.LogNet;
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
|
||||
using WCS_YongFeng.Service.Comm;
|
||||
|
||||
namespace WCS_YongFeng
|
||||
{
|
||||
/// <summary>
|
||||
/// MainWindow.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class MainWindow
|
||||
{
|
||||
private WcsWebApiBuild wcsWebApiBuild = new WcsWebApiBuild();
|
||||
private System.Timers.Timer taskTimer = new System.Timers.Timer();
|
||||
private bool stop_Tasktimer = true;
|
||||
private System.Timers.Timer taskTimer2 = new System.Timers.Timer();
|
||||
private bool stop_Tasktimer2 = true;
|
||||
private BaseBll _bll = new BaseBll();
|
||||
private SoftAuthorize softAuthorize = new SoftAuthorize();
|
||||
System.Threading.Mutex mutex;
|
||||
|
||||
public MainWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void DMSkinWindow_Loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
CheckExe();
|
||||
LogExecute.logNet.BeforeSaveToFile += LogNet_BeforeSaveToFile;
|
||||
LogExecute.SrmlogNet.BeforeSaveToFile += LogNet_BeforeSaveToFile;
|
||||
LogExecute.ApilogNet.BeforeSaveToFile += LogNet_BeforeSaveToFile;
|
||||
//LogExecute.TibcologNet.BeforeSaveToFile += LogNet_BeforeSaveToFile;
|
||||
LogExecute.AutoChecklogNet.BeforeSaveToFile += LogNet_BeforeSaveToFile;
|
||||
MessageList.ItemsSource = App.MessageList;
|
||||
Frame.Content = new TaskView();
|
||||
|
||||
|
||||
var buildDevice = InitBll.BuildInit();
|
||||
if (!buildDevice.Success)
|
||||
{
|
||||
MessageBox.Show(buildDevice.Msg);
|
||||
Environment.Exit(0);
|
||||
}
|
||||
var buildService = BuildService();
|
||||
if (!buildService.Success)
|
||||
{
|
||||
MessageBox.Show(buildService.Msg);
|
||||
Environment.Exit(0);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private BllResult BuildService()
|
||||
{
|
||||
//[1]线程启动
|
||||
foreach (I_Excute i_Excute in App.i_Excutes)
|
||||
{
|
||||
Thread thread = new Thread(Build);
|
||||
thread.Start(i_Excute);
|
||||
}
|
||||
//[2]web接口配置启动
|
||||
Task task = Task.Run(() => wcsWebApiBuild.build());
|
||||
//[3]启动定时器,处理固定任务
|
||||
TaskTimer();
|
||||
//[4]推送
|
||||
//WcsPushBuild.WcsPushBuildInit();
|
||||
return BllResult.Sucess();
|
||||
}
|
||||
|
||||
private void Build(object obj)
|
||||
{
|
||||
I_Excute i_Excute = (I_Excute)obj;
|
||||
while (true)
|
||||
{
|
||||
string name = i_Excute.f_service.device.Name;
|
||||
try
|
||||
{
|
||||
var connect = i_Excute.f_service.i_OpcHelp.OpenConn();
|
||||
if (!connect.Success)
|
||||
{
|
||||
LogExecute.logNet.WriteError($"{name}建立S7连接失败,请检查网络配置");
|
||||
i_Excute.f_service.vM_WriteModel.LatTime = DateTime.Now;
|
||||
continue;
|
||||
}
|
||||
var result = i_Excute.GetAllAddress();
|
||||
if (!result.Success)
|
||||
{
|
||||
LogExecute.logNet.WriteError($"{name}读取地址处理错误:处理停止,请检查网络配置");
|
||||
continue;
|
||||
}
|
||||
i_Excute.Excute();
|
||||
continue;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogExecute.logNet.WriteError($"{name}发生错误:处理停止,错误原因是{ex.Message},请检查网络配置");
|
||||
}
|
||||
finally
|
||||
{
|
||||
Thread.Sleep(1000);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void TaskTimer()
|
||||
{
|
||||
//开启一个定时器,定时去执行任务。
|
||||
taskTimer.Interval = 5000; //间隔时间
|
||||
taskTimer.Elapsed += TaskTimer_Elapsed;
|
||||
taskTimer.AutoReset = true;
|
||||
taskTimer.Enabled = true;
|
||||
}
|
||||
|
||||
private void TaskTimer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
|
||||
{
|
||||
lock (new object())
|
||||
{
|
||||
if (stop_Tasktimer)
|
||||
{
|
||||
try
|
||||
{
|
||||
stop_Tasktimer = false;
|
||||
//Stopwatch stopwatch = new Stopwatch();
|
||||
//stopwatch.Restart();
|
||||
_bll.FinishTask();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogExecute.logNet.WriteError($"程序出现异常,错误原因是{ex.Message}");
|
||||
}
|
||||
finally
|
||||
{
|
||||
stop_Tasktimer = true;
|
||||
Thread.Sleep(5000);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static void LogNet_BeforeSaveToFile(object sender, HslEventArgs e)
|
||||
{
|
||||
UIExecute.Run(() =>
|
||||
{
|
||||
DateTime time = e.HslMessage.Time;//获取时间
|
||||
|
||||
string text = e.HslMessage.Text;//日志文本
|
||||
if (App.MessageList.Count >= 30)
|
||||
{
|
||||
App.MessageList.RemoveAt(0);
|
||||
}
|
||||
for (int i = App.MessageList.Count - 1; i >= 0; i--)
|
||||
{
|
||||
var value = App.MessageList[i].Text;
|
||||
var values = value.Split('|');
|
||||
if (values.Count() > 0)
|
||||
{
|
||||
if (value.Replace(values[0] + "|", "") == text)
|
||||
{
|
||||
App.MessageList.RemoveAt(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
TextBlock textBlock = new TextBlock();
|
||||
if (e.HslMessage.Degree == HslMessageDegree.ERROR)
|
||||
{
|
||||
textBlock.Text = "[错误] " + time.ToString() + "|" + text;
|
||||
textBlock.Background = Brushes.Red;
|
||||
}
|
||||
else if (e.HslMessage.Degree == HslMessageDegree.DEBUG)
|
||||
{
|
||||
textBlock.Text = "[日志] " + time.ToString() + "|" + text;
|
||||
textBlock.Background = Brushes.Green;
|
||||
}
|
||||
else if (e.HslMessage.Degree == HslMessageDegree.WARN)
|
||||
{
|
||||
textBlock.Text = "[警告] " + time.ToString() + " | " + text;
|
||||
textBlock.Background = Brushes.Yellow;
|
||||
}
|
||||
else
|
||||
{
|
||||
textBlock.Text = "[未知] " + time.ToString() + " | " + text;
|
||||
}
|
||||
|
||||
App.MessageList.Add(textBlock);
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 鼠标左键拖动事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void Window_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
base.OnMouseLeftButtonDown(e);
|
||||
// 获取鼠标相对标题栏位置
|
||||
Point position = e.GetPosition(this);
|
||||
// 如果鼠标位置在标题栏内,允许拖动
|
||||
if (e.LeftButton == MouseButtonState.Pressed)
|
||||
{
|
||||
if (position.X >= 0 && position.X < this.ActualWidth && position.Y >= 0 && position.Y < this.ActualHeight)
|
||||
{
|
||||
this.DragMove();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 主程序窗口关闭提醒
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void DMSkinWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
|
||||
{
|
||||
if (MessageBox.Show("请确认是否退出程序?\n 退出后将无法继续或者全部功能!", "警告", MessageBoxButton.YesNo) == MessageBoxResult.Yes)
|
||||
{
|
||||
Environment.Exit(0);
|
||||
}
|
||||
else
|
||||
{
|
||||
e.Cancel = true;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 主界面标签跳转
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void RadioButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
RadioButton radioButton = sender as RadioButton;
|
||||
if (radioButton.CommandParameter.ToString() == "TaskView")
|
||||
{
|
||||
Frame.Content = new TaskView();
|
||||
}
|
||||
else if (radioButton.CommandParameter.ToString() == "StationStateView")
|
||||
{
|
||||
Frame.Content = new StationStateView();
|
||||
}
|
||||
else if (radioButton.CommandParameter.ToString() == "SrmView")
|
||||
{
|
||||
Frame.Content = new SrmView();
|
||||
}
|
||||
else if (radioButton.CommandParameter.ToString() == "StationView")
|
||||
{
|
||||
Frame.Content = new StationView();
|
||||
}
|
||||
else if (radioButton.CommandParameter.ToString() == "HandView")
|
||||
{
|
||||
Frame.Content = new HandView();
|
||||
}
|
||||
else if (radioButton.CommandParameter.ToString() == "Seeting")
|
||||
{
|
||||
Frame.Content = new DeviceView();
|
||||
}
|
||||
else if (radioButton.CommandParameter.ToString() == "TaskFlow")
|
||||
{
|
||||
Frame.Content = new TaskFlowView();
|
||||
}
|
||||
else
|
||||
{
|
||||
Frame.Content = new TaskView();
|
||||
}
|
||||
}
|
||||
private void CheckExe()
|
||||
{
|
||||
bool ret;
|
||||
mutex = new System.Threading.Mutex(true, "ElectronicNeedleTherapySystem", out ret);
|
||||
if (!ret)
|
||||
{
|
||||
MessageBox.Show("已有一个WCS程序实例运行,请勿重新运行");
|
||||
Environment.Exit(0);
|
||||
}
|
||||
}
|
||||
|
||||
private void MItem_ClearLog(object sender, RoutedEventArgs e)
|
||||
{
|
||||
App.MessageList.Clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,112 @@
|
||||
using System;
|
||||
|
||||
namespace WCS_YongFeng
|
||||
{
|
||||
public class BllResult<T>
|
||||
{
|
||||
private BllResult(bool success, string msg, T data)
|
||||
{
|
||||
Success = success;
|
||||
Msg = msg;
|
||||
Data = data;
|
||||
}
|
||||
|
||||
public bool Success { get; set; }
|
||||
public string Msg { get; set; }
|
||||
public T Data { get; set; }
|
||||
|
||||
public static BllResult<T> Sucess(T data, String msg)
|
||||
{
|
||||
return new BllResult<T>(true, msg, data);
|
||||
}
|
||||
|
||||
public static BllResult<T> Sucess(T data)
|
||||
{
|
||||
return new BllResult<T>(true, "", data);
|
||||
}
|
||||
|
||||
public static BllResult<T> Sucess(String msg)
|
||||
{
|
||||
return new BllResult<T>(true, msg, default(T));
|
||||
}
|
||||
|
||||
public static BllResult<T> Sucess()
|
||||
{
|
||||
return new BllResult<T>(true, "", default(T));
|
||||
}
|
||||
|
||||
public static BllResult<T> Error(T data, String msg)
|
||||
{
|
||||
return new BllResult<T>(false, msg, data);
|
||||
}
|
||||
|
||||
public static BllResult<T> Error(T data)
|
||||
{
|
||||
return new BllResult<T>(false, "", data);
|
||||
}
|
||||
|
||||
public static BllResult<T> Error(String msg)
|
||||
{
|
||||
return new BllResult<T>(false, msg, default(T));
|
||||
}
|
||||
|
||||
public static BllResult<T> Error()
|
||||
{
|
||||
return new BllResult<T>(false, "", default(T));
|
||||
}
|
||||
}
|
||||
|
||||
public class BllResult
|
||||
{
|
||||
private BllResult(bool success, string msg, object data)
|
||||
{
|
||||
Success = success;
|
||||
Msg = msg;
|
||||
Data = data;
|
||||
}
|
||||
|
||||
public bool Success { get; set; }
|
||||
public string Msg { get; set; }
|
||||
public object Data { get; set; }
|
||||
|
||||
public static BllResult Sucess(Object data, String msg)
|
||||
{
|
||||
return new BllResult(true, msg, data);
|
||||
}
|
||||
|
||||
public static BllResult Sucess(Object data)
|
||||
{
|
||||
return new BllResult(true, "", data);
|
||||
}
|
||||
|
||||
public static BllResult Sucess(String msg)
|
||||
{
|
||||
return new BllResult(true, msg, null);
|
||||
}
|
||||
|
||||
public static BllResult Sucess()
|
||||
{
|
||||
return new BllResult(true, "", null);
|
||||
}
|
||||
|
||||
public static BllResult Error(object data, String msg)
|
||||
{
|
||||
return new BllResult(false, msg, data);
|
||||
}
|
||||
|
||||
public static BllResult Error(object data)
|
||||
{
|
||||
return new BllResult(false, "", data);
|
||||
}
|
||||
|
||||
public static BllResult Error(String msg)
|
||||
{
|
||||
return new BllResult(false, msg, null);
|
||||
}
|
||||
|
||||
public static BllResult Error()
|
||||
{
|
||||
return new BllResult(false, "", null);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
namespace WCS_YongFeng
|
||||
{
|
||||
public enum E_SrmForkState
|
||||
{
|
||||
待机 = 1,
|
||||
任务执行中 = 2,
|
||||
任务完成 = 3,
|
||||
任务中断 = 4
|
||||
}
|
||||
|
||||
public enum E_SrmHandTask
|
||||
{
|
||||
单步取货 = 2,
|
||||
单步放货 = 3,
|
||||
单步行走 = 1
|
||||
}
|
||||
|
||||
public enum E_SrmMode
|
||||
{
|
||||
停止状态 = 0,
|
||||
维修 = 1,
|
||||
手动 = 2,
|
||||
机载操作 = 3,
|
||||
单机自动 = 4,
|
||||
联机 = 5
|
||||
}
|
||||
|
||||
public enum E_SrmTaskAction
|
||||
{
|
||||
无 = 0,
|
||||
一号货叉 = 1,
|
||||
二号货叉 = 2,
|
||||
同时动作 = 3
|
||||
}
|
||||
|
||||
public enum E_SrmTaskType
|
||||
{
|
||||
无任务 = 0,
|
||||
行走到位置 = 1,
|
||||
到位置取 = 2,
|
||||
到位置放 = 3,
|
||||
走取走放 = 4,
|
||||
删除任务 = 6,
|
||||
任务完成 = 10
|
||||
}
|
||||
|
||||
public enum E_TaskLimit
|
||||
{
|
||||
未知 = 0,
|
||||
空闲 = 1,
|
||||
占用 = 2
|
||||
}
|
||||
|
||||
public enum E_TaskState
|
||||
{
|
||||
任务创建 = 10,
|
||||
|
||||
下发堆垛机取货任务 = 20,
|
||||
|
||||
响应堆垛机取货完成 = 21,
|
||||
|
||||
下发堆垛机放货任务 = 22,
|
||||
|
||||
响应堆垛机放货完成 = 25,
|
||||
|
||||
响应出入口地址请求 = 40,
|
||||
|
||||
响应出入口地址到达 = 45,
|
||||
|
||||
响应中转站台地址请求 = 50,
|
||||
|
||||
响应中转站台地址到达 = 55,
|
||||
|
||||
任务完成 = 100,
|
||||
|
||||
任务标识异常 = -99
|
||||
}
|
||||
|
||||
public enum E_TaskType
|
||||
{
|
||||
入库 = 100,
|
||||
出库 = 200,
|
||||
入库1 = 400,
|
||||
出库1 = 500,
|
||||
移库 = 300
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace WCS_YongFeng
|
||||
{
|
||||
public class F_ServiceModel
|
||||
{
|
||||
public F_ServiceModel(I_Device Device, I_OpcHelp OpcHelp, VM_ReadModel ReadModel, VM_WriteModel WriteModel, List<I_Device_Address> ReadList, List<I_Device_Address> WriteList)
|
||||
{
|
||||
this.device = Device;
|
||||
this.i_OpcHelp = OpcHelp;
|
||||
this.vM_ReadModel = ReadModel;
|
||||
this.vM_WriteModel = WriteModel;
|
||||
this.ReadAddressList = ReadList;
|
||||
this.WriteAddressList = WriteList;
|
||||
}
|
||||
|
||||
public I_Device device { get; set; }
|
||||
public I_OpcHelp i_OpcHelp { get; set; }
|
||||
public VM_ReadModel vM_ReadModel { get; set; }
|
||||
public VM_WriteModel vM_WriteModel { get; set; }
|
||||
public List<I_Device_Address> ReadAddressList { get; set; }
|
||||
public List<I_Device_Address> WriteAddressList { get; set; }
|
||||
|
||||
public I_Device_Address GetReadAddres(string name, string value)
|
||||
{
|
||||
var result = ReadAddressList.Find(t => t.Member == name);
|
||||
result.value = value;
|
||||
return result;
|
||||
}
|
||||
|
||||
public I_Device_Address GetWriteAddres(string name, string value)
|
||||
{
|
||||
var result = WriteAddressList.Find(t => t.Member == name);
|
||||
result.value = value;
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using HslCommunication;
|
||||
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace WCS_YongFeng
|
||||
{
|
||||
public abstract class I_OpcHelp
|
||||
{
|
||||
public I_OpcHelp()
|
||||
{
|
||||
}
|
||||
|
||||
public static bool ConnectB = false;
|
||||
public string ip;
|
||||
public string type;
|
||||
|
||||
public abstract BllResult OpenConn();
|
||||
|
||||
public abstract BllResult CloseConn();
|
||||
|
||||
public abstract ushort GetTypeLength(string addressType);
|
||||
|
||||
public abstract BllResult ReadAddress(List<I_Device_Address> _Device_Addresses);
|
||||
|
||||
public abstract BllResult WriteAddress(List<I_Device_Address> _Device_Addresses);
|
||||
|
||||
public abstract BllResult TransforAddressDataToWCSData(List<I_Device_Address> _Device_Addresses);
|
||||
|
||||
public abstract BllResult TransforWCSDataToAddressData(List<I_Device_Address> _Device_Addresses, OperateResult<byte[]> read);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace WCS_YongFeng
|
||||
{
|
||||
public class SignalServiceModel : F_ServiceModel
|
||||
{
|
||||
public SignalServiceModel(I_Device Device, I_OpcHelp OpcHelp, VM_ReadModel ReadModel, VM_WriteModel WriteModel, List<I_Device_Address> ReadList, List<I_Device_Address> WriteList,
|
||||
I_Device Line_Device, I_OpcHelp Line_OpcHelp, VM_ReadModel Line_ReadModel, VM_WriteModel Line_WriteModel, List<I_Device_Address> Line_ReadList, List<I_Device_Address> Line_WriteList) : base(Device, OpcHelp, ReadModel, WriteModel, ReadList, WriteList)
|
||||
{
|
||||
Line_device = Line_Device;
|
||||
Line_i_OpcHelp = Line_OpcHelp;
|
||||
Line_vM_ReadModel = Line_ReadModel;
|
||||
Line_vM_WriteModel = Line_WriteModel;
|
||||
Line_ReadAddressList = Line_ReadList;
|
||||
Line_WriteAddressList = Line_WriteList;
|
||||
}
|
||||
|
||||
public I_Device Line_device { get; set; }
|
||||
public I_OpcHelp Line_i_OpcHelp { get; set; }
|
||||
public VM_ReadModel Line_vM_ReadModel { get; set; }
|
||||
public VM_WriteModel Line_vM_WriteModel { get; set; }
|
||||
public List<I_Device_Address> Line_ReadAddressList { get; set; }
|
||||
public List<I_Device_Address> Line_WriteAddressList { get; set; }
|
||||
|
||||
public I_Device_Address Line_GetReadAddres(string name, string value)
|
||||
{
|
||||
var result = Line_ReadAddressList.Find(t => t.Member == name);
|
||||
result.value = value;
|
||||
return result;
|
||||
}
|
||||
|
||||
public I_Device_Address Line_GetWriteAddres(string name, string value)
|
||||
{
|
||||
var result = Line_WriteAddressList.Find(t => t.Member == name);
|
||||
result.value = value;
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
namespace WCS_YongFeng
|
||||
{
|
||||
public class I_Device
|
||||
{
|
||||
public string Code { get; set; }
|
||||
public int Point { get; set; }
|
||||
public string Type { get; set; }
|
||||
public string Name { get; set; }
|
||||
public int RoadWay { get; set; }
|
||||
public int ForkNo { get; set; }
|
||||
public string IP { get; set; }
|
||||
public int ToPoint { get; set; }
|
||||
public int BackPoint { get; set; }
|
||||
public bool IsEnable { get; set; }
|
||||
public int Limit { get; set; }
|
||||
|
||||
public bool IsWeight { get; set; }
|
||||
public int Port { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
namespace WCS_YongFeng
|
||||
{
|
||||
public class I_Device_Address
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public string Code { get; set; }
|
||||
public string Member { get; set; }
|
||||
public string Type { get; set; }
|
||||
public string Db { get; set; }
|
||||
public int Address { get; set; }
|
||||
public int Address_decimal { get; set; }
|
||||
public string AddressType { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Note { get; set; }
|
||||
|
||||
public string value { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
namespace WCS_YongFeng
|
||||
{
|
||||
public class I_Pose
|
||||
{
|
||||
public string wcName { get; set; }
|
||||
public string wcType { get; set; }
|
||||
public string wcTypeName { get; set; }
|
||||
public int wcRoadWay { get; set; }
|
||||
public int Xpose { get; set; }
|
||||
public int Ypose { get; set; }
|
||||
public int Zpose { get; set; }
|
||||
public int Station { get; set; }
|
||||
|
||||
public int IsOut { get; set; }
|
||||
public string TypeIn { get; set; }
|
||||
public string TypeOut { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
using PropertyChanged;
|
||||
|
||||
using System;
|
||||
|
||||
namespace WCS_YongFeng
|
||||
{
|
||||
[ImplementPropertyChanged]
|
||||
public class I_Task
|
||||
{
|
||||
public string tNo { get; set; }
|
||||
public string tNo_WMS { get; set; }
|
||||
public string Type { get; set; }
|
||||
|
||||
public int TaskFlow { get; set; }
|
||||
public int TaskSetp { get; set; }
|
||||
|
||||
public int NowState { get; set; }
|
||||
|
||||
public int NextState { get; set; }
|
||||
public string PalletOrBoxNo { get; set; }
|
||||
public int Priority { get; set; }
|
||||
public int Roadway { get; set; }
|
||||
public int ForkNo { get; set; }
|
||||
public string FromPlace { get; set; }
|
||||
public string ToPlace { get; set; }
|
||||
public string EntrancePlace { get; set; }
|
||||
public string ExitPlace { get; set; }
|
||||
public string ErrorMsg { get; set; }
|
||||
public DateTime Task_CreateTime { get; set; }
|
||||
public string Task_CreateWho { get; set; }
|
||||
public DateTime? Task_StartTime { get; set; }
|
||||
public DateTime? Task_FinishTime { get; set; }
|
||||
public int SendAgainFlag { get; set; }
|
||||
public int DeleteFlag { get; set; }
|
||||
public int EmptyOutFlag { get; set; }
|
||||
public int FullInFlag { get; set; }
|
||||
public string FullInPlace { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
using System;
|
||||
|
||||
namespace WCS_YongFeng
|
||||
{
|
||||
public class I_Task_His
|
||||
{
|
||||
public string tNo { get; set; }
|
||||
public string tNo_WMS { get; set; }
|
||||
public string Type { get; set; }
|
||||
public int NowState { get; set; }
|
||||
public int NextState { get; set; }
|
||||
public string PalletOrBoxNo { get; set; }
|
||||
public int Priority { get; set; }
|
||||
public int Roadway { get; set; }
|
||||
public int ForkNo { get; set; }
|
||||
public string FromPlace { get; set; }
|
||||
public string ToPlace { get; set; }
|
||||
public string EntrancePlace { get; set; }
|
||||
public string ExitPlace { get; set; }
|
||||
public string ErrorMsg { get; set; }
|
||||
public DateTime Task_CreateTime { get; set; }
|
||||
public string Task_CreateWho { get; set; }
|
||||
public DateTime? Task_StartTime { get; set; }
|
||||
public DateTime? Task_FinishTime { get; set; }
|
||||
public int SendAgainFlag { get; set; }
|
||||
public int DeleteFlag { get; set; }
|
||||
public int EmptyOutFlag { get; set; }
|
||||
public int FullInFlag { get; set; }
|
||||
|
||||
public string FullInPlace { get; set; }
|
||||
public int BoxSize { get; set; }
|
||||
public string BoxData { get; set; }
|
||||
|
||||
public void CopyTask(I_Task task)
|
||||
{
|
||||
this.tNo = task.tNo;
|
||||
this.tNo_WMS = task.tNo_WMS;
|
||||
this.Type = task.Type;
|
||||
this.NowState = task.NowState;
|
||||
this.NextState = task.NextState;
|
||||
this.PalletOrBoxNo = task.PalletOrBoxNo;
|
||||
this.Priority = task.Priority;
|
||||
this.Roadway = task.Roadway;
|
||||
this.ForkNo = task.ForkNo;
|
||||
this.FromPlace = task.FromPlace;
|
||||
this.ToPlace = task.ToPlace;
|
||||
this.EntrancePlace = task.EntrancePlace;
|
||||
this.ExitPlace = task.ExitPlace;
|
||||
this.ErrorMsg = task.ErrorMsg;
|
||||
this.Task_CreateTime = task.Task_CreateTime;
|
||||
this.Task_CreateWho = task.Task_CreateWho;
|
||||
this.Task_StartTime = task.Task_StartTime;
|
||||
this.Task_FinishTime = task.Task_FinishTime;
|
||||
this.SendAgainFlag = task.SendAgainFlag;
|
||||
this.DeleteFlag = task.DeleteFlag;
|
||||
this.EmptyOutFlag = task.EmptyOutFlag;
|
||||
this.FullInFlag = task.FullInFlag;
|
||||
this.FullInPlace = task.FullInPlace;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
using SqlSugar;
|
||||
|
||||
namespace WCS_YongFeng
|
||||
{
|
||||
public class T_BaseNumber
|
||||
{
|
||||
[SugarColumn(IsPrimaryKey = true)]
|
||||
public string Value { get; set; }
|
||||
public string VKey { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
using SqlSugar;
|
||||
|
||||
using System;
|
||||
|
||||
namespace WCS_YongFeng
|
||||
{
|
||||
public class T_TaskFlow
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int Menu { get; set; }
|
||||
public string TaskType { get; set; }
|
||||
public string EntranceType { get; set; }
|
||||
public string ExitType { get; set; }
|
||||
public int Setp { get; set; }
|
||||
private int _NowState;
|
||||
|
||||
public int NowState
|
||||
{
|
||||
get
|
||||
{
|
||||
return _NowState;
|
||||
}
|
||||
set
|
||||
{
|
||||
_NowState = value;
|
||||
e_NowState = (E_TaskState)Enum.Parse(typeof(E_TaskState), _NowState.ToString());
|
||||
}
|
||||
}
|
||||
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public E_TaskState e_NowState { get; set; }
|
||||
|
||||
public int NextState { get; set; }
|
||||
public string FromPlace { get; set; }
|
||||
public string ToPlace { get; set; }
|
||||
public string Remark { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace WCS_YongFeng
|
||||
{
|
||||
public class BindComboxEnumType<T>
|
||||
{
|
||||
/// <summary>
|
||||
/// 类型的名字
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 类型
|
||||
/// </summary>
|
||||
public T Type { get; set; }
|
||||
|
||||
//private static readonly List<BindComboxEnumType<T>> bindTyps;
|
||||
public static List<BindComboxEnumType<T>> BindTyps { get; }
|
||||
|
||||
static BindComboxEnumType()
|
||||
{
|
||||
BindTyps = new List<BindComboxEnumType<T>>();
|
||||
|
||||
foreach (var name in Enum.GetNames(typeof(T)))
|
||||
{
|
||||
BindTyps.Add(new BindComboxEnumType<T>()
|
||||
{
|
||||
Name = name,
|
||||
Type = (T)Enum.Parse(typeof(T), name)
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 绑定的类型数据
|
||||
/// </summary>
|
||||
//public static List<BindComboxEnumType<T>> BindTyps
|
||||
//{
|
||||
// get { return bindTyps; }
|
||||
//}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
namespace WCS_YongFeng
|
||||
{
|
||||
public class BindComboxType<T>
|
||||
{
|
||||
/// <summary>
|
||||
/// 类型的名字
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 类型
|
||||
/// </summary>
|
||||
public T Type { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,301 @@
|
||||
using System;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Windows.Data;
|
||||
|
||||
namespace WCS_YongFeng
|
||||
{
|
||||
public class TaskStateConverter : IValueConverter
|
||||
{
|
||||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
if (string.IsNullOrEmpty(value.ToString()))
|
||||
{
|
||||
return "状态错误";
|
||||
}
|
||||
foreach (E_TaskState enum1 in Enum.GetValues(typeof(E_TaskState)))
|
||||
{
|
||||
if (value.ToString() == enum1.GetIndexString())
|
||||
{
|
||||
return enum1;
|
||||
}
|
||||
}
|
||||
return "异常状态";
|
||||
}
|
||||
|
||||
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
|
||||
public class DeviceConverter : IValueConverter
|
||||
{
|
||||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
if (value == null)
|
||||
{
|
||||
return value;
|
||||
}
|
||||
if (string.IsNullOrEmpty(value.ToString()))
|
||||
{
|
||||
return value;
|
||||
}
|
||||
var result = App.f_ServiceModels.FirstOrDefault(a => a.device.Code == value.ToString());
|
||||
if (result != null)
|
||||
{
|
||||
return result.device.Name;
|
||||
}
|
||||
else
|
||||
{
|
||||
return value.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
public class TimeConverter : IValueConverter
|
||||
{
|
||||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
if (string.IsNullOrEmpty(value.ToString()))
|
||||
{
|
||||
return "类型错误";
|
||||
}
|
||||
int millisecond;
|
||||
if (int.TryParse(value.ToString(), out millisecond))
|
||||
{
|
||||
string result = "";
|
||||
int hour = 0;
|
||||
int minute = 0;
|
||||
int second = 0;
|
||||
int.TryParse((millisecond / 1000).ToString(), out second);
|
||||
if (second > 60)
|
||||
{
|
||||
if (second > 3600)
|
||||
{
|
||||
hour = second / 3600;
|
||||
minute = second % 3600 / 60;
|
||||
second = second % 3600 % 60 % 60;
|
||||
}
|
||||
else
|
||||
{
|
||||
minute = second / 60;
|
||||
second %= 60;
|
||||
}
|
||||
}
|
||||
result = hour.ToString().PadLeft(2, '0') + ":" + minute.ToString().PadLeft(2, '0') + ":" + second.ToString().PadLeft(2, '0');
|
||||
return result;
|
||||
}
|
||||
return "异常数值";
|
||||
}
|
||||
|
||||
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
|
||||
public class TaskTypeConverter : IValueConverter
|
||||
{
|
||||
|
||||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
if (string.IsNullOrEmpty(value.ToString()))
|
||||
{
|
||||
return "状态错误";
|
||||
}
|
||||
foreach (E_TaskType enum1 in Enum.GetValues(typeof(E_TaskType)))
|
||||
{
|
||||
if (value.ToString() == enum1.GetIndexString())
|
||||
{
|
||||
return enum1;
|
||||
}
|
||||
}
|
||||
return "异常状态";
|
||||
}
|
||||
|
||||
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
|
||||
public class SrmTaskTypeConverter : IValueConverter
|
||||
{
|
||||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
if (string.IsNullOrEmpty(value.ToString()))
|
||||
{
|
||||
return "类型错误";
|
||||
}
|
||||
foreach (E_SrmTaskType enum1 in Enum.GetValues(typeof(E_SrmTaskType)))
|
||||
{
|
||||
if (value.ToString() == enum1.GetIndexString())
|
||||
{
|
||||
return enum1;
|
||||
}
|
||||
}
|
||||
return "异常类型";
|
||||
}
|
||||
|
||||
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
|
||||
public class SrmLimitConverter : IValueConverter
|
||||
{
|
||||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
if (string.IsNullOrEmpty(value.ToString()))
|
||||
{
|
||||
return "类型错误";
|
||||
}
|
||||
foreach (E_TaskLimit enum1 in Enum.GetValues(typeof(E_TaskLimit)))
|
||||
{
|
||||
if (value.ToString() == enum1.GetIndexString())
|
||||
{
|
||||
return enum1;
|
||||
}
|
||||
}
|
||||
return "异常类型";
|
||||
}
|
||||
|
||||
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
|
||||
public class SrmForkStateConverter : IValueConverter
|
||||
{
|
||||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
if (string.IsNullOrEmpty(value.ToString()))
|
||||
{
|
||||
return "类型错误";
|
||||
}
|
||||
foreach (E_SrmForkState enum1 in Enum.GetValues(typeof(E_SrmForkState)))
|
||||
{
|
||||
if (value.ToString() == enum1.GetIndexString())
|
||||
{
|
||||
return enum1;
|
||||
}
|
||||
}
|
||||
return "异常类型";
|
||||
}
|
||||
|
||||
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
|
||||
public class SrmModeConverter : IValueConverter
|
||||
{
|
||||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
if (string.IsNullOrEmpty(value.ToString()))
|
||||
{
|
||||
return "类型错误";
|
||||
}
|
||||
foreach (E_SrmMode enum1 in Enum.GetValues(typeof(E_SrmMode)))
|
||||
{
|
||||
if (value.ToString() == enum1.GetIndexString())
|
||||
{
|
||||
return enum1;
|
||||
}
|
||||
}
|
||||
return "异常类型";
|
||||
}
|
||||
|
||||
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
|
||||
public class PoseTypeByNameConverter : IValueConverter
|
||||
{
|
||||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
if (value == null || string.IsNullOrEmpty(value.ToString()))
|
||||
{
|
||||
return "类型错误";
|
||||
}
|
||||
var pose = App.poseList.FirstOrDefault(a => a.wcName == value.ToString());
|
||||
if (pose != null)
|
||||
{
|
||||
return pose.wcTypeName;
|
||||
}
|
||||
return "异常类型";
|
||||
}
|
||||
|
||||
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
|
||||
public class PoseTypeByTypeConverter : IValueConverter
|
||||
{
|
||||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
if (string.IsNullOrEmpty(value.ToString()))
|
||||
{
|
||||
return "类型错误";
|
||||
}
|
||||
if (value.ToString() == "Entrance")
|
||||
{
|
||||
return "入库口";
|
||||
}
|
||||
if (value.ToString() == "Exit")
|
||||
{
|
||||
return "出库口";
|
||||
}
|
||||
var pose = App.poseList.FirstOrDefault(a => a.wcType == value.ToString());
|
||||
if (pose != null)
|
||||
{
|
||||
return pose.wcTypeName;
|
||||
}
|
||||
|
||||
return "异常类型";
|
||||
}
|
||||
|
||||
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
|
||||
public class StationOccpyByTypeConverter : IValueConverter
|
||||
{
|
||||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
if (string.IsNullOrEmpty(value.ToString()))
|
||||
{
|
||||
return "类型错误";
|
||||
}
|
||||
if (value.ToString() == "1" || value.ToString().ToLower() == "true")
|
||||
{
|
||||
return "有货";
|
||||
}
|
||||
else if (value.ToString() == "0" || value.ToString().ToLower() == "false")
|
||||
{
|
||||
return "无货";
|
||||
}
|
||||
else
|
||||
return "异常类型";
|
||||
}
|
||||
|
||||
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using PropertyChanged;
|
||||
|
||||
using System;
|
||||
|
||||
namespace WCS_YongFeng
|
||||
{
|
||||
[ImplementPropertyChanged]
|
||||
public abstract class VM_ReadModel
|
||||
{
|
||||
/// <summary>
|
||||
/// VM名称
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
|
||||
public VM_ReadModel(string name)
|
||||
{
|
||||
Name = name;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新时间
|
||||
/// </summary>
|
||||
public DateTime LatTime { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
using PropertyChanged;
|
||||
|
||||
using System;
|
||||
|
||||
namespace WCS_YongFeng
|
||||
{
|
||||
[ImplementPropertyChanged]
|
||||
public abstract class VM_WriteModel
|
||||
{
|
||||
/// <summary>
|
||||
/// VM名称
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
|
||||
public VM_WriteModel(string name)
|
||||
{
|
||||
Name = name;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新时间
|
||||
/// </summary>
|
||||
public DateTime LatTime { get; set; }
|
||||
|
||||
public abstract void Clear();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,160 @@
|
||||
using PropertyChanged;
|
||||
|
||||
namespace WCS_YongFeng
|
||||
{
|
||||
[ImplementPropertyChanged]
|
||||
public class VM_SrmRead : VM_ReadModel
|
||||
{
|
||||
public VM_SrmRead(string name) : base(name)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 心跳
|
||||
/// </summary>
|
||||
public bool Heart { get; set; }
|
||||
|
||||
|
||||
//对堆垛机系统信息
|
||||
/// <summary>
|
||||
/// 堆垛机PLC编号
|
||||
/// </summary>
|
||||
public int SRM_NO { get; set; }
|
||||
/// <summary>
|
||||
/// 堆垛机操作模式 1-维修;2-手动;3-机载操作;4-单机自动;5-联机
|
||||
/// </summary>
|
||||
public int SRM_Mode { get; set; }
|
||||
/// <summary>
|
||||
/// 行走测距数据
|
||||
/// </summary>
|
||||
public float AxisY_Pos { get; set; }
|
||||
/// <summary>
|
||||
/// 起升测距数据
|
||||
/// </summary>
|
||||
public float AxisZ_Pos { get; set; }
|
||||
/// <summary>
|
||||
/// 堆垛机故障 0:无错,1:有错 SRM_Err
|
||||
/// </summary>
|
||||
public bool SRM_Err { get; set; }
|
||||
/// <summary>
|
||||
/// 堆垛机当前站台号(0不在正确位置,1在库内正确位置,大于500库位号为出入口)
|
||||
/// </summary>
|
||||
public int SRM_Station { get; set; }
|
||||
|
||||
|
||||
//货叉1状态信息
|
||||
/// <summary>
|
||||
/// 货叉伸出测距数据
|
||||
/// </summary>
|
||||
public float AxisC_Pos { get; set; }
|
||||
/// <summary>
|
||||
/// 当前X
|
||||
/// </summary>
|
||||
public int AxisX_NO { get; set; }
|
||||
/// <summary>
|
||||
/// 当前Y
|
||||
/// </summary>
|
||||
public int AxisY_NO { get; set; }
|
||||
/// <summary>
|
||||
/// 当前Z
|
||||
/// </summary>
|
||||
public int AxisZ_NO { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 货叉是否中心,0-不在中心,1在中心
|
||||
/// </summary>
|
||||
public bool Fork1_Zero { get; set; }
|
||||
/// <summary>
|
||||
/// 货叉1有货 0:没货,1:有货
|
||||
/// </summary>
|
||||
public bool Fork1_Goods { get; set; }
|
||||
/// <summary>
|
||||
/// 货叉1 故障信息 0:无故障 1:有故障
|
||||
/// </summary>
|
||||
public bool Fork1_Err { get; set; }
|
||||
/// <summary>
|
||||
/// 货叉1 取货有货 1:满入 0:未满入
|
||||
/// </summary>
|
||||
public bool Fork1_FullIn { get; set; }
|
||||
/// <summary>
|
||||
/// 货叉1取货无货 1:错(取货无货) 0:无错
|
||||
/// </summary>
|
||||
public bool Fork1_EmptyOut { get; set; }
|
||||
/// <summary>
|
||||
/// 货叉1取货错 1:错( 0:无错
|
||||
/// </summary>
|
||||
public bool Fork1_PickError { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 0-无屏蔽;1-货叉1处于屏蔽状态,不能使用
|
||||
/// </summary>
|
||||
public bool Fork1_Allow { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 货叉1任务状态:1-待机;2-任务执行中;3-任务完成;4-任务中断(出 错,空出,满入);5-下发任务错误
|
||||
/// </summary>
|
||||
public int Fork1_State { get; set; }
|
||||
/// <summary>
|
||||
///货叉1任务标志:0-无任务,1-到位置,2-到位置取,3-到位置放,4-到位置取到位置放, 6删除任务,10任务完成
|
||||
/// </summary>
|
||||
public int Fork1_Task_Type { get; set; }
|
||||
/// <summary>
|
||||
/// 货叉1 取货地址: 排 (1=左1,2=右1,3=左2,4=右2)
|
||||
/// </summary>
|
||||
public int Fork1_Pick_AxisX_NO { get; set; }
|
||||
/// <summary>
|
||||
/// 货叉1取货地址: 列(1-最远列)
|
||||
/// </summary>
|
||||
public int Fork1_Pick_AxisY_NO { get; set; }
|
||||
/// <summary>
|
||||
/// 货叉1取货地址: 层(1-最高层)
|
||||
/// </summary>
|
||||
public int Fork1_Pick_AxisZ_NO { get; set; }
|
||||
/// <summary>
|
||||
/// 货叉1放货地址: (1=左1,2=右1,3=左2,4=右2)
|
||||
/// </summary>
|
||||
public int Fork1_Release_AxisX_NO { get; set; }
|
||||
/// <summary>
|
||||
/// 货叉1放货地址: 列(1-最远列)
|
||||
/// </summary>
|
||||
public int Fork1_Release_AxisY_NO { get; set; }
|
||||
/// <summary>
|
||||
/// 货叉1放货地址:层(1-最高层)
|
||||
/// </summary>
|
||||
public int Fork1_Release_AxisZ_NO { get; set; }
|
||||
/// <summary>
|
||||
/// 货叉1任务号
|
||||
/// </summary>
|
||||
public float Fork1_TaskNo { get; set; }
|
||||
|
||||
public int Fork1_height { get; set; }
|
||||
public int Fork1_width { get; set; }
|
||||
public int Fork1_length { get; set; }
|
||||
public int Fork1_weight { get; set; }
|
||||
public string Fork1_Code { get; set; }
|
||||
|
||||
#region 站台占用情况
|
||||
/// <summary>
|
||||
/// 料台出入口201状态:0未知1空闲2占用
|
||||
/// </summary>
|
||||
public bool Status_Port1 { get; set; }
|
||||
public bool Status_Port2 { get; set; }
|
||||
public bool Status_Port3 { get; set; }
|
||||
public bool Status_Port4 { get; set; }
|
||||
public bool Status_Port5 { get; set; }
|
||||
public bool Status_Port6 { get; set; }
|
||||
public bool Status_Port7 { get; set; }
|
||||
public bool Status_Port8 { get; set; }
|
||||
public bool Status_Port9 { get; set; }
|
||||
public bool Status_Port10 { get; set; }
|
||||
public bool Status_Port11 { get; set; }
|
||||
public bool Status_Port12 { get; set; }
|
||||
public bool Status_Port13 { get; set; }
|
||||
public bool Status_Port14 { get; set; }
|
||||
#endregion
|
||||
|
||||
public string SrmErrMsg { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
using PropertyChanged;
|
||||
|
||||
namespace WCS_YongFeng
|
||||
{
|
||||
[ImplementPropertyChanged]
|
||||
public class VM_SrmWrite : VM_WriteModel
|
||||
{
|
||||
public VM_SrmWrite(string name) : base(name)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 堆垛机编号
|
||||
/// </summary>
|
||||
public int SRM_NO { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 货叉编号 0=无,1=前叉,2=后叉,3=双叉
|
||||
/// </summary>
|
||||
public int SRM_Axis_NO { get; set; }
|
||||
/// <summary>
|
||||
/// 货叉1任务类型 0-无任务,1-行走,2-库内取货(走取),3-库内放货(走放),4-走取走放 6-删除任务,10-任务完成
|
||||
/// </summary>
|
||||
public int Fork1TaskType_1 { get; set; }
|
||||
/// <summary>
|
||||
/// 货叉1取货地址X轴(排)
|
||||
/// </summary>
|
||||
public int Fork1_Pick_AxisX_NO { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 货叉1取货地址Y轴(列)
|
||||
/// </summary>
|
||||
public int Fork1_Pick_AxisY_NO { get; set; }
|
||||
/// <summary>
|
||||
/// 货叉1取货地址Z轴(层)
|
||||
/// </summary>
|
||||
public int Fork1_Pick_AxisZ_NO { get; set; }
|
||||
/// <summary>
|
||||
/// 货叉1 放货地址X轴(排)
|
||||
/// </summary>
|
||||
public int Fork1_Release_AxisX_NO { get; set; }
|
||||
/// <summary>
|
||||
/// 货叉1放货地址Y轴(列)
|
||||
/// </summary>
|
||||
public int Fork1_Release_AxisY_NO { get; set; }
|
||||
/// <summary>
|
||||
/// 货叉1放货地址Z轴(层)
|
||||
/// </summary>
|
||||
public int Fork1_Release_AxisZ_NO { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 货叉1任务号
|
||||
/// </summary>
|
||||
public float Fork1_TaskNo { get; set; }
|
||||
public int Fork1_GoodsType { get; set; }
|
||||
|
||||
public int Fork1_height { get; set; }
|
||||
public int Fork1_width { get; set; }
|
||||
public int Fork1_length { get; set; }
|
||||
public int Fork1_weight { get; set; }
|
||||
public string Fork1_Code { get; set; }
|
||||
public int Fork1_Size { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 心跳
|
||||
/// </summary>
|
||||
public bool SRM_Heart { get; set; }
|
||||
|
||||
|
||||
public override void Clear()
|
||||
{
|
||||
SRM_Axis_NO = 0;
|
||||
Fork1TaskType_1 = 0;
|
||||
Fork1_Pick_AxisX_NO = 0;
|
||||
Fork1_Pick_AxisY_NO = 0;
|
||||
Fork1_Pick_AxisZ_NO = 0;
|
||||
|
||||
Fork1_Release_AxisX_NO = 0;
|
||||
Fork1_Release_AxisY_NO = 0;
|
||||
Fork1_Release_AxisZ_NO = 0;
|
||||
|
||||
Fork1_TaskNo = 0;
|
||||
Fork1_GoodsType = 0;
|
||||
|
||||
Fork1_height = 0;
|
||||
Fork1_width = 0;
|
||||
Fork1_length = 0;
|
||||
Fork1_weight = 0;
|
||||
Fork1_Code = "";
|
||||
//Fork1_Size = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
using PropertyChanged;
|
||||
|
||||
namespace WCS_YongFeng
|
||||
{
|
||||
[ImplementPropertyChanged]
|
||||
public class VM_StationACK : VM_WriteModel
|
||||
{
|
||||
public VM_StationACK(string name) : base(name)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 报文名称
|
||||
/// </summary>
|
||||
public int MessageID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 装载状态
|
||||
/// </summary>
|
||||
public int LoadingStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 读码器编号
|
||||
/// </summary>
|
||||
public int ScannerNr { get; set; }
|
||||
|
||||
//public string Spare { get; set; }
|
||||
public string Barcode { get; set; }
|
||||
public override void Clear()
|
||||
{
|
||||
MessageID = 0;
|
||||
LoadingStatus = 0;
|
||||
ScannerNr = 0;
|
||||
Barcode = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
using PropertyChanged;
|
||||
|
||||
namespace WCS_YongFeng
|
||||
{
|
||||
[ImplementPropertyChanged]
|
||||
public class VM_StationDACK : VM_WriteModel
|
||||
{
|
||||
public VM_StationDACK(string name) : base(name)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 报文名称
|
||||
/// </summary>
|
||||
public int MessageID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 装载状态
|
||||
/// </summary>
|
||||
public int LoadingStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 读码器编号
|
||||
/// </summary>
|
||||
public int ScannerNr { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 条码
|
||||
/// </summary>
|
||||
public string PalletID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 重量
|
||||
/// </summary>
|
||||
public int Weight { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 长度
|
||||
/// </summary>
|
||||
public int Length { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 宽度
|
||||
/// </summary>
|
||||
public int Width { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 高度
|
||||
/// </summary>
|
||||
public int Height { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 目的地
|
||||
/// </summary>
|
||||
public int DeStation { get; set; }
|
||||
public bool Heart { get; set; }
|
||||
public override void Clear()
|
||||
{
|
||||
MessageID = 0;
|
||||
LoadingStatus = 0;
|
||||
ScannerNr = 0;
|
||||
PalletID = "";
|
||||
Weight = 0;
|
||||
Length = 0;
|
||||
Width = 0;
|
||||
Height = 0;
|
||||
DeStation = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
using PropertyChanged;
|
||||
|
||||
namespace WCS_YongFeng
|
||||
{
|
||||
[ImplementPropertyChanged]
|
||||
public class VM_StationDR : VM_ReadModel
|
||||
{
|
||||
public VM_StationDR(string name) : base(name)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 报文名称
|
||||
/// </summary>
|
||||
public int MessageID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 装载状态
|
||||
/// </summary>
|
||||
public int LoadingStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 读码器编号
|
||||
/// </summary>
|
||||
public int ScannerNr { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 条码
|
||||
/// </summary>
|
||||
public string PalletID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 重量
|
||||
/// </summary>
|
||||
public int Weight { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 长度
|
||||
/// </summary>
|
||||
public int Length { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 宽度
|
||||
/// </summary>
|
||||
public int Width { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 高度
|
||||
/// </summary>
|
||||
public int Height { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
using PropertyChanged;
|
||||
|
||||
namespace WCS_YongFeng
|
||||
{
|
||||
[ImplementPropertyChanged]
|
||||
public class VM_StationPR : VM_ReadModel
|
||||
{
|
||||
public VM_StationPR(string name) : base(name)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 报文名称
|
||||
/// </summary>
|
||||
public int MessageID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 装载状态
|
||||
/// </summary>
|
||||
public int SortResualt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 读码器编号
|
||||
/// </summary>
|
||||
public int ScannerNr { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 实际地址
|
||||
/// </summary>
|
||||
public int ActualDestination { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 条码
|
||||
/// </summary>
|
||||
public string PalletID { get; set; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
using PropertyChanged;
|
||||
|
||||
namespace WCS_YongFeng
|
||||
{
|
||||
[ImplementPropertyChanged]
|
||||
public class VM_StationStste : VM_ReadModel
|
||||
{
|
||||
public VM_StationStste(string name) : base(name)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 条码
|
||||
/// </summary>
|
||||
public string PalletID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 状态
|
||||
/// </summary>
|
||||
public int State { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否占用
|
||||
/// </summary>
|
||||
public int Occupied { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 站台是否报错
|
||||
/// </summary>
|
||||
public int IsErr { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 目的地
|
||||
/// </summary>
|
||||
public int Destination { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using PropertyChanged;
|
||||
|
||||
namespace WCS_YongFeng
|
||||
{
|
||||
[ImplementPropertyChanged]
|
||||
public class VM_StationStsteWrite : VM_WriteModel
|
||||
{
|
||||
public VM_StationStsteWrite(string name) : base(name)
|
||||
{
|
||||
}
|
||||
|
||||
public override void Clear()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
namespace WCS_YongFeng
|
||||
{
|
||||
/// <summary>
|
||||
/// 任务下发(wms请求)
|
||||
/// </summary>
|
||||
public class ReqTaskAssign
|
||||
{
|
||||
/// <summary>
|
||||
/// 任务号
|
||||
/// </summary>
|
||||
public string TaskNo { get; set; }
|
||||
/// <summary>
|
||||
/// 托盘号
|
||||
/// </summary>
|
||||
public string PalletNo { get; set; }
|
||||
/// <summary>
|
||||
/// 任务起点
|
||||
/// </summary>
|
||||
public string FromLocation { get; set; }
|
||||
/// <summary>
|
||||
/// 任务终点
|
||||
/// </summary>
|
||||
public string ToLocation { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
namespace WCS_YongFeng
|
||||
{
|
||||
/// <summary>
|
||||
/// 任务完成(wcs请求)
|
||||
/// </summary>
|
||||
public class ReqTaskFinish
|
||||
{
|
||||
/// <summary>
|
||||
/// 任务号
|
||||
/// </summary>
|
||||
public string TaskNo { get; set; }
|
||||
/// <summary>
|
||||
/// 10-入库请求,100-任务完成
|
||||
/// </summary>
|
||||
public int State { get; set; }
|
||||
/// <summary>
|
||||
/// 高度(只在入库请求时反馈)
|
||||
/// </summary>
|
||||
public int Height { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
namespace WCS_YongFeng
|
||||
{
|
||||
public class ApiResultModel<T>
|
||||
{
|
||||
public bool Success { get; set; }
|
||||
public T Data { get; set; }
|
||||
public string Msg { get; set; }
|
||||
|
||||
public ApiResultModel(bool state, T data, string msg)
|
||||
{
|
||||
if (state)
|
||||
{
|
||||
this.Success = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Success = false;
|
||||
}
|
||||
this.Data = data;
|
||||
this.Msg = msg;
|
||||
}
|
||||
}
|
||||
|
||||
public class ApiResultModel
|
||||
{
|
||||
public bool Success { get; set; }
|
||||
public string Msg { get; set; }
|
||||
public object Data { get; set; }
|
||||
|
||||
public ApiResultModel(bool state, object data, string msg)
|
||||
{
|
||||
if (state)
|
||||
{
|
||||
this.Success = true;
|
||||
}
|
||||
else
|
||||
this.Success = false;
|
||||
this.Data = data;
|
||||
this.Msg = msg;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace WCS_YongFeng
|
||||
{
|
||||
public class ResWareCellAllocation
|
||||
{
|
||||
public string LocationCode { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
<Page x:Class="WCS_YongFeng.DeviceView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
mc:Ignorable="d"
|
||||
Background="#CCD5F0"
|
||||
Title="DeviceView" Loaded="Page_Loaded">
|
||||
|
||||
<ScrollViewer Style="{StaticResource DMScrollViewer}" HorizontalScrollBarVisibility="Disabled" Padding="10">
|
||||
<StackPanel>
|
||||
<StackPanel Orientation="Horizontal" Background="#E9EEFF">
|
||||
<TextBlock Text="设备配置参数" FontSize="24" Margin="10,20" ></TextBlock>
|
||||
</StackPanel>
|
||||
<Border Margin="6,6,6,6" Background="#20ffffff" CornerRadius="4">
|
||||
<GroupBox Style="{StaticResource AduGroupBox}" Header="设备基本信息" FontWeight="Bold" Margin="0,10" FontSize="18" BorderThickness="3,0,0,0" BorderBrush="#4ABDA7">
|
||||
<DataGrid Margin="2" Foreground ="Black" FontSize="12" Style="{StaticResource AduDataGrid}" Height="auto" x:Name="AduDataGrids" GridLinesVisibility="None" BorderThickness="8" ItemsSource="{Binding CodeList}">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="设备名称" Binding="{Binding Name}" IsReadOnly="True" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="设备编号" Binding="{Binding Code}" IsReadOnly="True" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="对应交互点" Binding="{Binding Point}" IsReadOnly="True" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="设备类型" Binding="{Binding Type}" IsReadOnly="True" />
|
||||
|
||||
<!--<DataGridTextColumn Width="*" Header="对应巷道" Binding="{Binding RoadWay}" IsReadOnly="True" />-->
|
||||
<!--<DataGridTextColumn Width="*" Header="对应货叉" Binding="{Binding ForkNo}" IsReadOnly="True" />-->
|
||||
<!--<DataGridTextColumn Width="*" Header="设备IP" Binding="{Binding IP}" IsReadOnly="True" />-->
|
||||
<DataGridCheckBoxColumn Width="*" Header="是否启用" Binding="{Binding IsEnable}" IsReadOnly="True" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="设备限制" Binding="{Binding Limit}" IsReadOnly="True" />
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
</GroupBox>
|
||||
</Border>
|
||||
</StackPanel>
|
||||
</ScrollViewer>
|
||||
</Page>
|
||||
@@ -0,0 +1,21 @@
|
||||
using System.Linq;
|
||||
using System.Windows;
|
||||
|
||||
namespace WCS_YongFeng
|
||||
{
|
||||
/// <summary>
|
||||
/// DeviceView.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class DeviceView
|
||||
{
|
||||
public DeviceView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void Page_Loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
AduDataGrids.ItemsSource = App.f_ServiceModels.Select(a => a.device).ToList();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
<Page
|
||||
x:Class="WCS_YongFeng.HandDeviceTask"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
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"
|
||||
Title="HandDeviceTask"
|
||||
mc:Ignorable="d"
|
||||
Width="500"
|
||||
Background="#CCD5F0"
|
||||
Loaded="DMSkinWindow_Loaded">
|
||||
|
||||
<ScrollViewer Style="{StaticResource DMScrollViewer}" HorizontalScrollBarVisibility="Disabled" Padding="10">
|
||||
<StackPanel>
|
||||
<TextBlock Text="下发设备手动任务" FontSize="22" Margin="10,10" ></TextBlock>
|
||||
<UniformGrid Columns="3">
|
||||
<StackPanel>
|
||||
<TextBlock Text="选择设备" FontSize="13" Margin="10,20" Width="110" />
|
||||
<ComboBox Width="124" x:Name="Comm_Device" FontSize="13" Margin="10,10" />
|
||||
<TextBlock Text="选择任务类型" FontSize="13" Margin="10,20" Width="110" />
|
||||
<ComboBox Width="124" x:Name="Comm" FontSize="13" Margin="10,10" />
|
||||
</StackPanel>
|
||||
<StackPanel>
|
||||
<!--<TextBlock Text="输入起点" FontSize="13" Margin="10,20" Width="110" />
|
||||
<TextBox x:Name="from" Margin="10,10" TextWrapping="Wrap" Width="126" FontSize="20" />-->
|
||||
<TextBlock Text="输入终点" FontSize="13" Margin="10,20" Width="110" />
|
||||
<TextBox x:Name="to" Margin="10,10" TextWrapping="Wrap" Width="126" FontSize="20" />
|
||||
</StackPanel>
|
||||
<StackPanel>
|
||||
<Button Style="{StaticResource AduButton}" Content="下发任务" FontWeight="Light" Background="Transparent" Click="Button_Click" />
|
||||
</StackPanel>
|
||||
</UniformGrid>
|
||||
</StackPanel>
|
||||
</ScrollViewer>
|
||||
</Page>
|
||||
@@ -0,0 +1,76 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Windows;
|
||||
|
||||
namespace WCS_YongFeng
|
||||
{
|
||||
/// <summary>
|
||||
/// HandDeviceTask.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class HandDeviceTask
|
||||
{
|
||||
public HandDeviceTask()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void DMSkinWindow_Loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
List<BindComboxType<string>> bindComboxTypes = new List<BindComboxType<string>>();
|
||||
var deviceList = App.f_ServiceModels.FindAll(a => a.device.Type == "Srm" || a.device.Type == "Rgv");
|
||||
foreach (F_ServiceModel device in deviceList)
|
||||
{
|
||||
bindComboxTypes.Add(new BindComboxType<string> { Name = device.device.Name, Type = device.device.Code });
|
||||
}
|
||||
Comm_Device.ItemsSource = bindComboxTypes;
|
||||
Comm_Device.DisplayMemberPath = "Name";
|
||||
Comm_Device.SelectedValuePath = "Type";
|
||||
|
||||
//任务类型绑定
|
||||
Comm.ItemsSource = BindComboxEnumType<E_SrmHandTask>.BindTyps;
|
||||
Comm.DisplayMemberPath = "Name";
|
||||
Comm.SelectedValuePath = "Type";
|
||||
|
||||
}
|
||||
|
||||
private void Button_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (Comm.SelectedValue == null) //Comm_Device.SelectedValue == null &&
|
||||
{
|
||||
MessageBox.Show("请选择必选项", "提示");
|
||||
return;
|
||||
}
|
||||
var deviceCode = Comm_Device.SelectedValue.ToString();
|
||||
var taskType = (E_SrmHandTask)Comm.SelectedValue;
|
||||
if (string.IsNullOrWhiteSpace(to.Text))
|
||||
{
|
||||
MessageBox.Show("终点不能为空");
|
||||
}
|
||||
var excute_device = App.i_Excutes.FirstOrDefault(a => a.f_service.device.Code == deviceCode);
|
||||
if (excute_device == null)
|
||||
{
|
||||
MessageBox.Show($"找不到此设备{deviceCode}对应的处理类");
|
||||
return;
|
||||
}
|
||||
var excute = excute_device as I_Excute_S; //堆垛机处理类
|
||||
if (excute != null)
|
||||
{
|
||||
var result = excute.HandDeviceTask(taskType.GetIndexInt(), to.Text, to.Text);
|
||||
if (!result.Success)
|
||||
{
|
||||
MessageBox.Show($"手动下发设备{deviceCode}任务失败,错误原因是:【{result.Msg}】");
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show($"手动下发设备{deviceCode}任务成功");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show($"手动下发设备{deviceCode}任务失败,找不到此设备的类型");
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
<Page
|
||||
x:Class="WCS_YongFeng.HandSrmTaskRevert"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
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:dmskin="clr-namespace:DMSkin;assembly=DMSkin"
|
||||
mc:Ignorable="d"
|
||||
Width="500"
|
||||
Background="#CCD5F0"
|
||||
Title="HandSrmTaskRevert" Loaded="DMSkinWindow_Loaded">
|
||||
|
||||
<ScrollViewer Style="{StaticResource DMScrollViewer}" HorizontalScrollBarVisibility="Disabled" Padding="10">
|
||||
<StackPanel>
|
||||
<TextBlock Text="堆垛机任务恢复" FontSize="22" Margin="10,10" ></TextBlock>
|
||||
<UniformGrid Columns="2">
|
||||
<StackPanel>
|
||||
<TextBlock Text="选择设备编号" FontSize="13" Margin="10,20" Width="110" />
|
||||
<ComboBox Width="124" x:Name="Comm_Device" FontSize="13" />
|
||||
</StackPanel>
|
||||
<StackPanel>
|
||||
<Button Name="btnReq" Style="{StaticResource AduButton}" Content="重新下发任务" FontWeight="Light" Background="Transparent" Click="btn_Click" CommandParameter="Req" />
|
||||
<Button Name="btnReqFinish" Style="{StaticResource AduButton}" Content="完成当前任务状态" FontWeight="Light" Background="Transparent" Click="btn_Click" CommandParameter="Finish" />
|
||||
<Button Name="btnEmptyOut" Style="{StaticResource AduButton}" Content="空出处理" FontWeight="Light" Background="Transparent" Click="btn_Click" CommandParameter="EmptyOut" />
|
||||
<Button Name="btnFullIn" Style="{StaticResource AduButton}" Content="满入处理" FontWeight="Light" Background="Transparent" Click="btn_Click" CommandParameter="FullIn" />
|
||||
<Button Name="btnDel" Style="{StaticResource AduButton}" Content="删除堆垛机任务" FontWeight="Light" Background="Transparent" Click="btn_Click" CommandParameter="Del" />
|
||||
<!--
|
||||
<Button Name="btnContinue" Style="{StaticResource AduButton}" Content="继续当前任务" FontWeight="Light" Background="Transparent" Click="btn_Click" CommandParameter="Continue" />-->
|
||||
<!--<Button Name="btnTakeErr" Style="{StaticResource AduButton}" Content="取货错处理" FontWeight="Light" Background="Transparent" Click="btn_Click" CommandParameter="PickError" />
|
||||
<Button Name="btnPutErr" Style="{StaticResource AduButton}" Content="放货错处理" FontWeight="Light" Background="Transparent" Click="btn_Click" CommandParameter="PutError" />-->
|
||||
|
||||
</StackPanel>
|
||||
</UniformGrid>
|
||||
</StackPanel>
|
||||
</ScrollViewer>
|
||||
</Page>
|
||||
@@ -0,0 +1,93 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
|
||||
namespace WCS_YongFeng
|
||||
{
|
||||
/// <summary>
|
||||
/// HandSrmTaskRevert.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class HandSrmTaskRevert
|
||||
{
|
||||
public HandSrmTaskRevert()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void DMSkinWindow_Loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
var deviceList = App.f_ServiceModels.Select(a => a.device).ToList().FindAll(a => a.Type == "Srm" || a.Type == "Rgv");
|
||||
List<BindComboxType<string>> bindComboxTypes = new List<BindComboxType<string>>();
|
||||
foreach (var device in deviceList)
|
||||
{
|
||||
bindComboxTypes.Add(new BindComboxType<string> { Name = device.Name, Type = device.Code });
|
||||
}
|
||||
Comm_Device.ItemsSource = bindComboxTypes;
|
||||
Comm_Device.DisplayMemberPath = "Name";
|
||||
Comm_Device.SelectedValuePath = "Type";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 按钮点击事件入口
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void btn_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
//var deviceCode = "Srm01";
|
||||
if (Comm_Device.SelectedValue == null)
|
||||
{
|
||||
MessageBox.Show("请选择必选项", "提示");
|
||||
return;
|
||||
}
|
||||
var deviceCode = Comm_Device.SelectedValue.ToString();
|
||||
var excute_device = App.i_Excutes.FirstOrDefault(a => a.f_service.device.Code == deviceCode);
|
||||
if (excute_device == null)
|
||||
{
|
||||
MessageBox.Show($"设备{deviceCode}任务恢复失败:找不到对应设备的处理类");
|
||||
return;
|
||||
}
|
||||
var excute = excute_device as I_Excute_S;
|
||||
if (excute == null)
|
||||
{
|
||||
MessageBox.Show($"设备{deviceCode}恢复失败,找不到对应的设备类型");
|
||||
return;
|
||||
}
|
||||
Button button = sender as Button;
|
||||
BllResult bllResult;
|
||||
if (button.CommandParameter.ToString() == "Req")
|
||||
{
|
||||
bllResult = excute.HandReqExcute();
|
||||
}
|
||||
else if (button.CommandParameter.ToString() == "Finish")
|
||||
{
|
||||
bllResult = excute.HandFinishExcute();
|
||||
}
|
||||
else if (button.CommandParameter.ToString() == "EmptyOut")
|
||||
{
|
||||
bllResult = excute.EmptyOutExcute();
|
||||
}
|
||||
else if (button.CommandParameter.ToString() == "FullIn")
|
||||
{
|
||||
bllResult = excute.FullInExcute();
|
||||
}
|
||||
else if (button.CommandParameter.ToString() == "Del")
|
||||
{
|
||||
bllResult = excute.DeleteTask();
|
||||
}
|
||||
else
|
||||
{
|
||||
bllResult = BllResult.Error($"恢复设备{deviceCode}任务失败,未找到对应的操作类型");
|
||||
}
|
||||
if (bllResult.Success)
|
||||
{
|
||||
MessageBox.Show("设备任务恢复成功");
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show($"设备任务恢复失败,错误原因是:{bllResult.Msg}");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
<Page
|
||||
x:Class="WCS_YongFeng.HandTask"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
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"
|
||||
mc:Ignorable="d"
|
||||
Title="HandTask" Loaded="DMSkinWindow_Loaded"
|
||||
Background="#CCD5F0"
|
||||
Width="600">
|
||||
<ScrollViewer Style="{StaticResource DMScrollViewer}" HorizontalScrollBarVisibility="Disabled" Padding="10">
|
||||
<StackPanel>
|
||||
<TextBlock Text="下发手动任务" FontSize="22" Margin="10,10" ></TextBlock>
|
||||
<UniformGrid Columns="3">
|
||||
<StackPanel>
|
||||
<TextBlock Text="输入起点" FontSize="13" Margin="10,20" Width="110" />
|
||||
<TextBox x:Name="from" Margin="10,10" TextWrapping="Wrap" Width="126" FontSize="20" />
|
||||
<TextBlock Text="输入终点" FontSize="13" Margin="10,20" Width="110" />
|
||||
<TextBox x:Name="to" Margin="10,10" TextWrapping="Wrap" Width="126" FontSize="20" />
|
||||
</StackPanel>
|
||||
<StackPanel>
|
||||
<TextBlock Text="条码" FontSize="13" Margin="10,20" Width="110" />
|
||||
<TextBox x:Name="pallet" Margin="10,10" TextWrapping="Wrap" Width="126" FontSize="20" />
|
||||
<Button Style="{StaticResource AduButton}" Content="下发任务" FontWeight="Light" Background="Transparent" Click="Button_Click" />
|
||||
</StackPanel>
|
||||
</UniformGrid>
|
||||
</StackPanel>
|
||||
</ScrollViewer>
|
||||
</Page>
|
||||
@@ -0,0 +1,61 @@
|
||||
using System.Windows;
|
||||
|
||||
namespace WCS_YongFeng
|
||||
{
|
||||
/// <summary>
|
||||
/// HandTask.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class HandTask
|
||||
{
|
||||
private BaseBll baseBll = new BaseBll();
|
||||
|
||||
public HandTask()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void DMSkinWindow_Loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// WCS创建任务/下发任务
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void Button_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
var fromplace = from.Text.Trim().ToString();
|
||||
var toplace = to.Text.Trim().ToString();
|
||||
var pall = pallet.Text.Trim().ToString();
|
||||
|
||||
string type = "";
|
||||
if (string.IsNullOrWhiteSpace(fromplace) && !string.IsNullOrWhiteSpace(toplace))
|
||||
{
|
||||
fromplace = "EntranceStationA01";
|
||||
type = E_TaskType.入库.GetIndexString();
|
||||
}
|
||||
else if (!string.IsNullOrWhiteSpace(fromplace) && string.IsNullOrWhiteSpace(toplace))
|
||||
{
|
||||
toplace = "ExitStationA01";
|
||||
type = E_TaskType.出库.GetIndexString();
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show("起点终点不允许都为空!");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
BllResult<I_Task> result = baseBll.CreateTask("", type, pall, fromplace, toplace, "WCS手动");
|
||||
if (result.Success)
|
||||
{
|
||||
MessageBox.Show($"手动下发任务成功,任务号:{result.Data.tNo}");
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show($"手动下发任务失败,错误原因:【{result.Msg}】");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
<Page
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
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:Attached="clr-namespace:DMSkin.Attached;assembly=DMSkin" x:Class="WCS_YongFeng.HandView"
|
||||
mc:Ignorable="d"
|
||||
Width="Auto"
|
||||
Background="#CCD5F0"
|
||||
Title="HandView">
|
||||
<Grid>
|
||||
<ScrollViewer Style="{StaticResource DMScrollViewer}" HorizontalScrollBarVisibility="Disabled" Padding="10">
|
||||
<StackPanel>
|
||||
<StackPanel Orientation="Horizontal" Background="#E9EEFF">
|
||||
<TextBlock Text="手动操作" FontSize="24" Margin="10,20" ></TextBlock>
|
||||
</StackPanel>
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="30*" />
|
||||
<ColumnDefinition Width="70*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<StackPanel Grid.Column="0">
|
||||
<Button x:Name="btn_SrmTaskRevert" Style="{StaticResource AduButton}" Content="堆垛机任务恢复" FontWeight="Light" Background="Transparent" Click="btn_SrmTaskRevert_Click" />
|
||||
<Button x:Name="btn_HandDeviceTask" Style="{StaticResource AduButton}" Content="手动创建设备任务" FontWeight="Light" Background="Transparent" Click="btn_HandDeviceTask_Click" />
|
||||
<Button x:Name="btn_HandTask" Style="{StaticResource AduButton}" Content="手动创建任务" FontWeight="Light" Background="Transparent" Click="btn_HandTask_Click" />
|
||||
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Column="1">
|
||||
<Frame x:Name="Frame" NavigationUIVisibility="Hidden" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
</ScrollViewer>
|
||||
</Grid>
|
||||
</Page>
|
||||
@@ -0,0 +1,29 @@
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
|
||||
namespace WCS_YongFeng
|
||||
{
|
||||
/// <summary>
|
||||
/// HandView.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class HandView
|
||||
{
|
||||
public HandView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void btn_SrmTaskRevert_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
Frame.Content = new HandSrmTaskRevert();
|
||||
}
|
||||
private void btn_HandDeviceTask_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
Frame.Content = new HandDeviceTask();
|
||||
}
|
||||
private void btn_HandTask_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
Frame.Content = new HandTask();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
<Window x:Class="WCS_YongFeng.Page.HandView.TaskStateChangexaml"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:WCS_YongFeng.Page.HandView"
|
||||
xmlns:viewmodel="clr-namespace:WCS_YongFeng"
|
||||
mc:Ignorable="d"
|
||||
Background="#CCD5F0"
|
||||
Title="任务状态修改" Height="272" Width="244">
|
||||
<Window.Resources>
|
||||
<viewmodel:TaskStateConverter x:Key="TaskStateConverter"></viewmodel:TaskStateConverter>
|
||||
<viewmodel:TaskTypeConverter x:Key="TaskTypeConverter"></viewmodel:TaskTypeConverter>
|
||||
<viewmodel:DeviceConverter x:Key="DeviceConverter"></viewmodel:DeviceConverter>
|
||||
<viewmodel:PoseTypeByNameConverter x:Key="PoseTypeConverter"></viewmodel:PoseTypeByNameConverter>
|
||||
</Window.Resources>
|
||||
<Grid>
|
||||
<TextBox HorizontalAlignment="Left" Height="23" Margin="85,20,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="120" Name="taskno" IsEnabled="False" />
|
||||
<TextBox HorizontalAlignment="Left" Height="23" Margin="85,62,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="120" Name="nowstate" IsEnabled="False" />
|
||||
<ComboBox HorizontalAlignment="Left" Margin="85,105,0,0" VerticalAlignment="Top" Width="120" Name="changestate" />
|
||||
<Label Content="任务号" HorizontalAlignment="Left" Margin="10,20,0,0" VerticalAlignment="Top" Height="25" Width="70" />
|
||||
<Label Content="修改后状态" HorizontalAlignment="Left" Margin="10,105,0,0" VerticalAlignment="Top" Height="25" Width="70" />
|
||||
<Label Content="当前状态" HorizontalAlignment="Left" Margin="10,60,0,0" VerticalAlignment="Top" Height="25" Width="65" />
|
||||
<Button Content="修改" HorizontalAlignment="Center" Margin="0,214,0,0" VerticalAlignment="Top" Width="104" Click="Button_Click" />
|
||||
<ComboBox HorizontalAlignment="Left" Margin="85,151,0,0" VerticalAlignment="Top" Width="120" x:Name="changeenter" />
|
||||
<Label Content="修改后入口" HorizontalAlignment="Left" Margin="10,151,0,0" VerticalAlignment="Top" Height="25" Width="70" />
|
||||
</Grid>
|
||||
</Window>
|
||||
@@ -0,0 +1,64 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Windows;
|
||||
|
||||
namespace WCS_YongFeng.Page.HandView
|
||||
{
|
||||
/// <summary>
|
||||
/// TaskStateChangexaml.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class TaskStateChangexaml : Window
|
||||
{
|
||||
public TaskStateChangexaml(I_Task task)
|
||||
{
|
||||
InitializeComponent();
|
||||
this.taskno.Text = task.tNo;
|
||||
this.nowstate.Text = ((E_TaskState)Enum.Parse(typeof(E_TaskState), task.NowState.ToString())).ToString();
|
||||
|
||||
this.changestate.ItemsSource = App.taskflowList.FindAll(a => a.Menu == task.TaskFlow);
|
||||
this.changestate.DisplayMemberPath = "e_NowState";
|
||||
this.changestate.SelectedValuePath = "Setp";
|
||||
|
||||
this.changeenter.ItemsSource = App.poseList.FindAll(a => a.wcType == "EntranceExit" && a.wcTypeName != "虚拟入口");
|
||||
this.changeenter.DisplayMemberPath = "wcTypeName";
|
||||
this.changeenter.SelectedValuePath = "wcName";
|
||||
this.changeenter.IsEnabled = false;
|
||||
|
||||
if (task.EntrancePlace == "Enter_0000")
|
||||
{
|
||||
this.changeenter.IsEnabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.changeenter.SelectedValue = task.EntrancePlace;
|
||||
}
|
||||
}
|
||||
|
||||
private void Button_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
var task = App.taskList.FirstOrDefault(a => a.tNo == this.taskno.Text);
|
||||
if (task == null)
|
||||
{
|
||||
MessageBox.Show("任务获取失败,请重新打开窗口修改", "提示");
|
||||
return;
|
||||
}
|
||||
if (this.changestate.SelectedValue == null)
|
||||
{
|
||||
MessageBox.Show("请选择必选项", "提示");
|
||||
return;
|
||||
}
|
||||
var statesetp = (int)this.changestate.SelectedValue;
|
||||
var enter = this.changeenter.SelectedValue == null ? "" : this.changeenter.SelectedValue.ToString();
|
||||
BaseBll baseBll = new BaseBll();
|
||||
var result = baseBll.ChangeState(task, enter, statesetp);
|
||||
if (result.Success)
|
||||
{
|
||||
MessageBox.Show("修改成功");
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show("修改失败" + result.Msg);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
<Page x:Class="HH_WCS_Standard.Page.HandView.WeightWarningSet"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:HH_WCS_Standard.Page.HandView"
|
||||
mc:Ignorable="d" Background="#2B2833"
|
||||
d:DesignHeight="450" d:DesignWidth="800"
|
||||
Title="WeightWarningSet"
|
||||
Loaded="DMSkinWindow_Loaded">
|
||||
<ScrollViewer Style="{StaticResource DMScrollViewer}" HorizontalScrollBarVisibility="Disabled" Padding="10">
|
||||
<StackPanel >
|
||||
<TextBlock Text="称重超重设定" FontSize="22" Margin="10,10" Foreground="#fff"></TextBlock>
|
||||
<UniformGrid Columns="1">
|
||||
<StackPanel >
|
||||
<TextBlock Text="重量" FontSize="13" Margin="10,10" TextAlignment="Center" Foreground="#fff" Width="100" />
|
||||
<TextBox x:Name="weight" Margin="10,10" TextWrapping="Wrap" Width="126" FontSize="20" />
|
||||
<Button Style="{StaticResource AduButton}" Content="设定" FontWeight="Light" Background="Transparent" Click="Button_Click" />
|
||||
</StackPanel>
|
||||
</UniformGrid>
|
||||
</StackPanel>
|
||||
</ScrollViewer>
|
||||
</Page>
|
||||
@@ -0,0 +1,81 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace HH_WCS_Standard.Page.HandView
|
||||
{
|
||||
/// <summary>
|
||||
/// WeightWarningSet.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class WeightWarningSet
|
||||
{
|
||||
|
||||
BaseDal<T_BaseNumber> baseDal = new BaseDal<T_BaseNumber>();
|
||||
public WeightWarningSet()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void DMSkinWindow_Loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
string initWeight = baseDal.Query(a => a.Value == "InitWeight").Data[0].VKey;
|
||||
string setWeight = baseDal.Query(a => a.Value == "SetWeight").Data[0].VKey;
|
||||
if (!string.IsNullOrWhiteSpace(initWeight) && !string.IsNullOrWhiteSpace(setWeight))
|
||||
{
|
||||
if (int.Parse(initWeight) == int.Parse(setWeight))
|
||||
{
|
||||
this.weight.Text = initWeight;
|
||||
App.weight = initWeight;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.weight.Text = setWeight;
|
||||
App.weight = setWeight;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show("称重值初始化失败,请检查数据表配置信息","提示信息");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void Button_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
string weight = this.weight.Text.Trim().ToString();
|
||||
if (!string.IsNullOrWhiteSpace(weight) && int.Parse(weight) > 0 && int.Parse(weight) <= 150)
|
||||
{
|
||||
Dictionary<string, object> values = new Dictionary<string, object>();
|
||||
values.Add("Vkey", weight);
|
||||
var updateResult=baseDal.Update(values, a=>a.Value== "SetWeight");
|
||||
if (updateResult.Success)
|
||||
{
|
||||
this.weight.Text = weight;
|
||||
App.weight = weight;
|
||||
MessageBox.Show("设定成功");
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show("修改称重数值更新数据失败","提示");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show("输入的值不合理,请输入0-150之间的整数","提示");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
<Page x:Class="HH_WCS_Standard.PointStateView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:attached="clr-namespace:DMSkin.Attached;assembly=DMSkin"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:dmskin="clr-namespace:DMSkin;assembly=DMSkin"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
|
||||
Title="PointStateView" Loaded="Page_Loaded">
|
||||
|
||||
<ScrollViewer Style="{StaticResource DMScrollViewer}" HorizontalScrollBarVisibility="Disabled" Padding="10">
|
||||
<StackPanel>
|
||||
<TextBlock Text="输送线状态实时参数" FontSize="24" Margin="10,20" Foreground="#fff"></TextBlock>
|
||||
<Border Margin="6,6,6,6" Background="#20ffffff" CornerRadius="4">
|
||||
<GroupBox Style="{StaticResource AduGroupBox}" Header="站台请求信息" FontWeight="Bold" Margin="0,10" FontSize="18" Foreground="#fff" BorderThickness="3,0,0,0" BorderBrush="#4ABDA7">
|
||||
<DataGrid Margin="2" FontSize="12" Style="{StaticResource AduDataGrid}" Height="auto" x:Name="AduDataGrids1" GridLinesVisibility="None" BorderThickness="8" ItemsSource="{Binding CodeList}">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Width="*" Header="名称" Binding="{Binding Name}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridCheckBoxColumn Width="*" Header="输送线状态" Binding="{Binding AutoModeEnabled}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridCheckBoxColumn Width="*" Header="是否有货" Binding="{Binding Occupied}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Width="*" Header="输送线目的地" Binding="{Binding Destination}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Width="*" Header="输送线当前编号" Binding="{Binding CurrentLocation}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Width="*" Header="输送线条码" Binding="{Binding PalletID}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Width="*" Header="更新时间" Binding="{Binding LatTime,StringFormat={}{0:HH:mm:ss}}" IsReadOnly="True" CanUserSort="False" />
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
</GroupBox>
|
||||
</Border>
|
||||
<Border Margin="6,6,6,6" Background="#20ffffff" CornerRadius="4">
|
||||
<GroupBox Style="{StaticResource AduGroupBox}" Header="输送线异常日志" FontWeight="Bold" Margin="0,10" FontSize="18" Foreground="#fff" BorderThickness="3,0,0,0" BorderBrush="#4ABDA7">
|
||||
<ListBox ItemsSource="{Binding CodeList}" Background="#20ffffff" Height="auto" Margin="0,10" Foreground="White" MinHeight="50" Name="ErrList" FontSize="12" />
|
||||
</GroupBox>
|
||||
</Border>
|
||||
</StackPanel>
|
||||
</ScrollViewer>
|
||||
</Page>
|
||||
@@ -0,0 +1,22 @@
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
|
||||
namespace HH_WCS_Standard
|
||||
{
|
||||
/// <summary>
|
||||
/// PointStateView.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class PointStateView
|
||||
{
|
||||
public PointStateView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void Page_Loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
AduDataGrids1.ItemsSource = App.vM_PointStateReads;
|
||||
ErrList.ItemsSource = App.ConveryErrMsgs;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,126 @@
|
||||
<Page x:Class="WCS_YongFeng.SrmView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
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:viewmodel="clr-namespace:WCS_YongFeng"
|
||||
mc:Ignorable="d"
|
||||
Background="#CCD5F0"
|
||||
Title="SrmView" Loaded="Page_Loaded">
|
||||
|
||||
<Page.Resources>
|
||||
<viewmodel:SrmForkStateConverter x:Key="SrmForkStateConverter"></viewmodel:SrmForkStateConverter>
|
||||
<viewmodel:SrmModeConverter x:Key="SrmModeConverter"></viewmodel:SrmModeConverter>
|
||||
<viewmodel:SrmTaskTypeConverter x:Key="SrmTaskTypeConverter"></viewmodel:SrmTaskTypeConverter>
|
||||
<viewmodel:SrmLimitConverter x:Key="SrmLimitConverter"></viewmodel:SrmLimitConverter>
|
||||
<viewmodel:TimeConverter x:Key="TimeConverter"></viewmodel:TimeConverter>
|
||||
<!--<viewmodel:StationOccpyByTypeConverter x:Key="StationOccpyByTypeConverter" ></viewmodel:StationOccpyByTypeConverter>-->
|
||||
</Page.Resources>
|
||||
|
||||
<ScrollViewer Style="{StaticResource DMScrollViewer}" HorizontalScrollBarVisibility="Disabled" Padding="10">
|
||||
<StackPanel>
|
||||
<StackPanel Orientation="Horizontal" Background="#E9EEFF">
|
||||
<TextBlock Text="堆垛机状态实时参数" FontSize="24" Margin="10,20" ></TextBlock>
|
||||
</StackPanel>
|
||||
<Border Margin="6,6,6,6" Background="#20ffffff" CornerRadius="4">
|
||||
<GroupBox Style="{StaticResource AduGroupBox}" Header="堆垛机状态信息" FontWeight="Bold" Margin="0,10" FontSize="20" BorderThickness="3,0,0,0" BorderBrush="#4ABDA7">
|
||||
<DataGrid Margin="2" FontSize="13" Style="{StaticResource AduDataGridToolTap}" Height="auto" Name="AduDataGrids1" GridLinesVisibility="None" BorderThickness="8">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="名称" Binding="{Binding read.Name}" IsReadOnly="True" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="操作模式" Binding="{Binding read.SRM_Mode,Converter={StaticResource SrmModeConverter}}" IsReadOnly="True" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="当前层" Binding="{Binding read.AxisZ_NO}" IsReadOnly="True" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="当前列" Binding="{Binding read.AxisY_NO}" IsReadOnly="True" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="条码" Binding="{Binding read.Fork1_Code}" IsReadOnly="True" />
|
||||
<!--<DataGridTextColumn Width="*" Header="站台占用" Binding="{Binding read.Status_Port_OutStation,Converter={StaticResource SrmLimitConverter}}" IsReadOnly="True" />-->
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="货叉状态" Binding="{Binding read.Fork1_State,Converter={StaticResource SrmForkStateConverter}}" IsReadOnly="True" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="货叉任务类型" Binding="{Binding read.Fork1_Task_Type,Converter={StaticResource SrmTaskTypeConverter}}" IsReadOnly="True" />
|
||||
<DataGridCheckBoxColumn Width="*" Header="货叉装载" Binding="{Binding read.Fork1_Goods}" IsReadOnly="True" />
|
||||
<DataGridCheckBoxColumn Width="*" Header="Srm故障" Binding="{Binding read.SRM_Err}" IsReadOnly="True" />
|
||||
<DataGridCheckBoxColumn Width="*" Header="货叉故障" Binding="{Binding read.Fork1Error}" IsReadOnly="True" />
|
||||
<DataGridCheckBoxColumn Width="*" Header="满入故障" Binding="{Binding read.Fork1_FullIn}" IsReadOnly="True" />
|
||||
<DataGridCheckBoxColumn Width="*" Header="空出故障" Binding="{Binding read.Fork1_EmptyOut}" IsReadOnly="True" />
|
||||
<!--<DataGridCheckBoxColumn Width="*" Header="取货错故障" Binding="{Binding read.Fork1_PickError}" IsReadOnly="True" />
|
||||
<DataGridCheckBoxColumn Width="*" Header="放货错故障" Binding="{Binding read.Fork1_Allow}" IsReadOnly="True" />-->
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="更新时间" Binding="{Binding read.LatTime, StringFormat={}{0:HH:mm:ss}}" IsReadOnly="True" />
|
||||
</DataGrid.Columns>
|
||||
<DataGrid.Resources>
|
||||
<Style TargetType="ToolTip">
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate>
|
||||
<Border Background="#5D6B99" BorderThickness="2" BorderBrush="Black" CornerRadius="5" Padding="5">
|
||||
<StackPanel Height="Auto" Width="400">
|
||||
<TextBlock TextWrapping="Wrap" Text="{Binding write.Name,StringFormat=设备名称: {0}}" LineHeight="26" Foreground="White" />
|
||||
<TextBlock TextWrapping="Wrap" Text="{Binding write.Fork1_TaskNo,StringFormat=任务号: {0}}" LineHeight="26" Foreground="White" />
|
||||
<TextBlock TextWrapping="Wrap" Text="{Binding write.Fork1TaskType_1,StringFormat=货叉任务类型:{0},Converter={StaticResource SrmTaskTypeConverter}}" LineHeight="26" Foreground="White" />
|
||||
<TextBlock TextWrapping="Wrap" Text="{Binding write.Fork1_Code,StringFormat=条码:{0}}" LineHeight="26" Foreground="White" />
|
||||
<TextBlock TextWrapping="Wrap" Text="{Binding write.Fork1_Pick_AxisX_NO,StringFormat=取货(排):{0}}" LineHeight="26" Foreground="White" />
|
||||
<TextBlock TextWrapping="Wrap" Text="{Binding write.Fork1_Pick_AxisY_NO,StringFormat=取货(列):{0}}" LineHeight="26" Foreground="White" />
|
||||
<TextBlock TextWrapping="Wrap" Text="{Binding write.Fork1_Pick_AxisZ_NO,StringFormat=取货(层):{0}}" LineHeight="26" Foreground="White" />
|
||||
<TextBlock TextWrapping="Wrap" Text="{Binding write.Fork1_Release_AxisX_NO,StringFormat=放货(排):{0}}" LineHeight="26" Foreground="White" />
|
||||
<TextBlock TextWrapping="Wrap" Text="{Binding write.Fork1_Release_AxisY_NO,StringFormat=放货(列):{0}}" LineHeight="26" Foreground="White" />
|
||||
<TextBlock TextWrapping="Wrap" Text="{Binding write.Fork1_Release_AxisZ_NO,StringFormat=放货(层):{0}}" LineHeight="26" Foreground="White" />
|
||||
<TextBlock TextWrapping="Wrap" Text="{Binding write.Fork1_Size,StringFormat=货物大小:{0}}" LineHeight="26" Foreground="White" />
|
||||
|
||||
<!-- <TextBlock TextWrapping="Wrap" Text="{Binding write.IsFinish,StringFormat=任务完成:{0}}" LineHeight="26" Foreground="White" />-->
|
||||
<TextBlock TextWrapping="Wrap" Text="{Binding write.SRM_Heart,StringFormat=心跳:{0}}" LineHeight="26" Foreground="White" />
|
||||
<TextBlock TextWrapping="Wrap" Text="{Binding read.SrmErrMsg,StringFormat=堆垛机报错:{0}}" LineHeight="26" Foreground="White" />
|
||||
|
||||
<TextBlock TextWrapping="Wrap" Text="{Binding write.LatTime,StringFormat=更新时间:{0:HH:mm:ss}}" LineHeight="26" Foreground="White" />
|
||||
|
||||
</StackPanel>
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
</DataGrid.Resources>
|
||||
</DataGrid>
|
||||
</GroupBox>
|
||||
</Border>
|
||||
<!--<Border Margin="6,6,6,6" Background="#20ffffff" CornerRadius="4">
|
||||
<GroupBox Style="{StaticResource AduGroupBox}" Header="堆垛机运行情况" FontWeight="Bold" Margin="0,10" FontSize="18" BorderThickness="3,0,0,0" BorderBrush="#4ABDA7">
|
||||
<DataGrid Margin="2" FontSize="12" Style="{StaticResource AduDataGridToolTap}" Height="auto" Name="AduDataGrids2" GridLinesVisibility="None" BorderThickness="8">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Width="*" Header="名称" Binding="{Binding read.Name}" IsReadOnly="True" />
|
||||
<DataGridTextColumn Width="*" Header="堆垛机故障数" Binding="{Binding read.alarmNumberForStocker}" IsReadOnly="True" />
|
||||
<DataGridTextColumn Width="*" Header="运行时间" Binding="{Binding read.runTime, Converter= {StaticResource TimeConverter}}" IsReadOnly="True" />
|
||||
<DataGridTextColumn Width="*" Header="待机时间" Binding="{Binding read.standbyTime, Converter= {StaticResource TimeConverter}}" IsReadOnly="True" />
|
||||
<DataGridTextColumn Width="*" Header="故障时间" Binding="{Binding read.faultTime, Converter= {StaticResource TimeConverter}}" IsReadOnly="True" />
|
||||
<DataGridTextColumn Width="*" Header="更新时间" Binding="{Binding read.LatTime, StringFormat={}{0:HH:mm:ss}}" IsReadOnly="True" />
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
</GroupBox>
|
||||
</Border>-->
|
||||
<!--<Border Margin="6,6,6,6" Background="#20ffffff" CornerRadius="4">
|
||||
<GroupBox Style="{StaticResource AduGroupBox}" Header="输送线运行情况" FontWeight="Bold" Margin="0,10" FontSize="18" BorderThickness="3,0,0,0" BorderBrush="#4ABDA7">
|
||||
<DataGrid Margin="2" FontSize="12" Style="{StaticResource AduDataGridToolTap}" Height="auto" Name="AduDataGrids3" GridLinesVisibility="None" BorderThickness="8">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Width="*" Header="名称" Binding="{Binding read.Name}" IsReadOnly="True" />
|
||||
<DataGridTextColumn Width="*" Header="输送线故障数" Binding="{Binding read.alarmNumberForStocker}" IsReadOnly="True" />
|
||||
<DataGridTextColumn Width="*" Header="运行时间" Binding="{Binding read.runTime,Converter= {StaticResource TimeConverter}}" IsReadOnly="True" />
|
||||
<DataGridTextColumn Width="*" Header="待机时间" Binding="{Binding read.standbyTime,Converter= {StaticResource TimeConverter}}" IsReadOnly="True" />
|
||||
<DataGridTextColumn Width="*" Header="故障时间" Binding="{Binding read.faultTime,Converter= {StaticResource TimeConverter}}" IsReadOnly="True" />
|
||||
<DataGridTextColumn Width="*" Header="更新时间" Binding="{Binding read.LatTime, StringFormat={}{0:HH:mm:ss}}" IsReadOnly="True" />
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
</GroupBox>
|
||||
</Border>-->
|
||||
<!--<Border Margin="6,6,6,6" Background="#20ffffff" CornerRadius="4">
|
||||
<GroupBox Style="{StaticResource AduGroupBox}" Header="输送线点状态" FontWeight="Bold" Margin="0,10" FontSize="18" BorderThickness="3,0,0,0" BorderBrush="#4ABDA7">
|
||||
<DataGrid Margin="2" FontSize="12" Style="{StaticResource AduDataGridToolTap}" Height="auto" Name="AduDataGrids4" GridLinesVisibility="None" BorderThickness="8">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Width="*" Header="名称" Binding="{Binding read.Name}" IsReadOnly="True" />
|
||||
<DataGridTextColumn Width="*" Header="托盘号" Binding="{Binding read.PalletNo}" IsReadOnly="True" />
|
||||
<DataGridTextColumn Width="*" Header="目的地" Binding="{Binding read.Destination}" IsReadOnly="True" />
|
||||
<DataGridTextColumn Width="*" Header="控制模式" Binding="{Binding read.Mode}" IsReadOnly="True" />
|
||||
<DataGridCheckBoxColumn Width="*" Header="占用" Binding="{Binding read.Occupy}" IsReadOnly="True" />
|
||||
<DataGridCheckBoxColumn Width="*" Header="故障状态" Binding="{Binding read.FaultState}" IsReadOnly="True" />
|
||||
<DataGridTextColumn Width="*" Header="更新时间" Binding="{Binding read.LatTime, StringFormat={}{0:HH:mm:ss}}" IsReadOnly="True" />
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
</GroupBox>
|
||||
</Border>-->
|
||||
</StackPanel>
|
||||
</ScrollViewer>
|
||||
</Page>
|
||||
@@ -0,0 +1,110 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Windows;
|
||||
|
||||
namespace WCS_YongFeng
|
||||
{
|
||||
/// <summary>
|
||||
/// SrmView.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class SrmView
|
||||
{
|
||||
public SrmView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void Page_Loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
List<Model> list = new List<Model>();
|
||||
foreach (var mo in App.vM_SrmReads)
|
||||
{
|
||||
var wr = App.vM_SrmWrites.FirstOrDefault(a => a.Name == mo.Name);
|
||||
Model model = new Model()
|
||||
{
|
||||
read = mo,
|
||||
write = wr
|
||||
};
|
||||
list.Add(model);
|
||||
}
|
||||
|
||||
AduDataGrids1.ItemsSource = list;
|
||||
|
||||
//List<Model1> list1 = new List<Model1>();
|
||||
//foreach (var mo in App.vM_SrmStateReads)
|
||||
//{
|
||||
// Model1 model1 = new Model1()
|
||||
// {
|
||||
// read = mo,
|
||||
// };
|
||||
// list1.Add(model1);
|
||||
//}
|
||||
|
||||
//AduDataGrids2.ItemsSource = list1;
|
||||
|
||||
//List<Model2> list2 = new List<Model2>();
|
||||
//foreach (var mo in App.vM_ConveyorStateReads)
|
||||
//{
|
||||
// Model2 model2 = new Model2()
|
||||
// {
|
||||
// read = mo,
|
||||
// };
|
||||
// list2.Add(model2);
|
||||
//}
|
||||
//AduDataGrids3.ItemsSource = list2;
|
||||
|
||||
//List<Model3> list3 = new List<Model3>();
|
||||
//foreach (var mo in App.vM_PointStateReads)
|
||||
//{
|
||||
// Model3 model2 = new Model3()
|
||||
// {
|
||||
// read = mo,
|
||||
// };
|
||||
// list3.Add(model2);
|
||||
//}
|
||||
//AduDataGrids4.ItemsSource = list3;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//AduDataGrids2.ItemsSource = App.vM_SrmWrites;
|
||||
|
||||
//DataGridRow rowContainer = (DataGridRow)AduDataGrids1.ItemContainerGenerator.ContainerFromIndex(1);
|
||||
//if (rowContainer == null)
|
||||
//{
|
||||
// AduDataGrids1.UpdateLayout();
|
||||
// AduDataGrids1.ScrollIntoView(AduDataGrids1.Items[1]);
|
||||
// rowContainer = (DataGridRow)AduDataGrids1.ItemContainerGenerator.ContainerFromIndex(1);
|
||||
//}
|
||||
|
||||
//ToolTip tt = new ToolTip();
|
||||
//rowContainer.ToolTip = tt;
|
||||
}
|
||||
}
|
||||
|
||||
public class Model
|
||||
{
|
||||
public VM_SrmRead read { get; set; }
|
||||
public VM_SrmWrite write { get; set; }
|
||||
}
|
||||
//public class Model1
|
||||
//{
|
||||
// public VM_SrmStateRead read { get; set; }
|
||||
// public VM_SrmStateWrite write { get; set; }
|
||||
//}
|
||||
//public class Model2
|
||||
//{
|
||||
// public VM_ConveyorStateRead read { get; set; }
|
||||
// public VM_ConveyorStateWrite write { get; set; }
|
||||
//}
|
||||
//public class Model3
|
||||
//{
|
||||
// public VM_PointStateRead read { get; set; }
|
||||
// public VM_PointStateWrite write { get; set; }
|
||||
//}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
<Page x:Class="WCS_YongFeng.StationStateView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
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"
|
||||
mc:Ignorable="d"
|
||||
Background="#CCD5F0"
|
||||
Title="StationView" Loaded="Page_Loaded">
|
||||
|
||||
<ScrollViewer Style="{StaticResource DMScrollViewer}" HorizontalScrollBarVisibility="Disabled" Padding="10">
|
||||
<StackPanel>
|
||||
<StackPanel Orientation="Horizontal" Background="#E9EEFF">
|
||||
<TextBlock Text="输送线站台监控" FontSize="24" Margin="10,20" ></TextBlock>
|
||||
</StackPanel>
|
||||
<UniformGrid Columns="1">
|
||||
<Border Margin="6,6,6,6" Background="#20ffffff" CornerRadius="4">
|
||||
<GroupBox Style="{StaticResource AduGroupBox}" Header="站台状态" FontWeight="Bold" Margin="0,10" FontSize="20" BorderThickness="3,0,0,0" BorderBrush="#4ABDA7">
|
||||
<DataGrid Margin="2" FontSize="13" Style="{StaticResource AduDataGrid}" Height="auto" x:Name="AduDataGrids1" GridLinesVisibility="None" BorderThickness="8" ItemsSource="{Binding CodeList}">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="名称" Binding="{Binding Name}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="托盘号" Binding="{Binding PalletID}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridCheckBoxColumn Width="*" Header="状态" Binding="{Binding State}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridCheckBoxColumn Width="*" Header="占用" Binding="{Binding Occupied}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridCheckBoxColumn Width="*" Header="是否报错" Binding="{Binding IsErr}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="目的地" Binding="{Binding Destination}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="更新时间" Binding="{Binding LatTime,StringFormat={}{0:HH:mm:ss}}" IsReadOnly="True" CanUserSort="False" />
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
</GroupBox>
|
||||
</Border>
|
||||
</UniformGrid>
|
||||
</StackPanel>
|
||||
</ScrollViewer>
|
||||
</Page>
|
||||
@@ -0,0 +1,20 @@
|
||||
using System.Windows;
|
||||
|
||||
namespace WCS_YongFeng
|
||||
{
|
||||
/// <summary>
|
||||
/// StationView.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class StationStateView
|
||||
{
|
||||
public StationStateView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void Page_Loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
AduDataGrids1.ItemsSource = App.vM_StationStstes;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
<Page x:Class="WCS_YongFeng.StationView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
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"
|
||||
mc:Ignorable="d"
|
||||
Background="#CCD5F0"
|
||||
Title="StationView" Loaded="Page_Loaded">
|
||||
|
||||
<ScrollViewer Style="{StaticResource DMScrollViewer}" HorizontalScrollBarVisibility="Disabled" Padding="10">
|
||||
<StackPanel>
|
||||
<StackPanel Orientation="Horizontal" Background="#E9EEFF">
|
||||
<TextBlock Text="输送线站台监控" FontSize="24" Margin="10,20" ></TextBlock>
|
||||
</StackPanel>
|
||||
<UniformGrid Columns="2">
|
||||
<Border Margin="6,6,6,6" Background="#20ffffff" CornerRadius="4">
|
||||
<GroupBox Style="{StaticResource AduGroupBox}" Header="地址请求" FontWeight="Bold" Margin="0,10" FontSize="20" BorderThickness="3,0,0,0" BorderBrush="#4ABDA7">
|
||||
<DataGrid Margin="2" FontSize="13" Style="{StaticResource AduDataGrid}" Height="auto" x:Name="AduDataGrids1" GridLinesVisibility="None" BorderThickness="8" ItemsSource="{Binding CodeList}">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="名称" Binding="{Binding Name}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="报文名称" Binding="{Binding MessageID}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="装载状态" Binding="{Binding LoadingStatus}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="读码器编号" Binding="{Binding ScannerNr}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="条码" Binding="{Binding PalletID}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="重量" Binding="{Binding Weight}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="长度" Binding="{Binding Length}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="宽度" Binding="{Binding Width}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="高度" Binding="{Binding Height}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="更新时间" Binding="{Binding LatTime,StringFormat={}{0:HH:mm:ss}}" IsReadOnly="True" CanUserSort="False" />
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
</GroupBox>
|
||||
</Border>
|
||||
<Border Margin="6,6,6,6" Background="#20ffffff" CornerRadius="4">
|
||||
<GroupBox Style="{StaticResource AduGroupBox}" Header="地址回复" FontWeight="Bold" Margin="0,10" FontSize="20" BorderThickness="3,0,0,0" BorderBrush="#4ABDA7">
|
||||
<DataGrid Margin="2" FontSize="13" Style="{StaticResource AduDataGrid}" Height="auto" x:Name="AduDataGrids2" GridLinesVisibility="None" BorderThickness="8" ItemsSource="{Binding CodeList1}">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="名称" Binding="{Binding Name}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="报文名称" Binding="{Binding MessageID}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="装载状态" Binding="{Binding LoadingStatus}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="读码器编号" Binding="{Binding ScannerNr}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="条码" Binding="{Binding PalletID}" IsReadOnly="True" CanUserSort="False" />
|
||||
<!--<DataGridTextColumn Width="*" Header="重量" Binding="{Binding Weight}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Width="*" Header="高度" Binding="{Binding Height}" IsReadOnly="True" CanUserSort="False" />-->
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="目的地" Binding="{Binding DeStation}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="更新时间" Binding="{Binding LatTime,StringFormat={}{0:HH:mm:ss}}" IsReadOnly="True" CanUserSort="False" />
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
</GroupBox>
|
||||
</Border>
|
||||
</UniformGrid>
|
||||
<UniformGrid Columns="2">
|
||||
<Border Margin="6,6,6,6" Background="#20ffffff" CornerRadius="4">
|
||||
<GroupBox Style="{StaticResource AduGroupBox}" Header="地址到达" FontWeight="Bold" Margin="0,10" FontSize="20" BorderThickness="3,0,0,0" BorderBrush="#4ABDA7">
|
||||
<DataGrid Margin="2" FontSize="13" Style="{StaticResource AduDataGrid}" Height="auto" x:Name="AduDataGrids3" GridLinesVisibility="None" BorderThickness="8" ItemsSource="{Binding CodeList}">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="名称" Binding="{Binding Name}" IsReadOnly="True" CanUserSort="False" />
|
||||
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="报文名称" Binding="{Binding MessageID}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="分拣结果" Binding="{Binding SortResualt}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="读码器编号" Binding="{Binding ScannerNr}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="实际地址" Binding="{Binding ActualDes}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="条码" Binding="{Binding PalletID}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="更新时间" Binding="{Binding LatTime,StringFormat={}{0:HH:mm:ss}}" IsReadOnly="True" CanUserSort="False" />
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
</GroupBox>
|
||||
</Border>
|
||||
|
||||
<Border Margin="6,6,6,6" Background="#20ffffff" CornerRadius="4">
|
||||
<GroupBox Style="{StaticResource AduGroupBox}" Header="到达ACK" FontWeight="Bold" Margin="0,10" FontSize="20" BorderThickness="3,0,0,0" BorderBrush="#4ABDA7">
|
||||
<DataGrid Margin="2" FontSize="13" Style="{StaticResource AduDataGrid}" Height="auto" x:Name="AduDataGrids4" GridLinesVisibility="None" BorderThickness="8" ItemsSource="{Binding CodeList1}">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="名称" Binding="{Binding Name}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="报文名称" Binding="{Binding MessageID}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="装载状态" Binding="{Binding LoadingStatus}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="读码器编号" Binding="{Binding ScannerNr}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="更新时间" Binding="{Binding LatTime,StringFormat={}{0:HH:mm:ss}}" IsReadOnly="True" CanUserSort="False" />
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
</GroupBox>
|
||||
</Border>
|
||||
</UniformGrid>
|
||||
</StackPanel>
|
||||
</ScrollViewer>
|
||||
</Page>
|
||||
@@ -0,0 +1,23 @@
|
||||
using System.Windows;
|
||||
|
||||
namespace WCS_YongFeng
|
||||
{
|
||||
/// <summary>
|
||||
/// StationView.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class StationView
|
||||
{
|
||||
public StationView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void Page_Loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
AduDataGrids1.ItemsSource = App.vM_StationDRs;
|
||||
AduDataGrids2.ItemsSource = App.vM_StationDACKs;
|
||||
AduDataGrids3.ItemsSource = App.vM_StationPRs;
|
||||
AduDataGrids4.ItemsSource = App.vM_StationACKs;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
<Page x:Class="WCS_YongFeng.TaskFlowView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
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:viewmodel="clr-namespace:WCS_YongFeng"
|
||||
mc:Ignorable="d" Width="Auto"
|
||||
Background="#CCD5F0"
|
||||
Title="TaskFlowView" Loaded="Page_Loaded">
|
||||
|
||||
<Page.Resources>
|
||||
<viewmodel:TaskStateConverter x:Key="TaskStateConverter"></viewmodel:TaskStateConverter>
|
||||
<viewmodel:TaskTypeConverter x:Key="TaskTypeConverter"></viewmodel:TaskTypeConverter>
|
||||
<viewmodel:DeviceConverter x:Key="DeviceConverter"></viewmodel:DeviceConverter>
|
||||
<viewmodel:PoseTypeByNameConverter x:Key="PoseTypeConverter"></viewmodel:PoseTypeByNameConverter>
|
||||
<viewmodel:PoseTypeByTypeConverter x:Key="PoseTypeByTypeConverter"></viewmodel:PoseTypeByTypeConverter>
|
||||
</Page.Resources>
|
||||
<ScrollViewer Style="{StaticResource DMScrollViewer}" HorizontalScrollBarVisibility="Disabled" Padding="10">
|
||||
<StackPanel>
|
||||
<StackPanel Orientation="Horizontal" Background="#E9EEFF">
|
||||
<TextBlock Text="流程列表" FontSize="24" Margin="10,20" ></TextBlock>
|
||||
</StackPanel>
|
||||
<Border Margin="6,6,6,6" Background="#20ffffff" CornerRadius="4">
|
||||
<GroupBox Style="{StaticResource AduGroupBox}" Header="流程信息" FontWeight="Bold" Margin="0,10" FontSize="20" BorderThickness="3,0,0,0" BorderBrush="#4ABDA7">
|
||||
<DataGrid Margin="2" FontSize="13" Foreground ="Black" Style="{StaticResource AduDataGrid}" Height="auto" x:Name="AduDataGrids2" GridLinesVisibility="None" BorderThickness="8" ItemsSource="{Binding CodeList}">
|
||||
<DataGrid.Columns>
|
||||
<!--<DataGridTextColumn Foreground ="Black" Width="*" Header="序号" Binding="{Binding Id}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="流程类别" Binding="{Binding Menu}" IsReadOnly="True" CanUserSort="False" />-->
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="任务类型" Binding="{Binding TaskType ,Converter={StaticResource TaskTypeConverter}}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="起点类型" Binding="{Binding EntranceType ,Converter={StaticResource PoseTypeByTypeConverter}}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="终点类型" Binding="{Binding ExitType ,Converter={StaticResource PoseTypeByTypeConverter}}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="当前任务状态" Binding="{Binding NowState,Converter={StaticResource TaskStateConverter}}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="下一任务状态" Binding="{Binding NextState,Converter={StaticResource TaskStateConverter}}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="动作起点" Binding="{Binding FromPlace,Converter={StaticResource PoseTypeConverter}}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="动作终点" Binding="{Binding ToPlace,Converter={StaticResource PoseTypeConverter}}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="备注" Binding="{Binding Remark}" IsReadOnly="True" CanUserSort="False" />
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
</GroupBox>
|
||||
</Border>
|
||||
</StackPanel>
|
||||
</ScrollViewer>
|
||||
</Page>
|
||||
@@ -0,0 +1,20 @@
|
||||
using System.Windows;
|
||||
|
||||
namespace WCS_YongFeng
|
||||
{
|
||||
/// <summary>
|
||||
/// TaskFlowView.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class TaskFlowView
|
||||
{
|
||||
public TaskFlowView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void Page_Loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
AduDataGrids2.ItemsSource = App.taskflowList;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
<Page x:Class="WCS_YongFeng.TaskView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
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:viewmodel="clr-namespace:WCS_YongFeng"
|
||||
mc:Ignorable="d"
|
||||
Background="#CCD5F0"
|
||||
Title="TaskView" Loaded="Page_Loaded">
|
||||
|
||||
<Page.Resources>
|
||||
<viewmodel:TaskStateConverter x:Key="TaskStateConverter"></viewmodel:TaskStateConverter>
|
||||
<viewmodel:TaskTypeConverter x:Key="TaskTypeConverter"></viewmodel:TaskTypeConverter>
|
||||
<viewmodel:DeviceConverter x:Key="DeviceConverter"></viewmodel:DeviceConverter>
|
||||
<viewmodel:PoseTypeByNameConverter x:Key="PoseTypeConverter"></viewmodel:PoseTypeByNameConverter>
|
||||
</Page.Resources>
|
||||
<ScrollViewer Style="{StaticResource DMScrollViewer}" HorizontalScrollBarVisibility="Disabled" Padding="10">
|
||||
<StackPanel>
|
||||
<StackPanel Orientation="Horizontal" Background="#E9EEFF">
|
||||
<TextBlock Text="任务列表" FontSize="24" Margin="10,20" ></TextBlock>
|
||||
</StackPanel>
|
||||
<Border Margin="6,6,6,6" Background="#20ffffff" CornerRadius="4">
|
||||
<GroupBox Style="{StaticResource AduGroupBox}" Header="任务信息" FontWeight="Bold" Margin="0,10" FontSize="20" BorderThickness="3,0,0,0" BorderBrush="#4ABDA7">
|
||||
<DataGrid Margin="2" Foreground ="Black" FontSize="13" Style="{StaticResource AduDataGrid}" Height="auto" x:Name="AduDataGrids1" GridLinesVisibility="None" BorderThickness="8" ItemsSource="{Binding CodeList}">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="任务号" Binding="{Binding tNo}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="WMS任务号" Binding="{Binding tNo_WMS}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="任务类型" Binding="{Binding Type ,Converter={StaticResource TaskTypeConverter}}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="当前状态" Binding="{Binding NowState,Converter={StaticResource TaskStateConverter}}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="下一状态" Binding="{Binding NextState,Converter={StaticResource TaskStateConverter}}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="条码" Binding="{Binding PalletOrBoxNo}" IsReadOnly="True" CanUserSort="False" />
|
||||
<!--<DataGridTextColumn Width="*" Header="优先级" Binding="{Binding Priority}" IsReadOnly="True" CanUserSort="False" />-->
|
||||
<!--<DataGridTextColumn Width="*" Header="巷道" Binding="{Binding Roadway}" IsReadOnly="True" CanUserSort="False" />-->
|
||||
<!--<DataGridTextColumn Width="*" Header="货叉" Binding="{Binding ForkNo}" IsReadOnly="True" CanUserSort="False" />-->
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="动作起点" Binding="{Binding FromPlace,Converter={StaticResource PoseTypeConverter}}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="动作终点" Binding="{Binding ToPlace,Converter={StaticResource PoseTypeConverter}}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="起点" Binding="{Binding EntrancePlace,Converter={StaticResource PoseTypeConverter}}" IsReadOnly="True" CanUserSort="False" />
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="终点" Binding="{Binding ExitPlace,Converter={StaticResource PoseTypeConverter}}" IsReadOnly="True" CanUserSort="False" />
|
||||
<!--<DataGridTextColumn Foreground ="Black" Width="*" Header="错误信息" Binding="{Binding ErrorMsg}" IsReadOnly="True" CanUserSort="False" />-->
|
||||
<DataGridTextColumn Foreground ="Black" Width="*" Header="创建时间" Binding="{Binding Task_CreateTime,StringFormat={}{0:HH:mm:ss}}" IsReadOnly="True" CanUserSort="False" />
|
||||
</DataGrid.Columns>
|
||||
<DataGrid.ContextMenu>
|
||||
<ContextMenu>
|
||||
<MenuItem Header="强制删除任务" Click="MItem_ClearTask"></MenuItem>
|
||||
<MenuItem Header="修改任务状态" Click="MItem_ChangeTask"></MenuItem>
|
||||
</ContextMenu>
|
||||
</DataGrid.ContextMenu>
|
||||
</DataGrid>
|
||||
</GroupBox>
|
||||
</Border>
|
||||
</StackPanel>
|
||||
</ScrollViewer>
|
||||
</Page>
|
||||
@@ -0,0 +1,79 @@
|
||||
using System;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
|
||||
using WCS_YongFeng.Page.HandView;
|
||||
|
||||
namespace WCS_YongFeng
|
||||
{
|
||||
/// <summary>
|
||||
/// TaskView.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class TaskView
|
||||
{
|
||||
public TaskView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void Page_Loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
AduDataGrids1.ItemsSource = App.taskList;
|
||||
}
|
||||
|
||||
private void MItem_ChangeTask(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (AduDataGrids1.SelectedItem == null)
|
||||
{
|
||||
MessageBox.Show("未选择任何行");
|
||||
return;
|
||||
}
|
||||
I_Task task = AduDataGrids1.SelectedItem as I_Task;
|
||||
MenuItem iten = e.OriginalSource as MenuItem;
|
||||
if (iten.Header == null || task == null) return;
|
||||
try
|
||||
{
|
||||
TaskStateChangexaml taskStateChangexaml = new TaskStateChangexaml(task);
|
||||
taskStateChangexaml.ShowDialog();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show($"{iten.Header}失败,请稍后重试:" + ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
private void MItem_ClearTask(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (AduDataGrids1.SelectedItem == null)
|
||||
{
|
||||
MessageBox.Show("未选择任何行");
|
||||
return;
|
||||
}
|
||||
I_Task task = AduDataGrids1.SelectedItem as I_Task;
|
||||
MenuItem iten = e.OriginalSource as MenuItem;
|
||||
if (iten.Header == null || task == null) return;
|
||||
try
|
||||
{
|
||||
if (MessageBox.Show("是否删除此任务!",
|
||||
"警告", MessageBoxButton.YesNo) == MessageBoxResult.Yes)
|
||||
{
|
||||
BaseBll baseBll = new BaseBll();
|
||||
var deleteResult = baseBll.TaskDelete(task);
|
||||
if (deleteResult.Success)
|
||||
{
|
||||
MessageBox.Show($"任务删除成功:{deleteResult.Msg}", "提示");
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show($"任务删除失败:{deleteResult.Msg}", "提示");
|
||||
}
|
||||
}
|
||||
else { return; }
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show($"{iten.Header}失败,请稍后重试:" + ex.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Windows;
|
||||
|
||||
//请将此类型的 ComVisible 特性设置为 true。
|
||||
[assembly: ComVisible(false)]
|
||||
[assembly: ThemeInfo(
|
||||
ResourceDictionaryLocation.None, //主题特定资源词典所处位置
|
||||
//(未在页面中找到资源时使用,
|
||||
//或应用程序资源字典中找到时使用)
|
||||
ResourceDictionaryLocation.SourceAssembly //常规资源词典所处位置
|
||||
//(未在页面中找到资源时使用,
|
||||
//、应用程序或任何主题专用资源字典中找到时使用)
|
||||
)]
|
||||
@@ -0,0 +1,63 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace WCS_YongFeng.Properties {
|
||||
using System;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 一个强类型的资源类,用于查找本地化的字符串等。
|
||||
/// </summary>
|
||||
// 此类是由 StronglyTypedResourceBuilder
|
||||
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
|
||||
// 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
|
||||
// (以 /str 作为命令选项),或重新生成 VS 项目。
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class Resources {
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal Resources() {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 返回此类使用的缓存的 ResourceManager 实例。
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Resources.ResourceManager ResourceManager {
|
||||
get {
|
||||
if (object.ReferenceEquals(resourceMan, null)) {
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("WCS_YongFeng.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 重写当前线程的 CurrentUICulture 属性,对
|
||||
/// 使用此强类型资源类的所有资源查找执行重写。
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture {
|
||||
get {
|
||||
return resourceCulture;
|
||||
}
|
||||
set {
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
@@ -0,0 +1,68 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<assemblyIdentity version="1.0.0.0" name="MyApplication.app" />
|
||||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
|
||||
<security>
|
||||
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
<!-- UAC 清单选项
|
||||
如果想要更改 Windows 用户帐户控制级别,请使用
|
||||
以下节点之一替换 requestedExecutionLevel 节点。n
|
||||
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
|
||||
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
|
||||
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
|
||||
|
||||
指定 requestedExecutionLevel 元素将禁用文件和注册表虚拟化。
|
||||
如果你的应用程序需要此虚拟化来实现向后兼容性,则删除此
|
||||
元素。
|
||||
-->
|
||||
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
|
||||
</requestedPrivileges>
|
||||
<applicationRequestMinimum>
|
||||
<defaultAssemblyRequest permissionSetReference="Custom" />
|
||||
<PermissionSet class="System.Security.PermissionSet" version="1" ID="Custom" SameSite="site" Unrestricted="true" />
|
||||
</applicationRequestMinimum>
|
||||
</security>
|
||||
</trustInfo>
|
||||
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
|
||||
<application>
|
||||
<!-- 设计此应用程序与其一起工作且已针对此应用程序进行测试的
|
||||
Windows 版本的列表。取消评论适当的元素,
|
||||
Windows 将自动选择最兼容的环境。 -->
|
||||
<!-- Windows Vista -->
|
||||
<!--<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}" />-->
|
||||
<!-- Windows 7 -->
|
||||
<!--<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}" />-->
|
||||
<!-- Windows 8 -->
|
||||
<!--<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}" />-->
|
||||
<!-- Windows 8.1 -->
|
||||
<!--<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}" />-->
|
||||
<!-- Windows 10 -->
|
||||
<!--<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />-->
|
||||
</application>
|
||||
</compatibility>
|
||||
<!-- 指示该应用程序可以感知 DPI 且 Windows 在 DPI 较高时将不会对其进行
|
||||
自动缩放。Windows Presentation Foundation (WPF)应用程序自动感知 DPI,无需
|
||||
选择加入。选择加入此设置的 Windows 窗体应用程序(目标设定为 .NET Framework 4.6 )还应
|
||||
在其 app.config 中将 "EnableWindowsFormsHighDpiAutoResizing" 设置设置为 "true"。-->
|
||||
<!--
|
||||
<application xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
<windowsSettings>
|
||||
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
|
||||
</windowsSettings>
|
||||
</application>
|
||||
-->
|
||||
<!-- 启用 Windows 公共控件和对话框的主题(Windows XP 和更高版本) -->
|
||||
<!--
|
||||
<dependency>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity
|
||||
type="win32"
|
||||
name="Microsoft.Windows.Common-Controls"
|
||||
version="6.0.0.0"
|
||||
processorArchitecture="*"
|
||||
publicKeyToken="6595b64144ccf1df"
|
||||
language="*" />
|
||||
</dependentAssembly>
|
||||
</dependency>
|
||||
-->
|
||||
</assembly>
|
||||
|
After Width: | Height: | Size: 47 KiB |
@@ -0,0 +1,88 @@
|
||||
<ResourceDictionary
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:System="clr-namespace:System;assembly=mscorlib">
|
||||
<DropShadowEffect
|
||||
x:Key="TextShadow-Black"
|
||||
BlurRadius="6"
|
||||
Opacity="0.2"
|
||||
ShadowDepth="0"
|
||||
Color="#000" />
|
||||
<SolidColorBrush x:Key="Brush" Color="#393D49" />
|
||||
<SolidColorBrush x:Key="NorForeground" Color="#fff" />
|
||||
<SolidColorBrush x:Key="SelectForeground" Color="#666" />
|
||||
<!-- 自带图标库 -->
|
||||
<Geometry x:Key="Icon_Logo">M511.99849 94.087763c16.046893 0 32.018268 0.046317 47.535533 2.400439 10.63483 1.611033 47.116665-18.060683 74.841531-40.729927 21.566693-17.632753 36.113312-39.809625 40.406714-39.304163 15.47699 1.821474-2.979404 103.849181 34.633175 121.519189 158.050363 74.234373 267.528089 234.896622 267.528089 421.058498 0 256.737191-208.206845 464.943029-464.94605 464.943029-256.736184 0-464.944036-208.205838-464.944036-464.943029C47.054454 302.294608 255.262306 94.087763 511.99849 94.087763L511.99849 94.087763zM657.999335 61.437165c-33.040267 36.066994-62.020731 55.043953-105.401814 67.906035-64.118094 19.014213-208.319617 21.857686-200.976329 115.198907C355.704153 296.454614 546.779679 527.863351 605.857254 605.257361c-85.60625-2.484011-167.003677 1.053213-232.442818 60.442926-76.093102 69.05591-99.872951 197.69385-1.708702 266.513139 141.420478 99.128856 384.529339-54.742891 345.348017-215.349761-10.057878-41.230354-38.715129-70.807908-60.352305-105.875055-51.208688-82.870515-102.425431-165.742037-153.640161-248.609531-14.983611-27.468107-18.446324-40.27481-20.856832-71.511728C615.092499 257.639802 700.769232 222.00678 657.999335 61.437165z</Geometry>
|
||||
<!-- 最大化 -->
|
||||
<Geometry x:Key="Icon_WindowMax2">M667.4432 323.4816H215.552c-62.3616 0-112.9472 50.5856-112.9472 112.9472v292.352c0 62.3616 50.5856 112.9472 112.9472 112.9472h451.8912c62.3616 0 112.9472-50.5856 112.9472-112.9472V436.4288c0-62.3616-50.5856-112.9472-112.9472-112.9472z m28.2624 405.2992c0 15.5648-12.6976 28.2624-28.2624 28.2624H215.552c-15.5648 0-28.2624-12.6976-28.2624-28.2624V436.4288c0-15.5648 12.6976-28.2624 28.2624-28.2624h451.8912c15.5648 0 28.2624 12.6976 28.2624 28.2624v292.352z M893.3376 752.5376c-15.5648 0-28.2624-12.5952-28.2624-28.2624V323.4816c0-46.6944-34.6112-84.6848-77.2096-84.6848h-532.48c-15.5648 0-28.2624-12.5952-28.2624-28.2624 0-15.5648 12.5952-28.2624 28.2624-28.2624h532.48c73.728 0 133.632 63.3856 133.632 141.2096v400.896c0.1024 15.5648-12.4928 28.16-28.16 28.16z</Geometry>
|
||||
<Geometry x:Key="Icon_WindowMax1">M785.066667 750.933333V307.2c0-37.546667-30.72-68.266667-68.266667-68.266667H170.666667V204.8c0-37.546667 30.72-68.266667 68.266666-68.266667h580.266667c37.546667 0 68.266667 30.72 68.266667 68.266667v477.866667c0 37.546667-30.72 68.266667-68.266667 68.266666h-34.133333z M170.666667 307.2h477.866666c37.546667 0 68.266667 30.72 68.266667 68.266667v409.6c0 37.546667-30.72 68.266667-68.266667 68.266666H170.666667c-37.546667 0-68.266667-30.72-68.266667-68.266666V375.466667c0-37.546667 30.72-68.266667 68.266667-68.266667z</Geometry>
|
||||
<Geometry x:Key="Icon_WindowMax">M255.488 768.512V403.456l365.568 365.056zM768.512 620.544L403.456 255.488h365.056z</Geometry>
|
||||
<Geometry x:Key="Icon_Min">M251.904 459.776h520.704c28.672 0 52.224 23.552 52.224 52.224s-23.552 52.224-52.224 52.224H251.904c-28.672 0-52.224-23.552-52.224-52.224s23.04-52.224 52.224-52.224z</Geometry>
|
||||
<!-- 搜索 -->
|
||||
|
||||
<!-- 插件 -->
|
||||
<Geometry x:Key="Icon_Plugin">M896 192h-160a160 160 0 1 0-320 0H256a64 64 0 0 0-64 64v160a160 160 0 1 0 0 320V896a64 64 0 0 0 64 64h224v-64a96 96 0 0 1 192 0v64H896a64 64 0 0 0 64-64v-224h-64a96 96 0 0 1 0-192h64V256a64 64 0 0 0-64-64z m-160 384a160 160 0 0 0 160 160V896h-160a160 160 0 1 0-320 0H256v-224H192a96 96 0 1 1 0-192h64V256h224V192a96 96 0 0 1 192 0v64H896v160A160 160 0 0 0 736 576z</Geometry>
|
||||
<!-- 下 -->
|
||||
<Geometry x:Key="Icon_Down">M970.246318 607.798742c-14.072765 0-25.475679 11.402914-25.475679 25.475679l0 298.167343c0 22.938301-18.648197 41.606878-41.576308 41.606878L120.826049 973.048643c-22.928111 0-41.586498-18.668577-41.586498-41.606878l0-298.167343c0-14.072765-11.402914-25.475679-25.475679-25.475679s-25.475679 11.402914-25.475679 25.475679l0 298.167343c0 51.04307 41.515166 92.558236 92.537855 92.558236l782.368283 0c51.012499 0 92.527665-41.515166 92.527665-92.558236l0-298.167343C995.721997 619.211846 984.319083 607.798742 970.246318 607.798742zM493.963219 727.921662c1.192262 1.192262 2.506807 2.26224 3.913064 3.199745 0.652177 0.438182 1.365496 0.7337 2.048245 1.11074 0.774461 0.417801 1.50816 0.886554 2.333572 1.222833 0.866173 0.35666 1.773107 0.570655 2.669851 0.825412 0.692938 0.213996 1.365496 0.478943 2.089006 0.621607 1.650824 0.326089 3.322029 0.509514 4.993233 0.509514s3.332219-0.183425 4.972852-0.499323c0.805031-0.173235 1.548921-0.458562 2.333572-0.692938 0.815222-0.234376 1.630443-0.427991 2.425285-0.74389 0.927315-0.38723 1.762917-0.906934 2.63928-1.396067 0.580845-0.315898 1.171881-0.580845 1.732346-0.947695 1.416448-0.947695 2.751373-2.007483 3.943635-3.209936l262.297588-262.277207c9.955895-9.955895 9.955895-26.097285 0-36.0328-9.955895-9.955895-26.097285-9.945705-36.02261-0.01019L537.475679 648.447735 537.475679 25.475679c0-14.072765-11.402914-25.475679-25.475679-25.475679-14.072765 0-25.475679 11.402914-25.475679 25.475679L486.524321 648.447735 267.667861 429.601465c-9.955895-9.935515-26.076905-9.945705-36.0328 0.01019-9.945705 9.945705-9.945705 26.087095 0 36.0328L493.963219 727.921662z</Geometry>
|
||||
<!-- 用户 -->
|
||||
<Geometry x:Key="Icon_User">M512 87.04c-136.704 0-247.808 111.104-247.808 247.808 0 98.816 58.368 184.32 142.336 223.744-155.136 45.568-268.8 188.928-268.8 358.912 0 10.752 8.704 19.456 19.456 19.456 10.752 0 19.456-8.704 19.456-19.456 0-184.832 150.528-335.36 335.36-335.36 136.704 0 247.808-111.104 247.808-247.808S648.704 87.04 512 87.04z m0 456.192c-115.2 0-208.384-93.696-208.384-208.384 0-115.2 93.696-208.384 208.384-208.384 115.2 0 208.384 93.696 208.384 208.384 0 114.688-93.184 208.384-208.384 208.384z m226.816 76.8c-8.704-6.656-20.992-5.12-27.648 3.584-6.656 8.704-5.12 20.992 3.584 27.648 83.968 64 132.096 161.28 132.096 266.752 0 10.752 8.704 19.456 19.456 19.456 10.752 0 19.456-8.704 19.456-19.456 0.512-118.272-53.248-226.816-146.944-297.984z</Geometry>
|
||||
<!-- 热点 -->
|
||||
<Geometry x:Key="Icon_Hot">M753.963821 930.99477c-9.950629 0-19.378349-2.618641-27.234271-7.855922L509.381359 791.681864 277.368168 906.903072c-17.282618 8.379854-38.232766 6.808056-53.94461-4.189416s-23.043832-29.852912-18.854417-47.659463l54.991452-244.582461L81.493036 443.924555c-13.617136-12.56927-18.330484-31.94762-12.045337-49.230238 6.285147-16.759709 23.043832-29.328979 41.898249-31.423687l231.489258-25.662473L467.48311 118.164237c8.903787-15.711843 26.186406-25.662473 45.564755-25.139563s36.137035 10.998495 44.51689 27.234271l109.459994 217.34819 245.106394 25.662473c19.378349 2.094708 35.614126 14.141068 42.422182 31.423687 6.285147 17.282618 1.570775 36.660968-12.045337 49.230238L791.671631 584.808236c-9.426697 8.903787-24.615631 8.903787-34.042327 0-8.903787-8.903787-8.903787-23.043832 0.523933-31.94762l150.310378-140.883681c0.523933-0.523933 1.047866-1.570775 0.523933-2.618641 0-0.523933-1.047866-1.047866-2.094708-1.570775l-271.816732-27.758204L514.094708 139.637294c-0.523933-1.047866-1.047866-1.570775-2.094708-1.570775s-2.094708 0.523933-2.094708 1.047866L373.73496 380.029316l-256.627798 27.758204c-1.047866 0.523933-2.094708 1.047866-2.094708 1.570775-0.523933 1.047866 0 2.094708 0.523933 2.618641l196.399065 183.829795-60.228733 268.674159c-0.523933 0.523933 0 1.570775 0.523933 2.094708 1.047866 0.523933 2.094708 0.523933 3.142573 0L512 739.832985l240.392022 145.597029 1.570775 0.523933 1.570775-0.523933c1.047866-0.523933 1.047866-1.570775 1.047866-2.618641L632.457466 523.531638c-4.189416-11.522428 2.618641-24.615631 15.711843-28.281113 12.56927-3.666506 25.662473 2.618641 29.852912 14.663978l124.123972 359.279736c6.285147 18.854417-0.523933 39.803541-17.283642 51.848878C775.959787 927.328263 764.961292 930.99477 753.963821 930.99477zM374.782825 560.192605c-6.285147 0-12.045337-2.618641-16.759709-6.808056l-71.227228-66.51388c-9.426697-8.379854-9.426697-23.043832 0-31.423687 9.426697-8.903787 24.615631-8.903787 34.042327-0.523933l70.703295 66.51388c9.426697 8.903787 9.426697 23.043832 0 31.94762C386.828163 557.573965 381.066949 560.192605 374.782825 560.192605z</Geometry>
|
||||
<!-- 控制台 -->
|
||||
<Geometry x:Key="Icon_Controls">M890 120H134a70 70 0 0 0-70 70v500a70 70 0 0 0 70 70h756a70 70 0 0 0 70-70V190a70 70 0 0 0-70-70z m-10 520a40 40 0 0 1-40 40H712V448a40 40 0 0 0-80 0v232h-80V368a40 40 0 0 0-80 0v312h-80V512a40 40 0 0 0-80 0v168H184a40 40 0 0 1-40-40V240a40 40 0 0 1 40-40h656a40 40 0 0 1 40 40zM696 824H328a40 40 0 0 0 0 80h368a40 40 0 0 0 0-80z</Geometry>
|
||||
<!-- 动态 -->
|
||||
<Geometry x:Key="Icon_Dynamic">M508.08832 105.73824c36.16768 0 69.81632 14.29504 94.208 37.84704 23.552 23.53152 38.68672 56.34048 38.68672 92.52864 0 36.12672-15.11424 68.096-38.68672 91.66848-24.3712 23.53152-58.04032 38.68672-94.208 38.68672-37.00736 0-70.656-15.1552-94.208-38.68672-24.39168-23.552-39.5264-55.52128-39.5264-91.66848 0-36.18816 15.13472-68.99712 39.5264-92.52864C437.43232 120.03328 471.06048 105.73824 508.08832 105.73824L508.08832 105.73824zM571.16672 175.55456c-15.9744-15.1552-38.7072-25.25184-63.0784-25.25184-25.23136 0-47.08352 10.09664-63.91808 25.25184-15.13472 15.11424-25.23136 37.00736-25.23136 60.55936 0 23.53152 10.09664 44.56448 25.23136 60.53888 16.83456 15.1552 38.68672 25.21088 63.91808 25.21088 24.3712 0 47.104-10.07616 63.0784-25.21088 15.99488-15.9744 25.23136-37.00736 25.23136-60.53888C596.39808 212.54144 587.1616 190.6688 571.16672 175.55456L571.16672 175.55456z M236.42112 653.25056c36.16768 0 69.81632 14.31552 94.208 37.84704 24.3712 23.552 39.5264 56.36096 39.5264 92.54912 0 36.16768-15.13472 68.11648-39.5264 91.66848-24.39168 23.552-58.01984 37.84704-94.208 37.84704-37.00736 0-69.81632-14.27456-94.208-37.84704-24.39168-23.53152-39.5264-55.5008-39.5264-91.66848 0-36.18816 15.13472-68.97664 39.5264-92.54912C166.6048 667.58656 199.41376 653.25056 236.42112 653.25056L236.42112 653.25056zM299.49952 723.08736c-15.99488-15.9744-38.68672-25.25184-63.0784-25.25184-25.23136 0-47.104 9.27744-63.09888 25.25184-15.9744 15.11424-26.07104 37.00736-26.07104 60.55936 0 23.53152 10.09664 44.56448 26.07104 60.53888 15.99488 15.1552 37.84704 25.23136 63.09888 25.23136 24.39168 0 47.08352-10.07616 63.0784-25.23136 15.9744-15.9744 26.07104-37.00736 26.07104-60.53888C325.57056 760.07424 315.47392 738.2016 299.49952 723.08736L299.49952 723.08736z M788.15232 439.62368c37.00736 0 69.81632 14.31552 94.208 37.888 24.39168 23.53152 39.5264 56.32 39.5264 92.50816 0 36.16768-15.11424 68.13696-39.5264 91.66848-24.3712 23.57248-57.20064 37.86752-94.208 37.86752s-69.81632-14.27456-94.18752-37.86752c-24.41216-23.51104-39.54688-55.5008-39.54688-91.66848 0-36.18816 15.11424-68.95616 39.54688-92.50816C718.336 453.9392 751.16544 439.62368 788.15232 439.62368L788.15232 439.62368zM851.23072 509.44c-15.9744-15.99488-38.7072-25.25184-63.0784-25.25184-24.39168 0-47.104 9.25696-63.09888 25.25184-15.95392 15.11424-26.05056 37.00736-26.05056 60.55936 0 23.53152 10.09664 44.58496 26.05056 60.53888 15.99488 15.1552 38.7072 25.25184 63.09888 25.25184 24.3712 0 47.104-10.09664 63.0784-25.25184 15.99488-15.95392 26.07104-37.00736 26.07104-60.53888C877.32224 546.44736 867.24608 524.55424 851.23072 509.44L851.23072 509.44z M476.11904 334.49984 305.39776 686.08 265.0112 666.7264 436.59264 315.14624Z M604.81536 310.12864 733.4912 457.3184 700.70272 486.74816 571.16672 339.5584Z</Geometry>
|
||||
<!-- 复选 -->
|
||||
<Geometry x:Key="Icon_Checked">M810.666667 128 213.333333 128c-47.146667 0-85.333333 38.186667-85.333333 85.333333l0 597.333333c0 47.146667 38.186667 85.333333 85.333333 85.333333l597.333333 0c47.146667 0 85.333333-38.186667 85.333333-85.333333L896 213.333333C896 166.186667 857.813333 128 810.666667 128zM426.666667 725.333333 213.333333 512l60.373333-60.373333L426.666667 604.586667l323.626667-323.626667L810.666667 341.333333 426.666667 725.333333z</Geometry>
|
||||
<!-- 复选_未勾选 -->
|
||||
<Geometry x:Key="Icon_NoChecked">M810.666667 213.333333v597.333334H213.333333V213.333333h597.333334m0-85.333333H213.333333c-47.146667 0-85.333333 38.186667-85.333333 85.333333v597.333334c0 47.146667 38.186667 85.333333 85.333333 85.333333h597.333334c47.146667 0 85.333333-38.186667 85.333333-85.333333V213.333333c0-47.146667-38.186667-85.333333-85.333333-85.333333z</Geometry>
|
||||
<!-- 单选中 -->
|
||||
<Geometry x:Key="Icon_SingleChecked">M512 0C228.266667 0 0 228.266667 0 512s228.266667 512 512 512 512-228.266667 512-512S795.733333 0 512 0z m0 704c-106.666667 0-192-85.333333-192-192s85.333333-192 192-192 192 85.333333 192 192-85.333333 192-192 192z</Geometry>
|
||||
<!-- 单选未选中 -->
|
||||
<Geometry x:Key="Icon_SingleNoChecked">M512 1024c-282.304 0-512-229.696-512-512s229.696-512 512-512 512 229.696 512 512-229.696 512-512 512zM512 85.344c-235.264 0-426.656 191.392-426.656 426.656s191.392 426.656 426.656 426.656c235.264 0 426.656-191.392 426.656-426.656s-191.392-426.656-426.656-426.656z</Geometry>
|
||||
<!-- 项目 -->
|
||||
<Geometry x:Key="Icon_Project">M819.2 614.4V307.2H336.4864v-0.256a25.6 25.6 0 1 1 0-50.688V256H512V204.8H204.8v409.6h614.4z m-307.2 256H204.8a51.2 51.2 0 0 1-51.2-51.2V204.8a51.2 51.2 0 0 1 51.2-51.2h307.2a51.2 51.2 0 0 1 51.2 51.2v51.2h256a51.2 51.2 0 0 1 51.2 51.2v512a51.2 51.2 0 0 1-51.2 51.2h-307.2z m-307.2-204.8v153.6h614.4v-153.6H204.8z m76.8 102.4a25.6 25.6 0 1 1 0-51.2 25.6 25.6 0 0 1 0 51.2z m102.4 0a25.6 25.6 0 1 1 0-51.2 25.6 25.6 0 0 1 0 51.2z m102.4 0a25.6 25.6 0 1 1 0-51.2 25.6 25.6 0 0 1 0 51.2z</Geometry>
|
||||
<Geometry x:Key="Icon_Project2">M449.1 332.1H117.2c-12.1 0-21.6-9.5-21.6-21.6V192c0-12.1 9.5-21.6 21.6-21.6h281c8.6 0 16.4 5.2 19.8 12.9l51 118.6c3 6.5 2.2 14.2-1.7 20.3-3.9 6-10.8 9.9-18.2 9.9zM138.8 289h277.6L384 213.5H138.8V289z m0 0 M886.6 862.3H117.2c-12.1 0-21.6-9.5-21.6-21.5V310.5c0-12.1 9.5-21.6 21.6-21.6h769.4c12.1 0 21.6 9.5 21.6 21.6v530.2c0 12.1-9.5 21.6-21.6 21.6z m-747.8-43.1h726.3V332.1H138.8v487.1z m0 0 M241.4 545.2c0 18.8 15.2 34 34.1 34s34-15.2 34-34-15.2-34.1-34-34.1-34.1 15.3-34.1 34.1z m0 0M710.3 566.8H394.8c-12.1 0-21.6-9.5-21.6-21.5 0-12.1 9.5-21.6 21.6-21.6h315.5c12.1 0 21.6 9.5 21.6 21.6 0 12-9.5 21.5-21.6 21.5z m0 0M241.4 688.3c0 18.8 15.2 34.1 34.1 34.1s34-15.2 34-34.1c0-18.8-15.2-34.1-34-34.1s-34.1 15.3-34.1 34.1z m0 0M710.3 709.9H394.8c-12.1 0-21.6-9.5-21.6-21.6s9.5-21.6 21.6-21.6h315.5c12.1 0 21.6 9.5 21.6 21.6s-9.5 21.6-21.6 21.6z m0 0</Geometry>
|
||||
<Geometry x:Key="Icon_Project3">M934.918637 354.170368 309.527101 354.170368c-12.334933 0-22.335704 10.000771-22.335704 22.335704 0 12.334933 10.000771 22.334681 22.335704 22.334681l603.055832 0 0 424.3835c0 31.359218-13.514805 44.671409-44.669362 44.671409L153.178193 867.895663c-35.366486 0-44.670385-11.778254-44.670385-44.671409L108.507808 175.487803c0-12.335956 9.999748-22.335704 22.334681-22.335704l209.334679 0 53.500495 82.242096c3.40454 3.399423 7.634888 5.454222 12.046361 6.201236 1.989307 0.581238 4.092201 0.898463 6.269797 0.898463l478.254431 0c12.334933 0 22.334681-10.000771 22.334681-22.335704 0-12.33391-9.999748-22.335704-22.334681-22.335704L421.292604 197.822484 366.551862 115.581412c-3.483334-3.479241-7.833409-5.709025-12.354376-6.606465l0-0.494257L108.507808 108.48069c-24.669866 0-44.671409 20.00052-44.671409 44.670385L63.836399 845.560982c0 44.324508 17.139356 67.007113 67.00609 67.007113l759.405763 0c45.656853 0 67.00609-21.147646 67.00609-67.007113L957.254342 376.506073C957.254342 364.17114 947.25357 354.170368 934.918637 354.170368z</Geometry>
|
||||
<!-- 菜单 -->
|
||||
<Geometry x:Key="Icon_Menu">M64 256c0-35.3 28.7-64 64-64h768c35.3 0 64 28.7 64 64s-28.7 64-64 64H127.9c-35.3 0.1-63.9-28.7-63.9-64zM320 512c0-35.3 28.7-64 64-64h512c35.3 0 64 28.7 64 64s-28.7 64-64 64H383.9c-35.4 0-63.9-28.7-63.9-64zM511.9 768c0-35.3 28.7-64 64-64h320c35.3 0 64 28.7 64 64s-28.7 64-64 64H576c-35.5 0-64.1-28.7-64.1-64z</Geometry>
|
||||
<!-- 右 -->
|
||||
<Geometry x:Key="Icon_Right">M745.65898437 533.84433594l-416.32822265 416.32822265c-6.66298828 6.66298828-15.86689453 10.78330078-26.03408203 10.78330079-20.33349609 0-36.81738281-16.48388672-36.81738282-36.81738282 0-10.1671875 4.12119141-19.37109375 10.78330079-26.03408203l394.49355468-394.49355469-381.82675781-381.89707031c-6.07763672-6.2859375-9.82265625-14.86054687-9.82265625-24.30878906 0-19.32539062 15.66650391-34.99189453 34.99189453-34.99189453 9.44912109 0 18.02285156 3.74501953 24.31845703 9.83144531l395.88398438 395.88398438c4.78740234 4.87265625 8.14042969 11.16914062 9.36738281 18.19599609-0.759375-4.89814453 0.29003906-5.52919922 0.99052734-4.47978516 6.64277344 6.65859375 10.75078125 15.8484375 10.75078125 25.99892578 0 10.14960938-4.10800781 19.34033203-10.75166015 25.99892578z</Geometry>
|
||||
<!-- 左 -->
|
||||
<Geometry x:Key="Icon_Left">M278.34101563 490.15566406l416.32822265-416.32822265c6.66298828-6.66298828 15.86689453-10.78330078 26.03408203-10.78330079 20.33349609 0 36.81738281 16.48388672 36.81738282 36.81738282 0 10.1671875-4.12119141 19.37109375-10.78330079 26.03408203l-394.49355468 394.49355469 381.82675781 381.89707031c6.07763672 6.2859375 9.82265625 14.86054687 9.82265625 24.30878906 0 19.32539062-15.66650391 34.99189453-34.99189453 34.99189453-9.44912109 0-18.02285156-3.74501953-24.31845703-9.83144531l-395.88398438-395.88398438c-4.78740234-4.87265625-8.14042969-11.16914062-9.36738281-18.19599609 0.759375 4.89814453-0.29003906 5.52919922-0.99052734 4.47978516-6.64277344-6.65859375-10.75078125-15.8484375-10.75078125-25.99892578 0-10.14960938 4.10800781-19.34033203 10.75166015-25.99892578z</Geometry>
|
||||
<!-- 微信关闭 -->
|
||||
<Geometry x:Key="Icon_WeiXin_Max">M102.399488 204.802048v614.396928a102.399488 102.399488 0 0 0 103.321083 102.399488H1022.970885C1080.109799 921.598464 1126.394368 875.518694 1126.394368 819.198976V204.802048a102.399488 102.399488 0 0 0-103.321083-102.399488H205.822971C148.684057 102.40256 102.399488 148.48233 102.399488 204.802048zM0 204.802048C0 91.650614 92.364338 0.003072 205.720571 0.003072H1022.970885A204.798976 204.798976 0 0 1 1228.793856 204.802048v614.396928c0 113.151434-92.364338 204.798976-205.720571 204.798976H205.822971A204.798976 204.798976 0 0 1 0 819.198976V204.802048z</Geometry>
|
||||
<Geometry x:Key="Icon_WeiXin_Min">M172.096567 595.371826h679.806866V428.628174H172.096567v166.743652z m-44.889373-275.768741h769.585612c35.416628 0 64.132646 28.712949 64.132647 64.132646v256.528538c0 35.418674-28.714995 64.132646-64.132647 64.132646H127.207194c-35.416628 0-64.132646-28.712949-64.132647-64.132646V383.735731c0-35.419697 28.714995-64.132646 64.132647-64.132646z</Geometry>
|
||||
<Geometry x:Key="Icon_WeiXin_More">M305.182907 229.069097A311.388626 311.388626 0 1 1 0.015754 540.37897a308.317266 308.317266 0 0 1 305.167153-311.309873z m2539.778247 0a311.388626 311.388626 0 1 1-305.167154 311.309873 308.317266 308.317266 0 0 1 305.167154-311.309873zM1604.604336 0.21342a511.89329 511.89329 0 1 1-497.166514 511.89329A504.648031 504.648031 0 0 1 1604.604336 0.21342z</Geometry>
|
||||
<Geometry x:Key="Icon_WeiXin_Share">M816.096 359.424c-9.216 0-18.944-1.024-28.15999999-3.072-73.216-15.872-120.32-88.064-104.448-161.28 7.68-35.328 28.672-66.048 58.87999999-85.504 30.72-19.968 67.072-26.624 102.40000001-18.944s66.048 28.672 85.50399999 58.88c19.968 30.72 26.624 67.072 18.94400001 102.4-13.312 64-70.144 107.52-133.12000001 107.52zM768.48 288.256zM274.91200001 821.248c-17.408 0-34.816-2.048-52.224-5.632-64.512-13.824-119.808-51.712-155.64800001-107.008-35.84-55.296-48.128-121.344-34.304-185.856 13.824-64.512 51.712-119.808 107.00800001-155.648 55.296-35.84 121.344-48.128 185.856-34.304 64.512 13.824 119.808 51.712 155.64799999 107.008s48.128 121.344 34.304 185.856c-13.824 64.512-51.712 119.808-107.00799999 155.648-40.448 26.624-86.528 39.936-133.632 39.936zM816.608 936.448c-12.288 0-24.064-1.536-36.35199999-4.096-45.056-9.728-82.944-35.84-108.03200001-74.752-25.088-38.4-33.28-84.48-23.552-129.024 19.968-92.672 111.104-151.552 203.77600001-132.096 92.672 19.968 151.552 111.104 132.096 203.776-9.728 45.056-36.352 82.944-74.75200001 108.032-28.16 18.944-60.416 28.16-93.184 28.16z M487.904 470.528c-16.384 0-32.256-7.68-41.984-22.528-15.36-23.04-8.704-54.272 14.336-69.632l89.088-58.88c23.04-15.36 54.272-8.704 69.63200001 14.336s8.704 54.272-14.33600001 69.632l-89.088 58.88c-8.704 5.632-18.432 8.192-27.648 8.192z m189.44000001 308.736c-4.608 0-8.704-0.512-13.31200001-2.048l-174.07999999-48.128c-26.624-7.168-42.496-34.816-34.81600001-61.44 7.168-26.624 34.816-42.496 61.44-34.816l174.08 48.128c26.624 7.168 42.496 34.816 34.816 61.44-6.144 22.016-26.112 36.864-48.12799999 36.864z</Geometry>
|
||||
<Geometry x:Key="Icon_WeiXin_Close">M512 518.912m-192 0a192 192 0 1 0 384 0 192 192 0 1 0-384 0Z M873.856 150.144C774.208 50.56 652.416 0 512 0S249.792 50.56 150.144 150.144C50.56 249.792 0 371.584 0 512c0 140.48 50.56 262.272 150.144 361.856C249.792 973.504 371.584 1024 512 1024s262.208-50.496 361.856-150.144C973.504 774.272 1024 652.48 1024 512c0-140.416-50.496-262.208-150.144-361.856z m-45.248 678.464C740.16 917.056 636.544 960 512 960c-124.608 0-228.16-42.944-316.608-131.392C106.944 740.224 64 636.608 64 512s42.944-228.16 131.392-316.608C283.84 106.944 387.392 64 512 64c124.544 0 228.16 42.944 316.608 131.392C917.056 283.84 960 387.392 960 512s-42.944 228.224-131.392 316.608z</Geometry>
|
||||
<Geometry x:Key="Icon_ZhiFuBao_Close">M517.38624 570.32704l-91.66848 91.66848-48.08704-48.08704 91.66848-91.66848-98.75456-98.73408 48.08704-48.08704 98.75456 98.73408 98.73408-98.73408 48.08704 48.08704-98.73408 98.73408 91.648 91.66848-48.08704 48.08704-91.648-91.66848z m417.3824-126.464c4.8128 25.3952 7.31136 51.6096 7.31136 78.37696C942.08 754.11456 754.11456 942.08 522.24 942.08S102.4 754.11456 102.4 522.24 290.36544 102.4 522.24 102.4c66.31424 0 129.024 15.36 184.79104 42.74176l-44.8512 73.87136C616.6528 196.64896 574.27968 186.368 522.24 186.368c-185.48736 0-335.872 150.38464-335.872 335.872 0 185.48736 150.38464 335.872 335.872 335.872 185.48736 0 335.872-150.38464 335.872-335.872 0-21.2992-1.96608-42.27072-5.8368-62.79168l82.49344-15.5648z m-120.97536-61.56288a81.63328 81.63328 0 1 1 0-163.28704 81.63328 81.63328 0 0 1 0 163.28704z</Geometry>
|
||||
<!-- 下拉 -->
|
||||
<Geometry x:Key="Icon_DropDowm">M919.8 381.1L555.2 779.8a57.377 57.377 0 0 1-43.1 19.5c-16.5 0-32.2-7.1-43.1-19.5L104.4 381.1c-17.8-18.8-23.3-46.2-14.1-70.4s31.4-41.1 57.2-43.4h728.9c25.9 2.2 48.2 19 57.4 43.3 9.3 24.3 3.8 51.6-14 70.5z</Geometry>
|
||||
<!-- 上拉 -->
|
||||
<Geometry x:Key="Icon_DropUp">M104.2 642.9L468.8 244.2a57.377 57.377 0 0 1 43.1-19.5c16.5 0 32.2 7.1 43.1 19.5L919.6 642.9c17.8 18.8 23.3 46.2 14.1 70.4s-31.4 41.1-57.2 43.4l-728.9 0c-25.9-2.2-48.2-19-57.4-43.29999999-9.3-24.3-3.8-51.6 14-70.50000001z</Geometry>
|
||||
<!-- 播放 -->
|
||||
<Geometry x:Key="Icon_Player_Up">M64.2887 526.511505l0-28.009937c0.255827-1.961678 0.521886-3.924379 0.760317-5.886057 2.851954-23.620977 4.167926-47.549969 8.832156-70.811766 14.083763-70.287833 43.99705-133.49848 88.957031-189.413977 48.498574-60.322877 108.580974-105.307418 180.201152-134.699842 42.823318-17.572214 87.363743-28.181853 133.580345-31.546483 7.624654-0.554632 15.242146-1.221828 22.864754-1.837858l25.00858 0c2.300392 0.265036 4.594645 0.680499 6.903224 0.769526 40.860617 1.629103 80.751139 8.746198 119.567189 21.526269 82.522482 27.164686 151.679561 74.249051 206.785623 141.312446 58.518788 71.213925 91.907223 153.003719 100.166327 244.948805 3.841491 42.792619 1.497097 85.23936-6.865361 127.334083-9.788947 49.266054-27.447119 95.578846-53.03796 138.808416-42.437531 71.684646-100.252285 127.659495-173.500543 167.203116-75.265194 40.634466-155.896606 57.843406-241.327324 52.55496-43.023886-2.663666-84.96102-10.900258-125.158535-26.301016-124.022665-47.52848-211.67191-132.775003-262.123976-255.745708-16.795525-40.937364-26.38288-83.73817-29.724998-127.897925C65.613882 541.375028 64.921103 533.944801 64.2887 526.511505L64.2887 526.511505zM512.174474 904.395972c217.750349-0.727571 392.276245-176.013783 392.001999-392.370389-0.274246-217.231533-175.272909-391.646911-391.82599-391.890458-216.513172-0.242524-392.081817 175.197184-392.257825 391.964136C119.921765 728.489636 295.690978 904.360156 512.174474 904.395972L512.174474 904.395972zM512.174474 904.395972 M652.651902 351.169011c-58.137095 35.762505-133.38387 79.465866-191.880145 116.77868-28.442796 18.143219-35.953863 59.141982-8.577353 79.662341 54.223972 40.638559 136.970558 87.270623 200.281489 124.577297 29.359678 17.306154 48.41364 5.39794 48.41364-30.91715L700.889533 380.636137C700.889533 350.777085 681.598164 333.360414 652.651902 351.169011zM644.779607 580.931952c0 13.363356-6.005784 18.499329-15.691377 13.007245-29.413913-16.660448-84.810594-49.480948-114.985848-68.886927-11.531638-7.41897-12.793374-18.090007 0-25.850761 32.368198-19.614733 85.200474-52.017724 114.580618-68.658729 9.923-5.621021 16.096607-0.914836 16.096607 12.013615C644.779607 477.210659 644.779607 545.778314 644.779607 580.931952z M365.086487 679.827333l-27.984355 0c-7.726985 0-13.993712-6.265704-13.993712-13.992689L323.10842 358.01493c0-7.725962 6.266727-13.991666 13.993712-13.991666l27.984355 0c7.730055 0 13.995759 6.265704 13.995759 13.991666l0 307.819714C379.082246 673.561629 372.816542 679.827333 365.086487 679.827333L365.086487 679.827333z</Geometry>
|
||||
<Geometry x:Key="Icon_Player_Down">M64.2887 526.511505l0-28.009937c0.255827-1.961678 0.521886-3.924379 0.760317-5.886057 2.851954-23.620977 4.167926-47.549969 8.832156-70.811766 14.083763-70.287833 43.99705-133.49848 88.957031-189.413977 48.498574-60.322877 108.580974-105.307418 180.201152-134.699842 42.823318-17.572214 87.363743-28.181853 133.580345-31.546483 7.624654-0.554632 15.242146-1.221828 22.864754-1.837858l25.00858 0c2.300392 0.265036 4.594645 0.680499 6.903224 0.769526 40.860617 1.629103 80.751139 8.746198 119.567189 21.526269 82.522482 27.164686 151.679561 74.249051 206.785623 141.312446 58.518788 71.213925 91.907223 153.003719 100.166327 244.948805 3.841491 42.792619 1.497097 85.23936-6.865361 127.334083-9.788947 49.266054-27.447119 95.578846-53.03796 138.808416-42.437531 71.684646-100.252285 127.659495-173.500543 167.203116-75.265194 40.634466-155.896606 57.843406-241.327324 52.55496-43.023886-2.663666-84.96102-10.900258-125.158535-26.301016-124.022665-47.52848-211.67191-132.775003-262.123976-255.745708-16.795525-40.937364-26.38288-83.73817-29.724998-127.897925C65.613882 541.375028 64.921103 533.944801 64.2887 526.511505L64.2887 526.511505zM512.174474 904.395972c217.750349-0.727571 392.276245-176.013783 392.001999-392.370389-0.274246-217.231533-175.272909-391.646911-391.82599-391.890458-216.513172-0.242524-392.081817 175.197184-392.257825 391.964136C119.921765 728.489636 295.690978 904.360156 512.174474 904.395972L512.174474 904.395972zM512.174474 904.395972M686.870238 679.803797l-27.979238 0c-7.724938 0-13.990642-6.261611-13.990642-13.988596L644.900358 358.037443c0-7.722892 6.265704-13.990642 13.990642-13.990642l27.979238 0c7.729032 0 13.990642 6.26775 13.990642 13.990642l0 307.777759C700.859857 673.541163 694.598246 679.803797 686.870238 679.803797L686.870238 679.803797zM563.220057 467.950761c-58.490136-37.305651-133.724631-81.001849-191.854563-116.76333-28.942169-17.801435-48.226375-0.38988-48.226375 29.466102l0 260.597203c0 36.308951 19.049868 48.217165 48.402383 30.91715 63.307861-37.300534 146.037051-83.932598 200.252837-124.563994C599.17085 527.083533 591.658759 486.091934 563.220057 467.950761zM509.895571 525.050224c-30.166043 19.407002-85.557608 52.220339-114.964358 68.882833-9.683547 5.483898-15.690354 0.352017-15.690354-13.011338L379.240859 442.562535c0-12.919241 6.167466-17.626449 16.090467-12.010545 29.379121 16.644075 82.205257 49.037856 114.565269 68.653613C522.693038 506.95817 521.426185 517.635347 509.895571 525.050224z</Geometry>
|
||||
<Geometry x:Key="Icon_Player">M215.618291 917.834029c-55.520501 0-93.25901-44.607964-93.25901-110.988814l0-671.442362c0-66.38085 37.738509-110.98779 93.285616-110.98779 21.22951 0 43.632753 6.590092 66.121953 19.571754L810.298362 380.317888c39.064714 22.529109 61.195757 55.017034 61.195757 90.87266 0 35.815717-22.01234 68.263733-62.018495 91.362824L282.721595 897.664663C259.224438 911.256216 236.847801 917.834029 215.618291 917.834029zM215.644897 78.729086c-34.794457 0-38.971593 39.634696-38.971593 56.673767l0 671.442362c0 17.040095 4.177136 56.67479 38.944987 56.67479 11.403724 0 25.028023-4.242627 38.965453-12.292977l526.661931-335.111291c23.165606-13.406335 35.933397-29.556153 35.933397-44.925189 0-15.408945-12.728906-31.598672-34.967396-44.435025L253.588067 90.424452C240.66064 82.985016 227.061924 78.729086 215.644897 78.729086z M485.556233 647.034463c-4.52199 0-8.924253-2.240017-11.510148-6.351662-3.990894-6.338359-2.081405-14.719236 4.25593-18.723434l7.333012-4.615111c6.351662-3.978614 14.731516-2.094708 18.723434 4.270257 4.00522 6.337335 2.095731 14.718213-4.25593 18.72241l-7.333012 4.616134C490.528478 646.357034 488.022401 647.034463 485.556233 647.034463z M286.639834 772.143878c-4.520967 0-8.924253-2.240017-11.510148-6.351662-3.990894-6.337335-2.081405-14.731516 4.269233-18.72241l152.386666-95.859231c6.338359-3.964288 14.719236-2.094708 18.723434 4.270257 3.990894 6.337335 2.082428 14.731516-4.269233 18.723434l-152.386666 95.858208C291.612079 771.468496 289.106002 772.143878 286.639834 772.143878z</Geometry>
|
||||
<Geometry x:Key="Icon_Pause">M455.089337 794.989189c0 67.905576-55.053873 122.952286-122.966613 122.952286l-1.476631 0c-67.912739 0-122.965589-55.04671-122.965589-122.952286L207.680505 147.474796c0-67.905576 55.05285-122.952286 122.965589-122.952286l1.476631 0c67.912739 0 122.966613 55.04671 122.966613 122.952286L455.089337 794.989189zM400.110165 147.474796c0-37.543058-30.436196-67.973114-67.986417-67.973114l-1.476631 0c-37.550221 0-67.986417 30.429033-67.986417 67.973114L262.6607 794.989189c0 37.543058 30.436196 67.973114 67.986417 67.973114l1.476631 0c37.550221 0 67.986417-30.429033 67.986417-67.973114L400.110165 147.474796z M303.895847 258.186294c-7.597025 0-13.745049-6.148024-13.745049-13.745049l0-54.980195c0-7.597025 6.148024-13.745049 13.745049-13.745049 7.583722 0 13.745049 6.148024 13.745049 13.745049l0 54.980195C317.639872 252.03827 311.479569 258.186294 303.895847 258.186294z M303.895847 299.420417c-7.597025 0-13.745049-6.147-13.745049-13.745049l0-5.691629c0-7.597025 6.148024-13.745049 13.745049-13.745049 7.583722 0 13.745049 6.148024 13.745049 13.745049l0 5.691629C317.639872 293.273417 311.479569 299.420417 303.895847 299.420417z M784.96744 794.989189c0 67.905576-55.04671 122.952286-122.966613 122.952286l-1.475608 0c-67.918879 0-122.965589-55.04671-122.965589-122.952286L537.559631 147.474796c0-67.905576 55.04671-122.952286 122.965589-122.952286l1.475608 0c67.919902 0 122.966613 55.04671 122.966613 122.952286L784.96744 794.989189zM729.987245 147.474796c0-37.543058-30.430056-67.973114-67.986417-67.973114l-1.475608 0c-37.557384 0-67.986417 30.429033-67.986417 67.973114L592.538803 794.989189c0 37.543058 30.429033 67.973114 67.986417 67.973114l1.475608 0c37.556361 0 67.986417-30.429033 67.986417-67.973114L729.987245 147.474796z</Geometry>
|
||||
|
||||
<!-- 司机 -->
|
||||
<Geometry x:Key="Icon_Driver">M988.814222 553.358222a376.632889 376.632889 0 0 0-43.377778-2.702222c-206.336 0-373.646222 166.513778-373.646222 371.911111 0 15.132444 1.194667 29.980444 2.958222 44.629333h-125.468444c1.792-14.677333 2.958222-29.496889 2.958222-44.629333 0-205.425778-167.281778-371.911111-373.674666-371.911111a381.155556 381.155556 0 0 0-45.852445 3.043556c0.910222-24.064 2.588444-74.097778 1.564445-93.212445 101.063111-106.894222 277.248-147.882667 477.752888-147.882667 201.216 0 377.941333 41.728 478.805334 149.077334-2.56 3.043556-2.275556 65.308444-2.019556 91.676444z m-476.842666-122.254222c-33.052444 0-59.847111 26.851556-59.847112 59.989333s26.794667 59.989333 59.847112 59.989334c33.109333 0 59.875556-26.851556 59.875555-59.989334s-26.766222-59.989333-59.875555-59.989333z M511.971556 1024C231.850667 1024 4.750222 794.766222 4.750222 512S231.850667 0 511.971556 0c280.177778 0 507.278222 229.233778 507.278222 512s-227.100444 512-507.278222 512z m0-910.222222C294.087111 113.777778 117.475556 292.067556 117.475556 512s176.611556 398.222222 394.496 398.222222S906.524444 731.932444 906.524444 512 729.856 113.777778 511.971556 113.777778z</Geometry>
|
||||
<!-- 主页 -->
|
||||
<Geometry x:Key="Icon_Home">M951.168 526.154a30 30 0 0 1-42.427 0c-0.044-0.045-0.081-0.1-0.125-0.14l-0.007 0.007-382.545-382.54a20 20 0 0 0-28.284 0l-382.545 382.54a30 30 0 1 1-42.426-42.426L476.567 79.837a50 50 0 0 1 70.71 0l403.758 403.758-0.006 0.006c0.045 0.045 0.094 0.081 0.139 0.126a30 30 0 0 1 0 42.427z m-72.246-221.373a30 30 0 0 1-30-30v-100h-100a30 30 0 0 1 0-60h130a30 30 0 0 1 30 30v130a30 30 0 0 1-30 30z m-698 237.25a30 30 0 0 1 29.994 29.75h0.006v307a20 20 0 0 0 20 20h137v-235a50 50 0 0 1 50-50h188a50 50 0 0 1 50 50v235h137a20 20 0 0 0 20-20v-302.7a30 30 0 1 1 59.656-4.554c0 0.084 0 0.166-0.006 0.25h0.35v337.004a50 50 0 0 1-50 50h-227V693.365a20 20 0 0 0-20-20h-128a20 20 0 0 0-20 20v265.416h-227a50 50 0 0 1-50-50v-337h0.006a30 30 0 0 1 29.994-29.75z</Geometry>
|
||||
<!-- 扫码 -->
|
||||
<Geometry x:Key="Icon_SweepCode">M1012.622222 471.299413 34.133333 471.299413C15.291733 471.299413 0 486.591147 0 505.432747 0 524.274347 15.291733 539.56608 34.133333 539.56608L1012.622222 539.56608C1031.463822 539.56608 1046.755556 524.274347 1046.755556 505.432747 1046.755556 486.591147 1031.463822 471.299413 1012.622222 471.299413ZM259.934436 301.945742C241.092836 301.945742 225.801102 317.237476 225.801102 336.079076 225.801102 354.920676 241.092836 370.212409 259.934436 370.212409L786.816569 370.212409C805.658169 370.212409 820.949902 354.920676 820.949902 336.079076 820.949902 317.237476 805.658169 301.945742 786.816569 301.945742L259.934436 301.945742ZM786.82112 708.922027C805.66272 708.922027 820.954453 693.630293 820.954453 674.788693 820.954453 655.947093 805.66272 640.65536 786.82112 640.65536L259.938987 640.65536C241.097387 640.65536 225.805653 655.947093 225.805653 674.788693 225.805653 693.630293 241.097387 708.922027 259.938987 708.922027L786.82112 708.922027ZM692.733724 69.145031 934.306702 69.145031C948.278613 69.145031 959.656391 80.522809 959.656391 94.49472L959.656391 336.067698C959.656391 354.932053 974.948124 370.201031 993.789724 370.201031 1012.65408 370.201031 1027.923058 354.932053 1027.923058 336.067698L1027.923058 94.49472C1027.923058 42.88512 985.939058 0.878364 934.306702 0.878364L692.733724 0.878364C673.892124 0.878364 658.600391 16.170098 658.600391 35.011698 658.600391 53.853298 673.892124 69.145031 692.733724 69.145031ZM52.954453 369.322667C71.796053 369.322667 87.087787 354.030933 87.087787 335.189333L87.087787 93.616356C87.087787 79.644444 98.465564 68.266667 112.437476 68.266667L354.010453 68.266667C372.874809 68.266667 388.143787 52.974933 388.143787 34.133333 388.143787 15.268978 372.874809 0 354.010453 0L112.437476 0C60.827876 0 18.82112 41.984 18.82112 93.616356L18.82112 335.189333C18.82112 354.030933 34.112853 369.322667 52.954453 369.322667ZM993.801102 640.65536C974.959502 640.65536 959.667769 655.947093 959.667769 674.788693L959.667769 916.361671C959.667769 930.333582 948.289991 941.71136 934.31808 941.71136L692.745102 941.71136C673.880747 941.71136 658.611769 957.003093 658.611769 975.844693 658.611769 994.709049 673.880747 1009.978027 692.745102 1009.978027L934.31808 1009.978027C985.92768 1009.978027 1027.934436 967.994027 1027.934436 916.361671L1027.934436 674.788693C1027.934436 655.947093 1012.642702 640.65536 993.801102 640.65536ZM354.021831 941.722738 112.448853 941.722738C98.476942 941.722738 87.099164 930.34496 87.099164 916.373049L87.099164 674.800071C87.099164 655.935716 71.807431 640.666738 52.965831 640.666738 34.101476 640.666738 18.832498 655.935716 18.832498 674.800071L18.832498 916.373049C18.832498 967.982649 60.816498 1009.989404 112.448853 1009.989404L354.021831 1009.989404C372.863431 1009.989404 388.155164 994.697671 388.155164 975.856071 388.155164 957.014471 372.863431 941.722738 354.021831 941.722738Z</Geometry>
|
||||
<Geometry x:Key="Icon_Null">M831.7 369.4H193.6L64 602v290.3h897.2V602L831.7 369.4zM626.6 604.6c0 62.9-51 113.9-114 113.9s-114-51-114-113.9H117.5l103.8-198h582.5l103.8 198h-281zM502.2 131h39.1v140.6h-39.1zM236.855 200.802l27.647-27.647 99.419 99.418-27.648 27.648zM667.547 272.637l99.418-99.419 27.648 27.648-99.418 99.418z</Geometry>
|
||||
<!-- 增删改查刷新 -->
|
||||
<Geometry x:Key="Icon_Search">M1015.388871 978.950909 772.271385 735.835982c-2.463458-2.463458-5.140518-4.424248-7.822695-5.858068 69.355429-77.490213 111.547586-179.80175 111.547586-291.97991C875.996277 196.099457 679.900657 0 437.999552 0 196.101005 0 0.001548 196.099457 0.001548 437.998004s196.099457 437.998004 437.998004 437.998004c112.179439 0 214.489697-42.192157 291.97991-111.547586 1.43382 2.682176 3.39461 5.360516 5.858068 7.825253l243.114927 243.114927c8.394432 8.394432 19.274066 11.117538 24.303307 6.088297l18.220126-18.217567C1026.50513 998.224975 1023.779465 987.344062 1015.388871 978.950909zM437.999552 824.466756c-213.440872 0-386.468752-173.029158-386.468752-386.468752 0-213.440872 173.0266-386.468752 386.468752-386.468752s386.468752 173.0266 386.468752 386.468752C824.468304 651.436318 651.440424 824.466756 437.999552 824.466756zM437.999552 103.058504c-184.981919 0-334.9395 149.957581-334.9395 334.9395 0 14.229477 11.53451 25.763987 25.763987 25.763987 14.229477 0 25.763987-11.53451 25.763987-25.763987 0-156.521686 126.888561-283.410247 283.410247-283.410247 14.229477 0 25.763987-11.53451 25.763987-25.763987S452.229028 103.058504 437.999552 103.058504z</Geometry>
|
||||
<Geometry x:Key="Icon_Refresh">M1020.444444 460.8 834.844444 230.4c-19.2-25.6-57.6-25.6-76.8 0L572.444444 460.8c-12.8 19.2 0 44.8 19.2 44.8l70.4 0c0 134.4 0 307.2-243.2 448-6.4 6.4 0 12.8 6.4 12.8 454.4-70.4 492.8-377.6 492.8-460.8l76.8 0C1020.444444 505.6 1033.244444 480 1020.444444 460.8L1020.444444 460.8 1020.444444 460.8zM438.044444 518.4 361.244444 518.4c0-134.4 0-307.2 243.2-448 6.4-6.4 0-12.8-6.4-12.8C143.644444 128 105.244444 435.2 105.244444 518.4L28.444444 518.4C2.844444 518.4-9.955556 544 9.244444 563.2L194.844444 793.6c19.2 25.6 57.6 25.6 76.8 0l185.6-230.4C470.044444 544 457.244444 518.4 438.044444 518.4L438.044444 518.4 438.044444 518.4z</Geometry>
|
||||
<Geometry x:Key="Icon_Insert">M768 768V608a32 32 0 1 1 64 0V768h160a32 32 0 1 1 0 64H832v160a32 32 0 1 1-64 0V832H608a32 32 0 1 1 0-64H768z m-128 256h96H64a64 64 0 0 1-64-64V320l256-320h512a64 64 0 0 1 64 64v384a32 32 0 1 1-64 0V64H320v320H64v576h576a32 32 0 1 1 0 64zM96 320H256V96L96 320z</Geometry>
|
||||
<Geometry x:Key="Icon_Delete">M847.743 223.953H640.639c-3.132-68.921-60.177-124.029-129.858-124.029s-126.726 55.108-129.858 124.029H173.256c-17.673 0-32 14.327-32 32s14.327 32 32 32h674.487c17.673 0 32-14.327 32-32s-14.327-32-32-32z m-336.962-60.03c34.379 0 62.689 26.426 65.718 60.029H445.064c3.029-33.603 31.338-60.029 65.717-60.029zM767.743 351.79c-17.673 0-32 14.327-32 32v478.173H288.256V383.79c0-17.673-14.327-32-32-32s-32 14.327-32 32v510.173c0 17.673 14.327 32 32 32h511.487c17.673 0 32-14.327 32-32V383.79c0-17.673-14.327-32-32-32z M449.306 732.802V448.208c0-17.673-14.327-32-32-32s-32 14.327-32 32v284.593c0 17.673 14.327 32 32 32s32-14.326 32-31.999zM640.84 732.802V448.208c0-17.673-14.327-32-32-32s-32 14.327-32 32v284.593c0 17.673 14.327 32 32 32s32-14.326 32-31.999z</Geometry>
|
||||
<Geometry x:Key="Icon_ResetDelete">M710.4 352l115.2 57.6c-64 134.4-352 96-448 19.2 204.8 256 499.2 172.8 537.6 57.6 19.2 44.8 64 128 64 128l19.2-288-288 25.6zM256 390.4c-6.4 0-19.2 6.4-19.2 19.2v384c0 6.4 6.4 19.2 19.2 19.2h32c6.4 0 19.2-6.4 19.2-19.2v-384c0-6.4-6.4-19.2-19.2-19.2H256zM396.8 806.4h32c6.4 0 19.2-6.4 19.2-19.2v-140.8c0-6.4-6.4-19.2-19.2-19.2h-32c-12.8 6.4-19.2 12.8-19.2 19.2v140.8c0 12.8 6.4 19.2 19.2 19.2zM563.2 806.4c6.4 0 19.2-6.4 19.2-19.2v-140.8c0-6.4-6.4-12.8-19.2-12.8h-25.6c-6.4 0-19.2 6.4-19.2 19.2v140.8c0 6.4 6.4 19.2 19.2 19.2h25.6z M716.8 736c-12.8 0-25.6 12.8-25.6 25.6v115.2c0 19.2-12.8 32-32 32H172.8c-19.2 0-32-12.8-32-32v-576h646.4c12.8 0 25.6-12.8 25.6-25.6s-12.8-25.6-25.6-25.6H627.2V140.8c0-38.4-32-64-64-64H275.2c-38.4 0-64 32-64 64v108.8H44.8c-12.8 0-25.6 12.8-25.6 25.6s12.8 25.6 25.6 25.6h51.2v576c0 44.8 32 76.8 76.8 76.8h486.4c44.8 0 76.8-32 76.8-76.8v-115.2c6.4-12.8-6.4-25.6-19.2-25.6zM256 140.8c0-12.8 12.8-19.2 19.2-19.2h288c12.8 0 19.2 6.4 19.2 19.2v108.8H256V140.8z</Geometry>
|
||||
<Geometry x:Key="Icon_Update">M392.708 585.955l449.15-449.15 45.396 45.396-449.15 449.15z M832.5 833.3H190.8V191.6h385v-64.2h-385c-35.3 0-64.2 28.9-64.2 64.2v641.7c0 35.3 28.9 64.2 64.2 64.2h641.7c35.3 0 64.2-28.9 64.2-64.2v-385h-64.2v385z</Geometry>
|
||||
<Geometry x:Key="Icon_Reset">M1024 908.032c0 0-98.112-554.688-597.312-554.688L426.688 139.968 0 523.968l426.688 358.4L426.688 636.288C697.6 636.288 882.688 659.968 1024 908.032L1024 908.032zM1024 908.032</Geometry>
|
||||
<Geometry x:Key="Icon_Task">M337.549318 593.908498l97.849562 97.849562c7.643074 7.643074 17.660218 11.464099 27.677363 11.464099 10.013051 0 20.030196-3.821025 27.669176-11.464099l195.700147-195.695031c15.286148-15.286148 15.286148-40.065508 0-55.350632-15.286148-15.286148-40.060391-15.286148-55.346539 0L463.076242 608.734158l-70.176292-70.173223c-15.286148-15.281031-40.064484-15.281031-55.350632 0C322.268286 553.844014 322.268286 578.626443 337.549318 593.908498zM864.593965 127.748523 693.416328 127.748523c6.260587 8.999978 9.94142 19.928888 9.94142 31.722492s-3.680832 22.722514-9.94142 31.722492l139.455145 0 0 704.375425L191.022103 895.568932 191.022103 191.193507 329.559343 191.193507c-6.260587-8.999978-9.94142-19.928888-9.94142-31.722492s3.680832-22.722514 9.94142-31.722492L159.299611 127.748523c-17.520025 0-31.722492 14.202467-31.722492 31.722492l0 767.82041c0 17.520025 14.202467 31.722492 31.722492 31.722492l705.294354 0c17.520025 0 31.722492-14.202467 31.722492-31.722492L896.316457 159.471015C896.316457 141.950989 882.113991 127.748523 864.593965 127.748523zM444.80204 256.002558l132.0065 0c33.909297 0 61.398372-27.489074 61.398372-61.398372l0-5.457292c0-33.909297-27.489074-61.398372-61.398372-61.398372l-2.593058 0c2.105964-5.276167 3.275603-11.027148 3.275603-17.055444 0-25.432229-20.61655-46.048779-46.048779-46.048779l-38.885636 0c-25.432229 0-46.048779 20.61655-46.048779 46.048779 0 6.028297 1.170662 11.779278 3.276626 17.055444l-4.982478 0c-33.909297 0-61.398372 27.489074-61.398372 61.398372l0 5.457292C383.403668 228.513484 410.892743 256.002558 444.80204 256.002558z</Geometry>
|
||||
<Geometry x:Key="Icon_SetManage">M740 389.642c-51.881-14.24-90-61.74-90-118.142 0-56.403 38.119-103.902 90-118.142V42.143C740 24.391 754.391 10 772.143 10c17.753 0 32.144 14.391 32.144 32.143v111.021C856.531 167.164 895 214.84 895 271.5c0 56.66-38.469 104.337-90.713 118.336v484.02c0 17.753-14.391 32.144-32.144 32.144C754.391 906 740 891.609 740 873.857V389.642z m62.287-167.26C793.135 216.446 782.22 213 770.5 213c-12.026 0-23.204 3.629-32.5 9.851-15.678 10.494-26 28.366-26 48.649s10.322 38.155 26 48.649c9.296 6.222 20.474 9.851 32.5 9.851 11.72 0 22.635-3.447 31.787-9.381C818.364 310.193 829 292.089 829 271.5s-10.636-38.693-26.713-49.119z m-323 337.662C469.935 553.704 458.65 550 446.5 550c-11.598 0-22.407 3.375-31.5 9.196-16.237 10.396-27 28.593-27 49.304 0 20.71 10.763 38.908 27 49.304 9.093 5.821 19.902 9.196 31.5 9.196 12.15 0 23.435-3.704 32.787-10.044C494.804 646.436 505 628.659 505 608.5c0-20.159-10.196-37.936-25.713-48.456zM415 32.144C415 14.39 429.391 0 447.143 0c17.753 0 32.144 14.391 32.144 32.143v458.294C531.022 504.773 569 552.201 569 608.5s-37.978 103.727-89.713 118.063v147.294c0 17.752-14.391 32.143-32.144 32.143C429.391 906 415 891.609 415 873.857V726.912c-52.39-13.9-91-61.647-91-118.412 0-56.765 38.61-104.511 91-118.412V32.143zM154.287 222.38C145.135 216.447 134.22 213 122.5 213c-12.026 0-23.204 3.629-32.5 9.851-15.678 10.494-26 28.366-26 48.649s10.322 38.155 26 48.649c9.296 6.222 20.474 9.851 32.5 9.851 11.72 0 22.635-3.447 31.787-9.381C170.364 310.193 181 292.089 181 271.5s-10.636-38.693-26.713-49.119zM90 153.358V42.143C90 24.391 104.391 10 122.143 10c17.753 0 32.144 14.391 32.144 32.143v111.021C206.531 167.164 245 214.84 245 271.5c0 56.66-38.469 104.337-90.713 118.336v484.02c0 17.753-14.391 32.144-32.144 32.144C104.391 906 90 891.609 90 873.857V389.642c-51.881-14.24-90-61.74-90-118.142 0-56.403 38.119-103.902 90-118.142z</Geometry>
|
||||
<Geometry x:Key="Icon_SmallProgram">M626.176 279.552c74.24 0 134.656 55.808 134.656 124.928 0 21.504-6.144 42.496-17.408 61.44-16.896 27.648-44.032 48.128-76.8 57.856-8.704 2.56-15.36 3.584-21.504 3.584-14.336 0-25.6-11.264-25.6-25.6s11.264-25.6 25.6-25.6c1.024 0 3.072 0 5.632-1.024 22.016-6.144 39.424-18.944 49.152-35.84 6.656-10.752 9.728-22.528 9.728-34.816 0-40.448-37.376-73.728-82.944-73.728-15.872 0-31.232 4.096-45.056 11.776-24.064 13.824-38.4 36.864-38.4 61.952v214.528c0 43.52-24.064 83.456-64 105.984-21.504 12.288-45.568 18.432-70.144 18.432-74.24 0-134.656-55.808-134.656-124.928 0-21.504 6.144-42.496 17.408-61.44 16.896-27.648 44.032-48.128 76.8-57.856 9.216-2.56 15.36-3.584 21.504-3.584 14.336 0 25.6 11.264 25.6 25.6s-11.264 25.6-25.6 25.6c-1.024 0-3.072 0-5.632 1.024-22.016 6.656-39.424 19.456-49.152 35.84-6.656 10.752-9.728 22.528-9.728 34.816 0 40.448 37.376 73.728 83.456 73.728 15.872 0 31.232-4.096 45.056-11.776 24.064-13.824 38.4-36.864 38.4-61.952V404.48c0-43.52 24.064-83.456 64-105.984 20.992-12.8 45.056-18.944 69.632-18.944z m-520.704 230.4c0 226.304 183.296 409.6 409.6 409.6s409.6-183.296 409.6-409.6-183.296-409.6-409.6-409.6-409.6 183.296-409.6 409.6z m-51.2 0c0-254.464 206.336-460.8 460.8-460.8s460.8 206.336 460.8 460.8-206.336 460.8-460.8 460.8-460.8-206.336-460.8-460.8z m0 0</Geometry>
|
||||
</ResourceDictionary>
|
||||
|
After Width: | Height: | Size: 143 KiB |
|
After Width: | Height: | Size: 3.8 KiB |
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 5.6 KiB |
|
After Width: | Height: | Size: 6.2 KiB |
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 6.0 KiB |
|
After Width: | Height: | Size: 3.7 KiB |
|
After Width: | Height: | Size: 5.1 KiB |
|
After Width: | Height: | Size: 4.2 KiB |
|
After Width: | Height: | Size: 8.3 KiB |
|
After Width: | Height: | Size: 6.2 KiB |
@@ -0,0 +1,286 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
|
||||
namespace WCS_YongFeng
|
||||
{
|
||||
/// <summary>
|
||||
/// 16进制使用的隔离符枚举
|
||||
/// </summary>
|
||||
public enum Enum16Hex
|
||||
{
|
||||
None,//无
|
||||
Blank,//空格
|
||||
OX, //OX
|
||||
Ox //Ox
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 计算进制类助手
|
||||
/// </summary>
|
||||
public class AlgorithmHelper
|
||||
{
|
||||
#region 十进制转十六进制
|
||||
public string From10To16(int d)
|
||||
{
|
||||
string hex = "";
|
||||
if (d < 16)
|
||||
{
|
||||
hex = BeginChange(d);
|
||||
}
|
||||
else
|
||||
{
|
||||
int c;
|
||||
int s = 0;
|
||||
int n = d;
|
||||
int temp = d;
|
||||
while (n >= 16)
|
||||
{
|
||||
s++;
|
||||
n = n / 16;
|
||||
}
|
||||
string[] m = new string[s];
|
||||
int i = 0;
|
||||
do
|
||||
{
|
||||
c = d / 16;
|
||||
m[i++] = BeginChange(d % 16);//判断是否大于10,如果大于10,则转换为A~F的格式
|
||||
d = c;
|
||||
} while (c >= 16);
|
||||
hex = BeginChange(d);
|
||||
for (int j = m.Length - 1; j >= 0; j--)
|
||||
{
|
||||
hex += m[j];
|
||||
}
|
||||
}
|
||||
return hex;
|
||||
}
|
||||
//判断是否为10~15之间的数,如果是则进行转换
|
||||
public string BeginChange(int d)
|
||||
{
|
||||
string hex = "";
|
||||
switch (d)
|
||||
{
|
||||
case 10:
|
||||
hex = "A";
|
||||
break;
|
||||
case 11:
|
||||
hex = "B";
|
||||
break;
|
||||
case 12:
|
||||
hex = "C";
|
||||
break;
|
||||
case 13:
|
||||
hex = "D";
|
||||
break;
|
||||
case 14:
|
||||
hex = "E";
|
||||
break;
|
||||
case 15:
|
||||
hex = "F";
|
||||
break;
|
||||
default:
|
||||
hex = d.ToString();
|
||||
break;
|
||||
}
|
||||
return hex;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 其他函数【16进制中的隔离符处理】
|
||||
|
||||
/// <summary>
|
||||
/// 把16进制隔离符转换成实际的字符串
|
||||
/// </summary>
|
||||
/// <param name="enum16">16进制隔离符枚举</param>
|
||||
/// <returns></returns>
|
||||
private string AddSplitString(Enum16Hex enum16)
|
||||
{
|
||||
switch (enum16)
|
||||
{
|
||||
case Enum16Hex.None:
|
||||
return "";
|
||||
case Enum16Hex.Ox:
|
||||
return "0x";
|
||||
case Enum16Hex.OX:
|
||||
return "0X";
|
||||
case Enum16Hex.Blank:
|
||||
return " ";
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 去掉16进制字符串中的隔离符【 如:" ", "0x", "0X"】
|
||||
/// </summary>
|
||||
/// <param name="inString">需要转换的字符串数据</param>
|
||||
/// <returns></returns>
|
||||
private string DeleteSplitString(string inString)
|
||||
{
|
||||
string outString = string.Empty;
|
||||
string[] delArray = { " ", "0x", "0X" };
|
||||
if (inString.Contains(" ") || inString.Contains("0x") || inString.Contains("0X"))//存在隔离符
|
||||
{
|
||||
string[] str = inString.Split(delArray,
|
||||
System.StringSplitOptions.RemoveEmptyEntries);//以隔离符进行转换数组,去掉隔离符,去掉空格。
|
||||
for (int i = 0; i < str.Length; i++)
|
||||
{
|
||||
outString += str[i].ToString();
|
||||
}
|
||||
return outString;
|
||||
}
|
||||
else//不存在隔离符就直接返回
|
||||
{
|
||||
return inString;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 汉字、英文、纯16进制数、byte[]之间的各种转换方法
|
||||
|
||||
/// <summary>
|
||||
/// 字符串转换成16进制
|
||||
/// </summary>
|
||||
/// <param name="inSting"></param>
|
||||
/// <param name="enum16"></param>
|
||||
/// <returns></returns>
|
||||
public string StringTo16(string inSting, Enum16Hex enum16)
|
||||
{
|
||||
string outString = "";
|
||||
byte[] bytes = Encoding.Default.GetBytes(inSting);
|
||||
for (int i = 0; i < bytes.Length; i++)
|
||||
{
|
||||
int strInt = Convert.ToInt16(bytes[i] - '\0');
|
||||
string s = strInt.ToString("X");
|
||||
if (s.Length == 1)
|
||||
{
|
||||
s = "0" + s;
|
||||
}
|
||||
s = s + AddSplitString(enum16);
|
||||
outString += s;
|
||||
}
|
||||
return outString;
|
||||
}
|
||||
/// <summary>
|
||||
/// 字符串转换成byte[]
|
||||
/// </summary>
|
||||
/// <param name="inSting"></param>
|
||||
/// <returns></returns>
|
||||
public byte[] StringToBtyes(string inSting)
|
||||
{
|
||||
inSting = StringTo16(inSting, Enum16Hex.None);//把字符串转换成16进制数
|
||||
return From16ToBtyes(inSting);//把16进制数转换成byte[]
|
||||
}
|
||||
/// <summary>
|
||||
/// 把16进制字符串转换成byte[]
|
||||
/// </summary>
|
||||
/// <param name="inSting"></param>
|
||||
/// <returns></returns>
|
||||
public byte[] From16ToBtyes(string inSting)
|
||||
{
|
||||
inSting = DeleteSplitString(inSting);//去掉16进制中的隔离符
|
||||
byte[] stringByte = new byte[inSting.Length / 2];
|
||||
for (int a = 0, b = 0; a < inSting.Length; a = a + 2, b++)
|
||||
{
|
||||
try
|
||||
{
|
||||
string str = inSting.Substring(a, 2);
|
||||
stringByte[b] = (byte)Convert.ToInt16(str, 16);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw new Exception("输入的数据不是纯16进制数! 参考错误信息:" + ex.Message);
|
||||
}
|
||||
}
|
||||
return stringByte;
|
||||
}
|
||||
/// <summary>
|
||||
/// 把16进制字符串转换成英文数字和汉字混合格式
|
||||
/// </summary>
|
||||
/// <param name="inSting">需要转换的16进制字符串</param>
|
||||
/// <returns></returns>
|
||||
public string From16ToString(string inSting)
|
||||
{
|
||||
inSting = DeleteSplitString(inSting);
|
||||
return Encoding.Default.GetString(From16ToBtyes(inSting));
|
||||
}
|
||||
/// <summary>
|
||||
/// 把byte[]转换成String
|
||||
/// </summary>
|
||||
/// <param name="bytes">需要转换的byte[]</param>
|
||||
/// <param name="enum16">隔离符</param>
|
||||
/// <returns></returns>
|
||||
public string BytesToString(byte[] bytes, Enum16Hex enum16)
|
||||
{
|
||||
return From16ToString(BytesTo16(bytes, enum16));
|
||||
}
|
||||
/// <summary>
|
||||
/// byte[]转换成16进制字符串
|
||||
/// </summary>
|
||||
/// <param name="bytes">需要转换的byte[]</param>
|
||||
/// <param name="enum16"></param>
|
||||
/// <returns></returns>
|
||||
public string BytesTo16(byte[] bytes, Enum16Hex enum16)
|
||||
{
|
||||
string outString = "";
|
||||
for (int i = 0; i < bytes.Length; i++)
|
||||
{
|
||||
if (bytes[i].ToString("X").Length < 2)//16进制数为一位时前面填充0
|
||||
{
|
||||
outString += "0" + bytes[i].ToString("X") + AddSplitString(enum16);//转成16进制数据
|
||||
}
|
||||
else
|
||||
{
|
||||
outString += bytes[i].ToString("X") + AddSplitString(enum16);//转成16进制数据
|
||||
}
|
||||
}
|
||||
return outString;
|
||||
}
|
||||
/// <summary>
|
||||
/// 把byte[]直接转换成字符串,直接以2进制形式显示出来。
|
||||
/// </summary>
|
||||
/// <param name="bytes"></param>
|
||||
/// <returns></returns>
|
||||
public string BytesTo2String(byte[] bytes, Enum16Hex enum16)
|
||||
{
|
||||
string outString = "";
|
||||
for (int i = 0; i < bytes.Length; i++)
|
||||
{
|
||||
string tempString = Convert.ToString(bytes[i], 2);
|
||||
if (tempString.Length != 8)
|
||||
{
|
||||
string add0 = "";
|
||||
for (int j = 0; j < 8 - tempString.Length; j++)
|
||||
{
|
||||
add0 += "0";
|
||||
}
|
||||
outString += add0 + tempString + AddSplitString(enum16);
|
||||
}
|
||||
else
|
||||
{
|
||||
outString += tempString + AddSplitString(enum16);
|
||||
}
|
||||
}
|
||||
return outString;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 把字符串传进来,输出一个byte数组【可以把此byte数组直接发送到串口中】
|
||||
/// </summary>
|
||||
/// <param name="inString">要转换的字符串</param>
|
||||
/// <param name="is16">是否已经是16进制数据,true时已经是(已经转换好的数据),false时不是(需要内部转换)</param>
|
||||
/// <returns>输出一个byte数组</returns>
|
||||
public byte[] StringToBytes(string inString, bool is16)
|
||||
{
|
||||
if (is16)
|
||||
{
|
||||
return From16ToBtyes(inString);
|
||||
}
|
||||
else
|
||||
{
|
||||
return StringToBtyes(inString);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
|
||||
namespace WCS_YongFeng
|
||||
{
|
||||
public static class Extends
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取枚举成员的值(this是扩展方法的标志)
|
||||
/// </summary>
|
||||
/// <param name="obj"></param>
|
||||
/// <returns></returns>
|
||||
public static int GetIndexInt(this Enum obj)
|
||||
{
|
||||
return Convert.ToInt32(obj);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取枚举成员的值(this是扩展方法的标志)
|
||||
/// </summary>
|
||||
/// <param name="obj"></param>
|
||||
/// <returns></returns>
|
||||
public static string GetIndexString(this Enum obj)
|
||||
{
|
||||
return Convert.ToInt32(obj).ToString();
|
||||
}
|
||||
|
||||
public static T ToEnum<T>(this string obj) where T : struct
|
||||
{
|
||||
if (string.IsNullOrEmpty(obj))
|
||||
{
|
||||
return default(T);
|
||||
}
|
||||
try
|
||||
{
|
||||
return (T)Enum.Parse(typeof(T), obj, true);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return default(T);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取指定枚举成员的描述
|
||||
/// </summary>
|
||||
/// <param name="obj"></param>
|
||||
/// <returns></returns>
|
||||
public static string ToDescriptionString(this Enum obj)
|
||||
{
|
||||
var attribs = (DescriptionAttribute[])obj.GetType().GetField(obj.ToString()).GetCustomAttributes(typeof(DescriptionAttribute), false);
|
||||
return attribs.Length > 0 ? attribs[0].Description : obj.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据枚举值,获取指定枚举类的成员描述
|
||||
/// </summary>
|
||||
/// <param name="type"></param>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
public static string GetDescriptionString(this Type type, int? id)
|
||||
{
|
||||
var values = from Enum e in Enum.GetValues(type)
|
||||
select new { id = e.GetIndexInt(), name = e.ToDescriptionString() };
|
||||
|
||||
if (!id.HasValue) id = 0;
|
||||
|
||||
try
|
||||
{
|
||||
return values.ToList().Find(c => c.id == id).name;
|
||||
}
|
||||
catch
|
||||
{
|
||||
return "";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,179 @@
|
||||
using DMSkin.Core;
|
||||
|
||||
using HslCommunication.Profinet.Siemens;
|
||||
|
||||
using System.Linq;
|
||||
|
||||
namespace WCS_YongFeng.Service.Comm
|
||||
{
|
||||
public static class InitBll
|
||||
{
|
||||
private static BaseDal<I_Device> _deviceDb = new BaseDal<I_Device>();
|
||||
private static BaseDal<I_Pose> _poseDb = new BaseDal<I_Pose>();
|
||||
private static BaseDal<I_Task> _taskDb = new BaseDal<I_Task>();
|
||||
private static BaseDal<T_TaskFlow> _taskflowDb = new BaseDal<T_TaskFlow>();
|
||||
private static BaseDal<I_Device_Address> _deviceAddressDb = new BaseDal<I_Device_Address>();
|
||||
|
||||
public static BllResult BuildInit()
|
||||
{
|
||||
|
||||
var deviceresult = BuildDevice();
|
||||
var poseresult = BuildPose();
|
||||
var taskresult = BuildTask();
|
||||
var taskflowresult = BuildTaskFlow();
|
||||
|
||||
if (!deviceresult.Success)
|
||||
{
|
||||
return BllResult.Error($"初始化设备列表失败:{deviceresult.Msg}");
|
||||
}
|
||||
if (!poseresult.Success)
|
||||
{
|
||||
return BllResult.Error($"初始化坐标列表失败:{poseresult.Msg}");
|
||||
}
|
||||
if (!taskresult.Success)
|
||||
{
|
||||
return BllResult.Error($"初始化任务列表失败:{taskresult.Msg}");
|
||||
}
|
||||
if (!taskflowresult.Success)
|
||||
{
|
||||
return BllResult.Error($"初始化任务流程列表失败:{taskflowresult.Msg}");
|
||||
}
|
||||
return BllResult.Sucess();
|
||||
}
|
||||
private static BllResult BuildDevice()
|
||||
{
|
||||
var deviceResult = _deviceDb.Query(a => a.IsEnable == true);
|
||||
var deviceAddressResult = _deviceAddressDb.Query();
|
||||
|
||||
if (!deviceResult.Success || !deviceAddressResult.Success)
|
||||
{
|
||||
return BllResult.Error($"初始化设备信息异常");
|
||||
}
|
||||
var Device_AddressList = deviceAddressResult.Data;
|
||||
|
||||
foreach (I_Device device in deviceResult.Data)
|
||||
{
|
||||
SiemensHelp help;
|
||||
if (!System.Net.IPAddress.TryParse(device.IP, out System.Net.IPAddress address))
|
||||
{
|
||||
return BllResult.Error($"{device.Name}的IP地址配置错误"); ;
|
||||
}
|
||||
|
||||
var helpG = App.helps.FirstOrDefault(a => a.ip == address.ToString() && a.type == "Siemens");
|
||||
if (helpG != null)
|
||||
{
|
||||
help = (SiemensHelp)helpG;
|
||||
}
|
||||
else
|
||||
{
|
||||
help = new SiemensHelp(SiemensPLCS.S1500, device.IP, "Siemens");
|
||||
App.helps.Add(help);
|
||||
}
|
||||
var ReadAddressList = Device_AddressList.FindAll(a => a.Code == device.Code && a.Type == "Read");
|
||||
var WriteAddressList = Device_AddressList.FindAll(a => a.Code == device.Code && a.Type == "Write");
|
||||
|
||||
if (device.Type == "Srm")
|
||||
{
|
||||
var vM_ReadModel = new VM_SrmRead(device.Name);
|
||||
var vM_WriteModel = new VM_SrmWrite(device.Name);
|
||||
|
||||
F_ServiceModel f_ServiceModel = new F_ServiceModel(device, help, vM_ReadModel, vM_WriteModel, ReadAddressList, WriteAddressList);
|
||||
App.f_ServiceModels.Add(f_ServiceModel);
|
||||
App.i_Excutes.Add(new SingleSrmExcute(f_ServiceModel));
|
||||
App.vM_SrmReads.Add(vM_ReadModel);
|
||||
App.vM_SrmWrites.Add(vM_WriteModel);
|
||||
}
|
||||
else if (device.Type == "Entrance" || device.Type == "OutStation")
|
||||
{
|
||||
//地址请求的站台处理
|
||||
var vM_ReadModel = new VM_StationDR(device.Name);
|
||||
var vM_WriteModel = new VM_StationDACK(device.Name);
|
||||
|
||||
F_ServiceModel f_ServiceModel = new F_ServiceModel(device, help, vM_ReadModel, vM_WriteModel, ReadAddressList, WriteAddressList);
|
||||
App.f_ServiceModels.Add(f_ServiceModel);
|
||||
App.i_Excutes.Add(new StationDRExcute(f_ServiceModel));
|
||||
App.vM_StationDRs.Add(vM_ReadModel);
|
||||
App.vM_StationDACKs.Add(vM_WriteModel);
|
||||
}
|
||||
else if (device.Type == "InStation" || device.Type == "Exit")
|
||||
{
|
||||
//地址到达的站台处理
|
||||
var vM_ReadModel = new VM_StationPR(device.Name);
|
||||
var vM_WriteModel = new VM_StationACK(device.Name);
|
||||
|
||||
F_ServiceModel f_ServiceModel = new F_ServiceModel(device, help, vM_ReadModel, vM_WriteModel, ReadAddressList, WriteAddressList);
|
||||
App.f_ServiceModels.Add(f_ServiceModel);
|
||||
App.i_Excutes.Add(new StationPRExcute(f_ServiceModel));
|
||||
App.vM_StationPRs.Add(vM_ReadModel);
|
||||
App.vM_StationACKs.Add(vM_WriteModel);
|
||||
}
|
||||
else if (device.Type == "PointState")
|
||||
{
|
||||
var vM_ReadModel = new VM_StationStste(device.Name);
|
||||
var vM_WriteModel = new VM_StationStsteWrite(device.Name);
|
||||
|
||||
F_ServiceModel f_ServiceModel = new F_ServiceModel(device, help, vM_ReadModel, vM_WriteModel, ReadAddressList, WriteAddressList);
|
||||
App.f_ServiceModels.Add(f_ServiceModel);
|
||||
App.i_Excutes.Add(new StationStateExcute(f_ServiceModel));
|
||||
App.vM_StationStstes.Add(vM_ReadModel);
|
||||
}
|
||||
}
|
||||
return BllResult.Sucess();
|
||||
}
|
||||
|
||||
private static BllResult BuildPose()
|
||||
{
|
||||
var poseResult = _poseDb.Query();
|
||||
if (!poseResult.Success)
|
||||
{
|
||||
return BllResult.Error($"初始化坐标信息异常");
|
||||
}
|
||||
else
|
||||
{
|
||||
App.poseList = poseResult.Data;
|
||||
return BllResult.Sucess();
|
||||
}
|
||||
}
|
||||
|
||||
private static BllResult BuildTask()
|
||||
{
|
||||
var taskResult = _taskDb.Query();
|
||||
if (!taskResult.Success)
|
||||
{
|
||||
if (taskResult.Msg != "未查询到数据")
|
||||
{
|
||||
return BllResult.Error($"初始化任务信息异常");
|
||||
}
|
||||
else
|
||||
{
|
||||
return BllResult.Sucess();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach (var _task in taskResult.Data)
|
||||
{
|
||||
UIExecute.Run(() =>
|
||||
{
|
||||
App.taskList.Add(_task);
|
||||
});
|
||||
}
|
||||
return BllResult.Sucess();
|
||||
}
|
||||
}
|
||||
|
||||
private static BllResult BuildTaskFlow()
|
||||
{
|
||||
var taskflowResult = _taskflowDb.Query();
|
||||
if (!taskflowResult.Success)
|
||||
{
|
||||
return BllResult.Error($"初始化任务流程信息异常");
|
||||
}
|
||||
else
|
||||
{
|
||||
App.taskflowList = taskflowResult.Data;
|
||||
return BllResult.Sucess();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using HslCommunication.LogNet;
|
||||
|
||||
namespace WCS_YongFeng
|
||||
{
|
||||
public class LogExecute
|
||||
{
|
||||
public static ILogNet logNet = new LogNetDateTime("D:\\Log\\Logs", GenerateMode.ByEveryDay);
|
||||
public static ILogNet SrmlogNet = new LogNetDateTime("D:\\Log\\SrmLogs", GenerateMode.ByEveryDay);
|
||||
public static ILogNet ApilogNet = new LogNetDateTime("D:\\Log\\Apilogs", GenerateMode.ByEveryDay);
|
||||
public static ILogNet TibcologNet = new LogNetDateTime("D:\\Log\\Tibcologs", GenerateMode.ByEveryDay);
|
||||
public static ILogNet AutoChecklogNet = new LogNetDateTime("D:\\Log\\AutoChecklogs", GenerateMode.ByEveryDay);
|
||||
public static HslCommunication.BasicFramework.SoftNumericalOrder softNumericalOrder = new HslCommunication.BasicFramework.SoftNumericalOrder("", "yyyyMMdd", 4, @"\numericalOrder.txt");
|
||||
|
||||
public LogExecute()
|
||||
{
|
||||
#region 日志
|
||||
|
||||
//设置日志发布等级及触发时间
|
||||
logNet.SetMessageDegree(HslMessageDegree.INFO);//除DEBUG外,都存储
|
||||
|
||||
#endregion 日志
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using System.IO.Ports;
|
||||
|
||||
namespace WCS_YongFeng
|
||||
{
|
||||
/// <summary>
|
||||
/// 串口助手
|
||||
/// </summary>
|
||||
public class SerialPortHelper
|
||||
{
|
||||
public SerialPort serialPort { get; set; }
|
||||
//获取计算机com口
|
||||
public string[] PortNames { get { return System.IO.Ports.SerialPort.GetPortNames(); } }
|
||||
public AlgorithmHelper algorithmHelper { get; set; }
|
||||
|
||||
public SerialPortHelper()
|
||||
{
|
||||
this.serialPort = new SerialPort();
|
||||
this.algorithmHelper = new AlgorithmHelper();
|
||||
this.serialPort.BaudRate = 9600;
|
||||
this.serialPort.StopBits = StopBits.One;
|
||||
this.serialPort.Parity = Parity.None;
|
||||
this.serialPort.DataBits = 8;
|
||||
}
|
||||
}
|
||||
}
|
||||