Class ResultStock
Resultado da operação pretendida
Inheritance
System.Object
ResultStock
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: GlobalSist.Server.WMS.WCF.Response
Assembly: GlobalSist.Server.WMS.dll
Syntax
public class ResultStock
Constructors
ResultStock()
Declaration
public ResultStock()
Properties
ErrorMessage
Obtém ou define a mensagem de erro
Declaration
public string ErrorMessage { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Handled
Obtém ou define se o erro foi tratado
Declaration
public bool Handled { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Stock
Obtém ou define o stock.
Declaration
public decimal Stock { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Decimal |
Succedded
Obtém ou define se concluíu com sucesso
Declaration
public bool Succedded { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Methods
FaultedResult(String, String, String)
Erro ao realizar acção
Declaration
public static ResultStock FaultedResult(string ERPCompanyName, string errorMessage, string stackTrace)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | ERPCompanyName | Nome da empresa do ERP. |
| System.String | errorMessage | A mensagem de erro. |
| System.String | stackTrace | Stack trace. |
Returns
| Type | Description |
|---|---|
| ResultStock |
HandledResult(String, String, String)
Erro ao realizar acção, mas o mesmo foi tratado internamente.
Declaration
public static ResultStock HandledResult(string ERPCompanyName, string errorMessage, string stackTrace)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | ERPCompanyName | Nome da empresa do ERP. |
| System.String | errorMessage | A mensagem de erro. |
| System.String | stackTrace | Stack trace. |
Returns
| Type | Description |
|---|---|
| ResultStock |
SucceddedResult(String, String, Decimal)
Acção concretizada com sucesso
Declaration
public static ResultStock SucceddedResult(string ERPCompanyName, string methodName, decimal stock)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | ERPCompanyName | Nome da empresa do ERP. |
| System.String | methodName | Nome do metodo invocado. |
| System.Decimal | stock | O stock. |
Returns
| Type | Description |
|---|---|
| ResultStock |