初始化
This commit is contained in:
63
.gitattributes
vendored
Normal file
63
.gitattributes
vendored
Normal file
@@ -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
|
||||
363
.gitignore
vendored
Normal file
363
.gitignore
vendored
Normal file
@@ -0,0 +1,363 @@
|
||||
## Ignore Visual Studio temporary files, build results, and
|
||||
## files generated by popular Visual Studio add-ons.
|
||||
##
|
||||
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
|
||||
|
||||
# User-specific files
|
||||
*.rsuser
|
||||
*.suo
|
||||
*.user
|
||||
*.userosscache
|
||||
*.sln.docstates
|
||||
|
||||
# User-specific files (MonoDevelop/Xamarin Studio)
|
||||
*.userprefs
|
||||
|
||||
# Mono auto generated files
|
||||
mono_crash.*
|
||||
|
||||
# Build results
|
||||
[Dd]ebug/
|
||||
[Dd]ebugPublic/
|
||||
[Rr]elease/
|
||||
[Rr]eleases/
|
||||
x64/
|
||||
x86/
|
||||
[Ww][Ii][Nn]32/
|
||||
[Aa][Rr][Mm]/
|
||||
[Aa][Rr][Mm]64/
|
||||
bld/
|
||||
[Bb]in/
|
||||
[Oo]bj/
|
||||
[Oo]ut/
|
||||
[Ll]og/
|
||||
[Ll]ogs/
|
||||
|
||||
# Visual Studio 2015/2017 cache/options directory
|
||||
.vs/
|
||||
# Uncomment if you have tasks that create the project's static files in wwwroot
|
||||
#wwwroot/
|
||||
|
||||
# Visual Studio 2017 auto generated files
|
||||
Generated\ Files/
|
||||
|
||||
# MSTest test Results
|
||||
[Tt]est[Rr]esult*/
|
||||
[Bb]uild[Ll]og.*
|
||||
|
||||
# NUnit
|
||||
*.VisualState.xml
|
||||
TestResult.xml
|
||||
nunit-*.xml
|
||||
|
||||
# Build Results of an ATL Project
|
||||
[Dd]ebugPS/
|
||||
[Rr]eleasePS/
|
||||
dlldata.c
|
||||
|
||||
# Benchmark Results
|
||||
BenchmarkDotNet.Artifacts/
|
||||
|
||||
# .NET Core
|
||||
project.lock.json
|
||||
project.fragment.lock.json
|
||||
artifacts/
|
||||
|
||||
# ASP.NET Scaffolding
|
||||
ScaffoldingReadMe.txt
|
||||
|
||||
# StyleCop
|
||||
StyleCopReport.xml
|
||||
|
||||
# Files built by Visual Studio
|
||||
*_i.c
|
||||
*_p.c
|
||||
*_h.h
|
||||
*.ilk
|
||||
*.meta
|
||||
*.obj
|
||||
*.iobj
|
||||
*.pch
|
||||
*.pdb
|
||||
*.ipdb
|
||||
*.pgc
|
||||
*.pgd
|
||||
*.rsp
|
||||
*.sbr
|
||||
*.tlb
|
||||
*.tli
|
||||
*.tlh
|
||||
*.tmp
|
||||
*.tmp_proj
|
||||
*_wpftmp.csproj
|
||||
*.log
|
||||
*.vspscc
|
||||
*.vssscc
|
||||
.builds
|
||||
*.pidb
|
||||
*.svclog
|
||||
*.scc
|
||||
|
||||
# Chutzpah Test files
|
||||
_Chutzpah*
|
||||
|
||||
# Visual C++ cache files
|
||||
ipch/
|
||||
*.aps
|
||||
*.ncb
|
||||
*.opendb
|
||||
*.opensdf
|
||||
*.sdf
|
||||
*.cachefile
|
||||
*.VC.db
|
||||
*.VC.VC.opendb
|
||||
|
||||
# Visual Studio profiler
|
||||
*.psess
|
||||
*.vsp
|
||||
*.vspx
|
||||
*.sap
|
||||
|
||||
# Visual Studio Trace Files
|
||||
*.e2e
|
||||
|
||||
# TFS 2012 Local Workspace
|
||||
$tf/
|
||||
|
||||
# Guidance Automation Toolkit
|
||||
*.gpState
|
||||
|
||||
# ReSharper is a .NET coding add-in
|
||||
_ReSharper*/
|
||||
*.[Rr]e[Ss]harper
|
||||
*.DotSettings.user
|
||||
|
||||
# TeamCity is a build add-in
|
||||
_TeamCity*
|
||||
|
||||
# DotCover is a Code Coverage Tool
|
||||
*.dotCover
|
||||
|
||||
# AxoCover is a Code Coverage Tool
|
||||
.axoCover/*
|
||||
!.axoCover/settings.json
|
||||
|
||||
# Coverlet is a free, cross platform Code Coverage Tool
|
||||
coverage*.json
|
||||
coverage*.xml
|
||||
coverage*.info
|
||||
|
||||
# Visual Studio code coverage results
|
||||
*.coverage
|
||||
*.coveragexml
|
||||
|
||||
# NCrunch
|
||||
_NCrunch_*
|
||||
.*crunch*.local.xml
|
||||
nCrunchTemp_*
|
||||
|
||||
# MightyMoose
|
||||
*.mm.*
|
||||
AutoTest.Net/
|
||||
|
||||
# Web workbench (sass)
|
||||
.sass-cache/
|
||||
|
||||
# Installshield output folder
|
||||
[Ee]xpress/
|
||||
|
||||
# DocProject is a documentation generator add-in
|
||||
DocProject/buildhelp/
|
||||
DocProject/Help/*.HxT
|
||||
DocProject/Help/*.HxC
|
||||
DocProject/Help/*.hhc
|
||||
DocProject/Help/*.hhk
|
||||
DocProject/Help/*.hhp
|
||||
DocProject/Help/Html2
|
||||
DocProject/Help/html
|
||||
|
||||
# Click-Once directory
|
||||
publish/
|
||||
|
||||
# Publish Web Output
|
||||
*.[Pp]ublish.xml
|
||||
*.azurePubxml
|
||||
# Note: Comment the next line if you want to checkin your web deploy settings,
|
||||
# but database connection strings (with potential passwords) will be unencrypted
|
||||
*.pubxml
|
||||
*.publishproj
|
||||
|
||||
# Microsoft Azure Web App publish settings. Comment the next line if you want to
|
||||
# checkin your Azure Web App publish settings, but sensitive information contained
|
||||
# in these scripts will be unencrypted
|
||||
PublishScripts/
|
||||
|
||||
# NuGet Packages
|
||||
*.nupkg
|
||||
# NuGet Symbol Packages
|
||||
*.snupkg
|
||||
# The packages folder can be ignored because of Package Restore
|
||||
**/[Pp]ackages/*
|
||||
# except build/, which is used as an MSBuild target.
|
||||
!**/[Pp]ackages/build/
|
||||
# Uncomment if necessary however generally it will be regenerated when needed
|
||||
#!**/[Pp]ackages/repositories.config
|
||||
# NuGet v3's project.json files produces more ignorable files
|
||||
*.nuget.props
|
||||
*.nuget.targets
|
||||
|
||||
# Microsoft Azure Build Output
|
||||
csx/
|
||||
*.build.csdef
|
||||
|
||||
# Microsoft Azure Emulator
|
||||
ecf/
|
||||
rcf/
|
||||
|
||||
# Windows Store app package directories and files
|
||||
AppPackages/
|
||||
BundleArtifacts/
|
||||
Package.StoreAssociation.xml
|
||||
_pkginfo.txt
|
||||
*.appx
|
||||
*.appxbundle
|
||||
*.appxupload
|
||||
|
||||
# Visual Studio cache files
|
||||
# files ending in .cache can be ignored
|
||||
*.[Cc]ache
|
||||
# but keep track of directories ending in .cache
|
||||
!?*.[Cc]ache/
|
||||
|
||||
# Others
|
||||
ClientBin/
|
||||
~$*
|
||||
*~
|
||||
*.dbmdl
|
||||
*.dbproj.schemaview
|
||||
*.jfm
|
||||
*.pfx
|
||||
*.publishsettings
|
||||
orleans.codegen.cs
|
||||
|
||||
# Including strong name files can present a security risk
|
||||
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
|
||||
#*.snk
|
||||
|
||||
# Since there are multiple workflows, uncomment next line to ignore bower_components
|
||||
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
|
||||
#bower_components/
|
||||
|
||||
# RIA/Silverlight projects
|
||||
Generated_Code/
|
||||
|
||||
# Backup & report files from converting an old project file
|
||||
# to a newer Visual Studio version. Backup files are not needed,
|
||||
# because we have git ;-)
|
||||
_UpgradeReport_Files/
|
||||
Backup*/
|
||||
UpgradeLog*.XML
|
||||
UpgradeLog*.htm
|
||||
ServiceFabricBackup/
|
||||
*.rptproj.bak
|
||||
|
||||
# SQL Server files
|
||||
*.mdf
|
||||
*.ldf
|
||||
*.ndf
|
||||
|
||||
# Business Intelligence projects
|
||||
*.rdl.data
|
||||
*.bim.layout
|
||||
*.bim_*.settings
|
||||
*.rptproj.rsuser
|
||||
*- [Bb]ackup.rdl
|
||||
*- [Bb]ackup ([0-9]).rdl
|
||||
*- [Bb]ackup ([0-9][0-9]).rdl
|
||||
|
||||
# Microsoft Fakes
|
||||
FakesAssemblies/
|
||||
|
||||
# GhostDoc plugin setting file
|
||||
*.GhostDoc.xml
|
||||
|
||||
# Node.js Tools for Visual Studio
|
||||
.ntvs_analysis.dat
|
||||
node_modules/
|
||||
|
||||
# Visual Studio 6 build log
|
||||
*.plg
|
||||
|
||||
# Visual Studio 6 workspace options file
|
||||
*.opt
|
||||
|
||||
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
|
||||
*.vbw
|
||||
|
||||
# Visual Studio LightSwitch build output
|
||||
**/*.HTMLClient/GeneratedArtifacts
|
||||
**/*.DesktopClient/GeneratedArtifacts
|
||||
**/*.DesktopClient/ModelManifest.xml
|
||||
**/*.Server/GeneratedArtifacts
|
||||
**/*.Server/ModelManifest.xml
|
||||
_Pvt_Extensions
|
||||
|
||||
# Paket dependency manager
|
||||
.paket/paket.exe
|
||||
paket-files/
|
||||
|
||||
# FAKE - F# Make
|
||||
.fake/
|
||||
|
||||
# CodeRush personal settings
|
||||
.cr/personal
|
||||
|
||||
# Python Tools for Visual Studio (PTVS)
|
||||
__pycache__/
|
||||
*.pyc
|
||||
|
||||
# Cake - Uncomment if you are using it
|
||||
# tools/**
|
||||
# !tools/packages.config
|
||||
|
||||
# Tabs Studio
|
||||
*.tss
|
||||
|
||||
# Telerik's JustMock configuration file
|
||||
*.jmconfig
|
||||
|
||||
# BizTalk build output
|
||||
*.btp.cs
|
||||
*.btm.cs
|
||||
*.odx.cs
|
||||
*.xsd.cs
|
||||
|
||||
# OpenCover UI analysis results
|
||||
OpenCover/
|
||||
|
||||
# Azure Stream Analytics local run output
|
||||
ASALocalRun/
|
||||
|
||||
# MSBuild Binary and Structured Log
|
||||
*.binlog
|
||||
|
||||
# NVidia Nsight GPU debugger configuration file
|
||||
*.nvuser
|
||||
|
||||
# MFractors (Xamarin productivity tool) working folder
|
||||
.mfractor/
|
||||
|
||||
# Local History for Visual Studio
|
||||
.localhistory/
|
||||
|
||||
# BeatPulse healthcheck temp database
|
||||
healthchecksdb
|
||||
|
||||
# Backup folder for Package Reference Convert tool in Visual Studio 2017
|
||||
MigrationBackup/
|
||||
|
||||
# Ionide (cross platform F# VS Code tools) working folder
|
||||
.ionide/
|
||||
|
||||
# Fody - auto-generated XML schema
|
||||
FodyWeavers.xsd
|
||||
215
BLWWS/BLWWS.csproj
Normal file
215
BLWWS/BLWWS.csproj
Normal file
@@ -0,0 +1,215 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>
|
||||
</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{3D1C2418-8F29-4D2F-B7E9-BDBCD0FE021E}</ProjectGuid>
|
||||
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>BLWWS</RootNamespace>
|
||||
<AssemblyName>BLWWS</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<UseIISExpress>false</UseIISExpress>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
<UpgradeBackupLocation>
|
||||
</UpgradeBackupLocation>
|
||||
<OldToolsVersion>4.0</OldToolsVersion>
|
||||
<Use64BitIISExpress />
|
||||
<IISExpressSSLPort />
|
||||
<IISExpressAnonymousAuthentication />
|
||||
<IISExpressWindowsAuthentication />
|
||||
<IISExpressUseClassicPipelineMode />
|
||||
<UseGlobalApplicationHostFile />
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Common.Logging, Version=3.3.1.0, Culture=neutral, PublicKeyToken=af08829b84f0328e, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Common.Logging.3.3.1\lib\net40\Common.Logging.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Common.Logging.Core, Version=3.3.1.0, Culture=neutral, PublicKeyToken=af08829b84f0328e, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Common.Logging.Core.3.3.1\lib\net40\Common.Logging.Core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Bcl.AsyncInterfaces, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.Bcl.AsyncInterfaces.8.0.0\lib\net462\Microsoft.Bcl.AsyncInterfaces.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="MySql.Data, Version=6.7.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\MySql.Data.6.7.9\lib\net40\MySql.Data.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Newtonsoft.Json.13.0.3\lib\net40\Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="NLog, Version=6.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\NLog.6.0.1\lib\net35\NLog.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Quartz, Version=2.6.2.0, Culture=neutral, PublicKeyToken=f6b8c98a402cc8a4, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Quartz.2.6.2\lib\net40\Quartz.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="RestSharp, Version=112.1.0.0, Culture=neutral, PublicKeyToken=598062e77f915f75, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>RestSharp\RestSharp.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="SqlSugar, Version=4.9.9.11, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\sqlSugar.4.9.9.11\lib\SqlSugar.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Messaging" />
|
||||
<Reference Include="System.Runtime.Serialization" />
|
||||
<Reference Include="System.ServiceModel" />
|
||||
<Reference Include="System.Web.DynamicData" />
|
||||
<Reference Include="System.Web.Entity" />
|
||||
<Reference Include="System.Web.ApplicationServices" />
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Web" />
|
||||
<Reference Include="System.Web.Extensions" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Configuration" />
|
||||
<Reference Include="System.Web.Services" />
|
||||
<Reference Include="System.EnterpriseServices" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="blwws.asmx" />
|
||||
<Content Include="Global.asax" />
|
||||
<Content Include="syncstatus.asmx" />
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<None Include="Web References\WebReference\Reference.map">
|
||||
<Generator>MSDiscoCodeGenerator</Generator>
|
||||
<LastGenOutput>Reference.cs</LastGenOutput>
|
||||
</None>
|
||||
<None Include="Web References\WebReference\WebService1.disco" />
|
||||
<Content Include="Web.config">
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
<Content Include="Web.Debug.config">
|
||||
<DependentUpon>Web.config</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="Web.Release.config">
|
||||
<DependentUpon>Web.config</DependentUpon>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="blwws.asmx.cs">
|
||||
<DependentUpon>blwws.asmx</DependentUpon>
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Common.cs" />
|
||||
<Compile Include="Global.asax.cs">
|
||||
<DependentUpon>Global.asax</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="HttpSendData.cs" />
|
||||
<Compile Include="Id_G.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="syncstatus.asmx.cs">
|
||||
<DependentUpon>syncstatus.asmx</DependentUpon>
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Web References\WebReference\Reference.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Reference.map</DependentUpon>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\BLWWS_BLL\BLWWS_BLL.csproj">
|
||||
<Project>{CF2AB5DE-C3AF-4388-B6C4-EFA14BAF3316}</Project>
|
||||
<Name>BLWWS_BLL</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="job_scheduling_data_2_0.xsd">
|
||||
<SubType>Designer</SubType>
|
||||
</None>
|
||||
<Content Include="nlog.config">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<None Include="packages.config" />
|
||||
<None Include="Web References\WebReference\WebService1.wsdl" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<WCFMetadata Include="Connected Services\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<WebReferences Include="Web References\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<WebReferenceUrl Include="http://47.119.147.104:9007/WebService1.asmx">
|
||||
<UrlBehavior>Dynamic</UrlBehavior>
|
||||
<RelPath>Web References\WebReference\</RelPath>
|
||||
<UpdateFromURL>http://47.119.147.104:9007/WebService1.asmx</UpdateFromURL>
|
||||
<ServiceLocationURL>
|
||||
</ServiceLocationURL>
|
||||
<CachedDynamicPropName>
|
||||
</CachedDynamicPropName>
|
||||
<CachedAppSettingsObjectName>Settings</CachedAppSettingsObjectName>
|
||||
<CachedSettingsPropName>BLWWS_WebReference_WebService1</CachedSettingsPropName>
|
||||
</WebReferenceUrl>
|
||||
</ItemGroup>
|
||||
<PropertyGroup>
|
||||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
|
||||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
|
||||
<ProjectExtensions>
|
||||
<VisualStudio>
|
||||
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
|
||||
<WebProjectProperties>
|
||||
<UseIIS>False</UseIIS>
|
||||
<AutoAssignPort>True</AutoAssignPort>
|
||||
<DevelopmentServerPort>22346</DevelopmentServerPort>
|
||||
<DevelopmentServerVPath>/</DevelopmentServerVPath>
|
||||
<IISUrl>
|
||||
</IISUrl>
|
||||
<NTLMAuthentication>False</NTLMAuthentication>
|
||||
<UseCustomServer>False</UseCustomServer>
|
||||
<CustomServerUrl>
|
||||
</CustomServerUrl>
|
||||
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
|
||||
</WebProjectProperties>
|
||||
</FlavorProperties>
|
||||
</VisualStudio>
|
||||
</ProjectExtensions>
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
37
BLWWS/Common.cs
Normal file
37
BLWWS/Common.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
using System.Web;
|
||||
|
||||
namespace BLWWS
|
||||
{
|
||||
public class Common
|
||||
{
|
||||
public static string MD5Encrypt(string str)
|
||||
{
|
||||
MD5CryptoServiceProvider md5Hasher = new MD5CryptoServiceProvider();
|
||||
byte[] hashedDataBytes;
|
||||
hashedDataBytes = md5Hasher.ComputeHash(Encoding.UTF8.GetBytes(str));
|
||||
StringBuilder tmp = new StringBuilder();
|
||||
foreach (byte i in hashedDataBytes)
|
||||
{
|
||||
tmp.Append(i.ToString("x2"));
|
||||
}
|
||||
return tmp.ToString();
|
||||
}
|
||||
public static long GetCurrentTimeStamp(DateTime dt)
|
||||
{
|
||||
TimeSpan ts = dt - new DateTime(1970, 1, 1, 8, 0, 0, DateTimeKind.Local);
|
||||
long current_timestamp = Convert.ToInt64(ts.TotalSeconds);
|
||||
return current_timestamp;
|
||||
}
|
||||
public static DateTime GetCurrentDateTime(long timestampseconds)
|
||||
{
|
||||
DateTime epoch = new DateTime(1970, 1, 1, 8, 0, 0, DateTimeKind.Local);
|
||||
DateTime utcTime = epoch.AddSeconds(timestampseconds);
|
||||
return utcTime;
|
||||
}
|
||||
}
|
||||
}
|
||||
1
BLWWS/Global.asax
Normal file
1
BLWWS/Global.asax
Normal file
@@ -0,0 +1 @@
|
||||
<%@ Application Codebehind="Global.asax.cs" Inherits="BLWWS.Global" Language="C#" %>
|
||||
50
BLWWS/Global.asax.cs
Normal file
50
BLWWS/Global.asax.cs
Normal file
@@ -0,0 +1,50 @@
|
||||
using System;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using BLWWS_BLL;
|
||||
using Quartz;
|
||||
using Quartz.Impl;
|
||||
|
||||
namespace BLWWS
|
||||
{
|
||||
public class Global : System.Web.HttpApplication
|
||||
{
|
||||
|
||||
|
||||
protected void Application_Start(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
protected void Session_Start(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected void Application_BeginRequest(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected void Application_AuthenticateRequest(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected void Application_Error(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected void Session_End(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected void Application_End(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
89
BLWWS/HttpSendData.cs
Normal file
89
BLWWS/HttpSendData.cs
Normal file
@@ -0,0 +1,89 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Configuration;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Web;
|
||||
using Newtonsoft.Json;
|
||||
using RestSharp;
|
||||
namespace BLWWS
|
||||
{
|
||||
public class HttpSendData
|
||||
{
|
||||
//public static readonly string BaseURL = "http://www.higmkj.com:8056";
|
||||
public static readonly string BaseURL = ConfigurationManager.AppSettings["BaoJing_BaseUrl"];
|
||||
private static readonly NLog.Logger _logger = NLog.LogManager.GetCurrentClassLogger();
|
||||
public static void SendData(PMSDataBase data)
|
||||
{
|
||||
//ssl 协议不兼容
|
||||
//var A = (SecurityProtocolType)48;
|
||||
//var B = (SecurityProtocolType)192;
|
||||
//var C = (SecurityProtocolType)768;
|
||||
//var D = (SecurityProtocolType)3072;
|
||||
//var E = (SecurityProtocolType)12288;
|
||||
//ServicePointManager.SecurityProtocol = A | B | C | D | E;
|
||||
var a = Newtonsoft.Json.JsonConvert.SerializeObject(data);
|
||||
_logger.Error("宝镜推送CheckIn数据:" + a);
|
||||
//var client1 = new RestClient(BaseURL);
|
||||
//var request1 = new RestRequest("/order/checkIn", Method.POST);
|
||||
//request1.AddJsonBody(data);
|
||||
//var Response = client1.Execute(request1).Content;
|
||||
//string content = Response;
|
||||
WebReference.WebService1 w = new WebReference.WebService1();
|
||||
var Response = w.HelloWorld("C24cAfK", a, "/order/checkIn");
|
||||
_logger.Error("宝镜推送CheckIn结果:" + Response);
|
||||
}
|
||||
public static void SendData_CheckOut(PMSDataBase data)
|
||||
{
|
||||
|
||||
//ssl 协议不兼容
|
||||
//var A = (SecurityProtocolType)48;
|
||||
//var B = (SecurityProtocolType)192;
|
||||
//var C = (SecurityProtocolType)768;
|
||||
//var D = (SecurityProtocolType)3072;
|
||||
//var E = (SecurityProtocolType)12288;
|
||||
//ServicePointManager.SecurityProtocol = A | B | C | D | E;
|
||||
var a = Newtonsoft.Json.JsonConvert.SerializeObject(data);
|
||||
_logger.Error("宝镜推送SendData_CheckOut数据:" + a);
|
||||
//var client1 = new RestClient(BaseURL);
|
||||
//var request1 = new RestRequest("/order/checkOut", Method.POST);
|
||||
//request1.AddJsonBody(data);
|
||||
//var Response = client1.Execute(request1).Content;
|
||||
|
||||
WebReference.WebService1 w = new WebReference.WebService1();
|
||||
var Response = w.HelloWorld("C24cAfK", a, "/order/checkOut");
|
||||
_logger.Error("宝镜推送CheckOut:" + Response);
|
||||
}
|
||||
}
|
||||
public class PMSDataBase
|
||||
{
|
||||
public string hotel_code { get; set; } = "";
|
||||
public string time { get; set; } = "";
|
||||
public string sign { get; set; } = "";
|
||||
public string hotel_id { get; set; } = "";
|
||||
public string order_no { get; set; } = "";
|
||||
public string room_no { get; set; } = "";
|
||||
public string check_out_original { get; set; }
|
||||
}
|
||||
|
||||
public class PMSData : PMSDataBase
|
||||
{
|
||||
public string checkIn { get; set; }
|
||||
public string checkOut { get; set; }
|
||||
public ushort is_breakfast { get; set; }
|
||||
public ushort breakfast { get; set; }
|
||||
public string rateCode { get; set; }
|
||||
public string amount { get; set; }
|
||||
public string order_original { get; set; }
|
||||
public List<Info> infos { get; set; }
|
||||
}
|
||||
public class Info
|
||||
{
|
||||
public string name { get; set; }
|
||||
public string mobile { get; set; }
|
||||
public int type { get; set; }
|
||||
public string idcard { get; set; }
|
||||
public int sex { get; set; }
|
||||
public string address { get; set; }
|
||||
}
|
||||
}
|
||||
93
BLWWS/Id_G.cs
Normal file
93
BLWWS/Id_G.cs
Normal file
@@ -0,0 +1,93 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Common
|
||||
{
|
||||
public class IdWorker
|
||||
{
|
||||
//起始的时间戳
|
||||
private static long START_STMP = 1480166465631L;
|
||||
|
||||
//每一部分占用的位数
|
||||
private static int SEQUENCE_BIT = 12; //序列号占用的位数
|
||||
private static int MACHINE_BIT = 5; //机器标识占用的位数
|
||||
private static int DATACENTER_BIT = 5;//数据中心占用的位数
|
||||
|
||||
//每一部分的最大值
|
||||
private static long MAX_DATACENTER_NUM = -1L ^ (-1L << DATACENTER_BIT);
|
||||
private static long MAX_MACHINE_NUM = -1L ^ (-1L << MACHINE_BIT);
|
||||
private static long MAX_SEQUENCE = -1L ^ (-1L << SEQUENCE_BIT);
|
||||
|
||||
//每一部分向左的位移
|
||||
private static int MACHINE_LEFT = SEQUENCE_BIT;
|
||||
private static int DATACENTER_LEFT = SEQUENCE_BIT + MACHINE_BIT;
|
||||
private static int TIMESTMP_LEFT = DATACENTER_LEFT + DATACENTER_BIT;
|
||||
|
||||
private long datacenterId = 1; //数据中心
|
||||
private long machineId = 1; //机器标识
|
||||
private long sequence = 0L; //序列号
|
||||
private long lastStmp = -1L;//上一次时间戳
|
||||
|
||||
#region 单例:完全懒汉
|
||||
private static readonly Lazy<IdWorker> lazy = new Lazy<IdWorker>(() => new IdWorker());
|
||||
public static IdWorker Singleton { get { return lazy.Value; } }
|
||||
private IdWorker() { }
|
||||
#endregion
|
||||
|
||||
public IdWorker(long cid, long mid)
|
||||
{
|
||||
if (cid > MAX_DATACENTER_NUM || cid < 0) throw new Exception($"中心Id应在(0,{MAX_DATACENTER_NUM})之间");
|
||||
if (mid > MAX_MACHINE_NUM || mid < 0) throw new Exception($"机器Id应在(0,{MAX_MACHINE_NUM})之间");
|
||||
datacenterId = cid;
|
||||
machineId = mid;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 产生下一个ID
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public long nextId()
|
||||
{
|
||||
long currStmp = getNewstmp();
|
||||
if (currStmp < lastStmp) throw new Exception("时钟倒退,Id生成失败!");
|
||||
|
||||
if (currStmp == lastStmp)
|
||||
{
|
||||
//相同毫秒内,序列号自增
|
||||
sequence = (sequence + 1) & MAX_SEQUENCE;
|
||||
//同一毫秒的序列数已经达到最大
|
||||
if (sequence == 0L) currStmp = getNextMill();
|
||||
}
|
||||
else
|
||||
{
|
||||
//不同毫秒内,序列号置为0
|
||||
sequence = 0L;
|
||||
}
|
||||
|
||||
lastStmp = currStmp;
|
||||
|
||||
return (currStmp - START_STMP) << TIMESTMP_LEFT //时间戳部分
|
||||
| datacenterId << DATACENTER_LEFT //数据中心部分
|
||||
| machineId << MACHINE_LEFT //机器标识部分
|
||||
| sequence; //序列号部分
|
||||
}
|
||||
|
||||
private long getNextMill()
|
||||
{
|
||||
long mill = getNewstmp();
|
||||
while (mill <= lastStmp)
|
||||
{
|
||||
mill = getNewstmp();
|
||||
}
|
||||
return mill;
|
||||
}
|
||||
|
||||
private long getNewstmp()
|
||||
{
|
||||
return (long)(DateTime.UtcNow - new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc)).TotalMilliseconds;
|
||||
}
|
||||
}
|
||||
}
|
||||
35
BLWWS/Properties/AssemblyInfo.cs
Normal file
35
BLWWS/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// 有关程序集的常规信息通过以下特性集
|
||||
// 控制。更改这些特性值可修改
|
||||
// 与程序集关联的信息。
|
||||
[assembly: AssemblyTitle("BLWWS")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("BLWWS")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2015")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// 将 ComVisible 设置为 false 会使此程序集中的类型
|
||||
// 对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型,
|
||||
// 则将该类型上的 ComVisible 特性设置为 true。
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
||||
[assembly: Guid("eaa13017-f626-4924-9f79-79c079ff2100")]
|
||||
|
||||
// 程序集的版本信息由下列四个值组成:
|
||||
//
|
||||
// 主版本
|
||||
// 次版本
|
||||
// 内部版本号
|
||||
// 修订号
|
||||
//
|
||||
// 您可以指定所有这些值,也可以使用“修订号”和“内部版本号”的默认值,
|
||||
// 方法是按如下所示使用“*”:
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
36
BLWWS/Properties/Settings.Designer.cs
generated
Normal file
36
BLWWS/Properties/Settings.Designer.cs
generated
Normal file
@@ -0,0 +1,36 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace BLWWS.Properties {
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.12.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
||||
public static Settings Default {
|
||||
get {
|
||||
return defaultInstance;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.WebServiceUrl)]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("http://47.119.147.104:9007/WebService1.asmx")]
|
||||
public string BLWWS_WebReference_WebService1 {
|
||||
get {
|
||||
return ((string)(this["BLWWS_WebReference_WebService1"]));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
9
BLWWS/Properties/Settings.settings
Normal file
9
BLWWS/Properties/Settings.settings
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="BLWWS.Properties" GeneratedClassName="Settings">
|
||||
<Profiles />
|
||||
<Settings>
|
||||
<Setting Name="BLWWS_WebReference_WebService1" Type="(Web Service URL)" Scope="Application">
|
||||
<Value Profile="(Default)">http://47.119.147.104:9007/WebService1.asmx</Value>
|
||||
</Setting>
|
||||
</Settings>
|
||||
</SettingsFile>
|
||||
BIN
BLWWS/RestSharp/RestSharp.dll
Normal file
BIN
BLWWS/RestSharp/RestSharp.dll
Normal file
Binary file not shown.
2897
BLWWS/RestSharp/RestSharp.xml
Normal file
2897
BLWWS/RestSharp/RestSharp.xml
Normal file
File diff suppressed because it is too large
Load Diff
154
BLWWS/Web References/WebReference/Reference.cs
Normal file
154
BLWWS/Web References/WebReference/Reference.cs
Normal file
@@ -0,0 +1,154 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
//
|
||||
// 此源代码是由 Microsoft.VSDesigner 4.0.30319.42000 版自动生成。
|
||||
//
|
||||
#pragma warning disable 1591
|
||||
|
||||
namespace BLWWS.WebReference {
|
||||
using System.Diagnostics;
|
||||
using System;
|
||||
using System.Xml.Serialization;
|
||||
using System.ComponentModel;
|
||||
using System.Web.Services.Protocols;
|
||||
using System.Web.Services;
|
||||
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
[System.Web.Services.WebServiceBindingAttribute(Name="WebService1Soap", Namespace="http://tempuri.org/")]
|
||||
public partial class WebService1 : System.Web.Services.Protocols.SoapHttpClientProtocol {
|
||||
|
||||
private System.Threading.SendOrPostCallback HelloWorldOperationCompleted;
|
||||
|
||||
private bool useDefaultCredentialsSetExplicitly;
|
||||
|
||||
/// <remarks/>
|
||||
public WebService1() {
|
||||
this.Url = global::BLWWS.Properties.Settings.Default.BLWWS_WebReference_WebService1;
|
||||
if ((this.IsLocalFileSystemWebService(this.Url) == true)) {
|
||||
this.UseDefaultCredentials = true;
|
||||
this.useDefaultCredentialsSetExplicitly = false;
|
||||
}
|
||||
else {
|
||||
this.useDefaultCredentialsSetExplicitly = true;
|
||||
}
|
||||
}
|
||||
|
||||
public new string Url {
|
||||
get {
|
||||
return base.Url;
|
||||
}
|
||||
set {
|
||||
if ((((this.IsLocalFileSystemWebService(base.Url) == true)
|
||||
&& (this.useDefaultCredentialsSetExplicitly == false))
|
||||
&& (this.IsLocalFileSystemWebService(value) == false))) {
|
||||
base.UseDefaultCredentials = false;
|
||||
}
|
||||
base.Url = value;
|
||||
}
|
||||
}
|
||||
|
||||
public new bool UseDefaultCredentials {
|
||||
get {
|
||||
return base.UseDefaultCredentials;
|
||||
}
|
||||
set {
|
||||
base.UseDefaultCredentials = value;
|
||||
this.useDefaultCredentialsSetExplicitly = true;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public event HelloWorldCompletedEventHandler HelloWorldCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/HelloWorld", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public string HelloWorld(string key, string data, string url) {
|
||||
object[] results = this.Invoke("HelloWorld", new object[] {
|
||||
key,
|
||||
data,
|
||||
url});
|
||||
return ((string)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void HelloWorldAsync(string key, string data, string url) {
|
||||
this.HelloWorldAsync(key, data, url, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void HelloWorldAsync(string key, string data, string url, object userState) {
|
||||
if ((this.HelloWorldOperationCompleted == null)) {
|
||||
this.HelloWorldOperationCompleted = new System.Threading.SendOrPostCallback(this.OnHelloWorldOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("HelloWorld", new object[] {
|
||||
key,
|
||||
data,
|
||||
url}, this.HelloWorldOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnHelloWorldOperationCompleted(object arg) {
|
||||
if ((this.HelloWorldCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.HelloWorldCompleted(this, new HelloWorldCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public new void CancelAsync(object userState) {
|
||||
base.CancelAsync(userState);
|
||||
}
|
||||
|
||||
private bool IsLocalFileSystemWebService(string url) {
|
||||
if (((url == null)
|
||||
|| (url == string.Empty))) {
|
||||
return false;
|
||||
}
|
||||
System.Uri wsUri = new System.Uri(url);
|
||||
if (((wsUri.Port >= 1024)
|
||||
&& (string.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) == 0))) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")]
|
||||
public delegate void HelloWorldCompletedEventHandler(object sender, HelloWorldCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class HelloWorldCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal HelloWorldCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public string Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((string)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning restore 1591
|
||||
7
BLWWS/Web References/WebReference/Reference.map
Normal file
7
BLWWS/Web References/WebReference/Reference.map
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<DiscoveryClientResultsFile xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<Results>
|
||||
<DiscoveryClientResult referenceType="System.Web.Services.Discovery.ContractReference" url="http://47.119.147.104:9007/WebService1.asmx?wsdl" filename="WebService1.wsdl" />
|
||||
<DiscoveryClientResult referenceType="System.Web.Services.Discovery.DiscoveryDocumentReference" url="http://47.119.147.104:9007/WebService1.asmx?disco" filename="WebService1.disco" />
|
||||
</Results>
|
||||
</DiscoveryClientResultsFile>
|
||||
6
BLWWS/Web References/WebReference/WebService1.disco
Normal file
6
BLWWS/Web References/WebReference/WebService1.disco
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<discovery xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.xmlsoap.org/disco/">
|
||||
<contractRef ref="http://47.119.147.104:9007/WebService1.asmx?wsdl" docRef="http://47.119.147.104:9007/WebService1.asmx" xmlns="http://schemas.xmlsoap.org/disco/scl/" />
|
||||
<soap address="http://47.119.147.104:9007/WebService1.asmx" xmlns:q1="http://tempuri.org/" binding="q1:WebService1Soap" xmlns="http://schemas.xmlsoap.org/disco/soap/" />
|
||||
<soap address="http://47.119.147.104:9007/WebService1.asmx" xmlns:q2="http://tempuri.org/" binding="q2:WebService1Soap12" xmlns="http://schemas.xmlsoap.org/disco/soap/" />
|
||||
</discovery>
|
||||
67
BLWWS/Web References/WebReference/WebService1.wsdl
Normal file
67
BLWWS/Web References/WebReference/WebService1.wsdl
Normal file
@@ -0,0 +1,67 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<wsdl:definitions xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:tns="http://tempuri.org/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
|
||||
<wsdl:types>
|
||||
<s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/">
|
||||
<s:element name="HelloWorld">
|
||||
<s:complexType>
|
||||
<s:sequence>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="key" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="data" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="url" type="s:string" />
|
||||
</s:sequence>
|
||||
</s:complexType>
|
||||
</s:element>
|
||||
<s:element name="HelloWorldResponse">
|
||||
<s:complexType>
|
||||
<s:sequence>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="HelloWorldResult" type="s:string" />
|
||||
</s:sequence>
|
||||
</s:complexType>
|
||||
</s:element>
|
||||
</s:schema>
|
||||
</wsdl:types>
|
||||
<wsdl:message name="HelloWorldSoapIn">
|
||||
<wsdl:part name="parameters" element="tns:HelloWorld" />
|
||||
</wsdl:message>
|
||||
<wsdl:message name="HelloWorldSoapOut">
|
||||
<wsdl:part name="parameters" element="tns:HelloWorldResponse" />
|
||||
</wsdl:message>
|
||||
<wsdl:portType name="WebService1Soap">
|
||||
<wsdl:operation name="HelloWorld">
|
||||
<wsdl:input message="tns:HelloWorldSoapIn" />
|
||||
<wsdl:output message="tns:HelloWorldSoapOut" />
|
||||
</wsdl:operation>
|
||||
</wsdl:portType>
|
||||
<wsdl:binding name="WebService1Soap" type="tns:WebService1Soap">
|
||||
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
|
||||
<wsdl:operation name="HelloWorld">
|
||||
<soap:operation soapAction="http://tempuri.org/HelloWorld" style="document" />
|
||||
<wsdl:input>
|
||||
<soap:body use="literal" />
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<soap:body use="literal" />
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
</wsdl:binding>
|
||||
<wsdl:binding name="WebService1Soap12" type="tns:WebService1Soap">
|
||||
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
|
||||
<wsdl:operation name="HelloWorld">
|
||||
<soap12:operation soapAction="http://tempuri.org/HelloWorld" style="document" />
|
||||
<wsdl:input>
|
||||
<soap12:body use="literal" />
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<soap12:body use="literal" />
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
</wsdl:binding>
|
||||
<wsdl:service name="WebService1">
|
||||
<wsdl:port name="WebService1Soap" binding="tns:WebService1Soap">
|
||||
<soap:address location="http://47.119.147.104:9007/WebService1.asmx" />
|
||||
</wsdl:port>
|
||||
<wsdl:port name="WebService1Soap12" binding="tns:WebService1Soap12">
|
||||
<soap12:address location="http://47.119.147.104:9007/WebService1.asmx" />
|
||||
</wsdl:port>
|
||||
</wsdl:service>
|
||||
</wsdl:definitions>
|
||||
54
BLWWS/Web.config
Normal file
54
BLWWS/Web.config
Normal file
@@ -0,0 +1,54 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<configSections>
|
||||
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<section name="BLWWS.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
|
||||
</sectionGroup>
|
||||
</configSections>
|
||||
<system.web>
|
||||
<compilation debug="true" targetFramework="4.0" />
|
||||
<httpRuntime executionTimeout="90" maxRequestLength="20000" useFullyQualifiedRedirectUrl="false" requestLengthDiskThreshold="8192" />
|
||||
<sessionState timeout="120" />
|
||||
<pages controlRenderingCompatibilityVersion="4.0" />
|
||||
</system.web>
|
||||
<appSettings>
|
||||
<add key="connectionString" value="Data Source=pms.boonlive-rcu.com;Initial Catalog=RICS_WS;User ID=sa;Password=pass@123$%^;" />
|
||||
<add key="key" value="blw_ws@2015" />
|
||||
<add key="face_url" value="http://face.blv-oa.com/Interface" />
|
||||
<add key="face_url_new" value="http://face.blv-oa.com" />
|
||||
<add key="BaoJing_username" value="" />
|
||||
<add key="BaoJing_password" value="" />
|
||||
<!--<add key="BaoJing_BaseUrl" value="https://f.blv-oa.com/rcu_pms_api/v1" />-->
|
||||
<add key="BaoJing_BaseUrl" value="https://f.blv-oa.com:8099/rcu_pms_api/v1" />
|
||||
|
||||
<add key="ImageMaxHeight" value="2000" />
|
||||
<add key="ImageMaxWidth" value="2400" />
|
||||
<add key="ImageMinHeight" value="320" />
|
||||
<add key="ImageMinWidth" value="480" />
|
||||
</appSettings>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="MySql.Data" publicKeyToken="c5687fc88969c44d" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-6.7.9.0" newVersion="6.7.9.0" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
<system.data>
|
||||
<DbProviderFactories>
|
||||
<remove invariant="MySql.Data.MySqlClient" />
|
||||
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.7.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
|
||||
</DbProviderFactories>
|
||||
</system.data>
|
||||
<applicationSettings>
|
||||
<BLWWS.Properties.Settings>
|
||||
<setting name="BLWWS_WebReference_WebService1" serializeAs="String">
|
||||
<value>http://47.119.147.104:9007/WebService1.asmx</value>
|
||||
</setting>
|
||||
</BLWWS.Properties.Settings>
|
||||
</applicationSettings>
|
||||
</configuration>
|
||||
1
BLWWS/blwws.asmx
Normal file
1
BLWWS/blwws.asmx
Normal file
@@ -0,0 +1 @@
|
||||
<%@ WebService Language="C#" CodeBehind="blwws.asmx.cs" Class="BLWWS.blwws" %>
|
||||
1282
BLWWS/blwws.asmx.cs
Normal file
1282
BLWWS/blwws.asmx.cs
Normal file
File diff suppressed because it is too large
Load Diff
364
BLWWS/job_scheduling_data_2_0.xsd
Normal file
364
BLWWS/job_scheduling_data_2_0.xsd
Normal file
@@ -0,0 +1,364 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns="http://quartznet.sourceforge.net/JobSchedulingData"
|
||||
targetNamespace="http://quartznet.sourceforge.net/JobSchedulingData"
|
||||
elementFormDefault="qualified"
|
||||
version="2.0">
|
||||
|
||||
<xs:element name="job-scheduling-data">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Root level node</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence maxOccurs="unbounded">
|
||||
<xs:element name="pre-processing-commands" type="pre-processing-commandsType" minOccurs="0" maxOccurs="1">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Commands to be executed before scheduling the jobs and triggers in this file.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="processing-directives" type="processing-directivesType" minOccurs="0" maxOccurs="1">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Directives to be followed while scheduling the jobs and triggers in this file.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="schedule" minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:complexType>
|
||||
<xs:sequence maxOccurs="unbounded">
|
||||
<xs:element name="job" type="job-detailType" minOccurs="0" maxOccurs="unbounded" />
|
||||
<xs:element name="trigger" type="triggerType" minOccurs="0" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
<xs:attribute name="version" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Version of the XML Schema instance</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:complexType name="pre-processing-commandsType">
|
||||
<xs:sequence maxOccurs="unbounded">
|
||||
<xs:element name="delete-jobs-in-group" type="xs:string" minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Delete all jobs, if any, in the identified group. "*" can be used to identify all groups. Will also result in deleting all triggers related to the jobs.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="delete-triggers-in-group" type="xs:string" minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Delete all triggers, if any, in the identified group. "*" can be used to identify all groups. Will also result in deletion of related jobs that are non-durable.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="delete-job" minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Delete the identified job if it exists (will also result in deleting all triggers related to it).</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="name" type="xs:string" />
|
||||
<xs:element name="group" type="xs:string" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="delete-trigger" minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Delete the identified trigger if it exists (will also result in deletion of related jobs that are non-durable).</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="name" type="xs:string" />
|
||||
<xs:element name="group" type="xs:string" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="processing-directivesType">
|
||||
<xs:sequence>
|
||||
<xs:element name="overwrite-existing-data" type="xs:boolean" minOccurs="0" default="true">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Whether the existing scheduling data (with same identifiers) will be overwritten. If false, and ignore-duplicates is not false, and jobs or triggers with the same names already exist as those in the file, an error will occur.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="ignore-duplicates" type="xs:boolean" minOccurs="0" default="false">
|
||||
<xs:annotation>
|
||||
<xs:documentation>If true (and overwrite-existing-data is false) then any job/triggers encountered in this file that have names that already exist in the scheduler will be ignored, and no error will be produced.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="schedule-trigger-relative-to-replaced-trigger" type="xs:boolean" minOccurs="0" default="false">
|
||||
<xs:annotation>
|
||||
<xs:documentation>If true trigger's start time is calculated based on earlier run time instead of fixed value. Trigger's start time must be undefined for this to work.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="job-detailType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Define a JobDetail</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:sequence>
|
||||
<xs:element name="name" type="xs:string" />
|
||||
<xs:element name="group" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="description" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="job-type" type="xs:string" />
|
||||
<xs:sequence minOccurs="0">
|
||||
<xs:element name="durable" type="xs:boolean" />
|
||||
<xs:element name="recover" type="xs:boolean" />
|
||||
</xs:sequence>
|
||||
<xs:element name="job-data-map" type="job-data-mapType" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="job-data-mapType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Define a JobDataMap</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:sequence minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="entry" type="entryType" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="entryType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Define a JobDataMap entry</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:sequence>
|
||||
<xs:element name="key" type="xs:string" />
|
||||
<xs:element name="value" type="xs:string" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="triggerType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Define a Trigger</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:choice>
|
||||
<xs:element name="simple" type="simpleTriggerType" />
|
||||
<xs:element name="cron" type="cronTriggerType" />
|
||||
<xs:element name="calendar-interval" type="calendarIntervalTriggerType" />
|
||||
</xs:choice>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="abstractTriggerType" abstract="true">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Common Trigger definitions</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:sequence>
|
||||
<xs:element name="name" type="xs:string" />
|
||||
<xs:element name="group" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="description" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="job-name" type="xs:string" />
|
||||
<xs:element name="job-group" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="priority" type="xs:nonNegativeInteger" minOccurs="0" />
|
||||
<xs:element name="calendar-name" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="job-data-map" type="job-data-mapType" minOccurs="0" />
|
||||
<xs:sequence minOccurs="0">
|
||||
<xs:choice>
|
||||
<xs:element name="start-time" type="xs:dateTime" />
|
||||
<xs:element name="start-time-seconds-in-future" type="xs:nonNegativeInteger" />
|
||||
</xs:choice>
|
||||
<xs:element name="end-time" type="xs:dateTime" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="simpleTriggerType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Define a SimpleTrigger</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexContent>
|
||||
<xs:extension base="abstractTriggerType">
|
||||
<xs:sequence>
|
||||
<xs:element name="misfire-instruction" type="simple-trigger-misfire-instructionType" minOccurs="0" />
|
||||
<xs:sequence minOccurs="0">
|
||||
<xs:element name="repeat-count" type="repeat-countType" />
|
||||
<xs:element name="repeat-interval" type="xs:nonNegativeInteger" />
|
||||
</xs:sequence>
|
||||
</xs:sequence>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="cronTriggerType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Define a CronTrigger</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexContent>
|
||||
<xs:extension base="abstractTriggerType">
|
||||
<xs:sequence>
|
||||
<xs:element name="misfire-instruction" type="cron-trigger-misfire-instructionType" minOccurs="0" />
|
||||
<xs:element name="cron-expression" type="cron-expressionType" />
|
||||
<xs:element name="time-zone" type="xs:string" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="calendarIntervalTriggerType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Define a DateIntervalTrigger</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexContent>
|
||||
<xs:extension base="abstractTriggerType">
|
||||
<xs:sequence>
|
||||
<xs:element name="misfire-instruction" type="date-interval-trigger-misfire-instructionType" minOccurs="0" />
|
||||
<xs:element name="repeat-interval" type="xs:nonNegativeInteger" />
|
||||
<xs:element name="repeat-interval-unit" type="interval-unitType" />
|
||||
</xs:sequence>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:simpleType name="cron-expressionType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>
|
||||
Cron expression (see JavaDoc for examples)
|
||||
|
||||
Special thanks to Chris Thatcher (thatcher@butterfly.net) for the regular expression!
|
||||
|
||||
Regular expressions are not my strong point but I believe this is complete,
|
||||
with the caveat that order for expressions like 3-0 is not legal but will pass,
|
||||
and month and day names must be capitalized.
|
||||
If you want to examine the correctness look for the [\s] to denote the
|
||||
seperation of individual regular expressions. This is how I break them up visually
|
||||
to examine them:
|
||||
|
||||
SECONDS:
|
||||
(
|
||||
((([0-9]|[0-5][0-9])(-([0-9]|[0-5][0-9]))?,)*([0-9]|[0-5][0-9])(-([0-9]|[0-5][0-9]))?)
|
||||
| (([\*]|[0-9]|[0-5][0-9])/([0-9]|[0-5][0-9]))
|
||||
| ([\?])
|
||||
| ([\*])
|
||||
) [\s]
|
||||
MINUTES:
|
||||
(
|
||||
((([0-9]|[0-5][0-9])(-([0-9]|[0-5][0-9]))?,)*([0-9]|[0-5][0-9])(-([0-9]|[0-5][0-9]))?)
|
||||
| (([\*]|[0-9]|[0-5][0-9])/([0-9]|[0-5][0-9]))
|
||||
| ([\?])
|
||||
| ([\*])
|
||||
) [\s]
|
||||
HOURS:
|
||||
(
|
||||
((([0-9]|[0-1][0-9]|[2][0-3])(-([0-9]|[0-1][0-9]|[2][0-3]))?,)*([0-9]|[0-1][0-9]|[2][0-3])(-([0-9]|[0-1][0-9]|[2][0-3]))?)
|
||||
| (([\*]|[0-9]|[0-1][0-9]|[2][0-3])/([0-9]|[0-1][0-9]|[2][0-3]))
|
||||
| ([\?])
|
||||
| ([\*])
|
||||
) [\s]
|
||||
DAY OF MONTH:
|
||||
(
|
||||
((([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1])(-([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1]))?,)*([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1])(-([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1]))?(C)?)
|
||||
| (([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1])/([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1])(C)?)
|
||||
| (L(-[0-9])?)
|
||||
| (L(-[1-2][0-9])?)
|
||||
| (L(-[3][0-1])?)
|
||||
| (LW)
|
||||
| ([1-9]W)
|
||||
| ([1-3][0-9]W)
|
||||
| ([\?])
|
||||
| ([\*])
|
||||
)[\s]
|
||||
MONTH:
|
||||
(
|
||||
((([1-9]|0[1-9]|1[0-2])(-([1-9]|0[1-9]|1[0-2]))?,)*([1-9]|0[1-9]|1[0-2])(-([1-9]|0[1-9]|1[0-2]))?)
|
||||
| (([1-9]|0[1-9]|1[0-2])/([1-9]|0[1-9]|1[0-2]))
|
||||
| (((JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)(-(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC))?,)*(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)(-(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC))?)
|
||||
| ((JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)/(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC))
|
||||
| ([\?])
|
||||
| ([\*])
|
||||
)[\s]
|
||||
DAY OF WEEK:
|
||||
(
|
||||
(([1-7](-([1-7]))?,)*([1-7])(-([1-7]))?)
|
||||
| ([1-7]/([1-7]))
|
||||
| (((MON|TUE|WED|THU|FRI|SAT|SUN)(-(MON|TUE|WED|THU|FRI|SAT|SUN))?,)*(MON|TUE|WED|THU|FRI|SAT|SUN)(-(MON|TUE|WED|THU|FRI|SAT|SUN))?(C)?)
|
||||
| ((MON|TUE|WED|THU|FRI|SAT|SUN)/(MON|TUE|WED|THU|FRI|SAT|SUN)(C)?)
|
||||
| (([1-7]|(MON|TUE|WED|THU|FRI|SAT|SUN))(L|LW)?)
|
||||
| (([1-7]|MON|TUE|WED|THU|FRI|SAT|SUN)#([1-7])?)
|
||||
| ([\?])
|
||||
| ([\*])
|
||||
)
|
||||
YEAR (OPTIONAL):
|
||||
(
|
||||
[\s]?
|
||||
([\*])?
|
||||
| ((19[7-9][0-9])|(20[0-9][0-9]))?
|
||||
| (((19[7-9][0-9])|(20[0-9][0-9]))/((19[7-9][0-9])|(20[0-9][0-9])))?
|
||||
| ((((19[7-9][0-9])|(20[0-9][0-9]))(-((19[7-9][0-9])|(20[0-9][0-9])))?,)*((19[7-9][0-9])|(20[0-9][0-9]))(-((19[7-9][0-9])|(20[0-9][0-9])))?)?
|
||||
)
|
||||
</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:pattern
|
||||
value="(((([0-9]|[0-5][0-9])(-([0-9]|[0-5][0-9]))?,)*([0-9]|[0-5][0-9])(-([0-9]|[0-5][0-9]))?)|(([\*]|[0-9]|[0-5][0-9])/([0-9]|[0-5][0-9]))|([\?])|([\*]))[\s](((([0-9]|[0-5][0-9])(-([0-9]|[0-5][0-9]))?,)*([0-9]|[0-5][0-9])(-([0-9]|[0-5][0-9]))?)|(([\*]|[0-9]|[0-5][0-9])/([0-9]|[0-5][0-9]))|([\?])|([\*]))[\s](((([0-9]|[0-1][0-9]|[2][0-3])(-([0-9]|[0-1][0-9]|[2][0-3]))?,)*([0-9]|[0-1][0-9]|[2][0-3])(-([0-9]|[0-1][0-9]|[2][0-3]))?)|(([\*]|[0-9]|[0-1][0-9]|[2][0-3])/([0-9]|[0-1][0-9]|[2][0-3]))|([\?])|([\*]))[\s](((([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1])(-([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1]))?,)*([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1])(-([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1]))?(C)?)|(([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1])/([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1])(C)?)|(L(-[0-9])?)|(L(-[1-2][0-9])?)|(L(-[3][0-1])?)|(LW)|([1-9]W)|([1-3][0-9]W)|([\?])|([\*]))[\s](((([1-9]|0[1-9]|1[0-2])(-([1-9]|0[1-9]|1[0-2]))?,)*([1-9]|0[1-9]|1[0-2])(-([1-9]|0[1-9]|1[0-2]))?)|(([1-9]|0[1-9]|1[0-2])/([1-9]|0[1-9]|1[0-2]))|(((JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)(-(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC))?,)*(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)(-(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC))?)|((JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)/(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC))|([\?])|([\*]))[\s]((([1-7](-([1-7]))?,)*([1-7])(-([1-7]))?)|([1-7]/([1-7]))|(((MON|TUE|WED|THU|FRI|SAT|SUN)(-(MON|TUE|WED|THU|FRI|SAT|SUN))?,)*(MON|TUE|WED|THU|FRI|SAT|SUN)(-(MON|TUE|WED|THU|FRI|SAT|SUN))?(C)?)|((MON|TUE|WED|THU|FRI|SAT|SUN)/(MON|TUE|WED|THU|FRI|SAT|SUN)(C)?)|(([1-7]|(MON|TUE|WED|THU|FRI|SAT|SUN))?(L|LW)?)|(([1-7]|MON|TUE|WED|THU|FRI|SAT|SUN)#([1-7])?)|([\?])|([\*]))([\s]?(([\*])?|(19[7-9][0-9])|(20[0-9][0-9]))?| (((19[7-9][0-9])|(20[0-9][0-9]))/((19[7-9][0-9])|(20[0-9][0-9])))?| ((((19[7-9][0-9])|(20[0-9][0-9]))(-((19[7-9][0-9])|(20[0-9][0-9])))?,)*((19[7-9][0-9])|(20[0-9][0-9]))(-((19[7-9][0-9])|(20[0-9][0-9])))?)?)" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:simpleType name="repeat-countType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Number of times to repeat the Trigger (-1 for indefinite)</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:integer">
|
||||
<xs:minInclusive value="-1" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
|
||||
<xs:simpleType name="simple-trigger-misfire-instructionType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Simple Trigger Misfire Instructions</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:pattern value="SmartPolicy" />
|
||||
<xs:pattern value="RescheduleNextWithExistingCount" />
|
||||
<xs:pattern value="RescheduleNextWithRemainingCount" />
|
||||
<xs:pattern value="RescheduleNowWithExistingRepeatCount" />
|
||||
<xs:pattern value="RescheduleNowWithRemainingRepeatCount" />
|
||||
<xs:pattern value="FireNow" />
|
||||
<xs:pattern value="IgnoreMisfirePolicy" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:simpleType name="cron-trigger-misfire-instructionType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Cron Trigger Misfire Instructions</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:pattern value="SmartPolicy" />
|
||||
<xs:pattern value="DoNothing" />
|
||||
<xs:pattern value="FireOnceNow" />
|
||||
<xs:pattern value="IgnoreMisfirePolicy" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:simpleType name="date-interval-trigger-misfire-instructionType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Date Interval Trigger Misfire Instructions</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:pattern value="SmartPolicy" />
|
||||
<xs:pattern value="DoNothing" />
|
||||
<xs:pattern value="FireOnceNow" />
|
||||
<xs:pattern value="IgnoreMisfirePolicy" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:simpleType name="interval-unitType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Interval Units</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:pattern value="Day" />
|
||||
<xs:pattern value="Hour" />
|
||||
<xs:pattern value="Minute" />
|
||||
<xs:pattern value="Month" />
|
||||
<xs:pattern value="Second" />
|
||||
<xs:pattern value="Week" />
|
||||
<xs:pattern value="Year" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
</xs:schema>
|
||||
35
BLWWS/nlog.config
Normal file
35
BLWWS/nlog.config
Normal file
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
|
||||
<!-- enable asp.net core layout renderers -->
|
||||
<targets>
|
||||
<!--项目日志保存文件路径说明fileName="${basedir}/保存目录,以年月日的格式创建/${shortdate}/${记录器名称}-${单级记录}-${shortdate}.txt"-->
|
||||
<target name="info_file" xsi:type="File"
|
||||
fileName="${basedir}/Logs/${shortdate}/info_${shortdate}.txt"
|
||||
layout="${longdate}|${level:uppercase=true}|${logger}|${message}|${exception:format=ToString} ${newline} ${stacktrace} ${newline}"
|
||||
archiveFileName="${basedir}/archives/info_${shortdate}-{#####}.txt"
|
||||
archiveAboveSize="102400"
|
||||
archiveNumbering="Sequence"
|
||||
concurrentWrites="true"
|
||||
keepFileOpen="false" />
|
||||
<target name="error_file" xsi:type="File"
|
||||
fileName="${basedir}/Logs/${shortdate}/error_${shortdate}.txt"
|
||||
layout="${longdate}|${level:uppercase=true}|${logger}|${message}|${exception:format=ToString} ${newline} ${stacktrace} ${newline}"
|
||||
archiveFileName="${basedir}/archives/error_${shortdate}-{#####}.txt"
|
||||
archiveAboveSize="102400"
|
||||
archiveNumbering="Sequence"
|
||||
concurrentWrites="true"
|
||||
keepFileOpen="false" />
|
||||
</targets>
|
||||
|
||||
<!--规则配置,final - 最终规则匹配后不处理任何规则-->
|
||||
<!--规则配置,final - 最终规则匹配后不处理任何规则-->
|
||||
<!--定义使用哪个target输出-->
|
||||
<rules>
|
||||
<!-- 优先级从高到低依次为:OFF、FATAL、ERROR、WARN、INFO、DEBUG、TRACE、 ALL -->
|
||||
<!-- 将所有日志输出到文件 -->
|
||||
<logger name="*" minlevel="FATAL" maxlevel="FATAL" writeTo="info_file" />
|
||||
<logger name="*" minlevel="Error" writeTo="error_file" />
|
||||
</rules>
|
||||
</nlog>
|
||||
10
BLWWS/packages.config
Normal file
10
BLWWS/packages.config
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="Common.Logging" version="3.3.1" targetFramework="net40" />
|
||||
<package id="Common.Logging.Core" version="3.3.1" targetFramework="net40" />
|
||||
<package id="MySql.Data" version="6.7.9" targetFramework="net40" requireReinstallation="true" />
|
||||
<package id="Newtonsoft.Json" version="13.0.3" targetFramework="net40" requireReinstallation="true" />
|
||||
<package id="NLog" version="6.0.1" targetFramework="net40" />
|
||||
<package id="Quartz" version="2.6.2" targetFramework="net40" />
|
||||
<package id="sqlSugar" version="4.9.9.11" targetFramework="net40" />
|
||||
</packages>
|
||||
1
BLWWS/syncstatus.asmx
Normal file
1
BLWWS/syncstatus.asmx
Normal file
@@ -0,0 +1 @@
|
||||
<%@ WebService Language="C#" CodeBehind="syncstatus.asmx.cs" Class="BLWWS.syncstatus" %>
|
||||
311
BLWWS/syncstatus.asmx.cs
Normal file
311
BLWWS/syncstatus.asmx.cs
Normal file
@@ -0,0 +1,311 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Services;
|
||||
using System.Data;
|
||||
using BLWWS_BLL;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLWWS
|
||||
{
|
||||
/// <summary>
|
||||
/// syncstatus 的摘要说明
|
||||
/// </summary>
|
||||
[WebService(Namespace = "http://www.blw.com/")]
|
||||
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
|
||||
[System.ComponentModel.ToolboxItem(false)]
|
||||
// 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务,请取消对下行的注释。
|
||||
[System.Web.Script.Services.ScriptService]
|
||||
public class syncstatus : System.Web.Services.WebService
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取客户记录
|
||||
/// </summary>
|
||||
/// <param name="code"></param>
|
||||
/// <param name="roomNumber"></param>
|
||||
/// <returns></returns>
|
||||
[WebMethod]
|
||||
public DataSet GetRoomRecord(string code, string roomNumber, string tableName)
|
||||
{
|
||||
try
|
||||
{
|
||||
return BLL.GetRoomRecords(code, roomNumber, tableName);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogHelper.WriteLog(ex.ToString());
|
||||
}
|
||||
return null;
|
||||
}
|
||||
/// <summary>
|
||||
/// 根据酒店ID,房号获取当前入住人信息
|
||||
/// </summary>
|
||||
/// <param name="hotelID">酒店ID</param>
|
||||
/// <param name="roomNumber">房号</param>
|
||||
/// <returns></returns>
|
||||
[WebMethod]
|
||||
public string GetRoomCustomerByHotelID(int hotelID, string roomNumber, ref string phoneNumber)
|
||||
{
|
||||
try
|
||||
{
|
||||
return BLL.GetRoomCustomer(hotelID, roomNumber, ref phoneNumber);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogHelper.WriteLog(ex.ToString());
|
||||
}
|
||||
return "";
|
||||
}
|
||||
/// <summary>
|
||||
/// 获取入住人信息
|
||||
/// </summary>
|
||||
/// <param name="checkInID"></param>
|
||||
/// <returns></returns>
|
||||
[WebMethod]
|
||||
public DataSet GetRoomCustomer(long checkInID)
|
||||
{
|
||||
try
|
||||
{
|
||||
return BLL.GetRoomCustomer(checkInID);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogHelper.WriteLog(ex.ToString());
|
||||
}
|
||||
return null;
|
||||
}
|
||||
/// <summary>
|
||||
/// 获取酒店编码
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[WebMethod]
|
||||
public DataSet GetHotelCode()
|
||||
{
|
||||
try
|
||||
{
|
||||
return BLL.GetHotelCode();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogHelper.WriteLog(ex.ToString());
|
||||
}
|
||||
return null;
|
||||
}
|
||||
/// <summary>
|
||||
/// 获取酒店编码
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[WebMethod]
|
||||
public DataTable GetHotelByCode(string code)
|
||||
{
|
||||
try
|
||||
{
|
||||
return BLL.GetHotelCode(code);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogHelper.WriteLog(ex.ToString());
|
||||
}
|
||||
return null;
|
||||
}
|
||||
/// <summary>
|
||||
/// 定时获取酒店新的开房/退房/待租记录
|
||||
/// </summary>
|
||||
/// <param name="code">酒店编码</param>
|
||||
/// <returns></returns>
|
||||
[WebMethod]
|
||||
public DataSet GetCheckInOrOutRecord(string code)
|
||||
{
|
||||
try
|
||||
{
|
||||
return BLL.GetCheckInOrOutRecord(code);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogHelper.WriteLog(ex.ToString());
|
||||
}
|
||||
return null;
|
||||
}
|
||||
/// <summary>
|
||||
/// 获取人脸机设备信息
|
||||
/// </summary>
|
||||
/// <param name="code"></param>
|
||||
/// <returns></returns>
|
||||
[WebMethod]
|
||||
public DataSet GetDevices(string code)
|
||||
{
|
||||
try
|
||||
{
|
||||
return BLL.GetDevices(code);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogHelper.WriteLog(ex.ToString());
|
||||
}
|
||||
return null;
|
||||
}
|
||||
/// <summary>
|
||||
/// 人脸机绑定房号
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <param name="hotelCode"></param>
|
||||
/// <param name="roomNumber"></param>
|
||||
/// <returns></returns>
|
||||
[WebMethod]
|
||||
public int SaveDevice(long id, string hotelCode, string roomNumber)
|
||||
{
|
||||
try
|
||||
{
|
||||
return BLL.SaveDevice(id, hotelCode, roomNumber);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogHelper.WriteLog(ex.ToString());
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
/// <summary>
|
||||
/// 更新已同步的新开房/退房/待租状态
|
||||
/// </summary>
|
||||
/// <param name="code">酒店编码</param>
|
||||
/// <param name="id">记录ID</param>
|
||||
/// <param name="flag">0开房,1退房,2待租</param>
|
||||
/// <returns></returns>
|
||||
[WebMethod]
|
||||
public int UpdateCheckInOrOutRecord(string code, Int64 id, int flag)
|
||||
{
|
||||
try
|
||||
{
|
||||
return BLL.UpdateCheckInOrOutRecord(code, id, flag);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogHelper.WriteLog(ex.ToString());
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
/// <summary>
|
||||
/// 判断验证码是否正确
|
||||
/// </summary>
|
||||
/// <param name="hotelID">酒店ID</param>
|
||||
/// <param name="roomNumber">房号</param>
|
||||
/// <param name="validateCode">用户输入验证码</param>
|
||||
/// <returns></returns>
|
||||
[WebMethod]
|
||||
public bool ValidateNumber(int hotelID, string roomNumber, string validateCode)
|
||||
{
|
||||
try
|
||||
{
|
||||
return BLL.ValidateNumber(hotelID, roomNumber, validateCode);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogHelper.WriteLog(ex.ToString());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
/// <summary>
|
||||
/// 判断验证码是否正确
|
||||
/// </summary>
|
||||
/// <param name="code">酒店编码</param>
|
||||
/// <param name="roomNumber">房号</param>
|
||||
/// <param name="validateCode">用户输入验证码</param>
|
||||
/// <returns></returns>
|
||||
[WebMethod]
|
||||
public bool ValidateNumberByCode(string code, string roomNumber, string validateCode)
|
||||
{
|
||||
try
|
||||
{
|
||||
return BLL.ValidateNumberByCode(code, roomNumber, validateCode);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogHelper.WriteLog(ex.ToString());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
/// <summary>
|
||||
/// 根据手机号获取当前入住记录信息
|
||||
/// </summary>
|
||||
/// <param name="phone"></param>
|
||||
/// <returns></returns>
|
||||
[WebMethod]
|
||||
public DataTable GetCodeAndRoomNumberByPhone(string phone)
|
||||
{
|
||||
try
|
||||
{
|
||||
return BLL.GetCodeAndRoomNumberByPhone(phone);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogHelper.WriteLog(ex.ToString());
|
||||
}
|
||||
return null;
|
||||
}
|
||||
/// <summary>
|
||||
/// 上传/变更图像及信息
|
||||
/// </summary>
|
||||
/// <param name="idType">证件类型:0身份证,1护照</param>
|
||||
/// <param name="idCard">证件号码</param>
|
||||
/// <param name="name">姓名</param>
|
||||
/// <param name="sex">性别:0女,1男</param>
|
||||
/// <param name="photo">图像</param>
|
||||
/// <returns></returns>
|
||||
[WebMethod]
|
||||
public bool UploadPhoto(int idType, string idCard, string name, int sex, string birthday, byte[] photo)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (BLL.UploadPhoto(idType, idCard, name, sex, birthday, photo) > 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogHelper.WriteLog(ex.ToString());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
/// <summary>
|
||||
/// 人脸识别
|
||||
/// </summary>
|
||||
/// <param name="photo"></param>
|
||||
/// <param name="idType"></param>
|
||||
/// <param name="idCard"></param>
|
||||
/// <param name="name"></param>
|
||||
/// <param name="sex"></param>
|
||||
/// <param name="matchPhoto"></param>
|
||||
/// <returns></returns>
|
||||
[WebMethod]
|
||||
public bool FaceMatch(byte[] photo, ref int idType, ref string idCard, ref string name, ref int sex, ref byte[] matchPhoto)
|
||||
{
|
||||
try
|
||||
{
|
||||
return BLL.FaceMatch(photo, ref idType, ref idCard, ref name, ref sex, ref matchPhoto);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogHelper.WriteLog(ex.ToString());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
//[WebMethod]
|
||||
//public int SendSMS(string phoneNumber)
|
||||
//{
|
||||
// try
|
||||
// {
|
||||
// string validateCode = Tools.CreateValidateCode(4);
|
||||
// //发送短信验证码
|
||||
// AliyunSMSHelper.SendVerifySMS(phoneNumber, validateCode);
|
||||
// }
|
||||
// catch (Exception ex)
|
||||
// {
|
||||
// LogHelper.WriteLog(ex.ToString());
|
||||
// }
|
||||
// return 0;
|
||||
//}
|
||||
}
|
||||
}
|
||||
70
BLWWS_BLL/AliyunSMSHelper.cs
Normal file
70
BLWWS_BLL/AliyunSMSHelper.cs
Normal file
@@ -0,0 +1,70 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Aliyun.Acs.Core;
|
||||
using Aliyun.Acs.Core.Profile;
|
||||
using Aliyun.Acs.Core.Exceptions;
|
||||
using Aliyun.Acs.Dysmsapi.Model.V20170525;
|
||||
|
||||
namespace BLWWS_BLL
|
||||
{
|
||||
public static class AliyunSMSHelper
|
||||
{
|
||||
/// <summary>
|
||||
/// 发送验证码
|
||||
/// </summary>
|
||||
/// <param name="recNum">接收号码,多个号码可以逗号分隔</param>
|
||||
/// <param name="code">验证码</param>
|
||||
public static void SendVerifySMS(string recNum, string code)
|
||||
{
|
||||
SendSMS(recNum, "{'code':'" + code + "'}");
|
||||
}
|
||||
/// <summary>
|
||||
/// 发送验证码
|
||||
/// </summary>
|
||||
/// <param name="recNum">接收号码,多个号码可以逗号分隔</param>
|
||||
/// <param name="paramString">短信模板中的变量;数字需要转换为字符串;个人用户每个变量长度必须小于15个字符。</param>
|
||||
/// <returns></returns>
|
||||
private static void SendSMS(string recNum, string paramString)
|
||||
{
|
||||
IClientProfile profile = DefaultProfile.GetProfile("cn-hangzhou", "LTAICuIny2zJSSjm", "uguZzmshKPtT0fW87E8sP1TXe7Kwc9");
|
||||
//IAcsClient client = new DefaultAcsClient(profile);
|
||||
//SingleSendSmsRequest request = new SingleSendSmsRequest();
|
||||
DefaultProfile.AddEndpoint("cn-hangzhou", "cn-hangzhou", "Dysmsapi", "dysmsapi.aliyuncs.com");//短信API产品名称,短信API产品域名
|
||||
IAcsClient acsClient = new DefaultAcsClient(profile);
|
||||
SendSmsRequest request = new SendSmsRequest();
|
||||
try
|
||||
{
|
||||
//request.SignName = "小威提示";//"管理控制台中配置的短信签名(状态必须是验证通过)"
|
||||
//request.TemplateCode = "SMS_95095011";//"管理控制台中配置的审核通过的短信模板的模板CODE(状态必须是验证通过)"
|
||||
//request.RecNum = recNum;
|
||||
//request.ParamString = paramString;
|
||||
//SingleSendSmsResponse httpResponse = client.GetAcsResponse(request);
|
||||
|
||||
//必填:待发送手机号。支持以逗号分隔的形式进行批量调用,批量上限为20个手机号码,批量调用相对于单条调用及时性稍有延迟,验证码类型的短信推荐使用单条调用的方式
|
||||
request.PhoneNumbers = recNum;
|
||||
//必填:短信签名-可在短信控制台中找到
|
||||
request.SignName = "小威提示";
|
||||
//必填:短信模板-可在短信控制台中找到
|
||||
request.TemplateCode = "SMS_95095011";
|
||||
//可选:模板中的变量替换JSON串,如模板内容为"亲爱的${name},您的验证码为${code}"时,此处的值为
|
||||
request.TemplateParam = paramString;// "{\"customer\":\"123\"}";
|
||||
//可选:outId为提供给业务方扩展字段,最终在短信回执消息中将此值带回给调用者
|
||||
//request.OutId = "21212121211";
|
||||
//请求失败这里会抛ClientException异常
|
||||
//SendSmsResponse sendSmsResponse =
|
||||
acsClient.GetAcsResponse(request);
|
||||
//LogHelper.WriteLog(sendSmsResponse.Message);
|
||||
}
|
||||
catch (ServerException e)
|
||||
{
|
||||
LogHelper.WriteLog(e.ToString());
|
||||
}
|
||||
catch (ClientException e)
|
||||
{
|
||||
LogHelper.WriteLog(e.ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
1228
BLWWS_BLL/BLL.cs
Normal file
1228
BLWWS_BLL/BLL.cs
Normal file
File diff suppressed because it is too large
Load Diff
115
BLWWS_BLL/BLWWS_BLL.csproj
Normal file
115
BLWWS_BLL/BLWWS_BLL.csproj
Normal file
@@ -0,0 +1,115 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>8.0.30703</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{CF2AB5DE-C3AF-4388-B6C4-EFA14BAF3316}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>BLWWS_BLL</RootNamespace>
|
||||
<AssemblyName>BLWWS_BLL</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="aliyun-net-sdk-core">
|
||||
<HintPath>..\dll\aliyun-net-sdk-core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="aliyun-net-sdk-dysmsapi">
|
||||
<HintPath>..\dll\aliyun-net-sdk-dysmsapi.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Common.Logging, Version=3.3.1.0, Culture=neutral, PublicKeyToken=af08829b84f0328e, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Common.Logging.3.3.1\lib\net40\Common.Logging.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Common.Logging.Core, Version=3.3.1.0, Culture=neutral, PublicKeyToken=af08829b84f0328e, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Common.Logging.Core.3.3.1\lib\net40\Common.Logging.Core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="CSRedisCore, Version=3.8.806.0, Culture=neutral, PublicKeyToken=9aa6a3079358d437, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\CSRedisCore.3.8.806\lib\net40\CSRedisCore.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="MySql.Data, Version=6.7.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\MySql.Data.6.7.9\lib\net40\MySql.Data.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Newtonsoft.Json.13.0.3\lib\net40\Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="NLog, Version=6.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\NLog.6.0.0\lib\net35\NLog.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Quartz, Version=2.6.2.0, Culture=neutral, PublicKeyToken=f6b8c98a402cc8a4, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Quartz.2.6.2\lib\net40\Quartz.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="RestSharp">
|
||||
<HintPath>..\BLWWS\RestSharp\RestSharp.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="SqlSugar, Version=4.9.9.11, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\sqlSugar.4.9.9.11\lib\SqlSugar.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.configuration" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.ValueTuple, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.ValueTuple.4.5.0\lib\portable-net40+sl4+win8+wp8\System.ValueTuple.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Web" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="AliyunSMSHelper.cs" />
|
||||
<Compile Include="CSRedisCacheHelper.cs" />
|
||||
<Compile Include="EntityData.cs" />
|
||||
<Compile Include="ExtraData.cs" />
|
||||
<Compile Include="GlobalCache.cs" />
|
||||
<Compile Include="HttpJob.cs" />
|
||||
<Compile Include="LogHelper.cs" />
|
||||
<Compile Include="LogHelperForService.cs" />
|
||||
<Compile Include="PmsInterface.cs" />
|
||||
<Compile Include="pmsLog.cs" />
|
||||
<Compile Include="SqlHelper.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="SqlSugarBase.cs" />
|
||||
<Compile Include="Tools.cs" />
|
||||
<Compile Include="BLL.cs" />
|
||||
<Compile Include="Uploadinfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="app.config" />
|
||||
<None Include="job_scheduling_data_2_0.xsd">
|
||||
<SubType>Designer</SubType>
|
||||
</None>
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
121
BLWWS_BLL/GlobalCache.cs
Normal file
121
BLWWS_BLL/GlobalCache.cs
Normal file
@@ -0,0 +1,121 @@
|
||||
using System;
|
||||
using System.Collections.Concurrent;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using BLWWS_BLL.Job;
|
||||
using NLog;
|
||||
using Quartz;
|
||||
using Quartz.Impl;
|
||||
using LogManager = NLog.LogManager;
|
||||
|
||||
namespace BLWWS_BLL
|
||||
{
|
||||
public class GlobalCache
|
||||
{
|
||||
public static ISchedulerFactory sf = null;
|
||||
public static IScheduler sched = null;
|
||||
|
||||
public static ConcurrentQueue<string> GlobalCacheData = new ConcurrentQueue<string>();
|
||||
|
||||
public static System.Timers.Timer timer;
|
||||
private static readonly Logger _logger = LogManager.GetCurrentClassLogger();
|
||||
public static void Init()
|
||||
{
|
||||
_logger.Error("初始化");
|
||||
if (timer == null)
|
||||
{
|
||||
timer = new System.Timers.Timer();
|
||||
timer.Interval = 500;
|
||||
timer.Elapsed -= Timer_Elapsed;
|
||||
timer.Elapsed += Timer_Elapsed;
|
||||
timer.Start();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private static void Timer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (GlobalCache.GlobalCacheData.TryDequeue(out string data))
|
||||
{
|
||||
if (!string.IsNullOrEmpty(data))
|
||||
{
|
||||
string strResult = Tools.PostWebRequest(data, "");//调用人脸机接口
|
||||
_logger.Error("人脸 后台:" + strResult);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.Error("人脸 后台异常:" + ex.Message);
|
||||
}
|
||||
}
|
||||
public static void Add(string jobData)
|
||||
{
|
||||
|
||||
if (timer == null)
|
||||
{
|
||||
timer = new System.Timers.Timer();
|
||||
timer.Interval = 500;
|
||||
timer.Elapsed -= Timer_Elapsed;
|
||||
timer.Elapsed += Timer_Elapsed;
|
||||
timer.Start();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
}
|
||||
_logger.Error("后台来了任务");
|
||||
GlobalCacheData.Enqueue(jobData);
|
||||
//if (sf == null)
|
||||
//{
|
||||
// Init();
|
||||
//}
|
||||
//DateTimeOffset runTime = DateTimeOffset.UtcNow.AddSeconds(2);
|
||||
|
||||
//string JobName = "Job" + System.Guid.NewGuid().ToString("N");
|
||||
//string TriggerName = "Trigger" + System.Guid.NewGuid().ToString("N");
|
||||
//IJobDetail job = JobBuilder.Create<HttpJob>()
|
||||
// .WithIdentity(JobName, "group1")
|
||||
// .UsingJobData("JobData", jobData)
|
||||
// .Build();
|
||||
|
||||
//// Trigger the job to run on the next round minute
|
||||
//ITrigger trigger = TriggerBuilder.Create()
|
||||
// .WithIdentity(TriggerName, "group1")
|
||||
// .StartAt(runTime)
|
||||
// .Build();
|
||||
|
||||
//GlobalCache.sched.ScheduleJob(job, trigger);
|
||||
}
|
||||
public static void TaskAdd(string jobData)
|
||||
{
|
||||
if (sched != null)
|
||||
{
|
||||
DateTimeOffset runTime = DateTimeOffset.UtcNow.AddSeconds(2);
|
||||
|
||||
string JobName = "Job" + System.Guid.NewGuid().ToString("N");
|
||||
string TriggerName = "Trigger" + System.Guid.NewGuid().ToString("N");
|
||||
IJobDetail job = JobBuilder.Create<HttpJob>()
|
||||
.WithIdentity(JobName, "group1")
|
||||
.UsingJobData("JobData", jobData)
|
||||
.Build();
|
||||
|
||||
// Trigger the job to run on the next round minute
|
||||
ITrigger trigger = TriggerBuilder.Create()
|
||||
.WithIdentity(TriggerName, "group1")
|
||||
.StartAt(runTime)
|
||||
.Build();
|
||||
|
||||
GlobalCache.sched.ScheduleJob(job, trigger);
|
||||
}
|
||||
else
|
||||
{
|
||||
LogHelper.WriteLog("初始化");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
30
BLWWS_BLL/HttpJob.cs
Normal file
30
BLWWS_BLL/HttpJob.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using BLWWS_BLL;
|
||||
using Quartz;
|
||||
|
||||
namespace BLWWS_BLL.Job
|
||||
{
|
||||
public class HttpJob : IJob
|
||||
{
|
||||
public void Execute(IJobExecutionContext context)
|
||||
{
|
||||
try
|
||||
{
|
||||
var mmm = context.JobDetail.JobDataMap;
|
||||
var nnn = mmm.GetString("JobData");
|
||||
|
||||
//string str = Tools.PostWebRequest(nnn, "");//调用人脸机接口
|
||||
//LogHelper.WriteLog("后台人脸机的结果:" + str);
|
||||
LogHelper.WriteLog("执行任务"+nnn);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
//LogHelper.WriteLog("后台人脸机异常:" + ex.Message);
|
||||
LogHelper.WriteLog("后台异常:" + ex.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
132
BLWWS_BLL/LogHelper.cs
Normal file
132
BLWWS_BLL/LogHelper.cs
Normal file
@@ -0,0 +1,132 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.IO;
|
||||
using System.Web;
|
||||
|
||||
namespace BLWWS_BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 日志辅助类
|
||||
/// </summary>
|
||||
public static class LogHelper
|
||||
{
|
||||
public static string ExePath = HttpContext.Current.Request.PhysicalApplicationPath;
|
||||
/// <summary>
|
||||
/// 日志写入到批定的文件路径下
|
||||
/// </summary>
|
||||
/// <param name="msg"></param>
|
||||
public static void WriteLog(string msg, string path = "")
|
||||
{
|
||||
if (string.IsNullOrEmpty(path))
|
||||
{
|
||||
path = ExePath;
|
||||
}
|
||||
path = path + "\\logs\\" + DateTime.Now.ToString("yyyyMMdd") + ".log";
|
||||
msg = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + ":\t" +
|
||||
HttpContext.Current.Request.UserHostAddress + ":" + msg + Environment.NewLine;
|
||||
WriteLog(path, msg, true);
|
||||
}
|
||||
public static void WriteLogNew(string msg, string path = "")
|
||||
{
|
||||
if (string.IsNullOrEmpty(path))
|
||||
{
|
||||
path = ExePath;
|
||||
}
|
||||
path = path + "\\logs\\" + DateTime.Now.ToString("yyyyMMdd") + ".log";
|
||||
msg = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + ":\t" + msg + Environment.NewLine;
|
||||
WriteLog(path, msg, true);
|
||||
}
|
||||
/// <summary>
|
||||
/// 把数据写入指定的文件里
|
||||
/// </summary>
|
||||
/// <param name="path">文件路径(包括文件名称)</param>
|
||||
/// <param name="msg">写入内容</param>
|
||||
/// <param name="append">是否追加</param>
|
||||
public static void WriteLog(string path, string msg, bool append)
|
||||
{
|
||||
string folder = Path.GetDirectoryName(path);
|
||||
if (!Directory.Exists(folder))
|
||||
{
|
||||
Directory.CreateDirectory(folder);
|
||||
}
|
||||
StreamWriter sw = null;
|
||||
try
|
||||
{
|
||||
sw = new StreamWriter(path, append, Encoding.Unicode);
|
||||
sw.WriteLine(msg);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
finally
|
||||
{
|
||||
if (sw != null)
|
||||
{
|
||||
sw.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 把数据写入指定的文件里
|
||||
/// </summary>
|
||||
/// <param name="path"></param>
|
||||
/// <param name="msg"></param>
|
||||
public static void WriteLog(string path, byte[] msg)
|
||||
{
|
||||
string folder = Path.GetDirectoryName(path);
|
||||
if (!Directory.Exists(folder))
|
||||
{
|
||||
Directory.CreateDirectory(folder);
|
||||
}
|
||||
FileStream fs = null;
|
||||
try
|
||||
{
|
||||
fs = new FileStream(path, FileMode.Append, FileAccess.Write);
|
||||
fs.Write(msg, 0, msg.Length);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
finally
|
||||
{
|
||||
if (fs != null)
|
||||
{
|
||||
fs.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 读取文件内容
|
||||
/// </summary>
|
||||
/// <param name="path"></param>
|
||||
/// <returns></returns>
|
||||
public static string ReadLog(string path)
|
||||
{
|
||||
if (File.Exists(path))
|
||||
{
|
||||
StreamReader sr = null;
|
||||
try
|
||||
{
|
||||
sr = new StreamReader(path);
|
||||
return sr.ReadToEnd();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
finally
|
||||
{
|
||||
if (sr != null)
|
||||
{
|
||||
sr.Close();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
return "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
54
BLWWS_BLL/LogHelperForService.cs
Normal file
54
BLWWS_BLL/LogHelperForService.cs
Normal file
@@ -0,0 +1,54 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using System.IO;
|
||||
|
||||
namespace BLWWS_BLL
|
||||
{
|
||||
public static class LogHelperForService
|
||||
{
|
||||
private static string ExePath = Application.StartupPath;
|
||||
/// <summary>
|
||||
/// 日志写入到批定的文件路径下
|
||||
/// </summary>
|
||||
/// <param name="msg"></param>
|
||||
public static void WriteLog(string msg)
|
||||
{
|
||||
string path = ExePath + "\\logs\\" + DateTime.Now.ToString("yyyyMMdd") + ".log";
|
||||
msg = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + ":\t " + msg + Environment.NewLine;
|
||||
WriteLog(path, msg, true);
|
||||
}
|
||||
/// <summary>
|
||||
/// 把数据写入指定的文件里
|
||||
/// </summary>
|
||||
/// <param name="path">文件路径(包括文件名称)</param>
|
||||
/// <param name="msg">写入内容</param>
|
||||
/// <param name="append">是否追加</param>
|
||||
public static void WriteLog(string path, string msg, bool append)
|
||||
{
|
||||
string folder = Path.GetDirectoryName(path);
|
||||
if (!Directory.Exists(folder))
|
||||
{
|
||||
Directory.CreateDirectory(folder);
|
||||
}
|
||||
StreamWriter sw = null;
|
||||
try
|
||||
{
|
||||
sw = new StreamWriter(path, append, Encoding.Unicode);
|
||||
sw.WriteLine(msg);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
finally
|
||||
{
|
||||
if (sw != null)
|
||||
{
|
||||
sw.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
20
BLWWS_BLL/PmsInterface.cs
Normal file
20
BLWWS_BLL/PmsInterface.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace BLWWS_BLL
|
||||
{
|
||||
public class PmsInterface
|
||||
{
|
||||
public int pmsId { get; set; }
|
||||
public System.DateTime DateTime { get; set; }
|
||||
public string pmsContent { get; set; }
|
||||
public int hotelid { get; set; }
|
||||
public Nullable<int> room { get; set; }
|
||||
public string faceSN { get; set; }
|
||||
public Nullable<int> issueresult { get; set; }
|
||||
public Nullable<int> pmstype { get; set; }
|
||||
public string messageid { get; set; }
|
||||
}
|
||||
}
|
||||
36
BLWWS_BLL/Properties/AssemblyInfo.cs
Normal file
36
BLWWS_BLL/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// 有关程序集的常规信息通过以下
|
||||
// 特性集控制。更改这些特性值可修改
|
||||
// 与程序集关联的信息。
|
||||
[assembly: AssemblyTitle("BLWWS_BLL")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("BLWWS_BLL")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2015")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// 将 ComVisible 设置为 false 使此程序集中的类型
|
||||
// 对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型,
|
||||
// 则将该类型上的 ComVisible 特性设置为 true。
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
||||
[assembly: Guid("20d6c689-5d18-49a0-9f86-58f8584bc7ef")]
|
||||
|
||||
// 程序集的版本信息由下面四个值组成:
|
||||
//
|
||||
// 主版本
|
||||
// 次版本
|
||||
// 内部版本号
|
||||
// 修订号
|
||||
//
|
||||
// 可以指定所有这些值,也可以使用“内部版本号”和“修订号”的默认值,
|
||||
// 方法是按如下所示使用“*”:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
4232
BLWWS_BLL/SqlHelper.cs
Normal file
4232
BLWWS_BLL/SqlHelper.cs
Normal file
File diff suppressed because it is too large
Load Diff
32
BLWWS_BLL/SqlSugarBase.cs
Normal file
32
BLWWS_BLL/SqlSugarBase.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace BLWWS_BLL
|
||||
{
|
||||
public static class SqlSugarBase
|
||||
{
|
||||
public static SqlSugarClient GesmartDb()
|
||||
{
|
||||
SqlSugarClient Db = new SqlSugarClient(new ConnectionConfig()
|
||||
{
|
||||
ConnectionString = "Server=blv-cloud-db.mysql.rds.aliyuncs.com;Database=Face;Uid=blv_rcu;Pwd=fnadiaJDIJ7546;charset=utf8;port=3307;",
|
||||
DbType = SqlSugar.DbType.MySql,
|
||||
InitKeyType = InitKeyType.Attribute,//从特性读取主键和自增列信息
|
||||
IsAutoCloseConnection = true,//开启自动释放模式和EF原理一样我就不多解释了
|
||||
});
|
||||
//用来打印Sql方便调式
|
||||
Db.Aop.OnLogExecuting = (sql, pars) =>
|
||||
{
|
||||
Db.Utilities.SerializeObject(pars.ToDictionary(it => it.ParameterName, it => it.Value));
|
||||
Debug.WriteLine(sql);
|
||||
};
|
||||
return Db;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
160
BLWWS_BLL/Tools.cs
Normal file
160
BLWWS_BLL/Tools.cs
Normal file
@@ -0,0 +1,160 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Xml;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.IO;
|
||||
using RestSharp;
|
||||
|
||||
namespace BLWWS_BLL
|
||||
{
|
||||
public static class Tools
|
||||
{
|
||||
/// <summary>
|
||||
/// 验证指定的号码是否是手机号码
|
||||
/// </summary>
|
||||
/// <param name="number"></param>
|
||||
/// <returns></returns>
|
||||
public static bool IsMobileNumber(string number)
|
||||
{
|
||||
return System.Text.RegularExpressions.Regex.IsMatch(number, @"1[0-9]{10}");
|
||||
}
|
||||
/// <summary>
|
||||
/// 获取验证码
|
||||
/// </summary>
|
||||
/// <param name="length">验证码长度</param>
|
||||
/// <returns></returns>
|
||||
public static string CreateValidateCode(int length)
|
||||
{
|
||||
int[] randMembers = new int[length];
|
||||
int[] validateNums = new int[length];
|
||||
System.Text.StringBuilder validateNumberStr = new System.Text.StringBuilder();
|
||||
//生成起始序列值
|
||||
int seekSeek = unchecked((int)DateTime.Now.Ticks);
|
||||
Random seekRand = new Random(seekSeek);
|
||||
int beginSeek = (int)seekRand.Next(0, Int32.MaxValue - length * 10000);
|
||||
int[] seeks = new int[length];
|
||||
for (int i = 0; i < length; i++)
|
||||
{
|
||||
beginSeek += 10000;
|
||||
seeks[i] = beginSeek;
|
||||
}
|
||||
//生成随机数字
|
||||
for (int i = 0; i < length; i++)
|
||||
{
|
||||
Random rand = new Random(seeks[i]);
|
||||
int pownum = 1 * (int)Math.Pow(10, length);
|
||||
randMembers[i] = rand.Next(pownum, Int32.MaxValue);
|
||||
}
|
||||
//抽取随机数字
|
||||
for (int i = 0; i < length; i++)
|
||||
{
|
||||
string numStr = randMembers[i].ToString();
|
||||
int numLength = numStr.Length;
|
||||
Random rand = new Random();
|
||||
int numPosition = rand.Next(0, numLength - 1);
|
||||
validateNums[i] = Int32.Parse(numStr.Substring(numPosition, 1));
|
||||
}
|
||||
//生成验证码
|
||||
for (int i = 0; i < length; i++)
|
||||
{
|
||||
validateNumberStr.Append(validateNums[i].ToString());
|
||||
}
|
||||
return validateNumberStr.ToString();
|
||||
}
|
||||
/// <summary>
|
||||
/// post数据接口
|
||||
/// </summary>
|
||||
/// <param name="url"></param>
|
||||
/// <param name="postData"></param>
|
||||
/// <param name="method">post和put,默认post</param>
|
||||
/// <returns></returns>
|
||||
public static string PostWebRequest(string url, string postData)
|
||||
{
|
||||
string result = string.Empty;
|
||||
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
|
||||
req.ContentType = "application/json";
|
||||
req.Method = "POST";
|
||||
//req.Timeout = 10000;//设置请求超时时间,单位为毫秒
|
||||
byte[] data = Encoding.UTF8.GetBytes(postData);
|
||||
req.ContentLength = data.Length;
|
||||
using (Stream reqStream = req.GetRequestStream())
|
||||
{
|
||||
reqStream.Write(data, 0, data.Length);
|
||||
}
|
||||
HttpWebResponse resp = (HttpWebResponse)req.GetResponse();
|
||||
using (Stream stream = resp.GetResponseStream())
|
||||
{
|
||||
using (StreamReader reader = new StreamReader(stream, Encoding.UTF8))
|
||||
{
|
||||
result = reader.ReadToEnd();//获取响应内容
|
||||
}
|
||||
}
|
||||
return result;
|
||||
|
||||
}
|
||||
|
||||
|
||||
public static string PostWebRequestNew(string url, string postData)
|
||||
{
|
||||
string content = "";
|
||||
try
|
||||
{
|
||||
var client1 = new RestClient(url);
|
||||
var request1 = new RestRequest("", Method.POST);
|
||||
request1.AddJsonBody(postData);
|
||||
var Response = client1.Execute(request1).Content;
|
||||
content = Response;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogHelper.WriteLog(ex.Message);
|
||||
}
|
||||
return content;
|
||||
}
|
||||
|
||||
public static string ByteToString(byte[] bytesData)
|
||||
{
|
||||
StringBuilder result = new StringBuilder();
|
||||
foreach (byte r in bytesData)
|
||||
{
|
||||
result.Append(r.ToString("X2") + " ");
|
||||
}
|
||||
return result.ToString().Trim();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 16进制 字符串 转换成 字节 数组
|
||||
/// </summary>
|
||||
/// <param name="hexString"></param>
|
||||
/// <returns></returns>
|
||||
public static byte[] HEXString2ByteArray(string hexString)
|
||||
{
|
||||
char[] hexCharacters = hexString.ToCharArray();
|
||||
byte[] byteArray = new byte[hexCharacters.Length / 2];
|
||||
|
||||
for (int i = 0; i < byteArray.Length; i++)
|
||||
{
|
||||
string hexVal = string.Concat(hexCharacters[i * 2], hexCharacters[i * 2 + 1]);
|
||||
byteArray[i] = Convert.ToByte(hexVal, 16);
|
||||
}
|
||||
return byteArray;
|
||||
|
||||
}
|
||||
|
||||
public static long GetCurrentTimeStamp(DateTime dt)
|
||||
{
|
||||
TimeSpan ts = dt - new DateTime(1970, 1, 1, 0, 0, 0, 0, DateTimeKind.Local);
|
||||
long current_timestamp = Convert.ToInt64(ts.TotalSeconds);
|
||||
return current_timestamp;
|
||||
}
|
||||
public static DateTime GetCurrentDateTime(long timestampMilliseconds)
|
||||
{
|
||||
DateTime epoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Local);
|
||||
DateTime utcTime = epoch.AddSeconds(timestampMilliseconds);
|
||||
return utcTime;
|
||||
}
|
||||
}
|
||||
}
|
||||
28
BLWWS_BLL/Uploadinfo.cs
Normal file
28
BLWWS_BLL/Uploadinfo.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace BLWWS_BLL
|
||||
{
|
||||
public class Uploadinfo
|
||||
{
|
||||
|
||||
public string key { get; set; }
|
||||
public string code { get; set; }
|
||||
public long checkInID { get; set; }
|
||||
public int idType { get; set; }
|
||||
public string idCard { get; set; }
|
||||
|
||||
|
||||
public int sex { get; set; }
|
||||
public string name { get; set; }
|
||||
|
||||
public string birthday { get; set; }
|
||||
|
||||
public string photoUrl { get; set; }
|
||||
public string photo { get; set; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
21
BLWWS_BLL/app.config
Normal file
21
BLWWS_BLL/app.config
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<system.data>
|
||||
<DbProviderFactories>
|
||||
<remove invariant="MySql.Data.MySqlClient" />
|
||||
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.7.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
|
||||
</DbProviderFactories>
|
||||
</system.data>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="MySql.Data" publicKeyToken="c5687fc88969c44d" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-6.7.9.0" newVersion="6.7.9.0" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
</configuration>
|
||||
364
BLWWS_BLL/job_scheduling_data_2_0.xsd
Normal file
364
BLWWS_BLL/job_scheduling_data_2_0.xsd
Normal file
@@ -0,0 +1,364 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns="http://quartznet.sourceforge.net/JobSchedulingData"
|
||||
targetNamespace="http://quartznet.sourceforge.net/JobSchedulingData"
|
||||
elementFormDefault="qualified"
|
||||
version="2.0">
|
||||
|
||||
<xs:element name="job-scheduling-data">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Root level node</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence maxOccurs="unbounded">
|
||||
<xs:element name="pre-processing-commands" type="pre-processing-commandsType" minOccurs="0" maxOccurs="1">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Commands to be executed before scheduling the jobs and triggers in this file.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="processing-directives" type="processing-directivesType" minOccurs="0" maxOccurs="1">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Directives to be followed while scheduling the jobs and triggers in this file.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="schedule" minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:complexType>
|
||||
<xs:sequence maxOccurs="unbounded">
|
||||
<xs:element name="job" type="job-detailType" minOccurs="0" maxOccurs="unbounded" />
|
||||
<xs:element name="trigger" type="triggerType" minOccurs="0" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
<xs:attribute name="version" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Version of the XML Schema instance</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:complexType name="pre-processing-commandsType">
|
||||
<xs:sequence maxOccurs="unbounded">
|
||||
<xs:element name="delete-jobs-in-group" type="xs:string" minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Delete all jobs, if any, in the identified group. "*" can be used to identify all groups. Will also result in deleting all triggers related to the jobs.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="delete-triggers-in-group" type="xs:string" minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Delete all triggers, if any, in the identified group. "*" can be used to identify all groups. Will also result in deletion of related jobs that are non-durable.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="delete-job" minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Delete the identified job if it exists (will also result in deleting all triggers related to it).</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="name" type="xs:string" />
|
||||
<xs:element name="group" type="xs:string" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="delete-trigger" minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Delete the identified trigger if it exists (will also result in deletion of related jobs that are non-durable).</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="name" type="xs:string" />
|
||||
<xs:element name="group" type="xs:string" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="processing-directivesType">
|
||||
<xs:sequence>
|
||||
<xs:element name="overwrite-existing-data" type="xs:boolean" minOccurs="0" default="true">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Whether the existing scheduling data (with same identifiers) will be overwritten. If false, and ignore-duplicates is not false, and jobs or triggers with the same names already exist as those in the file, an error will occur.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="ignore-duplicates" type="xs:boolean" minOccurs="0" default="false">
|
||||
<xs:annotation>
|
||||
<xs:documentation>If true (and overwrite-existing-data is false) then any job/triggers encountered in this file that have names that already exist in the scheduler will be ignored, and no error will be produced.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="schedule-trigger-relative-to-replaced-trigger" type="xs:boolean" minOccurs="0" default="false">
|
||||
<xs:annotation>
|
||||
<xs:documentation>If true trigger's start time is calculated based on earlier run time instead of fixed value. Trigger's start time must be undefined for this to work.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="job-detailType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Define a JobDetail</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:sequence>
|
||||
<xs:element name="name" type="xs:string" />
|
||||
<xs:element name="group" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="description" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="job-type" type="xs:string" />
|
||||
<xs:sequence minOccurs="0">
|
||||
<xs:element name="durable" type="xs:boolean" />
|
||||
<xs:element name="recover" type="xs:boolean" />
|
||||
</xs:sequence>
|
||||
<xs:element name="job-data-map" type="job-data-mapType" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="job-data-mapType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Define a JobDataMap</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:sequence minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="entry" type="entryType" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="entryType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Define a JobDataMap entry</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:sequence>
|
||||
<xs:element name="key" type="xs:string" />
|
||||
<xs:element name="value" type="xs:string" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="triggerType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Define a Trigger</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:choice>
|
||||
<xs:element name="simple" type="simpleTriggerType" />
|
||||
<xs:element name="cron" type="cronTriggerType" />
|
||||
<xs:element name="calendar-interval" type="calendarIntervalTriggerType" />
|
||||
</xs:choice>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="abstractTriggerType" abstract="true">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Common Trigger definitions</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:sequence>
|
||||
<xs:element name="name" type="xs:string" />
|
||||
<xs:element name="group" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="description" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="job-name" type="xs:string" />
|
||||
<xs:element name="job-group" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="priority" type="xs:nonNegativeInteger" minOccurs="0" />
|
||||
<xs:element name="calendar-name" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="job-data-map" type="job-data-mapType" minOccurs="0" />
|
||||
<xs:sequence minOccurs="0">
|
||||
<xs:choice>
|
||||
<xs:element name="start-time" type="xs:dateTime" />
|
||||
<xs:element name="start-time-seconds-in-future" type="xs:nonNegativeInteger" />
|
||||
</xs:choice>
|
||||
<xs:element name="end-time" type="xs:dateTime" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="simpleTriggerType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Define a SimpleTrigger</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexContent>
|
||||
<xs:extension base="abstractTriggerType">
|
||||
<xs:sequence>
|
||||
<xs:element name="misfire-instruction" type="simple-trigger-misfire-instructionType" minOccurs="0" />
|
||||
<xs:sequence minOccurs="0">
|
||||
<xs:element name="repeat-count" type="repeat-countType" />
|
||||
<xs:element name="repeat-interval" type="xs:nonNegativeInteger" />
|
||||
</xs:sequence>
|
||||
</xs:sequence>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="cronTriggerType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Define a CronTrigger</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexContent>
|
||||
<xs:extension base="abstractTriggerType">
|
||||
<xs:sequence>
|
||||
<xs:element name="misfire-instruction" type="cron-trigger-misfire-instructionType" minOccurs="0" />
|
||||
<xs:element name="cron-expression" type="cron-expressionType" />
|
||||
<xs:element name="time-zone" type="xs:string" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="calendarIntervalTriggerType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Define a DateIntervalTrigger</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexContent>
|
||||
<xs:extension base="abstractTriggerType">
|
||||
<xs:sequence>
|
||||
<xs:element name="misfire-instruction" type="date-interval-trigger-misfire-instructionType" minOccurs="0" />
|
||||
<xs:element name="repeat-interval" type="xs:nonNegativeInteger" />
|
||||
<xs:element name="repeat-interval-unit" type="interval-unitType" />
|
||||
</xs:sequence>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:simpleType name="cron-expressionType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>
|
||||
Cron expression (see JavaDoc for examples)
|
||||
|
||||
Special thanks to Chris Thatcher (thatcher@butterfly.net) for the regular expression!
|
||||
|
||||
Regular expressions are not my strong point but I believe this is complete,
|
||||
with the caveat that order for expressions like 3-0 is not legal but will pass,
|
||||
and month and day names must be capitalized.
|
||||
If you want to examine the correctness look for the [\s] to denote the
|
||||
seperation of individual regular expressions. This is how I break them up visually
|
||||
to examine them:
|
||||
|
||||
SECONDS:
|
||||
(
|
||||
((([0-9]|[0-5][0-9])(-([0-9]|[0-5][0-9]))?,)*([0-9]|[0-5][0-9])(-([0-9]|[0-5][0-9]))?)
|
||||
| (([\*]|[0-9]|[0-5][0-9])/([0-9]|[0-5][0-9]))
|
||||
| ([\?])
|
||||
| ([\*])
|
||||
) [\s]
|
||||
MINUTES:
|
||||
(
|
||||
((([0-9]|[0-5][0-9])(-([0-9]|[0-5][0-9]))?,)*([0-9]|[0-5][0-9])(-([0-9]|[0-5][0-9]))?)
|
||||
| (([\*]|[0-9]|[0-5][0-9])/([0-9]|[0-5][0-9]))
|
||||
| ([\?])
|
||||
| ([\*])
|
||||
) [\s]
|
||||
HOURS:
|
||||
(
|
||||
((([0-9]|[0-1][0-9]|[2][0-3])(-([0-9]|[0-1][0-9]|[2][0-3]))?,)*([0-9]|[0-1][0-9]|[2][0-3])(-([0-9]|[0-1][0-9]|[2][0-3]))?)
|
||||
| (([\*]|[0-9]|[0-1][0-9]|[2][0-3])/([0-9]|[0-1][0-9]|[2][0-3]))
|
||||
| ([\?])
|
||||
| ([\*])
|
||||
) [\s]
|
||||
DAY OF MONTH:
|
||||
(
|
||||
((([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1])(-([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1]))?,)*([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1])(-([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1]))?(C)?)
|
||||
| (([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1])/([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1])(C)?)
|
||||
| (L(-[0-9])?)
|
||||
| (L(-[1-2][0-9])?)
|
||||
| (L(-[3][0-1])?)
|
||||
| (LW)
|
||||
| ([1-9]W)
|
||||
| ([1-3][0-9]W)
|
||||
| ([\?])
|
||||
| ([\*])
|
||||
)[\s]
|
||||
MONTH:
|
||||
(
|
||||
((([1-9]|0[1-9]|1[0-2])(-([1-9]|0[1-9]|1[0-2]))?,)*([1-9]|0[1-9]|1[0-2])(-([1-9]|0[1-9]|1[0-2]))?)
|
||||
| (([1-9]|0[1-9]|1[0-2])/([1-9]|0[1-9]|1[0-2]))
|
||||
| (((JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)(-(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC))?,)*(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)(-(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC))?)
|
||||
| ((JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)/(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC))
|
||||
| ([\?])
|
||||
| ([\*])
|
||||
)[\s]
|
||||
DAY OF WEEK:
|
||||
(
|
||||
(([1-7](-([1-7]))?,)*([1-7])(-([1-7]))?)
|
||||
| ([1-7]/([1-7]))
|
||||
| (((MON|TUE|WED|THU|FRI|SAT|SUN)(-(MON|TUE|WED|THU|FRI|SAT|SUN))?,)*(MON|TUE|WED|THU|FRI|SAT|SUN)(-(MON|TUE|WED|THU|FRI|SAT|SUN))?(C)?)
|
||||
| ((MON|TUE|WED|THU|FRI|SAT|SUN)/(MON|TUE|WED|THU|FRI|SAT|SUN)(C)?)
|
||||
| (([1-7]|(MON|TUE|WED|THU|FRI|SAT|SUN))(L|LW)?)
|
||||
| (([1-7]|MON|TUE|WED|THU|FRI|SAT|SUN)#([1-7])?)
|
||||
| ([\?])
|
||||
| ([\*])
|
||||
)
|
||||
YEAR (OPTIONAL):
|
||||
(
|
||||
[\s]?
|
||||
([\*])?
|
||||
| ((19[7-9][0-9])|(20[0-9][0-9]))?
|
||||
| (((19[7-9][0-9])|(20[0-9][0-9]))/((19[7-9][0-9])|(20[0-9][0-9])))?
|
||||
| ((((19[7-9][0-9])|(20[0-9][0-9]))(-((19[7-9][0-9])|(20[0-9][0-9])))?,)*((19[7-9][0-9])|(20[0-9][0-9]))(-((19[7-9][0-9])|(20[0-9][0-9])))?)?
|
||||
)
|
||||
</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:pattern
|
||||
value="(((([0-9]|[0-5][0-9])(-([0-9]|[0-5][0-9]))?,)*([0-9]|[0-5][0-9])(-([0-9]|[0-5][0-9]))?)|(([\*]|[0-9]|[0-5][0-9])/([0-9]|[0-5][0-9]))|([\?])|([\*]))[\s](((([0-9]|[0-5][0-9])(-([0-9]|[0-5][0-9]))?,)*([0-9]|[0-5][0-9])(-([0-9]|[0-5][0-9]))?)|(([\*]|[0-9]|[0-5][0-9])/([0-9]|[0-5][0-9]))|([\?])|([\*]))[\s](((([0-9]|[0-1][0-9]|[2][0-3])(-([0-9]|[0-1][0-9]|[2][0-3]))?,)*([0-9]|[0-1][0-9]|[2][0-3])(-([0-9]|[0-1][0-9]|[2][0-3]))?)|(([\*]|[0-9]|[0-1][0-9]|[2][0-3])/([0-9]|[0-1][0-9]|[2][0-3]))|([\?])|([\*]))[\s](((([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1])(-([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1]))?,)*([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1])(-([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1]))?(C)?)|(([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1])/([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1])(C)?)|(L(-[0-9])?)|(L(-[1-2][0-9])?)|(L(-[3][0-1])?)|(LW)|([1-9]W)|([1-3][0-9]W)|([\?])|([\*]))[\s](((([1-9]|0[1-9]|1[0-2])(-([1-9]|0[1-9]|1[0-2]))?,)*([1-9]|0[1-9]|1[0-2])(-([1-9]|0[1-9]|1[0-2]))?)|(([1-9]|0[1-9]|1[0-2])/([1-9]|0[1-9]|1[0-2]))|(((JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)(-(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC))?,)*(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)(-(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC))?)|((JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)/(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC))|([\?])|([\*]))[\s]((([1-7](-([1-7]))?,)*([1-7])(-([1-7]))?)|([1-7]/([1-7]))|(((MON|TUE|WED|THU|FRI|SAT|SUN)(-(MON|TUE|WED|THU|FRI|SAT|SUN))?,)*(MON|TUE|WED|THU|FRI|SAT|SUN)(-(MON|TUE|WED|THU|FRI|SAT|SUN))?(C)?)|((MON|TUE|WED|THU|FRI|SAT|SUN)/(MON|TUE|WED|THU|FRI|SAT|SUN)(C)?)|(([1-7]|(MON|TUE|WED|THU|FRI|SAT|SUN))?(L|LW)?)|(([1-7]|MON|TUE|WED|THU|FRI|SAT|SUN)#([1-7])?)|([\?])|([\*]))([\s]?(([\*])?|(19[7-9][0-9])|(20[0-9][0-9]))?| (((19[7-9][0-9])|(20[0-9][0-9]))/((19[7-9][0-9])|(20[0-9][0-9])))?| ((((19[7-9][0-9])|(20[0-9][0-9]))(-((19[7-9][0-9])|(20[0-9][0-9])))?,)*((19[7-9][0-9])|(20[0-9][0-9]))(-((19[7-9][0-9])|(20[0-9][0-9])))?)?)" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:simpleType name="repeat-countType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Number of times to repeat the Trigger (-1 for indefinite)</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:integer">
|
||||
<xs:minInclusive value="-1" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
|
||||
<xs:simpleType name="simple-trigger-misfire-instructionType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Simple Trigger Misfire Instructions</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:pattern value="SmartPolicy" />
|
||||
<xs:pattern value="RescheduleNextWithExistingCount" />
|
||||
<xs:pattern value="RescheduleNextWithRemainingCount" />
|
||||
<xs:pattern value="RescheduleNowWithExistingRepeatCount" />
|
||||
<xs:pattern value="RescheduleNowWithRemainingRepeatCount" />
|
||||
<xs:pattern value="FireNow" />
|
||||
<xs:pattern value="IgnoreMisfirePolicy" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:simpleType name="cron-trigger-misfire-instructionType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Cron Trigger Misfire Instructions</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:pattern value="SmartPolicy" />
|
||||
<xs:pattern value="DoNothing" />
|
||||
<xs:pattern value="FireOnceNow" />
|
||||
<xs:pattern value="IgnoreMisfirePolicy" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:simpleType name="date-interval-trigger-misfire-instructionType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Date Interval Trigger Misfire Instructions</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:pattern value="SmartPolicy" />
|
||||
<xs:pattern value="DoNothing" />
|
||||
<xs:pattern value="FireOnceNow" />
|
||||
<xs:pattern value="IgnoreMisfirePolicy" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:simpleType name="interval-unitType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Interval Units</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:pattern value="Day" />
|
||||
<xs:pattern value="Hour" />
|
||||
<xs:pattern value="Minute" />
|
||||
<xs:pattern value="Month" />
|
||||
<xs:pattern value="Second" />
|
||||
<xs:pattern value="Week" />
|
||||
<xs:pattern value="Year" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
</xs:schema>
|
||||
12
BLWWS_BLL/packages.config
Normal file
12
BLWWS_BLL/packages.config
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="Common.Logging" version="3.3.1" targetFramework="net40" />
|
||||
<package id="Common.Logging.Core" version="3.3.1" targetFramework="net40" />
|
||||
<package id="CSRedisCore" version="3.8.806" targetFramework="net40" />
|
||||
<package id="MySql.Data" version="6.7.9" targetFramework="net40" />
|
||||
<package id="Newtonsoft.Json" version="13.0.3" targetFramework="net40" />
|
||||
<package id="NLog" version="6.0.0" targetFramework="net40" />
|
||||
<package id="Quartz" version="2.6.2" targetFramework="net40" />
|
||||
<package id="sqlSugar" version="4.9.9.11" targetFramework="net40" />
|
||||
<package id="System.ValueTuple" version="4.5.0" targetFramework="net40" />
|
||||
</packages>
|
||||
22
BLWWS_BLL/pmsLog.cs
Normal file
22
BLWWS_BLL/pmsLog.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace BLWWS_BLL
|
||||
{
|
||||
public class pmsLog
|
||||
{
|
||||
public int id { get; set; }
|
||||
public int pmsid { get; set; }
|
||||
public Nullable<int> step { get; set; }
|
||||
public Nullable<int> app { get; set; }
|
||||
public Nullable<System.DateTime> Creationtime { get; set; }
|
||||
public string message { get; set; }
|
||||
public string Data { get; set; }
|
||||
public string HotelCode { get; set; }
|
||||
public string roomid { get; set; }
|
||||
public string Ip { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
79
BLW_Interface_git.sln
Normal file
79
BLW_Interface_git.sln
Normal file
@@ -0,0 +1,79 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.9.34723.18
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BLWWS", "BLWWS\BLWWS.csproj", "{3D1C2418-8F29-4D2F-B7E9-BDBCD0FE021E}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BLWWS_BLL", "BLWWS_BLL\BLWWS_BLL.csproj", "{CF2AB5DE-C3AF-4388-B6C4-EFA14BAF3316}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1\ConsoleApp1.csproj", "{CEEE2228-3250-4886-AECF-AB66211C41E6}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
{3D1C2418-8F29-4D2F-B7E9-BDBCD0FE021E} = {3D1C2418-8F29-4D2F-B7E9-BDBCD0FE021E}
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp2", "ConsoleApp2\ConsoleApp2.csproj", "{6AAB5105-5C97-4E7A-A4DC-9CF90B0F72B5}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyQianLiMa", "MyQianLiMa\MyQianLiMa.csproj", "{D7F82DA5-DC79-4308-BA3E-304287123032}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp6", "ConsoleApp6\ConsoleApp6.csproj", "{02BC4AA5-6542-4CA8-B540-C435F15392AE}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
{3D1C2418-8F29-4D2F-B7E9-BDBCD0FE021E} = {3D1C2418-8F29-4D2F-B7E9-BDBCD0FE021E}
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp7", "ConsoleApp7\ConsoleApp7.csproj", "{8F89AC96-6F8F-46A0-A443-352B295A5EA0}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HttpsTran", "HttpsTran\HttpsTran.csproj", "{BB1F703D-36E6-4C5B-9BCF-D7A6FB97C113}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PMSLogProduce", "PMSLogProduce\PMSLogProduce.csproj", "{90D966FB-EA52-4991-B85B-111D1054E4B2}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{3D1C2418-8F29-4D2F-B7E9-BDBCD0FE021E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{3D1C2418-8F29-4D2F-B7E9-BDBCD0FE021E}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{3D1C2418-8F29-4D2F-B7E9-BDBCD0FE021E}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{3D1C2418-8F29-4D2F-B7E9-BDBCD0FE021E}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{CF2AB5DE-C3AF-4388-B6C4-EFA14BAF3316}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{CF2AB5DE-C3AF-4388-B6C4-EFA14BAF3316}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{CF2AB5DE-C3AF-4388-B6C4-EFA14BAF3316}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{CF2AB5DE-C3AF-4388-B6C4-EFA14BAF3316}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{CEEE2228-3250-4886-AECF-AB66211C41E6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{CEEE2228-3250-4886-AECF-AB66211C41E6}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{CEEE2228-3250-4886-AECF-AB66211C41E6}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{CEEE2228-3250-4886-AECF-AB66211C41E6}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{6AAB5105-5C97-4E7A-A4DC-9CF90B0F72B5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{6AAB5105-5C97-4E7A-A4DC-9CF90B0F72B5}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{6AAB5105-5C97-4E7A-A4DC-9CF90B0F72B5}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{6AAB5105-5C97-4E7A-A4DC-9CF90B0F72B5}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{D7F82DA5-DC79-4308-BA3E-304287123032}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{D7F82DA5-DC79-4308-BA3E-304287123032}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{D7F82DA5-DC79-4308-BA3E-304287123032}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{D7F82DA5-DC79-4308-BA3E-304287123032}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{02BC4AA5-6542-4CA8-B540-C435F15392AE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{02BC4AA5-6542-4CA8-B540-C435F15392AE}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{02BC4AA5-6542-4CA8-B540-C435F15392AE}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{02BC4AA5-6542-4CA8-B540-C435F15392AE}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{8F89AC96-6F8F-46A0-A443-352B295A5EA0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{8F89AC96-6F8F-46A0-A443-352B295A5EA0}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{8F89AC96-6F8F-46A0-A443-352B295A5EA0}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{8F89AC96-6F8F-46A0-A443-352B295A5EA0}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{BB1F703D-36E6-4C5B-9BCF-D7A6FB97C113}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{BB1F703D-36E6-4C5B-9BCF-D7A6FB97C113}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{BB1F703D-36E6-4C5B-9BCF-D7A6FB97C113}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{BB1F703D-36E6-4C5B-9BCF-D7A6FB97C113}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{90D966FB-EA52-4991-B85B-111D1054E4B2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{90D966FB-EA52-4991-B85B-111D1054E4B2}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{90D966FB-EA52-4991-B85B-111D1054E4B2}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{90D966FB-EA52-4991-B85B-111D1054E4B2}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {A569AA4F-F1B7-4B26-BB35-02D271DBC68D}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
26
ConsoleApp1/App.config
Normal file
26
ConsoleApp1/App.config
Normal file
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
|
||||
</startup>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="MySql.Data" publicKeyToken="c5687fc88969c44d" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-6.7.9.0" newVersion="6.7.9.0" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
<system.serviceModel>
|
||||
<bindings />
|
||||
<client />
|
||||
</system.serviceModel>
|
||||
</configuration>
|
||||
103
ConsoleApp1/ConsoleApp1.csproj
Normal file
103
ConsoleApp1/ConsoleApp1.csproj
Normal file
@@ -0,0 +1,103 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{CEEE2228-3250-4886-AECF-AB66211C41E6}</ProjectGuid>
|
||||
<OutputType>Exe</OutputType>
|
||||
<RootNamespace>ConsoleApp1</RootNamespace>
|
||||
<AssemblyName>ConsoleApp1</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<Deterministic>true</Deterministic>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Microsoft.Bcl.AsyncInterfaces, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.Bcl.AsyncInterfaces.8.0.0\lib\net462\Microsoft.Bcl.AsyncInterfaces.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL" />
|
||||
<Reference Include="RestSharp">
|
||||
<HintPath>..\RestSharp\RestSharp.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Buffers, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Memory, Version=4.0.1.2, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Memory.4.5.5\lib\net461\System.Memory.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Messaging" />
|
||||
<Reference Include="System.Numerics" />
|
||||
<Reference Include="System.Numerics.Vectors, Version=4.1.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Runtime.CompilerServices.Unsafe.6.0.0\lib\net461\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Runtime.Serialization" />
|
||||
<Reference Include="System.ServiceModel" />
|
||||
<Reference Include="System.Text.Encodings.Web, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Text.Encodings.Web.8.0.0\lib\net462\System.Text.Encodings.Web.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Text.Json, Version=8.0.0.4, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Text.Json.8.0.4\lib\net462\System.Text.Json.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Threading.Tasks.Extensions, Version=4.2.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.ValueTuple, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.ValueTuple.4.5.0\lib\net47\System.ValueTuple.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Web" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<WCFMetadata Include="Connected Services\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\BLWWS_BLL\BLWWS_BLL.csproj">
|
||||
<Project>{CF2AB5DE-C3AF-4388-B6C4-EFA14BAF3316}</Project>
|
||||
<Name>BLWWS_BLL</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
441
ConsoleApp1/Program.cs
Normal file
441
ConsoleApp1/Program.cs
Normal file
@@ -0,0 +1,441 @@
|
||||
using System;
|
||||
using System.Collections.Concurrent;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Messaging;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Xml;
|
||||
using System.Xml.Linq;
|
||||
using BLWWS_BLL;
|
||||
using ConsoleApp1;
|
||||
using Newtonsoft.Json;
|
||||
using RestSharp;
|
||||
|
||||
namespace ConsoleApp1
|
||||
{
|
||||
|
||||
public class portinfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 名称
|
||||
/// </summary>
|
||||
public string LodgerNmae { get; set; }
|
||||
/// <summary>
|
||||
/// 身份证
|
||||
/// </summary>
|
||||
public string IDNumber { get; set; }
|
||||
/// <summary>
|
||||
/// 性别 0女 1男
|
||||
/// </summary>
|
||||
public Nullable<int> Sex { get; set; }
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
public Nullable<System.DateTime> CheckInDate { get; set; }
|
||||
/// <summary>
|
||||
/// 消息来源
|
||||
/// </summary>
|
||||
public int Sourcedian { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 图片
|
||||
/// </summary>
|
||||
public string picture { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
public string remark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 图片时间
|
||||
/// </summary>
|
||||
public Nullable<System.DateTime> pictureDate { get; set; }
|
||||
/// <summary>
|
||||
/// 酒店code
|
||||
/// </summary>
|
||||
public string HotelCode { get; set; }
|
||||
/// <summary>
|
||||
/// 房间号
|
||||
/// </summary>
|
||||
public string roomid { get; set; }
|
||||
/// <summary>
|
||||
/// 电话号码
|
||||
/// </summary>
|
||||
public string phonenumber { get; set; }
|
||||
/// <summary>
|
||||
/// 开房时间
|
||||
/// </summary>
|
||||
public DateTime CheckTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 退房时间
|
||||
/// </summary>
|
||||
public DateTime checkOutTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 密钥
|
||||
/// </summary>
|
||||
public string key { get; set; }
|
||||
public int pmsinfoid { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public class XMSData
|
||||
{
|
||||
public string hotelid { get; set; }
|
||||
/// <summary>
|
||||
/// 订单账号(酒店唯一)
|
||||
/// </summary>
|
||||
public string accnt { get; set; }
|
||||
|
||||
public string groupid { get; set; }
|
||||
public string name { get; set; }
|
||||
public Dictionary<string, string> original { get; set; }
|
||||
public extrasData extras { get; set; }
|
||||
}
|
||||
public class originalData
|
||||
{
|
||||
//public string name { get; set; }
|
||||
//public string mobile { get; set; }
|
||||
//public string roomno { get; set; }
|
||||
//public string type { get; set; }
|
||||
//public string rtc { get; set; }
|
||||
//public string rmnum { get; set; }
|
||||
//public string sta { get; set; }
|
||||
}
|
||||
// "arr":"1750586400000",
|
||||
// "rtc":"CPC",
|
||||
// "sta":"R",
|
||||
// "rmnum":"1",
|
||||
// "roomno":"",
|
||||
// "mobile":"1212345678",
|
||||
// "name":"李二",
|
||||
// "type":"CPC",
|
||||
// "dep":"1750651200000"
|
||||
public class extrasData
|
||||
{
|
||||
public string name { get; set; }
|
||||
public string mobile { get; set; }
|
||||
/// <summary>
|
||||
/// 房间号
|
||||
/// </summary>
|
||||
public string roomno { get; set; }
|
||||
public string type { get; set; }
|
||||
public string rtc { get; set; }
|
||||
public string rmnum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 订单状态
|
||||
///Q:问询
|
||||
///X:取消预订
|
||||
///N:noshow
|
||||
///R:预订
|
||||
///I:在住
|
||||
///O:本日结账
|
||||
///S:挂账退房
|
||||
///D:昨日结账
|
||||
///H:历史订单
|
||||
/// </summary>
|
||||
public string sta { get; set; }
|
||||
public string arr { get; set; }
|
||||
public string dep { get; set; }
|
||||
}
|
||||
internal class Program
|
||||
{
|
||||
public static long GetCurrentTimeStamp(DateTime dt)
|
||||
{
|
||||
TimeSpan ts = dt - new DateTime(1970, 1, 1, 8, 0, 0, DateTimeKind.Local);
|
||||
long current_timestamp = Convert.ToInt64(ts.TotalSeconds);
|
||||
return current_timestamp;
|
||||
}
|
||||
public class PMSDataBase
|
||||
{
|
||||
public string hotel_code { get; set; } = "";
|
||||
public string time { get; set; } = "";
|
||||
public string sign { get; set; } = "";
|
||||
public string hotel_id { get; set; } = "";
|
||||
public string order_no { get; set; } = "";
|
||||
public string room_no { get; set; } = "";
|
||||
public string check_out_original { get; set; }
|
||||
}
|
||||
static void Main(string[] args)
|
||||
{
|
||||
|
||||
var DQQQ = File.ReadAllText("1.txt");
|
||||
|
||||
|
||||
|
||||
//<items><item customer="安赞同" idcard="2110**********222X" sex="女" country="0" checkindate="2025-06-19 16:26:14" checkoutdate="2025-06-20 12:00:00"/></items>
|
||||
|
||||
XDocument doc32 = XDocument.Parse(DQQQ);
|
||||
XElement Root1 = doc32.Root;
|
||||
string orderno = Root1.Attribute("orderno")?.Value;
|
||||
string cost = Root1.Attribute("cost")?.Value;
|
||||
|
||||
//是否有早餐
|
||||
string breakfast = Root1.Attribute("breakfast")?.Value;
|
||||
//押金
|
||||
string deposit = Root1.Attribute("deposit")?.Value;
|
||||
|
||||
var LESuuu = Root1.Elements("item");
|
||||
|
||||
|
||||
|
||||
|
||||
var NNNjkl = JsonConvert.DeserializeObject<Dictionary<string, Dictionary<string, object>>>(DQQQ);
|
||||
PMSDataBase data = new PMSDataBase()
|
||||
{
|
||||
hotel_code = "2079",
|
||||
time = "1751426235",
|
||||
sign = "a68b2596ce7c1ca970e82a00626c16e3",
|
||||
hotel_id = "1101",
|
||||
order_no = "",
|
||||
room_no = "1102",
|
||||
check_out_original = ""
|
||||
};
|
||||
|
||||
string BaseURL = "https://f.blv-oa.com:8099/rcu_pms_api/v1";
|
||||
var client123 = new RestClient(BaseURL);
|
||||
var request123 = new RestRequest("/order/checkOut", Method.POST);
|
||||
request123.AddJsonBody(data);
|
||||
var Response = client123.Execute(request123).Content;
|
||||
string content12345 = Response;
|
||||
|
||||
|
||||
long lllhhh = GetCurrentTimeStamp(DateTime.Now);
|
||||
decimal DDD = Convert.ToDecimal(32432423.34343);
|
||||
decimal lll = DDD / 1024;
|
||||
decimal a = Math.Round(lll, 2);
|
||||
Console.WriteLine("aaaaaaaaaaaa");
|
||||
|
||||
string content = "";
|
||||
|
||||
|
||||
string PPP = File.ReadAllText("3.txt");
|
||||
byte[] photo = Tools.HEXString2ByteArray(PPP);
|
||||
|
||||
//分辨率 判断
|
||||
using (var ms = new MemoryStream(photo))
|
||||
{
|
||||
ms.Write(photo, 0, photo.Length);
|
||||
using (System.Drawing.Image image = System.Drawing.Image.FromStream(ms, false, false)) // 不加载图像数据
|
||||
{
|
||||
bool bf = image.RawFormat.Equals(System.Drawing.Imaging.ImageFormat.Jpeg);
|
||||
Console.WriteLine(image.Height);
|
||||
Console.WriteLine(image.Width);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
string sss111 = File.ReadAllText("3.txt");
|
||||
var OOO = JsonConvert.DeserializeObject<XMSData>(sss111);
|
||||
string Url111 = "http://pms.boonlive-rcu.com:8989";
|
||||
var client1 = new RestClient(Url111);
|
||||
//var request1 = new RestRequest("api/XMSOrderPush?xrsecret=Ip202rSR132zJGKH", Method.POST);
|
||||
var request1 = new RestRequest("api/XMSOrderPush", Method.POST);
|
||||
request1.AddQueryParameter("xrsecret", "Ip202rSR132zJGKH");
|
||||
request1.AddJsonBody(OOO);
|
||||
var response = client1.Execute(request1);
|
||||
var content111 = response.Content;
|
||||
|
||||
|
||||
|
||||
////string url = "http://face.blv-oa.com/Interface/checkinInterface?key=abc&data={"LodgerNmae":"王悦","IDNumber":"1133397752487743488","Sex":0,"picture":"http://pms.boonlive-rcu.com:89/pic/1133397752487743488_1384391.jpg","HotelCode":"2079","roomid":"1906","phonenumber":"19847388255","CheckTime":"2025-06-20 11:19:04","pmsinfoid":1905524}";
|
||||
//string url = File.ReadAllText("2.txt");
|
||||
//var NNN1= JsonConvert.DeserializeObject<portinfo>(url);
|
||||
|
||||
//return;
|
||||
//var client1 = new RestClient(url);
|
||||
//var request1 = new RestRequest(Method.POST);
|
||||
//request1.AddJsonBody(null);
|
||||
//var Response = client1.Execute(request1).Content;
|
||||
//content = Response;
|
||||
|
||||
//string result = string.Empty;
|
||||
//HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
|
||||
//req.ContentType = "application/json";
|
||||
//req.Method = "POST";
|
||||
////req.Timeout = 10000;//设置请求超时时间,单位为毫秒
|
||||
//byte[] data = Encoding.UTF8.GetBytes("");
|
||||
//req.ContentLength = data.Length;
|
||||
//using (Stream reqStream = req.GetRequestStream())
|
||||
//{
|
||||
// reqStream.Write(data, 0, data.Length);
|
||||
//}
|
||||
//HttpWebResponse resp = (HttpWebResponse)req.GetResponse();
|
||||
//using (Stream stream = resp.GetResponseStream())
|
||||
//{
|
||||
// using (StreamReader reader = new StreamReader(stream, Encoding.UTF8))
|
||||
// {
|
||||
// result = reader.ReadToEnd();//获取响应内容
|
||||
// }
|
||||
//}
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
}
|
||||
Console.ReadKey();
|
||||
|
||||
|
||||
string xmlString = File.ReadAllText("1.txt");
|
||||
XDocument doc1 = XDocument.Parse(xmlString);
|
||||
XElement Root = doc1.Root;
|
||||
string NNN = Root.Attribute("orderno")?.Value;
|
||||
|
||||
var LES = Root.Elements("item");
|
||||
foreach (var item in LES)
|
||||
{
|
||||
string customer = item.Attribute("customer").Value;
|
||||
string sex = item.Attribute("sex").Value;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//ServiceReference1.blwwsSoapClient c = new ServiceReference1.blwwsSoapClient();
|
||||
//c.Test();
|
||||
//string token = GetToken_G();
|
||||
//Console.WriteLine(token);
|
||||
//ConcurrentDictionary<string, string> GlobalData = new ConcurrentDictionary<string, string>();
|
||||
//GlobalData.AddOrUpdate("A", token, (k, v) => { return token; });
|
||||
//GlobalData.AddOrUpdate("A", token, (k, v) => { return token; });
|
||||
//GlobalData.AddOrUpdate("A", token, (k, v) => { return token; });
|
||||
//GlobalData.AddOrUpdate("A", token, (k, v) => { return token; });
|
||||
Console.ReadKey();
|
||||
}
|
||||
|
||||
static public string UserCode = "KKJK";
|
||||
static public string UserKey = "KKJK0428";
|
||||
static public string BaseUrl = "https://armitage-ipms.shijicloud.com";
|
||||
public static string GetToken_G()
|
||||
{
|
||||
Dictionary<string, string> Params = new Dictionary<string, string>();
|
||||
Params.Add("userCode", UserCode);
|
||||
Params.Add("key", UserKey);
|
||||
|
||||
var tokenstr = Send_Http_Request_Params("/iPMSAPI/iPMSApiService/api/applySecurityToken", Params);
|
||||
|
||||
Console.WriteLine(tokenstr);
|
||||
if (!string.IsNullOrEmpty(tokenstr))
|
||||
{
|
||||
var dic = JsonConvert.DeserializeObject<Dictionary<string, string>>(tokenstr);
|
||||
string token = dic["securityToken"];
|
||||
return token;
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
public static string Send_Http_Request_Params(string Url, Dictionary<string, string> Params)
|
||||
{
|
||||
var client1 = new RestClient(BaseUrl);
|
||||
var request1 = new RestRequest(Url, Method.POST);
|
||||
|
||||
foreach (KeyValuePair<string, string> item in Params)
|
||||
{
|
||||
request1.AddParameter(item.Key, item.Value);
|
||||
}
|
||||
|
||||
var response = client1.Execute(request1);
|
||||
var content = response.Content;
|
||||
return content;
|
||||
}
|
||||
|
||||
|
||||
public static string queueName2 = @".\private$\faceServerToWeb";
|
||||
public static MessageQueue mq2 = null;
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 从消息队列中读取命令,并执行
|
||||
/// </summary>
|
||||
public static void ReceiveCmdLoop()
|
||||
{
|
||||
while (true)
|
||||
{
|
||||
try
|
||||
{
|
||||
//判断队列是否存在
|
||||
if (MessageQueue.Exists(queueName2))
|
||||
{
|
||||
mq2 = new MessageQueue(queueName2);
|
||||
}
|
||||
else
|
||||
{
|
||||
//创建队列
|
||||
mq2 = MessageQueue.Create(queueName2);
|
||||
}
|
||||
//给管理员队列权力
|
||||
mq2.SetPermissions("Administrator", MessageQueueAccessRights.FullControl);
|
||||
//匿名登录
|
||||
mq2.SetPermissions("ANONYMOUS LOGON", MessageQueueAccessRights.FullControl);
|
||||
mq2.SetPermissions("Everyone", MessageQueueAccessRights.FullControl);
|
||||
|
||||
while (true)
|
||||
{
|
||||
Message msgRx = mq2.Receive();
|
||||
msgRx.Formatter = new XmlMessageFormatter(new Type[] { typeof(string) });
|
||||
|
||||
string strRx = msgRx.Body.ToString();
|
||||
|
||||
|
||||
Thread.Sleep(1300); //阻塞当前线程1秒,让其他线程运行
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Thread.Sleep(5000); //阻塞当前线程5秒,再重新启动
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 向消息队列中发送消息
|
||||
/// </summary>
|
||||
/// <param name="sendMsg">消息</param>
|
||||
/// <returns></returns>
|
||||
public static string QueueSend(string sendMsg)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (mq2 == null)
|
||||
{
|
||||
if (MessageQueue.Exists(queueName2))
|
||||
{
|
||||
mq2 = new MessageQueue(queueName2);
|
||||
}
|
||||
else
|
||||
{
|
||||
mq2 = MessageQueue.Create(queueName2);
|
||||
}
|
||||
mq2.SetPermissions("Administrator", MessageQueueAccessRights.FullControl);
|
||||
mq2.SetPermissions("ANONYMOUS LOGON", MessageQueueAccessRights.FullControl);
|
||||
mq2.SetPermissions("Everyone", MessageQueueAccessRights.FullControl);
|
||||
}
|
||||
|
||||
Message msgTx = new Message
|
||||
{
|
||||
Body = "",
|
||||
Formatter = new XmlMessageFormatter(new Type[] { typeof(string) })
|
||||
};
|
||||
mq2.Send(msgTx);
|
||||
return "Succeed push msg to MQ !";
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
mq2 = null;
|
||||
return ex.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
33
ConsoleApp1/Properties/AssemblyInfo.cs
Normal file
33
ConsoleApp1/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// 有关程序集的一般信息由以下
|
||||
// 控制。更改这些特性值可修改
|
||||
// 与程序集关联的信息。
|
||||
[assembly: AssemblyTitle("ConsoleApp1")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("ConsoleApp1")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2025")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// 将 ComVisible 设置为 false 会使此程序集中的类型
|
||||
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
|
||||
//请将此类型的 ComVisible 特性设置为 true。
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
||||
[assembly: Guid("ceee2228-3250-4886-aecf-ab66211c41e6")]
|
||||
|
||||
// 程序集的版本信息由下列四个值组成:
|
||||
//
|
||||
// 主版本
|
||||
// 次版本
|
||||
// 生成号
|
||||
// 修订号
|
||||
//
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
12
ConsoleApp1/packages.config
Normal file
12
ConsoleApp1/packages.config
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="Microsoft.Bcl.AsyncInterfaces" version="8.0.0" targetFramework="net48" />
|
||||
<package id="System.Buffers" version="4.5.1" targetFramework="net48" />
|
||||
<package id="System.Memory" version="4.5.5" targetFramework="net48" />
|
||||
<package id="System.Numerics.Vectors" version="4.5.0" targetFramework="net48" />
|
||||
<package id="System.Runtime.CompilerServices.Unsafe" version="6.0.0" targetFramework="net48" />
|
||||
<package id="System.Text.Encodings.Web" version="8.0.0" targetFramework="net48" />
|
||||
<package id="System.Text.Json" version="8.0.4" targetFramework="net48" />
|
||||
<package id="System.Threading.Tasks.Extensions" version="4.5.4" targetFramework="net48" />
|
||||
<package id="System.ValueTuple" version="4.5.0" targetFramework="net48" />
|
||||
</packages>
|
||||
22
ConsoleApp2/ConsoleApp2.csproj
Normal file
22
ConsoleApp2/ConsoleApp2.csproj
Normal file
@@ -0,0 +1,22 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.1" />
|
||||
<PackageReference Include="RabbitMQ.Client" Version="7.1.2" />
|
||||
<PackageReference Include="RestSharp" Version="112.1.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Reference Include="Newtonsoft.Json">
|
||||
<HintPath>C:\Program Files\IIS\Microsoft Web Deploy V3\Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
64
ConsoleApp2/Program.cs
Normal file
64
ConsoleApp2/Program.cs
Normal file
@@ -0,0 +1,64 @@
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.VisualBasic;
|
||||
using Newtonsoft.Json;
|
||||
using RestSharp;
|
||||
|
||||
namespace ConsoleApp2
|
||||
{
|
||||
internal class Program
|
||||
{
|
||||
public static System.Timers.Timer timer;
|
||||
static void Main(string[] args)
|
||||
{
|
||||
//ServiceCollection services = new ServiceCollection();
|
||||
//string ss0 = File.ReadAllText("1.txt");
|
||||
//string ss1 = File.ReadAllText("2.txt");
|
||||
//string n = ss0 + ss1;
|
||||
//Console.WriteLine(n);
|
||||
timer = new System.Timers.Timer();
|
||||
timer.Interval = 60000;
|
||||
//timer.Interval = 3;
|
||||
timer.Elapsed += Timer_Elapsed;
|
||||
timer.Start();
|
||||
Console.ReadLine();
|
||||
}
|
||||
|
||||
async private static void Timer_Elapsed(object? sender, System.Timers.ElapsedEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
Console.WriteLine("发送了请求");
|
||||
await Send_Http_Request_Params(BaseUrl, "/Index.aspx", Method.Get);
|
||||
await Send_Http_Request_Params(BaseUrl1, "/api/Values/HeartCallWake", Method.Post);
|
||||
|
||||
//电话机
|
||||
await Send_Http_Request_Params(BaseUrl2, "/Home/Halo", Method.Post);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
Console.WriteLine("出错了");
|
||||
}
|
||||
}
|
||||
|
||||
//千里马模拟器
|
||||
static public string BaseUrl = "http://localhost:19056";
|
||||
|
||||
//这台电脑上安装不了.net frameworkd所有不能使用
|
||||
//现在 安装在47.119电脑上
|
||||
//static public string BaseUrl1 = "http://pms.boonlive-rcu.com:19055";
|
||||
|
||||
//日志服务器
|
||||
static public string BaseUrl1 = "http://localhost:19055";
|
||||
static public string BaseUrl2 = "http://blv-rd.tech:19041";
|
||||
|
||||
public static async Task<string> Send_Http_Request_Params(string BaseUrlstr, string Url, Method M)
|
||||
{
|
||||
var client1 = new RestClient(BaseUrlstr);
|
||||
var request1 = new RestRequest(Url, M);
|
||||
|
||||
var response = await client1.ExecuteAsync(request1);
|
||||
var content = response.Content;
|
||||
return content;
|
||||
}
|
||||
}
|
||||
}
|
||||
22
ConsoleApp3/App.config
Normal file
22
ConsoleApp3/App.config
Normal file
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
|
||||
</startup>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="MySql.Data" publicKeyToken="c5687fc88969c44d" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-6.7.9.0" newVersion="6.7.9.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
</configuration>
|
||||
63
ConsoleApp3/ConsoleApp3.csproj
Normal file
63
ConsoleApp3/ConsoleApp3.csproj
Normal file
@@ -0,0 +1,63 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{2E675990-CB6E-41A7-A7EE-7FA2DAA159F6}</ProjectGuid>
|
||||
<OutputType>Exe</OutputType>
|
||||
<RootNamespace>ConsoleApp3</RootNamespace>
|
||||
<AssemblyName>ConsoleApp3</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<Deterministic>true</Deterministic>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Newtonsoft.Json.13.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\BLWWS\BLWWS.csproj">
|
||||
<Project>{3d1c2418-8f29-4d2f-b7e9-bdbcd0fe021e}</Project>
|
||||
<Name>BLWWS</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
24
ConsoleApp3/Program.cs
Normal file
24
ConsoleApp3/Program.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using BLWWS;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace ConsoleApp3
|
||||
{
|
||||
internal class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
//string nnn= File.ReadAllText("1.txt",Encoding.UTF8);
|
||||
|
||||
//var QQQ= JsonConvert.DeserializeObject<PMSEntity>(nnn);
|
||||
|
||||
//var DDD= QQQ.groupOrder.orderItems.Select(A=>A.guests).ToList();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
33
ConsoleApp3/Properties/AssemblyInfo.cs
Normal file
33
ConsoleApp3/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// 有关程序集的一般信息由以下
|
||||
// 控制。更改这些特性值可修改
|
||||
// 与程序集关联的信息。
|
||||
[assembly: AssemblyTitle("ConsoleApp3")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("ConsoleApp3")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2025")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// 将 ComVisible 设置为 false 会使此程序集中的类型
|
||||
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
|
||||
//请将此类型的 ComVisible 特性设置为 true。
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
||||
[assembly: Guid("2e675990-cb6e-41a7-a7ee-7fa2daa159f6")]
|
||||
|
||||
// 程序集的版本信息由下列四个值组成:
|
||||
//
|
||||
// 主版本
|
||||
// 次版本
|
||||
// 生成号
|
||||
// 修订号
|
||||
//
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
4
ConsoleApp3/packages.config
Normal file
4
ConsoleApp3/packages.config
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="Newtonsoft.Json" version="13.0.3" targetFramework="net48" />
|
||||
</packages>
|
||||
18
ConsoleApp4/App.config
Normal file
18
ConsoleApp4/App.config
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
|
||||
</startup>
|
||||
<system.serviceModel>
|
||||
<bindings>
|
||||
<basicHttpBinding>
|
||||
<binding name="blwwsSoap" />
|
||||
</basicHttpBinding>
|
||||
</bindings>
|
||||
<client>
|
||||
<endpoint address="http://pms.boonlive-rcu.com:89/blwws.asmx" binding="basicHttpBinding"
|
||||
bindingConfiguration="blwwsSoap" contract="ServiceReference1.blwwsSoap"
|
||||
name="blwwsSoap" />
|
||||
</client>
|
||||
</system.serviceModel>
|
||||
</configuration>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
This file is automatically generated by Visual Studio .Net. It is
|
||||
used to store generic object data source configuration information.
|
||||
Renaming the file extension or editing the content of this file may
|
||||
cause the file to be unrecognizable by the program.
|
||||
-->
|
||||
<GenericObjectDataSource DisplayName="ChangePhoneNumberResponse" Version="1.0" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<TypeInfo>ConsoleApp4.ServiceReference1.ChangePhoneNumberResponse, Connected Services.ServiceReference1.Reference.cs.dll, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null</TypeInfo>
|
||||
</GenericObjectDataSource>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
This file is automatically generated by Visual Studio .Net. It is
|
||||
used to store generic object data source configuration information.
|
||||
Renaming the file extension or editing the content of this file may
|
||||
cause the file to be unrecognizable by the program.
|
||||
-->
|
||||
<GenericObjectDataSource DisplayName="CheckIn2Response" Version="1.0" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<TypeInfo>ConsoleApp4.ServiceReference1.CheckIn2Response, Connected Services.ServiceReference1.Reference.cs.dll, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null</TypeInfo>
|
||||
</GenericObjectDataSource>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
This file is automatically generated by Visual Studio .Net. It is
|
||||
used to store generic object data source configuration information.
|
||||
Renaming the file extension or editing the content of this file may
|
||||
cause the file to be unrecognizable by the program.
|
||||
-->
|
||||
<GenericObjectDataSource DisplayName="CheckInResponse" Version="1.0" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<TypeInfo>ConsoleApp4.ServiceReference1.CheckInResponse, Connected Services.ServiceReference1.Reference.cs.dll, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null</TypeInfo>
|
||||
</GenericObjectDataSource>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
This file is automatically generated by Visual Studio .Net. It is
|
||||
used to store generic object data source configuration information.
|
||||
Renaming the file extension or editing the content of this file may
|
||||
cause the file to be unrecognizable by the program.
|
||||
-->
|
||||
<GenericObjectDataSource DisplayName="CheckOutResponse" Version="1.0" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<TypeInfo>ConsoleApp4.ServiceReference1.CheckOutResponse, Connected Services.ServiceReference1.Reference.cs.dll, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null</TypeInfo>
|
||||
</GenericObjectDataSource>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
This file is automatically generated by Visual Studio .Net. It is
|
||||
used to store generic object data source configuration information.
|
||||
Renaming the file extension or editing the content of this file may
|
||||
cause the file to be unrecognizable by the program.
|
||||
-->
|
||||
<GenericObjectDataSource DisplayName="RentRoomResponse" Version="1.0" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<TypeInfo>ConsoleApp4.ServiceReference1.RentRoomResponse, Connected Services.ServiceReference1.Reference.cs.dll, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null</TypeInfo>
|
||||
</GenericObjectDataSource>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
This file is automatically generated by Visual Studio .Net. It is
|
||||
used to store generic object data source configuration information.
|
||||
Renaming the file extension or editing the content of this file may
|
||||
cause the file to be unrecognizable by the program.
|
||||
-->
|
||||
<GenericObjectDataSource DisplayName="UploadPhotoResponse" Version="1.0" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<TypeInfo>ConsoleApp4.ServiceReference1.UploadPhotoResponse, Connected Services.ServiceReference1.Reference.cs.dll, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null</TypeInfo>
|
||||
</GenericObjectDataSource>
|
||||
879
ConsoleApp4/Connected Services/ServiceReference1/Reference.cs
Normal file
879
ConsoleApp4/Connected Services/ServiceReference1/Reference.cs
Normal file
@@ -0,0 +1,879 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace ConsoleApp4.ServiceReference1 {
|
||||
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
||||
[System.ServiceModel.ServiceContractAttribute(Namespace="http://www.blw.com/", ConfigurationName="ServiceReference1.blwwsSoap")]
|
||||
public interface blwwsSoap {
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://www.blw.com/CheckIn", ReplyAction="*")]
|
||||
ConsoleApp4.ServiceReference1.CheckInResponse CheckIn(ConsoleApp4.ServiceReference1.CheckInRequest request);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://www.blw.com/CheckIn", ReplyAction="*")]
|
||||
System.Threading.Tasks.Task<ConsoleApp4.ServiceReference1.CheckInResponse> CheckInAsync(ConsoleApp4.ServiceReference1.CheckInRequest request);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://www.blw.com/CheckIn2", ReplyAction="*")]
|
||||
ConsoleApp4.ServiceReference1.CheckIn2Response CheckIn2(ConsoleApp4.ServiceReference1.CheckIn2Request request);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://www.blw.com/CheckIn2", ReplyAction="*")]
|
||||
System.Threading.Tasks.Task<ConsoleApp4.ServiceReference1.CheckIn2Response> CheckIn2Async(ConsoleApp4.ServiceReference1.CheckIn2Request request);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://www.blw.com/UploadPhoto", ReplyAction="*")]
|
||||
ConsoleApp4.ServiceReference1.UploadPhotoResponse UploadPhoto(ConsoleApp4.ServiceReference1.UploadPhotoRequest request);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://www.blw.com/UploadPhoto", ReplyAction="*")]
|
||||
System.Threading.Tasks.Task<ConsoleApp4.ServiceReference1.UploadPhotoResponse> UploadPhotoAsync(ConsoleApp4.ServiceReference1.UploadPhotoRequest request);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://www.blw.com/ChangePhoneNumber", ReplyAction="*")]
|
||||
ConsoleApp4.ServiceReference1.ChangePhoneNumberResponse ChangePhoneNumber(ConsoleApp4.ServiceReference1.ChangePhoneNumberRequest request);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://www.blw.com/ChangePhoneNumber", ReplyAction="*")]
|
||||
System.Threading.Tasks.Task<ConsoleApp4.ServiceReference1.ChangePhoneNumberResponse> ChangePhoneNumberAsync(ConsoleApp4.ServiceReference1.ChangePhoneNumberRequest request);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://www.blw.com/CheckOut", ReplyAction="*")]
|
||||
ConsoleApp4.ServiceReference1.CheckOutResponse CheckOut(ConsoleApp4.ServiceReference1.CheckOutRequest request);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://www.blw.com/CheckOut", ReplyAction="*")]
|
||||
System.Threading.Tasks.Task<ConsoleApp4.ServiceReference1.CheckOutResponse> CheckOutAsync(ConsoleApp4.ServiceReference1.CheckOutRequest request);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://www.blw.com/RentRoom", ReplyAction="*")]
|
||||
ConsoleApp4.ServiceReference1.RentRoomResponse RentRoom(ConsoleApp4.ServiceReference1.RentRoomRequest request);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://www.blw.com/RentRoom", ReplyAction="*")]
|
||||
System.Threading.Tasks.Task<ConsoleApp4.ServiceReference1.RentRoomResponse> RentRoomAsync(ConsoleApp4.ServiceReference1.RentRoomRequest request);
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
||||
[System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
|
||||
public partial class CheckInRequest {
|
||||
|
||||
[System.ServiceModel.MessageBodyMemberAttribute(Name="CheckIn", Namespace="http://www.blw.com/", Order=0)]
|
||||
public ConsoleApp4.ServiceReference1.CheckInRequestBody Body;
|
||||
|
||||
public CheckInRequest() {
|
||||
}
|
||||
|
||||
public CheckInRequest(ConsoleApp4.ServiceReference1.CheckInRequestBody Body) {
|
||||
this.Body = Body;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
||||
[System.Runtime.Serialization.DataContractAttribute(Namespace="http://www.blw.com/")]
|
||||
public partial class CheckInRequestBody {
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
|
||||
public string key;
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=1)]
|
||||
public string code;
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=2)]
|
||||
public string roomNumber;
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(Order=3)]
|
||||
public System.DateTime checkInDate;
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=4)]
|
||||
public string xmlString;
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=5)]
|
||||
public string errorMsg;
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=6)]
|
||||
public string phoneNumber;
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=7)]
|
||||
public string idNumber;
|
||||
|
||||
public CheckInRequestBody() {
|
||||
}
|
||||
|
||||
public CheckInRequestBody(string key, string code, string roomNumber, System.DateTime checkInDate, string xmlString, string errorMsg, string phoneNumber, string idNumber) {
|
||||
this.key = key;
|
||||
this.code = code;
|
||||
this.roomNumber = roomNumber;
|
||||
this.checkInDate = checkInDate;
|
||||
this.xmlString = xmlString;
|
||||
this.errorMsg = errorMsg;
|
||||
this.phoneNumber = phoneNumber;
|
||||
this.idNumber = idNumber;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
||||
[System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
|
||||
public partial class CheckInResponse {
|
||||
|
||||
[System.ServiceModel.MessageBodyMemberAttribute(Name="CheckInResponse", Namespace="http://www.blw.com/", Order=0)]
|
||||
public ConsoleApp4.ServiceReference1.CheckInResponseBody Body;
|
||||
|
||||
public CheckInResponse() {
|
||||
}
|
||||
|
||||
public CheckInResponse(ConsoleApp4.ServiceReference1.CheckInResponseBody Body) {
|
||||
this.Body = Body;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
||||
[System.Runtime.Serialization.DataContractAttribute(Namespace="http://www.blw.com/")]
|
||||
public partial class CheckInResponseBody {
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(Order=0)]
|
||||
public bool CheckInResult;
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=1)]
|
||||
public string errorMsg;
|
||||
|
||||
public CheckInResponseBody() {
|
||||
}
|
||||
|
||||
public CheckInResponseBody(bool CheckInResult, string errorMsg) {
|
||||
this.CheckInResult = CheckInResult;
|
||||
this.errorMsg = errorMsg;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
||||
[System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
|
||||
public partial class CheckIn2Request {
|
||||
|
||||
[System.ServiceModel.MessageBodyMemberAttribute(Name="CheckIn2", Namespace="http://www.blw.com/", Order=0)]
|
||||
public ConsoleApp4.ServiceReference1.CheckIn2RequestBody Body;
|
||||
|
||||
public CheckIn2Request() {
|
||||
}
|
||||
|
||||
public CheckIn2Request(ConsoleApp4.ServiceReference1.CheckIn2RequestBody Body) {
|
||||
this.Body = Body;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
||||
[System.Runtime.Serialization.DataContractAttribute(Namespace="http://www.blw.com/")]
|
||||
public partial class CheckIn2RequestBody {
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
|
||||
public string key;
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=1)]
|
||||
public string code;
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=2)]
|
||||
public string roomNumber;
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(Order=3)]
|
||||
public System.DateTime checkInDate;
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=4)]
|
||||
public string xmlString;
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=5)]
|
||||
public string errorMsg;
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(Order=6)]
|
||||
public long checkInID;
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=7)]
|
||||
public string phoneNumber;
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=8)]
|
||||
public string idNumber;
|
||||
|
||||
public CheckIn2RequestBody() {
|
||||
}
|
||||
|
||||
public CheckIn2RequestBody(string key, string code, string roomNumber, System.DateTime checkInDate, string xmlString, string errorMsg, long checkInID, string phoneNumber, string idNumber) {
|
||||
this.key = key;
|
||||
this.code = code;
|
||||
this.roomNumber = roomNumber;
|
||||
this.checkInDate = checkInDate;
|
||||
this.xmlString = xmlString;
|
||||
this.errorMsg = errorMsg;
|
||||
this.checkInID = checkInID;
|
||||
this.phoneNumber = phoneNumber;
|
||||
this.idNumber = idNumber;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
||||
[System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
|
||||
public partial class CheckIn2Response {
|
||||
|
||||
[System.ServiceModel.MessageBodyMemberAttribute(Name="CheckIn2Response", Namespace="http://www.blw.com/", Order=0)]
|
||||
public ConsoleApp4.ServiceReference1.CheckIn2ResponseBody Body;
|
||||
|
||||
public CheckIn2Response() {
|
||||
}
|
||||
|
||||
public CheckIn2Response(ConsoleApp4.ServiceReference1.CheckIn2ResponseBody Body) {
|
||||
this.Body = Body;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
||||
[System.Runtime.Serialization.DataContractAttribute(Namespace="http://www.blw.com/")]
|
||||
public partial class CheckIn2ResponseBody {
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(Order=0)]
|
||||
public bool CheckIn2Result;
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=1)]
|
||||
public string errorMsg;
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(Order=2)]
|
||||
public long checkInID;
|
||||
|
||||
public CheckIn2ResponseBody() {
|
||||
}
|
||||
|
||||
public CheckIn2ResponseBody(bool CheckIn2Result, string errorMsg, long checkInID) {
|
||||
this.CheckIn2Result = CheckIn2Result;
|
||||
this.errorMsg = errorMsg;
|
||||
this.checkInID = checkInID;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
||||
[System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
|
||||
public partial class UploadPhotoRequest {
|
||||
|
||||
[System.ServiceModel.MessageBodyMemberAttribute(Name="UploadPhoto", Namespace="http://www.blw.com/", Order=0)]
|
||||
public ConsoleApp4.ServiceReference1.UploadPhotoRequestBody Body;
|
||||
|
||||
public UploadPhotoRequest() {
|
||||
}
|
||||
|
||||
public UploadPhotoRequest(ConsoleApp4.ServiceReference1.UploadPhotoRequestBody Body) {
|
||||
this.Body = Body;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
||||
[System.Runtime.Serialization.DataContractAttribute(Namespace="http://www.blw.com/")]
|
||||
public partial class UploadPhotoRequestBody {
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
|
||||
public string key;
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=1)]
|
||||
public string code;
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(Order=2)]
|
||||
public long checkInID;
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(Order=3)]
|
||||
public int idType;
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=4)]
|
||||
public string idCard;
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=5)]
|
||||
public string name;
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(Order=6)]
|
||||
public int sex;
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=7)]
|
||||
public string birthday;
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=8)]
|
||||
public string photoUrl;
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=9)]
|
||||
public byte[] photo;
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=10)]
|
||||
public string errorMsg;
|
||||
|
||||
public UploadPhotoRequestBody() {
|
||||
}
|
||||
|
||||
public UploadPhotoRequestBody(string key, string code, long checkInID, int idType, string idCard, string name, int sex, string birthday, string photoUrl, byte[] photo, string errorMsg) {
|
||||
this.key = key;
|
||||
this.code = code;
|
||||
this.checkInID = checkInID;
|
||||
this.idType = idType;
|
||||
this.idCard = idCard;
|
||||
this.name = name;
|
||||
this.sex = sex;
|
||||
this.birthday = birthday;
|
||||
this.photoUrl = photoUrl;
|
||||
this.photo = photo;
|
||||
this.errorMsg = errorMsg;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
||||
[System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
|
||||
public partial class UploadPhotoResponse {
|
||||
|
||||
[System.ServiceModel.MessageBodyMemberAttribute(Name="UploadPhotoResponse", Namespace="http://www.blw.com/", Order=0)]
|
||||
public ConsoleApp4.ServiceReference1.UploadPhotoResponseBody Body;
|
||||
|
||||
public UploadPhotoResponse() {
|
||||
}
|
||||
|
||||
public UploadPhotoResponse(ConsoleApp4.ServiceReference1.UploadPhotoResponseBody Body) {
|
||||
this.Body = Body;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
||||
[System.Runtime.Serialization.DataContractAttribute(Namespace="http://www.blw.com/")]
|
||||
public partial class UploadPhotoResponseBody {
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(Order=0)]
|
||||
public bool UploadPhotoResult;
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=1)]
|
||||
public string errorMsg;
|
||||
|
||||
public UploadPhotoResponseBody() {
|
||||
}
|
||||
|
||||
public UploadPhotoResponseBody(bool UploadPhotoResult, string errorMsg) {
|
||||
this.UploadPhotoResult = UploadPhotoResult;
|
||||
this.errorMsg = errorMsg;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
||||
[System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
|
||||
public partial class ChangePhoneNumberRequest {
|
||||
|
||||
[System.ServiceModel.MessageBodyMemberAttribute(Name="ChangePhoneNumber", Namespace="http://www.blw.com/", Order=0)]
|
||||
public ConsoleApp4.ServiceReference1.ChangePhoneNumberRequestBody Body;
|
||||
|
||||
public ChangePhoneNumberRequest() {
|
||||
}
|
||||
|
||||
public ChangePhoneNumberRequest(ConsoleApp4.ServiceReference1.ChangePhoneNumberRequestBody Body) {
|
||||
this.Body = Body;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
||||
[System.Runtime.Serialization.DataContractAttribute(Namespace="http://www.blw.com/")]
|
||||
public partial class ChangePhoneNumberRequestBody {
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
|
||||
public string key;
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=1)]
|
||||
public string code;
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=2)]
|
||||
public string roomNumber;
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=3)]
|
||||
public string phoneNumber;
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=4)]
|
||||
public string idNumber;
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=5)]
|
||||
public string errorMsg;
|
||||
|
||||
public ChangePhoneNumberRequestBody() {
|
||||
}
|
||||
|
||||
public ChangePhoneNumberRequestBody(string key, string code, string roomNumber, string phoneNumber, string idNumber, string errorMsg) {
|
||||
this.key = key;
|
||||
this.code = code;
|
||||
this.roomNumber = roomNumber;
|
||||
this.phoneNumber = phoneNumber;
|
||||
this.idNumber = idNumber;
|
||||
this.errorMsg = errorMsg;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
||||
[System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
|
||||
public partial class ChangePhoneNumberResponse {
|
||||
|
||||
[System.ServiceModel.MessageBodyMemberAttribute(Name="ChangePhoneNumberResponse", Namespace="http://www.blw.com/", Order=0)]
|
||||
public ConsoleApp4.ServiceReference1.ChangePhoneNumberResponseBody Body;
|
||||
|
||||
public ChangePhoneNumberResponse() {
|
||||
}
|
||||
|
||||
public ChangePhoneNumberResponse(ConsoleApp4.ServiceReference1.ChangePhoneNumberResponseBody Body) {
|
||||
this.Body = Body;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
||||
[System.Runtime.Serialization.DataContractAttribute(Namespace="http://www.blw.com/")]
|
||||
public partial class ChangePhoneNumberResponseBody {
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(Order=0)]
|
||||
public bool ChangePhoneNumberResult;
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=1)]
|
||||
public string errorMsg;
|
||||
|
||||
public ChangePhoneNumberResponseBody() {
|
||||
}
|
||||
|
||||
public ChangePhoneNumberResponseBody(bool ChangePhoneNumberResult, string errorMsg) {
|
||||
this.ChangePhoneNumberResult = ChangePhoneNumberResult;
|
||||
this.errorMsg = errorMsg;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
||||
[System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
|
||||
public partial class CheckOutRequest {
|
||||
|
||||
[System.ServiceModel.MessageBodyMemberAttribute(Name="CheckOut", Namespace="http://www.blw.com/", Order=0)]
|
||||
public ConsoleApp4.ServiceReference1.CheckOutRequestBody Body;
|
||||
|
||||
public CheckOutRequest() {
|
||||
}
|
||||
|
||||
public CheckOutRequest(ConsoleApp4.ServiceReference1.CheckOutRequestBody Body) {
|
||||
this.Body = Body;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
||||
[System.Runtime.Serialization.DataContractAttribute(Namespace="http://www.blw.com/")]
|
||||
public partial class CheckOutRequestBody {
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
|
||||
public string key;
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=1)]
|
||||
public string code;
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=2)]
|
||||
public string roomNumber;
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(Order=3)]
|
||||
public System.DateTime checkOutDate;
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=4)]
|
||||
public string errorMsg;
|
||||
|
||||
public CheckOutRequestBody() {
|
||||
}
|
||||
|
||||
public CheckOutRequestBody(string key, string code, string roomNumber, System.DateTime checkOutDate, string errorMsg) {
|
||||
this.key = key;
|
||||
this.code = code;
|
||||
this.roomNumber = roomNumber;
|
||||
this.checkOutDate = checkOutDate;
|
||||
this.errorMsg = errorMsg;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
||||
[System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
|
||||
public partial class CheckOutResponse {
|
||||
|
||||
[System.ServiceModel.MessageBodyMemberAttribute(Name="CheckOutResponse", Namespace="http://www.blw.com/", Order=0)]
|
||||
public ConsoleApp4.ServiceReference1.CheckOutResponseBody Body;
|
||||
|
||||
public CheckOutResponse() {
|
||||
}
|
||||
|
||||
public CheckOutResponse(ConsoleApp4.ServiceReference1.CheckOutResponseBody Body) {
|
||||
this.Body = Body;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
||||
[System.Runtime.Serialization.DataContractAttribute(Namespace="http://www.blw.com/")]
|
||||
public partial class CheckOutResponseBody {
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(Order=0)]
|
||||
public bool CheckOutResult;
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=1)]
|
||||
public string errorMsg;
|
||||
|
||||
public CheckOutResponseBody() {
|
||||
}
|
||||
|
||||
public CheckOutResponseBody(bool CheckOutResult, string errorMsg) {
|
||||
this.CheckOutResult = CheckOutResult;
|
||||
this.errorMsg = errorMsg;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
||||
[System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
|
||||
public partial class RentRoomRequest {
|
||||
|
||||
[System.ServiceModel.MessageBodyMemberAttribute(Name="RentRoom", Namespace="http://www.blw.com/", Order=0)]
|
||||
public ConsoleApp4.ServiceReference1.RentRoomRequestBody Body;
|
||||
|
||||
public RentRoomRequest() {
|
||||
}
|
||||
|
||||
public RentRoomRequest(ConsoleApp4.ServiceReference1.RentRoomRequestBody Body) {
|
||||
this.Body = Body;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
||||
[System.Runtime.Serialization.DataContractAttribute(Namespace="http://www.blw.com/")]
|
||||
public partial class RentRoomRequestBody {
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
|
||||
public string key;
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=1)]
|
||||
public string code;
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=2)]
|
||||
public string roomNumber;
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(Order=3)]
|
||||
public System.DateTime rentDate;
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=4)]
|
||||
public string errorMsg;
|
||||
|
||||
public RentRoomRequestBody() {
|
||||
}
|
||||
|
||||
public RentRoomRequestBody(string key, string code, string roomNumber, System.DateTime rentDate, string errorMsg) {
|
||||
this.key = key;
|
||||
this.code = code;
|
||||
this.roomNumber = roomNumber;
|
||||
this.rentDate = rentDate;
|
||||
this.errorMsg = errorMsg;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
||||
[System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
|
||||
public partial class RentRoomResponse {
|
||||
|
||||
[System.ServiceModel.MessageBodyMemberAttribute(Name="RentRoomResponse", Namespace="http://www.blw.com/", Order=0)]
|
||||
public ConsoleApp4.ServiceReference1.RentRoomResponseBody Body;
|
||||
|
||||
public RentRoomResponse() {
|
||||
}
|
||||
|
||||
public RentRoomResponse(ConsoleApp4.ServiceReference1.RentRoomResponseBody Body) {
|
||||
this.Body = Body;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
||||
[System.Runtime.Serialization.DataContractAttribute(Namespace="http://www.blw.com/")]
|
||||
public partial class RentRoomResponseBody {
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(Order=0)]
|
||||
public bool RentRoomResult;
|
||||
|
||||
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=1)]
|
||||
public string errorMsg;
|
||||
|
||||
public RentRoomResponseBody() {
|
||||
}
|
||||
|
||||
public RentRoomResponseBody(bool RentRoomResult, string errorMsg) {
|
||||
this.RentRoomResult = RentRoomResult;
|
||||
this.errorMsg = errorMsg;
|
||||
}
|
||||
}
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
||||
public interface blwwsSoapChannel : ConsoleApp4.ServiceReference1.blwwsSoap, System.ServiceModel.IClientChannel {
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
||||
public partial class blwwsSoapClient : System.ServiceModel.ClientBase<ConsoleApp4.ServiceReference1.blwwsSoap>, ConsoleApp4.ServiceReference1.blwwsSoap {
|
||||
|
||||
public blwwsSoapClient() {
|
||||
}
|
||||
|
||||
public blwwsSoapClient(string endpointConfigurationName) :
|
||||
base(endpointConfigurationName) {
|
||||
}
|
||||
|
||||
public blwwsSoapClient(string endpointConfigurationName, string remoteAddress) :
|
||||
base(endpointConfigurationName, remoteAddress) {
|
||||
}
|
||||
|
||||
public blwwsSoapClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) :
|
||||
base(endpointConfigurationName, remoteAddress) {
|
||||
}
|
||||
|
||||
public blwwsSoapClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
|
||||
base(binding, remoteAddress) {
|
||||
}
|
||||
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
ConsoleApp4.ServiceReference1.CheckInResponse ConsoleApp4.ServiceReference1.blwwsSoap.CheckIn(ConsoleApp4.ServiceReference1.CheckInRequest request) {
|
||||
return base.Channel.CheckIn(request);
|
||||
}
|
||||
|
||||
public bool CheckIn(string key, string code, string roomNumber, System.DateTime checkInDate, string xmlString, ref string errorMsg, string phoneNumber, string idNumber) {
|
||||
ConsoleApp4.ServiceReference1.CheckInRequest inValue = new ConsoleApp4.ServiceReference1.CheckInRequest();
|
||||
inValue.Body = new ConsoleApp4.ServiceReference1.CheckInRequestBody();
|
||||
inValue.Body.key = key;
|
||||
inValue.Body.code = code;
|
||||
inValue.Body.roomNumber = roomNumber;
|
||||
inValue.Body.checkInDate = checkInDate;
|
||||
inValue.Body.xmlString = xmlString;
|
||||
inValue.Body.errorMsg = errorMsg;
|
||||
inValue.Body.phoneNumber = phoneNumber;
|
||||
inValue.Body.idNumber = idNumber;
|
||||
ConsoleApp4.ServiceReference1.CheckInResponse retVal = ((ConsoleApp4.ServiceReference1.blwwsSoap)(this)).CheckIn(inValue);
|
||||
errorMsg = retVal.Body.errorMsg;
|
||||
return retVal.Body.CheckInResult;
|
||||
}
|
||||
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
System.Threading.Tasks.Task<ConsoleApp4.ServiceReference1.CheckInResponse> ConsoleApp4.ServiceReference1.blwwsSoap.CheckInAsync(ConsoleApp4.ServiceReference1.CheckInRequest request) {
|
||||
return base.Channel.CheckInAsync(request);
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<ConsoleApp4.ServiceReference1.CheckInResponse> CheckInAsync(string key, string code, string roomNumber, System.DateTime checkInDate, string xmlString, string errorMsg, string phoneNumber, string idNumber) {
|
||||
ConsoleApp4.ServiceReference1.CheckInRequest inValue = new ConsoleApp4.ServiceReference1.CheckInRequest();
|
||||
inValue.Body = new ConsoleApp4.ServiceReference1.CheckInRequestBody();
|
||||
inValue.Body.key = key;
|
||||
inValue.Body.code = code;
|
||||
inValue.Body.roomNumber = roomNumber;
|
||||
inValue.Body.checkInDate = checkInDate;
|
||||
inValue.Body.xmlString = xmlString;
|
||||
inValue.Body.errorMsg = errorMsg;
|
||||
inValue.Body.phoneNumber = phoneNumber;
|
||||
inValue.Body.idNumber = idNumber;
|
||||
return ((ConsoleApp4.ServiceReference1.blwwsSoap)(this)).CheckInAsync(inValue);
|
||||
}
|
||||
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
ConsoleApp4.ServiceReference1.CheckIn2Response ConsoleApp4.ServiceReference1.blwwsSoap.CheckIn2(ConsoleApp4.ServiceReference1.CheckIn2Request request) {
|
||||
return base.Channel.CheckIn2(request);
|
||||
}
|
||||
|
||||
public bool CheckIn2(string key, string code, string roomNumber, System.DateTime checkInDate, string xmlString, ref string errorMsg, ref long checkInID, string phoneNumber, string idNumber) {
|
||||
ConsoleApp4.ServiceReference1.CheckIn2Request inValue = new ConsoleApp4.ServiceReference1.CheckIn2Request();
|
||||
inValue.Body = new ConsoleApp4.ServiceReference1.CheckIn2RequestBody();
|
||||
inValue.Body.key = key;
|
||||
inValue.Body.code = code;
|
||||
inValue.Body.roomNumber = roomNumber;
|
||||
inValue.Body.checkInDate = checkInDate;
|
||||
inValue.Body.xmlString = xmlString;
|
||||
inValue.Body.errorMsg = errorMsg;
|
||||
inValue.Body.checkInID = checkInID;
|
||||
inValue.Body.phoneNumber = phoneNumber;
|
||||
inValue.Body.idNumber = idNumber;
|
||||
ConsoleApp4.ServiceReference1.CheckIn2Response retVal = ((ConsoleApp4.ServiceReference1.blwwsSoap)(this)).CheckIn2(inValue);
|
||||
errorMsg = retVal.Body.errorMsg;
|
||||
checkInID = retVal.Body.checkInID;
|
||||
return retVal.Body.CheckIn2Result;
|
||||
}
|
||||
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
System.Threading.Tasks.Task<ConsoleApp4.ServiceReference1.CheckIn2Response> ConsoleApp4.ServiceReference1.blwwsSoap.CheckIn2Async(ConsoleApp4.ServiceReference1.CheckIn2Request request) {
|
||||
return base.Channel.CheckIn2Async(request);
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<ConsoleApp4.ServiceReference1.CheckIn2Response> CheckIn2Async(string key, string code, string roomNumber, System.DateTime checkInDate, string xmlString, string errorMsg, long checkInID, string phoneNumber, string idNumber) {
|
||||
ConsoleApp4.ServiceReference1.CheckIn2Request inValue = new ConsoleApp4.ServiceReference1.CheckIn2Request();
|
||||
inValue.Body = new ConsoleApp4.ServiceReference1.CheckIn2RequestBody();
|
||||
inValue.Body.key = key;
|
||||
inValue.Body.code = code;
|
||||
inValue.Body.roomNumber = roomNumber;
|
||||
inValue.Body.checkInDate = checkInDate;
|
||||
inValue.Body.xmlString = xmlString;
|
||||
inValue.Body.errorMsg = errorMsg;
|
||||
inValue.Body.checkInID = checkInID;
|
||||
inValue.Body.phoneNumber = phoneNumber;
|
||||
inValue.Body.idNumber = idNumber;
|
||||
return ((ConsoleApp4.ServiceReference1.blwwsSoap)(this)).CheckIn2Async(inValue);
|
||||
}
|
||||
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
ConsoleApp4.ServiceReference1.UploadPhotoResponse ConsoleApp4.ServiceReference1.blwwsSoap.UploadPhoto(ConsoleApp4.ServiceReference1.UploadPhotoRequest request) {
|
||||
return base.Channel.UploadPhoto(request);
|
||||
}
|
||||
|
||||
public bool UploadPhoto(string key, string code, long checkInID, int idType, string idCard, string name, int sex, string birthday, string photoUrl, byte[] photo, ref string errorMsg) {
|
||||
ConsoleApp4.ServiceReference1.UploadPhotoRequest inValue = new ConsoleApp4.ServiceReference1.UploadPhotoRequest();
|
||||
inValue.Body = new ConsoleApp4.ServiceReference1.UploadPhotoRequestBody();
|
||||
inValue.Body.key = key;
|
||||
inValue.Body.code = code;
|
||||
inValue.Body.checkInID = checkInID;
|
||||
inValue.Body.idType = idType;
|
||||
inValue.Body.idCard = idCard;
|
||||
inValue.Body.name = name;
|
||||
inValue.Body.sex = sex;
|
||||
inValue.Body.birthday = birthday;
|
||||
inValue.Body.photoUrl = photoUrl;
|
||||
inValue.Body.photo = photo;
|
||||
inValue.Body.errorMsg = errorMsg;
|
||||
ConsoleApp4.ServiceReference1.UploadPhotoResponse retVal = ((ConsoleApp4.ServiceReference1.blwwsSoap)(this)).UploadPhoto(inValue);
|
||||
errorMsg = retVal.Body.errorMsg;
|
||||
return retVal.Body.UploadPhotoResult;
|
||||
}
|
||||
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
System.Threading.Tasks.Task<ConsoleApp4.ServiceReference1.UploadPhotoResponse> ConsoleApp4.ServiceReference1.blwwsSoap.UploadPhotoAsync(ConsoleApp4.ServiceReference1.UploadPhotoRequest request) {
|
||||
return base.Channel.UploadPhotoAsync(request);
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<ConsoleApp4.ServiceReference1.UploadPhotoResponse> UploadPhotoAsync(string key, string code, long checkInID, int idType, string idCard, string name, int sex, string birthday, string photoUrl, byte[] photo, string errorMsg) {
|
||||
ConsoleApp4.ServiceReference1.UploadPhotoRequest inValue = new ConsoleApp4.ServiceReference1.UploadPhotoRequest();
|
||||
inValue.Body = new ConsoleApp4.ServiceReference1.UploadPhotoRequestBody();
|
||||
inValue.Body.key = key;
|
||||
inValue.Body.code = code;
|
||||
inValue.Body.checkInID = checkInID;
|
||||
inValue.Body.idType = idType;
|
||||
inValue.Body.idCard = idCard;
|
||||
inValue.Body.name = name;
|
||||
inValue.Body.sex = sex;
|
||||
inValue.Body.birthday = birthday;
|
||||
inValue.Body.photoUrl = photoUrl;
|
||||
inValue.Body.photo = photo;
|
||||
inValue.Body.errorMsg = errorMsg;
|
||||
return ((ConsoleApp4.ServiceReference1.blwwsSoap)(this)).UploadPhotoAsync(inValue);
|
||||
}
|
||||
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
ConsoleApp4.ServiceReference1.ChangePhoneNumberResponse ConsoleApp4.ServiceReference1.blwwsSoap.ChangePhoneNumber(ConsoleApp4.ServiceReference1.ChangePhoneNumberRequest request) {
|
||||
return base.Channel.ChangePhoneNumber(request);
|
||||
}
|
||||
|
||||
public bool ChangePhoneNumber(string key, string code, string roomNumber, string phoneNumber, string idNumber, ref string errorMsg) {
|
||||
ConsoleApp4.ServiceReference1.ChangePhoneNumberRequest inValue = new ConsoleApp4.ServiceReference1.ChangePhoneNumberRequest();
|
||||
inValue.Body = new ConsoleApp4.ServiceReference1.ChangePhoneNumberRequestBody();
|
||||
inValue.Body.key = key;
|
||||
inValue.Body.code = code;
|
||||
inValue.Body.roomNumber = roomNumber;
|
||||
inValue.Body.phoneNumber = phoneNumber;
|
||||
inValue.Body.idNumber = idNumber;
|
||||
inValue.Body.errorMsg = errorMsg;
|
||||
ConsoleApp4.ServiceReference1.ChangePhoneNumberResponse retVal = ((ConsoleApp4.ServiceReference1.blwwsSoap)(this)).ChangePhoneNumber(inValue);
|
||||
errorMsg = retVal.Body.errorMsg;
|
||||
return retVal.Body.ChangePhoneNumberResult;
|
||||
}
|
||||
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
System.Threading.Tasks.Task<ConsoleApp4.ServiceReference1.ChangePhoneNumberResponse> ConsoleApp4.ServiceReference1.blwwsSoap.ChangePhoneNumberAsync(ConsoleApp4.ServiceReference1.ChangePhoneNumberRequest request) {
|
||||
return base.Channel.ChangePhoneNumberAsync(request);
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<ConsoleApp4.ServiceReference1.ChangePhoneNumberResponse> ChangePhoneNumberAsync(string key, string code, string roomNumber, string phoneNumber, string idNumber, string errorMsg) {
|
||||
ConsoleApp4.ServiceReference1.ChangePhoneNumberRequest inValue = new ConsoleApp4.ServiceReference1.ChangePhoneNumberRequest();
|
||||
inValue.Body = new ConsoleApp4.ServiceReference1.ChangePhoneNumberRequestBody();
|
||||
inValue.Body.key = key;
|
||||
inValue.Body.code = code;
|
||||
inValue.Body.roomNumber = roomNumber;
|
||||
inValue.Body.phoneNumber = phoneNumber;
|
||||
inValue.Body.idNumber = idNumber;
|
||||
inValue.Body.errorMsg = errorMsg;
|
||||
return ((ConsoleApp4.ServiceReference1.blwwsSoap)(this)).ChangePhoneNumberAsync(inValue);
|
||||
}
|
||||
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
ConsoleApp4.ServiceReference1.CheckOutResponse ConsoleApp4.ServiceReference1.blwwsSoap.CheckOut(ConsoleApp4.ServiceReference1.CheckOutRequest request) {
|
||||
return base.Channel.CheckOut(request);
|
||||
}
|
||||
|
||||
public bool CheckOut(string key, string code, string roomNumber, System.DateTime checkOutDate, ref string errorMsg) {
|
||||
ConsoleApp4.ServiceReference1.CheckOutRequest inValue = new ConsoleApp4.ServiceReference1.CheckOutRequest();
|
||||
inValue.Body = new ConsoleApp4.ServiceReference1.CheckOutRequestBody();
|
||||
inValue.Body.key = key;
|
||||
inValue.Body.code = code;
|
||||
inValue.Body.roomNumber = roomNumber;
|
||||
inValue.Body.checkOutDate = checkOutDate;
|
||||
inValue.Body.errorMsg = errorMsg;
|
||||
ConsoleApp4.ServiceReference1.CheckOutResponse retVal = ((ConsoleApp4.ServiceReference1.blwwsSoap)(this)).CheckOut(inValue);
|
||||
errorMsg = retVal.Body.errorMsg;
|
||||
return retVal.Body.CheckOutResult;
|
||||
}
|
||||
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
System.Threading.Tasks.Task<ConsoleApp4.ServiceReference1.CheckOutResponse> ConsoleApp4.ServiceReference1.blwwsSoap.CheckOutAsync(ConsoleApp4.ServiceReference1.CheckOutRequest request) {
|
||||
return base.Channel.CheckOutAsync(request);
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<ConsoleApp4.ServiceReference1.CheckOutResponse> CheckOutAsync(string key, string code, string roomNumber, System.DateTime checkOutDate, string errorMsg) {
|
||||
ConsoleApp4.ServiceReference1.CheckOutRequest inValue = new ConsoleApp4.ServiceReference1.CheckOutRequest();
|
||||
inValue.Body = new ConsoleApp4.ServiceReference1.CheckOutRequestBody();
|
||||
inValue.Body.key = key;
|
||||
inValue.Body.code = code;
|
||||
inValue.Body.roomNumber = roomNumber;
|
||||
inValue.Body.checkOutDate = checkOutDate;
|
||||
inValue.Body.errorMsg = errorMsg;
|
||||
return ((ConsoleApp4.ServiceReference1.blwwsSoap)(this)).CheckOutAsync(inValue);
|
||||
}
|
||||
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
ConsoleApp4.ServiceReference1.RentRoomResponse ConsoleApp4.ServiceReference1.blwwsSoap.RentRoom(ConsoleApp4.ServiceReference1.RentRoomRequest request) {
|
||||
return base.Channel.RentRoom(request);
|
||||
}
|
||||
|
||||
public bool RentRoom(string key, string code, string roomNumber, System.DateTime rentDate, ref string errorMsg) {
|
||||
ConsoleApp4.ServiceReference1.RentRoomRequest inValue = new ConsoleApp4.ServiceReference1.RentRoomRequest();
|
||||
inValue.Body = new ConsoleApp4.ServiceReference1.RentRoomRequestBody();
|
||||
inValue.Body.key = key;
|
||||
inValue.Body.code = code;
|
||||
inValue.Body.roomNumber = roomNumber;
|
||||
inValue.Body.rentDate = rentDate;
|
||||
inValue.Body.errorMsg = errorMsg;
|
||||
ConsoleApp4.ServiceReference1.RentRoomResponse retVal = ((ConsoleApp4.ServiceReference1.blwwsSoap)(this)).RentRoom(inValue);
|
||||
errorMsg = retVal.Body.errorMsg;
|
||||
return retVal.Body.RentRoomResult;
|
||||
}
|
||||
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
System.Threading.Tasks.Task<ConsoleApp4.ServiceReference1.RentRoomResponse> ConsoleApp4.ServiceReference1.blwwsSoap.RentRoomAsync(ConsoleApp4.ServiceReference1.RentRoomRequest request) {
|
||||
return base.Channel.RentRoomAsync(request);
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<ConsoleApp4.ServiceReference1.RentRoomResponse> RentRoomAsync(string key, string code, string roomNumber, System.DateTime rentDate, string errorMsg) {
|
||||
ConsoleApp4.ServiceReference1.RentRoomRequest inValue = new ConsoleApp4.ServiceReference1.RentRoomRequest();
|
||||
inValue.Body = new ConsoleApp4.ServiceReference1.RentRoomRequestBody();
|
||||
inValue.Body.key = key;
|
||||
inValue.Body.code = code;
|
||||
inValue.Body.roomNumber = roomNumber;
|
||||
inValue.Body.rentDate = rentDate;
|
||||
inValue.Body.errorMsg = errorMsg;
|
||||
return ((ConsoleApp4.ServiceReference1.blwwsSoap)(this)).RentRoomAsync(inValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ReferenceGroup xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ID="3ec4ca85-01a2-4bb6-94ea-fd878596b746" xmlns="urn:schemas-microsoft-com:xml-wcfservicemap">
|
||||
<ClientOptions>
|
||||
<GenerateAsynchronousMethods>false</GenerateAsynchronousMethods>
|
||||
<GenerateTaskBasedAsynchronousMethod>true</GenerateTaskBasedAsynchronousMethod>
|
||||
<EnableDataBinding>true</EnableDataBinding>
|
||||
<ExcludedTypes />
|
||||
<ImportXmlTypes>false</ImportXmlTypes>
|
||||
<GenerateInternalTypes>false</GenerateInternalTypes>
|
||||
<GenerateMessageContracts>false</GenerateMessageContracts>
|
||||
<NamespaceMappings />
|
||||
<CollectionMappings />
|
||||
<GenerateSerializableTypes>true</GenerateSerializableTypes>
|
||||
<Serializer>Auto</Serializer>
|
||||
<UseSerializerForFaults>true</UseSerializerForFaults>
|
||||
<ReferenceAllAssemblies>true</ReferenceAllAssemblies>
|
||||
<ReferencedAssemblies />
|
||||
<ReferencedDataContractTypes />
|
||||
<ServiceContractMappings />
|
||||
</ClientOptions>
|
||||
<MetadataSources>
|
||||
<MetadataSource Address="http://localhost:22346/blwws.asmx" Protocol="http" SourceId="1" />
|
||||
</MetadataSources>
|
||||
<Metadata>
|
||||
<MetadataFile FileName="blwws.wsdl" MetadataType="Wsdl" ID="ad433560-a407-4b6b-b90f-22731208e1d7" SourceId="1" SourceUrl="http://localhost:22346/blwws.asmx?wsdl" />
|
||||
<MetadataFile FileName="blwws.disco" MetadataType="Disco" ID="55591cff-a1b8-4055-83e4-6a4ada79e609" SourceId="1" SourceUrl="http://localhost:22346/blwws.asmx?disco" />
|
||||
</Metadata>
|
||||
<Extensions>
|
||||
<ExtensionFile FileName="configuration91.svcinfo" Name="configuration91.svcinfo" />
|
||||
<ExtensionFile FileName="configuration.svcinfo" Name="configuration.svcinfo" />
|
||||
</Extensions>
|
||||
</ReferenceGroup>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<discovery xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.xmlsoap.org/disco/">
|
||||
<contractRef ref="http://localhost:22346/blwws.asmx?wsdl" docRef="http://localhost:22346/blwws.asmx" xmlns="http://schemas.xmlsoap.org/disco/scl/" />
|
||||
<soap address="http://localhost:22346/blwws.asmx" xmlns:q1="http://www.blw.com/" binding="q1:blwwsSoap" xmlns="http://schemas.xmlsoap.org/disco/soap/" />
|
||||
<soap address="http://localhost:22346/blwws.asmx" xmlns:q2="http://www.blw.com/" binding="q2:blwwsSoap12" xmlns="http://schemas.xmlsoap.org/disco/soap/" />
|
||||
</discovery>
|
||||
326
ConsoleApp4/Connected Services/ServiceReference1/blwws.wsdl
Normal file
326
ConsoleApp4/Connected Services/ServiceReference1/blwws.wsdl
Normal file
@@ -0,0 +1,326 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<wsdl:definitions xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:tns="http://www.blw.com/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" targetNamespace="http://www.blw.com/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
|
||||
<wsdl:types>
|
||||
<s:schema elementFormDefault="qualified" targetNamespace="http://www.blw.com/">
|
||||
<s:element name="CheckIn">
|
||||
<s:complexType>
|
||||
<s:sequence>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="key" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="code" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="roomNumber" type="s:string" />
|
||||
<s:element minOccurs="1" maxOccurs="1" name="checkInDate" type="s:dateTime" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="xmlString" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="errorMsg" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="phoneNumber" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="idNumber" type="s:string" />
|
||||
</s:sequence>
|
||||
</s:complexType>
|
||||
</s:element>
|
||||
<s:element name="CheckInResponse">
|
||||
<s:complexType>
|
||||
<s:sequence>
|
||||
<s:element minOccurs="1" maxOccurs="1" name="CheckInResult" type="s:boolean" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="errorMsg" type="s:string" />
|
||||
</s:sequence>
|
||||
</s:complexType>
|
||||
</s:element>
|
||||
<s:element name="CheckIn2">
|
||||
<s:complexType>
|
||||
<s:sequence>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="key" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="code" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="roomNumber" type="s:string" />
|
||||
<s:element minOccurs="1" maxOccurs="1" name="checkInDate" type="s:dateTime" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="xmlString" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="errorMsg" type="s:string" />
|
||||
<s:element minOccurs="1" maxOccurs="1" name="checkInID" type="s:long" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="phoneNumber" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="idNumber" type="s:string" />
|
||||
</s:sequence>
|
||||
</s:complexType>
|
||||
</s:element>
|
||||
<s:element name="CheckIn2Response">
|
||||
<s:complexType>
|
||||
<s:sequence>
|
||||
<s:element minOccurs="1" maxOccurs="1" name="CheckIn2Result" type="s:boolean" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="errorMsg" type="s:string" />
|
||||
<s:element minOccurs="1" maxOccurs="1" name="checkInID" type="s:long" />
|
||||
</s:sequence>
|
||||
</s:complexType>
|
||||
</s:element>
|
||||
<s:element name="UploadPhoto">
|
||||
<s:complexType>
|
||||
<s:sequence>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="key" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="code" type="s:string" />
|
||||
<s:element minOccurs="1" maxOccurs="1" name="checkInID" type="s:long" />
|
||||
<s:element minOccurs="1" maxOccurs="1" name="idType" type="s:int" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="idCard" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="name" type="s:string" />
|
||||
<s:element minOccurs="1" maxOccurs="1" name="sex" type="s:int" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="birthday" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="photoUrl" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="photo" type="s:base64Binary" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="errorMsg" type="s:string" />
|
||||
</s:sequence>
|
||||
</s:complexType>
|
||||
</s:element>
|
||||
<s:element name="UploadPhotoResponse">
|
||||
<s:complexType>
|
||||
<s:sequence>
|
||||
<s:element minOccurs="1" maxOccurs="1" name="UploadPhotoResult" type="s:boolean" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="errorMsg" type="s:string" />
|
||||
</s:sequence>
|
||||
</s:complexType>
|
||||
</s:element>
|
||||
<s:element name="ChangePhoneNumber">
|
||||
<s:complexType>
|
||||
<s:sequence>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="key" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="code" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="roomNumber" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="phoneNumber" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="idNumber" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="errorMsg" type="s:string" />
|
||||
</s:sequence>
|
||||
</s:complexType>
|
||||
</s:element>
|
||||
<s:element name="ChangePhoneNumberResponse">
|
||||
<s:complexType>
|
||||
<s:sequence>
|
||||
<s:element minOccurs="1" maxOccurs="1" name="ChangePhoneNumberResult" type="s:boolean" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="errorMsg" type="s:string" />
|
||||
</s:sequence>
|
||||
</s:complexType>
|
||||
</s:element>
|
||||
<s:element name="CheckOut">
|
||||
<s:complexType>
|
||||
<s:sequence>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="key" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="code" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="roomNumber" type="s:string" />
|
||||
<s:element minOccurs="1" maxOccurs="1" name="checkOutDate" type="s:dateTime" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="errorMsg" type="s:string" />
|
||||
</s:sequence>
|
||||
</s:complexType>
|
||||
</s:element>
|
||||
<s:element name="CheckOutResponse">
|
||||
<s:complexType>
|
||||
<s:sequence>
|
||||
<s:element minOccurs="1" maxOccurs="1" name="CheckOutResult" type="s:boolean" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="errorMsg" type="s:string" />
|
||||
</s:sequence>
|
||||
</s:complexType>
|
||||
</s:element>
|
||||
<s:element name="RentRoom">
|
||||
<s:complexType>
|
||||
<s:sequence>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="key" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="code" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="roomNumber" type="s:string" />
|
||||
<s:element minOccurs="1" maxOccurs="1" name="rentDate" type="s:dateTime" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="errorMsg" type="s:string" />
|
||||
</s:sequence>
|
||||
</s:complexType>
|
||||
</s:element>
|
||||
<s:element name="RentRoomResponse">
|
||||
<s:complexType>
|
||||
<s:sequence>
|
||||
<s:element minOccurs="1" maxOccurs="1" name="RentRoomResult" type="s:boolean" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="errorMsg" type="s:string" />
|
||||
</s:sequence>
|
||||
</s:complexType>
|
||||
</s:element>
|
||||
</s:schema>
|
||||
</wsdl:types>
|
||||
<wsdl:message name="CheckInSoapIn">
|
||||
<wsdl:part name="parameters" element="tns:CheckIn" />
|
||||
</wsdl:message>
|
||||
<wsdl:message name="CheckInSoapOut">
|
||||
<wsdl:part name="parameters" element="tns:CheckInResponse" />
|
||||
</wsdl:message>
|
||||
<wsdl:message name="CheckIn2SoapIn">
|
||||
<wsdl:part name="parameters" element="tns:CheckIn2" />
|
||||
</wsdl:message>
|
||||
<wsdl:message name="CheckIn2SoapOut">
|
||||
<wsdl:part name="parameters" element="tns:CheckIn2Response" />
|
||||
</wsdl:message>
|
||||
<wsdl:message name="UploadPhotoSoapIn">
|
||||
<wsdl:part name="parameters" element="tns:UploadPhoto" />
|
||||
</wsdl:message>
|
||||
<wsdl:message name="UploadPhotoSoapOut">
|
||||
<wsdl:part name="parameters" element="tns:UploadPhotoResponse" />
|
||||
</wsdl:message>
|
||||
<wsdl:message name="ChangePhoneNumberSoapIn">
|
||||
<wsdl:part name="parameters" element="tns:ChangePhoneNumber" />
|
||||
</wsdl:message>
|
||||
<wsdl:message name="ChangePhoneNumberSoapOut">
|
||||
<wsdl:part name="parameters" element="tns:ChangePhoneNumberResponse" />
|
||||
</wsdl:message>
|
||||
<wsdl:message name="CheckOutSoapIn">
|
||||
<wsdl:part name="parameters" element="tns:CheckOut" />
|
||||
</wsdl:message>
|
||||
<wsdl:message name="CheckOutSoapOut">
|
||||
<wsdl:part name="parameters" element="tns:CheckOutResponse" />
|
||||
</wsdl:message>
|
||||
<wsdl:message name="RentRoomSoapIn">
|
||||
<wsdl:part name="parameters" element="tns:RentRoom" />
|
||||
</wsdl:message>
|
||||
<wsdl:message name="RentRoomSoapOut">
|
||||
<wsdl:part name="parameters" element="tns:RentRoomResponse" />
|
||||
</wsdl:message>
|
||||
<wsdl:portType name="blwwsSoap">
|
||||
<wsdl:operation name="CheckIn">
|
||||
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">开房<br/>key:验证码(我方提供),code:编码(我方提供),roomNumber:房号,checkInDate:入住日期,xmlString:客人信息,errorMsg:返回错误信息,phoneNumber:手机号码(多个以英文逗号,隔开),idNumber:身份证号(多个以英文逗号,隔开):获取微信登录验证码</wsdl:documentation>
|
||||
<wsdl:input message="tns:CheckInSoapIn" />
|
||||
<wsdl:output message="tns:CheckInSoapOut" />
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="CheckIn2">
|
||||
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">开房<br/>key:验证码(我方提供),code:编码(我方提供),roomNumber:房号,checkInDate:入住日期,xmlString:客人信息,errorMsg:返回错误信息,checkInID:返回入住记录ID,phoneNumber:手机号码(多个以英文逗号,隔开),idNumber:身份证号(多个以英文逗号,隔开):获取微信登录验证码</wsdl:documentation>
|
||||
<wsdl:input message="tns:CheckIn2SoapIn" />
|
||||
<wsdl:output message="tns:CheckIn2SoapOut" />
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="UploadPhoto">
|
||||
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">上传入住人信息<br/>key:验证码(我方提供),code:编码(我方提供),checkInID:入住记录ID,idType:证件类型(0身份证,1护照,2军官证,3其他),idCard:证件号码,name:姓名,sex:性别(0女,1男,2其他),birthday:出生日期(1999-01-01),photoUrl:图片路径(与photo二选一),photo:图片(二进制),errorMsg:错误信息</wsdl:documentation>
|
||||
<wsdl:input message="tns:UploadPhotoSoapIn" />
|
||||
<wsdl:output message="tns:UploadPhotoSoapOut" />
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="ChangePhoneNumber">
|
||||
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">变更手机号<br/>key:验证码(我方提供),code:编码(我方提供),roomNumber:房号,errorMsg:错误信息,phoneNumber:手机号码(多个以英文逗号,隔开),idNumber:身份证号:获取验证码</wsdl:documentation>
|
||||
<wsdl:input message="tns:ChangePhoneNumberSoapIn" />
|
||||
<wsdl:output message="tns:ChangePhoneNumberSoapOut" />
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="CheckOut">
|
||||
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">退房<br/>key:验证码(我方提供),code:编码(我方提供),roomNumber:房号,checkOutDate:退房日期,errorMsg:错误信息</wsdl:documentation>
|
||||
<wsdl:input message="tns:CheckOutSoapIn" />
|
||||
<wsdl:output message="tns:CheckOutSoapOut" />
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="RentRoom">
|
||||
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">待租<br/>key:验证码(我方提供),code:编码(我方提供),roomNumber:房号,rentDate:变更待租日期,errorMsg:错误信息</wsdl:documentation>
|
||||
<wsdl:input message="tns:RentRoomSoapIn" />
|
||||
<wsdl:output message="tns:RentRoomSoapOut" />
|
||||
</wsdl:operation>
|
||||
</wsdl:portType>
|
||||
<wsdl:binding name="blwwsSoap" type="tns:blwwsSoap">
|
||||
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
|
||||
<wsdl:operation name="CheckIn">
|
||||
<soap:operation soapAction="http://www.blw.com/CheckIn" style="document" />
|
||||
<wsdl:input>
|
||||
<soap:body use="literal" />
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<soap:body use="literal" />
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="CheckIn2">
|
||||
<soap:operation soapAction="http://www.blw.com/CheckIn2" style="document" />
|
||||
<wsdl:input>
|
||||
<soap:body use="literal" />
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<soap:body use="literal" />
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="UploadPhoto">
|
||||
<soap:operation soapAction="http://www.blw.com/UploadPhoto" style="document" />
|
||||
<wsdl:input>
|
||||
<soap:body use="literal" />
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<soap:body use="literal" />
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="ChangePhoneNumber">
|
||||
<soap:operation soapAction="http://www.blw.com/ChangePhoneNumber" style="document" />
|
||||
<wsdl:input>
|
||||
<soap:body use="literal" />
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<soap:body use="literal" />
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="CheckOut">
|
||||
<soap:operation soapAction="http://www.blw.com/CheckOut" style="document" />
|
||||
<wsdl:input>
|
||||
<soap:body use="literal" />
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<soap:body use="literal" />
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="RentRoom">
|
||||
<soap:operation soapAction="http://www.blw.com/RentRoom" style="document" />
|
||||
<wsdl:input>
|
||||
<soap:body use="literal" />
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<soap:body use="literal" />
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
</wsdl:binding>
|
||||
<wsdl:binding name="blwwsSoap12" type="tns:blwwsSoap">
|
||||
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
|
||||
<wsdl:operation name="CheckIn">
|
||||
<soap12:operation soapAction="http://www.blw.com/CheckIn" style="document" />
|
||||
<wsdl:input>
|
||||
<soap12:body use="literal" />
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<soap12:body use="literal" />
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="CheckIn2">
|
||||
<soap12:operation soapAction="http://www.blw.com/CheckIn2" style="document" />
|
||||
<wsdl:input>
|
||||
<soap12:body use="literal" />
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<soap12:body use="literal" />
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="UploadPhoto">
|
||||
<soap12:operation soapAction="http://www.blw.com/UploadPhoto" style="document" />
|
||||
<wsdl:input>
|
||||
<soap12:body use="literal" />
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<soap12:body use="literal" />
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="ChangePhoneNumber">
|
||||
<soap12:operation soapAction="http://www.blw.com/ChangePhoneNumber" style="document" />
|
||||
<wsdl:input>
|
||||
<soap12:body use="literal" />
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<soap12:body use="literal" />
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="CheckOut">
|
||||
<soap12:operation soapAction="http://www.blw.com/CheckOut" style="document" />
|
||||
<wsdl:input>
|
||||
<soap12:body use="literal" />
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<soap12:body use="literal" />
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="RentRoom">
|
||||
<soap12:operation soapAction="http://www.blw.com/RentRoom" style="document" />
|
||||
<wsdl:input>
|
||||
<soap12:body use="literal" />
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<soap12:body use="literal" />
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
</wsdl:binding>
|
||||
<wsdl:service name="blwws">
|
||||
<wsdl:port name="blwwsSoap" binding="tns:blwwsSoap">
|
||||
<soap:address location="http://localhost:22346/blwws.asmx" />
|
||||
</wsdl:port>
|
||||
<wsdl:port name="blwwsSoap12" binding="tns:blwwsSoap12">
|
||||
<soap12:address location="http://localhost:22346/blwws.asmx" />
|
||||
</wsdl:port>
|
||||
</wsdl:service>
|
||||
</wsdl:definitions>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configurationSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:schemas-microsoft-com:xml-wcfconfigurationsnapshot">
|
||||
<behaviors />
|
||||
<bindings>
|
||||
<binding digest="System.ServiceModel.Configuration.BasicHttpBindingElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089:<?xml version="1.0" encoding="utf-16"?><Data name="blwwsSoap" />" bindingType="basicHttpBinding" name="blwwsSoap" />
|
||||
</bindings>
|
||||
<endpoints>
|
||||
<endpoint normalizedDigest="<?xml version="1.0" encoding="utf-16"?><Data address="http://localhost:22346/blwws.asmx" binding="basicHttpBinding" bindingConfiguration="blwwsSoap" contract="ServiceReference1.blwwsSoap" name="blwwsSoap" />" digest="<?xml version="1.0" encoding="utf-16"?><Data address="http://localhost:22346/blwws.asmx" binding="basicHttpBinding" bindingConfiguration="blwwsSoap" contract="ServiceReference1.blwwsSoap" name="blwwsSoap" />" contractName="ServiceReference1.blwwsSoap" name="blwwsSoap" />
|
||||
</endpoints>
|
||||
</configurationSnapshot>
|
||||
@@ -0,0 +1,201 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<SavedWcfConfigurationInformation xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Version="9.1" CheckSum="JV67pjeB8U6QbETEQXJvclYCKwXe0p8oxa+le9Dw23A=">
|
||||
<bindingConfigurations>
|
||||
<bindingConfiguration bindingType="basicHttpBinding" name="blwwsSoap">
|
||||
<properties>
|
||||
<property path="/name" isComplexType="false" isExplicitlyDefined="true" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue>blwwsSoap</serializedValue>
|
||||
</property>
|
||||
<property path="/closeTimeout" isComplexType="false" isExplicitlyDefined="true" clrType="System.TimeSpan, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue />
|
||||
</property>
|
||||
<property path="/openTimeout" isComplexType="false" isExplicitlyDefined="true" clrType="System.TimeSpan, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue />
|
||||
</property>
|
||||
<property path="/receiveTimeout" isComplexType="false" isExplicitlyDefined="true" clrType="System.TimeSpan, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue />
|
||||
</property>
|
||||
<property path="/sendTimeout" isComplexType="false" isExplicitlyDefined="true" clrType="System.TimeSpan, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue />
|
||||
</property>
|
||||
<property path="/allowCookies" isComplexType="false" isExplicitlyDefined="true" clrType="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue />
|
||||
</property>
|
||||
<property path="/bypassProxyOnLocal" isComplexType="false" isExplicitlyDefined="true" clrType="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue />
|
||||
</property>
|
||||
<property path="/hostNameComparisonMode" isComplexType="false" isExplicitlyDefined="false" clrType="System.ServiceModel.HostNameComparisonMode, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue>StrongWildcard</serializedValue>
|
||||
</property>
|
||||
<property path="/maxBufferPoolSize" isComplexType="false" isExplicitlyDefined="true" clrType="System.Int64, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue />
|
||||
</property>
|
||||
<property path="/maxBufferSize" isComplexType="false" isExplicitlyDefined="false" clrType="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue>65536</serializedValue>
|
||||
</property>
|
||||
<property path="/maxReceivedMessageSize" isComplexType="false" isExplicitlyDefined="true" clrType="System.Int64, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue />
|
||||
</property>
|
||||
<property path="/proxyAddress" isComplexType="false" isExplicitlyDefined="false" clrType="System.Uri, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue />
|
||||
</property>
|
||||
<property path="/readerQuotas" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.XmlDictionaryReaderQuotasElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue>System.ServiceModel.Configuration.XmlDictionaryReaderQuotasElement</serializedValue>
|
||||
</property>
|
||||
<property path="/readerQuotas/maxDepth" isComplexType="false" isExplicitlyDefined="false" clrType="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue>0</serializedValue>
|
||||
</property>
|
||||
<property path="/readerQuotas/maxStringContentLength" isComplexType="false" isExplicitlyDefined="false" clrType="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue>0</serializedValue>
|
||||
</property>
|
||||
<property path="/readerQuotas/maxArrayLength" isComplexType="false" isExplicitlyDefined="false" clrType="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue>0</serializedValue>
|
||||
</property>
|
||||
<property path="/readerQuotas/maxBytesPerRead" isComplexType="false" isExplicitlyDefined="false" clrType="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue>0</serializedValue>
|
||||
</property>
|
||||
<property path="/readerQuotas/maxNameTableCharCount" isComplexType="false" isExplicitlyDefined="false" clrType="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue>0</serializedValue>
|
||||
</property>
|
||||
<property path="/textEncoding" isComplexType="false" isExplicitlyDefined="false" clrType="System.Text.Encoding, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue>System.Text.UTF8Encoding</serializedValue>
|
||||
</property>
|
||||
<property path="/transferMode" isComplexType="false" isExplicitlyDefined="false" clrType="System.ServiceModel.TransferMode, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue>Buffered</serializedValue>
|
||||
</property>
|
||||
<property path="/useDefaultWebProxy" isComplexType="false" isExplicitlyDefined="true" clrType="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue />
|
||||
</property>
|
||||
<property path="/messageEncoding" isComplexType="false" isExplicitlyDefined="false" clrType="System.ServiceModel.WSMessageEncoding, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue>Text</serializedValue>
|
||||
</property>
|
||||
<property path="/security" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.BasicHttpSecurityElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue>System.ServiceModel.Configuration.BasicHttpSecurityElement</serializedValue>
|
||||
</property>
|
||||
<property path="/security/mode" isComplexType="false" isExplicitlyDefined="false" clrType="System.ServiceModel.BasicHttpSecurityMode, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue>None</serializedValue>
|
||||
</property>
|
||||
<property path="/security/transport" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.HttpTransportSecurityElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue>System.ServiceModel.Configuration.HttpTransportSecurityElement</serializedValue>
|
||||
</property>
|
||||
<property path="/security/transport/clientCredentialType" isComplexType="false" isExplicitlyDefined="false" clrType="System.ServiceModel.HttpClientCredentialType, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue>None</serializedValue>
|
||||
</property>
|
||||
<property path="/security/transport/proxyCredentialType" isComplexType="false" isExplicitlyDefined="false" clrType="System.ServiceModel.HttpProxyCredentialType, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue>None</serializedValue>
|
||||
</property>
|
||||
<property path="/security/transport/extendedProtectionPolicy" isComplexType="true" isExplicitlyDefined="false" clrType="System.Security.Authentication.ExtendedProtection.Configuration.ExtendedProtectionPolicyElement, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue>System.Security.Authentication.ExtendedProtection.Configuration.ExtendedProtectionPolicyElement</serializedValue>
|
||||
</property>
|
||||
<property path="/security/transport/extendedProtectionPolicy/policyEnforcement" isComplexType="false" isExplicitlyDefined="false" clrType="System.Security.Authentication.ExtendedProtection.PolicyEnforcement, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue>Never</serializedValue>
|
||||
</property>
|
||||
<property path="/security/transport/extendedProtectionPolicy/protectionScenario" isComplexType="false" isExplicitlyDefined="false" clrType="System.Security.Authentication.ExtendedProtection.ProtectionScenario, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue>TransportSelected</serializedValue>
|
||||
</property>
|
||||
<property path="/security/transport/extendedProtectionPolicy/customServiceNames" isComplexType="true" isExplicitlyDefined="false" clrType="System.Security.Authentication.ExtendedProtection.Configuration.ServiceNameElementCollection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue>(集合)</serializedValue>
|
||||
</property>
|
||||
<property path="/security/transport/realm" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue />
|
||||
</property>
|
||||
<property path="/security/message" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.BasicHttpMessageSecurityElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue>System.ServiceModel.Configuration.BasicHttpMessageSecurityElement</serializedValue>
|
||||
</property>
|
||||
<property path="/security/message/clientCredentialType" isComplexType="false" isExplicitlyDefined="false" clrType="System.ServiceModel.BasicHttpMessageCredentialType, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue>UserName</serializedValue>
|
||||
</property>
|
||||
<property path="/security/message/algorithmSuite" isComplexType="false" isExplicitlyDefined="false" clrType="System.ServiceModel.Security.SecurityAlgorithmSuite, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue>Default</serializedValue>
|
||||
</property>
|
||||
</properties>
|
||||
</bindingConfiguration>
|
||||
</bindingConfigurations>
|
||||
<endpoints>
|
||||
<endpoint name="blwwsSoap" contract="ServiceReference1.blwwsSoap" bindingType="basicHttpBinding" address="http://localhost:22346/blwws.asmx" bindingConfiguration="blwwsSoap">
|
||||
<properties>
|
||||
<property path="/address" isComplexType="false" isExplicitlyDefined="true" clrType="System.Uri, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue>http://localhost:22346/blwws.asmx</serializedValue>
|
||||
</property>
|
||||
<property path="/behaviorConfiguration" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue />
|
||||
</property>
|
||||
<property path="/binding" isComplexType="false" isExplicitlyDefined="true" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue>basicHttpBinding</serializedValue>
|
||||
</property>
|
||||
<property path="/bindingConfiguration" isComplexType="false" isExplicitlyDefined="true" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue>blwwsSoap</serializedValue>
|
||||
</property>
|
||||
<property path="/contract" isComplexType="false" isExplicitlyDefined="true" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue>ServiceReference1.blwwsSoap</serializedValue>
|
||||
</property>
|
||||
<property path="/headers" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.AddressHeaderCollectionElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue>System.ServiceModel.Configuration.AddressHeaderCollectionElement</serializedValue>
|
||||
</property>
|
||||
<property path="/headers/headers" isComplexType="false" isExplicitlyDefined="true" clrType="System.ServiceModel.Channels.AddressHeaderCollection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue><Header /></serializedValue>
|
||||
</property>
|
||||
<property path="/identity" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.IdentityElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue>System.ServiceModel.Configuration.IdentityElement</serializedValue>
|
||||
</property>
|
||||
<property path="/identity/userPrincipalName" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.UserPrincipalNameElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue>System.ServiceModel.Configuration.UserPrincipalNameElement</serializedValue>
|
||||
</property>
|
||||
<property path="/identity/userPrincipalName/value" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue />
|
||||
</property>
|
||||
<property path="/identity/servicePrincipalName" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.ServicePrincipalNameElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue>System.ServiceModel.Configuration.ServicePrincipalNameElement</serializedValue>
|
||||
</property>
|
||||
<property path="/identity/servicePrincipalName/value" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue />
|
||||
</property>
|
||||
<property path="/identity/dns" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.DnsElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue>System.ServiceModel.Configuration.DnsElement</serializedValue>
|
||||
</property>
|
||||
<property path="/identity/dns/value" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue />
|
||||
</property>
|
||||
<property path="/identity/rsa" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.RsaElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue>System.ServiceModel.Configuration.RsaElement</serializedValue>
|
||||
</property>
|
||||
<property path="/identity/rsa/value" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue />
|
||||
</property>
|
||||
<property path="/identity/certificate" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.CertificateElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue>System.ServiceModel.Configuration.CertificateElement</serializedValue>
|
||||
</property>
|
||||
<property path="/identity/certificate/encodedValue" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue />
|
||||
</property>
|
||||
<property path="/identity/certificateReference" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.CertificateReferenceElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue>System.ServiceModel.Configuration.CertificateReferenceElement</serializedValue>
|
||||
</property>
|
||||
<property path="/identity/certificateReference/storeName" isComplexType="false" isExplicitlyDefined="false" clrType="System.Security.Cryptography.X509Certificates.StoreName, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue>My</serializedValue>
|
||||
</property>
|
||||
<property path="/identity/certificateReference/storeLocation" isComplexType="false" isExplicitlyDefined="false" clrType="System.Security.Cryptography.X509Certificates.StoreLocation, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue>LocalMachine</serializedValue>
|
||||
</property>
|
||||
<property path="/identity/certificateReference/x509FindType" isComplexType="false" isExplicitlyDefined="false" clrType="System.Security.Cryptography.X509Certificates.X509FindType, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue>FindBySubjectDistinguishedName</serializedValue>
|
||||
</property>
|
||||
<property path="/identity/certificateReference/findValue" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue />
|
||||
</property>
|
||||
<property path="/identity/certificateReference/isChainIncluded" isComplexType="false" isExplicitlyDefined="false" clrType="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue>False</serializedValue>
|
||||
</property>
|
||||
<property path="/name" isComplexType="false" isExplicitlyDefined="true" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue>blwwsSoap</serializedValue>
|
||||
</property>
|
||||
<property path="/kind" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue />
|
||||
</property>
|
||||
<property path="/endpointConfiguration" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<serializedValue />
|
||||
</property>
|
||||
</properties>
|
||||
</endpoint>
|
||||
</endpoints>
|
||||
</SavedWcfConfigurationInformation>
|
||||
100
ConsoleApp4/ConsoleApp4.csproj
Normal file
100
ConsoleApp4/ConsoleApp4.csproj
Normal file
@@ -0,0 +1,100 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{5E6081C2-BADB-43A4-8B26-0173EE89DFD6}</ProjectGuid>
|
||||
<OutputType>Exe</OutputType>
|
||||
<RootNamespace>ConsoleApp4</RootNamespace>
|
||||
<AssemblyName>ConsoleApp4</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<Deterministic>true</Deterministic>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Runtime.Serialization" />
|
||||
<Reference Include="System.ServiceModel" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Connected Services\ServiceReference1\Reference.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Reference.svcmap</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
<None Include="Connected Services\ServiceReference1\blwws.wsdl" />
|
||||
<None Include="Connected Services\ServiceReference1\ConsoleApp4.ServiceReference1.ChangePhoneNumberResponse.datasource">
|
||||
<DependentUpon>Reference.svcmap</DependentUpon>
|
||||
</None>
|
||||
<None Include="Connected Services\ServiceReference1\ConsoleApp4.ServiceReference1.CheckIn2Response.datasource">
|
||||
<DependentUpon>Reference.svcmap</DependentUpon>
|
||||
</None>
|
||||
<None Include="Connected Services\ServiceReference1\ConsoleApp4.ServiceReference1.CheckInResponse.datasource">
|
||||
<DependentUpon>Reference.svcmap</DependentUpon>
|
||||
</None>
|
||||
<None Include="Connected Services\ServiceReference1\ConsoleApp4.ServiceReference1.CheckOutResponse.datasource">
|
||||
<DependentUpon>Reference.svcmap</DependentUpon>
|
||||
</None>
|
||||
<None Include="Connected Services\ServiceReference1\ConsoleApp4.ServiceReference1.RentRoomResponse.datasource">
|
||||
<DependentUpon>Reference.svcmap</DependentUpon>
|
||||
</None>
|
||||
<None Include="Connected Services\ServiceReference1\ConsoleApp4.ServiceReference1.UploadPhotoResponse.datasource">
|
||||
<DependentUpon>Reference.svcmap</DependentUpon>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<WCFMetadata Include="Connected Services\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<WCFMetadataStorage Include="Connected Services\ServiceReference1\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Connected Services\ServiceReference1\blwws.disco" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Connected Services\ServiceReference1\configuration91.svcinfo" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Connected Services\ServiceReference1\configuration.svcinfo" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Connected Services\ServiceReference1\Reference.svcmap">
|
||||
<Generator>WCF Proxy Generator</Generator>
|
||||
<LastGenOutput>Reference.cs</LastGenOutput>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
36
ConsoleApp4/Program.cs
Normal file
36
ConsoleApp4/Program.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ConsoleApp4
|
||||
{
|
||||
internal class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
|
||||
ServiceReference1.blwwsSoapClient client = new ServiceReference1.blwwsSoapClient();
|
||||
var No = Encoding.UTF8.GetBytes(File.ReadAllText("11.txt"));
|
||||
string str = "";
|
||||
var NNN = client.UploadPhoto(
|
||||
"blw_ws@2015",
|
||||
"2079",
|
||||
1368532,
|
||||
0,
|
||||
"120224199110083813",
|
||||
"唐德凯",
|
||||
1,
|
||||
"1991-10-08",
|
||||
photoUrl: "",
|
||||
No,
|
||||
ref str
|
||||
);
|
||||
Console.WriteLine(NNN);
|
||||
Console.WriteLine(str);
|
||||
Console.ReadKey();
|
||||
}
|
||||
}
|
||||
}
|
||||
33
ConsoleApp4/Properties/AssemblyInfo.cs
Normal file
33
ConsoleApp4/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// 有关程序集的一般信息由以下
|
||||
// 控制。更改这些特性值可修改
|
||||
// 与程序集关联的信息。
|
||||
[assembly: AssemblyTitle("ConsoleApp4")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("ConsoleApp4")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2025")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// 将 ComVisible 设置为 false 会使此程序集中的类型
|
||||
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
|
||||
//请将此类型的 ComVisible 特性设置为 true。
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
||||
[assembly: Guid("5e6081c2-badb-43a4-8b26-0173ee89dfd6")]
|
||||
|
||||
// 程序集的版本信息由下列四个值组成:
|
||||
//
|
||||
// 主版本
|
||||
// 次版本
|
||||
// 生成号
|
||||
// 修订号
|
||||
//
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
6
ConsoleApp5/App.config
Normal file
6
ConsoleApp5/App.config
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
|
||||
</startup>
|
||||
</configuration>
|
||||
53
ConsoleApp5/ConsoleApp5.csproj
Normal file
53
ConsoleApp5/ConsoleApp5.csproj
Normal file
@@ -0,0 +1,53 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{1D69AF3B-B959-4CBD-8726-CFF317E94D68}</ProjectGuid>
|
||||
<OutputType>Exe</OutputType>
|
||||
<RootNamespace>ConsoleApp5</RootNamespace>
|
||||
<AssemblyName>ConsoleApp5</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<Deterministic>true</Deterministic>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
17
ConsoleApp5/Program.cs
Normal file
17
ConsoleApp5/Program.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ConsoleApp5
|
||||
{
|
||||
internal class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
Console.WriteLine("aaaaaaaaaaa");
|
||||
Console.ReadKey();
|
||||
}
|
||||
}
|
||||
}
|
||||
33
ConsoleApp5/Properties/AssemblyInfo.cs
Normal file
33
ConsoleApp5/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// 有关程序集的一般信息由以下
|
||||
// 控制。更改这些特性值可修改
|
||||
// 与程序集关联的信息。
|
||||
[assembly: AssemblyTitle("ConsoleApp5")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("ConsoleApp5")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2025")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// 将 ComVisible 设置为 false 会使此程序集中的类型
|
||||
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
|
||||
//请将此类型的 ComVisible 特性设置为 true。
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
||||
[assembly: Guid("1d69af3b-b959-4cbd-8726-cff317e94d68")]
|
||||
|
||||
// 程序集的版本信息由下列四个值组成:
|
||||
//
|
||||
// 主版本
|
||||
// 次版本
|
||||
// 生成号
|
||||
// 修订号
|
||||
//
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
23
ConsoleApp6/App.config
Normal file
23
ConsoleApp6/App.config
Normal file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<configSections>
|
||||
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
|
||||
<section name="ConsoleApp6.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
|
||||
</sectionGroup>
|
||||
</configSections>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2" />
|
||||
</startup>
|
||||
<system.serviceModel>
|
||||
<bindings />
|
||||
<client />
|
||||
</system.serviceModel>
|
||||
<applicationSettings>
|
||||
<ConsoleApp6.Properties.Settings>
|
||||
<setting name="ConsoleApp6_localhost_blwws" serializeAs="String">
|
||||
<!--<value>http://localhost:22346/blwws.asmx</value>-->
|
||||
<value>http://pms.boonlive-rcu.com:89/blwws.asmx</value>
|
||||
</setting>
|
||||
</ConsoleApp6.Properties.Settings>
|
||||
</applicationSettings>
|
||||
</configuration>
|
||||
98
ConsoleApp6/ConsoleApp6.csproj
Normal file
98
ConsoleApp6/ConsoleApp6.csproj
Normal file
@@ -0,0 +1,98 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{02BC4AA5-6542-4CA8-B540-C435F15392AE}</ProjectGuid>
|
||||
<OutputType>Exe</OutputType>
|
||||
<RootNamespace>ConsoleApp6</RootNamespace>
|
||||
<AssemblyName>ConsoleApp6</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<Deterministic>true</Deterministic>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.EnterpriseServices" />
|
||||
<Reference Include="System.Runtime.Serialization" />
|
||||
<Reference Include="System.ServiceModel" />
|
||||
<Reference Include="System.Web.Services" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Web References\localhost\Reference.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Reference.map</DependentUpon>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<None Include="Web References\localhost\blwws.wsdl" />
|
||||
<None Include="Web References\localhost\Reference.map">
|
||||
<Generator>MSDiscoCodeGenerator</Generator>
|
||||
<LastGenOutput>Reference.cs</LastGenOutput>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<WCFMetadata Include="Connected Services\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<WebReferences Include="Web References\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<WebReferenceUrl Include="http://localhost:22346/blwws.asmx">
|
||||
<UrlBehavior>Dynamic</UrlBehavior>
|
||||
<RelPath>Web References\localhost\</RelPath>
|
||||
<UpdateFromURL>http://localhost:22346/blwws.asmx</UpdateFromURL>
|
||||
<ServiceLocationURL>
|
||||
</ServiceLocationURL>
|
||||
<CachedDynamicPropName>
|
||||
</CachedDynamicPropName>
|
||||
<CachedAppSettingsObjectName>Settings</CachedAppSettingsObjectName>
|
||||
<CachedSettingsPropName>ConsoleApp6_localhost_blwws</CachedSettingsPropName>
|
||||
</WebReferenceUrl>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Web References\localhost\blwws.disco" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
29
ConsoleApp6/Program.cs
Normal file
29
ConsoleApp6/Program.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.ServiceModel.Channels;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ConsoleApp6
|
||||
{
|
||||
internal class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
string bbb = "";
|
||||
|
||||
// 创建Cookie并添加到容器
|
||||
var cookie = new System.Net.Cookie("CookieName", "CookieValue", "/", "localhost");
|
||||
localhost.blwws blwws = new localhost.blwws();
|
||||
blwws.CookieContainer = new System.Net.CookieContainer();
|
||||
//blwws.CookieContainer.Add(cookie);
|
||||
//blwws.UploadPhoto("aaccee^_^aaccee");
|
||||
string xmlstr = System.IO.File.ReadAllText("1.txt", Encoding.UTF8);
|
||||
var Q= blwws.CheckIn("blw_ws@2015", "2006", "8201", DateTime.Now, xmlstr, ref bbb, "168616418194192160", "1");
|
||||
//blwws.UploadPhoto("blw_ws@2015", "1321", 0, 0, "01", "张露", 0, null, null, new byte[] { }, ref bbb);
|
||||
//blwws.CheckIn("room", "oschina", "", DateTime.Now, "", ref bbb, "", "");
|
||||
Console.ReadKey();
|
||||
}
|
||||
}
|
||||
}
|
||||
33
ConsoleApp6/Properties/AssemblyInfo.cs
Normal file
33
ConsoleApp6/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// 有关程序集的一般信息由以下
|
||||
// 控制。更改这些特性值可修改
|
||||
// 与程序集关联的信息。
|
||||
[assembly: AssemblyTitle("ConsoleApp6")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("ConsoleApp6")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2025")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// 将 ComVisible 设置为 false 会使此程序集中的类型
|
||||
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
|
||||
//请将此类型的 ComVisible 特性设置为 true。
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
||||
[assembly: Guid("02bc4aa5-6542-4ca8-b540-c435f15392ae")]
|
||||
|
||||
// 程序集的版本信息由下列四个值组成:
|
||||
//
|
||||
// 主版本
|
||||
// 次版本
|
||||
// 生成号
|
||||
// 修订号
|
||||
//
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
36
ConsoleApp6/Properties/Settings.Designer.cs
generated
Normal file
36
ConsoleApp6/Properties/Settings.Designer.cs
generated
Normal file
@@ -0,0 +1,36 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace ConsoleApp6.Properties {
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.12.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
||||
public static Settings Default {
|
||||
get {
|
||||
return defaultInstance;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.WebServiceUrl)]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("http://localhost:6101/blwws.asmx")]
|
||||
public string ConsoleApp6_localhost_blwws {
|
||||
get {
|
||||
return ((string)(this["ConsoleApp6_localhost_blwws"]));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
9
ConsoleApp6/Properties/Settings.settings
Normal file
9
ConsoleApp6/Properties/Settings.settings
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="ConsoleApp6.Properties" GeneratedClassName="Settings">
|
||||
<Profiles />
|
||||
<Settings>
|
||||
<Setting Name="ConsoleApp6_localhost_blwws" Type="(Web Service URL)" Scope="Application">
|
||||
<Value Profile="(Default)">http://localhost:6101/blwws.asmx</Value>
|
||||
</Setting>
|
||||
</Settings>
|
||||
</SettingsFile>
|
||||
758
ConsoleApp6/Web References/localhost/Reference.cs
Normal file
758
ConsoleApp6/Web References/localhost/Reference.cs
Normal file
@@ -0,0 +1,758 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
//
|
||||
// 此源代码是由 Microsoft.VSDesigner 4.0.30319.42000 版自动生成。
|
||||
//
|
||||
#pragma warning disable 1591
|
||||
|
||||
namespace ConsoleApp6.localhost {
|
||||
using System.Diagnostics;
|
||||
using System;
|
||||
using System.Xml.Serialization;
|
||||
using System.ComponentModel;
|
||||
using System.Web.Services.Protocols;
|
||||
using System.Web.Services;
|
||||
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
[System.Web.Services.WebServiceBindingAttribute(Name="blwwsSoap", Namespace="http://www.blw.com/")]
|
||||
public partial class blwws : System.Web.Services.Protocols.SoapHttpClientProtocol {
|
||||
|
||||
private System.Threading.SendOrPostCallback CheckInOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback CheckIn2OperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback UploadPhotoOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback ChangePhoneNumberOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback CheckOutOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback RentRoomOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback PushBaoJing_IsEnableOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetPushBaoJing_IsEnableOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback AddHotelInfoOperationCompleted;
|
||||
|
||||
private bool useDefaultCredentialsSetExplicitly;
|
||||
|
||||
/// <remarks/>
|
||||
public blwws() {
|
||||
this.Url = global::ConsoleApp6.Properties.Settings.Default.ConsoleApp6_localhost_blwws;
|
||||
if ((this.IsLocalFileSystemWebService(this.Url) == true)) {
|
||||
this.UseDefaultCredentials = true;
|
||||
this.useDefaultCredentialsSetExplicitly = false;
|
||||
}
|
||||
else {
|
||||
this.useDefaultCredentialsSetExplicitly = true;
|
||||
}
|
||||
}
|
||||
|
||||
public new string Url {
|
||||
get {
|
||||
return base.Url;
|
||||
}
|
||||
set {
|
||||
if ((((this.IsLocalFileSystemWebService(base.Url) == true)
|
||||
&& (this.useDefaultCredentialsSetExplicitly == false))
|
||||
&& (this.IsLocalFileSystemWebService(value) == false))) {
|
||||
base.UseDefaultCredentials = false;
|
||||
}
|
||||
base.Url = value;
|
||||
}
|
||||
}
|
||||
|
||||
public new bool UseDefaultCredentials {
|
||||
get {
|
||||
return base.UseDefaultCredentials;
|
||||
}
|
||||
set {
|
||||
base.UseDefaultCredentials = value;
|
||||
this.useDefaultCredentialsSetExplicitly = true;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public event CheckInCompletedEventHandler CheckInCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event CheckIn2CompletedEventHandler CheckIn2Completed;
|
||||
|
||||
/// <remarks/>
|
||||
public event UploadPhotoCompletedEventHandler UploadPhotoCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event ChangePhoneNumberCompletedEventHandler ChangePhoneNumberCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event CheckOutCompletedEventHandler CheckOutCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event RentRoomCompletedEventHandler RentRoomCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event PushBaoJing_IsEnableCompletedEventHandler PushBaoJing_IsEnableCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetPushBaoJing_IsEnableCompletedEventHandler GetPushBaoJing_IsEnableCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event AddHotelInfoCompletedEventHandler AddHotelInfoCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.blw.com/CheckIn", RequestNamespace="http://www.blw.com/", ResponseNamespace="http://www.blw.com/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public bool CheckIn(string key, string code, string roomNumber, System.DateTime checkInDate, string xmlString, ref string errorMsg, string phoneNumber, string idNumber) {
|
||||
object[] results = this.Invoke("CheckIn", new object[] {
|
||||
key,
|
||||
code,
|
||||
roomNumber,
|
||||
checkInDate,
|
||||
xmlString,
|
||||
errorMsg,
|
||||
phoneNumber,
|
||||
idNumber});
|
||||
errorMsg = ((string)(results[1]));
|
||||
return ((bool)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void CheckInAsync(string key, string code, string roomNumber, System.DateTime checkInDate, string xmlString, string errorMsg, string phoneNumber, string idNumber) {
|
||||
this.CheckInAsync(key, code, roomNumber, checkInDate, xmlString, errorMsg, phoneNumber, idNumber, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void CheckInAsync(string key, string code, string roomNumber, System.DateTime checkInDate, string xmlString, string errorMsg, string phoneNumber, string idNumber, object userState) {
|
||||
if ((this.CheckInOperationCompleted == null)) {
|
||||
this.CheckInOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCheckInOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("CheckIn", new object[] {
|
||||
key,
|
||||
code,
|
||||
roomNumber,
|
||||
checkInDate,
|
||||
xmlString,
|
||||
errorMsg,
|
||||
phoneNumber,
|
||||
idNumber}, this.CheckInOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnCheckInOperationCompleted(object arg) {
|
||||
if ((this.CheckInCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.CheckInCompleted(this, new CheckInCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.blw.com/CheckIn2", RequestNamespace="http://www.blw.com/", ResponseNamespace="http://www.blw.com/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public bool CheckIn2(string key, string code, string roomNumber, System.DateTime checkInDate, string xmlString, ref string errorMsg, ref long checkInID, string phoneNumber, string idNumber) {
|
||||
object[] results = this.Invoke("CheckIn2", new object[] {
|
||||
key,
|
||||
code,
|
||||
roomNumber,
|
||||
checkInDate,
|
||||
xmlString,
|
||||
errorMsg,
|
||||
checkInID,
|
||||
phoneNumber,
|
||||
idNumber});
|
||||
errorMsg = ((string)(results[1]));
|
||||
checkInID = ((long)(results[2]));
|
||||
return ((bool)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void CheckIn2Async(string key, string code, string roomNumber, System.DateTime checkInDate, string xmlString, string errorMsg, long checkInID, string phoneNumber, string idNumber) {
|
||||
this.CheckIn2Async(key, code, roomNumber, checkInDate, xmlString, errorMsg, checkInID, phoneNumber, idNumber, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void CheckIn2Async(string key, string code, string roomNumber, System.DateTime checkInDate, string xmlString, string errorMsg, long checkInID, string phoneNumber, string idNumber, object userState) {
|
||||
if ((this.CheckIn2OperationCompleted == null)) {
|
||||
this.CheckIn2OperationCompleted = new System.Threading.SendOrPostCallback(this.OnCheckIn2OperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("CheckIn2", new object[] {
|
||||
key,
|
||||
code,
|
||||
roomNumber,
|
||||
checkInDate,
|
||||
xmlString,
|
||||
errorMsg,
|
||||
checkInID,
|
||||
phoneNumber,
|
||||
idNumber}, this.CheckIn2OperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnCheckIn2OperationCompleted(object arg) {
|
||||
if ((this.CheckIn2Completed != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.CheckIn2Completed(this, new CheckIn2CompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.blw.com/UploadPhoto", RequestNamespace="http://www.blw.com/", ResponseNamespace="http://www.blw.com/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public bool UploadPhoto(string key, string code, long checkInID, int idType, string idCard, string name, int sex, string birthday, string photoUrl, [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")] byte[] photo, ref string errorMsg) {
|
||||
object[] results = this.Invoke("UploadPhoto", new object[] {
|
||||
key,
|
||||
code,
|
||||
checkInID,
|
||||
idType,
|
||||
idCard,
|
||||
name,
|
||||
sex,
|
||||
birthday,
|
||||
photoUrl,
|
||||
photo,
|
||||
errorMsg});
|
||||
errorMsg = ((string)(results[1]));
|
||||
return ((bool)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void UploadPhotoAsync(string key, string code, long checkInID, int idType, string idCard, string name, int sex, string birthday, string photoUrl, byte[] photo, string errorMsg) {
|
||||
this.UploadPhotoAsync(key, code, checkInID, idType, idCard, name, sex, birthday, photoUrl, photo, errorMsg, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void UploadPhotoAsync(string key, string code, long checkInID, int idType, string idCard, string name, int sex, string birthday, string photoUrl, byte[] photo, string errorMsg, object userState) {
|
||||
if ((this.UploadPhotoOperationCompleted == null)) {
|
||||
this.UploadPhotoOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUploadPhotoOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("UploadPhoto", new object[] {
|
||||
key,
|
||||
code,
|
||||
checkInID,
|
||||
idType,
|
||||
idCard,
|
||||
name,
|
||||
sex,
|
||||
birthday,
|
||||
photoUrl,
|
||||
photo,
|
||||
errorMsg}, this.UploadPhotoOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnUploadPhotoOperationCompleted(object arg) {
|
||||
if ((this.UploadPhotoCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.UploadPhotoCompleted(this, new UploadPhotoCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.blw.com/ChangePhoneNumber", RequestNamespace="http://www.blw.com/", ResponseNamespace="http://www.blw.com/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public bool ChangePhoneNumber(string key, string code, string roomNumber, string phoneNumber, string idNumber, ref string errorMsg) {
|
||||
object[] results = this.Invoke("ChangePhoneNumber", new object[] {
|
||||
key,
|
||||
code,
|
||||
roomNumber,
|
||||
phoneNumber,
|
||||
idNumber,
|
||||
errorMsg});
|
||||
errorMsg = ((string)(results[1]));
|
||||
return ((bool)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void ChangePhoneNumberAsync(string key, string code, string roomNumber, string phoneNumber, string idNumber, string errorMsg) {
|
||||
this.ChangePhoneNumberAsync(key, code, roomNumber, phoneNumber, idNumber, errorMsg, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void ChangePhoneNumberAsync(string key, string code, string roomNumber, string phoneNumber, string idNumber, string errorMsg, object userState) {
|
||||
if ((this.ChangePhoneNumberOperationCompleted == null)) {
|
||||
this.ChangePhoneNumberOperationCompleted = new System.Threading.SendOrPostCallback(this.OnChangePhoneNumberOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("ChangePhoneNumber", new object[] {
|
||||
key,
|
||||
code,
|
||||
roomNumber,
|
||||
phoneNumber,
|
||||
idNumber,
|
||||
errorMsg}, this.ChangePhoneNumberOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnChangePhoneNumberOperationCompleted(object arg) {
|
||||
if ((this.ChangePhoneNumberCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.ChangePhoneNumberCompleted(this, new ChangePhoneNumberCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.blw.com/CheckOut", RequestNamespace="http://www.blw.com/", ResponseNamespace="http://www.blw.com/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public bool CheckOut(string key, string code, string roomNumber, System.DateTime checkOutDate, ref string errorMsg) {
|
||||
object[] results = this.Invoke("CheckOut", new object[] {
|
||||
key,
|
||||
code,
|
||||
roomNumber,
|
||||
checkOutDate,
|
||||
errorMsg});
|
||||
errorMsg = ((string)(results[1]));
|
||||
return ((bool)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void CheckOutAsync(string key, string code, string roomNumber, System.DateTime checkOutDate, string errorMsg) {
|
||||
this.CheckOutAsync(key, code, roomNumber, checkOutDate, errorMsg, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void CheckOutAsync(string key, string code, string roomNumber, System.DateTime checkOutDate, string errorMsg, object userState) {
|
||||
if ((this.CheckOutOperationCompleted == null)) {
|
||||
this.CheckOutOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCheckOutOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("CheckOut", new object[] {
|
||||
key,
|
||||
code,
|
||||
roomNumber,
|
||||
checkOutDate,
|
||||
errorMsg}, this.CheckOutOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnCheckOutOperationCompleted(object arg) {
|
||||
if ((this.CheckOutCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.CheckOutCompleted(this, new CheckOutCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.blw.com/RentRoom", RequestNamespace="http://www.blw.com/", ResponseNamespace="http://www.blw.com/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public bool RentRoom(string key, string code, string roomNumber, System.DateTime rentDate, ref string errorMsg) {
|
||||
object[] results = this.Invoke("RentRoom", new object[] {
|
||||
key,
|
||||
code,
|
||||
roomNumber,
|
||||
rentDate,
|
||||
errorMsg});
|
||||
errorMsg = ((string)(results[1]));
|
||||
return ((bool)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void RentRoomAsync(string key, string code, string roomNumber, System.DateTime rentDate, string errorMsg) {
|
||||
this.RentRoomAsync(key, code, roomNumber, rentDate, errorMsg, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void RentRoomAsync(string key, string code, string roomNumber, System.DateTime rentDate, string errorMsg, object userState) {
|
||||
if ((this.RentRoomOperationCompleted == null)) {
|
||||
this.RentRoomOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRentRoomOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("RentRoom", new object[] {
|
||||
key,
|
||||
code,
|
||||
roomNumber,
|
||||
rentDate,
|
||||
errorMsg}, this.RentRoomOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnRentRoomOperationCompleted(object arg) {
|
||||
if ((this.RentRoomCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.RentRoomCompleted(this, new RentRoomCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.blw.com/PushBaoJing_IsEnable", RequestNamespace="http://www.blw.com/", ResponseNamespace="http://www.blw.com/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void PushBaoJing_IsEnable(string key, string code, bool isable) {
|
||||
this.Invoke("PushBaoJing_IsEnable", new object[] {
|
||||
key,
|
||||
code,
|
||||
isable});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void PushBaoJing_IsEnableAsync(string key, string code, bool isable) {
|
||||
this.PushBaoJing_IsEnableAsync(key, code, isable, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void PushBaoJing_IsEnableAsync(string key, string code, bool isable, object userState) {
|
||||
if ((this.PushBaoJing_IsEnableOperationCompleted == null)) {
|
||||
this.PushBaoJing_IsEnableOperationCompleted = new System.Threading.SendOrPostCallback(this.OnPushBaoJing_IsEnableOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("PushBaoJing_IsEnable", new object[] {
|
||||
key,
|
||||
code,
|
||||
isable}, this.PushBaoJing_IsEnableOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnPushBaoJing_IsEnableOperationCompleted(object arg) {
|
||||
if ((this.PushBaoJing_IsEnableCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.PushBaoJing_IsEnableCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.blw.com/GetPushBaoJing_IsEnable", RequestNamespace="http://www.blw.com/", ResponseNamespace="http://www.blw.com/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public int GetPushBaoJing_IsEnable(string key, string code) {
|
||||
object[] results = this.Invoke("GetPushBaoJing_IsEnable", new object[] {
|
||||
key,
|
||||
code});
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetPushBaoJing_IsEnableAsync(string key, string code) {
|
||||
this.GetPushBaoJing_IsEnableAsync(key, code, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetPushBaoJing_IsEnableAsync(string key, string code, object userState) {
|
||||
if ((this.GetPushBaoJing_IsEnableOperationCompleted == null)) {
|
||||
this.GetPushBaoJing_IsEnableOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetPushBaoJing_IsEnableOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetPushBaoJing_IsEnable", new object[] {
|
||||
key,
|
||||
code}, this.GetPushBaoJing_IsEnableOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetPushBaoJing_IsEnableOperationCompleted(object arg) {
|
||||
if ((this.GetPushBaoJing_IsEnableCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetPushBaoJing_IsEnableCompleted(this, new GetPushBaoJing_IsEnableCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.blw.com/AddHotelInfo", RequestNamespace="http://www.blw.com/", ResponseNamespace="http://www.blw.com/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public int AddHotelInfo(string key, string Code, string HotelName, int HotelId) {
|
||||
object[] results = this.Invoke("AddHotelInfo", new object[] {
|
||||
key,
|
||||
Code,
|
||||
HotelName,
|
||||
HotelId});
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void AddHotelInfoAsync(string key, string Code, string HotelName, int HotelId) {
|
||||
this.AddHotelInfoAsync(key, Code, HotelName, HotelId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void AddHotelInfoAsync(string key, string Code, string HotelName, int HotelId, object userState) {
|
||||
if ((this.AddHotelInfoOperationCompleted == null)) {
|
||||
this.AddHotelInfoOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddHotelInfoOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("AddHotelInfo", new object[] {
|
||||
key,
|
||||
Code,
|
||||
HotelName,
|
||||
HotelId}, this.AddHotelInfoOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnAddHotelInfoOperationCompleted(object arg) {
|
||||
if ((this.AddHotelInfoCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.AddHotelInfoCompleted(this, new AddHotelInfoCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public new void CancelAsync(object userState) {
|
||||
base.CancelAsync(userState);
|
||||
}
|
||||
|
||||
private bool IsLocalFileSystemWebService(string url) {
|
||||
if (((url == null)
|
||||
|| (url == string.Empty))) {
|
||||
return false;
|
||||
}
|
||||
System.Uri wsUri = new System.Uri(url);
|
||||
if (((wsUri.Port >= 1024)
|
||||
&& (string.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) == 0))) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")]
|
||||
public delegate void CheckInCompletedEventHandler(object sender, CheckInCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class CheckInCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal CheckInCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public bool Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((bool)(this.results[0]));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public string errorMsg {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((string)(this.results[1]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")]
|
||||
public delegate void CheckIn2CompletedEventHandler(object sender, CheckIn2CompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class CheckIn2CompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal CheckIn2CompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public bool Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((bool)(this.results[0]));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public string errorMsg {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((string)(this.results[1]));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public long checkInID {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((long)(this.results[2]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")]
|
||||
public delegate void UploadPhotoCompletedEventHandler(object sender, UploadPhotoCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class UploadPhotoCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal UploadPhotoCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public bool Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((bool)(this.results[0]));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public string errorMsg {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((string)(this.results[1]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")]
|
||||
public delegate void ChangePhoneNumberCompletedEventHandler(object sender, ChangePhoneNumberCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class ChangePhoneNumberCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal ChangePhoneNumberCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public bool Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((bool)(this.results[0]));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public string errorMsg {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((string)(this.results[1]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")]
|
||||
public delegate void CheckOutCompletedEventHandler(object sender, CheckOutCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class CheckOutCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal CheckOutCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public bool Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((bool)(this.results[0]));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public string errorMsg {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((string)(this.results[1]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")]
|
||||
public delegate void RentRoomCompletedEventHandler(object sender, RentRoomCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class RentRoomCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal RentRoomCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public bool Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((bool)(this.results[0]));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public string errorMsg {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((string)(this.results[1]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")]
|
||||
public delegate void PushBaoJing_IsEnableCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")]
|
||||
public delegate void GetPushBaoJing_IsEnableCompletedEventHandler(object sender, GetPushBaoJing_IsEnableCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetPushBaoJing_IsEnableCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetPushBaoJing_IsEnableCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((int)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")]
|
||||
public delegate void AddHotelInfoCompletedEventHandler(object sender, AddHotelInfoCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class AddHotelInfoCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal AddHotelInfoCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((int)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning restore 1591
|
||||
7
ConsoleApp6/Web References/localhost/Reference.map
Normal file
7
ConsoleApp6/Web References/localhost/Reference.map
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<DiscoveryClientResultsFile xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<Results>
|
||||
<DiscoveryClientResult referenceType="System.Web.Services.Discovery.ContractReference" url="http://localhost:6101/blwws.asmx?wsdl" filename="blwws.wsdl" />
|
||||
<DiscoveryClientResult referenceType="System.Web.Services.Discovery.DiscoveryDocumentReference" url="http://localhost:6101/blwws.asmx?disco" filename="blwws.disco" />
|
||||
</Results>
|
||||
</DiscoveryClientResultsFile>
|
||||
6
ConsoleApp6/Web References/localhost/blwws.disco
Normal file
6
ConsoleApp6/Web References/localhost/blwws.disco
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<discovery xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.xmlsoap.org/disco/">
|
||||
<contractRef ref="http://localhost:6101/blwws.asmx?wsdl" docRef="http://localhost:6101/blwws.asmx" xmlns="http://schemas.xmlsoap.org/disco/scl/" />
|
||||
<soap address="http://localhost:6101/blwws.asmx" xmlns:q1="http://www.blw.com/" binding="q1:blwwsSoap" xmlns="http://schemas.xmlsoap.org/disco/soap/" />
|
||||
<soap address="http://localhost:6101/blwws.asmx" xmlns:q2="http://www.blw.com/" binding="q2:blwwsSoap12" xmlns="http://schemas.xmlsoap.org/disco/soap/" />
|
||||
</discovery>
|
||||
456
ConsoleApp6/Web References/localhost/blwws.wsdl
Normal file
456
ConsoleApp6/Web References/localhost/blwws.wsdl
Normal file
@@ -0,0 +1,456 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<wsdl:definitions xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:tns="http://www.blw.com/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" targetNamespace="http://www.blw.com/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
|
||||
<wsdl:types>
|
||||
<s:schema elementFormDefault="qualified" targetNamespace="http://www.blw.com/">
|
||||
<s:element name="CheckIn">
|
||||
<s:complexType>
|
||||
<s:sequence>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="key" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="code" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="roomNumber" type="s:string" />
|
||||
<s:element minOccurs="1" maxOccurs="1" name="checkInDate" type="s:dateTime" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="xmlString" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="errorMsg" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="phoneNumber" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="idNumber" type="s:string" />
|
||||
</s:sequence>
|
||||
</s:complexType>
|
||||
</s:element>
|
||||
<s:element name="CheckInResponse">
|
||||
<s:complexType>
|
||||
<s:sequence>
|
||||
<s:element minOccurs="1" maxOccurs="1" name="CheckInResult" type="s:boolean" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="errorMsg" type="s:string" />
|
||||
</s:sequence>
|
||||
</s:complexType>
|
||||
</s:element>
|
||||
<s:element name="CheckIn2">
|
||||
<s:complexType>
|
||||
<s:sequence>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="key" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="code" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="roomNumber" type="s:string" />
|
||||
<s:element minOccurs="1" maxOccurs="1" name="checkInDate" type="s:dateTime" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="xmlString" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="errorMsg" type="s:string" />
|
||||
<s:element minOccurs="1" maxOccurs="1" name="checkInID" type="s:long" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="phoneNumber" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="idNumber" type="s:string" />
|
||||
</s:sequence>
|
||||
</s:complexType>
|
||||
</s:element>
|
||||
<s:element name="CheckIn2Response">
|
||||
<s:complexType>
|
||||
<s:sequence>
|
||||
<s:element minOccurs="1" maxOccurs="1" name="CheckIn2Result" type="s:boolean" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="errorMsg" type="s:string" />
|
||||
<s:element minOccurs="1" maxOccurs="1" name="checkInID" type="s:long" />
|
||||
</s:sequence>
|
||||
</s:complexType>
|
||||
</s:element>
|
||||
<s:element name="UploadPhoto">
|
||||
<s:complexType>
|
||||
<s:sequence>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="key" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="code" type="s:string" />
|
||||
<s:element minOccurs="1" maxOccurs="1" name="checkInID" type="s:long" />
|
||||
<s:element minOccurs="1" maxOccurs="1" name="idType" type="s:int" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="idCard" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="name" type="s:string" />
|
||||
<s:element minOccurs="1" maxOccurs="1" name="sex" type="s:int" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="birthday" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="photoUrl" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="photo" type="s:base64Binary" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="errorMsg" type="s:string" />
|
||||
</s:sequence>
|
||||
</s:complexType>
|
||||
</s:element>
|
||||
<s:element name="UploadPhotoResponse">
|
||||
<s:complexType>
|
||||
<s:sequence>
|
||||
<s:element minOccurs="1" maxOccurs="1" name="UploadPhotoResult" type="s:boolean" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="errorMsg" type="s:string" />
|
||||
</s:sequence>
|
||||
</s:complexType>
|
||||
</s:element>
|
||||
<s:element name="ChangePhoneNumber">
|
||||
<s:complexType>
|
||||
<s:sequence>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="key" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="code" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="roomNumber" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="phoneNumber" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="idNumber" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="errorMsg" type="s:string" />
|
||||
</s:sequence>
|
||||
</s:complexType>
|
||||
</s:element>
|
||||
<s:element name="ChangePhoneNumberResponse">
|
||||
<s:complexType>
|
||||
<s:sequence>
|
||||
<s:element minOccurs="1" maxOccurs="1" name="ChangePhoneNumberResult" type="s:boolean" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="errorMsg" type="s:string" />
|
||||
</s:sequence>
|
||||
</s:complexType>
|
||||
</s:element>
|
||||
<s:element name="CheckOut">
|
||||
<s:complexType>
|
||||
<s:sequence>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="key" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="code" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="roomNumber" type="s:string" />
|
||||
<s:element minOccurs="1" maxOccurs="1" name="checkOutDate" type="s:dateTime" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="errorMsg" type="s:string" />
|
||||
</s:sequence>
|
||||
</s:complexType>
|
||||
</s:element>
|
||||
<s:element name="CheckOutResponse">
|
||||
<s:complexType>
|
||||
<s:sequence>
|
||||
<s:element minOccurs="1" maxOccurs="1" name="CheckOutResult" type="s:boolean" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="errorMsg" type="s:string" />
|
||||
</s:sequence>
|
||||
</s:complexType>
|
||||
</s:element>
|
||||
<s:element name="RentRoom">
|
||||
<s:complexType>
|
||||
<s:sequence>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="key" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="code" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="roomNumber" type="s:string" />
|
||||
<s:element minOccurs="1" maxOccurs="1" name="rentDate" type="s:dateTime" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="errorMsg" type="s:string" />
|
||||
</s:sequence>
|
||||
</s:complexType>
|
||||
</s:element>
|
||||
<s:element name="RentRoomResponse">
|
||||
<s:complexType>
|
||||
<s:sequence>
|
||||
<s:element minOccurs="1" maxOccurs="1" name="RentRoomResult" type="s:boolean" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="errorMsg" type="s:string" />
|
||||
</s:sequence>
|
||||
</s:complexType>
|
||||
</s:element>
|
||||
<s:element name="PushBaoJing_IsEnable">
|
||||
<s:complexType>
|
||||
<s:sequence>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="key" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="code" type="s:string" />
|
||||
<s:element minOccurs="1" maxOccurs="1" name="isable" type="s:boolean" />
|
||||
</s:sequence>
|
||||
</s:complexType>
|
||||
</s:element>
|
||||
<s:element name="PushBaoJing_IsEnableResponse">
|
||||
<s:complexType />
|
||||
</s:element>
|
||||
<s:element name="GetPushBaoJing_IsEnable">
|
||||
<s:complexType>
|
||||
<s:sequence>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="key" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="code" type="s:string" />
|
||||
</s:sequence>
|
||||
</s:complexType>
|
||||
</s:element>
|
||||
<s:element name="GetPushBaoJing_IsEnableResponse">
|
||||
<s:complexType>
|
||||
<s:sequence>
|
||||
<s:element minOccurs="1" maxOccurs="1" name="GetPushBaoJing_IsEnableResult" type="s:int" />
|
||||
</s:sequence>
|
||||
</s:complexType>
|
||||
</s:element>
|
||||
<s:element name="AddHotelInfo">
|
||||
<s:complexType>
|
||||
<s:sequence>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="key" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="Code" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="HotelName" type="s:string" />
|
||||
<s:element minOccurs="1" maxOccurs="1" name="HotelId" type="s:int" />
|
||||
</s:sequence>
|
||||
</s:complexType>
|
||||
</s:element>
|
||||
<s:element name="AddHotelInfoResponse">
|
||||
<s:complexType>
|
||||
<s:sequence>
|
||||
<s:element minOccurs="1" maxOccurs="1" name="AddHotelInfoResult" type="s:int" />
|
||||
</s:sequence>
|
||||
</s:complexType>
|
||||
</s:element>
|
||||
</s:schema>
|
||||
</wsdl:types>
|
||||
<wsdl:message name="CheckInSoapIn">
|
||||
<wsdl:part name="parameters" element="tns:CheckIn" />
|
||||
</wsdl:message>
|
||||
<wsdl:message name="CheckInSoapOut">
|
||||
<wsdl:part name="parameters" element="tns:CheckInResponse" />
|
||||
</wsdl:message>
|
||||
<wsdl:message name="CheckIn2SoapIn">
|
||||
<wsdl:part name="parameters" element="tns:CheckIn2" />
|
||||
</wsdl:message>
|
||||
<wsdl:message name="CheckIn2SoapOut">
|
||||
<wsdl:part name="parameters" element="tns:CheckIn2Response" />
|
||||
</wsdl:message>
|
||||
<wsdl:message name="UploadPhotoSoapIn">
|
||||
<wsdl:part name="parameters" element="tns:UploadPhoto" />
|
||||
</wsdl:message>
|
||||
<wsdl:message name="UploadPhotoSoapOut">
|
||||
<wsdl:part name="parameters" element="tns:UploadPhotoResponse" />
|
||||
</wsdl:message>
|
||||
<wsdl:message name="ChangePhoneNumberSoapIn">
|
||||
<wsdl:part name="parameters" element="tns:ChangePhoneNumber" />
|
||||
</wsdl:message>
|
||||
<wsdl:message name="ChangePhoneNumberSoapOut">
|
||||
<wsdl:part name="parameters" element="tns:ChangePhoneNumberResponse" />
|
||||
</wsdl:message>
|
||||
<wsdl:message name="CheckOutSoapIn">
|
||||
<wsdl:part name="parameters" element="tns:CheckOut" />
|
||||
</wsdl:message>
|
||||
<wsdl:message name="CheckOutSoapOut">
|
||||
<wsdl:part name="parameters" element="tns:CheckOutResponse" />
|
||||
</wsdl:message>
|
||||
<wsdl:message name="RentRoomSoapIn">
|
||||
<wsdl:part name="parameters" element="tns:RentRoom" />
|
||||
</wsdl:message>
|
||||
<wsdl:message name="RentRoomSoapOut">
|
||||
<wsdl:part name="parameters" element="tns:RentRoomResponse" />
|
||||
</wsdl:message>
|
||||
<wsdl:message name="PushBaoJing_IsEnableSoapIn">
|
||||
<wsdl:part name="parameters" element="tns:PushBaoJing_IsEnable" />
|
||||
</wsdl:message>
|
||||
<wsdl:message name="PushBaoJing_IsEnableSoapOut">
|
||||
<wsdl:part name="parameters" element="tns:PushBaoJing_IsEnableResponse" />
|
||||
</wsdl:message>
|
||||
<wsdl:message name="GetPushBaoJing_IsEnableSoapIn">
|
||||
<wsdl:part name="parameters" element="tns:GetPushBaoJing_IsEnable" />
|
||||
</wsdl:message>
|
||||
<wsdl:message name="GetPushBaoJing_IsEnableSoapOut">
|
||||
<wsdl:part name="parameters" element="tns:GetPushBaoJing_IsEnableResponse" />
|
||||
</wsdl:message>
|
||||
<wsdl:message name="AddHotelInfoSoapIn">
|
||||
<wsdl:part name="parameters" element="tns:AddHotelInfo" />
|
||||
</wsdl:message>
|
||||
<wsdl:message name="AddHotelInfoSoapOut">
|
||||
<wsdl:part name="parameters" element="tns:AddHotelInfoResponse" />
|
||||
</wsdl:message>
|
||||
<wsdl:portType name="blwwsSoap">
|
||||
<wsdl:operation name="CheckIn">
|
||||
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">开房<br/>key:验证码(我方提供),code:编码(我方提供),roomNumber:房号,checkInDate:入住日期,xmlString:客人信息,errorMsg:返回错误信息,phoneNumber:手机号码(多个以英文逗号,隔开),idNumber:身份证号(多个以英文逗号,隔开):获取微信登录验证码</wsdl:documentation>
|
||||
<wsdl:input message="tns:CheckInSoapIn" />
|
||||
<wsdl:output message="tns:CheckInSoapOut" />
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="CheckIn2">
|
||||
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">开房<br/>key:验证码(我方提供),code:编码(我方提供),roomNumber:房号,checkInDate:入住日期,xmlString:客人信息,errorMsg:返回错误信息,checkInID:返回入住记录ID,phoneNumber:手机号码(多个以英文逗号,隔开),idNumber:身份证号(多个以英文逗号,隔开):获取微信登录验证码</wsdl:documentation>
|
||||
<wsdl:input message="tns:CheckIn2SoapIn" />
|
||||
<wsdl:output message="tns:CheckIn2SoapOut" />
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="UploadPhoto">
|
||||
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">上传入住人信息<br/>key:验证码(我方提供),code:编码(我方提供),checkInID:入住记录ID,idType:证件类型(0身份证,1护照,2军官证,3其他),idCard:证件号码,name:姓名,sex:性别(0女,1男,2其他),birthday:出生日期(1999-01-01),photoUrl:图片路径(与photo二选一),photo:图片(二进制),errorMsg:错误信息</wsdl:documentation>
|
||||
<wsdl:input message="tns:UploadPhotoSoapIn" />
|
||||
<wsdl:output message="tns:UploadPhotoSoapOut" />
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="ChangePhoneNumber">
|
||||
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">变更手机号<br/>key:验证码(我方提供),code:编码(我方提供),roomNumber:房号,errorMsg:错误信息,phoneNumber:手机号码(多个以英文逗号,隔开),idNumber:身份证号:获取验证码</wsdl:documentation>
|
||||
<wsdl:input message="tns:ChangePhoneNumberSoapIn" />
|
||||
<wsdl:output message="tns:ChangePhoneNumberSoapOut" />
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="CheckOut">
|
||||
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">退房<br/>key:验证码(我方提供),code:编码(我方提供),roomNumber:房号,checkOutDate:退房日期,errorMsg:错误信息</wsdl:documentation>
|
||||
<wsdl:input message="tns:CheckOutSoapIn" />
|
||||
<wsdl:output message="tns:CheckOutSoapOut" />
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="RentRoom">
|
||||
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">待租<br/>key:验证码(我方提供),code:编码(我方提供),roomNumber:房号,rentDate:变更待租日期,errorMsg:错误信息</wsdl:documentation>
|
||||
<wsdl:input message="tns:RentRoomSoapIn" />
|
||||
<wsdl:output message="tns:RentRoomSoapOut" />
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="PushBaoJing_IsEnable">
|
||||
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">推送数据到宝镜</wsdl:documentation>
|
||||
<wsdl:input message="tns:PushBaoJing_IsEnableSoapIn" />
|
||||
<wsdl:output message="tns:PushBaoJing_IsEnableSoapOut" />
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="GetPushBaoJing_IsEnable">
|
||||
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">获取是否推送PMS数据到宝镜</wsdl:documentation>
|
||||
<wsdl:input message="tns:GetPushBaoJing_IsEnableSoapIn" />
|
||||
<wsdl:output message="tns:GetPushBaoJing_IsEnableSoapOut" />
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="AddHotelInfo">
|
||||
<wsdl:input message="tns:AddHotelInfoSoapIn" />
|
||||
<wsdl:output message="tns:AddHotelInfoSoapOut" />
|
||||
</wsdl:operation>
|
||||
</wsdl:portType>
|
||||
<wsdl:binding name="blwwsSoap" type="tns:blwwsSoap">
|
||||
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
|
||||
<wsdl:operation name="CheckIn">
|
||||
<soap:operation soapAction="http://www.blw.com/CheckIn" style="document" />
|
||||
<wsdl:input>
|
||||
<soap:body use="literal" />
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<soap:body use="literal" />
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="CheckIn2">
|
||||
<soap:operation soapAction="http://www.blw.com/CheckIn2" style="document" />
|
||||
<wsdl:input>
|
||||
<soap:body use="literal" />
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<soap:body use="literal" />
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="UploadPhoto">
|
||||
<soap:operation soapAction="http://www.blw.com/UploadPhoto" style="document" />
|
||||
<wsdl:input>
|
||||
<soap:body use="literal" />
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<soap:body use="literal" />
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="ChangePhoneNumber">
|
||||
<soap:operation soapAction="http://www.blw.com/ChangePhoneNumber" style="document" />
|
||||
<wsdl:input>
|
||||
<soap:body use="literal" />
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<soap:body use="literal" />
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="CheckOut">
|
||||
<soap:operation soapAction="http://www.blw.com/CheckOut" style="document" />
|
||||
<wsdl:input>
|
||||
<soap:body use="literal" />
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<soap:body use="literal" />
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="RentRoom">
|
||||
<soap:operation soapAction="http://www.blw.com/RentRoom" style="document" />
|
||||
<wsdl:input>
|
||||
<soap:body use="literal" />
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<soap:body use="literal" />
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="PushBaoJing_IsEnable">
|
||||
<soap:operation soapAction="http://www.blw.com/PushBaoJing_IsEnable" style="document" />
|
||||
<wsdl:input>
|
||||
<soap:body use="literal" />
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<soap:body use="literal" />
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="GetPushBaoJing_IsEnable">
|
||||
<soap:operation soapAction="http://www.blw.com/GetPushBaoJing_IsEnable" style="document" />
|
||||
<wsdl:input>
|
||||
<soap:body use="literal" />
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<soap:body use="literal" />
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="AddHotelInfo">
|
||||
<soap:operation soapAction="http://www.blw.com/AddHotelInfo" style="document" />
|
||||
<wsdl:input>
|
||||
<soap:body use="literal" />
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<soap:body use="literal" />
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
</wsdl:binding>
|
||||
<wsdl:binding name="blwwsSoap12" type="tns:blwwsSoap">
|
||||
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
|
||||
<wsdl:operation name="CheckIn">
|
||||
<soap12:operation soapAction="http://www.blw.com/CheckIn" style="document" />
|
||||
<wsdl:input>
|
||||
<soap12:body use="literal" />
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<soap12:body use="literal" />
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="CheckIn2">
|
||||
<soap12:operation soapAction="http://www.blw.com/CheckIn2" style="document" />
|
||||
<wsdl:input>
|
||||
<soap12:body use="literal" />
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<soap12:body use="literal" />
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="UploadPhoto">
|
||||
<soap12:operation soapAction="http://www.blw.com/UploadPhoto" style="document" />
|
||||
<wsdl:input>
|
||||
<soap12:body use="literal" />
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<soap12:body use="literal" />
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="ChangePhoneNumber">
|
||||
<soap12:operation soapAction="http://www.blw.com/ChangePhoneNumber" style="document" />
|
||||
<wsdl:input>
|
||||
<soap12:body use="literal" />
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<soap12:body use="literal" />
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="CheckOut">
|
||||
<soap12:operation soapAction="http://www.blw.com/CheckOut" style="document" />
|
||||
<wsdl:input>
|
||||
<soap12:body use="literal" />
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<soap12:body use="literal" />
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="RentRoom">
|
||||
<soap12:operation soapAction="http://www.blw.com/RentRoom" style="document" />
|
||||
<wsdl:input>
|
||||
<soap12:body use="literal" />
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<soap12:body use="literal" />
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="PushBaoJing_IsEnable">
|
||||
<soap12:operation soapAction="http://www.blw.com/PushBaoJing_IsEnable" style="document" />
|
||||
<wsdl:input>
|
||||
<soap12:body use="literal" />
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<soap12:body use="literal" />
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="GetPushBaoJing_IsEnable">
|
||||
<soap12:operation soapAction="http://www.blw.com/GetPushBaoJing_IsEnable" style="document" />
|
||||
<wsdl:input>
|
||||
<soap12:body use="literal" />
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<soap12:body use="literal" />
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="AddHotelInfo">
|
||||
<soap12:operation soapAction="http://www.blw.com/AddHotelInfo" style="document" />
|
||||
<wsdl:input>
|
||||
<soap12:body use="literal" />
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<soap12:body use="literal" />
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
</wsdl:binding>
|
||||
<wsdl:service name="blwws">
|
||||
<wsdl:port name="blwwsSoap" binding="tns:blwwsSoap">
|
||||
<soap:address location="http://localhost:6101/blwws.asmx" />
|
||||
</wsdl:port>
|
||||
<wsdl:port name="blwwsSoap12" binding="tns:blwwsSoap12">
|
||||
<soap12:address location="http://localhost:6101/blwws.asmx" />
|
||||
</wsdl:port>
|
||||
</wsdl:service>
|
||||
</wsdl:definitions>
|
||||
51
ConsoleApp7/ConsoleApp7.csproj
Normal file
51
ConsoleApp7/ConsoleApp7.csproj
Normal file
@@ -0,0 +1,51 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{8F89AC96-6F8F-46A0-A443-352B295A5EA0}</ProjectGuid>
|
||||
<OutputType>Exe</OutputType>
|
||||
<RootNamespace>ConsoleApp7</RootNamespace>
|
||||
<AssemblyName>ConsoleApp7</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<Deterministic>true</Deterministic>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="RestSharp">
|
||||
<HintPath>..\BLWWS\RestSharp\RestSharp.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
51
ConsoleApp7/Program.cs
Normal file
51
ConsoleApp7/Program.cs
Normal file
@@ -0,0 +1,51 @@
|
||||
using System;
|
||||
using System.Net;
|
||||
using RestSharp;
|
||||
|
||||
namespace ConsoleApp7
|
||||
{
|
||||
public class PMSDataBase
|
||||
{
|
||||
public string hotel_code { get; set; } = "";
|
||||
public string time { get; set; } = "";
|
||||
public string sign { get; set; } = "";
|
||||
public string hotel_id { get; set; } = "";
|
||||
public string order_no { get; set; } = "";
|
||||
public string room_no { get; set; } = "";
|
||||
public string check_out_original { get; set; }
|
||||
}
|
||||
internal class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
//ssl 协议不兼容
|
||||
var A = (SecurityProtocolType)48;
|
||||
var B = (SecurityProtocolType)192;
|
||||
var C = (SecurityProtocolType)768;
|
||||
var D = (SecurityProtocolType)3072;
|
||||
var E = (SecurityProtocolType)12288;
|
||||
ServicePointManager.SecurityProtocol = A | B | C | D | E;
|
||||
PMSDataBase data = new PMSDataBase()
|
||||
{
|
||||
hotel_code = "2079",
|
||||
time = "1751426235",
|
||||
sign = "a68b2596ce7c1ca970e82a00626c16e3",
|
||||
hotel_id = "1101",
|
||||
order_no = "",
|
||||
room_no = "1102",
|
||||
check_out_original = ""
|
||||
};
|
||||
|
||||
//string BaseURL = "https://f.blv-oa.com:8099/rcu_pms_api/v1";
|
||||
string BaseURL = "http://localhost:5027";
|
||||
var client123 = new RestClient(BaseURL);
|
||||
var request123 = new RestRequest("/api/values/hello", Method.POST);
|
||||
//request123.AddHeader("Content-Type", "application/json");
|
||||
request123.AddJsonBody(data);
|
||||
var Response = client123.Execute(request123).Content;
|
||||
string content12345 = Response;
|
||||
Console.WriteLine(content12345);
|
||||
Console.ReadKey();
|
||||
}
|
||||
}
|
||||
}
|
||||
33
ConsoleApp7/Properties/AssemblyInfo.cs
Normal file
33
ConsoleApp7/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// 有关程序集的一般信息由以下
|
||||
// 控制。更改这些特性值可修改
|
||||
// 与程序集关联的信息。
|
||||
[assembly: AssemblyTitle("ConsoleApp7")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("ConsoleApp7")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2025")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// 将 ComVisible 设置为 false 会使此程序集中的类型
|
||||
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
|
||||
//请将此类型的 ComVisible 特性设置为 true。
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
||||
[assembly: Guid("8f89ac96-6f8f-46a0-a443-352b295a5ea0")]
|
||||
|
||||
// 程序集的版本信息由下列四个值组成:
|
||||
//
|
||||
// 主版本
|
||||
// 次版本
|
||||
// 生成号
|
||||
// 修订号
|
||||
//
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
26
HttpsTran/1.txt
Normal file
26
HttpsTran/1.txt
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"checkIn": "2025-07-08 15:17:54",
|
||||
"checkOut": "2025-07-09 15:17:54",
|
||||
"is_breakfast": 1,
|
||||
"breakfast": 1,
|
||||
"rateCode": "",
|
||||
"amount": "10",
|
||||
"order_original": "",
|
||||
"infos": [
|
||||
{
|
||||
"name": "张三",
|
||||
"mobile": "15515750973",
|
||||
"type": 0,
|
||||
"idcard": "41088119324234234234",
|
||||
"sex": 1,
|
||||
"address": ""
|
||||
}
|
||||
],
|
||||
"hotel_code": "1085",
|
||||
"time": "1751959077",
|
||||
"sign": "be647b58c466991ab5946998ef87bbc5",
|
||||
"hotel_id": "98",
|
||||
"order_no": "111",
|
||||
"room_no": "二楼H区",
|
||||
"check_out_original": null
|
||||
}
|
||||
168
HttpsTran/HttpsTran.csproj
Normal file
168
HttpsTran/HttpsTran.csproj
Normal file
@@ -0,0 +1,168 @@
|
||||
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.1\build\net46\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props" Condition="Exists('..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.1\build\net46\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props')" />
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>
|
||||
</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{BB1F703D-36E6-4C5B-9BCF-D7A6FB97C113}</ProjectGuid>
|
||||
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>HttpsTran</RootNamespace>
|
||||
<AssemblyName>HttpsTran</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||
<UseIISExpress>true</UseIISExpress>
|
||||
<Use64BitIISExpress />
|
||||
<IISExpressSSLPort />
|
||||
<IISExpressAnonymousAuthentication />
|
||||
<IISExpressWindowsAuthentication />
|
||||
<IISExpressUseClassicPipelineMode />
|
||||
<UseGlobalApplicationHostFile />
|
||||
<NuGetPackageImportStamp>
|
||||
</NuGetPackageImportStamp>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Microsoft.Bcl.AsyncInterfaces, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.Bcl.AsyncInterfaces.8.0.0\lib\net462\Microsoft.Bcl.AsyncInterfaces.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Newtonsoft.Json.13.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="NLog, Version=6.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\NLog.6.0.1\lib\net46\NLog.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="RestSharp, Version=112.1.0.0, Culture=neutral, PublicKeyToken=598062e77f915f75, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\RestSharp.112.1.0\lib\net471\RestSharp.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Buffers, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Memory, Version=4.0.1.2, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Memory.4.5.5\lib\net461\System.Memory.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Numerics" />
|
||||
<Reference Include="System.Numerics.Vectors, Version=4.1.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Runtime.CompilerServices.Unsafe.6.0.0\lib\net461\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Text.Encodings.Web, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Text.Encodings.Web.8.0.0\lib\net462\System.Text.Encodings.Web.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Text.Json, Version=8.0.0.4, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Text.Json.8.0.4\lib\net462\System.Text.Json.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Threading.Tasks.Extensions, Version=4.2.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.ValueTuple, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.ValueTuple.4.5.0\lib\net47\System.ValueTuple.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Web.DynamicData" />
|
||||
<Reference Include="System.Web.Entity" />
|
||||
<Reference Include="System.Web.ApplicationServices" />
|
||||
<Reference Include="System.ComponentModel.DataAnnotations" />
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="System.Web.Extensions" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Web" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Configuration" />
|
||||
<Reference Include="System.Web.Services" />
|
||||
<Reference Include="System.EnterpriseServices" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Microsoft.CodeDom.Providers.DotNetCompilerPlatform">
|
||||
<HintPath>..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.1\lib\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Web.config" />
|
||||
<Content Include="WebService1.asmx" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="WebService1.asmx.cs">
|
||||
<DependentUpon>WebService1.asmx</DependentUpon>
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="nlog.config">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<None Include="packages.config" />
|
||||
<None Include="Web.Debug.config">
|
||||
<DependentUpon>Web.config</DependentUpon>
|
||||
</None>
|
||||
<None Include="Web.Release.config">
|
||||
<DependentUpon>Web.config</DependentUpon>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<PropertyGroup>
|
||||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
|
||||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
|
||||
<ProjectExtensions>
|
||||
<VisualStudio>
|
||||
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
|
||||
<WebProjectProperties>
|
||||
<UseIIS>True</UseIIS>
|
||||
<AutoAssignPort>True</AutoAssignPort>
|
||||
<DevelopmentServerPort>64121</DevelopmentServerPort>
|
||||
<DevelopmentServerVPath>/</DevelopmentServerVPath>
|
||||
<IISUrl>http://localhost:64121/</IISUrl>
|
||||
<NTLMAuthentication>False</NTLMAuthentication>
|
||||
<UseCustomServer>False</UseCustomServer>
|
||||
<CustomServerUrl>
|
||||
</CustomServerUrl>
|
||||
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
|
||||
</WebProjectProperties>
|
||||
</FlavorProperties>
|
||||
</VisualStudio>
|
||||
</ProjectExtensions>
|
||||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
||||
<PropertyGroup>
|
||||
<ErrorText>这台计算机上缺少此项目引用的 NuGet 程序包。使用“NuGet 程序包还原”可下载这些程序包。有关更多信息,请参见 http://go.microsoft.com/fwlink/?LinkID=322105。缺少的文件是 {0}。</ErrorText>
|
||||
</PropertyGroup>
|
||||
<Error Condition="!Exists('..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.1\build\net46\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.1\build\net46\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props'))" />
|
||||
</Target>
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
35
HttpsTran/Properties/AssemblyInfo.cs
Normal file
35
HttpsTran/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// 有关程序集的常规信息通过下列特性集
|
||||
// 控制。更改这些特性值可修改
|
||||
// 与程序集关联的信息。
|
||||
[assembly: AssemblyTitle("HttpsTran")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("HttpsTran")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2025")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// 将 ComVisible 设置为 false 会使此程序集中的类型
|
||||
// 对 COM 组件不可见。如果需要
|
||||
// 从 COM 访问此程序集中的某个类型,请针对该类型将 ComVisible 特性设置为 true。
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// 如果此项目向 COM 公开,则下列 GUID 用于 typelib 的 ID
|
||||
[assembly: Guid("bb1f703d-36e6-4c5b-9bcf-d7a6fb97c113")]
|
||||
|
||||
// 程序集的版本信息由下列四个值组成:
|
||||
//
|
||||
// 主版本
|
||||
// 次版本
|
||||
// 内部版本号
|
||||
// 修订版本
|
||||
//
|
||||
// 可以指定所有值,也可以使用“修订号”和“内部版本号”的默认值,
|
||||
// 方法是按如下所示使用 "*":
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
31
HttpsTran/Web.Debug.config
Normal file
31
HttpsTran/Web.Debug.config
Normal file
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!-- 有关使用 web.config 转换的详细信息,请访问 https://go.microsoft.com/fwlink/?LinkId=125889 -->
|
||||
|
||||
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
|
||||
<!--
|
||||
在下例中,“SetAttributes”转换将更改
|
||||
“connectionString”的值,以仅在“Match”定位器
|
||||
找到值为“MyDB”的特性“name”时使用“ReleaseSQLServer”。
|
||||
|
||||
<connectionStrings>
|
||||
<add name="MyDB"
|
||||
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
|
||||
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
|
||||
</connectionStrings>
|
||||
-->
|
||||
<system.web>
|
||||
<!--
|
||||
|
||||
在下例中,“Replace”转换将替换
|
||||
web.config 文件的整个 <customErrors> 节。
|
||||
请注意,由于
|
||||
在 <system.web> 节点下仅有一个 customErrors 节,因此不需要使用“xdt:Locator”特性。
|
||||
|
||||
<customErrors defaultRedirect="GenericError.htm"
|
||||
mode="RemoteOnly" xdt:Transform="Replace">
|
||||
<error statusCode="500" redirect="InternalError.htm"/>
|
||||
</customErrors>
|
||||
-->
|
||||
</system.web>
|
||||
</configuration>
|
||||
32
HttpsTran/Web.Release.config
Normal file
32
HttpsTran/Web.Release.config
Normal file
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!-- 有关使用 web.config 转换的详细信息,请访问 https://go.microsoft.com/fwlink/?LinkId=125889 -->
|
||||
|
||||
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
|
||||
<!--
|
||||
在下例中,“SetAttributes”转换将更改
|
||||
“connectionString”的值,以仅在“Match”定位器
|
||||
找到值为“MyDB”的特性“name”时使用“ReleaseSQLServer”。
|
||||
|
||||
<connectionStrings>
|
||||
<add name="MyDB"
|
||||
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
|
||||
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
|
||||
</connectionStrings>
|
||||
-->
|
||||
<system.web>
|
||||
<compilation xdt:Transform="RemoveAttributes(debug)" />
|
||||
<!--
|
||||
|
||||
在下例中,“Replace”转换将替换
|
||||
web.config 文件的整个 <customErrors> 节。
|
||||
请注意,由于
|
||||
在 <system.web> 节点下仅有一个 customErrors 节,因此不需要使用“xdt:Locator”特性。
|
||||
|
||||
<customErrors defaultRedirect="GenericError.htm"
|
||||
mode="RemoteOnly" xdt:Transform="Replace">
|
||||
<error statusCode="500" redirect="InternalError.htm"/>
|
||||
</customErrors>
|
||||
-->
|
||||
</system.web>
|
||||
</configuration>
|
||||
28
HttpsTran/Web.config
Normal file
28
HttpsTran/Web.config
Normal file
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
有关如何配置 ASP.NET 应用程序的详细信息,请访问
|
||||
https://go.microsoft.com/fwlink/?LinkId=169433
|
||||
-->
|
||||
<configuration>
|
||||
<appSettings>
|
||||
<add key="BaoJing_BaseUrl" value="https://f.blv-oa.com:8099/rcu_pms_api/v1" />
|
||||
</appSettings>
|
||||
<system.web>
|
||||
<compilation debug="true" targetFramework="4.7.2" />
|
||||
<httpRuntime targetFramework="4.7.2" />
|
||||
</system.web>
|
||||
<system.codedom>
|
||||
<compilers>
|
||||
<compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:1659;1699;1701" />
|
||||
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:41008 /define:_MYTYPE=\"Web\" /optionInfer+" />
|
||||
</compilers>
|
||||
</system.codedom>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
</configuration>
|
||||
1
HttpsTran/WebService1.asmx
Normal file
1
HttpsTran/WebService1.asmx
Normal file
@@ -0,0 +1 @@
|
||||
<%@ WebService Language="C#" CodeBehind="WebService1.asmx.cs" Class="HttpsTran.WebService1" %>
|
||||
84
HttpsTran/WebService1.asmx.cs
Normal file
84
HttpsTran/WebService1.asmx.cs
Normal file
@@ -0,0 +1,84 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Configuration;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Web;
|
||||
using System.Web.Services;
|
||||
using Newtonsoft.Json;
|
||||
using NLog;
|
||||
using RestSharp;
|
||||
|
||||
namespace HttpsTran
|
||||
{
|
||||
/// <summary>
|
||||
/// WebService1 的摘要说明
|
||||
/// </summary>
|
||||
[WebService(Namespace = "http://tempuri.org/")]
|
||||
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
|
||||
[System.ComponentModel.ToolboxItem(false)]
|
||||
// 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务,请取消注释以下行。
|
||||
// [System.Web.Script.Services.ScriptService]
|
||||
public class WebService1 : System.Web.Services.WebService
|
||||
{
|
||||
|
||||
private readonly Logger _logger = LogManager.GetCurrentClassLogger();
|
||||
public static string BaseURL = ConfigurationManager.AppSettings["BaoJing_BaseUrl"];
|
||||
[WebMethod]
|
||||
public string HelloWorld(string key, string data, string url)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (key.Equals("C24cAfK"))
|
||||
{
|
||||
//ssl 协议不兼容
|
||||
var A = (SecurityProtocolType)48;
|
||||
var B = (SecurityProtocolType)192;
|
||||
var C = (SecurityProtocolType)768;
|
||||
var D = (SecurityProtocolType)3072;
|
||||
var E = (SecurityProtocolType)12288;
|
||||
ServicePointManager.SecurityProtocol = A | B | C | D | E;
|
||||
BaseURL = "https://localhost:7009/";
|
||||
var client123 = new RestClient(BaseURL);
|
||||
//var request123 = new RestRequest("/order/checkOut", Method.POST);
|
||||
var request123 = new RestRequest(url, Method.Post);
|
||||
request123.AddHeader("Content-Type", "application/json");
|
||||
//var N = Newtonsoft.Json.JsonConvert.DeserializeObject<dynamic>(data);
|
||||
//var UUU = JsonConvert.SerializeObject(N);
|
||||
_logger.Error("发送的数据为:"+data);
|
||||
//request123.AddJsonBody(data);
|
||||
request123.AddStringBody(data,DataFormat.Json);
|
||||
var Response = client123.Execute(request123).Content;
|
||||
string content12345 = Response;
|
||||
return content12345;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.Error(ex.Message);
|
||||
}
|
||||
return "error";
|
||||
}
|
||||
[WebMethod()]
|
||||
public string HHH()
|
||||
{
|
||||
var Q = File.ReadAllText(Server.MapPath("1.txt"), Encoding.UTF8);
|
||||
var N = Newtonsoft.Json.JsonConvert.DeserializeObject<dynamic>(Q);
|
||||
var UUU = JsonConvert.SerializeObject(N);
|
||||
return "aaaaaaa";
|
||||
|
||||
}
|
||||
}
|
||||
public class PMSDataBase
|
||||
{
|
||||
public string hotel_code { get; set; } = "";
|
||||
public string time { get; set; } = "";
|
||||
public string sign { get; set; } = "";
|
||||
public string hotel_id { get; set; } = "";
|
||||
public string order_no { get; set; } = "";
|
||||
public string room_no { get; set; } = "";
|
||||
public string check_out_original { get; set; }
|
||||
}
|
||||
}
|
||||
35
HttpsTran/nlog.config
Normal file
35
HttpsTran/nlog.config
Normal file
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
|
||||
<!-- enable asp.net core layout renderers -->
|
||||
<targets>
|
||||
<!--项目日志保存文件路径说明fileName="${basedir}/保存目录,以年月日的格式创建/${shortdate}/${记录器名称}-${单级记录}-${shortdate}.txt"-->
|
||||
<target name="info_file" xsi:type="File"
|
||||
fileName="${basedir}/Logs/${shortdate}/info_${shortdate}.txt"
|
||||
layout="${longdate}|${level:uppercase=true}|${logger}|${message}|${exception:format=ToString} ${newline} ${stacktrace} ${newline}"
|
||||
archiveFileName="${basedir}/archives/info_${shortdate}-{#####}.txt"
|
||||
archiveAboveSize="102400"
|
||||
archiveNumbering="Sequence"
|
||||
concurrentWrites="true"
|
||||
keepFileOpen="false" />
|
||||
<target name="error_file" xsi:type="File"
|
||||
fileName="${basedir}/Logs/${shortdate}/error_${shortdate}.txt"
|
||||
layout="${longdate}|${level:uppercase=true}|${logger}|${message}|${exception:format=ToString} ${newline} ${stacktrace} ${newline}"
|
||||
archiveFileName="${basedir}/archives/error_${shortdate}-{#####}.txt"
|
||||
archiveAboveSize="102400"
|
||||
archiveNumbering="Sequence"
|
||||
concurrentWrites="true"
|
||||
keepFileOpen="false" />
|
||||
</targets>
|
||||
|
||||
<!--规则配置,final - 最终规则匹配后不处理任何规则-->
|
||||
<!--规则配置,final - 最终规则匹配后不处理任何规则-->
|
||||
<!--定义使用哪个target输出-->
|
||||
<rules>
|
||||
<!-- 优先级从高到低依次为:OFF、FATAL、ERROR、WARN、INFO、DEBUG、TRACE、 ALL -->
|
||||
<!-- 将所有日志输出到文件 -->
|
||||
<logger name="*" minlevel="FATAL" maxlevel="FATAL" writeTo="info_file" />
|
||||
<logger name="*" minlevel="Error" writeTo="error_file" />
|
||||
</rules>
|
||||
</nlog>
|
||||
16
HttpsTran/packages.config
Normal file
16
HttpsTran/packages.config
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="Microsoft.Bcl.AsyncInterfaces" version="8.0.0" targetFramework="net472" />
|
||||
<package id="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" version="2.0.1" targetFramework="net472" />
|
||||
<package id="Newtonsoft.Json" version="13.0.3" targetFramework="net472" />
|
||||
<package id="NLog" version="6.0.1" targetFramework="net472" />
|
||||
<package id="RestSharp" version="112.1.0" targetFramework="net472" />
|
||||
<package id="System.Buffers" version="4.5.1" targetFramework="net472" />
|
||||
<package id="System.Memory" version="4.5.5" targetFramework="net472" />
|
||||
<package id="System.Numerics.Vectors" version="4.5.0" targetFramework="net472" />
|
||||
<package id="System.Runtime.CompilerServices.Unsafe" version="6.0.0" targetFramework="net472" />
|
||||
<package id="System.Text.Encodings.Web" version="8.0.0" targetFramework="net472" />
|
||||
<package id="System.Text.Json" version="8.0.4" targetFramework="net472" />
|
||||
<package id="System.Threading.Tasks.Extensions" version="4.5.4" targetFramework="net472" />
|
||||
<package id="System.ValueTuple" version="4.5.0" targetFramework="net472" />
|
||||
</packages>
|
||||
24
MyQianLiMa/App_Start/WebApiConfig.cs
Normal file
24
MyQianLiMa/App_Start/WebApiConfig.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web.Http;
|
||||
|
||||
namespace MyQianLiMa
|
||||
{
|
||||
public static class WebApiConfig
|
||||
{
|
||||
public static void Register(HttpConfiguration config)
|
||||
{
|
||||
// Web API 配置和服务
|
||||
|
||||
// Web API 路由
|
||||
config.MapHttpAttributeRoutes();
|
||||
|
||||
config.Routes.MapHttpRoute(
|
||||
name: "DefaultApi",
|
||||
routeTemplate: "api/{controller}/{id}",
|
||||
defaults: new { id = RouteParameter.Optional }
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
107
MyQianLiMa/Common/CSRedisCacheHelper.cs
Normal file
107
MyQianLiMa/Common/CSRedisCacheHelper.cs
Normal file
@@ -0,0 +1,107 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Configuration;
|
||||
using CSRedis;
|
||||
|
||||
namespace BLWWS.PMS.Common
|
||||
{
|
||||
/// <summary>
|
||||
/// Redis缓存辅助类
|
||||
/// </summary>
|
||||
public class CSRedisCacheHelper
|
||||
{
|
||||
public static CSRedisClient redis;
|
||||
private static int SessionExpireMinutes = 60 * 24 * 60;
|
||||
|
||||
public static string pwd = ConfigurationManager.AppSettings["redis_pwd"];
|
||||
static CSRedisCacheHelper()
|
||||
{
|
||||
//var redisHostStr = "127.0.0.1:7555,poolsize=20";
|
||||
var redisHostStr = "127.0.0.1:6379,poolsize=20";
|
||||
if (!string.IsNullOrEmpty(redisHostStr))
|
||||
{
|
||||
//redis = new CSRedisClient(redisHostStr + ",password=cw_oy_lsh,defaultDatabase=1");
|
||||
string str = string.Format(",password={0},defaultDatabase=1", pwd);
|
||||
redis = new CSRedisClient(redisHostStr + str);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 添加缓存
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
/// <param name="key"></param>
|
||||
/// <param name="value"></param>
|
||||
public static void Set<T>(string key, T value)
|
||||
{
|
||||
redis.Set(key, value, SessionExpireMinutes * 60);
|
||||
}
|
||||
|
||||
public static T Get<T>(string key)
|
||||
{
|
||||
return redis.Get<T>(key);
|
||||
}
|
||||
|
||||
public static void Forever<T>(string key, T value)
|
||||
{
|
||||
redis.Set(key, value, -1);
|
||||
}
|
||||
public static void Del(string key)
|
||||
{
|
||||
redis.Del(key);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 判断是否存在
|
||||
/// </summary>
|
||||
/// <param name="key"></param>
|
||||
/// <param name="mac"></param>
|
||||
/// <returns></returns>
|
||||
public static bool Contains(string key, string mac)
|
||||
{
|
||||
bool result = redis.Exists(mac);
|
||||
if (!result)
|
||||
{
|
||||
result = redis.Exists(key);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public static bool Contains(string key)
|
||||
{
|
||||
bool result = redis.Exists(key);
|
||||
return result;
|
||||
}
|
||||
/// <summary>
|
||||
/// 添加Hash缓存
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
/// <param name="key"></param>
|
||||
/// <param name="value"></param>
|
||||
public static void HMSet<T>(string key, T value)
|
||||
{
|
||||
redis.HMSet(key, value);
|
||||
}
|
||||
/// <summary>
|
||||
/// 获取Hash缓存
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
/// <param name="key"></param>
|
||||
/// <returns></returns>
|
||||
public static T[] HMGet<T>(string key)
|
||||
{
|
||||
return redis.HMGet<T>(key);
|
||||
}
|
||||
/// <summary>
|
||||
/// 删除Hash缓存
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
/// <param name="key"></param>
|
||||
/// <returns></returns>
|
||||
public static long HDel<T>(string key)
|
||||
{
|
||||
return redis.HDel(key);
|
||||
}
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user