Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OH2-396 | Add a lock mechanism in all the remaining entities without it #479

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
127 changes: 89 additions & 38 deletions openapi/oh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6444,6 +6444,11 @@ components:
maxLength: 45
type: string
description: Service done during the visit
lock:
type: integer
description: Lock
format: int32
example: 0
description: Class representing a vaccine type
VaccineTypeDTO:
required:
Expand Down Expand Up @@ -6513,6 +6518,11 @@ components:
maxLength: 65535
type: string
description: The value of the user
lock:
type: integer
description: Lock
format: int32
example: 0
PermissionDTO:
required:
- description
Expand Down Expand Up @@ -6642,6 +6652,11 @@ components:
maxLength: 200
type: string
description: The supplier's notes
lock:
type: integer
description: Lock
format: int32
example: 0
PricesOthersDTO:
required:
- code
Expand All @@ -6663,6 +6678,11 @@ components:
maxLength: 100
type: string
description: The description
lock:
type: integer
description: Lock
format: int32
example: 0
opdInclude:
type: boolean
ipdInclude:
Expand Down Expand Up @@ -6704,6 +6724,11 @@ components:
type: string
description: The currency
example: FCFA
lock:
type: integer
description: Lock
format: int32
example: 0
hashCode:
type: integer
format: int32
Expand Down Expand Up @@ -6928,11 +6953,11 @@ components:
type: string
description: "Flag record deleted, values are 'Y' OR 'N' "
example: "N"
fhu:
type: string
yprog:
type: integer
format: int32
fhu:
type: string
description: The admission
AdmissionTypeDTO:
required:
Expand Down Expand Up @@ -7011,6 +7036,11 @@ components:
type: string
description: user name who create the bill
example: admin
lock:
type: integer
description: Lock
format: int32
example: 0
list:
type: boolean
description: Class representing a bill
Expand Down Expand Up @@ -7656,6 +7686,11 @@ components:
- regular
- diarrheal
- irregular
lock:
type: integer
description: Lock
format: int32
example: 0
BillItemsDTO:
required:
- itemAmount
Expand Down Expand Up @@ -7777,6 +7812,11 @@ components:
description: The minimum value of the range
format: int32
example: 0
lock:
type: integer
description: Lock
format: int32
example: 0
to:
type: integer
description: The maximum value of the range
Expand Down Expand Up @@ -8042,10 +8082,10 @@ components:
type: object
family:
type: string
plain:
type: boolean
fontName:
type: string
plain:
type: boolean
transform:
type: object
properties:
Expand Down Expand Up @@ -8127,10 +8167,10 @@ components:
type: object
family:
type: string
plain:
type: boolean
fontName:
type: string
plain:
type: boolean
transform:
type: object
properties:
Expand Down Expand Up @@ -8319,16 +8359,16 @@ components:
x:
type: number
format: double
minX:
height:
type: number
format: double
minY:
width:
type: number
format: double
height:
minX:
type: number
format: double
width:
minY:
type: number
format: double
maxX:
Expand All @@ -8354,16 +8394,16 @@ components:
x:
type: number
format: double
minX:
height:
type: number
format: double
minY:
width:
type: number
format: double
height:
minX:
type: number
format: double
width:
minY:
type: number
format: double
maxX:
Expand Down Expand Up @@ -8479,16 +8519,16 @@ components:
x:
type: number
format: double
minX:
height:
type: number
format: double
minY:
width:
type: number
format: double
height:
minX:
type: number
format: double
width:
minY:
type: number
format: double
maxX:
Expand All @@ -8514,16 +8554,16 @@ components:
x:
type: number
format: double
minX:
height:
type: number
format: double
minY:
width:
type: number
format: double
height:
minX:
type: number
format: double
width:
minY:
type: number
format: double
maxX:
Expand Down Expand Up @@ -8568,16 +8608,16 @@ components:
x:
type: number
format: double
minX:
height:
type: number
format: double
minY:
width:
type: number
format: double
height:
minX:
type: number
format: double
width:
minY:
type: number
format: double
maxX:
Expand Down Expand Up @@ -8638,16 +8678,16 @@ components:
x:
type: number
format: double
minX:
height:
type: number
format: double
minY:
width:
type: number
format: double
height:
minX:
type: number
format: double
width:
minY:
type: number
format: double
maxX:
Expand All @@ -8673,16 +8713,16 @@ components:
x:
type: number
format: double
minX:
height:
type: number
format: double
minY:
width:
type: number
format: double
height:
minX:
type: number
format: double
width:
minY:
type: number
format: double
maxX:
Expand Down Expand Up @@ -8778,13 +8818,13 @@ components:
smsInt:
type: integer
format: int32
notify:
type: boolean
sms:
type: boolean
medical:
type: integer
format: int32
sms:
type: boolean
notify:
type: boolean
TherapyDTO:
type: object
properties:
Expand Down Expand Up @@ -9085,6 +9125,11 @@ components:
description: Price
format: double
example: 1500
lock:
type: integer
description: Lock
format: int32
example: 0
editable:
type: boolean
readOnly: true
Expand Down Expand Up @@ -9125,6 +9170,9 @@ components:
type: string
currency:
type: string
lock:
type: integer
format: int32
description: The price list
PageInfoDTO:
type: object
Expand Down Expand Up @@ -9241,6 +9289,9 @@ components:
to:
type: integer
format: int32
lock:
type: integer
format: int32
PageAdmissionDTO:
type: object
properties:
Expand Down
11 changes: 11 additions & 0 deletions src/main/java/org/isf/accounting/dto/BillDTO.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ public class BillDTO {
@Schema(description = "user name who create the bill", example = "admin")
private String user;

@Schema(description = "Lock", example = "0")
private int lock;

public Integer getId() {
return this.id;
}
Expand Down Expand Up @@ -181,4 +184,12 @@ public void setBalance(Double balance) {
public void setUser(String user) {
this.user = user;
}

public int getLock() {
return lock;
}

public void setLock(int lock) {
this.lock = lock;
}
}
11 changes: 11 additions & 0 deletions src/main/java/org/isf/agetype/dto/AgeTypeDTO.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ public class AgeTypeDTO {
@Schema(description = "The minimum value of the range", example = "0")
private int from;

@Schema(description = "Lock", example = "0")
private int lock;

@NotNull
@Schema(description = "The maximum value of the range", example = "0")
private int to;
Expand Down Expand Up @@ -74,4 +77,12 @@ public void setFrom(int from) {
public void setTo(int to) {
this.to = to;
}

public int getLock() {
return lock;
}

public void setLock(int lock) {
this.lock = lock;
}
}
Loading
Loading