modifications
parent
0625d414ed
commit
cc89fa869e
@ -0,0 +1,6 @@
|
|||||||
|
export class coverTypeDto{
|
||||||
|
|
||||||
|
id:number
|
||||||
|
|
||||||
|
coverType:string
|
||||||
|
}
|
||||||
@ -0,0 +1,5 @@
|
|||||||
|
export class FileFormatLovDto{
|
||||||
|
id:number;
|
||||||
|
|
||||||
|
fileFormat:string;
|
||||||
|
}
|
||||||
@ -1,14 +1,14 @@
|
|||||||
export class TenderDocumentDto{
|
export class TenderDocumentDto{
|
||||||
|
|
||||||
tender_id:string;
|
tenderId:string;
|
||||||
|
|
||||||
doc_name:string;
|
docName:string;
|
||||||
|
|
||||||
description:string;
|
description:string;
|
||||||
|
|
||||||
doc_type:string;
|
docType:string;
|
||||||
|
|
||||||
doc_size:number;
|
documentSize:number;
|
||||||
|
|
||||||
doc_category:string
|
documentCategory:string;
|
||||||
}
|
}
|
||||||
@ -0,0 +1,15 @@
|
|||||||
|
import { Controller } from '@nestjs/common';
|
||||||
|
import { coverTypeDto } from 'src/dto/cover-type.dto';
|
||||||
|
import { PcdFormGridController } from 'src/framework/beans/pcd-form-grid.controller';
|
||||||
|
import { CoversLovService } from './covers-lov.service';
|
||||||
|
|
||||||
|
@Controller('covers-lov')
|
||||||
|
export class CoversLovController extends PcdFormGridController<coverTypeDto>{
|
||||||
|
|
||||||
|
constructor(
|
||||||
|
private coversLovService: CoversLovService
|
||||||
|
) {
|
||||||
|
super(coversLovService);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,21 @@
|
|||||||
|
import { PcdBaseDto } from "src/framework/custom/pcd-dto.custom";
|
||||||
|
import { PcdBaseEntity } from "src/framework/custom/pcd-entity.custom";
|
||||||
|
import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";
|
||||||
|
|
||||||
|
@Entity('covers-lov')
|
||||||
|
export class CoversLov extends PcdBaseEntity{
|
||||||
|
|
||||||
|
@PrimaryGeneratedColumn({
|
||||||
|
name:"id"
|
||||||
|
})
|
||||||
|
id:number
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
name:"covertype",
|
||||||
|
type:"varchar",
|
||||||
|
length:500,
|
||||||
|
nullable:true
|
||||||
|
})
|
||||||
|
coverType:string
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,15 @@
|
|||||||
|
import { Module } from '@nestjs/common';
|
||||||
|
import { CoversLovController } from './covers-lov.controller';
|
||||||
|
import { CoversLovService } from './covers-lov.service';
|
||||||
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||||
|
import { AuthModule } from 'src/auth/auth.module';
|
||||||
|
import { CoversLovRepository } from './covers-lov.repository';
|
||||||
|
|
||||||
|
@Module({
|
||||||
|
imports: [
|
||||||
|
TypeOrmModule.forFeature([CoversLovRepository]),
|
||||||
|
],
|
||||||
|
controllers: [CoversLovController],
|
||||||
|
providers: [CoversLovService]
|
||||||
|
})
|
||||||
|
export class CoversLovModule {}
|
||||||
@ -0,0 +1,7 @@
|
|||||||
|
import { EntityRepository, Repository } from "typeorm";
|
||||||
|
import { CoversLov } from "./covers-lov.entity";
|
||||||
|
|
||||||
|
@EntityRepository(CoversLov)
|
||||||
|
export class CoversLovRepository extends Repository<CoversLov>{
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,17 @@
|
|||||||
|
import { Injectable } from '@nestjs/common';
|
||||||
|
import { PcdFormGridService } from 'src/framework/beans/pcd-form-grid.service';
|
||||||
|
import { CoversLov } from './covers-lov.entity';
|
||||||
|
import { InjectRepository } from '@nestjs/typeorm';
|
||||||
|
import { CoversLovRepository } from './covers-lov.repository';
|
||||||
|
|
||||||
|
@Injectable()
|
||||||
|
export class CoversLovService extends PcdFormGridService<CoversLov>{
|
||||||
|
|
||||||
|
constructor(
|
||||||
|
@InjectRepository(CoversLovRepository)
|
||||||
|
private coversLovRepository: CoversLovRepository,
|
||||||
|
) {
|
||||||
|
super(coversLovRepository);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,4 @@
|
|||||||
|
import { Controller } from '@nestjs/common';
|
||||||
|
|
||||||
|
@Controller('covers-master')
|
||||||
|
export class CoversMasterController {}
|
||||||
@ -0,0 +1,9 @@
|
|||||||
|
import { Module } from '@nestjs/common';
|
||||||
|
import { CoversMasterService } from './covers-master.service';
|
||||||
|
import { CoversMasterController } from './covers-master.controller';
|
||||||
|
|
||||||
|
@Module({
|
||||||
|
providers: [CoversMasterService],
|
||||||
|
controllers: [CoversMasterController]
|
||||||
|
})
|
||||||
|
export class CoversMasterModule {}
|
||||||
@ -0,0 +1,7 @@
|
|||||||
|
import { EntityRepository, Repository } from "typeorm";
|
||||||
|
import { CoverDoc } from "./covers-master.entity";
|
||||||
|
|
||||||
|
@EntityRepository(CoverDoc)
|
||||||
|
export class importantDocRepository extends Repository<CoverDoc>{
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,4 @@
|
|||||||
|
import { Injectable } from '@nestjs/common';
|
||||||
|
|
||||||
|
@Injectable()
|
||||||
|
export class CoversMasterService {}
|
||||||
@ -0,0 +1,17 @@
|
|||||||
|
import { Controller } from '@nestjs/common';
|
||||||
|
import { PcdFormGridController } from 'src/framework/beans/pcd-form-grid.controller';
|
||||||
|
import { FileFormatRepository } from './file-format-lov.repository';
|
||||||
|
import { FileFormatLovDto } from 'src/dto/file-format-lov.dto';
|
||||||
|
import { FileFormatLovService } from './file-format-lov.service';
|
||||||
|
|
||||||
|
@Controller('file-format-lov')
|
||||||
|
export class FileFormatLovController extends PcdFormGridController<FileFormatLovDto>{
|
||||||
|
|
||||||
|
constructor(
|
||||||
|
private fileFormatLovService: FileFormatLovService
|
||||||
|
) {
|
||||||
|
super(fileFormatLovService);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@ -0,0 +1,18 @@
|
|||||||
|
import { PcdBaseEntity } from "src/framework/custom/pcd-entity.custom";
|
||||||
|
import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";
|
||||||
|
|
||||||
|
@Entity('file-format')
|
||||||
|
export class FileFormat extends PcdBaseEntity{
|
||||||
|
@PrimaryGeneratedColumn({
|
||||||
|
name:"id"
|
||||||
|
})
|
||||||
|
id:number
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
name:"file_format",
|
||||||
|
type:"varchar",
|
||||||
|
length:500,
|
||||||
|
nullable:true
|
||||||
|
})
|
||||||
|
fileFormat:string
|
||||||
|
}
|
||||||
@ -0,0 +1,16 @@
|
|||||||
|
import { Module } from '@nestjs/common';
|
||||||
|
import { FileFormatLovService } from './file-format-lov.service';
|
||||||
|
import { FileFormatLovController } from './file-format-lov.controller';
|
||||||
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||||
|
import { FileFormatRepository } from './file-format-lov.repository';
|
||||||
|
import { AuthModule } from 'src/auth/auth.module';
|
||||||
|
|
||||||
|
@Module({
|
||||||
|
imports: [
|
||||||
|
TypeOrmModule.forFeature([FileFormatRepository]),
|
||||||
|
|
||||||
|
],
|
||||||
|
providers: [FileFormatLovService],
|
||||||
|
controllers: [FileFormatLovController]
|
||||||
|
})
|
||||||
|
export class FileFormatLovModule {}
|
||||||
@ -0,0 +1,7 @@
|
|||||||
|
import { EntityRepository, Repository } from "typeorm";
|
||||||
|
import { FileFormat } from "./file-format-lov.entity";
|
||||||
|
|
||||||
|
@EntityRepository(FileFormat)
|
||||||
|
export class FileFormatRepository extends Repository<FileFormat>{
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,18 @@
|
|||||||
|
import { Injectable } from '@nestjs/common';
|
||||||
|
import { InjectRepository } from '@nestjs/typeorm';
|
||||||
|
import { FileFormatLovDto } from 'src/dto/file-format-lov.dto';
|
||||||
|
import { PcdFormGridService } from 'src/framework/beans/pcd-form-grid.service';
|
||||||
|
import { FileFormatRepository } from './file-format-lov.repository';
|
||||||
|
|
||||||
|
@Injectable()
|
||||||
|
export class FileFormatLovService extends PcdFormGridService<FileFormatLovDto>{
|
||||||
|
|
||||||
|
constructor(
|
||||||
|
@InjectRepository(FileFormatRepository)
|
||||||
|
private fileFormatRepository: FileFormatRepository,
|
||||||
|
) {
|
||||||
|
super(fileFormatRepository);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@ -1,7 +0,0 @@
|
|||||||
import { EntityRepository, Repository } from "typeorm";
|
|
||||||
import { ImportantDoc } from "./imp-doc.entity";
|
|
||||||
|
|
||||||
@EntityRepository(ImportantDoc)
|
|
||||||
export class importantDocRepository extends Repository<ImportantDoc>{
|
|
||||||
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue