Class Contract
java.lang.Object
com.sankcrm.erp.domain.model.IdentifiedDomainObject
com.sankcrm.erp.domain.model.Entity
com.sankcrm.erp.domain.model.ConcurrencySafeEntity
com.sankcrm.erp.contract.domain.model.Contract
- All Implemented Interfaces:
Serializable
@Entity
public class Contract
extends com.sankcrm.erp.domain.model.ConcurrencySafeEntity
合同
- Since:
- 1.0.0
- Author:
- zhsxin
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.sankcrm.erp.domain.model.ConcurrencySafeEntity
failWhenConcurrencyViolation, getUpdatedDateTime, getVersion, setUpdatedDateTime, setVersionMethods inherited from class com.sankcrm.erp.domain.model.Entity
getCreatedDateTime, setCreatedDateTimeMethods inherited from class com.sankcrm.erp.domain.model.IdentifiedDomainObject
equals, evict, getId, hashCode, merge, refresh, setId
-
Constructor Details
-
Contract
public Contract()
-
-
Method Details
-
fileName
-
pdfFileName
Returns the public filename of the generated contract PDF.The signing supplier validates the suffix before reading the file stream. A DOCX template is converted to PDF before it is submitted, so the persisted filename must describe that generated PDF even when the caller supplies only a display name.
- Parameters:
name- caller supplied filename or display name- Returns:
- a filename ending in
.pdf
-
pdf
public boolean pdf()是否是PDF- Returns:
- true/false
-