CRM Module update

This commit is contained in:
dev_amdtel 2013-12-01 01:06:32 +04:00
parent 2b68bfb8bf
commit 18cd090671
37 changed files with 2067 additions and 204 deletions

View file

@ -29,7 +29,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.1433
// Runtime Version:2.0.50727.5466
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@ -38,19 +38,21 @@
//
// This source code was auto-generated by wsdl, Version=2.0.50727.42.
//
//
using WebsitePanel.Providers;
using WebsitePanel.Providers.Common;
using WebsitePanel.Providers.HostedSolution;
using WebsitePanel.Providers.ResultObjects;
//
// This source code was auto-generated by wsdl, Version=2.0.50727.42.
//
namespace WebsitePanel.EnterpriseServer {
using System.Diagnostics;
using System.Xml.Serialization;
using System.Web.Services;
using System.ComponentModel;
using System.Web.Services.Protocols;
using System;
using System.Xml.Serialization;
using System.Diagnostics;
/// <remarks/>
@ -81,13 +83,21 @@ namespace WebsitePanel.EnterpriseServer {
private System.Threading.SendOrPostCallback SetUserRolesOperationCompleted;
private System.Threading.SendOrPostCallback SetUserCALTypeOperationCompleted;
private System.Threading.SendOrPostCallback ChangeUserStateOperationCompleted;
private System.Threading.SendOrPostCallback GetCrmUserOperationCompleted;
private System.Threading.SendOrPostCallback SetMaxDBSizeOperationCompleted;
private System.Threading.SendOrPostCallback GetDBSizeOperationCompleted;
private System.Threading.SendOrPostCallback GetMaxDBSizeOperationCompleted;
/// <remarks/>
public esCRM() {
this.Url = "http://localhost/WebsitePanelEnterpriseServer/esCRM.asmx";
this.Url = "http://localhost:9002/esCRM.asmx";
}
/// <remarks/>
@ -120,12 +130,24 @@ namespace WebsitePanel.EnterpriseServer {
/// <remarks/>
public event SetUserRolesCompletedEventHandler SetUserRolesCompleted;
/// <remarks/>
public event SetUserCALTypeCompletedEventHandler SetUserCALTypeCompleted;
/// <remarks/>
public event ChangeUserStateCompletedEventHandler ChangeUserStateCompleted;
/// <remarks/>
public event GetCrmUserCompletedEventHandler GetCrmUserCompleted;
/// <remarks/>
public event SetMaxDBSizeCompletedEventHandler SetMaxDBSizeCompleted;
/// <remarks/>
public event GetDBSizeCompletedEventHandler GetDBSizeCompleted;
/// <remarks/>
public event GetMaxDBSizeCompletedEventHandler GetMaxDBSizeCompleted;
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/CreateOrganization", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public OrganizationResult CreateOrganization(int organizationId, string baseCurrencyCode, string baseCurrencyName, string baseCurrencySymbol, string regionName, int userId, string collation) {
@ -369,20 +391,22 @@ namespace WebsitePanel.EnterpriseServer {
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetCRMUserCount", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public IntResult GetCRMUserCount(int itemId, string name, string email) {
public IntResult GetCRMUserCount(int itemId, string name, string email, int CALType) {
object[] results = this.Invoke("GetCRMUserCount", new object[] {
itemId,
name,
email});
email,
CALType});
return ((IntResult)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginGetCRMUserCount(int itemId, string name, string email, System.AsyncCallback callback, object asyncState) {
public System.IAsyncResult BeginGetCRMUserCount(int itemId, string name, string email, int CALType, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("GetCRMUserCount", new object[] {
itemId,
name,
email}, callback, asyncState);
email,
CALType}, callback, asyncState);
}
/// <remarks/>
@ -392,19 +416,20 @@ namespace WebsitePanel.EnterpriseServer {
}
/// <remarks/>
public void GetCRMUserCountAsync(int itemId, string name, string email) {
this.GetCRMUserCountAsync(itemId, name, email, null);
public void GetCRMUserCountAsync(int itemId, string name, string email, int CALType) {
this.GetCRMUserCountAsync(itemId, name, email, CALType, null);
}
/// <remarks/>
public void GetCRMUserCountAsync(int itemId, string name, string email, object userState) {
public void GetCRMUserCountAsync(int itemId, string name, string email, int CALType, object userState) {
if ((this.GetCRMUserCountOperationCompleted == null)) {
this.GetCRMUserCountOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetCRMUserCountOperationCompleted);
}
this.InvokeAsync("GetCRMUserCount", new object[] {
itemId,
name,
email}, this.GetCRMUserCountOperationCompleted, userState);
email,
CALType}, this.GetCRMUserCountOperationCompleted, userState);
}
private void OnGetCRMUserCountOperationCompleted(object arg) {
@ -416,22 +441,24 @@ namespace WebsitePanel.EnterpriseServer {
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/CreateCRMUser", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public UserResult CreateCRMUser(OrganizationUser user, int packageId, int itemId, System.Guid businessUnitOrgId) {
public UserResult CreateCRMUser(OrganizationUser user, int packageId, int itemId, System.Guid businessUnitOrgId, int CALType) {
object[] results = this.Invoke("CreateCRMUser", new object[] {
user,
packageId,
itemId,
businessUnitOrgId});
businessUnitOrgId,
CALType});
return ((UserResult)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginCreateCRMUser(OrganizationUser user, int packageId, int itemId, System.Guid businessUnitOrgId, System.AsyncCallback callback, object asyncState) {
public System.IAsyncResult BeginCreateCRMUser(OrganizationUser user, int packageId, int itemId, System.Guid businessUnitOrgId, int CALType, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("CreateCRMUser", new object[] {
user,
packageId,
itemId,
businessUnitOrgId}, callback, asyncState);
businessUnitOrgId,
CALType}, callback, asyncState);
}
/// <remarks/>
@ -441,12 +468,12 @@ namespace WebsitePanel.EnterpriseServer {
}
/// <remarks/>
public void CreateCRMUserAsync(OrganizationUser user, int packageId, int itemId, System.Guid businessUnitOrgId) {
this.CreateCRMUserAsync(user, packageId, itemId, businessUnitOrgId, null);
public void CreateCRMUserAsync(OrganizationUser user, int packageId, int itemId, System.Guid businessUnitOrgId, int CALType) {
this.CreateCRMUserAsync(user, packageId, itemId, businessUnitOrgId, CALType, null);
}
/// <remarks/>
public void CreateCRMUserAsync(OrganizationUser user, int packageId, int itemId, System.Guid businessUnitOrgId, object userState) {
public void CreateCRMUserAsync(OrganizationUser user, int packageId, int itemId, System.Guid businessUnitOrgId, int CALType, object userState) {
if ((this.CreateCRMUserOperationCompleted == null)) {
this.CreateCRMUserOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateCRMUserOperationCompleted);
}
@ -454,7 +481,8 @@ namespace WebsitePanel.EnterpriseServer {
user,
packageId,
itemId,
businessUnitOrgId}, this.CreateCRMUserOperationCompleted, userState);
businessUnitOrgId,
CALType}, this.CreateCRMUserOperationCompleted, userState);
}
private void OnCreateCRMUserOperationCompleted(object arg) {
@ -605,6 +633,56 @@ namespace WebsitePanel.EnterpriseServer {
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/SetUserCALType", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public ResultObject SetUserCALType(int itemId, int accountId, int packageId, int CALType) {
object[] results = this.Invoke("SetUserCALType", new object[] {
itemId,
accountId,
packageId,
CALType});
return ((ResultObject)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginSetUserCALType(int itemId, int accountId, int packageId, int CALType, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("SetUserCALType", new object[] {
itemId,
accountId,
packageId,
CALType}, callback, asyncState);
}
/// <remarks/>
public ResultObject EndSetUserCALType(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((ResultObject)(results[0]));
}
/// <remarks/>
public void SetUserCALTypeAsync(int itemId, int accountId, int packageId, int CALType) {
this.SetUserCALTypeAsync(itemId, accountId, packageId, CALType, null);
}
/// <remarks/>
public void SetUserCALTypeAsync(int itemId, int accountId, int packageId, int CALType, object userState) {
if ((this.SetUserCALTypeOperationCompleted == null)) {
this.SetUserCALTypeOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetUserCALTypeOperationCompleted);
}
this.InvokeAsync("SetUserCALType", new object[] {
itemId,
accountId,
packageId,
CALType}, this.SetUserCALTypeOperationCompleted, userState);
}
private void OnSetUserCALTypeOperationCompleted(object arg) {
if ((this.SetUserCALTypeCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.SetUserCALTypeCompleted(this, new SetUserCALTypeCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/ChangeUserState", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public ResultObject ChangeUserState(int itemId, int accountId, bool disable) {
@ -696,41 +774,147 @@ namespace WebsitePanel.EnterpriseServer {
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/SetMaxDBSize", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public ResultObject SetMaxDBSize(int itemId, int packageId, long maxSize) {
object[] results = this.Invoke("SetMaxDBSize", new object[] {
itemId,
packageId,
maxSize});
return ((ResultObject)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginSetMaxDBSize(int itemId, int packageId, long maxSize, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("SetMaxDBSize", new object[] {
itemId,
packageId,
maxSize}, callback, asyncState);
}
/// <remarks/>
public ResultObject EndSetMaxDBSize(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((ResultObject)(results[0]));
}
/// <remarks/>
public void SetMaxDBSizeAsync(int itemId, int packageId, long maxSize) {
this.SetMaxDBSizeAsync(itemId, packageId, maxSize, null);
}
/// <remarks/>
public void SetMaxDBSizeAsync(int itemId, int packageId, long maxSize, object userState) {
if ((this.SetMaxDBSizeOperationCompleted == null)) {
this.SetMaxDBSizeOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetMaxDBSizeOperationCompleted);
}
this.InvokeAsync("SetMaxDBSize", new object[] {
itemId,
packageId,
maxSize}, this.SetMaxDBSizeOperationCompleted, userState);
}
private void OnSetMaxDBSizeOperationCompleted(object arg) {
if ((this.SetMaxDBSizeCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.SetMaxDBSizeCompleted(this, new SetMaxDBSizeCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetDBSize", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public long GetDBSize(int itemId, int packageId) {
object[] results = this.Invoke("GetDBSize", new object[] {
itemId,
packageId});
return ((long)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginGetDBSize(int itemId, int packageId, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("GetDBSize", new object[] {
itemId,
packageId}, callback, asyncState);
}
/// <remarks/>
public long EndGetDBSize(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((long)(results[0]));
}
/// <remarks/>
public void GetDBSizeAsync(int itemId, int packageId) {
this.GetDBSizeAsync(itemId, packageId, null);
}
/// <remarks/>
public void GetDBSizeAsync(int itemId, int packageId, object userState) {
if ((this.GetDBSizeOperationCompleted == null)) {
this.GetDBSizeOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetDBSizeOperationCompleted);
}
this.InvokeAsync("GetDBSize", new object[] {
itemId,
packageId}, this.GetDBSizeOperationCompleted, userState);
}
private void OnGetDBSizeOperationCompleted(object arg) {
if ((this.GetDBSizeCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetDBSizeCompleted(this, new GetDBSizeCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetMaxDBSize", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public long GetMaxDBSize(int itemId, int packageId) {
object[] results = this.Invoke("GetMaxDBSize", new object[] {
itemId,
packageId});
return ((long)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginGetMaxDBSize(int itemId, int packageId, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("GetMaxDBSize", new object[] {
itemId,
packageId}, callback, asyncState);
}
/// <remarks/>
public long EndGetMaxDBSize(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((long)(results[0]));
}
/// <remarks/>
public void GetMaxDBSizeAsync(int itemId, int packageId) {
this.GetMaxDBSizeAsync(itemId, packageId, null);
}
/// <remarks/>
public void GetMaxDBSizeAsync(int itemId, int packageId, object userState) {
if ((this.GetMaxDBSizeOperationCompleted == null)) {
this.GetMaxDBSizeOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetMaxDBSizeOperationCompleted);
}
this.InvokeAsync("GetMaxDBSize", new object[] {
itemId,
packageId}, this.GetMaxDBSizeOperationCompleted, userState);
}
private void OnGetMaxDBSizeOperationCompleted(object arg) {
if ((this.GetMaxDBSizeCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetMaxDBSizeCompleted(this, new GetMaxDBSizeCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
public new void CancelAsync(object userState) {
base.CancelAsync(userState);
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
public delegate void CreateOrganizationCompletedEventHandler(object sender, CreateOrganizationCompletedEventArgs e);
@ -991,6 +1175,32 @@ namespace WebsitePanel.EnterpriseServer {
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
public delegate void SetUserCALTypeCompletedEventHandler(object sender, SetUserCALTypeCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class SetUserCALTypeCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal SetUserCALTypeCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public ResultObject Result {
get {
this.RaiseExceptionIfNecessary();
return ((ResultObject)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
public delegate void ChangeUserStateCompletedEventHandler(object sender, ChangeUserStateCompletedEventArgs e);
@ -1042,4 +1252,82 @@ namespace WebsitePanel.EnterpriseServer {
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
public delegate void SetMaxDBSizeCompletedEventHandler(object sender, SetMaxDBSizeCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class SetMaxDBSizeCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal SetMaxDBSizeCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public ResultObject Result {
get {
this.RaiseExceptionIfNecessary();
return ((ResultObject)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
public delegate void GetDBSizeCompletedEventHandler(object sender, GetDBSizeCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class GetDBSizeCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GetDBSizeCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public long Result {
get {
this.RaiseExceptionIfNecessary();
return ((long)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
public delegate void GetMaxDBSizeCompletedEventHandler(object sender, GetMaxDBSizeCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class GetMaxDBSizeCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GetMaxDBSizeCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public long Result {
get {
this.RaiseExceptionIfNecessary();
return ((long)(this.results[0]));
}
}
}
}