var MessagesForSupplier=function() {
MessagesForSupplier.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
MessagesForSupplier.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return MessagesForSupplier._staticInstance.get_path();},
FindMessageById:function(ID,succeededCallback, failedCallback, userContext) {
/// <param name="ID" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'FindMessageById',false,{ID:ID},succeededCallback,failedCallback,userContext); },
ContactUs:function(FName,LName,Company,Email,Phone,Subject,Note,succeededCallback, failedCallback, userContext) {
/// <param name="FName" type="String">System.String</param>
/// <param name="LName" type="String">System.String</param>
/// <param name="Company" type="String">System.String</param>
/// <param name="Email" type="String">System.String</param>
/// <param name="Phone" type="String">System.String</param>
/// <param name="Subject" type="String">System.String</param>
/// <param name="Note" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'ContactUs',false,{FName:FName,LName:LName,Company:Company,Email:Email,Phone:Phone,Subject:Subject,Note:Note},succeededCallback,failedCallback,userContext); },
GetAllReplyByMessageID:function(ID,succeededCallback, failedCallback, userContext) {
/// <param name="ID" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetAllReplyByMessageID',false,{ID:ID},succeededCallback,failedCallback,userContext); },
ReplyMessage:function(iMessageId,iSupplierId,msg,succeededCallback, failedCallback, userContext) {
/// <param name="iMessageId" type="Number">System.Int32</param>
/// <param name="iSupplierId" type="Number">System.Int32</param>
/// <param name="msg" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'ReplyMessage',false,{iMessageId:iMessageId,iSupplierId:iSupplierId,msg:msg},succeededCallback,failedCallback,userContext); }}
MessagesForSupplier.registerClass('MessagesForSupplier',Sys.Net.WebServiceProxy);
MessagesForSupplier._staticInstance = new MessagesForSupplier();
MessagesForSupplier.set_path = function(value) {
MessagesForSupplier._staticInstance.set_path(value); }
MessagesForSupplier.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return MessagesForSupplier._staticInstance.get_path();}
MessagesForSupplier.set_timeout = function(value) {
MessagesForSupplier._staticInstance.set_timeout(value); }
MessagesForSupplier.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return MessagesForSupplier._staticInstance.get_timeout(); }
MessagesForSupplier.set_defaultUserContext = function(value) { 
MessagesForSupplier._staticInstance.set_defaultUserContext(value); }
MessagesForSupplier.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return MessagesForSupplier._staticInstance.get_defaultUserContext(); }
MessagesForSupplier.set_defaultSucceededCallback = function(value) { 
 MessagesForSupplier._staticInstance.set_defaultSucceededCallback(value); }
MessagesForSupplier.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return MessagesForSupplier._staticInstance.get_defaultSucceededCallback(); }
MessagesForSupplier.set_defaultFailedCallback = function(value) { 
MessagesForSupplier._staticInstance.set_defaultFailedCallback(value); }
MessagesForSupplier.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return MessagesForSupplier._staticInstance.get_defaultFailedCallback(); }
MessagesForSupplier.set_path("/desktopmodules/support/MessagesForSupplier.asmx");
MessagesForSupplier.FindMessageById= function(ID,onSuccess,onFailed,userContext) {
/// <param name="ID" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
MessagesForSupplier._staticInstance.FindMessageById(ID,onSuccess,onFailed,userContext); }
MessagesForSupplier.ContactUs= function(FName,LName,Company,Email,Phone,Subject,Note,onSuccess,onFailed,userContext) {
/// <param name="FName" type="String">System.String</param>
/// <param name="LName" type="String">System.String</param>
/// <param name="Company" type="String">System.String</param>
/// <param name="Email" type="String">System.String</param>
/// <param name="Phone" type="String">System.String</param>
/// <param name="Subject" type="String">System.String</param>
/// <param name="Note" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
MessagesForSupplier._staticInstance.ContactUs(FName,LName,Company,Email,Phone,Subject,Note,onSuccess,onFailed,userContext); }
MessagesForSupplier.GetAllReplyByMessageID= function(ID,onSuccess,onFailed,userContext) {
/// <param name="ID" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
MessagesForSupplier._staticInstance.GetAllReplyByMessageID(ID,onSuccess,onFailed,userContext); }
MessagesForSupplier.ReplyMessage= function(iMessageId,iSupplierId,msg,onSuccess,onFailed,userContext) {
/// <param name="iMessageId" type="Number">System.Int32</param>
/// <param name="iSupplierId" type="Number">System.Int32</param>
/// <param name="msg" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
MessagesForSupplier._staticInstance.ReplyMessage(iMessageId,iSupplierId,msg,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(MessageForSupplier) === 'undefined') {
var MessageForSupplier=gtc("MessageForSupplier");
MessageForSupplier.registerClass('MessageForSupplier');
}
