ระบบพัฒนาบุคลากร>>อัปโหลดไฟล์รายชื่อผู้ผ่านการฝึกอบรม (ลูกจ้างประจำ) #803
This commit is contained in:
parent
650cd842af
commit
786da60910
1 changed files with 0 additions and 27 deletions
|
|
@ -2620,33 +2620,6 @@ export class DevelopmentController extends Controller {
|
|||
);
|
||||
if (oldProfile != null) {
|
||||
if (oldProfile.isDone == true) return;
|
||||
oldProfile.dateStart =
|
||||
item["วันที่เริ่มต้น"] == undefined ? null : item["วันที่เริ่มต้น"];
|
||||
oldProfile.dateEnd = item["วันที่สิ้นสุด"] == undefined ? null : item["วันที่สิ้นสุด"];
|
||||
oldProfile.order =
|
||||
item["เลขที่คำสั่ง/เลขที่หนังสืออนุมัติ"] == undefined
|
||||
? null
|
||||
: item["เลขที่คำสั่ง/เลขที่หนังสืออนุมัติ"];
|
||||
oldProfile.dateOrder =
|
||||
item["คำสั่งลงวันที่/หนังสืออนุมัติลงวันที่"] == undefined
|
||||
? null
|
||||
: new Date(item["คำสั่งลงวันที่/หนังสืออนุมัติลงวันที่"]);
|
||||
oldProfile.trainingDays =
|
||||
item["จำนวนวันที่อบรม"] == undefined ? null : item["จำนวนวันที่อบรม"];
|
||||
oldProfile.createdUserId = request.user.sub;
|
||||
oldProfile.createdFullName = request.user.name;
|
||||
oldProfile.lastUpdateUserId = request.user.sub;
|
||||
oldProfile.lastUpdateFullName = request.user.name;
|
||||
oldProfile.createdAt = new Date();
|
||||
oldProfile.lastUpdatedAt = new Date();
|
||||
// addLogSequence(request, {
|
||||
// action: "database",
|
||||
// status: "success",
|
||||
// description: "Store DevelopmentHistory.",
|
||||
// });
|
||||
await this.developmentHistoryRepository.save(oldProfile, { data: request });
|
||||
setLogDataDiff(request, { before, after: oldProfile });
|
||||
return;
|
||||
}
|
||||
if (item["ประเภท"] == undefined) return;
|
||||
if (item["ประเภท"] == "ข้าราชการกรุงเทพมหานครสามัญ" || item["ประเภท"] == "ขรก.กทม. สามัญ") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue