Class AnexosWS
- Namespace
- PHCWS
- Assembly
- PHCWS.dll
Attachments services (AnexosVO).
[WebService(Namespace = "http://www.phcgo.net/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[DesignerGenerated]
public class AnexosWS : PHCTypedWS<AnexosVO>, IComponent, IDisposable, IServiceProvider
- Inheritance
-
AnexosWS
Methods
ReturnFileURI(AnexosVO)
Return an URI to download an Azure Blob file.
[WebMethod]
public PHCResult ReturnFileURI(AnexosVO Anexo)
Parameters
| Nome | Tipo | Descrição |
|---|---|---|
Anexo |
AnexosVO | The Anexo Entity to download |
Returns
- PHCResult
A PHCResult with the URI
deleteAnexosBean(string)
Records in the database a record AnexosBeanVO that contains a file and an identifier of an existing record AnexosVO associated.
[WebMethod]
public PHCResult deleteAnexosBean(string anexosstamp)
Parameters
| Nome | Tipo | Descrição |
|---|---|---|
anexosstamp |
string |
Returns
getAnexosByFilter(AnexosFilterVO)
Provides a list of all records of the type AnexosVO that meet the filter indicated in parameter.
anexosFilterItem, to which the user has access to their Category.
[WebMethod]
public PHCResult getAnexosByFilter(AnexosFilterVO anexosFilterItem)
Parameters
| Nome | Tipo | Descrição |
|---|---|---|
anexosFilterItem |
AnexosFilterVO | It's a collection from the type AnexoVo that contains the filters to apply the list with the data. |
Returns
- PHCResult
A PHCResult containing a list of AnexosVO, if the number of attachments available does not exceed 100. If this amount exceeds 100 attachments, returns a PHCResult containing a DecimalVO with the amount of available attachments, or error messages generated by the application or database in this query process.
Remarks
With parameter anexosFilterItem, you can filter for example, Entity / Table and a record of that Entity / Table.
This parameter can also be used to indicate whether we want to bring the Annexes or the number of Attachments if it exceeds the limit (100 by default). This can be done by the runMaxItemsValidation. This value is True by default.
So that the user has access to Consult a given AnexosVO, it is necessary that user is included in the Role identified by the field pfconstamp of Category of this AnexosVO.
getNewInstanceFromAnexos(AnexosVO)
Creates a new instance of the entity AnexosVO with completed data for the registration
AnexoVO sent in the parameter anexosItem.
[WebMethod]
public PHCResult getNewInstanceFromAnexos(AnexosVO anexosItem)
Parameters
| Nome | Tipo | Descrição |
|---|---|---|
anexosItem |
AnexosVO | Corresponds to the record of anexovo you want to create. |
Returns
- PHCResult
A new record AnexosVO with the field anexosstamp already filled.
Remarks
The following fields are copied from the original registration to the new record :
fname.
fileType.
fileLenght.
tipo.
recstamp.
oritable.
docid.
sendAnexosEmail(AnexosEmailVO)
Send by e-mail the file that is associated with the record AnexosVO identified by the field
anexosstamp of record anexosEmailVO.
[WebMethod]
public PHCResult sendAnexosEmail(AnexosEmailVO anexosEmailVO)
Parameters
| Nome | Tipo | Descrição |
|---|---|---|
anexosEmailVO |
AnexosEmailVO | Register containing the record identifier AnexosVO |
Returns
sendUrlEmail(AnexosEmailVO)
Send by e-mail the file that is associated with the record AnexosVO identified by the field
anexosstamp of record anexosEmailVO.
[WebMethod]
public PHCResult sendUrlEmail(AnexosEmailVO anexosEmailVO)
Parameters
| Nome | Tipo | Descrição |
|---|---|---|
anexosEmailVO |
AnexosEmailVO | Register containing the record identifier AnexosVO |