var MyWebService=function() {
MyWebService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
MyWebService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return MyWebService._staticInstance.get_path();},
Get_CustomerId:function(shortname,ls_pass,succeededCallback, failedCallback, userContext) {
/// <param name="shortname" type="String">System.String</param>
/// <param name="ls_pass" 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(), 'Get_CustomerId',false,{shortname:shortname,ls_pass:ls_pass},succeededCallback,failedCallback,userContext); },
Get_UserId:function(custid,username,succeededCallback, failedCallback, userContext) {
/// <param name="custid" type="Number">System.Int32</param>
/// <param name="username" 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(), 'Get_UserId',false,{custid:custid,username:username},succeededCallback,failedCallback,userContext); },
Get_CustomerId1:function(shortname,succeededCallback, failedCallback, userContext) {
/// <param name="shortname" 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(), 'Get_CustomerId1',false,{shortname:shortname},succeededCallback,failedCallback,userContext); },
Get_UserId1:function(custid,username,succeededCallback, failedCallback, userContext) {
/// <param name="custid" type="Number">System.Int32</param>
/// <param name="username" 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(), 'Get_UserId1',false,{custid:custid,username:username},succeededCallback,failedCallback,userContext); },
SaveCustomerSessions:function(companycode,companyname,startdate,enddate,succeededCallback, failedCallback, userContext) {
/// <param name="companycode" type="Number">System.Int32</param>
/// <param name="companyname" type="String">System.String</param>
/// <param name="startdate" type="String">System.String</param>
/// <param name="enddate" 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(), 'SaveCustomerSessions',false,{companycode:companycode,companyname:companyname,startdate:startdate,enddate:enddate},succeededCallback,failedCallback,userContext); },
SaveUserSessions:function(userid,customerid,companycodes,username,customername,password,succeededCallback, failedCallback, userContext) {
/// <param name="userid" type="Number">System.Int32</param>
/// <param name="customerid" type="Number">System.Int32</param>
/// <param name="companycodes" type="String">System.String</param>
/// <param name="username" type="String">System.String</param>
/// <param name="customername" type="String">System.String</param>
/// <param name="password" 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(), 'SaveUserSessions',false,{userid:userid,customerid:customerid,companycodes:companycodes,username:username,customername:customername,password:password},succeededCallback,failedCallback,userContext); },
GetUserSessions:function(succeededCallback, failedCallback, userContext) {
/// <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(), 'GetUserSessions',false,{},succeededCallback,failedCallback,userContext); },
GetCompanySessions:function(succeededCallback, failedCallback, userContext) {
/// <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(), 'GetCompanySessions',false,{},succeededCallback,failedCallback,userContext); },
getproductlist:function(ll_brandcode,ll_prodgroup,ll_progroupname,succeededCallback, failedCallback, userContext) {
/// <param name="ll_brandcode" type="Number">System.Int32</param>
/// <param name="ll_prodgroup" type="Number">System.Int32</param>
/// <param name="ll_progroupname" 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(), 'getproductlist',false,{ll_brandcode:ll_brandcode,ll_prodgroup:ll_prodgroup,ll_progroupname:ll_progroupname},succeededCallback,failedCallback,userContext); }}
MyWebService.registerClass('MyWebService',Sys.Net.WebServiceProxy);
MyWebService._staticInstance = new MyWebService();
MyWebService.set_path = function(value) {
MyWebService._staticInstance.set_path(value); }
MyWebService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return MyWebService._staticInstance.get_path();}
MyWebService.set_timeout = function(value) {
MyWebService._staticInstance.set_timeout(value); }
MyWebService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return MyWebService._staticInstance.get_timeout(); }
MyWebService.set_defaultUserContext = function(value) { 
MyWebService._staticInstance.set_defaultUserContext(value); }
MyWebService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return MyWebService._staticInstance.get_defaultUserContext(); }
MyWebService.set_defaultSucceededCallback = function(value) { 
 MyWebService._staticInstance.set_defaultSucceededCallback(value); }
MyWebService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return MyWebService._staticInstance.get_defaultSucceededCallback(); }
MyWebService.set_defaultFailedCallback = function(value) { 
MyWebService._staticInstance.set_defaultFailedCallback(value); }
MyWebService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return MyWebService._staticInstance.get_defaultFailedCallback(); }
MyWebService.set_path("/MyWebService.asmx");
MyWebService.Get_CustomerId= function(shortname,ls_pass,onSuccess,onFailed,userContext) {
/// <param name="shortname" type="String">System.String</param>
/// <param name="ls_pass" 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>
MyWebService._staticInstance.Get_CustomerId(shortname,ls_pass,onSuccess,onFailed,userContext); }
MyWebService.Get_UserId= function(custid,username,onSuccess,onFailed,userContext) {
/// <param name="custid" type="Number">System.Int32</param>
/// <param name="username" 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>
MyWebService._staticInstance.Get_UserId(custid,username,onSuccess,onFailed,userContext); }
MyWebService.Get_CustomerId1= function(shortname,onSuccess,onFailed,userContext) {
/// <param name="shortname" 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>
MyWebService._staticInstance.Get_CustomerId1(shortname,onSuccess,onFailed,userContext); }
MyWebService.Get_UserId1= function(custid,username,onSuccess,onFailed,userContext) {
/// <param name="custid" type="Number">System.Int32</param>
/// <param name="username" 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>
MyWebService._staticInstance.Get_UserId1(custid,username,onSuccess,onFailed,userContext); }
MyWebService.SaveCustomerSessions= function(companycode,companyname,startdate,enddate,onSuccess,onFailed,userContext) {
/// <param name="companycode" type="Number">System.Int32</param>
/// <param name="companyname" type="String">System.String</param>
/// <param name="startdate" type="String">System.String</param>
/// <param name="enddate" 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>
MyWebService._staticInstance.SaveCustomerSessions(companycode,companyname,startdate,enddate,onSuccess,onFailed,userContext); }
MyWebService.SaveUserSessions= function(userid,customerid,companycodes,username,customername,password,onSuccess,onFailed,userContext) {
/// <param name="userid" type="Number">System.Int32</param>
/// <param name="customerid" type="Number">System.Int32</param>
/// <param name="companycodes" type="String">System.String</param>
/// <param name="username" type="String">System.String</param>
/// <param name="customername" type="String">System.String</param>
/// <param name="password" 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>
MyWebService._staticInstance.SaveUserSessions(userid,customerid,companycodes,username,customername,password,onSuccess,onFailed,userContext); }
MyWebService.GetUserSessions= function(onSuccess,onFailed,userContext) {
/// <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>
MyWebService._staticInstance.GetUserSessions(onSuccess,onFailed,userContext); }
MyWebService.GetCompanySessions= function(onSuccess,onFailed,userContext) {
/// <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>
MyWebService._staticInstance.GetCompanySessions(onSuccess,onFailed,userContext); }
MyWebService.getproductlist= function(ll_brandcode,ll_prodgroup,ll_progroupname,onSuccess,onFailed,userContext) {
/// <param name="ll_brandcode" type="Number">System.Int32</param>
/// <param name="ll_prodgroup" type="Number">System.Int32</param>
/// <param name="ll_progroupname" 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>
MyWebService._staticInstance.getproductlist(ll_brandcode,ll_prodgroup,ll_progroupname,onSuccess,onFailed,userContext); }

