Merge branch 'develop' of github.com:Frappet/bma-ehr-organization into develop
This commit is contained in:
commit
8f0624d27b
1 changed files with 100 additions and 0 deletions
|
|
@ -4085,4 +4085,104 @@ export class ReportController extends Controller {
|
||||||
}
|
}
|
||||||
return new HttpSuccess({ template: "report3", reportName: "report3", data: { data } });
|
return new HttpSuccess({ template: "report3", reportName: "report3", data: { data } });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Get("report4/{rootId}")
|
||||||
|
async findReport4(@Path() rootId: string) {
|
||||||
|
|
||||||
|
const orgRootData = await this.orgRootRepository.find({
|
||||||
|
where: {
|
||||||
|
id: rootId,
|
||||||
|
},
|
||||||
|
order: { orgRootOrder: "ASC" },
|
||||||
|
relations: [
|
||||||
|
"posMasters",
|
||||||
|
"posMasters.positions",
|
||||||
|
"posMasters.positions.posLevel",
|
||||||
|
"posMasters.positions.posType",
|
||||||
|
"posMasters.positions.posExecutive",
|
||||||
|
],
|
||||||
|
});
|
||||||
|
let data: any = [];
|
||||||
|
var _data = [{
|
||||||
|
type: "ทั่วไป",
|
||||||
|
level: "ปฎิบัติงาน",
|
||||||
|
total: "0",
|
||||||
|
remark: "-"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "",
|
||||||
|
level: "ชำนาญงาน",
|
||||||
|
total: "0",
|
||||||
|
remark: "-"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "",
|
||||||
|
level: "อาวุโส",
|
||||||
|
total: "0",
|
||||||
|
remark: "-"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "",
|
||||||
|
level: "รวม",
|
||||||
|
total: "0",
|
||||||
|
remark: ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "วิชาการ",
|
||||||
|
level: "ปฎิบัติการ",
|
||||||
|
total: "0",
|
||||||
|
remark: "-"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "",
|
||||||
|
level: "ชำนาญการ",
|
||||||
|
total: "0",
|
||||||
|
remark: "-"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "",
|
||||||
|
level: "รวม",
|
||||||
|
total: "0",
|
||||||
|
remark: ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "อำนวยการ",
|
||||||
|
level: "ต้น",
|
||||||
|
total: "0",
|
||||||
|
remark: "-"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "",
|
||||||
|
level: "สูง",
|
||||||
|
total: "0",
|
||||||
|
remark: "-"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "",
|
||||||
|
level: "รวม",
|
||||||
|
total: "0",
|
||||||
|
remark: ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "บริหาร",
|
||||||
|
level: "ต้น",
|
||||||
|
total: "0",
|
||||||
|
remark: "-"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "",
|
||||||
|
level: "สูง",
|
||||||
|
total: "0",
|
||||||
|
remark: "-"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "",
|
||||||
|
level: "รวม",
|
||||||
|
total: "0",
|
||||||
|
remark: ""
|
||||||
|
}
|
||||||
|
]
|
||||||
|
data.push(_data);
|
||||||
|
return new HttpSuccess({ template: "report4", reportName: "report4", data: { dateCurrent: Extension.ToThaiShortDate(new Date()) , data: _data } });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue