public ResourceJobPreferenceService()
        {
            rjp = new ResourceJobPreference();

            rjp.JobPreferenceStatusID = 1;
            rjp.JobPreferenceDateAvailable = new DateTime(2015, 1, 3);
            rjp.JobPreferencePreferredPay = 100.00;
            rjp.JobPreferenceMinimumPay = 100.00;
            rjp.JobPreferenceCurrencyCode = "USD";
            rjp.JobPreferenceDesiredPosition = "Manager";
            rjp.JobPreferenceWorkPreferencesID = 1;
            rjp.JobPreferenceWillingToRelocate = true;

            rjpr = new ResourceJobPreferenceResponse();
            rjpr.ResourceJobPreference = rjp;
            rjpr.jobCategory = new List<ObjectJobCategoryMapping>();

            ObjectJobCategoryMapping cat = new ObjectJobCategoryMapping();
            cat.JobCatID = 1;
            cat.ObjectID = 2;
            cat.ObjectJobCategoryMappingID = 3;
            cat.ObjectPKID = 4;

            rjpr.jobCategory.Add(cat);

            ResourceJobClassification reJobClass = new ResourceJobClassification();
            reJobClass.JobClassID = 1;
            reJobClass.ResourceJobClassificationID = 2;
            reJobClass.ResourceJobPreferenceID = 3;

            rjpr.jobClassification = new List<ResourceJobClassification>();
            rjpr.jobClassification.Add(reJobClass);

            rjpr.resourceIndustry = new List<ObjectIndustryMapping>();
            ObjectIndustryMapping indu = new ObjectIndustryMapping();
            indu.IndustryGroupID = 1;
            indu.ObjectID = 2;
            indu.ObjectIndustryMappingID = 3;
            indu.ObjectPKID = 5;

            rjpr.resourceIndustry.Add(indu);

            ResourceJobPreferenceCountry ctry = new ResourceJobPreferenceCountry();
            ctry.CountryCode = "US";
            ctry.ResourceJobPreferenceCountryID = 1;
            ctry.ResourceJobPreferenceID = 1;
            ctry.ResourcePreferenceForCountryID = 1;

            ResourceJobPreferenceCountry ctry2 = new ResourceJobPreferenceCountry();
            ctry.CountryCode = "EU";
            ctry.ResourceJobPreferenceCountryID = 2;
            ctry.ResourceJobPreferenceID = 2;
            ctry.ResourcePreferenceForCountryID = 2;

            rjpr.ResourceJobPreferenceCountry = new List<ResourceJobPreferenceCountry>();
            rjpr.ResourceJobPreferenceCountry.Add(ctry);
            rjpr.ResourceJobPreferenceCountry.Add(ctry2);
        }
Exemplo n.º 2
0
        public ResourceJobPreferenceResponse AutoPopulate()
        {
            this.ResourceJobPreference = (ResourceJobPreference) new ResourceJobPreference().AutoPopulate();
            this.jobCategory           = new List <ObjectJobCategoryMapping>();
            this.jobClassification     = new List <ResourceJobClassification>();
            ResourceJobClassification rjclass = (ResourceJobClassification) new ResourceJobClassification().AutoPopulate();

            this.resourceIndustry             = new List <ObjectIndustryMapping>();
            this.ResourceJobPreferenceCountry = new List <ResourceJobPreferenceCountry>();
            ResourceJobPreferenceCountry cou = new ResourceJobPreferenceCountry().AutoPopulate();

            this.ResourceJobPreferenceCountry.Add(cou);

            return(this);
        }
 /// This method will update the Resource Jobclassification
 public bool UpdateResourceJobClassification(ResourceJobClassification resourceJobClassification)
 {
     return true;
 }
 /// This method will insert  Resource JobClassification based on ResourceID
 public int AddResourceJobClassification(ResourceJobClassification resourceJobClassification)
 {
     return 0;
 }