public class ContractDAO extends BillingDAO
Modifier and Type | Class and Description |
---|---|
static class |
ContractDAO.SearchOptions |
dbInfo, transferData, user
Constructor and Description |
---|
ContractDAO(User user,
DBInfo dbInfo) |
ContractDAO(User user,
java.lang.String billingId) |
Modifier and Type | Method and Description |
---|---|
void |
addSubcontract(int superContractId,
int subContractId)
Добавляет субдоговор на родительский договор.
|
java.util.List<IdTitle> |
bgbillingGetContractPatternList() |
void |
bgbillingOpenContract(int contractId) |
void |
bgbillingUpdateContractTitleAndComment(int contractId,
java.lang.String comment,
int patid) |
Contract |
createContract(java.sql.Connection con,
int patternId,
java.lang.String date,
java.lang.String title,
java.lang.String titlePattern) |
java.lang.String |
executeAdditionalAction(int contractId,
int actionId) |
java.util.List<IdTitle> |
getAdditionalActionList(int contractId) |
java.util.List<IdTitle> |
getContractAddress(int contractId) |
Contract |
getContractById(int contractId) |
org.w3c.dom.Document |
getContractCardDoc(int contractId) |
ContractInfo |
getContractInfo(int contractId) |
java.util.List<ContractMemo> |
getContractMemo(int contractId,
java.lang.String splitter) |
java.lang.String |
getContractPassword(int contractId) |
java.lang.String |
getContractStatisticPassword(int contractId) |
java.lang.String |
getMemoText(java.lang.String memoId,
java.lang.Integer contractId,
java.lang.String splitter) |
void |
searchContractByAddressParam(SearchResult<AddressSearchedObject<Contract>> result,
ContractDAO.SearchOptions options,
java.util.Set<java.lang.Integer> paramIds,
int streetId,
java.lang.String house,
java.lang.String flat,
java.lang.String room) |
void |
searchContractByTextParam(SearchResult<Contract> result,
ContractDAO.SearchOptions options,
java.util.Set<java.lang.Integer> paramIds,
java.lang.String value) |
void |
searchContractByTitleComment(SearchResult<IdTitle> searchResult,
java.lang.String title,
java.lang.String comment,
ContractDAO.SearchOptions searchOptions) |
doRequest, getDbInfo, getPage, getParameterId, setPage
public ContractDAO(User user, java.lang.String billingId) throws BGException
BGException
public ContractDAO(User user, DBInfo dbInfo) throws BGException
BGException
public Contract getContractById(int contractId) throws BGException
BGException
public void searchContractByTitleComment(SearchResult<IdTitle> searchResult, java.lang.String title, java.lang.String comment, ContractDAO.SearchOptions searchOptions) throws BGException
BGException
public void searchContractByAddressParam(SearchResult<AddressSearchedObject<Contract>> result, ContractDAO.SearchOptions options, java.util.Set<java.lang.Integer> paramIds, int streetId, java.lang.String house, java.lang.String flat, java.lang.String room) throws BGException
BGException
public void searchContractByTextParam(SearchResult<Contract> result, ContractDAO.SearchOptions options, java.util.Set<java.lang.Integer> paramIds, java.lang.String value) throws BGException
BGException
public void addSubcontract(int superContractId, int subContractId)
superContractId
- id родительского договора.subContractId
- id субдоговора.public Contract createContract(java.sql.Connection con, int patternId, java.lang.String date, java.lang.String title, java.lang.String titlePattern) throws BGException
BGException
public java.lang.String getMemoText(java.lang.String memoId, java.lang.Integer contractId, java.lang.String splitter) throws BGException
BGException
public java.util.List<ContractMemo> getContractMemo(int contractId, java.lang.String splitter) throws BGException
BGException
public ContractInfo getContractInfo(int contractId) throws BGException
BGException
public java.lang.String getContractStatisticPassword(int contractId) throws BGException
BGException
public java.util.List<IdTitle> getContractAddress(int contractId) throws BGException
BGException
public java.lang.String getContractPassword(int contractId) throws BGException
BGException
public org.w3c.dom.Document getContractCardDoc(int contractId)
public void bgbillingOpenContract(int contractId) throws BGException
BGException
public void bgbillingUpdateContractTitleAndComment(int contractId, java.lang.String comment, int patid) throws BGException
BGException
public java.lang.String executeAdditionalAction(int contractId, int actionId)
public java.util.List<IdTitle> getAdditionalActionList(int contractId)
public java.util.List<IdTitle> bgbillingGetContractPatternList() throws BGException
BGException