-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create Controllers for Contacts FIX ajax combobox
- Loading branch information
1 parent
fb22060
commit cfb520f
Showing
15 changed files
with
676 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
src/main/java/ua/pp/fairwind/favorid/internalDB/model/storehouses/MOVEMENT_TYPES.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package ua.pp.fairwind.favorid.internalDB.model.storehouses; | ||
|
||
/** | ||
* Created by Ñåðãåé on 13.10.2015. | ||
*/ | ||
public enum MOVEMENT_TYPES { | ||
ARRIVAL, | ||
SHIPMENT, | ||
MOVE, | ||
DEFECTIVE, | ||
UTILIZATION | ||
} |
117 changes: 117 additions & 0 deletions
117
src/main/java/ua/pp/fairwind/favorid/internalDB/model/storehouses/Movement.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
package ua.pp.fairwind.favorid.internalDB.model.storehouses; | ||
|
||
import ua.pp.fairwind.favorid.internalDB.model.Counterparty; | ||
import ua.pp.fairwind.favorid.internalDB.model.Person; | ||
|
||
import javax.persistence.*; | ||
import java.util.Date; | ||
|
||
/** | ||
* Created by Ñåðãåé on 13.10.2015. | ||
*/ | ||
@Entity | ||
@Table(name = "STOREHOUSE_MOVEMENT") | ||
public class Movement { | ||
@Id | ||
@GeneratedValue | ||
Long id; | ||
MOVEMENT_TYPES typeMovement; | ||
@ManyToOne | ||
@JoinColumn(name = "responsible_person_ID") | ||
Person responsiblePerson; | ||
Date operationDate; | ||
@ManyToOne | ||
@JoinColumn(name = "from_storehouse_ID") | ||
Storehouse fromStorehouse; | ||
@ManyToOne | ||
@JoinColumn(name = "counterparty_id") | ||
Counterparty counterparty; | ||
@ManyToOne | ||
@JoinColumn(name = "to_storehouse_ID") | ||
Storehouse toStorehouse; | ||
@ManyToOne | ||
@JoinColumn(name = "nomenclature_ID") | ||
Nomenclature nomenclature; | ||
long count; | ||
String units; | ||
|
||
public Long getId() { | ||
return id; | ||
} | ||
|
||
public void setId(Long id) { | ||
this.id = id; | ||
} | ||
|
||
public MOVEMENT_TYPES getTypeMovement() { | ||
return typeMovement; | ||
} | ||
|
||
public void setTypeMovement(MOVEMENT_TYPES typeMovement) { | ||
this.typeMovement = typeMovement; | ||
} | ||
|
||
public Person getResponsiblePerson() { | ||
return responsiblePerson; | ||
} | ||
|
||
public void setResponsiblePerson(Person responsiblePerson) { | ||
this.responsiblePerson = responsiblePerson; | ||
} | ||
|
||
public Date getOperationDate() { | ||
return operationDate; | ||
} | ||
|
||
public void setOperationDate(Date operationDate) { | ||
this.operationDate = operationDate; | ||
} | ||
|
||
public Storehouse getFromStorehouse() { | ||
return fromStorehouse; | ||
} | ||
|
||
public void setFromStorehouse(Storehouse fromStorehouse) { | ||
this.fromStorehouse = fromStorehouse; | ||
} | ||
|
||
public Counterparty getCounterparty() { | ||
return counterparty; | ||
} | ||
|
||
public void setCounterparty(Counterparty counterparty) { | ||
this.counterparty = counterparty; | ||
} | ||
|
||
public Storehouse getToStorehouse() { | ||
return toStorehouse; | ||
} | ||
|
||
public void setToStorehouse(Storehouse toStorehouse) { | ||
this.toStorehouse = toStorehouse; | ||
} | ||
|
||
public Nomenclature getNomenclature() { | ||
return nomenclature; | ||
} | ||
|
||
public void setNomenclature(Nomenclature nomenclature) { | ||
this.nomenclature = nomenclature; | ||
} | ||
|
||
public long getCount() { | ||
return count; | ||
} | ||
|
||
public void setCount(long count) { | ||
this.count = count; | ||
} | ||
|
||
public String getUnits() { | ||
return units; | ||
} | ||
|
||
public void setUnits(String units) { | ||
this.units = units; | ||
} | ||
} |
Oops, something went wrong.