commit
ef741673b2
@ -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,340 @@
|
||||
## 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
|
||||
|
||||
# Build results
|
||||
[Dd]ebug/
|
||||
[Dd]ebugPublic/
|
||||
[Rr]elease/
|
||||
[Rr]eleases/
|
||||
x64/
|
||||
x86/
|
||||
[Aa][Rr][Mm]/
|
||||
[Aa][Rr][Mm]64/
|
||||
bld/
|
||||
[Bb]in/
|
||||
[Oo]bj/
|
||||
[Ll]og/
|
||||
|
||||
# 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
|
||||
|
||||
# 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/
|
||||
|
||||
# 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
|
||||
|
||||
# JustCode is a .NET coding add-in
|
||||
.JustCode
|
||||
|
||||
# TeamCity is a build add-in
|
||||
_TeamCity*
|
||||
|
||||
# DotCover is a Code Coverage Tool
|
||||
*.dotCover
|
||||
|
||||
# AxoCover is a Code Coverage Tool
|
||||
.axoCover/*
|
||||
!.axoCover/settings.json
|
||||
|
||||
# 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
|
||||
# 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
|
||||
|
||||
# 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
|
||||
*- Backup*.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/
|
||||
|
||||
# JetBrains Rider
|
||||
.idea/
|
||||
*.sln.iml
|
||||
|
||||
# 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
|
@ -0,0 +1,171 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<configSections>
|
||||
|
||||
<section name="proj_sync_eplan_to_tc" type="System.Configuration.AppSettingsSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<section name="proj_sync" type="System.Configuration.AppSettingsSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<section name="part_sync_tc_to_eplan" type="System.Configuration.AppSettingsSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<section name="part_sync_eplan_to_tc" type="System.Configuration.AppSettingsSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<section name="part_sync" type="System.Configuration.AppSettingsSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<section name="part_sync_classification" type="System.Configuration.AppSettingsSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<section name="ref" type="System.Configuration.AppSettingsSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<section name="proj_check" type="System.Configuration.AppSettingsSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<section name="bmsq" type="System.Configuration.AppSettingsSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<section name="ui_some" type="System.Configuration.AppSettingsSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<section name="part_query" type="System.Configuration.AppSettingsSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<section name="eplan_data" type="System.Configuration.AppSettingsSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<section name="fms" type="System.Configuration.AppSettingsSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<section name="query_proj" type="System.Configuration.AppSettingsSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<section name="login" type="System.Configuration.AppSettingsSection" />
|
||||
<section name="log" type="System.Configuration.AppSettingsSection" />
|
||||
</configSections>
|
||||
|
||||
<proj_sync_eplan_to_tc>
|
||||
<clear />
|
||||
<add key="ITEM.object_desc" value="PROJ_INSTALLATIONNAME" />
|
||||
<add key="REV.object_desc" value="PROJ_INSTALLATIONNAME" />
|
||||
</proj_sync_eplan_to_tc>
|
||||
<part_sync_tc_to_eplan>
|
||||
<clear />
|
||||
</part_sync_tc_to_eplan>
|
||||
<part_sync_eplan_to_tc>
|
||||
<clear />
|
||||
</part_sync_eplan_to_tc>
|
||||
<part_sync_classification>
|
||||
<clear />
|
||||
<add key="Electric.ElectricalPlc" value="ICM01" />
|
||||
<add key="Electric.ElectricalSwitch" value="ICM01" />
|
||||
<add key="Electric.ElectricalTransmissionpath" value="ICM01" />
|
||||
<add key="Electric.ElectricalSignaldevice" value="ICM01" />
|
||||
<add key="Electric.ElectricalBreak" value="ICM01" />
|
||||
<add key="Mechanic.Mechanics19inchSystem" value="ICM01" />
|
||||
<add key="Mechanic.MechanicsHookUp" value="ICM01" />
|
||||
<add key="Mechanic.MechanicsRoutingPointTopology" value="ICM01" />
|
||||
<add key="Mechanic.MechanicsRoutingPathTopology" value="ICM01" />
|
||||
<add key="Mechanic.MechanicsRoutingAccessories" value="ICM01" />
|
||||
<add key="Mechanic.MechanicsHousing" value="ICM01" />
|
||||
<add key="Fluid.FluidSignalsensor" value="ICM01" />
|
||||
<add key="Fluid.FluidSignaldevice" value="ICM01" />
|
||||
<add key="Fluid.FluidAccumulator" value="ICM01" />
|
||||
<add key="Fluid.FluidSeparator" value="ICM01" />
|
||||
<add key="Process.ProcessThreewayarmature" value="ICM01" />
|
||||
<add key="Process.ProcessLockarmature" value="ICM01" />
|
||||
<add key="Process.ProcessCooler" value="ICM01" />
|
||||
<add key="Process.ProcessSeparator" value="ICM01" />
|
||||
</part_sync_classification>
|
||||
<proj_sync>
|
||||
<add key="object_type" value="J6_ElecHWDesign" />
|
||||
<add key="pdf_dataset_type" value="PDF" />
|
||||
<add key="pdf_dataset_ref" value="PDF_Reference" />
|
||||
<add key="zw_dataset_type" value="J6_EPLAN" />
|
||||
<add key="zw_dataset_ref" value="J6_EPLAN_zw1" />
|
||||
</proj_sync>
|
||||
<part_sync>
|
||||
<add key="object_type" value="J6_WGPart" />
|
||||
<add key="ordernr_tc" value="REV.j6_dhsx" />
|
||||
</part_sync>
|
||||
<ref>
|
||||
<add key="bomtitle" value="" />
|
||||
<add key="erpcode" value="" />
|
||||
<add key="lineCount" value="" />
|
||||
<add key="deleteXML" value="" />
|
||||
</ref>
|
||||
<proj_check>
|
||||
<add key="table_table" value="序号,INDEX,50;
检查结果,CHECK,80;
ERP编码,P_ARTICLE_ERPNR,120;
部件编码,P_ARTICLE_PARTNR,120;
订货号,P_ARTICLE_ORDERNR,120;
名称,P_ARTICLE_DESCR1@L_zh_CN,120;
类型编号,P_ARTICLE_TYPENR,120;
数量,P_ARTICLEREF_COUNT,120;
制造商,P_ARTICLE_SUPPLIER,120;
装配位置,P_DESIGNATION_LOCATION_DESCR@L_zh_CN,120;
完整设备标识符,P_FUNC_IDENTDEVICETAG,150;" />
|
||||
<add key="check_wire" value="TRUE" />
|
||||
<add key="save_xml" value="TRUE" />
|
||||
<add key="bom_prop" value="bl_item_object_desc=P_ARTICLE_MANUFACTURER;
bl_quantity=P_ARTICLEREF_COUNT;" />
|
||||
<add key="erpno_prop" value="j6_dhsx" />
|
||||
<add key="group_bomline" value="4" />
|
||||
</proj_check>
|
||||
<bmsq>
|
||||
<add key="item_type" value="" />
|
||||
<add key="row_type" value="" />
|
||||
<add key="table" value="" />
|
||||
<add key="ordernr" value="" />
|
||||
<add key="guid" value="" />
|
||||
<add key="unit" value="" />
|
||||
<add key="desc_cn" value="" />
|
||||
<add key="desc_en" value="" />
|
||||
<add key="preference" value="" />
|
||||
<add key="process_template" value="" />
|
||||
</bmsq>
|
||||
<ui_some>
|
||||
<add key="rev.object_type" value="" />
|
||||
<add key="rev.owning_user" value="" />
|
||||
</ui_some>
|
||||
<part_query>
|
||||
<add key="name" value="J6_WGPart" />
|
||||
<add key="field_itemid" value="ID" />
|
||||
<add key="field_ordernr" value="dhsx" />
|
||||
</part_query>
|
||||
<eplan_data>
|
||||
<add key="data_folder" value="D:\Data" />
|
||||
<add key="data_skip_folders" value="-Projects" />
|
||||
<add key="dataset_uid" value="" />
|
||||
<add key="template_item_id" value="000026" />
|
||||
<add key="template_dataset_type" value="J6_EPLAN" />
|
||||
<add key="workspace" value="D:\TEMP1" />
|
||||
<add key="en_to_cn" value="" />
|
||||
<add key="keep_zip_file" value="" />
|
||||
</eplan_data>
|
||||
<fms>
|
||||
<add key="url" value="http://192.168.37.128:4544" />
|
||||
<add key="path" value="D:\\File" />
|
||||
</fms>
|
||||
<query_proj>
|
||||
<add key="name" value="Item..." />
|
||||
<add key="fields" value="零组件ID,Item ID; 名称,Name; 类型,Type" />
|
||||
<add key="result_table" value="序号,INDEX,50; ID,item_id,100; 名称,object_name,150; 类型,object_type,80" />
|
||||
<add key="height" value="180" />
|
||||
</query_proj>
|
||||
<login>
|
||||
<add key="host" value="http://localhost:7001/tc" />
|
||||
<add key="user" value="admin" />
|
||||
<add key="password" value="1" />
|
||||
<add key="role" value="" />
|
||||
<add key="oracle_conn" value="Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=JDNEWPLM)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=TC)));User Id=infodba;Password=infodba;" />
|
||||
</login>
|
||||
<log>
|
||||
<add key="log_state" value="ON" />
|
||||
<add key="log_config_path" value="C:\TC\Siemens\Teamcenter11\tccs\EPlan" />
|
||||
</log>
|
||||
<appSettings>
|
||||
<add key="ClientSettingsProvider.ServiceUri" value="" />
|
||||
</appSettings>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||
</startup>
|
||||
<system.web>
|
||||
<membership defaultProvider="ClientAuthenticationMembershipProvider">
|
||||
<providers>
|
||||
<add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" />
|
||||
</providers>
|
||||
</membership>
|
||||
<roleManager defaultProvider="ClientRoleProvider" enabled="true">
|
||||
<providers>
|
||||
<add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" />
|
||||
</providers>
|
||||
</roleManager>
|
||||
</system.web>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="TcSoaCommon" publicKeyToken="0edd5b5ddd601444" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-12000.1.0.0" newVersion="12000.1.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="TcSoaClient" publicKeyToken="0edd5b5ddd601444" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-12000.1.0.0" newVersion="12000.1.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="TcSoaStrongModel" publicKeyToken="0edd5b5ddd601444" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-12000.1.0.0" newVersion="12000.1.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="ICSharpCode.SharpZipLib" publicKeyToken="1b03e6acf1164f73" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-1.2.0.246" newVersion="1.2.0.246" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
</configuration>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,62 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<configSections>
|
||||
<section name="query_proj" type="System.Configuration.AppSettingsSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<section name="login" type="System.Configuration.AppSettingsSection" />
|
||||
<section name="log" type="System.Configuration.AppSettingsSection" />
|
||||
</configSections>
|
||||
<query_proj>
|
||||
<add key="name" value="Item..." />
|
||||
<add key="fields" value="零组件ID,Item ID; 名称,Name; 类型,Type" />
|
||||
<add key="result_table" value="序号,INDEX,50; ID,item_id,100; 名称,object_name,150; 类型,object_type,80" />
|
||||
<add key="height" value="180" />
|
||||
</query_proj>
|
||||
<login>
|
||||
<add key="host" value="http://localhost:7001/tc" />
|
||||
<add key="user" value="admin" />
|
||||
<add key="password" value="123" />
|
||||
<add key="role" value="" />
|
||||
</login>
|
||||
<log>
|
||||
<add key="log_state" value="ON" />
|
||||
<add key="log_config_path" value="C:\TC\Siemens\Teamcenter11\tccs\EPlan" />
|
||||
</log>
|
||||
<appSettings>
|
||||
<add key="ClientSettingsProvider.ServiceUri" value="" />
|
||||
</appSettings>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||
</startup>
|
||||
<system.web>
|
||||
<membership defaultProvider="ClientAuthenticationMembershipProvider">
|
||||
<providers>
|
||||
<add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" />
|
||||
</providers>
|
||||
</membership>
|
||||
<roleManager defaultProvider="ClientRoleProvider" enabled="true">
|
||||
<providers>
|
||||
<add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" />
|
||||
</providers>
|
||||
</roleManager>
|
||||
</system.web>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="TcSoaCommon" publicKeyToken="0edd5b5ddd601444" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-12000.1.0.0" newVersion="12000.1.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="TcSoaClient" publicKeyToken="0edd5b5ddd601444" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-12000.1.0.0" newVersion="12000.1.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="TcSoaStrongModel" publicKeyToken="0edd5b5ddd601444" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-12000.1.0.0" newVersion="12000.1.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="ICSharpCode.SharpZipLib" publicKeyToken="1b03e6acf1164f73" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-1.2.0.246" newVersion="1.2.0.246" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
</configuration>
|
@ -0,0 +1,146 @@
|
||||
//==================================================
|
||||
//
|
||||
// Copyright 2017 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.
|
||||
//
|
||||
//==================================================
|
||||
|
||||
|
||||
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
using Teamcenter.Schemas.Soa._2006_03.Exceptions;
|
||||
using Teamcenter.Soa;
|
||||
using Teamcenter.Soa.Common;
|
||||
using Teamcenter.Soa.Client;
|
||||
using Teamcenter.Soa.Exceptions;
|
||||
|
||||
namespace Teamcenter.ClientX
|
||||
{
|
||||
|
||||
/**
|
||||
* The CredentialManager is used by the Teamcenter Services framework to get the
|
||||
* user's credentials when challanged by the server. This can occur after a period
|
||||
* of inactivity and the server has timed-out the user's session, at which time
|
||||
* the client application will need to re-authenitcate. The framework will
|
||||
* call one of the getCredentials methods (depending on circumstances) and will
|
||||
* send the SessionService.login service request. Upon successfull completion of
|
||||
* the login service request. The last service request (one that cuased the challange)
|
||||
* will be resent.
|
||||
*
|
||||
* The framework will also call the setUserPassword setGroupRole methods when ever
|
||||
* these credentials change, thus allowing this implementation of the CredentialManager
|
||||
* to cache these values so prompting of the user is not requried for re-authentication.
|
||||
*
|
||||
*/
|
||||
public class AppXCredentialManager : CredentialManager
|
||||
{
|
||||
|
||||
private String name = null;
|
||||
private String password = null;
|
||||
private String group = ""; // default group
|
||||
private String role = ""; // default role
|
||||
private String discriminator = "SoaAppX"; // always connect same user
|
||||
// to same instance of server
|
||||
|
||||
/**
|
||||
* Return the type of credentials this implementation provides,
|
||||
* standard (user/password) or Single-Sign-On. In this case
|
||||
* Standard credentials are returned.
|
||||
*
|
||||
* @see com.teamcenter.soa.client.CredentialManager#getCredentialType()
|
||||
*/
|
||||
public int CredentialType
|
||||
{
|
||||
get { return SoaConstants.CLIENT_CREDENTIAL_TYPE_STD; }
|
||||
}
|
||||
|
||||
/**
|
||||
* Prompt's the user for credentials.
|
||||
* This method will only be called by the framework when a login attempt has
|
||||
* failed.
|
||||
*
|
||||
* @see com.teamcenter.soa.client.CredentialManager#getCredentials(com.teamcenter.schemas.soa._2006_03.exceptions.InvalidCredentialsException)
|
||||
*/
|
||||
public string[] GetCredentials(InvalidCredentialsException e)
|
||||
//throws CanceledOperationException
|
||||
{
|
||||
Console.WriteLine(e.Message);
|
||||
return PromptForCredentials();
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the cached credentials.
|
||||
* This method will be called when a service request is sent without a valid
|
||||
* session ( session has expired on the server).
|
||||
*
|
||||
* @see com.teamcenter.soa.client.CredentialManager#getCredentials(com.teamcenter.schemas.soa._2006_03.exceptions.InvalidUserException)
|
||||
*/
|
||||
public String[] GetCredentials(InvalidUserException e)
|
||||
//throws CanceledOperationException
|
||||
{
|
||||
// Have not logged in yet, shoult not happen but just in case
|
||||
if (name == null) return PromptForCredentials();
|
||||
|
||||
// Return cached credentials
|
||||
String[] tokens = { name, password, group, role, discriminator };
|
||||
return tokens;
|
||||
}
|
||||
|
||||
/**
|
||||
* Cache the group and role
|
||||
* This is called after the SessionService.setSessionGroupMember service
|
||||
* operation is called.
|
||||
*
|
||||
* @see com.teamcenter.soa.client.CredentialManager#setGroupRole(java.lang.String,
|
||||
* java.lang.String)
|
||||
*/
|
||||
public void SetGroupRole(String group, String role)
|
||||
{
|
||||
this.group = group;
|
||||
this.role = role;
|
||||
}
|
||||
|
||||
/**
|
||||
* Cache the User and Password
|
||||
* This is called after the SessionService.login service operation is called.
|
||||
*
|
||||
* @see com.teamcenter.soa.client.CredentialManager#setUserPassword(java.lang.String,
|
||||
* java.lang.String, java.lang.String)
|
||||
*/
|
||||
public void SetUserPassword(String user, String password, String discriminator)
|
||||
{
|
||||
this.name = user;
|
||||
this.password = password;
|
||||
this.discriminator = discriminator;
|
||||
}
|
||||
|
||||
|
||||
public String[] PromptForCredentials()
|
||||
//throws CanceledOperationException
|
||||
{
|
||||
try
|
||||
{
|
||||
Console.WriteLine("Please enter user credentials (return to quit):");
|
||||
Console.Write("User Name: ");
|
||||
name = Console.ReadLine();
|
||||
|
||||
if (name.Length == 0)
|
||||
throw new CanceledOperationException("");
|
||||
|
||||
Console.Write("Password: ");
|
||||
password = Console.ReadLine();
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
String message = "Failed to get the name and password.\n" + e.Message;
|
||||
Console.WriteLine(message);
|
||||
throw new CanceledOperationException(message);
|
||||
}
|
||||
|
||||
String[] tokens = { name, password, group, role, discriminator };
|
||||
return tokens;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
@ -0,0 +1,101 @@
|
||||
//==================================================
|
||||
//
|
||||
// Copyright 2017 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.
|
||||
//
|
||||
//==================================================
|
||||
|
||||
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
using Teamcenter.Schemas.Soa._2006_03.Exceptions;
|
||||
using Teamcenter.Soa.Client;
|
||||
using Teamcenter.Soa.Exceptions;
|
||||
|
||||
namespace Teamcenter.ClientX
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* Implementation of the ExceptionHandler. For ConnectionExceptions (server
|
||||
* temporarily down .etc) prompts the user to retry the last request. For other
|
||||
* exceptions convert to a RunTime exception.
|
||||
*/
|
||||
public class AppXExceptionHandler : ExceptionHandler
|
||||
{
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see com.teamcenter.soa.client.ExceptionHandler#handleException(com.teamcenter.schemas.soa._2006_03.exceptions.InternalServerException)
|
||||
*/
|
||||
public void HandleException(InternalServerException ise)
|
||||
{
|
||||
Console.WriteLine("");
|
||||
Console.WriteLine("*****");
|
||||
Console.WriteLine("Exception caught in com.teamcenter.clientx.AppXExceptionHandler.handleException(InternalServerException).");
|
||||
KPlan.Util.KUtil.LogErr(ise);
|
||||
throw new System.Exception(ise.Message);
|
||||
if (ise is ConnectionException)
|
||||
{
|
||||
// ConnectionException are typically due to a network error (server
|
||||
// down .etc) and can be recovered from (the last request can be sent again,
|
||||
// after the problem is corrected).
|
||||
Console.Write("\nThe server returned an connection error.\n" + ise.Message
|
||||
+ "\nDo you wish to retry the last service request?[y/n]");
|
||||
}
|
||||
else if (ise is ProtocolException)
|
||||
{
|
||||
// ProtocolException are typically due to programming errors
|
||||
// (content of HTTP
|
||||
// request is incorrect). These are generally can not be
|
||||
// recovered from.
|
||||
Console.Write("\nThe server returned an protocol error.\n" + ise.Message
|
||||
+ "\nThis is most likely the result of a programming error."
|
||||
+ "\nDo you wish to retry the last service request?[y/n]");
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.WriteLine("\nThe server returned an internal server error.\n"
|
||||
+ ise.Message
|
||||
+ "\nThis is most likely the result of a programming error."
|
||||
+ "\nA RuntimeException will be thrown.");
|
||||
throw new SystemException(ise.Message);
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
String retry = Console.ReadLine();
|
||||
// If yes, return to the calling SOA client framework, where the
|
||||
// last service request will be resent.
|
||||
if (retry.ToLower().Equals("y") || retry.ToLower().Equals("yes"))
|
||||
return;
|
||||
|
||||
throw new SystemException("The user has opted not to retry the last request");
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
Console.Error.WriteLine("Failed to read user response.\nA RuntimeException will be thrown.");
|
||||
throw new SystemException(e.Message);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see com.teamcenter.soa.client.ExceptionHandler#handleException(com.teamcenter.soa.exceptions.CanceledOperationException)
|
||||
*/
|
||||
public void HandleException(CanceledOperationException coe)
|
||||
{
|
||||
Console.WriteLine("");
|
||||
Console.WriteLine("*****");
|
||||
Console.WriteLine("Exception caught in com.teamcenter.clientx.AppXExceptionHandler.handleException(CanceledOperationException).");
|
||||
|
||||
// Expecting this from the login tests with bad credentials, and the
|
||||
// AnyUserCredentials class not
|
||||
// prompting for different credentials
|
||||
throw new SystemException(coe.Message);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
@ -0,0 +1,65 @@
|
||||
//==================================================
|
||||
//
|
||||
// Copyright 2017 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.
|
||||
//
|
||||
//==================================================
|
||||
|
||||
using System;
|
||||
|
||||
using Teamcenter.Soa.Client.Model;
|
||||
using Teamcenter.Soa.Exceptions;
|
||||
|
||||
namespace Teamcenter.ClientX
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* Implementation of the ChangeListener. Print out all objects that have been updated.
|
||||
*
|
||||
*/
|
||||
public class AppXModelEventListener : ModelEventListener
|
||||
{
|
||||
|
||||
override public void LocalObjectChange(ModelObject[] objects)
|
||||
{
|
||||
if (objects.Length == 0) return;
|
||||
System.Console.WriteLine("");
|
||||
System.Console.WriteLine("Modified Objects handled in com.teamcenter.clientx.AppXUpdateObjectListener.modelObjectChange");
|
||||
System.Console.WriteLine("The following objects have been updated in the client data model:");
|
||||
for (int i = 0; i < objects.Length; i++)
|
||||
{
|
||||
String uid = objects[i].Uid;
|
||||
String type = objects[i].GetType().Name;
|
||||
String name = "";
|
||||
if (objects[i].GetType().Name.Equals("WorkspaceObject"))
|
||||
{
|
||||
ModelObject wo = objects[i];
|
||||
try
|
||||
{
|
||||
name = wo.GetProperty("object_string").StringValue;
|
||||
}
|
||||
catch (NotLoadedException /*e*/) {} // just ignore
|
||||
}
|
||||
System.Console.WriteLine(" " + uid + " " + type + " " + name);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
override public void LocalObjectDelete(string[] uids)
|
||||
{
|
||||
if (uids.Length == 0)
|
||||
return;
|
||||
|
||||
System.Console.WriteLine("");
|
||||
System.Console.WriteLine("Deleted Objects handled in com.teamcenter.clientx.AppXDeletedObjectListener.modelObjectDelete");
|
||||
System.Console.WriteLine("The following objects have been deleted from the server and removed from the client data model:");
|
||||
for (int i = 0; i < uids.Length; i++)
|
||||
{
|
||||
System.Console.WriteLine(" " + uids[i]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
@ -0,0 +1,68 @@
|
||||
//==================================================
|
||||
//
|
||||
// Copyright 2017 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.
|
||||
//
|
||||
//==================================================
|
||||
|
||||
using System;
|
||||
|
||||
using Teamcenter.Soa.Client.Model;
|
||||
|
||||
|
||||
namespace Teamcenter.ClientX
|
||||
{
|
||||
|
||||
/**
|
||||
* Implementation of the PartialErrorListener. Print out any partial errors
|
||||
* returned.
|
||||
*
|
||||
*/
|
||||
public class AppXPartialErrorListener : PartialErrorListener
|
||||
{
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see com.teamcenter.soa.client.model.PartialErrorListener#handlePartialError(com.teamcenter.soa.client.model.ErrorStack[])
|
||||
*/
|
||||
public void HandlePartialError(ErrorStack[] stacks)
|
||||
{
|
||||
if (stacks.Length == 0) return;
|
||||
|
||||
Console.WriteLine("");
|
||||
Console.WriteLine("*****");
|
||||
Console.WriteLine("Partial Errors caught in com.teamcenter.clientx.AppXPartialErrorListener.");
|
||||
|
||||
|
||||
for (int i = 0; i < stacks.Length; i++)
|
||||
{
|
||||
ErrorValue[] errors = stacks[i].ErrorValues;
|
||||
Console.Write("Partial Error for ");
|
||||
|
||||
// The different service implementation may optionally associate
|
||||
// an ModelObject, client ID, or nothing, with each partial error
|
||||
if (stacks[i].HasAssociatedObject() )
|
||||
{
|
||||
Console.WriteLine("object "+ stacks[i].AssociatedObject.Uid);
|
||||
}
|
||||
else if (stacks[i].HasClientId())
|
||||
{
|
||||
Console.WriteLine("client id "+ stacks[i].ClientId);
|
||||
}
|
||||
else if (stacks[i].HasClientIndex())
|
||||
{
|
||||
Console.WriteLine("client index " + stacks[i].ClientIndex);
|
||||
}
|
||||
|
||||
// Each Partial Error will have one or more contributing error messages
|
||||
for (int j = 0; j < errors.Length; j++)
|
||||
{
|
||||
Console.WriteLine(" Code: " + errors[j].Code + "\tSeverity: "
|
||||
+ errors[j].Level + "\t" + errors[j].Message);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
@ -0,0 +1,42 @@
|
||||
//==================================================
|
||||
//
|
||||
// Copyright 2017 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.
|
||||
//
|
||||
//==================================================
|
||||
|
||||
using System;
|
||||
|
||||
using Teamcenter.Soa.Client;
|
||||
|
||||
|
||||
namespace Teamcenter.ClientX
|
||||
{
|
||||
|
||||
/**
|
||||
* This implemenation of the RequestListener, logs each service request
|
||||
* to the console.
|
||||
*
|
||||
*/
|
||||
public class AppXRequestListener : RequestListener
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* Called before each request is sent to the server.
|
||||
*/
|
||||
public void ServiceRequest(ServiceInfo info)
|
||||
{
|
||||
// will log the service name when done
|
||||
}
|
||||
|
||||
/**
|
||||
* Called after each response from the server.
|
||||
* Log the service operation to the console.
|
||||
*/
|
||||
public void ServiceResponse(ServiceInfo info)
|
||||
{
|
||||
Console.WriteLine(info.Id + ": " + info.Service + "." + info.Operation);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
@ -0,0 +1,266 @@
|
||||
//==================================================
|
||||
//
|
||||
// Copyright 2017 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.
|
||||
//
|
||||
//==================================================
|
||||
|
||||
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Net;
|
||||
|
||||
using Teamcenter.Schemas.Soa._2006_03.Exceptions;
|
||||
using Teamcenter.Services.Strong.Core;
|
||||
using Teamcenter.Services.Strong.Core._2006_03.Session;
|
||||
using Teamcenter.Soa;
|
||||
using Teamcenter.Soa.Client;
|
||||
using Teamcenter.Soa.Client.Model;
|
||||
using Teamcenter.Soa.Exceptions;
|
||||
|
||||
using WorkspaceObject = Teamcenter.Soa.Client.Model.Strong.WorkspaceObject;
|
||||
using User = Teamcenter.Soa.Client.Model.Strong.User;
|
||||
|
||||
using KPlan.Util;
|
||||
|
||||
namespace Teamcenter.ClientX
|
||||
{
|
||||
|
||||
|
||||
public class Session
|
||||
{
|
||||
/**
|
||||
* Single instance of the Connection object that is shared throughtout
|
||||
* the application. This Connection object is needed whenever a Service
|
||||
* stub is instantiated.
|
||||
*/
|
||||
private static Connection connection;
|
||||
|
||||
/**
|
||||
* The credentialManager is used both by the Session class and the Teamcenter
|
||||
* Services Framework to get user credentials.
|
||||
*
|
||||
*/
|
||||
private static AppXCredentialManager credentialManager;
|
||||
|
||||
/**
|
||||
* Create an instance of the Session with a connection to the specified
|
||||
* server.
|
||||
*
|
||||
* Add implementations of the ExceptionHandler, PartialErrorListener,
|
||||
* ChangeListener, and DeleteListeners.
|
||||
*
|
||||
* @param host Address of the host to connect to, http://serverName:port/tc
|
||||
*/
|
||||
public Session(String host)
|
||||
{
|
||||
// Create an instance of the CredentialManager, this is used
|
||||
// by the SOA Framework to get the user's credentials when
|
||||
// challanged by the server (sesioin timeout on the web tier).
|
||||
credentialManager = new AppXCredentialManager();
|
||||
string proto = null;
|
||||
string envNameTccs = null;
|
||||
if (host.StartsWith("http"))
|
||||
{
|
||||
proto = SoaConstants.HTTP;
|
||||
}
|
||||
else if (host.StartsWith("tccs"))
|
||||
{
|
||||
proto = SoaConstants.TCCS;
|
||||
int envNameStart = host.IndexOf('/') + 2;
|
||||
envNameTccs = host.Substring(envNameStart, host.Length - envNameStart);
|
||||
|
||||
}
|
||||
|
||||
// Create the Connection object, no contact is made with the server
|
||||
// until a service request is made
|
||||
connection = new Connection(host, new System.Net.CookieCollection(), credentialManager, SoaConstants.REST, proto, false);
|
||||
if (proto == SoaConstants.TCCS)
|
||||
connection.SetOption(Connection.TCCS_ENV_NAME, envNameTccs);
|
||||
|
||||
|
||||
// Add an ExceptionHandler to the Connection, this will handle any
|
||||
// InternalServerException, communication errors, xml marshalling errors
|
||||
// .etc
|
||||
connection.ExceptionHandler = new AppXExceptionHandler();
|
||||
|
||||
// While the above ExceptionHandler is required, all of the following
|
||||
// Listeners are optional. Client application can add as many or as few Listeners
|
||||
// of each type that they want.
|
||||
|
||||
// Add a Partial Error Listener, this will be notified when ever a
|
||||
// a service returns partial errors.
|
||||
connection.ModelManager.AddPartialErrorListener(new AppXPartialErrorListener());
|
||||
|
||||
// Add a Change and Delete Listener, this will be notified when ever a
|
||||
// a service returns model objects that have been updated or deleted.
|
||||
connection.ModelManager.AddModelEventListener(new AppXModelEventListener());
|
||||
|
||||
// Add a Request Listener, this will be notified before and after each
|
||||
// service request is sent to the server.
|
||||
Connection.AddRequestListener(new AppXRequestListener());
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the single Connection object for the application
|
||||
*
|
||||
* @return connection
|
||||
*/
|
||||
public static Connection getConnection()
|
||||
{
|
||||
return connection;
|
||||
}
|
||||
|
||||
public User Login2(string username, string password, string usergroup, string userrole) {
|
||||
// Get the service stub
|
||||
SessionService sessionService = SessionService.getService(connection);
|
||||
LoginResponse resp = sessionService.Login(username, password, usergroup, userrole, "", "");
|
||||
TCUtil.ThrowServiceDataError(resp.ServiceData);
|
||||
//LoginResponse resp = sessionService.Login(username, password, usergroup, userrole, "", "");
|
||||
return resp.User;
|
||||
}
|
||||
|
||||
/**
|
||||
* Login to the Teamcenter Server
|
||||
*
|
||||
*/
|
||||
public User login()
|
||||
{
|
||||
// Get the service stub
|
||||
SessionService sessionService = SessionService.getService(connection);
|
||||
|
||||
try
|
||||
{
|
||||
// Prompt for credentials until they are right, or until user
|
||||
// cancels
|
||||
String[] credentials = credentialManager.PromptForCredentials();
|
||||
while (true)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
// *****************************
|
||||
// Execute the service operation
|
||||
// *****************************
|
||||
LoginResponse resp = sessionService.Login(credentials[0], credentials[1],
|
||||
credentials[2], credentials[3],"",credentials[4]);
|
||||
|
||||
return resp.User;
|
||||
}
|
||||
catch (InvalidCredentialsException e)
|
||||
{
|
||||
credentials = credentialManager.GetCredentials(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
// User canceled the operation, don't need to tell him again
|
||||
catch (CanceledOperationException /*e*/) {}
|
||||
|
||||
// Exit the application
|
||||
//System.exit(0);
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Terminate the session with the Teamcenter Server
|
||||
*
|
||||
*/
|
||||
public void logout()
|
||||
{
|
||||
// Get the service stub
|
||||
SessionService sessionService = SessionService.getService(connection);
|
||||
try
|
||||
{
|
||||
// *****************************
|
||||
// Execute the service operation
|
||||
// *****************************
|
||||
sessionService.Logout();
|
||||
}
|
||||
catch (ServiceException /*e*/) { }
|
||||
}
|
||||
|
||||
/**
|
||||
* Print some basic information for a list of objects
|
||||
*
|
||||
* @param objects
|
||||
*/
|
||||
public static void printObjects(ModelObject[] objects)
|
||||
{
|
||||
if(objects == null)
|
||||
return;
|
||||
|
||||
|
||||
// Ensure that the referenced User objects that we will use below are loaded
|
||||
getUsers( objects );
|
||||
|
||||
Console.WriteLine("Name\t\tOwner\t\tLast Modified");
|
||||
Console.WriteLine("====\t\t=====\t\t=============");
|
||||
for (int i = 0; i < objects.Length; i++)
|
||||
{
|
||||
if(!(objects[i] is WorkspaceObject ))
|
||||
continue;
|
||||
|
||||
WorkspaceObject wo = (WorkspaceObject)objects[i];
|
||||
try
|
||||
{
|
||||
String name = wo.Object_string;
|
||||
User owner = (User) wo.Owning_user;
|
||||
DateTime lastModified =wo.Last_mod_date;
|
||||
|
||||
Console.WriteLine(name + "\t" + owner.User_name + "\t" + lastModified.ToString());
|
||||
}
|
||||
catch (NotLoadedException e)
|
||||
{
|
||||
// Print out a message, and skip to the next item in the folder
|
||||
// Could do a DataManagementService.getProperties call at this point
|
||||
Console.WriteLine(e.Message);
|
||||
Console.WriteLine("The Object Property Policy ($TC_DATA/soa/policies/Default.xml) is not configured with this property.");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
private static void getUsers(ModelObject[] objects)
|
||||
{
|
||||
if(objects == null)
|
||||
return;
|
||||
|
||||
DataManagementService dmService = DataManagementService.getService(Session.getConnection());
|
||||
ArrayList unKnownUsers = new ArrayList();
|
||||
for (int i = 0; i < objects.Length; i++)
|
||||
{
|
||||
if(!(objects[i] is WorkspaceObject ))
|
||||
continue;
|
||||
|
||||
WorkspaceObject wo = (WorkspaceObject)objects[i];
|
||||
|
||||
User owner = null;
|
||||
try
|
||||
{
|
||||
owner = (User) wo.Owning_user;
|
||||
String userName = owner.User_name;
|
||||
}
|
||||
catch (NotLoadedException /*e*/)
|
||||
{
|
||||
if(owner != null)
|
||||
unKnownUsers.Add(owner);
|
||||
}
|
||||
}
|
||||
User[] users = new User[unKnownUsers.Count];
|
||||
unKnownUsers.CopyTo( users );
|
||||
String[] attributes = { "user_name" };
|
||||
|
||||
|
||||
// *****************************
|
||||
// Execute the service operation
|
||||
// *****************************
|
||||
dmService.GetProperties(users, attributes);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
@ -0,0 +1,37 @@
|
||||
<UserControl x:Class="KPlan.Forms.Config_Classification"
|
||||
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:KPlan.Forms"
|
||||
mc:Ignorable="d"
|
||||
UseLayoutRounding="True"
|
||||
d:DesignHeight="450" d:DesignWidth="800" >
|
||||
<Grid Background="White">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<GroupBox HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Column="0" Margin="5,0,5,5">
|
||||
<GroupBox.Header>EPLAN元器件组</GroupBox.Header>
|
||||
<TreeView Name="tree_Part_Groups" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" MouseDoubleClick="Tree_Part_Groups_MouseDoubleClick" />
|
||||
</GroupBox>
|
||||
<GroupBox HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Column="1" Margin="0,0,5,5">
|
||||
<GroupBox.Header>分类映射关系</GroupBox.Header>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<DataGrid Grid.Row="0" CanUserAddRows="False" ItemsSource="{Binding}" AutoGenerateColumns="False" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" HeadersVisibility="Column" Name="table_Class" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" MinWidth="200" ColumnHeaderHeight="25" RowHeight="23" CanUserResizeRows="False">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn IsReadOnly="True" Header="EPLAN组ID" Width="180" Binding="{Binding from}"/>
|
||||
<DataGridTextColumn IsReadOnly="False" Header="TC分类ID" Width="180" Binding="{Binding to}"/>
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
</Grid>
|
||||
|
||||
</GroupBox>
|
||||
|
||||
</Grid>
|
||||
</UserControl>
|
@ -0,0 +1,209 @@
|
||||
<Grid x:Class="KPlan.Forms.Config_PartSync"
|
||||
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:KPlan.Forms"
|
||||
mc:Ignorable="d"
|
||||
UseLayoutRounding="True"
|
||||
d:DesignHeight="450" d:DesignWidth="900" MinWidth="900" MinHeight="500">
|
||||
<Grid Background="White">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<!--顶栏 类型和id映射-->
|
||||
<Grid Grid.Row="0" Margin="15,10,5,5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="150"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="150"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="150"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Label Grid.Column="0" Content="对象类型" HorizontalContentAlignment="Right"/>
|
||||
<TextBox Grid.Column="1" Name="tb_ObjectType" VerticalContentAlignment="Center" KeyDown="Tb_ObjectType_KeyDown"/>
|
||||
<Button Grid.Column="2" Content="确定" Height="24" Width="60" Margin="5,0,15,0" Click="ChangeType_Button_Click"/>
|
||||
<Label Grid.Column="3" Content=" ERP编码在TC中的属性"/>
|
||||
<TextBox Grid.Column="4" Name="tb_OrderNr_Prop" VerticalContentAlignment="Center"/>
|
||||
<!--<Label Grid.Column="5" Content=" Item ID映射属性"/>
|
||||
<TextBox Grid.Column="6" Name="tb_ItemID_Prop" VerticalContentAlignment="Center"/>-->
|
||||
</Grid>
|
||||
<!--映射组-->
|
||||
<Grid Grid.Row="1">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<!--TC属性-->
|
||||
<GroupBox HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Column="0" Margin="5,0,5,5">
|
||||
<GroupBox.Header>Teamcenter</GroupBox.Header>
|
||||
<Grid Grid.Column="0">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<!--搜索框-->
|
||||
<Grid Grid.Row="0" Margin="5,3,5,5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="5"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="5"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<ComboBox Grid.Column="0" x:Name="cb_Location" Width="85" Height="24" Margin="0,1" SelectionChanged="Cb_Location_SelectionChanged"/>
|
||||
<TextBox Grid.Column="2" Name="tb_TCProp" VerticalContentAlignment="Center" KeyDown="Tb_TCProp_KeyDown" />
|
||||
<Button Grid.Column="4" Click="Find_TC_PropButton_Click" Content="筛选" Width="60" Height="24" Margin="0,1"/>
|
||||
</Grid>
|
||||
<DataGrid Grid.Row="1" ItemsSource="{Binding}" SelectionChanged="PropTable_SelectionChanged" AutoGenerateColumns="False" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" HeadersVisibility="Column" IsReadOnly="True" Name="table_TC_Prop" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" MinWidth="200" ColumnHeaderHeight="25" RowHeight="23" CanUserResizeRows="False">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Header="显示名称" Width="150" Binding="{Binding disName}"/>
|
||||
<DataGridTextColumn Header="真实名称" Width="150" Binding="{Binding realName}"/>
|
||||
<DataGridTextColumn Header="所在类型" Width="120" Binding="{Binding typeName}"/>
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
</Grid>
|
||||
|
||||
</GroupBox>
|
||||
|
||||
<!--eplan属性-->
|
||||
<GroupBox HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Column="1" Margin="5,0,5,5">
|
||||
<GroupBox.Header>Eplan</GroupBox.Header>
|
||||
<Grid Grid.Column="0">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<!--搜索框-->
|
||||
<Grid Grid.Row="0" Margin="5,3,5,5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="5"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBox Grid.Column="0" Name="tb_EPlanProp" VerticalContentAlignment="Center" KeyDown="Tb_EPlanProp_KeyDown"/>
|
||||
<Button Grid.Column="2" Content="筛选" Width="60" Height="24" Margin="0,1" Click="Find_EPlan_Prop_Button_Click"/>
|
||||
</Grid>
|
||||
<DataGrid Grid.Row="1" ItemsSource="{Binding}" SelectionChanged="PropTable_SelectionChanged" AutoGenerateColumns="False" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" HeadersVisibility="Column" Name="table_Eplan_Prop" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" MinWidth="200" ColumnHeaderHeight="25" RowHeight="23" CanUserResizeRows="False">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn IsReadOnly="True" Header="显示名称" Width="150" Binding="{Binding disName}"/>
|
||||
<DataGridTextColumn IsReadOnly="True" Header="真实名称" Width="150" Binding="{Binding realName}"/>
|
||||
<DataGridTextColumn IsReadOnly="True" Header="类型" Width="120" Binding="{Binding type}"/>
|
||||
<DataGridComboBoxColumn x:Name="col_language" IsReadOnly="False" Header="语言环境" Width="100" SelectedItemBinding="{Binding language}" >
|
||||
<DataGridComboBoxColumn.CellStyle>
|
||||
<Style TargetType="DataGridCell">
|
||||
<Setter Property="IsEnabled" Value="{Binding isComboReadOnly}" />
|
||||
</Style>
|
||||
</DataGridComboBoxColumn.CellStyle>
|
||||
<DataGridComboBoxColumn.EditingElementStyle>
|
||||
<Style TargetType="{x:Type ComboBox}">
|
||||
<EventSetter Event="SelectionChanged" Handler="COL_ComboBox_SelectionChanged" />
|
||||
</Style>
|
||||
</DataGridComboBoxColumn.EditingElementStyle>
|
||||
</DataGridComboBoxColumn>
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
</Grid>
|
||||
|
||||
</GroupBox>
|
||||
<!--映射关系-->
|
||||
<GroupBox HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Column="2" Margin="5,0,5,5">
|
||||
<GroupBox.Header>映射关系</GroupBox.Header>
|
||||
<Grid Grid.Column="0">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<!--搜索框-->
|
||||
<Grid Grid.Row="0" Margin="5,3,5,5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="5"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Button Grid.Column="0" Content="双向添加" Width="80" Height="24" Margin="0,1" Click="Add_All_Button_Click"/>
|
||||
<Button Grid.Column="2" Content="清空所有" Width="80" Height="24" Margin="0,1" Click="Clear_All_Button_Click"/>
|
||||
</Grid>
|
||||
<GroupBox HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Row="1">
|
||||
<GroupBox.Header>Eplan to TC</GroupBox.Header>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<DataGrid Grid.Row="0" ItemsSource="{Binding}" AutoGenerateColumns="False" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" HeadersVisibility="Column" IsReadOnly="True" Name="table_EPLAN_TO_TC" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" MinWidth="200" ColumnHeaderHeight="25" RowHeight="23" CanUserResizeRows="False">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Header="From" Width="150" Binding="{Binding from}"/>
|
||||
<DataGridTextColumn Header="To" Width="150" Binding="{Binding to}"/>
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
<Grid Grid.Row="1" Margin="0,5,0,0" Height="25">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Button Grid.Column="0" Click="EPLAN_TO_TC_ADD_Button_Click" Content="+" Width="25" Height="25" Margin="0,0,5,0"/>
|
||||
<Button Grid.Column="1" Content="-" Click="EPLAN_TO_TC_REMOVE_Button_Click" Width="25" Height="25" Margin="0,0,5,0"/>
|
||||
<Button Grid.Column="2" Click="EPLAN_TO_TC_MODIFY_Button_Click" Width="25" Height="25" Margin="0,0,5,0">
|
||||
<Image Source="/EPLAN.EplAddin.KPlan;component/Resources/edit_16.png" Stretch="None" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
||||
</Button>
|
||||
<TextBox Grid.Column="3" Name="tb_EPLAN_TO_TC_eplan" VerticalContentAlignment="Center"/>
|
||||
<Label Grid.Column="4" Content="to"/>
|
||||
<TextBox Grid.Column="5" Name="tb_EPLAN_TO_TC_tc" VerticalContentAlignment="Center"/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
</GroupBox>
|
||||
|
||||
<GroupBox HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Row="2">
|
||||
<GroupBox.Header>TC to Eplan</GroupBox.Header>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<DataGrid Grid.Row="0" ItemsSource="{Binding}" AutoGenerateColumns="False" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" HeadersVisibility="Column" IsReadOnly="True" Name="table_TC_TO_EPLAN" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" MinWidth="200" ColumnHeaderHeight="25" RowHeight="23" CanUserResizeRows="False">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Header="From" Width="150" Binding="{Binding from}"/>
|
||||
<DataGridTextColumn Header="To" Width="150" Binding="{Binding to}"/>
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
<Grid Grid.Row="1" Margin="0,5,0,0" Height="25">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Button Grid.Column="0" Content="+" Click="TC_TO_EPLAN_ADD_Button_Click" Width="25" Height="25" Margin="0,0,5,0"/>
|
||||
<Button Grid.Column="1" Content="-" Click="TC_TO_EPLAN_REMOVE_Button_Click" Width="25" Height="25" Margin="0,0,5,0"/>
|
||||
<Button Grid.Column="2" Click="TC_TO_EPLAN_MODIFY_Button_Click" Width="25" Height="25" Margin="0,0,5,0">
|
||||
<Image Source="/EPLAN.EplAddin.KPlan;component/Resources/edit_16.png" Stretch="None" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
||||
</Button>
|
||||
<TextBox Grid.Column="3" Name="tb_TC_TO_EPLAN_tc" VerticalContentAlignment="Center"/>
|
||||
<Label Grid.Column="4" Content="to"/>
|
||||
<TextBox Grid.Column="5" Name="tb_TC_TO_EPLAN_eplan" VerticalContentAlignment="Center"/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
</GroupBox>
|
||||
</Grid>
|
||||
|
||||
</GroupBox>
|
||||
|
||||
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Grid>
|
@ -0,0 +1,46 @@
|
||||
<Window x:Class="KPlan.Forms.Configure"
|
||||
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:Controls="clr-namespace:KPlan.Forms"
|
||||
mc:Ignorable="d" WindowStartupLocation="CenterOwner" Height="700" Width="1100" MinHeight="480" MinWidth="640" Icon="/EPLAN.EplAddin.KPlan;component/Resources/logo_16.ico" Title="设置">
|
||||
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="38"/>
|
||||
</Grid.RowDefinitions>
|
||||
<!--配置区域-->
|
||||
<TabControl HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="5,5,5,0">
|
||||
<TabItem Header="项目属性" >
|
||||
<Controls:Config_ProjSync x:Name="config_ProjSync" />
|
||||
<!--<ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
|
||||
</ScrollViewer>-->
|
||||
</TabItem>
|
||||
<TabItem Header="部件库属性" >
|
||||
<Controls:Config_PartSync x:Name="config_PartSync" />
|
||||
<!--<ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
|
||||
</ScrollViewer>-->
|
||||
</TabItem>
|
||||
<TabItem Header="分类属性" >
|
||||
<Controls:Config_Classification x:Name="config_Classification"/>
|
||||
</TabItem>
|
||||
<TabItem Header="其他">
|
||||
<Controls:Config_Others x:Name="config_others"/>
|
||||
</TabItem>
|
||||
</TabControl>
|
||||
|
||||
<Grid Grid.Row="1" HorizontalAlignment="Center">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="100"/>
|
||||
<ColumnDefinition Width="100"/>
|
||||
<ColumnDefinition Width="100"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Button Name="b_Save" Grid.Column="0" Content="确定" Height="25" Width="75" Click="b_Save_Click"/>
|
||||
<Button Name="b_Apply" Grid.Column="1" Content="应用" Height="25" Width="75" Click="b_Apply_Click"/>
|
||||
<Button Name="b_Close" Grid.Column="2" Content="取消" Height="25" Width="75" Click="b_Close_Click"/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
</Window>
|
@ -0,0 +1,77 @@
|
||||
<Window x:Class="KPlan.Forms.CreateProject"
|
||||
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:KPlan.Forms"
|
||||
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
|
||||
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
||||
mc:Ignorable="d" WindowStartupLocation="CenterOwner" Height="310" Width="640" MinHeight="310" MinWidth="360" Icon="/EPLAN.EplAddin.KPlan;component/Resources/logo_16.ico" Title="创建项目">
|
||||
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="0.6*"/>
|
||||
<ColumnDefinition x:Name="colDef_TCTemplate" Width="0.4*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid Grid.Column="0">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid Grid.Row="0" Margin="15,15,10,15">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="25"/>
|
||||
<RowDefinition Height="8"/>
|
||||
<RowDefinition Height="25"/>
|
||||
<RowDefinition Height="8"/>
|
||||
<RowDefinition Height="25"/>
|
||||
<RowDefinition Height="8"/>
|
||||
<RowDefinition Height="25"/>
|
||||
<RowDefinition Height="8"/>
|
||||
<RowDefinition Height="25"/>
|
||||
<RowDefinition Height="8"/>
|
||||
<RowDefinition Height="25"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="100"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="50"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Label Grid.Row="0" Grid.Column="0" Content="项目编码"/>
|
||||
<TextBox Grid.Row="0" Grid.Column="1" x:Name="tb_ProjCode" VerticalContentAlignment="Center"/>
|
||||
|
||||
<Label Grid.Row="2" Grid.Column="0" Content="项目名称"/>
|
||||
<TextBox Grid.Row="2" Grid.Column="1" x:Name="tb_ProjName" VerticalContentAlignment="Center"/>
|
||||
|
||||
<Label Grid.Row="4" Grid.Column="0" Content="保存位置"/>
|
||||
<TextBox Grid.Row="4" Grid.Column="1" x:Name="tb_SavePosition" VerticalContentAlignment="Center"/>
|
||||
<Button Grid.Row="4" Grid.Column="2" Content="..." Click="SavePosition_Button_Click" Width="25" Height="25" HorizontalAlignment="Left" Margin="5,0"/>
|
||||
|
||||
<Label Grid.Row="6" Grid.Column="0" Content="模板"/>
|
||||
<TextBox Grid.Row="6" Grid.Column="1" x:Name="tb_Template" VerticalContentAlignment="Center"/>
|
||||
<Button Grid.Row="6" Grid.Column="2" Content="..." Click="Template_Button_Click" Width="25" Height="25" HorizontalAlignment="Left" Margin="5,0"/>
|
||||
|
||||
<CheckBox Grid.Row="8" Grid.Column="0" Content="设置创建时间" VerticalAlignment="Center" Name="cb_CreationDate" Click="CreationDate_CheckBox_SelectionChanged"/>
|
||||
<xctk:DateTimePicker Grid.Row="8" Grid.Column="1" IsEnabled="False" Name="dp_CreationDate" Format="Custom" FormatString="yyyy/MM/dd HH:mm:ss" TimeFormat="Custom" TimeFormatString="HH:mm:ss"/>
|
||||
<CheckBox Grid.Row="10" Grid.Column="0" Content="设置创建者" VerticalAlignment="Center" Name="cb_Creator" Click="Cb_Creator_SelectionChanged"/>
|
||||
<TextBox Grid.Row="10" Grid.Column="1" Name="tb_Creator" VerticalContentAlignment="Center" IsEnabled="False" />
|
||||
|
||||
|
||||
</Grid>
|
||||
<Grid Grid.Row="1" HorizontalAlignment="Center" Margin="0,5,0,8">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="35"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Button Content="确定" Width="75" Height="24" Grid.Column="0" Click="CreateProj_Button_Click"/>
|
||||
<Button Content="取消" Width="75" Height="24" Grid.Column="2" Click="Close_Button_Click"/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
<GroupBox x:Name="groupbox_TCTemplate" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Column="1" Margin="5,0,5,5">
|
||||
<GroupBox.Header>Teamcenter模板</GroupBox.Header>
|
||||
<ListView x:Name="list_TCTemplate" SelectionChanged="List_TCTemplate_SelectionChanged"/>
|
||||
</GroupBox>
|
||||
</Grid>
|
||||
</Window>
|
@ -0,0 +1,38 @@
|
||||
<Window x:Class="KPlan.Forms.KBgWorker2"
|
||||
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" Icon="/EPLAN.EplAddin.KPlan;component/Resources/logo_16.ico" Background="{x:Null}" Visibility="Visible" WindowStartupLocation="CenterOwner"
|
||||
MouseDown="Window_MouseDown" Height="90" Width="288" FontFamily="Microsoft YaHei" Foreground="{x:Null}" TextOptions.TextFormattingMode="Display" AllowsTransparency="True" WindowStyle="None" ResizeMode="NoResize" Padding="0">
|
||||
<!--<Window.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="KStyle.xaml"/>
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</Window.Resources>-->
|
||||
<Grid Margin="0,0,-2,-2">
|
||||
<Rectangle Fill="#FFFBFBFB" RadiusX="8" RadiusY="8" Margin="10,10,10,10">
|
||||
<Rectangle.Effect>
|
||||
<DropShadowEffect BlurRadius="10" ShadowDepth="-5" Opacity="0.8" Direction="0" Color="#FF303030"/>
|
||||
</Rectangle.Effect>
|
||||
</Rectangle>
|
||||
<Label Name="lable" Content="正在执行:" HorizontalAlignment="Left" Margin="23,25,0,0" VerticalAlignment="Top"/>
|
||||
<Grid Margin="23,20,23,0" Height="18" VerticalAlignment="Center">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<ProgressBar Grid.Column="0" Name="progressBar" HorizontalAlignment="Stretch" Height="12" VerticalAlignment="Center"/>
|
||||
<TextBlock Grid.Column="1" x:Name="tb_cancel" HorizontalAlignment="Center" TextAlignment="Center" TextWrapping="NoWrap" Width="30" VerticalAlignment="Center">
|
||||
<Hyperlink Click="CancelWork">取消</Hyperlink>
|
||||
</TextBlock>
|
||||
</Grid>
|
||||
|
||||
<!--<ProgressBar Name="progressBar" HorizontalAlignment="Stretch" Height="12" Margin="23,50,23,0" VerticalAlignment="Top"/>
|
||||
<TextBlock HorizontalAlignment="Right" Margin="0,47,23,0" TextWrapping="NoWrap" Visibility="Hidden" VerticalAlignment="Top">
|
||||
<Hyperlink Click="CancelWork">取消</Hyperlink>
|
||||
</TextBlock>-->
|
||||
</Grid>
|
||||
</Window>
|
@ -0,0 +1,81 @@
|
||||
<Window x:Class="KPlan.Forms.KCheckProject"
|
||||
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:KPlan.Forms"
|
||||
mc:Ignorable="d" Loaded="Window_Loaded" WindowStartupLocation="CenterOwner" Height="600" Width="800" MinHeight="480" MinWidth="640" Icon="/EPLAN.EplAddin.KPlan;component/Resources/logo_16.ico" Title="检查项目">
|
||||
<!--<Window.Resources>
|
||||
<Style TargetType="{x:Type TextBlock}">
|
||||
<Style.Triggers>
|
||||
<Trigger Property="Text" Value="TC不存在">
|
||||
<Setter Property="Foreground" Value="Red"/>
|
||||
</Trigger>
|
||||
<Trigger Property="Text" Value="停用部件">
|
||||
<Setter Property="Foreground" Value="Red"/>
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</Window.Resources>-->
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="35"/>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="35"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid Grid.Row="0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="25"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="15"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Label Content=" 项目编号:" Grid.Column="0" VerticalAlignment="Center" />
|
||||
<Label x:Name="tb_ProjId" BorderThickness="0 0 0 2" BorderBrush="DarkGray" Grid.Column="1" Width="160" Height="25" VerticalContentAlignment="Center"/>
|
||||
<Label Content="项目名称:" Grid.Column="3" VerticalAlignment="Center"/>
|
||||
<Label x:Name="tb_ProjName" BorderThickness="0 0 0 2" BorderBrush="DarkGray" Grid.Column="4" Width="160" Height="25" VerticalContentAlignment="Center"/>
|
||||
<Button x:Name="b_save" Content="保存" Click="b_save_Click" Grid.Column="6" Width="95" Height="25" />
|
||||
</Grid>
|
||||
<DataGrid Margin="5 0 5 0" Grid.Row="1" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" Loaded="datagrid_CheckResult_Loaded" ItemsSource="{Binding}" HeadersVisibility="Column" IsReadOnly="True" Name="datagrid_CheckResult" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" MinWidth="300" ColumnHeaderHeight="25">
|
||||
<DataGrid.CellStyle>
|
||||
<Style TargetType="{x:Type DataGridCell}" >
|
||||
<!--<Setter Property="Foreground" Value="Green"/>-->
|
||||
<Style.Triggers>
|
||||
<MultiDataTrigger>
|
||||
<MultiDataTrigger.Conditions>
|
||||
<Condition Binding="{Binding Path=Column.Header, RelativeSource={RelativeSource Self}}" Value="检查结果"/>
|
||||
<Condition Binding="{Binding [检查结果]}" Value="TC不存在"/>
|
||||
</MultiDataTrigger.Conditions>
|
||||
<Setter Property="Foreground" Value="Red"/>
|
||||
</MultiDataTrigger>
|
||||
<MultiDataTrigger>
|
||||
<MultiDataTrigger.Conditions>
|
||||
<Condition Binding="{Binding Path=Column.Header, RelativeSource={RelativeSource Self}}" Value="检查结果"/>
|
||||
<Condition Binding="{Binding [检查结果]}" Value="停产部件"/>
|
||||
</MultiDataTrigger.Conditions>
|
||||
<Setter Property="Foreground" Value="Red"/>
|
||||
</MultiDataTrigger>
|
||||
<!--<DataTrigger Binding="{Binding [检查结果]}" Value="TC不存在">
|
||||
<Setter Property="Foreground" Value="Red"/>
|
||||
</DataTrigger>-->
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</DataGrid.CellStyle>
|
||||
</DataGrid>
|
||||
<Grid Grid.Row="2" HorizontalAlignment="Right">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="18"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="15"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Button Name="b_Export" Click="b_Export_Click" Content="导出" IsEnabled="False" Width="95" Height="25" Grid.Column="0"/>
|
||||
<Button Name="b_Close" Click="b_Close_Click" Content="退出" Width="95" Height="25" Grid.Column="2"/>
|
||||
</Grid>
|
||||
|
||||
</Grid>
|
||||
</Window>
|
@ -0,0 +1,87 @@
|
||||
<Window x:Class="KPlan.Forms.KCheckProject_Ex"
|
||||
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:KPlan.Forms"
|
||||
mc:Ignorable="d" Loaded="Window_Loaded" WindowStartupLocation="CenterOwner" Height="600" Width="900" MinHeight="480" MinWidth="880" Icon="/EPLAN.EplAddin.KPlan;component/Resources/logo_16.ico" Title="检查项目">
|
||||
<!--<Window.Resources>
|
||||
<Style TargetType="{x:Type TextBlock}">
|
||||
<Style.Triggers>
|
||||
<Trigger Property="Text" Value="TC不存在">
|
||||
<Setter Property="Foreground" Value="Red"/>
|
||||
</Trigger>
|
||||
<Trigger Property="Text" Value="停用部件">
|
||||
<Setter Property="Foreground" Value="Red"/>
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</Window.Resources>-->
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="35"/>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="35"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid Grid.Row="0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="25"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="15"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="15"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="15"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Label Content=" 项目编号:" Grid.Column="0" VerticalAlignment="Center" />
|
||||
<Label x:Name="tb_ProjId" BorderThickness="0 0 0 2" BorderBrush="DarkGray" Grid.Column="1" Width="160" Height="25" VerticalContentAlignment="Center"/>
|
||||
<Label Content="项目名称:" Grid.Column="3" VerticalAlignment="Center"/>
|
||||
<Label x:Name="tb_ProjName" BorderThickness="0 0 0 2" BorderBrush="DarkGray" Grid.Column="4" Width="160" Height="25" VerticalContentAlignment="Center"/>
|
||||
<!--<Button x:Name="b_check_error" Content="检查错误项" Click="b_check_error_Click" Grid.Column="6" Width="95" Height="25" />-->
|
||||
<Button x:Name="b_check_all" Content="检查全部" Click="b_check_all_Click" Grid.Column="8" Width="95" Height="25" />
|
||||
<Button x:Name="b_save" Content="检查并保存" Click="b_save_Click" Grid.Column="10" Width="95" Height="25" />
|
||||
</Grid>
|
||||
<DataGrid Margin="5 0 5 0" Grid.Row="1" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" Loaded="datagrid_CheckResult_Loaded" ItemsSource="{Binding}" HeadersVisibility="Column" IsReadOnly="True" Name="datagrid_CheckResult" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" MinWidth="300" ColumnHeaderHeight="25">
|
||||
<DataGrid.CellStyle>
|
||||
<Style TargetType="{x:Type DataGridCell}" >
|
||||
<!--<Setter Property="Foreground" Value="Green"/>-->
|
||||
<Style.Triggers>
|
||||
<MultiDataTrigger>
|
||||
<MultiDataTrigger.Conditions>
|
||||
<Condition Binding="{Binding Path=Column.Header, RelativeSource={RelativeSource Self}}" Value="检查结果"/>
|
||||
<Condition Binding="{Binding [检查结果]}" Value="TC不存在"/>
|
||||
</MultiDataTrigger.Conditions>
|
||||
<Setter Property="Foreground" Value="Red"/>
|
||||
</MultiDataTrigger>
|
||||
<MultiDataTrigger>
|
||||
<MultiDataTrigger.Conditions>
|
||||
<Condition Binding="{Binding Path=Column.Header, RelativeSource={RelativeSource Self}}" Value="检查结果"/>
|
||||
<Condition Binding="{Binding [检查结果]}" Value="停产部件"/>
|
||||
</MultiDataTrigger.Conditions>
|
||||
<Setter Property="Foreground" Value="Red"/>
|
||||
</MultiDataTrigger>
|
||||
<!--<DataTrigger Binding="{Binding [检查结果]}" Value="TC不存在">
|
||||
<Setter Property="Foreground" Value="Red"/>
|
||||
</DataTrigger>-->
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</DataGrid.CellStyle>
|
||||
</DataGrid>
|
||||
<Grid Grid.Row="2" HorizontalAlignment="Right">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="18"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="15"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Button Name="b_Export" Click="b_Export_Click" Content="导出" IsEnabled="False" Width="95" Height="25" Grid.Column="0"/>
|
||||
<Button Name="b_Close" Click="b_Close_Click" Content="退出" Width="95" Height="25" Grid.Column="2"/>
|
||||
</Grid>
|
||||
|
||||
</Grid>
|
||||
</Window>
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,58 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:f="clr-namespace:KPlan.Forms">
|
||||
<Style TargetType="{x:Type f:EPlanTreeItem}">
|
||||
<Setter Property="HeaderTemplate">
|
||||
<Setter.Value>
|
||||
<DataTemplate>
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Image
|
||||
Width="16"
|
||||
Height="16"
|
||||
Stretch="Fill"
|
||||
Source="{DynamicResource ICON}"
|
||||
/>
|
||||
<TextBlock Text="{Binding}" Margin="5,0" />
|
||||
</StackPanel>
|
||||
</DataTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
<Setter Property="Margin" Value="0 2 0 0" />
|
||||
</Style>
|
||||
<Style TargetType="{x:Type f:TCTreeItem}">
|
||||
<Setter Property="HeaderTemplate">
|
||||
<Setter.Value>
|
||||
<DataTemplate>
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Image
|
||||
Width="16"
|
||||
Height="16"
|
||||
Stretch="Fill"
|
||||
Source="{DynamicResource ICON}"
|
||||
/>
|
||||
<TextBlock Text="{Binding}" Margin="5,0" />
|
||||
</StackPanel>
|
||||
</DataTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style TargetType="{x:Type DataGridColumnHeader}" x:Key="white_header">
|
||||
<Setter Property="Background" Value="LightGray" />
|
||||
<Setter Property="BorderBrush" Value="#000"/>
|
||||
<Setter Property="BorderThickness" Value="0,0,1,0"/>
|
||||
<Setter Property="HorizontalContentAlignment" Value="Center"/>
|
||||
</Style>
|
||||
<Style TargetType="{x:Type DataGridColumnHeader}" x:Key="tc_header">
|
||||
<Setter Property="Background" Value="#49BEB7" />
|
||||
<Setter Property="BorderBrush" Value="#000"/>
|
||||
<Setter Property="BorderThickness" Value="0,0,1,0"/>
|
||||
<Setter Property="HorizontalContentAlignment" Value="Center"/>
|
||||
</Style>
|
||||
<Style TargetType="{x:Type DataGridColumnHeader}" x:Key="eplan_header">
|
||||
<Setter Property="Background" Value="#FF5959" />
|
||||
<Setter Property="BorderBrush" Value="#000"/>
|
||||
<Setter Property="BorderThickness" Value="0,0,1,0"/>
|
||||
<Setter Property="HorizontalContentAlignment" Value="Center"/>
|
||||
</Style>
|
||||
</ResourceDictionary>
|
@ -0,0 +1,36 @@
|
||||
<Window x:Class="KPlan.Forms.Login"
|
||||
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" Icon="/EPLAN.EplAddin.KPlan;component/Resources/logo_16.ico" Background="{x:Null}" Visibility="Visible" WindowStartupLocation="CenterOwner"
|
||||
MouseDown="Window_MouseDown" Height="290" Width="288" FontFamily="Microsoft YaHei" Foreground="{x:Null}" TextOptions.TextFormattingMode="Display" AllowsTransparency="True" WindowStyle="None" ResizeMode="NoResize" Padding="0"
|
||||
>
|
||||
<Window.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="KStyle.xaml"/>
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</Window.Resources>
|
||||
<Grid Margin="0,0,-2,-2">
|
||||
<Rectangle Fill="#FFFBFBFB" RadiusX="8" RadiusY="8" Margin="10,10,10,10">
|
||||
<Rectangle.Effect>
|
||||
<DropShadowEffect BlurRadius="10" ShadowDepth="-5" Opacity="0.8" Direction="0" Color="#FF303030"/>
|
||||
</Rectangle.Effect>
|
||||
</Rectangle>
|
||||
<Label Content="用户名" HorizontalAlignment="Left" Margin="48,57,0,0" VerticalAlignment="Top"/>
|
||||
<Label Content="密 码" HorizontalAlignment="Left" Margin="48,102,0,0" VerticalAlignment="Top"/>
|
||||
<Label Content="角 色" HorizontalAlignment="Left" Margin="48,147,0,0" VerticalAlignment="Top"/>
|
||||
<TextBox Name="tb_UserName" HorizontalAlignment="Left" Height="27" Margin="98,54,0,0" VerticalAlignment="Top" Width="150" BorderThickness="0,0,0,2" VerticalContentAlignment="Bottom" ToolTip="" Background="#FFFBFBFB"/>
|
||||
<PasswordBox Name="tb_Password" HorizontalAlignment="Left" Height="27" Margin="98,99,0,0" VerticalAlignment="Top" Width="150" VerticalContentAlignment="Bottom" BorderThickness="0,0,0,2" Background="#FFFBFBFB"/>
|
||||
<TextBox Name="tb_Character" HorizontalAlignment="Left" Height="27" Margin="98,144,0,0" VerticalAlignment="Top" Width="150" VerticalContentAlignment="Bottom" BorderThickness="0,0,0,2" Background="#FFFBFBFB"/>
|
||||
<CheckBox Name="cb_AutoLogin" Content="自动登录" HorizontalAlignment="Right" Margin="0,183,50,0" VerticalAlignment="Top"/>
|
||||
<Button x:Name="b_Login" Content="登录" HorizontalAlignment="Left" Margin="50,214,0,0" VerticalAlignment="Top" Width="75" Height="24" IsDefault="True" Click="DoLogin"/>
|
||||
<Rectangle Name="rec_Logout" Fill="#FFFBFBFB" RadiusX="8" RadiusY="8" Margin="10,10,10,10" Visibility="Hidden"/>
|
||||
<Button x:Name="b_Close" Content="关闭" HorizontalAlignment="Right" Margin="0,214,50,0" VerticalAlignment="Top" Width="75" Height="24" Click="Button_Click_1" IsCancel="True"/>
|
||||
<Button Name="b_Logout" Content="注销" HorizontalAlignment="Left" Margin="50,214,0,0" VerticalAlignment="Top" Width="75" Height="24" Click="DoLogout" Visibility="Hidden"/>
|
||||
<Label Name="l_UserNameTitle" Content="当前登录用户:" HorizontalAlignment="Left" Margin="48,116,0,0" VerticalAlignment="Top" Visibility="Hidden"/>
|
||||
<Label Name="l_UserName" Content="" HorizontalAlignment="Left" Margin="142,116,0,0" VerticalAlignment="Top" Visibility="Hidden"/>
|
||||
</Grid>
|
||||
</Window>
|
@ -0,0 +1,85 @@
|
||||
<Window x:Class="KPlan.Forms.OpenFromTC"
|
||||
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" Loaded="WindowLoaded" UseLayoutRounding="True" WindowStartupLocation="CenterOwner" Height="600" Width="800" MinHeight="480" MinWidth="640" Icon="/EPLAN.EplAddin.KPlan;component/Resources/logo_16.ico" Title="打开">
|
||||
<Window.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="KStyle.xaml"/>
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</Window.Resources>
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="5" MaxWidth="5"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Column="0">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Name="rd_QueryField" Height="*"/>
|
||||
<RowDefinition Height="5"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<GroupBox HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Row="0" Margin="5,2,5,5" >
|
||||
<GroupBox.Header>查询条件</GroupBox.Header>
|
||||
<ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Row="0">
|
||||
<Grid MinWidth="300" Margin="0,7,0,0">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="5"/>
|
||||
<RowDefinition Height="30"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid Name="grid_QueryField" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Row="0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="100"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="50"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
</Grid>
|
||||
<Grid HorizontalAlignment="Center" VerticalAlignment="Stretch" Grid.Row="2">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="100"/>
|
||||
<ColumnDefinition Width="100"/>
|
||||
<ColumnDefinition Width="100"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Button Name="b_Open" Content="打开" Width="75" Height="24" Grid.Column="0" Click="b_Open_Click"/>
|
||||
<Button Name="b_Query" Content="查询" Width="75" Height="24" Grid.Column="1" Click="b_Query_Click"/>
|
||||
<Button Name="b_Reset" Content="重置" Width="75" Height="24" Grid.Column="2" Click="b_Reset_Click"/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</ScrollViewer>
|
||||
</GroupBox>
|
||||
<GridSplitter HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Row="1" Background="#FFE6E6E6" />
|
||||
<GroupBox HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Row="2" Margin="5,2,5,5">
|
||||
<GroupBox.Header>查询结果</GroupBox.Header>
|
||||
<DataGrid VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" Loaded="QueryTableLoaded" ItemsSource="{Binding}" HeadersVisibility="Column" IsReadOnly="True" Name="datagrid_SearchResult" SelectionChanged="dataGrid_SelectionChanged" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" MinWidth="300" ColumnHeaderHeight="25" RowHeight="23" CanUserResizeRows="False" />
|
||||
<!--<ScrollViewer Name="scroll_Datagrid" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" >
|
||||
</ScrollViewer>-->
|
||||
</GroupBox>
|
||||
</Grid>
|
||||
<GridSplitter HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Column="1" Background="#FFE6E6E6"/>
|
||||
<GroupBox HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Column="2" Margin="5,2,5,5">
|
||||
<GroupBox.Header>我的Teamcenter</GroupBox.Header>
|
||||
<TabControl x:Name="tab_home" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0,2,0,0">
|
||||
<TabItem Header="Home">
|
||||
<!--<TabItem.Style>
|
||||
<Style TargetType="TabItem">
|
||||
<Setter Property="Header">
|
||||
<Setter.Value>
|
||||
<Image Height="16" Width="16" Source="/EPLAN.EplAddin.KPlan;component/Resources/openhome_16.png"/>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
</TabItem.Style>-->
|
||||
<TreeView Name="tree_Home" SelectedItemChanged="tree_SelectionChanged" TreeViewItem.Expanded="ExpandHomeTree" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
|
||||
</TabItem>
|
||||
<TabItem Name="tabItem_SearchTarget" Header="TabItem" Visibility="Hidden">
|
||||
<TreeView Name="tree_SearchTarget" SelectedItemChanged="tree_SelectionChanged" TreeViewItem.Expanded="ExpandHomeTree" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
|
||||
</TabItem>
|
||||
</TabControl>
|
||||
</GroupBox>
|
||||
</Grid>
|
||||
</Window>
|
@ -0,0 +1,145 @@
|
||||
<Window x:Class="KPlan.Forms.PartSync"
|
||||
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" Loaded="Window_Loaded" UseLayoutRounding="True" WindowStartupLocation="CenterScreen" Height="640" Width="1120" MinHeight="480" MinWidth="640" Icon="/EPLAN.EplAddin.KPlan;component/Resources/logo_16.ico" Title="部件库同步">
|
||||
<!--<Window.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="KStyle.xaml"/>
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</Window.Resources>-->
|
||||
<TabControl HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="5,5,5,5">
|
||||
<TabItem Header="EPLAN to TC">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid Grid.Row="0" Margin="0,10,0,5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="200"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="200"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Label Content="部件编号" Grid.Column="0"/>
|
||||
<TextBox x:Name="tb_PartNr" Grid.Column="1" Margin="0,0,20,0" VerticalContentAlignment="Center"/>
|
||||
<Label Content="Item ID" Grid.Column="2"/>
|
||||
<TextBox x:Name="tb_ERPNr" Grid.Column="3" Margin="0,0,20,0" VerticalContentAlignment="Center"/>
|
||||
<Button Content="查询" Click="Query_Button_Click" Grid.Column="4" Width="80" Height="24"/>
|
||||
</Grid>
|
||||
<Grid Grid.Row="1">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="250"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<GroupBox HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Column="0" Margin="5,0,5,5">
|
||||
<GroupBox.Header>EPLAN元器件库</GroupBox.Header>
|
||||
<TreeView Name="tree_Parts" MouseDoubleClick="Tree_Parts_MouseDoubleClick" TreeViewItem.Expanded="Tree_Parts_Expanded" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
|
||||
</GroupBox>
|
||||
|
||||
<Grid VerticalAlignment="Center" Grid.Column="1">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="15"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="15"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Button Content=">" Click="Add_Button_Click" Grid.Row="0" Width="60" Height="30"/>
|
||||
<Button Content="-" Click="Remove_Button_Click" Grid.Row="2" Width="60" Height="30"/>
|
||||
<Button Grid.Row="4" Click="Add_All_Button_Click" Width="60
|
||||
" Height="50">
|
||||
<TextBlock Text="添加EPLAN未同步零件" TextWrapping="Wrap" TextAlignment="Center"/>
|
||||
</Button>
|
||||
</Grid>
|
||||
<GroupBox HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Column="2" Margin="5,0,5,5">
|
||||
<GroupBox.Header>待同步元器件库</GroupBox.Header>
|
||||
<DataGrid ItemsSource="{Binding}" AutoGenerateColumns="False" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" Loaded="Table_Sync_To_TC_Loaded" HeadersVisibility="Column" IsReadOnly="True" Name="table_Sync_To_TC" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" MinWidth="300" ColumnHeaderHeight="25" RowHeight="23" CanUserResizeRows="False">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Header="序号" Width="50" Binding="{Binding index}"/>
|
||||
<DataGridTextColumn Header="部件编号" Width="120" Binding="{Binding partNr}"/>
|
||||
<DataGridTextColumn Header="名称" Width="80" Binding="{Binding name}"/>
|
||||
<DataGridTextColumn Header="Item ID" Width="80" Binding="{Binding itemID}"/>
|
||||
<DataGridTextColumn Header="Item名称" Width="80" Binding="{Binding itemName}"/>
|
||||
<DataGridTextColumn Header="Item版本" Width="80" Binding="{Binding itemRev}"/>
|
||||
<DataGridTextColumn Header="零件类别" Width="80" Binding="{Binding type}"/>
|
||||
<DataGridTextColumn Header="发布状态" Width="80" Binding="{Binding releaseStatus}"/>
|
||||
<DataGridTextColumn Header="同步状态" Width="80" Binding="{Binding syncStatus}"/>
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
</GroupBox>
|
||||
|
||||
</Grid>
|
||||
<Grid Grid.Row="2" HorizontalAlignment="Center" Margin="0,5,0,5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="100"/>
|
||||
<ColumnDefinition Width="100"/>
|
||||
<ColumnDefinition Width="140"/>
|
||||
<ColumnDefinition Width="100"/>
|
||||
<ColumnDefinition Width="100"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Button Content="EPLAN to TC" Width="80" Height="24" Grid.Column="0" Click="EPlan_to_TC_Button_Click"/>
|
||||
<Button Content="修订" Width="80" Height="24" Grid.Column="1" Click="Revise_Button_Click"/>
|
||||
<Button Content="EPLAN数据文件上传" Width="120" Height="24" Grid.Column="2" Click="Upload_PartsDB"/>
|
||||
<Button Content="同步ERP编码" Width="80" Height="24" Grid.Column="3" Click="SyncErpCode_Button_Click"/>
|
||||
<Button Content="取消" Width="80" Height="24" Grid.Column="4" Click="Close_Button_Click"/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</TabItem>
|
||||
<TabItem Header="TC to EPLAN">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid Grid.Row="0" Margin="0,10,0,5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="200"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="200"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Label Content="部件编号" Grid.Column="0"/>
|
||||
<TextBox x:Name="tb_PartNr_TC" Grid.Column="1" Margin="0,0,20,0" VerticalContentAlignment="Center"/>
|
||||
<Label Content="Item ID" Grid.Column="2"/>
|
||||
<TextBox x:Name="tb_ItemID_TC" Grid.Column="3" Margin="0,0,20,0" VerticalContentAlignment="Center"/>
|
||||
<Button Content="查询" Grid.Column="4" Width="80" Height="24" Click="TC_Query_Button_Click"/>
|
||||
</Grid>
|
||||
<GroupBox HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Row="1" Margin="5,0,5,5">
|
||||
<GroupBox.Header>待同步元器件库</GroupBox.Header>
|
||||
<DataGrid ItemsSource="{Binding}" AutoGenerateColumns="False" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" Loaded="Table_Sync_To_TC_Loaded" HeadersVisibility="Column" IsReadOnly="True" Name="table_Sync_To_EPLAN" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" MinWidth="300" ColumnHeaderHeight="25" RowHeight="23" CanUserResizeRows="False">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Header="序号" Width="50" Binding="{Binding index}"/>
|
||||
<DataGridTextColumn Header="部件编号" Width="180" Binding="{Binding partNr}"/>
|
||||
<DataGridTextColumn Header="名称" Width="150" Binding="{Binding name}"/>
|
||||
<DataGridTextColumn Header="Item ID" Width="150" Binding="{Binding itemID}"/>
|
||||
<DataGridTextColumn Header="Item名称" Width="150" Binding="{Binding itemName}"/>
|
||||
<DataGridTextColumn Header="Item版本" Width="80" Binding="{Binding itemRev}"/>
|
||||
<DataGridTextColumn Header="零件类别" Width="80" Binding="{Binding type}"/>
|
||||
<DataGridTextColumn Header="发布状态" Width="80" Binding="{Binding releaseStatus}"/>
|
||||
<DataGridTextColumn Header="同步状态" Width="80" Binding="{Binding syncStatus}"/>
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
</GroupBox>
|
||||
<Grid Grid.Row="2" HorizontalAlignment="Center" Margin="0,5,0,5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="100"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Button Content="TC to EPLAN" Width="80" Height="24" Grid.Column="0" Click="TC_to_EPLAN_Button_Click"/>
|
||||
<Button Content="取消" Click="Close_Button_Click" Width="80" Height="24" Grid.Column="2"/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</TabItem>
|
||||
</TabControl>
|
||||
</Window>
|
@ -0,0 +1,12 @@
|
||||
<Window x:Class="KPlan.Forms.TestWindow"
|
||||
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"
|
||||
d:DesignHeight="300" d:DesignWidth="300" WindowStartupLocation="CenterOwner">
|
||||
<Grid>
|
||||
<Label Content="啊啊啊啊啊啊啊" HorizontalAlignment="Left" Margin="171,112,0,0" VerticalAlignment="Top"/>
|
||||
|
||||
</Grid>
|
||||
</Window>
|
@ -0,0 +1,124 @@
|
||||
<?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>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="logo_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\logo_16.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
</root>
|
@ -0,0 +1,145 @@
|
||||
<?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>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAABloxIAXZYwBGOgDIccAAhtLwEYPWAGHjdmBhZVSQIGAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAULj2NhmX4nwAhNO+BWuntmEvHGiSLQCmelIB0k12BuBEdgbIVVsEmHUsAECGNwAGAAAAAAAA
|
||||
AAAAAAAAAAAAALLg+0p/zfvYQLP4/ziRx/A7bY70UFRc/1ZaMv93ZBH/m14C/6BKAP+QLwDqfyoAgIIs
|
||||
AAwAAAAAAAAAAAAAAAAAAAAAy8/VTKi+z+6umYj/sauM/3GzxP8zmdD/G3mx/zVcbf9zTSn/pEEF/5Qw
|
||||
APhyOQF6I24HAgAAAAAAAAAAAAAAALU1AWLTZCr45IUl//icAv/xvRf/0s1M/5fIlv9Er9f/EIjO/ydi
|
||||
g/9iSSn/UV0F5EJmATYAAAAAAAAAAKQ2BxDEPwG672AA//qVAv/7vQb//NgK//zkB//55Qn/49os/53E
|
||||
hP80p9v/CYbI/xpyYP8wZR6CAAAAAAAAAACwPAoo0UQB4vl0Bf/9rRT//tYr//7tNf/+9zD//fgi//zs
|
||||
Ev/41Q7/z7Y8/2Glt/8gneX/JoKoxCFokxoAAAAAsjgDONVIAur8gBP//74+///kZP//9XH/+/pk//Lx
|
||||
Rv/98zH/+90h//i6GP/CmiT/Uaat/0Ky9PwrmNmMAG3BBrI8CSjQSAfi+4Us///Kbv//6pz///mz/7K5
|
||||
bP+KkTb/++xM//7bN//lxDL/oLUl/2iQMP9Tp9P/XLv06h+Y4EqpMQAOxUYNuPGFRf//yor//+y8/8fM
|
||||
qv84XyX/R1oe/+XRWv//0kz/z8hI/7WsQv+TZhD8THaO9GjG//9FsvKSAAAAALtFEWTff1H4/7+R/9bB
|
||||
kv9NcTX/Lmca/zJRGv+VqFP/68pg/7zMXv+srlb/klgn9jl+quJnx///ULz8oAAAAAC1QREQ03xXqNOe
|
||||
eP9dcjT/QHYt/1WIQf8tVxv/YohJ/6TMb/+e2nb/h7pw/0OBnP84q/D/Z8f/7kC4/14AAAAAAAAAAIRl
|
||||
MTJTaCriSHo1/36mcP93oWf/NGAi/19/Tf+Ovnb/isSA8j+XnOoxq/HkTL3/uk29/1wVo/8IAAAAAB1X
|
||||
BgwuZhuQYI1Q+qC9lf+1zK3/oL2V/0h0N/xQcT3OhqVhkm+TZ0oMeb8yL7H+Ije1/w4AAAAAAAAAAAAA
|
||||
AAAlYg1KS4A31I+xguiqxKHutsyu9rnPsfx1mWjyJU4RVAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAKWgRDjp2Ix5EfS4uT4Q7SGOSUWJ4oWl4ZpJVii9iGzgAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAA//8AAMg/AACADwAAwA8AAMAHAACAAwAAgAMAAIABAACAAQAAgAAAAMAAAADAAQAA4AMAAMA/
|
||||
AADA/wAA/v8AAA==
|
||||
</value>
|
||||
</data>
|
||||
</root>
|
@ -0,0 +1,145 @@
|
||||
<?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>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAABloxIAXZYwBGOgDIccAAhtLwEYPWAGHjdmBhZVSQIGAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAULj2NhmX4nwAhNO+BWuntmEvHGiSLQCmelIB0k12BuBEdgbIVVsEmHUsAECGNwAGAAAAAAAA
|
||||
AAAAAAAAAAAAALLg+0p/zfvYQLP4/ziRx/A7bY70UFRc/1ZaMv93ZBH/m14C/6BKAP+QLwDqfyoAgIIs
|
||||
AAwAAAAAAAAAAAAAAAAAAAAAy8/VTKi+z+6umYj/sauM/3GzxP8zmdD/G3mx/zVcbf9zTSn/pEEF/5Qw
|
||||
APhyOQF6I24HAgAAAAAAAAAAAAAAALU1AWLTZCr45IUl//icAv/xvRf/0s1M/5fIlv9Er9f/EIjO/ydi
|
||||
g/9iSSn/UV0F5EJmATYAAAAAAAAAAKQ2BxDEPwG672AA//qVAv/7vQb//NgK//zkB//55Qn/49os/53E
|
||||
hP80p9v/CYbI/xpyYP8wZR6CAAAAAAAAAACwPAoo0UQB4vl0Bf/9rRT//tYr//7tNf/+9zD//fgi//zs
|
||||
Ev/41Q7/z7Y8/2Glt/8gneX/JoKoxCFokxoAAAAAsjgDONVIAur8gBP//74+///kZP//9XH/+/pk//Lx
|
||||
Rv/98zH/+90h//i6GP/CmiT/Uaat/0Ky9PwrmNmMAG3BBrI8CSjQSAfi+4Us///Kbv//6pz///mz/7K5
|
||||
bP+KkTb/++xM//7bN//lxDL/oLUl/2iQMP9Tp9P/XLv06h+Y4EqpMQAOxUYNuPGFRf//yor//+y8/8fM
|
||||
qv84XyX/R1oe/+XRWv//0kz/z8hI/7WsQv+TZhD8THaO9GjG//9FsvKSAAAAALtFEWTff1H4/7+R/9bB
|
||||
kv9NcTX/Lmca/zJRGv+VqFP/68pg/7zMXv+srlb/klgn9jl+quJnx///ULz8oAAAAAC1QREQ03xXqNOe
|
||||
eP9dcjT/QHYt/1WIQf8tVxv/YohJ/6TMb/+e2nb/h7pw/0OBnP84q/D/Z8f/7kC4/14AAAAAAAAAAIRl
|
||||
MTJTaCriSHo1/36mcP93oWf/NGAi/19/Tf+Ovnb/isSA8j+XnOoxq/HkTL3/uk29/1wVo/8IAAAAAB1X
|
||||
BgwuZhuQYI1Q+qC9lf+1zK3/oL2V/0h0N/xQcT3OhqVhkm+TZ0oMeb8yL7H+Ije1/w4AAAAAAAAAAAAA
|
||||
AAAlYg1KS4A31I+xguiqxKHutsyu9rnPsfx1mWjyJU4RVAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAKWgRDjp2Ix5EfS4uT4Q7SGOSUWJ4oWl4ZpJVii9iGzgAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAA//8AAMg/AACADwAAwA8AAMAHAACAAwAAgAMAAIABAACAAQAAgAAAAMAAAADAAQAA4AMAAMA/
|
||||
AADA/wAA/v8AAA==
|
||||
</value>
|
||||
</data>
|
||||
</root>
|
@ -0,0 +1,145 @@
|
||||
<?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>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAABloxIAXZYwBGOgDIccAAhtLwEYPWAGHjdmBhZVSQIGAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAULj2NhmX4nwAhNO+BWuntmEvHGiSLQCmelIB0k12BuBEdgbIVVsEmHUsAECGNwAGAAAAAAAA
|
||||
AAAAAAAAAAAAALLg+0p/zfvYQLP4/ziRx/A7bY70UFRc/1ZaMv93ZBH/m14C/6BKAP+QLwDqfyoAgIIs
|
||||
AAwAAAAAAAAAAAAAAAAAAAAAy8/VTKi+z+6umYj/sauM/3GzxP8zmdD/G3mx/zVcbf9zTSn/pEEF/5Qw
|
||||
APhyOQF6I24HAgAAAAAAAAAAAAAAALU1AWLTZCr45IUl//icAv/xvRf/0s1M/5fIlv9Er9f/EIjO/ydi
|
||||
g/9iSSn/UV0F5EJmATYAAAAAAAAAAKQ2BxDEPwG672AA//qVAv/7vQb//NgK//zkB//55Qn/49os/53E
|
||||
hP80p9v/CYbI/xpyYP8wZR6CAAAAAAAAAACwPAoo0UQB4vl0Bf/9rRT//tYr//7tNf/+9zD//fgi//zs
|
||||
Ev/41Q7/z7Y8/2Glt/8gneX/JoKoxCFokxoAAAAAsjgDONVIAur8gBP//74+///kZP//9XH/+/pk//Lx
|
||||
Rv/98zH/+90h//i6GP/CmiT/Uaat/0Ky9PwrmNmMAG3BBrI8CSjQSAfi+4Us///Kbv//6pz///mz/7K5
|
||||
bP+KkTb/++xM//7bN//lxDL/oLUl/2iQMP9Tp9P/XLv06h+Y4EqpMQAOxUYNuPGFRf//yor//+y8/8fM
|
||||
qv84XyX/R1oe/+XRWv//0kz/z8hI/7WsQv+TZhD8THaO9GjG//9FsvKSAAAAALtFEWTff1H4/7+R/9bB
|
||||
kv9NcTX/Lmca/zJRGv+VqFP/68pg/7zMXv+srlb/klgn9jl+quJnx///ULz8oAAAAAC1QREQ03xXqNOe
|
||||
eP9dcjT/QHYt/1WIQf8tVxv/YohJ/6TMb/+e2nb/h7pw/0OBnP84q/D/Z8f/7kC4/14AAAAAAAAAAIRl
|
||||
MTJTaCriSHo1/36mcP93oWf/NGAi/19/Tf+Ovnb/isSA8j+XnOoxq/HkTL3/uk29/1wVo/8IAAAAAB1X
|
||||
BgwuZhuQYI1Q+qC9lf+1zK3/oL2V/0h0N/xQcT3OhqVhkm+TZ0oMeb8yL7H+Ije1/w4AAAAAAAAAAAAA
|
||||
AAAlYg1KS4A31I+xguiqxKHutsyu9rnPsfx1mWjyJU4RVAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAKWgRDjp2Ix5EfS4uT4Q7SGOSUWJ4oWl4ZpJVii9iGzgAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAA//8AAMg/AACADwAAwA8AAMAHAACAAwAAgAMAAIABAACAAQAAgAAAAMAAAADAAQAA4AMAAMA/
|
||||
AADA/wAA/v8AAA==
|
||||
</value>
|
||||
</data>
|
||||
</root>
|
After Width: | Height: | Size: 3.6 KiB |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue