tvpl.api

<back to all web services

StatDocByTypeRequest

Requires Authentication
The following routes are available for this service:
POST/document/stat-search-by-type
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class StatDocByTypeRequest extends SimpleSearchFilter implements IPost
    {
        
    }

    public static class SimpleSearchFilter
    {
        public String title = null;
        public Integer groupId = null;
        public Integer subjectId = null;
        public Boolean isUrgent = null;
        public DocumentSearchStage documentSearchStage = null;
        public Boolean isInternal = null;
        public Date fromDate = null;
        public Date toDate = null;
        public Integer typeId = null;
        public Integer statusId = null;
        public Integer issuingAgencyId = null;
        public Boolean isParty = null;
        
        public String getTitle() { return title; }
        public SimpleSearchFilter setTitle(String value) { this.title = value; return this; }
        public Integer getGroupId() { return groupId; }
        public SimpleSearchFilter setGroupId(Integer value) { this.groupId = value; return this; }
        public Integer getSubjectId() { return subjectId; }
        public SimpleSearchFilter setSubjectId(Integer value) { this.subjectId = value; return this; }
        public Boolean getIsUrgent() { return isUrgent; }
        public SimpleSearchFilter setIsUrgent(Boolean value) { this.isUrgent = value; return this; }
        public DocumentSearchStage getDocumentSearchStage() { return documentSearchStage; }
        public SimpleSearchFilter setDocumentSearchStage(DocumentSearchStage value) { this.documentSearchStage = value; return this; }
        public Boolean getIsInternal() { return isInternal; }
        public SimpleSearchFilter setIsInternal(Boolean value) { this.isInternal = value; return this; }
        public Date getFromDate() { return fromDate; }
        public SimpleSearchFilter setFromDate(Date value) { this.fromDate = value; return this; }
        public Date getToDate() { return toDate; }
        public SimpleSearchFilter setToDate(Date value) { this.toDate = value; return this; }
        public Integer getTypeId() { return typeId; }
        public SimpleSearchFilter setTypeId(Integer value) { this.typeId = value; return this; }
        public Integer getStatusId() { return statusId; }
        public SimpleSearchFilter setStatusId(Integer value) { this.statusId = value; return this; }
        public Integer getIssuingAgencyId() { return issuingAgencyId; }
        public SimpleSearchFilter setIssuingAgencyId(Integer value) { this.issuingAgencyId = value; return this; }
        public Boolean getIsParty() { return isParty; }
        public SimpleSearchFilter setIsParty(Boolean value) { this.isParty = value; return this; }
    }

    public static enum DocumentSearchStage
    {
        All,
        AllProcessing,
        Draft,
        PendingApproval,
        IsRevisionRequested,
        PendingCompilation,
        PendingReport,
        Published,
        Active,
        InActive;
    }

    public static class SearchResponse implements IResponseRequest
    {
        public Long totalCount = null;
        public Integer code = null;
        public ArrayList<DocumentSearchResultItem> data = null;
        public String message = null;
        
        public Long getTotalCount() { return totalCount; }
        public SearchResponse setTotalCount(Long value) { this.totalCount = value; return this; }
        public Integer getCode() { return code; }
        public SearchResponse setCode(Integer value) { this.code = value; return this; }
        public ArrayList<DocumentSearchResultItem> getData() { return data; }
        public SearchResponse setData(ArrayList<DocumentSearchResultItem> value) { this.data = value; return this; }
        public String getMessage() { return message; }
        public SearchResponse setMessage(String value) { this.message = value; return this; }
    }

    public static class DocumentSearchResultItem
    {
        public String title = null;
        public String description = null;
        public String owner = null;
        public Integer documentPolicyId = null;
        public Integer updateDocumentId = null;
        public Date effectBeginDate = null;
        public Date effectEndDate = null;
        public Integer issuingAgencyId = null;
        public Integer subjectId = null;
        public String signBy = null;
        public Date signDate = null;
        public Date updatedAt = null;
        public Integer statusId = null;
        public Boolean isInternal = null;
        public String documentNumber = null;
        public String documentCode = null;
        public Boolean isUrgent = null;
        public Integer id = null;
        public String reasonReturn = null;
        public Integer accountId = null;
        public Integer approverId = null;
        @StringLength(500)
        public String updatedBy = null;

        @StringLength(500)
        public String createdBy = null;

        public Boolean isParty = null;
        public Boolean isRevisionRequested = null;
        public Boolean isPrivate = null;
        public Integer departmentId = null;
        public Date publicationDate = null;
        public Integer processStatusId = null;
        public Integer documentTypeId = null;
        public Integer documentGroupId = null;
        public String accountName = null;
        public String acceptAccountName = null;
        public String documentGroupText = null;
        public String processStatusText = null;
        public String documentTypeText = null;
        public String departmentText = null;
        public String statusText = null;
        public String issuingAgencyText = null;
        public String subjectText = null;
        public String comment = null;
        public String submitComment = null;
        public String fullFile = null;
        public String parthFile = null;
        public Boolean isActive = null;
        public Integer stepOrder = null;
        public Integer stepCount = null;
        
        public String getTitle() { return title; }
        public DocumentSearchResultItem setTitle(String value) { this.title = value; return this; }
        public String getDescription() { return description; }
        public DocumentSearchResultItem setDescription(String value) { this.description = value; return this; }
        public String getOwner() { return owner; }
        public DocumentSearchResultItem setOwner(String value) { this.owner = value; return this; }
        public Integer getDocumentPolicyId() { return documentPolicyId; }
        public DocumentSearchResultItem setDocumentPolicyId(Integer value) { this.documentPolicyId = value; return this; }
        public Integer getUpdateDocumentId() { return updateDocumentId; }
        public DocumentSearchResultItem setUpdateDocumentId(Integer value) { this.updateDocumentId = value; return this; }
        public Date getEffectBeginDate() { return effectBeginDate; }
        public DocumentSearchResultItem setEffectBeginDate(Date value) { this.effectBeginDate = value; return this; }
        public Date getEffectEndDate() { return effectEndDate; }
        public DocumentSearchResultItem setEffectEndDate(Date value) { this.effectEndDate = value; return this; }
        public Integer getIssuingAgencyId() { return issuingAgencyId; }
        public DocumentSearchResultItem setIssuingAgencyId(Integer value) { this.issuingAgencyId = value; return this; }
        public Integer getSubjectId() { return subjectId; }
        public DocumentSearchResultItem setSubjectId(Integer value) { this.subjectId = value; return this; }
        public String getSignBy() { return signBy; }
        public DocumentSearchResultItem setSignBy(String value) { this.signBy = value; return this; }
        public Date getSignDate() { return signDate; }
        public DocumentSearchResultItem setSignDate(Date value) { this.signDate = value; return this; }
        public Date getUpdatedAt() { return updatedAt; }
        public DocumentSearchResultItem setUpdatedAt(Date value) { this.updatedAt = value; return this; }
        public Integer getStatusId() { return statusId; }
        public DocumentSearchResultItem setStatusId(Integer value) { this.statusId = value; return this; }
        public Boolean getIsInternal() { return isInternal; }
        public DocumentSearchResultItem setIsInternal(Boolean value) { this.isInternal = value; return this; }
        public String getDocumentNumber() { return documentNumber; }
        public DocumentSearchResultItem setDocumentNumber(String value) { this.documentNumber = value; return this; }
        public String getDocumentCode() { return documentCode; }
        public DocumentSearchResultItem setDocumentCode(String value) { this.documentCode = value; return this; }
        public Boolean getIsUrgent() { return isUrgent; }
        public DocumentSearchResultItem setIsUrgent(Boolean value) { this.isUrgent = value; return this; }
        public Integer getId() { return id; }
        public DocumentSearchResultItem setId(Integer value) { this.id = value; return this; }
        public String getReasonReturn() { return reasonReturn; }
        public DocumentSearchResultItem setReasonReturn(String value) { this.reasonReturn = value; return this; }
        public Integer getAccountId() { return accountId; }
        public DocumentSearchResultItem setAccountId(Integer value) { this.accountId = value; return this; }
        public Integer getApproverId() { return approverId; }
        public DocumentSearchResultItem setApproverId(Integer value) { this.approverId = value; return this; }
        public String getUpdatedBy() { return updatedBy; }
        public DocumentSearchResultItem setUpdatedBy(String value) { this.updatedBy = value; return this; }
        public String getCreatedBy() { return createdBy; }
        public DocumentSearchResultItem setCreatedBy(String value) { this.createdBy = value; return this; }
        public Boolean getIsParty() { return isParty; }
        public DocumentSearchResultItem setIsParty(Boolean value) { this.isParty = value; return this; }
        public Boolean getIsRevisionRequested() { return isRevisionRequested; }
        public DocumentSearchResultItem setIsRevisionRequested(Boolean value) { this.isRevisionRequested = value; return this; }
        public Boolean getIsPrivate() { return isPrivate; }
        public DocumentSearchResultItem setIsPrivate(Boolean value) { this.isPrivate = value; return this; }
        public Integer getDepartmentId() { return departmentId; }
        public DocumentSearchResultItem setDepartmentId(Integer value) { this.departmentId = value; return this; }
        public Date getPublicationDate() { return publicationDate; }
        public DocumentSearchResultItem setPublicationDate(Date value) { this.publicationDate = value; return this; }
        public Integer getProcessStatusId() { return processStatusId; }
        public DocumentSearchResultItem setProcessStatusId(Integer value) { this.processStatusId = value; return this; }
        public Integer getDocumentTypeId() { return documentTypeId; }
        public DocumentSearchResultItem setDocumentTypeId(Integer value) { this.documentTypeId = value; return this; }
        public Integer getDocumentGroupId() { return documentGroupId; }
        public DocumentSearchResultItem setDocumentGroupId(Integer value) { this.documentGroupId = value; return this; }
        public String getAccountName() { return accountName; }
        public DocumentSearchResultItem setAccountName(String value) { this.accountName = value; return this; }
        public String getAcceptAccountName() { return acceptAccountName; }
        public DocumentSearchResultItem setAcceptAccountName(String value) { this.acceptAccountName = value; return this; }
        public String getDocumentGroupText() { return documentGroupText; }
        public DocumentSearchResultItem setDocumentGroupText(String value) { this.documentGroupText = value; return this; }
        public String getProcessStatusText() { return processStatusText; }
        public DocumentSearchResultItem setProcessStatusText(String value) { this.processStatusText = value; return this; }
        public String getDocumentTypeText() { return documentTypeText; }
        public DocumentSearchResultItem setDocumentTypeText(String value) { this.documentTypeText = value; return this; }
        public String getDepartmentText() { return departmentText; }
        public DocumentSearchResultItem setDepartmentText(String value) { this.departmentText = value; return this; }
        public String getStatusText() { return statusText; }
        public DocumentSearchResultItem setStatusText(String value) { this.statusText = value; return this; }
        public String getIssuingAgencyText() { return issuingAgencyText; }
        public DocumentSearchResultItem setIssuingAgencyText(String value) { this.issuingAgencyText = value; return this; }
        public String getSubjectText() { return subjectText; }
        public DocumentSearchResultItem setSubjectText(String value) { this.subjectText = value; return this; }
        public String getComment() { return comment; }
        public DocumentSearchResultItem setComment(String value) { this.comment = value; return this; }
        public String getSubmitComment() { return submitComment; }
        public DocumentSearchResultItem setSubmitComment(String value) { this.submitComment = value; return this; }
        public String getFullFile() { return fullFile; }
        public DocumentSearchResultItem setFullFile(String value) { this.fullFile = value; return this; }
        public String getParthFile() { return parthFile; }
        public DocumentSearchResultItem setParthFile(String value) { this.parthFile = value; return this; }
        public Boolean getIsActive() { return isActive; }
        public DocumentSearchResultItem setIsActive(Boolean value) { this.isActive = value; return this; }
        public Integer getStepOrder() { return stepOrder; }
        public DocumentSearchResultItem setStepOrder(Integer value) { this.stepOrder = value; return this; }
        public Integer getStepCount() { return stepCount; }
        public DocumentSearchResultItem setStepCount(Integer value) { this.stepCount = value; return this; }
    }

}

