remove time and date picker

mekawy-issues
Mohamed Mekawy 6 years ago
parent 17ad6c7c46
commit 780822c71c

@ -1058,7 +1058,7 @@ export class SubmitAbsenceComponent implements OnInit {
this.absenceDffresponse[i].DISPLAY_FLAG != "N"
) {
//date
// elemVal = this.common.formatDate(elemVal);
elemVal = this.common.formatDate(elemVal);
} else if (
this.absenceDffresponse[i].FORMAT_TYPE == "Y" &&
this.absenceDffresponse[i].DISPLAY_FLAG != "N"

@ -267,14 +267,14 @@ export class AddEitComponent implements OnInit {
const elem = document.getElementById(
feildsList[i].APPLICATION_COLUMN_NAME
);
elem.addEventListener("click", e => {
if (feildsList[i].MOBILE_ENABLED != "Y") return false;
this.showDateTimePicker(
feildsList[i].APPLICATION_COLUMN_NAME,
feildsList[i].MAXIMUM_SIZE
);
e.stopImmediatePropagation();
});
// elem.addEventListener("click", e => {
// if (feildsList[i].MOBILE_ENABLED != "Y") return false;
// this.showDateTimePicker(
// feildsList[i].APPLICATION_COLUMN_NAME,
// feildsList[i].MAXIMUM_SIZE
// );
// e.stopImmediatePropagation();
// });
// else if(feildsList[i].DEFAULT_TYPE=="D"){
// this.datetimeInput = new DateTimeInput(feildsList[i].SEGMENT_PROMPT,feildsList[i].APPLICATION_COLUMN_NAME,"currentDateTime",containerId,feildsList[i].MOBILE_ENABLED);
// }else if(feildsList[i].DEFAULT_TYPE=="P"||feildsList[i].DEFAULT_TYPE=="S"){
@ -311,14 +311,14 @@ export class AddEitComponent implements OnInit {
const elem = document.getElementById(
feildsList[i].APPLICATION_COLUMN_NAME
);
elem.addEventListener("click", e => {
if (feildsList[i].MOBILE_ENABLED != "Y") return false;
this.showTimePicker(
feildsList[i].APPLICATION_COLUMN_NAME,
feildsList[i].MAXIMUM_SIZE
);
e.stopImmediatePropagation();
});
// elem.addEventListener("click", e => {
// if (feildsList[i].MOBILE_ENABLED != "Y") return false;
// this.showTimePicker(
// feildsList[i].APPLICATION_COLUMN_NAME,
// feildsList[i].MAXIMUM_SIZE
// );
// e.stopImmediatePropagation();
// });
// else if(feildsList[i].DEFAULT_TYPE=="T"){
// this.timeInput = new TimeInput(feildsList[i].SEGMENT_PROMPT,feildsList[i].APPLICATION_COLUMN_NAME,"currentTime",containerId,feildsList[i].MOBILE_ENABLED);
// }else if(feildsList[i].DEFAULT_TYPE=="P"||feildsList[i].DEFAULT_TYPE=="S"){

Loading…
Cancel
Save