-
-
+
+ {{ts.trPK('general','cancel')}}
+ {{ts.trPK('general','submit')}}
diff --git a/Mohem/src/app/mowadhafi/hr-request-form/hr-request-form.component.scss b/Mohem/src/app/mowadhafi/hr-request-form/hr-request-form.component.scss
index cc1ebf50..4cf1d3ce 100644
--- a/Mohem/src/app/mowadhafi/hr-request-form/hr-request-form.component.scss
+++ b/Mohem/src/app/mowadhafi/hr-request-form/hr-request-form.component.scss
@@ -386,8 +386,15 @@ ion-input {
margin-left: 15px;
margin-right: 5px;
font-family: 'WorkSans-bold';
+ font-size: 16px;
+ min-height: 1.0cm;
+ --background: #d00a0a !important;
}
+.main-button{
+ --box-shadow:none;
+ }
+
.gridSubmitBtn{
min-width: auto;
// margin: 0px;
@@ -403,7 +410,10 @@ ion-input {
color: white;
// margin-left: 15px;
// margin-right: 5px;
- font-family: 'WorkSans-bold';}
+ font-family: 'WorkSans-bold';
+ font-size: 16px;
+ min-height: 1.0cm;
+ --background: #19a163 !important;}
.filed-container{
@@ -512,4 +522,8 @@ select option[data-default] {
padding-right: 20px !important;
padding-top: 6px !important;
color: #999999 !important;
+ }
+
+ .button-native {
+ box-shadow: none!important;
}
\ No newline at end of file
diff --git a/Mohem/src/app/mowadhafi/hr-request-form/hr-request-form.component.ts b/Mohem/src/app/mowadhafi/hr-request-form/hr-request-form.component.ts
index 5c1bb330..ca777b85 100644
--- a/Mohem/src/app/mowadhafi/hr-request-form/hr-request-form.component.ts
+++ b/Mohem/src/app/mowadhafi/hr-request-form/hr-request-form.component.ts
@@ -54,9 +54,9 @@ export class HrRequestFormComponent implements OnInit {
public sectionDep: any;
public projectCode;
public SelectedServiceType: any;
- public depType: any ="";
- public secType: any = "";
- public topicType: any="";
+ public depType: any;
+ public secType: any;
+ public topicType: any;
indexLastObj: any;
addAttachRequest: any = [];
TransactionID: any;
@@ -108,6 +108,13 @@ export class HrRequestFormComponent implements OnInit {
}
+ public isValidForm(): boolean {
+ if (this.depType && this.SelectedServiceType && this.secType && this.topicType) {
+ return false;
+ }
+ return true;
+}
+
onSelectChange(event, type) {
const value = event.target.value;
@@ -248,7 +255,11 @@ export class HrRequestFormComponent implements OnInit {
request.append('sectionId', this.secType);
request.append('sectionTopicId', this.topicType);
request.append('description', this.Description);
- request.append('fileColl', this.selectedFile[0], this.selectedFile[0].name);
+ console.log("TEST:______")
+ console.log(this.selectedFile);
+ if(this.selectedFile && this.selectedFile !== undefined){
+ request.append('fileColl', this.selectedFile[0], this.selectedFile[0].name);
+ }
request.append('employeeNumber', authUser.P_USER_NAME);
request.append('ticketStatus', 'new');
request.append('channelId', '3');
diff --git a/Mohem/src/app/mowadhafi/hr-request/hr-request.component.html b/Mohem/src/app/mowadhafi/hr-request/hr-request.component.html
index 63b85eb7..89565f14 100644
--- a/Mohem/src/app/mowadhafi/hr-request/hr-request.component.html
+++ b/Mohem/src/app/mowadhafi/hr-request/hr-request.component.html
@@ -85,11 +85,7 @@
-
+