Připraveny podklady pro novou agendu "Podepsané dokumenty"
Vzhled agendy (grid/strom/...) zatím není znám. closes #222Verze_3.0
							parent
							
								
									aaa89a2653
								
							
						
					
					
						commit
						c9a56887dc
					
				@ -0,0 +1,7 @@
 | 
				
			|||||||
 | 
					package info.bukova.isspst.dao;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import info.bukova.isspst.data.SignedDocument;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					public interface SignedDocumentDao extends BaseDao<SignedDocument> {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@ -0,0 +1,9 @@
 | 
				
			|||||||
 | 
					package info.bukova.isspst.dao.jpa;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import info.bukova.isspst.dao.SignedDocumentDao;
 | 
				
			||||||
 | 
					import info.bukova.isspst.data.SignedDocument;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					public class SignedDocumentDaoJPA extends BaseDaoJPA<SignedDocument> implements SignedDocumentDao {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@ -0,0 +1,86 @@
 | 
				
			|||||||
 | 
					package info.bukova.isspst.data;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import info.bukova.isspst.Constants;
 | 
				
			||||||
 | 
					import info.bukova.isspst.Module;
 | 
				
			||||||
 | 
					import info.bukova.isspst.StringUtils;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import java.util.Date;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import javax.persistence.Column;
 | 
				
			||||||
 | 
					import javax.persistence.Entity;
 | 
				
			||||||
 | 
					import javax.persistence.Table;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@Entity
 | 
				
			||||||
 | 
					@Table(name = "SIGNED_DOCUMENTS")
 | 
				
			||||||
 | 
					public class SignedDocument extends BaseData {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						@Column(name = "MODULE_NAME", length = Constants.LEN_TEXT)
 | 
				
			||||||
 | 
						private String moduleName;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						@Column(name = "RECORD_ID")
 | 
				
			||||||
 | 
						private int recordId;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						@Column(name = "NUMSER", length = Constants.LEN_TEXT)
 | 
				
			||||||
 | 
						private String numser;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						@Column(name = "DESCRIPTION", length = Constants.LEN_DESCRIPTION)
 | 
				
			||||||
 | 
						private String description;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						@Column(name = "SIGN_DATE")
 | 
				
			||||||
 | 
						private Date signDate;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						public String getModuleName() {
 | 
				
			||||||
 | 
							return moduleName;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						public void setModuleName(String moduleName) {
 | 
				
			||||||
 | 
							this.moduleName = moduleName;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						public int getRecordId() {
 | 
				
			||||||
 | 
							return recordId;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						public void setRecordId(int recordId) {
 | 
				
			||||||
 | 
							this.recordId = recordId;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						public String getNumser() {
 | 
				
			||||||
 | 
							return numser;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						public void setNumser(String numser) {
 | 
				
			||||||
 | 
							this.numser = numser;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						public String getDescription() {
 | 
				
			||||||
 | 
							return description;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						public void setDescription(String description) {
 | 
				
			||||||
 | 
							this.description = description;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						public Date getSignDate() {
 | 
				
			||||||
 | 
							return signDate;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						public void setSignDate(Date signDate) {
 | 
				
			||||||
 | 
							this.signDate = signDate;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						public String getAgendaName() {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							if (StringUtils.isNullOrEmpty(this.moduleName)) {
 | 
				
			||||||
 | 
								return "";
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							for (Module m : Constants.MODULES) {
 | 
				
			||||||
 | 
								if (m.getId() == this.moduleName) {
 | 
				
			||||||
 | 
									return m.getName();
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							return "";
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@ -0,0 +1,74 @@
 | 
				
			|||||||
 | 
					package info.bukova.isspst.data;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import info.bukova.isspst.Constants;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import javax.persistence.Column;
 | 
				
			||||||
 | 
					import javax.persistence.Entity;
 | 
				
			||||||
 | 
					import javax.persistence.GeneratedValue;
 | 
				
			||||||
 | 
					import javax.persistence.Id;
 | 
				
			||||||
 | 
					import javax.persistence.JoinColumn;
 | 
				
			||||||
 | 
					import javax.persistence.ManyToOne;
 | 
				
			||||||
 | 
					import javax.persistence.Table;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@Entity
 | 
				
			||||||
 | 
					@Table(name = "SIGNED_DOCUMENTS_ITEMS")
 | 
				
			||||||
 | 
					public class SignedDocumentItem {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						@Id
 | 
				
			||||||
 | 
						@Column(name = "ID")
 | 
				
			||||||
 | 
						@GeneratedValue
 | 
				
			||||||
 | 
						private int id;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						@Column(name = "REPORT_ID")
 | 
				
			||||||
 | 
						private int reportId;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						@Column(name = "REPORT_NAME", length = Constants.LEN_TEXT)
 | 
				
			||||||
 | 
						private String reportName;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						@Column(name = "FILENAME", length = Constants.LEN_TEXT)
 | 
				
			||||||
 | 
						private String fileName;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						@ManyToOne
 | 
				
			||||||
 | 
						@JoinColumn(name = "SIGNED_DOCUMENT_ID")
 | 
				
			||||||
 | 
						private SignedDocument signedDocument;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						public int getId() {
 | 
				
			||||||
 | 
							return id;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						public void setId(int id) {
 | 
				
			||||||
 | 
							this.id = id;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						public int getReportId() {
 | 
				
			||||||
 | 
							return reportId;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						public void setReportId(int reportId) {
 | 
				
			||||||
 | 
							this.reportId = reportId;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						public String getReportName() {
 | 
				
			||||||
 | 
							return reportName;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						public void setReportName(String reportName) {
 | 
				
			||||||
 | 
							this.reportName = reportName;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						public String getFileName() {
 | 
				
			||||||
 | 
							return fileName;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						public void setFileName(String fileName) {
 | 
				
			||||||
 | 
							this.fileName = fileName;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						public SignedDocument getSignedDocument() {
 | 
				
			||||||
 | 
							return signedDocument;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						public void setSignedDocument(SignedDocument signedDocument) {
 | 
				
			||||||
 | 
							this.signedDocument = signedDocument;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@ -0,0 +1,8 @@
 | 
				
			|||||||
 | 
					package info.bukova.isspst.services.signeddocs;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import info.bukova.isspst.data.SignedDocument;
 | 
				
			||||||
 | 
					import info.bukova.isspst.services.Service;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					public interface SignedDocumentService extends Service<SignedDocument> {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@ -0,0 +1,7 @@
 | 
				
			|||||||
 | 
					package info.bukova.isspst.services.signeddocs;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import info.bukova.isspst.data.SignedDocument;
 | 
				
			||||||
 | 
					import info.bukova.isspst.services.AbstractOwnedService;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					public class SignedDocumentServiceImpl extends AbstractOwnedService<SignedDocument> implements SignedDocumentService {
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
											
												Binary file not shown.
											
										
									
								| 
		 After Width: | Height: | Size: 803 B  | 
											
												Binary file not shown.
											
										
									
								| 
		 After Width: | Height: | Size: 1.4 KiB  | 
@ -0,0 +1,10 @@
 | 
				
			|||||||
 | 
					<?page title="${labels.AgendaSignedDocuments}" contentType="text/html;charset=UTF-8"?>
 | 
				
			||||||
 | 
					<zk>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					<zscript>
 | 
				
			||||||
 | 
						String gridZul = "grid.zul";
 | 
				
			||||||
 | 
					</zscript>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					<include src="/app/template.zhtml"/>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					</zk>
 | 
				
			||||||
					Loading…
					
					
				
		Reference in New Issue