You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
460 lines
17 KiB
C#
460 lines
17 KiB
C#
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// 此代码由工具生成。
|
|
// 运行时版本:4.0.30319.42000
|
|
//
|
|
// 对此文件的更改可能会导致不正确的行为,并且如果
|
|
// 重新生成代码,这些更改将会丢失。
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
|
|
//
|
|
// 此源代码是由 Microsoft.VSDesigner 4.0.30319.42000 版自动生成。
|
|
//
|
|
#pragma warning disable 1591
|
|
|
|
namespace MaterialTraceability.WebService.GetParametricValueServiceService {
|
|
using System;
|
|
using System.Web.Services;
|
|
using System.Diagnostics;
|
|
using System.Web.Services.Protocols;
|
|
using System.Xml.Serialization;
|
|
using System.ComponentModel;
|
|
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3190.0")]
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
[System.Web.Services.WebServiceBindingAttribute(Name="GetParametricValueServiceBinding", Namespace="http://machineintegration.ws.atlmes.com/")]
|
|
[System.Xml.Serialization.XmlIncludeAttribute(typeof(BusinessException))]
|
|
[System.Xml.Serialization.XmlIncludeAttribute(typeof(getParametricValueResponse))]
|
|
public partial class GetParametricValueServiceService : System.Web.Services.Protocols.SoapHttpClientProtocol {
|
|
|
|
private System.Threading.SendOrPostCallback getParametricValueOperationCompleted;
|
|
|
|
private bool useDefaultCredentialsSetExplicitly;
|
|
|
|
/// <remarks/>
|
|
public GetParametricValueServiceService() {
|
|
this.Url = global::MaterialTraceability.WebService.Properties.Settings.Default.MaterialTraceability_WebService_GetParametricValueServiceService_GetParametricValueServiceService;
|
|
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 getParametricValueCompletedEventHandler getParametricValueCompleted;
|
|
|
|
/// <remarks/>
|
|
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Bare)]
|
|
[return: System.Xml.Serialization.XmlElementAttribute("getParametricValueResponse", Namespace="http://machineintegration.ws.atlmes.com/", IsNullable=true)]
|
|
public object getParametricValue([System.Xml.Serialization.XmlElementAttribute("getParametricValue", Namespace="http://machineintegration.ws.atlmes.com/")] getParametricValue getParametricValue1) {
|
|
object[] results = this.Invoke("getParametricValue", new object[] {
|
|
getParametricValue1});
|
|
return ((object)(results[0]));
|
|
}
|
|
|
|
/// <remarks/>
|
|
public void getParametricValueAsync(getParametricValue getParametricValue1) {
|
|
this.getParametricValueAsync(getParametricValue1, null);
|
|
}
|
|
|
|
/// <remarks/>
|
|
public void getParametricValueAsync(getParametricValue getParametricValue1, object userState) {
|
|
if ((this.getParametricValueOperationCompleted == null)) {
|
|
this.getParametricValueOperationCompleted = new System.Threading.SendOrPostCallback(this.OngetParametricValueOperationCompleted);
|
|
}
|
|
this.InvokeAsync("getParametricValue", new object[] {
|
|
getParametricValue1}, this.getParametricValueOperationCompleted, userState);
|
|
}
|
|
|
|
private void OngetParametricValueOperationCompleted(object arg) {
|
|
if ((this.getParametricValueCompleted != null)) {
|
|
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
|
this.getParametricValueCompleted(this, new getParametricValueCompletedEventArgs(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.Xml", "4.7.3190.0")]
|
|
[System.SerializableAttribute()]
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://machineintegration.ws.atlmes.com/")]
|
|
public partial class getParametricValue {
|
|
|
|
private GetParametricValueRequest getParametricValueRequestField;
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
|
|
public GetParametricValueRequest GetParametricValueRequest {
|
|
get {
|
|
return this.getParametricValueRequestField;
|
|
}
|
|
set {
|
|
this.getParametricValueRequestField = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3190.0")]
|
|
[System.SerializableAttribute()]
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://machineintegration.ws.atlmes.com/")]
|
|
public partial class GetParametricValueRequest {
|
|
|
|
private string siteField;
|
|
|
|
private string sfcField;
|
|
|
|
private string userField;
|
|
|
|
private GetParametricValueRequestData[] parametricDataArrayField;
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
|
|
public string site {
|
|
get {
|
|
return this.siteField;
|
|
}
|
|
set {
|
|
this.siteField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
|
|
public string sfc {
|
|
get {
|
|
return this.sfcField;
|
|
}
|
|
set {
|
|
this.sfcField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
|
|
public string user {
|
|
get {
|
|
return this.userField;
|
|
}
|
|
set {
|
|
this.userField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlElementAttribute("parametricDataArray", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
|
|
public GetParametricValueRequestData[] parametricDataArray {
|
|
get {
|
|
return this.parametricDataArrayField;
|
|
}
|
|
set {
|
|
this.parametricDataArrayField = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3190.0")]
|
|
[System.SerializableAttribute()]
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://machineintegration.ws.atlmes.com/")]
|
|
public partial class GetParametricValueRequestData {
|
|
|
|
private string parameterField;
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
|
|
public string parameter {
|
|
get {
|
|
return this.parameterField;
|
|
}
|
|
set {
|
|
this.parameterField = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3190.0")]
|
|
[System.SerializableAttribute()]
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://machineintegration.ws.atlmes.com/")]
|
|
public partial class stackTraceElement {
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3190.0")]
|
|
[System.SerializableAttribute()]
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://machineintegration.ws.atlmes.com/")]
|
|
public partial class BusinessException {
|
|
|
|
private object[] detailsField;
|
|
|
|
private int errorCodeField;
|
|
|
|
private string messageField;
|
|
|
|
private stackTraceElement[] suppressedField;
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlElementAttribute("details", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
|
|
public object[] details {
|
|
get {
|
|
return this.detailsField;
|
|
}
|
|
set {
|
|
this.detailsField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
|
|
public int errorCode {
|
|
get {
|
|
return this.errorCodeField;
|
|
}
|
|
set {
|
|
this.errorCodeField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
|
|
public string message {
|
|
get {
|
|
return this.messageField;
|
|
}
|
|
set {
|
|
this.messageField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlArrayAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
|
|
[System.Xml.Serialization.XmlArrayItemAttribute("stackTrace", typeof(stackTraceElement), Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
|
|
public stackTraceElement[] suppressed {
|
|
get {
|
|
return this.suppressedField;
|
|
}
|
|
set {
|
|
this.suppressedField = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3190.0")]
|
|
[System.SerializableAttribute()]
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://machineintegration.ws.atlmes.com/")]
|
|
public partial class GetParametricValueData {
|
|
|
|
private string parameterField;
|
|
|
|
private string valueField;
|
|
|
|
private string dateField;
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
|
|
public string parameter {
|
|
get {
|
|
return this.parameterField;
|
|
}
|
|
set {
|
|
this.parameterField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
|
|
public string value {
|
|
get {
|
|
return this.valueField;
|
|
}
|
|
set {
|
|
this.valueField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
|
|
public string date {
|
|
get {
|
|
return this.dateField;
|
|
}
|
|
set {
|
|
this.dateField = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3190.0")]
|
|
[System.SerializableAttribute()]
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://machineintegration.ws.atlmes.com/")]
|
|
public partial class GetParametricValueResponse {
|
|
|
|
private int codeField;
|
|
|
|
private string messageField;
|
|
|
|
private string sfcField;
|
|
|
|
private GetParametricValueData[] parametricDataArrayField;
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
|
|
public int code {
|
|
get {
|
|
return this.codeField;
|
|
}
|
|
set {
|
|
this.codeField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
|
|
public string message {
|
|
get {
|
|
return this.messageField;
|
|
}
|
|
set {
|
|
this.messageField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
|
|
public string sfc {
|
|
get {
|
|
return this.sfcField;
|
|
}
|
|
set {
|
|
this.sfcField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlElementAttribute("parametricDataArray", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
|
|
public GetParametricValueData[] parametricDataArray {
|
|
get {
|
|
return this.parametricDataArrayField;
|
|
}
|
|
set {
|
|
this.parametricDataArrayField = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3190.0")]
|
|
[System.SerializableAttribute()]
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://machineintegration.ws.atlmes.com/")]
|
|
public partial class getParametricValueResponse {
|
|
|
|
private GetParametricValueResponse returnField;
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
|
|
public GetParametricValueResponse @return {
|
|
get {
|
|
return this.returnField;
|
|
}
|
|
set {
|
|
this.returnField = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3190.0")]
|
|
public delegate void getParametricValueCompletedEventHandler(object sender, getParametricValueCompletedEventArgs e);
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3190.0")]
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
public partial class getParametricValueCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
|
|
|
private object[] results;
|
|
|
|
internal getParametricValueCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
|
base(exception, cancelled, userState) {
|
|
this.results = results;
|
|
}
|
|
|
|
/// <remarks/>
|
|
public object Result {
|
|
get {
|
|
this.RaiseExceptionIfNecessary();
|
|
return ((object)(this.results[0]));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#pragma warning restore 1591 |