เพิ่มตำแหน่งเจ้าหน้าที่
This commit is contained in:
parent
3b0d8c24a7
commit
6f11eecb8f
15 changed files with 771 additions and 33 deletions
|
|
@ -254,7 +254,9 @@ export class EmployeePositionController extends Controller {
|
|||
posMasterNoSuffix: posMaster.posMasterNoSuffix,
|
||||
reason: posMaster.reason,
|
||||
isOfficer: posMaster.isOfficer,
|
||||
isStaff: posMaster.isStaff,
|
||||
isDirector: posMaster.isDirector,
|
||||
positionSign: posMaster.positionSign,
|
||||
positions: positions.map((position) => ({
|
||||
id: position.id,
|
||||
positionName: position.positionName,
|
||||
|
|
@ -628,8 +630,11 @@ export class EmployeePositionController extends Controller {
|
|||
if (!posMaster) {
|
||||
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลอัตรากำลัง");
|
||||
}
|
||||
let _null:any = null;
|
||||
posMaster.posMasterNo = requestBody.posMasterNo;
|
||||
posMaster.isDirector = requestBody.isDirector;
|
||||
posMaster.isStaff = requestBody.isStaff;
|
||||
posMaster.positionSign = requestBody.positionSign == null ? _null : requestBody.positionSign;
|
||||
posMaster.isOfficer = requestBody.isOfficer;
|
||||
posMaster.posMasterNoPrefix = requestBody.posMasterNoPrefix;
|
||||
posMaster.posMasterNoSuffix = requestBody.posMasterNoSuffix;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue