This commit is contained in:
commit
892f315b42
|
@ -0,0 +1,575 @@
|
|||
# ---> Unity
|
||||
# This .gitignore file should be placed at the root of your Unity project directory
|
||||
#
|
||||
# Get latest from https://github.com/github/gitignore/blob/main/Unity.gitignore
|
||||
#
|
||||
/[Ll]ibrary/
|
||||
/[Tt]emp/
|
||||
/[Oo]bj/
|
||||
/[Bb]uild/
|
||||
/[Bb]uilds/
|
||||
/[Ll]ogs/
|
||||
/[Uu]ser[Ss]ettings/
|
||||
|
||||
# MemoryCaptures can get excessive in size.
|
||||
# They also could contain extremely sensitive data
|
||||
/[Mm]emoryCaptures/
|
||||
|
||||
# Recordings can get excessive in size
|
||||
/[Rr]ecordings/
|
||||
|
||||
# Uncomment this line if you wish to ignore the asset store tools plugin
|
||||
# /[Aa]ssets/AssetStoreTools*
|
||||
|
||||
# Autogenerated Jetbrains Rider plugin
|
||||
/[Aa]ssets/Plugins/Editor/JetBrains*
|
||||
|
||||
# Visual Studio cache directory
|
||||
.vs/
|
||||
|
||||
# Gradle cache directory
|
||||
.gradle/
|
||||
|
||||
# Autogenerated VS/MD/Consulo solution and project files
|
||||
ExportedObj/
|
||||
.consulo/
|
||||
*.csproj
|
||||
*.unityproj
|
||||
*.sln
|
||||
*.suo
|
||||
*.tmp
|
||||
*.user
|
||||
*.userprefs
|
||||
*.pidb
|
||||
*.booproj
|
||||
*.svd
|
||||
*.pdb
|
||||
*.mdb
|
||||
*.opendb
|
||||
*.VC.db
|
||||
|
||||
# Unity3D generated meta files
|
||||
*.pidb.meta
|
||||
*.pdb.meta
|
||||
*.mdb.meta
|
||||
|
||||
# Unity3D generated file on crash reports
|
||||
sysinfo.txt
|
||||
|
||||
# Builds
|
||||
*.apk
|
||||
*.aab
|
||||
*.unitypackage
|
||||
*.app
|
||||
|
||||
# Crashlytics generated file
|
||||
crashlytics-build.properties
|
||||
|
||||
# Packed Addressables
|
||||
/[Aa]ssets/[Aa]ddressable[Aa]ssets[Dd]ata/*/*.bin*
|
||||
|
||||
# Temporary auto-generated Android Assets
|
||||
/[Aa]ssets/[Ss]treamingAssets/aa.meta
|
||||
/[Aa]ssets/[Ss]treamingAssets/aa/*
|
||||
|
||||
# ---> JetBrains
|
||||
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
|
||||
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
|
||||
|
||||
# User-specific stuff
|
||||
.idea/**/workspace.xml
|
||||
.idea/**/tasks.xml
|
||||
.idea/**/usage.statistics.xml
|
||||
.idea/**/dictionaries
|
||||
.idea/**/shelf
|
||||
|
||||
# AWS User-specific
|
||||
.idea/**/aws.xml
|
||||
|
||||
# Generated files
|
||||
.idea/**/contentModel.xml
|
||||
|
||||
# Sensitive or high-churn files
|
||||
.idea/**/dataSources/
|
||||
.idea/**/dataSources.ids
|
||||
.idea/**/dataSources.local.xml
|
||||
.idea/**/sqlDataSources.xml
|
||||
.idea/**/dynamic.xml
|
||||
.idea/**/uiDesigner.xml
|
||||
.idea/**/dbnavigator.xml
|
||||
|
||||
# Gradle
|
||||
.idea/**/gradle.xml
|
||||
.idea/**/libraries
|
||||
|
||||
# Gradle and Maven with auto-import
|
||||
# When using Gradle or Maven with auto-import, you should exclude module files,
|
||||
# since they will be recreated, and may cause churn. Uncomment if using
|
||||
# auto-import.
|
||||
# .idea/artifacts
|
||||
# .idea/compiler.xml
|
||||
# .idea/jarRepositories.xml
|
||||
# .idea/modules.xml
|
||||
# .idea/*.iml
|
||||
# .idea/modules
|
||||
# *.iml
|
||||
# *.ipr
|
||||
|
||||
# CMake
|
||||
cmake-build-*/
|
||||
|
||||
# Mongo Explorer plugin
|
||||
.idea/**/mongoSettings.xml
|
||||
|
||||
# File-based project format
|
||||
*.iws
|
||||
|
||||
# IntelliJ
|
||||
out/
|
||||
|
||||
# mpeltonen/sbt-idea plugin
|
||||
.idea_modules/
|
||||
|
||||
# JIRA plugin
|
||||
atlassian-ide-plugin.xml
|
||||
|
||||
# Cursive Clojure plugin
|
||||
.idea/replstate.xml
|
||||
|
||||
# SonarLint plugin
|
||||
.idea/sonarlint/
|
||||
|
||||
# Crashlytics plugin (for Android Studio and IntelliJ)
|
||||
com_crashlytics_export_strings.xml
|
||||
crashlytics.properties
|
||||
crashlytics-build.properties
|
||||
fabric.properties
|
||||
|
||||
# Editor-based Rest Client
|
||||
.idea/httpRequests
|
||||
|
||||
# Android studio 3.1+ serialized cache file
|
||||
.idea/caches/build_file_checksums.ser
|
||||
|
||||
# ---> VisualStudio
|
||||
## 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/main/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/
|
||||
[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
|
||||
*.tlog
|
||||
*.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 6 auto-generated project file (contains which files were open etc.)
|
||||
*.vbp
|
||||
|
||||
# Visual Studio 6 workspace and project file (working project files containing files to include in project)
|
||||
*.dsw
|
||||
*.dsp
|
||||
|
||||
# Visual Studio 6 technical files
|
||||
*.ncb
|
||||
*.aps
|
||||
|
||||
# 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/
|
||||
|
||||
# Visual Studio History (VSHistory) files
|
||||
.vshistory/
|
||||
|
||||
# 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
|
||||
|
||||
# VS Code files for those working on multiple tools
|
||||
.vscode/*
|
||||
!.vscode/settings.json
|
||||
!.vscode/tasks.json
|
||||
!.vscode/launch.json
|
||||
!.vscode/extensions.json
|
||||
*.code-workspace
|
||||
|
||||
# Local History for Visual Studio Code
|
||||
.history/
|
||||
|
||||
# Windows Installer files from build outputs
|
||||
*.cab
|
||||
*.msi
|
||||
*.msix
|
||||
*.msm
|
||||
*.msp
|
||||
|
||||
# JetBrains Rider
|
||||
*.sln.iml
|
||||
|
||||
# ---> VisualStudioCode
|
||||
.vscode/*
|
||||
!.vscode/settings.json
|
||||
!.vscode/tasks.json
|
||||
!.vscode/launch.json
|
||||
!.vscode/extensions.json
|
||||
!.vscode/*.code-snippets
|
||||
|
||||
# Local History for Visual Studio Code
|
||||
.history/
|
||||
|
||||
# Built Visual Studio Code Extensions
|
||||
*.vsix
|
||||
|
||||
# custom
|
||||
.idea
|
||||
.plastic
|
||||
.vscode
|
||||
/Assets/StreamingAssets/yoo
|
||||
yoo/
|
||||
Bundles/
|
||||
Profiler/
|
|
@ -0,0 +1,78 @@
|
|||
{
|
||||
"handle": "88.123.99/638504356449571895",
|
||||
"templateVersion": "Template-1.0.0",
|
||||
"value": [
|
||||
{
|
||||
"auth": null,
|
||||
"index": 0,
|
||||
"data": {
|
||||
"format": "string",
|
||||
"value": "order"
|
||||
},
|
||||
"type": "Tags"
|
||||
},
|
||||
{
|
||||
"auth": null,
|
||||
"index": 1,
|
||||
"data": {
|
||||
"format": "String",
|
||||
"value": ""
|
||||
},
|
||||
"type": "OderNumber"
|
||||
},
|
||||
{
|
||||
"auth": null,
|
||||
"index": 2,
|
||||
"data": {
|
||||
"format": "String",
|
||||
"value": ""
|
||||
},
|
||||
"type": "ProductCode"
|
||||
},
|
||||
{
|
||||
"auth": null,
|
||||
"index": 3,
|
||||
"data": {
|
||||
"format": "String",
|
||||
"value": ""
|
||||
},
|
||||
"type": "ProductName"
|
||||
},
|
||||
{
|
||||
"auth": null,
|
||||
"index": 4,
|
||||
"data": {
|
||||
"format": "String",
|
||||
"value": ""
|
||||
},
|
||||
"type": "OrderState"
|
||||
},
|
||||
{
|
||||
"auth": null,
|
||||
"index": 5,
|
||||
"data": {
|
||||
"format": "DateTime",
|
||||
"value": "0001/1/1 0:00:00"
|
||||
},
|
||||
"type": "CreateTime"
|
||||
},
|
||||
{
|
||||
"auth": null,
|
||||
"index": 6,
|
||||
"data": {
|
||||
"format": "DateTime",
|
||||
"value": "0001/1/1 0:00:00"
|
||||
},
|
||||
"type": "UpdateTime"
|
||||
},
|
||||
{
|
||||
"auth": null,
|
||||
"index": 7,
|
||||
"data": {
|
||||
"format": "DateTime",
|
||||
"value": "0001/1/1 0:00:00"
|
||||
},
|
||||
"type": "FinishTime"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,79 @@
|
|||
{
|
||||
"prefix": "88.123.99",
|
||||
"version": "1.0.0",
|
||||
"description": "This is a template",
|
||||
"items": [
|
||||
{
|
||||
"name": "标签",
|
||||
"idType": "tags",
|
||||
"metaData": {
|
||||
"type": "string",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "订单编号",
|
||||
"idType": "OderNumber",
|
||||
"metaData": {
|
||||
"type": "String",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "产品编码",
|
||||
"idType": "ProductCode",
|
||||
"metaData": {
|
||||
"type": "String",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "产品名称",
|
||||
"idType": "ProductName",
|
||||
"metaData": {
|
||||
"type": "String",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "订单状态",
|
||||
"idType": "OrderState",
|
||||
"metaData": {
|
||||
"type": "String",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "下单时间",
|
||||
"idType": "CreateTime",
|
||||
"metaData": {
|
||||
"type": "DateTime",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "更新时间",
|
||||
"idType": "UpdateTime",
|
||||
"metaData": {
|
||||
"type": "DateTime",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "完成时间",
|
||||
"idType": "FinishTime",
|
||||
"metaData": {
|
||||
"type": "DateTime",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,87 @@
|
|||
{
|
||||
"handle": "88.123.99/638504356450474051",
|
||||
"templateVersion": "Template-1.0.0",
|
||||
"value": [
|
||||
{
|
||||
"auth": null,
|
||||
"index": 0,
|
||||
"data": {
|
||||
"format": "string",
|
||||
"value": ""
|
||||
},
|
||||
"type": "Tags"
|
||||
},
|
||||
{
|
||||
"auth": null,
|
||||
"index": 1,
|
||||
"data": {
|
||||
"format": "String",
|
||||
"value": ""
|
||||
},
|
||||
"type": "Number"
|
||||
},
|
||||
{
|
||||
"auth": null,
|
||||
"index": 2,
|
||||
"data": {
|
||||
"format": "String",
|
||||
"value": ""
|
||||
},
|
||||
"type": "Name"
|
||||
},
|
||||
{
|
||||
"auth": null,
|
||||
"index": 3,
|
||||
"data": {
|
||||
"format": "String",
|
||||
"value": ""
|
||||
},
|
||||
"type": "Model"
|
||||
},
|
||||
{
|
||||
"auth": null,
|
||||
"index": 4,
|
||||
"data": {
|
||||
"format": "String",
|
||||
"value": ""
|
||||
},
|
||||
"type": "Type"
|
||||
},
|
||||
{
|
||||
"auth": null,
|
||||
"index": 5,
|
||||
"data": {
|
||||
"format": "String",
|
||||
"value": ""
|
||||
},
|
||||
"type": "Description"
|
||||
},
|
||||
{
|
||||
"auth": null,
|
||||
"index": 6,
|
||||
"data": {
|
||||
"format": "String",
|
||||
"value": ""
|
||||
},
|
||||
"type": "Trace"
|
||||
},
|
||||
{
|
||||
"auth": null,
|
||||
"index": 7,
|
||||
"data": {
|
||||
"format": "String",
|
||||
"value": ""
|
||||
},
|
||||
"type": "Manufacturer"
|
||||
},
|
||||
{
|
||||
"auth": null,
|
||||
"index": 8,
|
||||
"data": {
|
||||
"format": "DateTime",
|
||||
"value": "0001/1/1 0:00:00"
|
||||
},
|
||||
"type": "ManufactureDate"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,88 @@
|
|||
{
|
||||
"prefix": "88.123.99",
|
||||
"version": "1.0.0",
|
||||
"description": "This is a template",
|
||||
"items": [
|
||||
{
|
||||
"name": "标签",
|
||||
"idType": "tags",
|
||||
"metaData": {
|
||||
"type": "string",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "编号",
|
||||
"idType": "Number",
|
||||
"metaData": {
|
||||
"type": "String",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "名称",
|
||||
"idType": "Name",
|
||||
"metaData": {
|
||||
"type": "String",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "型号",
|
||||
"idType": "Model",
|
||||
"metaData": {
|
||||
"type": "String",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "类型",
|
||||
"idType": "Type",
|
||||
"metaData": {
|
||||
"type": "String",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "描述",
|
||||
"idType": "Description",
|
||||
"metaData": {
|
||||
"type": "String",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "来源",
|
||||
"idType": "Trace",
|
||||
"metaData": {
|
||||
"type": "String",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "生产厂家",
|
||||
"idType": "Manufacturer",
|
||||
"metaData": {
|
||||
"type": "String",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "生产日期",
|
||||
"idType": "ManufactureDate",
|
||||
"metaData": {
|
||||
"type": "DateTime",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,42 @@
|
|||
{
|
||||
"handle": "88.123.99/638504356450486389",
|
||||
"templateVersion": "Template-1.0.0",
|
||||
"value": [
|
||||
{
|
||||
"auth": null,
|
||||
"index": 0,
|
||||
"data": {
|
||||
"format": "string",
|
||||
"value": ""
|
||||
},
|
||||
"type": "Tags"
|
||||
},
|
||||
{
|
||||
"auth": null,
|
||||
"index": 1,
|
||||
"data": {
|
||||
"format": "String",
|
||||
"value": ""
|
||||
},
|
||||
"type": "MaterialName"
|
||||
},
|
||||
{
|
||||
"auth": null,
|
||||
"index": 2,
|
||||
"data": {
|
||||
"format": "String",
|
||||
"value": ""
|
||||
},
|
||||
"type": "MaterialType"
|
||||
},
|
||||
{
|
||||
"auth": null,
|
||||
"index": 3,
|
||||
"data": {
|
||||
"format": "String",
|
||||
"value": ""
|
||||
},
|
||||
"type": "ManufactureDate"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
"prefix": "88.123.99",
|
||||
"version": "1.0.0",
|
||||
"description": "This is a template",
|
||||
"items": [
|
||||
{
|
||||
"name": "标签",
|
||||
"idType": "tags",
|
||||
"metaData": {
|
||||
"type": "string",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "物料名称",
|
||||
"idType": "MaterialName",
|
||||
"metaData": {
|
||||
"type": "String",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "物料类型",
|
||||
"idType": "MaterialType",
|
||||
"metaData": {
|
||||
"type": "String",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "生产日期",
|
||||
"idType": "ManufactureDate",
|
||||
"metaData": {
|
||||
"type": "String",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,69 @@
|
|||
{
|
||||
"handle": "88.123.99/638504356450495496",
|
||||
"templateVersion": "Template-1.0.0",
|
||||
"value": [
|
||||
{
|
||||
"auth": null,
|
||||
"index": 0,
|
||||
"data": {
|
||||
"format": "string",
|
||||
"value": ""
|
||||
},
|
||||
"type": "Tags"
|
||||
},
|
||||
{
|
||||
"auth": null,
|
||||
"index": 1,
|
||||
"data": {
|
||||
"format": "String",
|
||||
"value": ""
|
||||
},
|
||||
"type": "ProductName"
|
||||
},
|
||||
{
|
||||
"auth": null,
|
||||
"index": 2,
|
||||
"data": {
|
||||
"format": "String",
|
||||
"value": ""
|
||||
},
|
||||
"type": "ProductType"
|
||||
},
|
||||
{
|
||||
"auth": null,
|
||||
"index": 3,
|
||||
"data": {
|
||||
"format": "String",
|
||||
"value": ""
|
||||
},
|
||||
"type": "OrderHandle"
|
||||
},
|
||||
{
|
||||
"auth": null,
|
||||
"index": 4,
|
||||
"data": {
|
||||
"format": "DateTime",
|
||||
"value": "0001/1/1 0:00:00"
|
||||
},
|
||||
"type": "ManufactureDate"
|
||||
},
|
||||
{
|
||||
"auth": null,
|
||||
"index": 5,
|
||||
"data": {
|
||||
"format": "String",
|
||||
"value": ""
|
||||
},
|
||||
"type": "BatchNumber"
|
||||
},
|
||||
{
|
||||
"auth": null,
|
||||
"index": 6,
|
||||
"data": {
|
||||
"format": "String",
|
||||
"value": "请不要在用力弯曲或者误食笔芯"
|
||||
},
|
||||
"type": "Note"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,70 @@
|
|||
{
|
||||
"prefix": "88.123.99",
|
||||
"version": "1.0.0",
|
||||
"description": "This is a template",
|
||||
"items": [
|
||||
{
|
||||
"name": "标签",
|
||||
"idType": "tags",
|
||||
"metaData": {
|
||||
"type": "string",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "产品名称",
|
||||
"idType": "ProductName",
|
||||
"metaData": {
|
||||
"type": "String",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "产品类型",
|
||||
"idType": "ProductType",
|
||||
"metaData": {
|
||||
"type": "String",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "订单标识",
|
||||
"idType": "OrderHandle",
|
||||
"metaData": {
|
||||
"type": "String",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "生产日期",
|
||||
"idType": "ManufactureDate",
|
||||
"metaData": {
|
||||
"type": "DateTime",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "批次号",
|
||||
"idType": "BatchNumber",
|
||||
"metaData": {
|
||||
"type": "String",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "注意事项",
|
||||
"idType": "Note",
|
||||
"metaData": {
|
||||
"type": "String",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,78 @@
|
|||
{
|
||||
"handle": "88.123.99/638504356450505177",
|
||||
"templateVersion": "Template-1.0.0",
|
||||
"value": [
|
||||
{
|
||||
"auth": null,
|
||||
"index": 0,
|
||||
"data": {
|
||||
"format": "string",
|
||||
"value": ""
|
||||
},
|
||||
"type": "Tags"
|
||||
},
|
||||
{
|
||||
"auth": null,
|
||||
"index": 1,
|
||||
"data": {
|
||||
"format": "String",
|
||||
"value": ""
|
||||
},
|
||||
"type": "MaterialName"
|
||||
},
|
||||
{
|
||||
"auth": null,
|
||||
"index": 2,
|
||||
"data": {
|
||||
"format": "String",
|
||||
"value": ""
|
||||
},
|
||||
"type": "Name"
|
||||
},
|
||||
{
|
||||
"auth": null,
|
||||
"index": 3,
|
||||
"data": {
|
||||
"format": "String",
|
||||
"value": ""
|
||||
},
|
||||
"type": "AssignmentCode"
|
||||
},
|
||||
{
|
||||
"auth": null,
|
||||
"index": 4,
|
||||
"data": {
|
||||
"format": "String",
|
||||
"value": ""
|
||||
},
|
||||
"type": "MainObject"
|
||||
},
|
||||
{
|
||||
"auth": null,
|
||||
"index": 5,
|
||||
"data": {
|
||||
"format": "DateTime",
|
||||
"value": "2024/5/4 16:07:24"
|
||||
},
|
||||
"type": "CreateTime"
|
||||
},
|
||||
{
|
||||
"auth": null,
|
||||
"index": 6,
|
||||
"data": {
|
||||
"format": "DateTime",
|
||||
"value": "2024/5/4 16:07:24"
|
||||
},
|
||||
"type": "CompleteTime"
|
||||
},
|
||||
{
|
||||
"auth": null,
|
||||
"index": 7,
|
||||
"data": {
|
||||
"format": "DateTime",
|
||||
"value": "2024/5/4 16:07:24"
|
||||
},
|
||||
"type": "LastUpdateTime"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,79 @@
|
|||
{
|
||||
"prefix": "88.123.99",
|
||||
"version": "1.0.0",
|
||||
"description": "This is a template",
|
||||
"items": [
|
||||
{
|
||||
"name": "标签",
|
||||
"idType": "tags",
|
||||
"metaData": {
|
||||
"type": "string",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "",
|
||||
"idType": "MaterialName",
|
||||
"metaData": {
|
||||
"type": "String",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "工序名称",
|
||||
"idType": "Name",
|
||||
"metaData": {
|
||||
"type": "String",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "业务任务编码",
|
||||
"idType": "AssignmentCode",
|
||||
"metaData": {
|
||||
"type": "String",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "主要物体",
|
||||
"idType": "MainObject",
|
||||
"metaData": {
|
||||
"type": "String",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "创建时间",
|
||||
"idType": "CreateTime",
|
||||
"metaData": {
|
||||
"type": "DateTime",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "完成时间",
|
||||
"idType": "CompleteTime",
|
||||
"metaData": {
|
||||
"type": "DateTime",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "最后更新时间",
|
||||
"idType": "LastUpdateTime",
|
||||
"metaData": {
|
||||
"type": "DateTime",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,96 @@
|
|||
{
|
||||
"handle": "88.123.99/638504356450514755",
|
||||
"templateVersion": "Template-1.0.0",
|
||||
"value": [
|
||||
{
|
||||
"auth": null,
|
||||
"index": 0,
|
||||
"data": {
|
||||
"format": "string",
|
||||
"value": ""
|
||||
},
|
||||
"type": "Tags"
|
||||
},
|
||||
{
|
||||
"auth": null,
|
||||
"index": 1,
|
||||
"data": {
|
||||
"format": "String",
|
||||
"value": ""
|
||||
},
|
||||
"type": "ContainerHandle"
|
||||
},
|
||||
{
|
||||
"auth": null,
|
||||
"index": 2,
|
||||
"data": {
|
||||
"format": "String",
|
||||
"value": ""
|
||||
},
|
||||
"type": "OriginalDestination"
|
||||
},
|
||||
{
|
||||
"auth": null,
|
||||
"index": 3,
|
||||
"data": {
|
||||
"format": "String",
|
||||
"value": ""
|
||||
},
|
||||
"type": "TargetDestination"
|
||||
},
|
||||
{
|
||||
"auth": null,
|
||||
"index": 4,
|
||||
"data": {
|
||||
"format": "String",
|
||||
"value": ""
|
||||
},
|
||||
"type": "Name"
|
||||
},
|
||||
{
|
||||
"auth": null,
|
||||
"index": 5,
|
||||
"data": {
|
||||
"format": "String",
|
||||
"value": ""
|
||||
},
|
||||
"type": "AssignmentCode"
|
||||
},
|
||||
{
|
||||
"auth": null,
|
||||
"index": 6,
|
||||
"data": {
|
||||
"format": "String",
|
||||
"value": ""
|
||||
},
|
||||
"type": "MainObject"
|
||||
},
|
||||
{
|
||||
"auth": null,
|
||||
"index": 7,
|
||||
"data": {
|
||||
"format": "DateTime",
|
||||
"value": "2024/5/4 16:07:24"
|
||||
},
|
||||
"type": "CreateTime"
|
||||
},
|
||||
{
|
||||
"auth": null,
|
||||
"index": 8,
|
||||
"data": {
|
||||
"format": "DateTime",
|
||||
"value": "2024/5/4 16:07:24"
|
||||
},
|
||||
"type": "CompleteTime"
|
||||
},
|
||||
{
|
||||
"auth": null,
|
||||
"index": 9,
|
||||
"data": {
|
||||
"format": "DateTime",
|
||||
"value": "2024/5/4 16:07:24"
|
||||
},
|
||||
"type": "LastUpdateTime"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,97 @@
|
|||
{
|
||||
"prefix": "88.123.99",
|
||||
"version": "1.0.0",
|
||||
"description": "This is a template",
|
||||
"items": [
|
||||
{
|
||||
"name": "标签",
|
||||
"idType": "tags",
|
||||
"metaData": {
|
||||
"type": "string",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "指定容器",
|
||||
"idType": "ContainerHandle",
|
||||
"metaData": {
|
||||
"type": "String",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "原位置",
|
||||
"idType": "OriginalDestination",
|
||||
"metaData": {
|
||||
"type": "String",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "目标位置",
|
||||
"idType": "TargetDestination",
|
||||
"metaData": {
|
||||
"type": "String",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "工序名称",
|
||||
"idType": "Name",
|
||||
"metaData": {
|
||||
"type": "String",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "业务任务编码",
|
||||
"idType": "AssignmentCode",
|
||||
"metaData": {
|
||||
"type": "String",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "主要物体",
|
||||
"idType": "MainObject",
|
||||
"metaData": {
|
||||
"type": "String",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "创建时间",
|
||||
"idType": "CreateTime",
|
||||
"metaData": {
|
||||
"type": "DateTime",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "完成时间",
|
||||
"idType": "CompleteTime",
|
||||
"metaData": {
|
||||
"type": "DateTime",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "最后更新时间",
|
||||
"idType": "LastUpdateTime",
|
||||
"metaData": {
|
||||
"type": "DateTime",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,50 @@
|
|||
using System.ComponentModel;
|
||||
using IDIS.Model;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace IDIS.YL106.Model;
|
||||
|
||||
|
||||
public record Data_Oder : IDIS_Model
|
||||
{
|
||||
public override string[] Tags { get; set; } = new string[] { "order" };
|
||||
|
||||
/// <summary>
|
||||
/// 订单编号
|
||||
/// </summary>
|
||||
[DisplayName("订单编号")]
|
||||
[JsonProperty("order_number")]
|
||||
public string OderNumber { get; set; } = string.Empty;
|
||||
/// <summary>
|
||||
/// 产品编码
|
||||
/// </summary>
|
||||
[DisplayName("产品编码")]
|
||||
[JsonProperty("product_code")]
|
||||
public string ProductCode { get; set; } = string.Empty;
|
||||
/// <summary>
|
||||
/// 产品名称
|
||||
/// </summary>
|
||||
[DisplayName("产品名称")]
|
||||
[JsonProperty("product_name")]
|
||||
public string ProductName { get; set; } = string.Empty;
|
||||
/// <summary>
|
||||
/// 订单状态
|
||||
/// </summary>
|
||||
[DisplayName("订单状态")]
|
||||
public string OrderState { get; set; } = string.Empty;
|
||||
/// <summary>
|
||||
/// 下单时间
|
||||
/// </summary>
|
||||
[DisplayName("下单时间")]
|
||||
public DateTime CreateTime { get; set; } = DateTime.MinValue;
|
||||
/// <summary>
|
||||
/// 更新时间
|
||||
/// </summary>
|
||||
[DisplayName("更新时间")]
|
||||
public DateTime UpdateTime { get; set; } = DateTime.MinValue;
|
||||
/// <summary>
|
||||
/// 完成时间
|
||||
/// </summary>
|
||||
[DisplayName("完成时间")]
|
||||
public DateTime FinishTime { get; set; } = DateTime.MinValue;
|
||||
}
|
|
@ -0,0 +1,67 @@
|
|||
using System.ComponentModel;
|
||||
using IDIS.Model;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace IDIS.YL106.Model;
|
||||
|
||||
/// <summary>
|
||||
/// 设备模型,用于描述例如机器人、传送带等设备的信息
|
||||
/// </summary>
|
||||
public record Object_Equipment : IDIS_Model
|
||||
{
|
||||
/// <summary>
|
||||
/// 编号
|
||||
/// </summary>
|
||||
[DisplayName("编号")]
|
||||
[JsonProperty("number")]
|
||||
public string Number { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 名称
|
||||
/// </summary>
|
||||
[DisplayName("名称")]
|
||||
[JsonProperty("name")]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 型号
|
||||
/// </summary>
|
||||
[DisplayName("型号")]
|
||||
[JsonProperty("model")]
|
||||
public string Model { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 类型
|
||||
/// </summary>
|
||||
[DisplayName("类型")]
|
||||
[JsonProperty("type")]
|
||||
public string Type { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 描述,用于介绍该设备的用途
|
||||
/// </summary>
|
||||
[DisplayName("描述")]
|
||||
[JsonProperty("description")]
|
||||
public string Description { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 设备来源
|
||||
/// </summary>
|
||||
[DisplayName("来源")]
|
||||
[JsonProperty("source")]
|
||||
public string Trace { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 生产厂家
|
||||
/// </summary>
|
||||
[DisplayName("生产厂家")]
|
||||
[JsonProperty("manufacturer")]
|
||||
public string Manufacturer { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 生产日期
|
||||
/// </summary>
|
||||
[DisplayName("生产日期")]
|
||||
[JsonProperty("manufacture_date")]
|
||||
public DateTime ManufactureDate { get; set; } =DateTime.MinValue;
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
using System.ComponentModel;
|
||||
using IDIS.Model;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace IDIS.YL106.Model;
|
||||
|
||||
public record Object_Material: IDIS_Model
|
||||
{
|
||||
/// <summary>
|
||||
/// 物料名称
|
||||
/// </summary>
|
||||
[DisplayName("物料名称")]
|
||||
[JsonProperty("material_name")]
|
||||
public string MaterialName { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 物料类型
|
||||
/// </summary>
|
||||
[DisplayName("物料类型")]
|
||||
[JsonProperty("material_type")]
|
||||
public string MaterialType { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 生产日期
|
||||
/// </summary>
|
||||
[DisplayName("生产日期")]
|
||||
[JsonProperty("manufacture_date")]
|
||||
public string ManufactureDate { get; set; } = string.Empty;
|
||||
}
|
|
@ -0,0 +1,51 @@
|
|||
using System.ComponentModel;
|
||||
using IDIS.Model;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace IDIS.YL106.Model;
|
||||
|
||||
public record Object_Product:IDIS_Model
|
||||
{
|
||||
/// <summary>
|
||||
/// 产品名称
|
||||
/// </summary>
|
||||
[DisplayName("产品名称")]
|
||||
[JsonProperty("product_name")]
|
||||
public string ProductName { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 产品类型
|
||||
/// </summary>
|
||||
[DisplayName("产品类型")]
|
||||
[JsonProperty("product_type")]
|
||||
public string ProductType { get; set; }= string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 订单标识
|
||||
/// </summary>
|
||||
[DisplayName("订单标识")]
|
||||
[JsonProperty("order_handle")]
|
||||
public string OrderHandle { get; set; }= string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 生产日期
|
||||
/// </summary>
|
||||
[DisplayName("生产日期")]
|
||||
[JsonProperty("manufacture_date")]
|
||||
public DateTime ManufactureDate { get; set; } = DateTime.MinValue;
|
||||
|
||||
/// <summary>
|
||||
/// 批次号
|
||||
/// </summary>
|
||||
[DisplayName("批次号")]
|
||||
[JsonProperty("batch_number")]
|
||||
public string BatchNumber { get; set; }= string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 注意事项 (默认值: "请勿将移动电源放入水中")
|
||||
/// </summary>
|
||||
[DisplayName("注意事项")]
|
||||
[JsonProperty("note")]
|
||||
public string Note { get; set; } = "请不要在用力弯曲或者误食笔芯";
|
||||
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
namespace IDIS.YL106.Model;
|
||||
|
||||
public record Procedure_Assembly:Procedure_Base
|
||||
{
|
||||
/// <summary>
|
||||
/// 物料名称
|
||||
/// </summary>
|
||||
public string MaterialName { get; set; } = string.Empty;
|
||||
}
|
|
@ -0,0 +1,45 @@
|
|||
using System.ComponentModel;
|
||||
using IDIS.Model;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace IDIS.YL106.Model;
|
||||
|
||||
public record Procedure_Base:IDIS_Model
|
||||
{
|
||||
/// <summary>
|
||||
/// 工序名称
|
||||
/// </summary>
|
||||
[DisplayName("工序名称")]
|
||||
[JsonProperty("name")]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
/// <summary>
|
||||
/// 业务任务编码
|
||||
/// </summary>
|
||||
[DisplayName("业务任务编码")]
|
||||
[JsonProperty("assignment_code")]
|
||||
public string AssignmentCode { get; set; } = string.Empty;
|
||||
/// <summary>
|
||||
/// 主要物体
|
||||
/// </summary>
|
||||
[DisplayName("主要物体")]
|
||||
[JsonProperty("main_object")]
|
||||
public string MainObject { get; set; } = string.Empty;
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
[DisplayName("创建时间")]
|
||||
[JsonProperty("create_time")]
|
||||
public DateTime CreateTime { get; set; } = DateTime.Now;
|
||||
/// <summary>
|
||||
/// 完成时间(未完成时为DateTime.Min)
|
||||
/// </summary>
|
||||
[DisplayName("完成时间")]
|
||||
[JsonProperty("complete_time")]
|
||||
public DateTime CompleteTime { get; set; } = DateTime.Now;
|
||||
/// <summary>
|
||||
/// 最后更新时间
|
||||
/// </summary>
|
||||
[DisplayName("最后更新时间")]
|
||||
[JsonProperty("last_updateTime")]
|
||||
public DateTime LastUpdateTime { get; set; } = DateTime.Now;
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
using System.ComponentModel;
|
||||
using IDIS.Model;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace IDIS.YL106.Model;
|
||||
|
||||
public record Procedure_Transport:Procedure_Base
|
||||
{
|
||||
/// <summary>
|
||||
/// 指定容器
|
||||
/// </summary>
|
||||
[DisplayName("指定容器")]
|
||||
[JsonProperty("container_handle")]
|
||||
public string ContainerHandle { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 原位置
|
||||
/// </summary>
|
||||
[DisplayName("原位置")]
|
||||
[JsonProperty("original_destination")]
|
||||
public string OriginalDestination { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 目标位置
|
||||
/// </summary>
|
||||
[DisplayName("目标位置")]
|
||||
[JsonProperty("target_destination")]
|
||||
public string TargetDestination { get; set; } = string.Empty;
|
||||
}
|
|
@ -0,0 +1,47 @@
|
|||
using IDIS.Model;
|
||||
using IDIS.Models;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace IDIS.YL106.Model;
|
||||
|
||||
public class Program
|
||||
{
|
||||
public static void Main()
|
||||
{
|
||||
var list = new List<IDIS_Model>
|
||||
{
|
||||
new Data_Oder(),
|
||||
new Object_Equipment(),
|
||||
new Object_Material(),
|
||||
new Object_Product(),
|
||||
new Procedure_Assembly(),
|
||||
new Procedure_Transport()
|
||||
};
|
||||
|
||||
var currentDirectory = Environment.CurrentDirectory;
|
||||
#if DEBUG
|
||||
currentDirectory = new DirectoryInfo(currentDirectory).Parent!.Parent!.Parent?.FullName!;
|
||||
#endif
|
||||
currentDirectory = Path.Combine(currentDirectory, "Samples");
|
||||
|
||||
Console.WriteLine("生成的样本将保存于: " + currentDirectory);
|
||||
|
||||
new DirectoryInfo(currentDirectory).Create();
|
||||
foreach (var x in list)
|
||||
{
|
||||
var templatePath = Path.Combine(currentDirectory, $"{x.GetType().Name}_Template.json");
|
||||
var registerPath = Path.Combine(currentDirectory, $"{x.GetType().Name}_Register.json");
|
||||
var registerData = new IDIS_Register_Data
|
||||
{
|
||||
Handle = $"88.123.99/{DateTime.Now.Ticks}",
|
||||
TemplateVersion = "Template-1.0.0",
|
||||
Value = x.AsValueInfo()
|
||||
};
|
||||
File.WriteAllText(templatePath,JsonConvert.SerializeObject(x.AsTemplate(),Formatting.Indented));
|
||||
File.WriteAllText(registerPath,JsonConvert.SerializeObject(registerData,Formatting.Indented));
|
||||
|
||||
Console.WriteLine();
|
||||
Console.WriteLine($"生成了{x.GetType().Name}的样本,模板保存于\n{templatePath},注册数据保存于\n{registerPath}");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue