clsImportEmployeeSkillLink Class |
Namespace: MARIInterface
The clsImportEmployeeSkillLink type exposes the following members.
| Name | Description | |
|---|---|---|
| clsImportEmployeeSkillLink | Initializes a new instance of the clsImportEmployeeSkillLink class |
| Name | Description | |
|---|---|---|
| ChangeDate | ChangeDate: For the import automtically set to NOW() | |
| ChangeUser | ChangeUser: Create user. User loged in to MARIInterface | |
| CreateDate | CreateDate: Automatically set to NOW() | |
| EmployeeNumber | EmployeeNumber Key field to the employee. See clsImportEmployeeMaster for Master Data Creation | |
| EmployeeSkillMemo | Memo | |
| Knowledge | Additional Knowledge text in the skill table | |
| Priority | Priority in the linked skills. 0..100 | |
| Reminder | Reminder extra field for manual queries to remind a renewal of skills | |
| SkillID | Link to the skill id: View: MARISkillMaster.EmployeeGroupID: :Table: MPSkills.GruppenID | |
| ValidFrom | ValidFrom optional | |
| ValidTo | ValidTo optional |
| Name | Description | |
|---|---|---|
| bReadFromDB |
Read employee link
(Overrides clsImportBasebReadFromDB(MPInterface, String).) | |
| bSaveRSToMDB | (Overrides clsImportBasebSaveRSToMDB(MPInterface, DataRow, DataTable).) |
public void AddSkill2Employee(string sEmployeeNumber) { MARIInterface.clsImportEmployeeSkillLink NewEmployeeSkillLink = new MARIInterface.clsImportEmployeeSkillLink(); NewEmployeeSkillLink.EmployeeNumber = sEmployeeNumber; NewEmployeeSkillLink.SkillID = 100006; //SELECT EmployeeGroupID FROM MARISkillMaster WHERE TreeType=1 NewEmployeeSkillLink.ValidFrom = new DateTime(2015, 12, 1); NewEmployeeSkillLink.Knowledge = "perfect"; if (!oMPInterface.bImportEmployeeSkillLink(NewEmployeeSkillLink, MARIInterface.clsImportBase.eImportMode.ValidateAndImport)) { throw new Exception(oMPInterface.oErrors.PrintErrors()); } }
public void CreateSkills() { int lParent = CreateSkillMaster("Language Skills"); if (lParent != 0) { CreateSkillMaster("English", lParent); CreateSkillMaster("German", lParent); CreateSkillMaster("Spanish", lParent); CreateSkillMaster("Frensh", lParent); } } public int CreateSkillMaster(string sDescription, int lParent = 0) { MARIInterface.clsImportSkill NewSkill = new clsImportSkill(); NewSkill.Description = sDescription; if (lParent == 0) { NewSkill.Indent = 1; } else { NewSkill.Parent = lParent; NewSkill.Indent = 2; } if (!oMPInterface.bImportSkill(NewSkill, MARIInterface.clsImportBase.eImportMode.ValidateAndImport)) { throw new Exception(oMPInterface.oErrors.PrintErrors()); } else { return NewSkill.SkillID; } }