var CvDataService=function() {
CvDataService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
CvDataService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return CvDataService._staticInstance.get_path();},
AddEducation:function(degree,educationCenter,startedDate,endDate,isOngoing,educationDirection,levelOfEducation,avgGrade,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddEducation',false,{degree:degree,educationCenter:educationCenter,startedDate:startedDate,endDate:endDate,isOngoing:isOngoing,educationDirection:educationDirection,levelOfEducation:levelOfEducation,avgGrade:avgGrade},succeededCallback,failedCallback,userContext); },
GetEducation:function(id,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetEducation',false,{id:id},succeededCallback,failedCallback,userContext); },
UpdateEducation:function(id,degree,educationCenter,startedDate,endDate,isOngoing,educationDirection,levelOfEducation,avgGrade,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateEducation',false,{id:id,degree:degree,educationCenter:educationCenter,startedDate:startedDate,endDate:endDate,isOngoing:isOngoing,educationDirection:educationDirection,levelOfEducation:levelOfEducation,avgGrade:avgGrade},succeededCallback,failedCallback,userContext); },
DeleteEducation:function(id,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'DeleteEducation',false,{id:id},succeededCallback,failedCallback,userContext); },
AddJob:function(startedDate,endedDate,isPresentJob,title,companyName,industry,field,role,comments,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddJob',false,{startedDate:startedDate,endedDate:endedDate,isPresentJob:isPresentJob,title:title,companyName:companyName,industry:industry,field:field,role:role,comments:comments},succeededCallback,failedCallback,userContext); },
GetJob:function(id,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetJob',false,{id:id},succeededCallback,failedCallback,userContext); },
UpdateJob:function(id,startedDate,endedDate,isPresentJob,title,companyName,industry,field,role,comments,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateJob',false,{id:id,startedDate:startedDate,endedDate:endedDate,isPresentJob:isPresentJob,title:title,companyName:companyName,industry:industry,field:field,role:role,comments:comments},succeededCallback,failedCallback,userContext); },
DeleteJob:function(id,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'DeleteJob',false,{id:id},succeededCallback,failedCallback,userContext); },
AddCertification:function(startedDate,endedDate,isOngoing,typeOfCertification,courceLocation,comments,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddCertification',false,{startedDate:startedDate,endedDate:endedDate,isOngoing:isOngoing,typeOfCertification:typeOfCertification,courceLocation:courceLocation,comments:comments},succeededCallback,failedCallback,userContext); },
GetCertification:function(id,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCertification',false,{id:id},succeededCallback,failedCallback,userContext); },
UpdateCertification:function(id,startedDate,endedDate,isOngoing,typeOfCertification,courceLocation,comments,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateCertification',false,{id:id,startedDate:startedDate,endedDate:endedDate,isOngoing:isOngoing,typeOfCertification:typeOfCertification,courceLocation:courceLocation,comments:comments},succeededCallback,failedCallback,userContext); },
DeleteCertification:function(id,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'DeleteCertification',false,{id:id},succeededCallback,failedCallback,userContext); },
AddProject:function(startedDate,endedDate,isOngoing,title,companyName,comments,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddProject',false,{startedDate:startedDate,endedDate:endedDate,isOngoing:isOngoing,title:title,companyName:companyName,comments:comments},succeededCallback,failedCallback,userContext); },
UpdateProject:function(id,startedDate,endedDate,isOngoing,title,companyName,comments,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateProject',false,{id:id,startedDate:startedDate,endedDate:endedDate,isOngoing:isOngoing,title:title,companyName:companyName,comments:comments},succeededCallback,failedCallback,userContext); },
GetProject:function(id,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetProject',false,{id:id},succeededCallback,failedCallback,userContext); },
DeleteProject:function(id,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'DeleteProject',false,{id:id},succeededCallback,failedCallback,userContext); },
AddReferal:function(startedDate,endedDate,isOngoing,title,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddReferal',false,{startedDate:startedDate,endedDate:endedDate,isOngoing:isOngoing,title:title},succeededCallback,failedCallback,userContext); },
UpdateReferal:function(id,startedDate,endedDate,isOngoing,title,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateReferal',false,{id:id,startedDate:startedDate,endedDate:endedDate,isOngoing:isOngoing,title:title},succeededCallback,failedCallback,userContext); },
GetReferal:function(id,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetReferal',false,{id:id},succeededCallback,failedCallback,userContext); },
DeleteReferal:function(id,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'DeleteReferal',false,{id:id},succeededCallback,failedCallback,userContext); },
AddReference:function(name,position,company,email,phone,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddReference',false,{name:name,position:position,company:company,email:email,phone:phone},succeededCallback,failedCallback,userContext); },
GetReference:function(id,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetReference',false,{id:id},succeededCallback,failedCallback,userContext); },
UpdateReference:function(id,name,position,company,email,phone,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateReference',false,{id:id,name:name,position:position,company:company,email:email,phone:phone},succeededCallback,failedCallback,userContext); },
DeleteReference:function(id,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'DeleteReference',false,{id:id},succeededCallback,failedCallback,userContext); },
AddLanguage:function(langId,writtenLevelId,oralLevelId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddLanguage',false,{langId:langId,writtenLevelId:writtenLevelId,oralLevelId:oralLevelId},succeededCallback,failedCallback,userContext); },
UpdateLanguage:function(id,langId,writtenLevelId,oralLevelId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateLanguage',false,{id:id,langId:langId,writtenLevelId:writtenLevelId,oralLevelId:oralLevelId},succeededCallback,failedCallback,userContext); },
GetLanguage:function(id,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetLanguage',false,{id:id},succeededCallback,failedCallback,userContext); },
DeleteLanguage:function(id,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'DeleteLanguage',false,{id:id},succeededCallback,failedCallback,userContext); },
UpdateInformation:function(academicInformation,personalInformation,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateInformation',false,{academicInformation:academicInformation,personalInformation:personalInformation},succeededCallback,failedCallback,userContext); }}
CvDataService.registerClass('CvDataService',Sys.Net.WebServiceProxy);
CvDataService._staticInstance = new CvDataService();
CvDataService.set_path = function(value) { CvDataService._staticInstance.set_path(value); }
CvDataService.get_path = function() { return CvDataService._staticInstance.get_path(); }
CvDataService.set_timeout = function(value) { CvDataService._staticInstance.set_timeout(value); }
CvDataService.get_timeout = function() { return CvDataService._staticInstance.get_timeout(); }
CvDataService.set_defaultUserContext = function(value) { CvDataService._staticInstance.set_defaultUserContext(value); }
CvDataService.get_defaultUserContext = function() { return CvDataService._staticInstance.get_defaultUserContext(); }
CvDataService.set_defaultSucceededCallback = function(value) { CvDataService._staticInstance.set_defaultSucceededCallback(value); }
CvDataService.get_defaultSucceededCallback = function() { return CvDataService._staticInstance.get_defaultSucceededCallback(); }
CvDataService.set_defaultFailedCallback = function(value) { CvDataService._staticInstance.set_defaultFailedCallback(value); }
CvDataService.get_defaultFailedCallback = function() { return CvDataService._staticInstance.get_defaultFailedCallback(); }
CvDataService.set_path("/CvDataService.svc");
CvDataService.AddEducation= function(degree,educationCenter,startedDate,endDate,isOngoing,educationDirection,levelOfEducation,avgGrade,onSuccess,onFailed,userContext) {CvDataService._staticInstance.AddEducation(degree,educationCenter,startedDate,endDate,isOngoing,educationDirection,levelOfEducation,avgGrade,onSuccess,onFailed,userContext); }
CvDataService.GetEducation= function(id,onSuccess,onFailed,userContext) {CvDataService._staticInstance.GetEducation(id,onSuccess,onFailed,userContext); }
CvDataService.UpdateEducation= function(id,degree,educationCenter,startedDate,endDate,isOngoing,educationDirection,levelOfEducation,avgGrade,onSuccess,onFailed,userContext) {CvDataService._staticInstance.UpdateEducation(id,degree,educationCenter,startedDate,endDate,isOngoing,educationDirection,levelOfEducation,avgGrade,onSuccess,onFailed,userContext); }
CvDataService.DeleteEducation= function(id,onSuccess,onFailed,userContext) {CvDataService._staticInstance.DeleteEducation(id,onSuccess,onFailed,userContext); }
CvDataService.AddJob= function(startedDate,endedDate,isPresentJob,title,companyName,industry,field,role,comments,onSuccess,onFailed,userContext) {CvDataService._staticInstance.AddJob(startedDate,endedDate,isPresentJob,title,companyName,industry,field,role,comments,onSuccess,onFailed,userContext); }
CvDataService.GetJob= function(id,onSuccess,onFailed,userContext) {CvDataService._staticInstance.GetJob(id,onSuccess,onFailed,userContext); }
CvDataService.UpdateJob= function(id,startedDate,endedDate,isPresentJob,title,companyName,industry,field,role,comments,onSuccess,onFailed,userContext) {CvDataService._staticInstance.UpdateJob(id,startedDate,endedDate,isPresentJob,title,companyName,industry,field,role,comments,onSuccess,onFailed,userContext); }
CvDataService.DeleteJob= function(id,onSuccess,onFailed,userContext) {CvDataService._staticInstance.DeleteJob(id,onSuccess,onFailed,userContext); }
CvDataService.AddCertification= function(startedDate,endedDate,isOngoing,typeOfCertification,courceLocation,comments,onSuccess,onFailed,userContext) {CvDataService._staticInstance.AddCertification(startedDate,endedDate,isOngoing,typeOfCertification,courceLocation,comments,onSuccess,onFailed,userContext); }
CvDataService.GetCertification= function(id,onSuccess,onFailed,userContext) {CvDataService._staticInstance.GetCertification(id,onSuccess,onFailed,userContext); }
CvDataService.UpdateCertification= function(id,startedDate,endedDate,isOngoing,typeOfCertification,courceLocation,comments,onSuccess,onFailed,userContext) {CvDataService._staticInstance.UpdateCertification(id,startedDate,endedDate,isOngoing,typeOfCertification,courceLocation,comments,onSuccess,onFailed,userContext); }
CvDataService.DeleteCertification= function(id,onSuccess,onFailed,userContext) {CvDataService._staticInstance.DeleteCertification(id,onSuccess,onFailed,userContext); }
CvDataService.AddProject= function(startedDate,endedDate,isOngoing,title,companyName,comments,onSuccess,onFailed,userContext) {CvDataService._staticInstance.AddProject(startedDate,endedDate,isOngoing,title,companyName,comments,onSuccess,onFailed,userContext); }
CvDataService.UpdateProject= function(id,startedDate,endedDate,isOngoing,title,companyName,comments,onSuccess,onFailed,userContext) {CvDataService._staticInstance.UpdateProject(id,startedDate,endedDate,isOngoing,title,companyName,comments,onSuccess,onFailed,userContext); }
CvDataService.GetProject= function(id,onSuccess,onFailed,userContext) {CvDataService._staticInstance.GetProject(id,onSuccess,onFailed,userContext); }
CvDataService.DeleteProject= function(id,onSuccess,onFailed,userContext) {CvDataService._staticInstance.DeleteProject(id,onSuccess,onFailed,userContext); }
CvDataService.AddReferal= function(startedDate,endedDate,isOngoing,title,onSuccess,onFailed,userContext) {CvDataService._staticInstance.AddReferal(startedDate,endedDate,isOngoing,title,onSuccess,onFailed,userContext); }
CvDataService.UpdateReferal= function(id,startedDate,endedDate,isOngoing,title,onSuccess,onFailed,userContext) {CvDataService._staticInstance.UpdateReferal(id,startedDate,endedDate,isOngoing,title,onSuccess,onFailed,userContext); }
CvDataService.GetReferal= function(id,onSuccess,onFailed,userContext) {CvDataService._staticInstance.GetReferal(id,onSuccess,onFailed,userContext); }
CvDataService.DeleteReferal= function(id,onSuccess,onFailed,userContext) {CvDataService._staticInstance.DeleteReferal(id,onSuccess,onFailed,userContext); }
CvDataService.AddReference= function(name,position,company,email,phone,onSuccess,onFailed,userContext) {CvDataService._staticInstance.AddReference(name,position,company,email,phone,onSuccess,onFailed,userContext); }
CvDataService.GetReference= function(id,onSuccess,onFailed,userContext) {CvDataService._staticInstance.GetReference(id,onSuccess,onFailed,userContext); }
CvDataService.UpdateReference= function(id,name,position,company,email,phone,onSuccess,onFailed,userContext) {CvDataService._staticInstance.UpdateReference(id,name,position,company,email,phone,onSuccess,onFailed,userContext); }
CvDataService.DeleteReference= function(id,onSuccess,onFailed,userContext) {CvDataService._staticInstance.DeleteReference(id,onSuccess,onFailed,userContext); }
CvDataService.AddLanguage= function(langId,writtenLevelId,oralLevelId,onSuccess,onFailed,userContext) {CvDataService._staticInstance.AddLanguage(langId,writtenLevelId,oralLevelId,onSuccess,onFailed,userContext); }
CvDataService.UpdateLanguage= function(id,langId,writtenLevelId,oralLevelId,onSuccess,onFailed,userContext) {CvDataService._staticInstance.UpdateLanguage(id,langId,writtenLevelId,oralLevelId,onSuccess,onFailed,userContext); }
CvDataService.GetLanguage= function(id,onSuccess,onFailed,userContext) {CvDataService._staticInstance.GetLanguage(id,onSuccess,onFailed,userContext); }
CvDataService.DeleteLanguage= function(id,onSuccess,onFailed,userContext) {CvDataService._staticInstance.DeleteLanguage(id,onSuccess,onFailed,userContext); }
CvDataService.UpdateInformation= function(academicInformation,personalInformation,onSuccess,onFailed,userContext) {CvDataService._staticInstance.UpdateInformation(academicInformation,personalInformation,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('Offshore1');
if (typeof(Offshore1.Education) === 'undefined') {
Offshore1.Education=gtc("Education:http://schemas.datacontract.org/2004/07/Offshore1");
Offshore1.Education.registerClass('Offshore1.Education');
}
if (typeof(Offshore1.Job) === 'undefined') {
Offshore1.Job=gtc("Job:http://schemas.datacontract.org/2004/07/Offshore1");
Offshore1.Job.registerClass('Offshore1.Job');
}
if (typeof(Offshore1.Certification) === 'undefined') {
Offshore1.Certification=gtc("Certification:http://schemas.datacontract.org/2004/07/Offshore1");
Offshore1.Certification.registerClass('Offshore1.Certification');
}
if (typeof(Offshore1.Project) === 'undefined') {
Offshore1.Project=gtc("Project:http://schemas.datacontract.org/2004/07/Offshore1");
Offshore1.Project.registerClass('Offshore1.Project');
}
if (typeof(Offshore1.Referal) === 'undefined') {
Offshore1.Referal=gtc("Referal:http://schemas.datacontract.org/2004/07/Offshore1");
Offshore1.Referal.registerClass('Offshore1.Referal');
}
if (typeof(Offshore1.Reference) === 'undefined') {
Offshore1.Reference=gtc("Reference:http://schemas.datacontract.org/2004/07/Offshore1");
Offshore1.Reference.registerClass('Offshore1.Reference');
}
if (typeof(Offshore1.Language) === 'undefined') {
Offshore1.Language=gtc("Language:http://schemas.datacontract.org/2004/07/Offshore1");
Offshore1.Language.registerClass('Offshore1.Language');
}