Java StatDocByTypeRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /document/stat-search-by-type HTTP/1.1 
Host: etc-api.vsmlab.vn 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<StatDocByTypeRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/tvpl.api.ServiceModel">
  <DocumentSearchStage>All</DocumentSearchStage>
  <FromDate>0001-01-01T00:00:00</FromDate>
  <GroupId>0</GroupId>
  <IsInternal>false</IsInternal>
  <IsParty>false</IsParty>
  <IsUrgent>false</IsUrgent>
  <IssuingAgencyId>0</IssuingAgencyId>
  <StatusId>0</StatusId>
  <SubjectId>0</SubjectId>
  <Title>String</Title>
  <ToDate>0001-01-01T00:00:00</ToDate>
  <TypeId>0</TypeId>
</StatDocByTypeRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<SearchResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/tvpl.api.ServiceModel">
  <Code>0</Code>
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/tvpl.data.Models">
    <d2p1:DocumentSearchResultItem>
      <d2p1:AcceptAccountName>String</d2p1:AcceptAccountName>
      <d2p1:AccountId>0</d2p1:AccountId>
      <d2p1:AccountName>String</d2p1:AccountName>
      <d2p1:ApproverId>0</d2p1:ApproverId>
      <d2p1:Comment>String</d2p1:Comment>
      <d2p1:CreatedBy>String</d2p1:CreatedBy>
      <d2p1:DepartmentId>0</d2p1:DepartmentId>
      <d2p1:DepartmentText>String</d2p1:DepartmentText>
      <d2p1:Description>String</d2p1:Description>
      <d2p1:DocumentCode>String</d2p1:DocumentCode>
      <d2p1:DocumentGroupId>0</d2p1:DocumentGroupId>
      <d2p1:DocumentGroupText>String</d2p1:DocumentGroupText>
      <d2p1:DocumentNumber>String</d2p1:DocumentNumber>
      <d2p1:DocumentPolicyId>0</d2p1:DocumentPolicyId>
      <d2p1:DocumentTypeId>0</d2p1:DocumentTypeId>
      <d2p1:DocumentTypeText>String</d2p1:DocumentTypeText>
      <d2p1:EffectBeginDate>0001-01-01T00:00:00</d2p1:EffectBeginDate>
      <d2p1:EffectEndDate>0001-01-01T00:00:00</d2p1:EffectEndDate>
      <d2p1:FullFile>String</d2p1:FullFile>
      <d2p1:Id>0</d2p1:Id>
      <d2p1:IsActive>false</d2p1:IsActive>
      <d2p1:IsInternal>false</d2p1:IsInternal>
      <d2p1:IsParty>false</d2p1:IsParty>
      <d2p1:IsPrivate>false</d2p1:IsPrivate>
      <d2p1:IsRevisionRequested>false</d2p1:IsRevisionRequested>
      <d2p1:IsUrgent>false</d2p1:IsUrgent>
      <d2p1:IssuingAgencyId>0</d2p1:IssuingAgencyId>
      <d2p1:IssuingAgencyText>String</d2p1:IssuingAgencyText>
      <d2p1:Owner>String</d2p1:Owner>
      <d2p1:ParthFile>String</d2p1:ParthFile>
      <d2p1:ProcessStatusId>0</d2p1:ProcessStatusId>
      <d2p1:ProcessStatusText>String</d2p1:ProcessStatusText>
      <d2p1:PublicationDate>0001-01-01T00:00:00</d2p1:PublicationDate>
      <d2p1:ReasonReturn>String</d2p1:ReasonReturn>
      <d2p1:SignBy>String</d2p1:SignBy>
      <d2p1:SignDate>0001-01-01T00:00:00</d2p1:SignDate>
      <d2p1:StatusId>0</d2p1:StatusId>
      <d2p1:StatusText>String</d2p1:StatusText>
      <d2p1:StepCount>0</d2p1:StepCount>
      <d2p1:StepOrder>0</d2p1:StepOrder>
      <d2p1:SubjectId>0</d2p1:SubjectId>
      <d2p1:SubjectText>String</d2p1:SubjectText>
      <d2p1:SubmitComment>String</d2p1:SubmitComment>
      <d2p1:Title>String</d2p1:Title>
      <d2p1:UpdateDocumentId>0</d2p1:UpdateDocumentId>
      <d2p1:UpdatedAt>0001-01-01T00:00:00</d2p1:UpdatedAt>
      <d2p1:UpdatedBy>String</d2p1:UpdatedBy>
    </d2p1:DocumentSearchResultItem>
  </Data>
  <Message>String</Message>
  <TotalCount>0</TotalCount>
</SearchResponse>