|
|
|
|
@ -299,7 +299,8 @@ export class VacationTypeComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
else{
|
|
|
|
|
alert("please select vaction rule");
|
|
|
|
|
let msg = this.ts.trPK('vacation-rule', 'fill-vacation-type');
|
|
|
|
|
this.cs.presentAlert(msg);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}////////////////////////////////
|
|
|
|
|
@ -617,16 +618,20 @@ ApplyFunc() {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
let msg: string = "";
|
|
|
|
|
if (this.notifTypeSel == undefined) {
|
|
|
|
|
if (this.notifTypeSel == undefined ) {
|
|
|
|
|
msg = this.ts.trPK('vacation-rule', 'fillAction');
|
|
|
|
|
this.cs.presentAlert(msg);
|
|
|
|
|
} else if (this.msgVal == undefined) {
|
|
|
|
|
} else if (this.msgVal == undefined ) {
|
|
|
|
|
msg = this.ts.trPK('vacation-rule', 'fillMsg');
|
|
|
|
|
this.cs.presentAlert(msg);
|
|
|
|
|
} else if (this.Sdate == undefined) {
|
|
|
|
|
} else if (this.Sdate == undefined || this.Sdate == '') {
|
|
|
|
|
msg = this.ts.trPK('vacation-rule', 'fillSDate');
|
|
|
|
|
this.cs.presentAlert(msg);
|
|
|
|
|
}else if (this.Edate == undefined || this.Edate =='') {
|
|
|
|
|
msg = this.ts.trPK('vacation-rule', 'fillEDate');
|
|
|
|
|
this.cs.presentAlert(msg);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// else if (this.selEmployeeID == undefined) {
|
|
|
|
|
// msg = this.ts.trPK('vacation-rule', 'fillReplacement');
|
|
|
|
|
// this.cs.presentAlert(msg);
|
|
|
|
|
@ -730,13 +735,23 @@ updateVacationRule() {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
let msg: string = "";
|
|
|
|
|
if (this.notifTypeSel == undefined) {
|
|
|
|
|
if (this.notifTypeSel == undefined ) {
|
|
|
|
|
msg = this.ts.trPK('vacation-rule', 'fillAction');
|
|
|
|
|
this.cs.presentAlert(msg);
|
|
|
|
|
|
|
|
|
|
} else if (this.msgVal == undefined) {
|
|
|
|
|
msg = this.ts.trPK('vacation-rule', 'fillMsg');
|
|
|
|
|
} else if (this.Sdate == undefined) {
|
|
|
|
|
this.cs.presentAlert(msg);
|
|
|
|
|
|
|
|
|
|
} else if (this.Sdate == undefined || this.Sdate == '') {
|
|
|
|
|
msg = this.ts.trPK('vacation-rule', 'fillSDate');
|
|
|
|
|
} else {
|
|
|
|
|
this.cs.presentAlert(msg);
|
|
|
|
|
|
|
|
|
|
}else if (this.Edate == undefined || this.Edate =='') {
|
|
|
|
|
msg = this.ts.trPK('vacation-rule', 'fillEDate');
|
|
|
|
|
this.cs.presentAlert(msg);
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
var responseAttrDic = this.exampleJsonObject;
|
|
|
|
|
this.P_RESPOND_ATTRIBUTES_TBL = [];
|
|
|
|
|
for (let key in responseAttrDic) {
|
|
|
|
|
|