Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PERFORMA_REPLICA
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Muhammad Usman
PERFORMA_REPLICA
Commits
09826c32
Commit
09826c32
authored
Jul 20, 2020
by
Muhammad Usman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
intro letters completed
parent
b2f5f2ca
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
67 additions
and
12 deletions
+67
-12
constants.ts
frontend/angular/src/app/my-career-web/config/constants.ts
+3
-1
intro-letter.component.html
...eb/intro-letters/intro-letter/intro-letter.component.html
+6
-6
intro-letter.component.ts
...-web/intro-letters/intro-letter/intro-letter.component.ts
+32
-3
career-skill.model.ts
...ngular/src/app/my-career-web/models/career-skill.model.ts
+1
-0
il-skill.model.ts
...nd/angular/src/app/my-career-web/models/il-skill.model.ts
+10
-0
il-work-experience.model.ts
.../src/app/my-career-web/models/il-work-experience.model.ts
+10
-0
introduction-letter.model.ts
...src/app/my-career-web/models/introduction-letter.model.ts
+4
-2
work-experience.model.ts
...lar/src/app/my-career-web/models/work-experience.model.ts
+1
-0
No files found.
frontend/angular/src/app/my-career-web/config/constants.ts
View file @
09826c32
...
...
@@ -27,7 +27,9 @@ export const CLASSES = {
SKILL
:
'performa.orm.Skill'
,
REFEREE
:
'performa.orm.Referee'
,
CandidateTemplate
:
'performa.orm.CandidateTemplate'
,
INTRO
:
'performa.orm.IntroductionLetter'
INTRO
:
'performa.orm.IntroductionLetter'
,
ILWorkExperience
:
'performa.orm.ILWorkExperience'
,
ILSkill
:
'performa.orm.ILSkill'
,
};
export
const
SERVICES
=
{
...
...
frontend/angular/src/app/my-career-web/intro-letters/intro-letter/intro-letter.component.html
View file @
09826c32
...
...
@@ -45,13 +45,13 @@
<app-overlay
[
isActive
]="
isLoadingSkillAndExp
"
></app-overlay>
<div
class=
"col-md-6 mc-exp-table"
>
<h5>
Work Experience
</h5>
<p-table
[
columns
]="[]"
[
value
]="
careerProfile
.
WorkExperiences
"
[
reorderableColumns
]="
true
"
>
<ng-template
pTemplate=
"body"
let-
rowData
let-columns=
"columns"
let-index=
"rowIndex"
>
<p-table
[
columns
]="[]"
[
value
]="
introductionLetter
.
WorkExperiences
"
[
reorderableColumns
]="
true
"
>
<ng-template
pTemplate=
"body"
let-
ILWorkExperience
let-columns=
"columns"
let-index=
"rowIndex"
>
<tr
[
pReorderableRow
]="
index
"
>
<td>
<div
class=
"exp-row"
>
<i
class=
"fa fa-bars"
pReorderableRowHandle
></i>
<p-checkbox
[
value
]="
rowData
.
ObjectID
"
[(
ngModel
)]="
introductionLetter
.
WorkExperiences
"
name=
"EXP{{index}}"
[
label
]="
rowData
?.
ActualJobTitle
+
'
-
'
+
rowData
?.
Employer
"
></p-checkbox>
<p-checkbox
[
binary
]="
true
"
[(
ngModel
)]="
ILWorkExperience
.
IsSelected
"
name=
"EXP{{index}}"
[
label
]="
ILWorkExperience
?.
WorkExperience
?.
ActualJobTitle
+
'
-
'
+
ILWorkExperience
?.
WorkExperience
?.
Employer
"
></p-checkbox>
</div>
</td>
</tr>
...
...
@@ -61,13 +61,13 @@
<div
class=
"col-md-6 mc-skill-table"
>
<h5>
Skills
</h5>
<p-table
[
columns
]="[]"
[
value
]="
careerProfile
.
Skills
"
[
reorderableColumns
]="
true
"
>
<ng-template
pTemplate=
"body"
let-
rowData
let-columns=
"columns"
let-index=
"rowIndex"
>
<p-table
[
columns
]="[]"
[
value
]="
introductionLetter
.
Skills
"
[
reorderableColumns
]="
true
"
>
<ng-template
pTemplate=
"body"
let-
ILSkill
let-columns=
"columns"
let-index=
"rowIndex"
>
<tr
[
pReorderableRow
]="
index
"
>
<td>
<div
class=
"skill-row"
>
<i
class=
"fa fa-bars"
pReorderableRowHandle
></i>
<p-checkbox
[
value
]="
rowData
.
ObjectID
"
[(
ngModel
)]="
introductionLetter
.
Skills
"
name=
"SKILLS{{index}}"
[
label
]="
rowData
?.
Skill
?.
Description
"
></p-checkbox>
<p-checkbox
[
binary
]="
true
"
[(
ngModel
)]="
ILSkill
.
IsSelected
"
name=
"SKILLS{{index}}"
[
label
]="
ILSkill
?.
Skill
?.
Description
"
></p-checkbox>
</div>
</td>
</tr>
...
...
frontend/angular/src/app/my-career-web/intro-letters/intro-letter/intro-letter.component.ts
View file @
09826c32
...
...
@@ -9,6 +9,8 @@ import { CareerProfileModel } from '../../models/career-profile.model';
import
{
IntroLetterService
}
from
'../../services/intro-letter.service'
;
import
{
NgForm
}
from
'@angular/forms'
;
import
{
HelperService
}
from
'../../services/helper.service'
;
import
{
ILWorkExperienceModel
}
from
'../../models/il-work-experience.model'
;
import
{
ILSkillModel
}
from
'../../models/il-skill.model'
;
@
Component
({
selector
:
'app-intro-letter'
,
...
...
@@ -50,7 +52,7 @@ export class IntroLetterComponent extends BaseComponent implements OnInit {
getCareerProfile
():
void
{
this
.
isLoadingSkillAndExp
=
true
;
const
assocs
=
[
'WorkExperiences'
,
'WorkExperiences
.WorkExperiences
'
,
'Skills.Skill'
];
const
assocs
=
[
'WorkExperiences'
,
'WorkExperiences'
,
'Skills.Skill'
];
this
.
personalDetailsService
.
getCareerProfile
(
assocs
)
.
pipe
(
takeUntil
(
this
.
componentInView
))
.
subscribe
(
response
=>
{
...
...
@@ -60,8 +62,8 @@ export class IntroLetterComponent extends BaseComponent implements OnInit {
this
.
introductionLetter
=
new
IntroductionLetterModel
();
this
.
introductionLetter
.
Candidate
=
this
.
careerProfile
.
Candidate
;
this
.
utilsService
.
createObject
(
this
.
introductionLetter
,
this
.
createdObjs
);
this
.
initialProcessing
();
}
console
.
log
(
this
.
careerProfile
);
},
err
=>
{
this
.
isLoadingSkillAndExp
=
false
;
this
.
utilsService
.
handleError
(
err
);
...
...
@@ -70,7 +72,7 @@ export class IntroLetterComponent extends BaseComponent implements OnInit {
getIntroLetter
():
void
{
this
.
isLoading
=
true
;
this
.
introLetterService
.
getIntroLetter
(
this
.
introLetterId
)
this
.
introLetterService
.
getIntroLetter
(
this
.
introLetterId
,
[
'WorkExperiences.WorkExperience'
,
'Skills.Skill'
]
)
.
pipe
(
takeUntil
(
this
.
componentInView
))
.
subscribe
(
response
=>
{
this
.
isLoading
=
false
;
...
...
@@ -82,10 +84,37 @@ export class IntroLetterComponent extends BaseComponent implements OnInit {
})
}
initialProcessing
():
void
{
this
.
careerProfile
.
WorkExperiences
.
forEach
((
w
,
i
)
=>
{
const
ilWorkExperience
=
new
ILWorkExperienceModel
();
ilWorkExperience
.
IntroductionLetter
=
this
.
introductionLetter
.
ObjectID
;
ilWorkExperience
.
WorkExperience
=
w
;
ilWorkExperience
.
SortOrder
=
i
;
this
.
utilsService
.
addMultiRefObject
(
ilWorkExperience
,
this
.
introductionLetter
,
'WorkExperiences'
,
this
.
createdObjs
);
});
this
.
careerProfile
.
Skills
.
forEach
((
s
,
i
)
=>
{
const
ilSkillModel
=
new
ILSkillModel
();
ilSkillModel
.
IntroductionLetter
=
this
.
introductionLetter
.
ObjectID
;
ilSkillModel
.
Skill
=
s
.
Skill
;
ilSkillModel
.
SortOrder
=
i
;
this
.
utilsService
.
addMultiRefObject
(
ilSkillModel
,
this
.
introductionLetter
,
'Skills'
,
this
.
createdObjs
);
});
}
saveIntroLetter
():
void
{
if
(
this
.
form
.
invalid
)
{
return
this
.
helperService
.
validateAllFormFields
(
this
.
form
);
}
if
(
this
.
introductionLetter
.
WorkExperiences
)
{
this
.
introductionLetter
.
WorkExperiences
.
forEach
((
w
,
i
)
=>
{
w
.
SortOrder
=
i
;
});
}
if
(
this
.
introductionLetter
.
Skills
)
{
this
.
introductionLetter
.
Skills
.
forEach
((
s
,
i
)
=>
{
s
.
SortOrder
=
i
;
});
}
this
.
isLoading
=
true
;
this
.
introLetterService
.
saveIntroLetters
(
this
.
createdObjs
,
this
.
updatedObjs
,
this
.
deletedObjs
)
.
pipe
(
takeUntil
(
this
.
componentInView
))
...
...
frontend/angular/src/app/my-career-web/models/career-skill.model.ts
View file @
09826c32
...
...
@@ -7,6 +7,7 @@ export class CareerSkillModel extends BaseModel {
SkillRating
:
string
;
Skill
:
SkillModel
;
CareerProfile
?:
string
;
Selected
:
boolean
;
}
...
...
frontend/angular/src/app/my-career-web/models/il-skill.model.ts
0 → 100644
View file @
09826c32
import
{
BaseModel
}
from
'./base.model'
;
import
{
CLASSES
}
from
'../config/constants'
;
export
class
ILSkillModel
extends
BaseModel
{
ObjectClass
=
CLASSES
.
ILSkill
;
SortOrder
:
number
;
IsSelected
:
boolean
;
Skill
:
any
;
IntroductionLetter
:
any
;
}
frontend/angular/src/app/my-career-web/models/il-work-experience.model.ts
0 → 100644
View file @
09826c32
import
{
BaseModel
}
from
'./base.model'
;
import
{
CLASSES
}
from
'../config/constants'
;
export
class
ILWorkExperienceModel
extends
BaseModel
{
ObjectClass
=
CLASSES
.
ILWorkExperience
;
SortOrder
:
number
;
IsSelected
:
boolean
;
WorkExperience
:
any
;
IntroductionLetter
:
any
;
}
frontend/angular/src/app/my-career-web/models/introduction-letter.model.ts
View file @
09826c32
import
{
BaseModel
}
from
'./base.model'
;
import
{
CLASSES
}
from
'../config/constants'
;
import
{
ILWorkExperienceModel
}
from
'./il-work-experience.model'
;
import
{
ILSkillModel
}
from
'./il-skill.model'
;
export
class
IntroductionLetterModel
extends
BaseModel
{
ObjectClass
=
CLASSES
.
INTRO
;
...
...
@@ -8,6 +10,6 @@ export class IntroductionLetterModel extends BaseModel {
Employer
:
string
;
ContactName
:
string
;
Candidate
:
any
;
Skills
:
any
[];
WorkExperiences
:
any
[];
Skills
:
ILSkillModel
[];
WorkExperiences
:
ILWorkExperienceModel
[];
}
frontend/angular/src/app/my-career-web/models/work-experience.model.ts
View file @
09826c32
...
...
@@ -14,4 +14,5 @@ export class WorkExperienceModel extends BaseModel {
JobRoleSummary
:
boolean
;
ILOJobTitle
:
any
;
CareerProfile
:
string
;
Selected
:
boolean
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment