static void Main(string[] args) { int result; Console.WriteLine( "Solution computed in {0}", FrameworkUtilities.Measure(() => { var qualifications = new Qualification[uBound - lBound + 1]; for (int i = lBound; i <= uBound ; i++) { qualifications[i - lBound] = GetQualification(i); } var abundants = qualifications.SelectWithPosition( (q, i) => new { q, Nbr= i+lBound-1} ).Where(a=>a.q == Qualification.Abundant).Select(a=>a.Nbr).ToList(); var crossSumOfAbundants = from x1 in abundants from x2 in abundants select x1 + x2; var excepts = Enumerable.Range(1, uBound).Except(crossSumOfAbundants); return excepts.Sum(); }, out result)); Console.WriteLine(result); Console.ReadLine(); }
public Group(int count, Rank rank, Specialization specialization, Qualification qualification, Qualification experience, Vitality vitality) { OriginalCount = count; Count = count; Rank = rank; Specialization = specialization; Qualification = qualification; Experience = experience; Vitality = vitality; }
protected override void OnSetUp() { using (ISession session = OpenSession()) { SkillSet skillSet = new SkillSet() { Code = "123", Title = "Skill Set" }; Qualification qualification = new Qualification() { Code = "124", Title = "Qualification" }; session.Save(skillSet); session.Save(qualification); session.Flush(); } }
/// <summary> /// This function save the qualification /// </summary> private void SaveQualification() { var qual = new Qualification { QualificationText = txtQualification.Text, Active = rbtnActiveYes.Checked }; var qualId = new Qualifications().AddUpdateQualification(qual); //clear text box and load qualifications txtQualification.Text = ""; rbtnActiveYes.Checked = true; rbtnActiveNo.Checked = false; //load qualifications LoadQualifications(); }
public void ShowObjectIdentity() { String repName = "MyRepositoryName"; ObjectIdentity[] objectIdentities = new ObjectIdentity[4]; // repository only is required to represent an object that has not been created objectIdentities[0] = new ObjectIdentity(repName); // show each form of unique identifier ObjectId objId = new ObjectId("090007d280075180"); objectIdentities[1] = new ObjectIdentity(objId, repName); Qualification qualification = new Qualification("dm_document where r_object_id = '090007d280075180'"); objectIdentities[2] = new ObjectIdentity(qualification, repName); ObjectPath objPath = new ObjectPath("/testCabinet/testFolder/testDoc"); objectIdentities[3] = new ObjectIdentity(objPath, repName); foreach (ObjectIdentity identity in objectIdentities) { Console.WriteLine(identity.GetValueAsString()); } }
public void ShowObjectIdentitySet() { String repName = "MyRepositoryName"; ObjectIdentitySet objIdSet = new ObjectIdentitySet(); ObjectIdentity[] objectIdentities = new ObjectIdentity[4]; // add some ObjectIdentity instances ObjectId objId = new ObjectId("090007d280075180"); objIdSet.AddIdentity(new ObjectIdentity(objId, repName)); Qualification qualification = new Qualification("dm_document where object_name = 'bl_upwind.gif'"); objIdSet.AddIdentity(new ObjectIdentity(qualification, repName)); ObjectPath objPath = new ObjectPath("/testCabinet/testFolder/testDoc"); objIdSet.AddIdentity(new ObjectIdentity(objPath, repName)); // walk through and see what we have IEnumerator<ObjectIdentity> identityEnumerator = objIdSet.Identities.GetEnumerator(); while (identityEnumerator.MoveNext()) { Console.WriteLine("Object Identity: " + identityEnumerator.Current); } }
public EnrolPostModel(int userId, Qualification qualification) { UserId = userId; Qualification = new QualificationModel(qualification); Selected = false; }
public void Post([FromBody] Qualification value) { ManageQualification qualification = new ManageQualification(); qualification.CreateQualification(value); }
public override IDeepCopyable CopyTo(IDeepCopyable other) { var dest = other as Practitioner; if (dest != null) { base.CopyTo(dest); if (Identifier != null) { dest.Identifier = new List <Hl7.Fhir.Model.Identifier>(Identifier.DeepCopy()); } if (ActiveElement != null) { dest.ActiveElement = (Hl7.Fhir.Model.FhirBoolean)ActiveElement.DeepCopy(); } if (Name != null) { dest.Name = (Hl7.Fhir.Model.HumanName)Name.DeepCopy(); } if (Telecom != null) { dest.Telecom = new List <Hl7.Fhir.Model.ContactPoint>(Telecom.DeepCopy()); } if (Address != null) { dest.Address = new List <Hl7.Fhir.Model.Address>(Address.DeepCopy()); } if (GenderElement != null) { dest.GenderElement = (Code <Hl7.Fhir.Model.AdministrativeGender>)GenderElement.DeepCopy(); } if (BirthDateElement != null) { dest.BirthDateElement = (Hl7.Fhir.Model.Date)BirthDateElement.DeepCopy(); } if (Photo != null) { dest.Photo = new List <Hl7.Fhir.Model.Attachment>(Photo.DeepCopy()); } if (PractitionerRole != null) { dest.PractitionerRole = new List <Hl7.Fhir.Model.Practitioner.PractitionerRoleComponent>(PractitionerRole.DeepCopy()); } if (Qualification != null) { dest.Qualification = new List <Hl7.Fhir.Model.Practitioner.QualificationComponent>(Qualification.DeepCopy()); } if (Communication != null) { dest.Communication = new List <Hl7.Fhir.Model.CodeableConcept>(Communication.DeepCopy()); } return(dest); } else { throw new ArgumentException("Can only copy to an object of the same type", "other"); } }
public Course(string description, Qualification qualification) : this(qualification.ToString(), description) { Qualification = qualification; }
public bool Contains(Qualification qualification) { return(set.Contains(qualification)); }
public async Task <ActionResult> Register(RegisterViewModel model) { if (ModelState.IsValid) { #region validate email Institution institution = db.Institutions.Find(model.Institution); Resident resident = db.Residents.Find(1); Faculty faculty = db.Faculties.Find(1); Qualification qualification = db.Qualifications.Find(1); bool emailValid = false; string username = ""; string extension = ""; try { username = model.Email.Substring(0, model.Email.IndexOf('@')).ToLower(); extension = model.Email.Substring(model.Email.IndexOf('@') + 1).ToLower(); // validate the email extension the student entered if (institution.Extension1.Equals(extension) || institution.Extension2.Equals(extension) || institution.Extension3.Equals(extension) || institution.Extension4.Equals(extension) || institution.Extension5.Equals(extension)) { emailValid = true; } else { emailValid = false; ModelState.AddModelError("Email", "The student email address entered is not valid"); } } catch (Exception e) { emailValid = false; Trace.WriteLine(e.Message, "Invalid Email During Registration: " + model.Email); ModelState.AddModelError("Email", "The student email address entered is not valid"); } #endregion #region create user and send verification email if (emailValid) { // set text info to be able to capitalize the product name TextInfo ti = CultureInfo.CurrentCulture.TextInfo; var user = new ApplicationUser() { UserName = username, Email = model.Email, Institution = institution, Faculty = faculty, Qualification = qualification, Resident = resident, Verified = false, RegistrationDate = DateTime.Now, LastSeen = DateTime.Now }; var result = await UserManager.CreateAsync(user, model.Password); if (result.Succeeded) { // get user info var unverifiedUser = UserManager.FindByName(user.UserName); var userFullName = user.TitleID + " " + user.Intials + " " + user.Surname; // send verification email bool success = NotificationsHelper.SendEmailWithVerificationToken(user.Email, userFullName, user.UserName, ControllerContext); if (!success) { ModelState.AddModelError("", "An error occured while sending the verifiaction email. We will try to send the verification again soon."); } else { Session.Add("currentInstitution", institution.abbreviation); Session.Add("verifyName", userFullName); return(RedirectToAction("Verification", "Account")); } } else { AddErrors(result); } } #endregion } // recreate form data model.Institutions = GetInstitutions(); // If we got this far, something failed, redisplay form return(View("~/Views/Home/Index.cshtml", model)); }
public Worker(Qualification qualification, string name) : base(name) { this.Qualification = qualification; }
public TrainingModel(Qualification qualification, bool ignoreIncludeInSyllabus = false) { Qualification = new QualificationModel(qualification); Modules = qualification.Modules.Select(x => new TrainingModuleModel(x, ignoreIncludeInSyllabus)).ToArray(); }
public bool Create(Qualification entity) { _db.Qualifications.Add(entity); return(Save()); }
public void TestRetrieveVdmInfo() { Console.WriteLine("\nTesting retrieve virtual document info..."); try { sampleContentManager.CreateDemoObjects(); createTestVirtualDocument(); // create ObjectIdentity of existing virtual document ObjectIdentity testVdmId = new ObjectIdentity(); testVdmId.RepositoryName = DefaultRepository; Qualification qual = new Qualification(SampleContentManager.testVdmQualString); qual.ObjectType = "dm_document"; testVdmId.Value = qual; virtualDocumentServiceDemo.RetrieveVdmInfo(testVdmId, false); } catch (FaultException<SerializableException> ex) { Console.WriteLine(String.Format("Got FaultException[{0}] with message: {1}\n", ex.Detail, ex.Message)); } catch (Exception exx) { Console.WriteLine(exx.StackTrace); } finally { sampleContentManager.DeleteTestCabinet(); } }
public void Add(Qualification model) { _qualificationRepository.Add(model); }
private void _buttonIntAjouter_Click(object sender, RoutedEventArgs e) { if (this._listBoxIntQualificationOffre.SelectedItem != null && this._listBoxIntQualificationOffre.SelectedItems.Count == 1) { Qualification tempQualif = new Qualification(); tempQualif = (Qualification)this._listBoxIntQualificationOffre.SelectedItem; Mission_InterimaireQualification tmp = new Mission_InterimaireQualification(); tmp.Qualification1 = tempQualif; tmp.Mission_Interimaire1 = ((Ordre_Mission)this.DataContext).Mission_Interimaire1; this.listQualification.Remove((Qualification)this._listBoxIntQualificationOffre.SelectedItem); } verification_tabItemIntQualification(); }
/// <summary> /// Ajoute une nouvelle civilité à la liste à l'aide d'une nouvelle fenêtre /// </summary> public Qualification Add() { //Affichage du message "ajout en cours" ((App)App.Current)._theMainWindow.parametreMain.progressBarMainWindow.IsIndeterminate = true; ((App)App.Current)._theMainWindow.parametreMain.textBlockMainWindow.Text = "Ajout d'une qualification en cours ..."; //Initialisation de la fenêtre QualificationWindowParametre qualificationWindow = new QualificationWindowParametre(); //Création de l'objet temporaire Qualification tmp = new Qualification(); //Mise de l'objet temporaire dans le datacontext qualificationWindow.DataContext = tmp; //booléen nullable vrai ou faux ou null bool? dialogResult = qualificationWindow.ShowDialog(); if (dialogResult.HasValue && dialogResult.Value == true) { //Si j'appuie sur le bouton Ok, je renvoi l'objet banque se trouvant dans le datacontext de la fenêtre return (Qualification)qualificationWindow.DataContext; } else { try { //On détache la commande ((App)App.Current).mySitaffEntities.Detach((Qualification)qualificationWindow.DataContext); } catch (Exception) { } //Si j'appuie sur le bouton annuler, je préviens que j'annule mon ajout ((App)App.Current)._theMainWindow.parametreMain.progressBarMainWindow.IsIndeterminate = false; this.recalculMax(); ((App)App.Current)._theMainWindow.parametreMain.textBlockMainWindow.Text = "Ajout d'une qualification annulée : " + this.mesQualifications.Count() + " / " + this.max; return null; } }
/// <summary> /// Met à jour l'état en bas pour l'utilisateur /// </summary> /// <param name="typeEtat">texte : "Filtrage", "Ajout", "Modification", "Suppression", "Look", "" ("" = Chargement)</param> /// <param name="dao">un objet Commande_Fournisseur soit pour l'ajouter au listing, soit pour afficher qui a été modifié ou supprimé</param> public void MiseAJourEtat(string typeEtat, Qualification lib) { //Je racalcul le nombre max d'élements this.recalculMax(); //En fonction de l'libion, j'affiche le message if (typeEtat == "Filtrage") { ((App)App.Current)._theMainWindow.parametreMain.textBlockMainWindow.Text = "filtrage des qualifications terminée : " + this.mesQualifications.Count() + " / " + this.max; } else if (typeEtat == "Ajout") { //J'ajoute la commande_fournisseur dans le linsting this.mesQualifications.Add(lib); //Je racalcul le nombre max d'élements après l'ajout this.recalculMax(); ((App)App.Current)._theMainWindow.parametreMain.textBlockMainWindow.Text = "Ajout de la qualification dénommée '" + lib.Libelle + "' effectué avec succès. Nombre d'élements : " + this.mesQualifications.Count() + " / " + this.max; } else if (typeEtat == "Modification") { //Je raffraichis mon datagrid this._DataGridMain.Items.Refresh(); ((App)App.Current)._theMainWindow.parametreMain.textBlockMainWindow.Text = "Modification de la qualification dénommée : '" + lib.Libelle + "' effectuée avec succès. Nombre d'élements : " + this.mesQualifications.Count() + " / " + this.max; } else if (typeEtat == "Suppression") { //Je supprime de mon listing l'élément supprimé this.mesQualifications.Remove(lib); //Je racalcul le nombre max d'élements après la suppression this.recalculMax(); ((App)App.Current)._theMainWindow.parametreMain.textBlockMainWindow.Text = "Suppression de la qualification dénommée : '" + lib.Libelle + "' effectuée avec succès. Nombre d'élements : " + this.mesQualifications.Count() + " / " + this.max; } else if (typeEtat == "Look") { } else { ((App)App.Current)._theMainWindow.parametreMain.textBlockMainWindow.Text = "Chargement des qualifications terminée : " + this.mesQualifications.Count() + " / " + this.max; } //Je retri les données dans le sens par défaut this.triDatas(); //J'arrete la progressbar ((App)App.Current)._theMainWindow.parametreMain.progressBarMainWindow.IsIndeterminate = false; }
public void VerifyUpdateQualificationForDraftVacancy(Qualification qualification) { ContainEquivalentOf(Vacancy.Qualifications, qualification).Should().BeTrue(); }
public bool Delete(Qualification entity) { _db.Qualifications.Remove(entity); return(Save()); }
public void VersionInfoDemoQual(String nonCurrentQual) { Qualification qual = new Qualification(nonCurrentQual); ObjectIdentity objIdentity = new ObjectIdentity(); objIdentity.Value = qual; objIdentity.RepositoryName = DefaultRepository; ObjectIdentitySet objIdSet = new ObjectIdentitySet(); objIdSet.Identities.Add(objIdentity); List<VersionInfo> vInfo = versionControlService.GetVersionInfo(objIdSet); VersionInfo versionInfo = vInfo[0]; Console.WriteLine("Printing version info for " + versionInfo.Identity); Console.WriteLine("isCurrent is " + versionInfo.IsCurrent); Console.WriteLine("Version is " + versionInfo.Version); Console.WriteLine("Symbolic labels are: "); foreach (string label in versionInfo.SymbolicLabels) { Console.WriteLine(label); } }
public bool Update(Qualification entity) { _db.Qualifications.Update(entity); return(Save()); }
public Course(string description, Qualification qualification) : this(qualification.ToString(), description) { Qualification = qualification; }
public Architect(string firstName, string secondName, Qualification qualification) : base(firstName, secondName, qualification) { }
public DetailsViewModel(string studentId) { // parameter studentId passed from prevoius page this.Student = student.GetStudentById(studentId); this.Qualifications = new ObservableCollection <Qualification>(Qualification.GetQualificationList(Student.UserID).ToList().OrderBy(q => q.QualName)); }
public void Add(Qualification qualification) { set.Add(qualification); }
public void Add(Qualification qualification) { set.Add(qualification); }
private static ICollection <ProviderQualification> BuildProviderQualifications(Qualification qualification) { return(new List <ProviderQualification> { new ProviderQualification { Qualification = qualification, Source = "Test" } }); }
public static IEnumerable <Project> GetFakeProjectData() { var steveResource = new IdentityResource { UserName = "******", Email = "*****@*****.**", Id = "1" }; var bobResource = new IdentityResource { UserName = "******", Email = "*****@*****.**", Id = "2" }; var jhonResource = new IdentityResource { UserName = "******", Email = "*****@*****.**", Id = "3" }; var katrinResource = new IdentityResource { UserName = "******", Email = "*****@*****.**", Id = "4" }; var csharpSkill = new Skill { Name = "C#", Id = 1 }; var excelSkill = new Skill { Name = "Excel", Id = 2 }; var drivingSkill = new Skill { Name = "Driving licence", Id = 3 }; var managerSkill = new Skill { Name = "Project management", Id = 4 }; var csharpJunior = new Qualification { Level = SkillLevel.Junior, Skill = csharpSkill, Id = 1, SkillId = csharpSkill.Id }; var managerJunior = new Qualification { Level = SkillLevel.Junior, Skill = managerSkill, Id = 2, SkillId = managerSkill.Id }; var excelMiddle = new Qualification { Level = SkillLevel.Middle, Skill = excelSkill, Id = 3, SkillId = excelSkill.Id }; var drivingMiddle = new Qualification { Level = SkillLevel.Middle, Skill = drivingSkill, Id = 4, SkillId = drivingSkill.Id }; Project spaceProject = new Project { Id = 1, Name = "Space Project", Manager = steveResource, FromDuration = new DateTime(2020, 2, 10), ToDuration = new DateTime(2020, 8, 5) }; var projectQualifications = InitProjectQualification(spaceProject, csharpJunior, drivingMiddle, managerJunior, excelMiddle); spaceProject.ProjectQualifications = projectQualifications; var projectResources = InitProjectResource(spaceProject, steveResource, katrinResource); spaceProject.ProjectResources = projectResources; var steveQualificationResources = InitQualificationResources(steveResource, csharpJunior, drivingMiddle); steveResource.QualificationResources = steveQualificationResources; var katrinQualificationResources = InitQualificationResources(katrinResource, drivingMiddle); katrinResource.QualificationResources = katrinQualificationResources; var bobQualificationResources = InitQualificationResources(bobResource, excelMiddle); bobResource.QualificationResources = bobQualificationResources; var jhonQualificationResources = InitQualificationResources(jhonResource, managerJunior, excelMiddle); jhonResource.QualificationResources = jhonQualificationResources; return(new List <Project> { spaceProject }); }
public async Task RemoveAsync(Qualification qualification) { _uow.Qualifications.Remove(qualification); await _uow.SaveChangesAsync(); }
public void Put(int id, [FromBody] Qualification value) { ManageQualification qualification = new ManageQualification(); qualification.UpdateQualification(value, id); }
public async Task UpdateAsync(Qualification qualification) { _uow.Qualifications.Update(qualification); await _uow.SaveChangesAsync(); }
public static async Task Seed(IApplicationBuilder applicationBuilder) { using var serviceScope = applicationBuilder.ApplicationServices.CreateScope(); var context = serviceScope.ServiceProvider.GetService <PMAppDbContext>(); var userManager = serviceScope.ServiceProvider.GetService <UserManager <IdentityResource> >(); var roleManager = serviceScope.ServiceProvider.GetService <RoleManager <IdentityRole> >(); await context.Database.EnsureDeletedAsync(); await context.Database.MigrateAsync(); // initializing roles var managerRole = new IdentityRole("Manager"); await roleManager.CreateAsync(managerRole); managerRole = await roleManager.FindByNameAsync(managerRole.Name); var resourceRole = new IdentityRole("Resource"); await roleManager.CreateAsync(resourceRole); resourceRole = await roleManager.FindByNameAsync(resourceRole.Name); // initializing resources var steveResource = new IdentityResource { UserName = "******", Email = "*****@*****.**" }; var bobResource = new IdentityResource { UserName = "******", Email = "*****@*****.**" }; var jhonResource = new IdentityResource { UserName = "******", Email = "*****@*****.**" }; var katrinResource = new IdentityResource { UserName = "******", Email = "*****@*****.**" }; await userManager.CreateAsync(steveResource, "Pass123!"); steveResource = await userManager.FindByEmailAsync(steveResource.Email); await userManager.CreateAsync(bobResource, "Pass123!"); bobResource = await userManager.FindByEmailAsync(bobResource.Email); await userManager.CreateAsync(jhonResource, "Pass123!"); jhonResource = await userManager.FindByEmailAsync(jhonResource.Email); await userManager.CreateAsync(katrinResource, "Pass123!"); katrinResource = await userManager.FindByEmailAsync(katrinResource.Email); // adding to roles await userManager.AddToRoleAsync(steveResource, managerRole.Name); await userManager.AddToRoleAsync(bobResource, resourceRole.Name); await userManager.AddToRoleAsync(jhonResource, resourceRole.Name); await userManager.AddToRoleAsync(katrinResource, resourceRole.Name); // initializing skills var csharpSkill = new Skill { Name = "C#" }; var excelSkill = new Skill { Name = "Excel" }; var drivingSkill = new Skill { Name = "Driving licence" }; var managerSkill = new Skill { Name = "Project management" }; await context.Skills.AddRangeAsync(csharpSkill, excelSkill, drivingSkill, managerSkill); // initializing qualifications var csharpJunior = new Qualification { Level = SkillLevel.Junior, Skill = csharpSkill }; var excelJunior = new Qualification { Level = SkillLevel.Junior, Skill = excelSkill }; var drivingJunior = new Qualification { Level = SkillLevel.Junior, Skill = drivingSkill }; var managerJunior = new Qualification { Level = SkillLevel.Junior, Skill = managerSkill }; var csharpMiddle = new Qualification { Level = SkillLevel.Middle, Skill = csharpSkill }; var excelMiddle = new Qualification { Level = SkillLevel.Middle, Skill = excelSkill }; var drivingMiddle = new Qualification { Level = SkillLevel.Middle, Skill = drivingSkill }; var managerMiddle = new Qualification { Level = SkillLevel.Middle, Skill = managerSkill }; var csharpSenior = new Qualification { Level = SkillLevel.Senior, Skill = csharpSkill }; var excelSenior = new Qualification { Level = SkillLevel.Senior, Skill = excelSkill }; var drivingSenior = new Qualification { Level = SkillLevel.Senior, Skill = drivingSkill }; var managerSenior = new Qualification { Level = SkillLevel.Senior, Skill = managerSkill }; await context.Qualifications.AddRangeAsync(csharpJunior, excelJunior, drivingJunior, managerJunior, csharpMiddle, excelMiddle, drivingMiddle, managerMiddle, csharpSenior, excelSenior, drivingSenior, managerSenior); // initializing project Project spaceProject = new Project { Name = "Space Project", Manager = steveResource, FromDuration = new DateTime(2020, 2, 10), ToDuration = new DateTime(2020, 8, 5) }; var projectQualifications = InitProjectQualification(spaceProject, csharpJunior, drivingMiddle, managerJunior, excelMiddle); await context.Projects.AddAsync(spaceProject); await context.ProjectQualifications.AddRangeAsync(projectQualifications); var projectResources = InitProjectResource(spaceProject, steveResource, katrinResource); await context.ProjectIdentityResources.AddRangeAsync(projectResources); var steveQualificationResources = InitQualificationResources(steveResource, csharpJunior, drivingMiddle); var katrinQualificationResources = InitQualificationResources(katrinResource, drivingMiddle); var bobQualificationResources = InitQualificationResources(bobResource, excelMiddle); var jhonQualificationResources = InitQualificationResources(jhonResource, managerJunior, excelMiddle); await context.QualificationIdentityResources.AddRangeAsync(steveQualificationResources); await context.QualificationIdentityResources.AddRangeAsync(katrinQualificationResources); await context.QualificationIdentityResources.AddRangeAsync(bobQualificationResources); await context.QualificationIdentityResources.AddRangeAsync(jhonQualificationResources); await context.SaveChangesAsync(); }
public void AddQualificationToCandidate(int candidateId, Qualification qualification) { throw new NotImplementedException(); }
public void VerifyAddQualificationToDraftVacancy(int count, Qualification qualification) { Vacancy.Qualifications.Should().HaveCount(count); ContainEquivalentOf(Vacancy.Qualifications, qualification).Should().BeTrue(); }
private void button1_Click(object sender, EventArgs e) { string error_caption = "Error"; if (string.IsNullOrEmpty(EmployeeName.Text)) { var emp_error = MessageBox.Show("Employee Name cannot be left empty", error_caption, MessageBoxButtons.OK); EmployeeName.Focus(); } else if (!BirthDate.MaskCompleted || !BirthDate.MaskFull) { var emp_error = MessageBox.Show("Birth date is not filled or not finished yet", error_caption, MessageBoxButtons.OK); BirthDate.Focus(); } else if (string.IsNullOrEmpty(Address.Text)) { var emp_error = MessageBox.Show("Address is cannot be left empty", error_caption, MessageBoxButtons.OK); Address.Focus(); } else if (City.SelectedIndex < 0) { var emp_error = MessageBox.Show("Please choose a city", error_caption, MessageBoxButtons.OK); City.Focus(); } else if (Country.SelectedIndex < 0) { var emp_error = MessageBox.Show("Please choose your nation", error_caption, MessageBoxButtons.OK); Country.Focus(); } else if (Qualification.SelectedIndex < 0) { var emp_error = MessageBox.Show("Please choose your highest qualification", error_caption, MessageBoxButtons.OK); Qualification.Focus(); } else if (!Phone.MaskCompleted) { var emp_error = MessageBox.Show("Please enter your phone number", error_caption, MessageBoxButtons.OK); Phone.Focus(); } else if (string.IsNullOrEmpty(Email.Text)) { var emp_error = MessageBox.Show("Please enter your Email", error_caption, MessageBoxButtons.OK); Email.Focus(); } else if (JoinDate.Text.Length == 0) { var emp_error = MessageBox.Show("When did you join this company?", error_caption, MessageBoxButtons.OK); JoinDate.Focus(); } else { string message = "Employee Name: " + this.EmployeeName.Text + "\nDate of birth: " + this.BirthDate.Text + "\nAddress: " + this.Address.Text + "\nCity: " + this.City.Text + "\nCountry: " + this.Country.Text + "\nQualification: " + this.Qualification.Text + "\nPhone: " + this.Phone.Text + "\nEmail: " + this.Email.Text + "\nDate of joining: " + this.JoinDate.Text; string caption = "Information detail"; var result = MessageBox.Show(message, caption, MessageBoxButtons.OK); } }
public void VerifyRemoveQualificationFromDraftVacancy(Qualification qualification) { ContainEquivalentOf(Vacancy.Qualifications, qualification).Should().BeFalse(); }
public void DeleteAllVersionsDemoQual() { string nonCurrentQual = "dm_document (ALL) " + "where object_name = 'DFS_sample_image' " + "and ANY r_version_label = 'test_version'"; Qualification qual = new Qualification(nonCurrentQual); ObjectIdentity objIdentity = new ObjectIdentity(); objIdentity.Value = qual; objIdentity.RepositoryName = DefaultRepository; ObjectIdentitySet objIdSet = new ObjectIdentitySet(); objIdSet.Identities.Add(objIdentity); versionControlService.DeleteAllVersions(objIdSet); }
// GET: Qualifications/Edit/5 public async Task <ActionResult> Edit(int id) { Qualification qualification = await _repository.GetOneAsync(id); return(View(qualification)); }
public CourseDelivery(Qualification qualification, string courseDescription, College college, string callOccCode, ISemesterDates semester) : this(new Course(courseDescription, qualification), college, callOccCode, semester) { }
public abstract Statistic GetStats(Qualification qualification);
public CompanyOpening(DataAccess.EF.Company selectedCompany, DataAccess.EF.Opening opening, Qualification qualification) { _selectedCompany = selectedCompany; _opening = opening; _qualification = qualification; }
/// <summary> /// verifica che il server DCTM risponda correttamente, effettuando un controllo sulle credenziali dell'amministratore /// </summary> /// <returns></returns> public virtual bool Checkconnection() { bool retValue = false; string userAdm = DctmConfigurations.GetDocumentumSuperUser(); //loginResult = UserLogin.LoginResult.APPLICATION_ERROR; try { RepositoryIdentity identity = DctmServices.DctmRepositoryIdentityHelper.GetIdentity( DctmConfigurations.GetRepositoryName(), userAdm, DctmConfigurations.GetDocumentumSuperUserPwd(), ""); string token = DctmServices.DctmRepositoryIdentityHelper.CreateAuthenticationToken(identity); IObjectService objectService = DctmServiceFactory.GetServiceInstance <IObjectService>(token); Qualification qual = new Qualification("dm_docbaseid_map enable(RETURN_TOP 1)"); ObjectIdentity objectIdentity = new ObjectIdentity(qual, DctmConfigurations.GetRepositoryName()); objectIdentity.ValueType = ObjectIdentityType.QUALIFICATION; objectIdentity.valueTypeSpecified = true; DataPackage dataPackage = objectService.Get(new ObjectIdentitySet(objectIdentity), null); retValue = (dataPackage != null); } /* * catch (Emc.Documentum.FS.Runtime.AuthenticationException exAuth) * { * //AuthenticationException - Exception in com.emc.documentum.fs.rt * //Exception which is raised when authentication errors occur * // loginResult = DocsPaVO.utente.UserLogin.LoginResult.UNKNOWN_DTCM_USER; * retValue = false; * * logger.Error(string.Format("Credenziali utente DTCM non valide: '{0}'", userAdm + " " + exAuth.Message)); * } */ catch (Emc.Documentum.FS.Runtime.ServiceInvocationException exServiceInvocation) { //AuthenticationException - Exception in com.emc.documentum.fs.rt //Exception which is raised when authentication errors occur // loginResult = DocsPaVO.utente.UserLogin.LoginResult.DTCM_SERVICE_NO_CONTACT; retValue = false; logger.Error(string.Format("Errore nel tentativo di contattare i servizi DCTM: '{0}'", userAdm + " " + exServiceInvocation.Message)); } /* * catch (Emc.Documentum.FS.Runtime.ServiceException exService) * { * //AuthenticationException - Exception in com.emc.documentum.fs.rt * //Exception which is raised when authentication errors occur * // loginResult = DocsPaVO.utente.UserLogin.LoginResult.DTCM_SERVICE_NO_CONTACT; * retValue = false; * * logger.Error(string.Format("Errore nel tentativo di contattare i servizi DTCM: '{0}'", userAdm + " " + exService.Message)); * } */ catch (Exception ex) { //AuthenticationException - Exception in com.emc.documentum.fs.rt //Exception which is raised when authentication errors occur // loginResult = DocsPaVO.utente.UserLogin.LoginResult.UNKNOWN_USER; retValue = false; logger.Error(string.Format("Error durante il controllo checkpage utente : '{0}'", userAdm + " errore: " + ex.Message)); } return(retValue); }
public bool Contains(Qualification qualification) { return set.Contains(qualification); }