cloud-ide-lms-model
Version:
Package for Model management of Cloud IDEsys LMS
76 lines (75 loc) • 2.29 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.MDepartmentToggleStatusPayload = exports.MDepartmentInsertUpdatePayload = exports.MDepartmentDeletePayload = exports.MDepartmentGetByIdPayload = exports.MDepartment = void 0;
const common_1 = require("../../common-types/common");
/* INTERFACE END */
/* MODEL START */
class MDepartment extends common_1.MTableQueries {
constructor(init) {
super(init);
Object.assign(this, init);
}
Validate() {
let errorLogger = {};
return errorLogger;
}
}
exports.MDepartment = MDepartment;
class MDepartmentGetByIdPayload {
constructor(init) {
Object.assign(this, init);
}
Validate() {
let errorLogger = {};
if (!this.sydept_id) {
errorLogger.sydept_id = "Department ID is Required!";
}
return errorLogger;
}
}
exports.MDepartmentGetByIdPayload = MDepartmentGetByIdPayload;
class MDepartmentDeletePayload {
constructor(init) {
Object.assign(this, init);
}
Validate() {
let errorLogger = {};
if (!this.sydept_id) {
errorLogger.sydept_id = "Department ID is Required!";
}
return errorLogger;
}
}
exports.MDepartmentDeletePayload = MDepartmentDeletePayload;
class MDepartmentToggleStatusPayload {
constructor(init) {
Object.assign(this, init);
}
Validate() {
let errorLogger = {};
if (!this.sydept_id) {
errorLogger.sydept_id = "Department ID is Required!";
}
return errorLogger;
}
}
exports.MDepartmentToggleStatusPayload = MDepartmentToggleStatusPayload;
class MDepartmentInsertUpdatePayload {
constructor(init) {
Object.assign(this, init);
}
Validate() {
let errorLogger = {};
if (!this.sydept_code) {
errorLogger.sydept_code = "Department code is required!";
}
if (!this.sydept_name) {
errorLogger.sydept_name = "Department name is required!";
}
if (!this.sydept_entity_id_syen) {
errorLogger.sydept_entity_id_syen = "Entity ID is required!";
}
return errorLogger;
}
}
exports.MDepartmentInsertUpdatePayload = MDepartmentInsertUpdatePayload;