var CommonWebService=function() {
CommonWebService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
CommonWebService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return CommonWebService._staticInstance.get_path();},
HelloWorld: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(), 'HelloWorld',false,{},succeededCallback,failedCallback,userContext); },
GetAdmin_NamePassword:function(struname,strpassword,succeededCallback, failedCallback, userContext) {
/// <param name="struname" type="String">System.String</param>
/// <param name="strpassword" 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(), 'GetAdmin_NamePassword',false,{struname:struname,strpassword:strpassword},succeededCallback,failedCallback,userContext); },
GetCustomer_NamePassword:function(struname,strpassword,succeededCallback, failedCallback, userContext) {
/// <param name="struname" type="String">System.String</param>
/// <param name="strpassword" 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(), 'GetCustomer_NamePassword',false,{struname:struname,strpassword:strpassword},succeededCallback,failedCallback,userContext); },
GetCustomer_NamePasswordWithJSON:function(struname,strpassword,succeededCallback, failedCallback, userContext) {
/// <param name="struname" type="String">System.String</param>
/// <param name="strpassword" 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(), 'GetCustomer_NamePasswordWithJSON',false,{struname:struname,strpassword:strpassword},succeededCallback,failedCallback,userContext); },
GetUserName:function(Uname,succeededCallback, failedCallback, userContext) {
/// <param name="Uname" 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(), 'GetUserName',false,{Uname:Uname},succeededCallback,failedCallback,userContext); },
EmailAdd_Exists:function(strEmail,succeededCallback, failedCallback, userContext) {
/// <param name="strEmail" 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(), 'EmailAdd_Exists',false,{strEmail:strEmail},succeededCallback,failedCallback,userContext); },
Subscriber_EmailAdd_Exists:function(strEmail,succeededCallback, failedCallback, userContext) {
/// <param name="strEmail" 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(), 'Subscriber_EmailAdd_Exists',false,{strEmail:strEmail},succeededCallback,failedCallback,userContext); },
GetQuantity:function(pid,size,color,brand,succeededCallback, failedCallback, userContext) {
/// <param name="pid" type="String">System.String</param>
/// <param name="size" type="String">System.String</param>
/// <param name="color" type="String">System.String</param>
/// <param name="brand" 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(), 'GetQuantity',false,{pid:pid,size:size,color:color,brand:brand},succeededCallback,failedCallback,userContext); },
Voucher_Exists:function(vouchercode,succeededCallback, failedCallback, userContext) {
/// <param name="vouchercode" 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(), 'Voucher_Exists',false,{vouchercode:vouchercode},succeededCallback,failedCallback,userContext); },
Promocode_Exists:function(pcode,succeededCallback, failedCallback, userContext) {
/// <param name="pcode" 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(), 'Promocode_Exists',false,{pcode:pcode},succeededCallback,failedCallback,userContext); },
OrderID_Exist:function(ord_id,succeededCallback, failedCallback, userContext) {
/// <param name="ord_id" 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(), 'OrderID_Exist',false,{ord_id:ord_id},succeededCallback,failedCallback,userContext); },
GetGiftWrapImage:function(id,succeededCallback, failedCallback, userContext) {
/// <param name="id" 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(), 'GetGiftWrapImage',false,{id:id},succeededCallback,failedCallback,userContext); },
GetAllDetailGiftWrapImage:function(id,succeededCallback, failedCallback, userContext) {
/// <param name="id" 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(), 'GetAllDetailGiftWrapImage',false,{id:id},succeededCallback,failedCallback,userContext); },
GetCartTable:function(id,txtqty,a_qty,succeededCallback, failedCallback, userContext) {
/// <param name="id" type="String">System.String</param>
/// <param name="txtqty" type="String">System.String</param>
/// <param name="a_qty" 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(), 'GetCartTable',false,{id:id,txtqty:txtqty,a_qty:a_qty},succeededCallback,failedCallback,userContext); }}
CommonWebService.registerClass('CommonWebService',Sys.Net.WebServiceProxy);
CommonWebService._staticInstance = new CommonWebService();
CommonWebService.set_path = function(value) {
CommonWebService._staticInstance.set_path(value); }
CommonWebService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return CommonWebService._staticInstance.get_path();}
CommonWebService.set_timeout = function(value) {
CommonWebService._staticInstance.set_timeout(value); }
CommonWebService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return CommonWebService._staticInstance.get_timeout(); }
CommonWebService.set_defaultUserContext = function(value) { 
CommonWebService._staticInstance.set_defaultUserContext(value); }
CommonWebService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return CommonWebService._staticInstance.get_defaultUserContext(); }
CommonWebService.set_defaultSucceededCallback = function(value) { 
 CommonWebService._staticInstance.set_defaultSucceededCallback(value); }
CommonWebService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return CommonWebService._staticInstance.get_defaultSucceededCallback(); }
CommonWebService.set_defaultFailedCallback = function(value) { 
CommonWebService._staticInstance.set_defaultFailedCallback(value); }
CommonWebService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return CommonWebService._staticInstance.get_defaultFailedCallback(); }
CommonWebService.set_path("/CommonWebService.asmx");
CommonWebService.HelloWorld= 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>
CommonWebService._staticInstance.HelloWorld(onSuccess,onFailed,userContext); }
CommonWebService.GetAdmin_NamePassword= function(struname,strpassword,onSuccess,onFailed,userContext) {
/// <param name="struname" type="String">System.String</param>
/// <param name="strpassword" 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>
CommonWebService._staticInstance.GetAdmin_NamePassword(struname,strpassword,onSuccess,onFailed,userContext); }
CommonWebService.GetCustomer_NamePassword= function(struname,strpassword,onSuccess,onFailed,userContext) {
/// <param name="struname" type="String">System.String</param>
/// <param name="strpassword" 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>
CommonWebService._staticInstance.GetCustomer_NamePassword(struname,strpassword,onSuccess,onFailed,userContext); }
CommonWebService.GetCustomer_NamePasswordWithJSON= function(struname,strpassword,onSuccess,onFailed,userContext) {
/// <param name="struname" type="String">System.String</param>
/// <param name="strpassword" 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>
CommonWebService._staticInstance.GetCustomer_NamePasswordWithJSON(struname,strpassword,onSuccess,onFailed,userContext); }
CommonWebService.GetUserName= function(Uname,onSuccess,onFailed,userContext) {
/// <param name="Uname" 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>
CommonWebService._staticInstance.GetUserName(Uname,onSuccess,onFailed,userContext); }
CommonWebService.EmailAdd_Exists= function(strEmail,onSuccess,onFailed,userContext) {
/// <param name="strEmail" 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>
CommonWebService._staticInstance.EmailAdd_Exists(strEmail,onSuccess,onFailed,userContext); }
CommonWebService.Subscriber_EmailAdd_Exists= function(strEmail,onSuccess,onFailed,userContext) {
/// <param name="strEmail" 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>
CommonWebService._staticInstance.Subscriber_EmailAdd_Exists(strEmail,onSuccess,onFailed,userContext); }
CommonWebService.GetQuantity= function(pid,size,color,brand,onSuccess,onFailed,userContext) {
/// <param name="pid" type="String">System.String</param>
/// <param name="size" type="String">System.String</param>
/// <param name="color" type="String">System.String</param>
/// <param name="brand" 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>
CommonWebService._staticInstance.GetQuantity(pid,size,color,brand,onSuccess,onFailed,userContext); }
CommonWebService.Voucher_Exists= function(vouchercode,onSuccess,onFailed,userContext) {
/// <param name="vouchercode" 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>
CommonWebService._staticInstance.Voucher_Exists(vouchercode,onSuccess,onFailed,userContext); }
CommonWebService.Promocode_Exists= function(pcode,onSuccess,onFailed,userContext) {
/// <param name="pcode" 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>
CommonWebService._staticInstance.Promocode_Exists(pcode,onSuccess,onFailed,userContext); }
CommonWebService.OrderID_Exist= function(ord_id,onSuccess,onFailed,userContext) {
/// <param name="ord_id" 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>
CommonWebService._staticInstance.OrderID_Exist(ord_id,onSuccess,onFailed,userContext); }
CommonWebService.GetGiftWrapImage= function(id,onSuccess,onFailed,userContext) {
/// <param name="id" 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>
CommonWebService._staticInstance.GetGiftWrapImage(id,onSuccess,onFailed,userContext); }
CommonWebService.GetAllDetailGiftWrapImage= function(id,onSuccess,onFailed,userContext) {
/// <param name="id" 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>
CommonWebService._staticInstance.GetAllDetailGiftWrapImage(id,onSuccess,onFailed,userContext); }
CommonWebService.GetCartTable= function(id,txtqty,a_qty,onSuccess,onFailed,userContext) {
/// <param name="id" type="String">System.String</param>
/// <param name="txtqty" type="String">System.String</param>
/// <param name="a_qty" 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>
CommonWebService._staticInstance.GetCartTable(id,txtqty,a_qty,onSuccess,onFailed,userContext); }

