Class StdBSListas
Classe utilizada para obter serviços e regras de negócio sobre Listas.
Inheritance
Implements
Inherited Members
Namespace: StdPlatBS100
Assembly: StdPlatBS100.dll
Syntax
public class StdBSListas : IEnumerable
Properties
Count
Count.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Item[String]
Item.
Declaration
public StdBSLista this[string vntIndexKey] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.String | vntIndexKey | Identificador do incide. |
Property Value
Type | Description |
---|---|
StdBSLista |
Methods
ActualizaListas(String, String, String, StdBSTipos.cbType)
Actualiza as listas.
Declaration
public void ActualizaListas(string strTabela = "", string strNomeChave = "", string strChave = "", StdBSTipos.cbType enuOperacao = StdBSTipos.cbType.cbListaActivada)
Parameters
Type | Name | Description |
---|---|---|
System.String | strTabela | Identificador da Tabela. |
System.String | strNomeChave | Identificador do Nome da Chave. |
System.String | strChave | Identificador da Chave. |
StdPlatBS100.StdBSTipos.cbType | enuOperacao | Tipo de Operação. |
Adiciona(Object)
Devolve uma lista.
Declaration
public StdBSLista Adiciona(object objFormLista)
Parameters
Type | Name | Description |
---|---|---|
System.Object | objFormLista | Identificador do Formulário. |
Returns
Type | Description |
---|---|
StdBSLista |
CarregaLista(String, String, List<String>)
Declaration
public StdBESqlQuery CarregaLista(string strCategoria, string strIdLista = "", List<string> lstParamsLista = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | strCategoria | |
System.String | strIdLista | |
System.Collections.Generic.List<System.String> | lstParamsLista |
Returns
Type | Description |
---|---|
StdBESql100.StdBESqlQuery |
CriaIdListaF4()
Cria um Id de uma Lista.
Declaration
public string CriaIdListaF4()
Returns
Type | Description |
---|---|
System.String |
DaRefUltimaLista()
Devolve a referência à ùltima lista.
Declaration
public StdBSLista DaRefUltimaLista()
Returns
Type | Description |
---|---|
StdBSLista |
Existe(String)
Verifica se existe uma lista.
Declaration
public bool Existe(string strGUID)
Parameters
Type | Name | Description |
---|---|---|
System.String | strGUID | Identificador do Id da Lista. |
Returns
Type | Description |
---|---|
System.Boolean |
Finalize()
Finalizes an instance of the StdBSListas class.
Declaration
protected void Finalize()
GetF4DataTable(String, DataTable, String, List<String>, Form, Control, Boolean)
Declaration
public object GetF4DataTable(string strListTitle, DataTable table, string strSQLColumns, List<string> objGroupedColumns, Form objParentForm, Control objParentControl, bool createGroupSummaryRow = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | strListTitle | |
System.Data.DataTable | table | |
System.String | strSQLColumns | |
System.Collections.Generic.List<System.String> | objGroupedColumns | |
System.Windows.Forms.Form | objParentForm | |
System.Windows.Forms.Control | objParentControl | |
System.Boolean | createGroupSummaryRow |
Returns
Type | Description |
---|---|
System.Object |
GetF4SQL(String, String, String, Form, Control)
Devolve valores de uma lista atravez de um query.
Declaration
public object GetF4SQL(string strListTitle, string strSql, string strSQLColumns, Form objParentForm = null, Control objParentControl = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | strListTitle | Identificador do Titolo da Lista. |
System.String | strSql | |
System.String | strSQLColumns | Identificador das Colunas. |
System.Windows.Forms.Form | objParentForm | Objecto referente ao Formulário Pai. |
System.Windows.Forms.Control | objParentControl | Objecto referente ao Controlo Pai. |
Returns
Type | Description |
---|---|
System.Object |
getF4Values(StdBEValoresStr, String, PriTextBoxF4)
Declaration
public object getF4Values(StdBEValoresStr objValores, string strSQLColumn, PriTextBoxF4 objParentControl)
Parameters
Type | Name | Description |
---|---|---|
StdBEValoresStr | objValores | |
System.String | strSQLColumn | |
PriTextBoxF4100.PriTextBoxF4 | objParentControl |
Returns
Type | Description |
---|---|
System.Object |
getF4Values(StdBEValoresStr, String, PriTextBoxF4, Form)
Declaration
public object getF4Values(StdBEValoresStr objValores, string strSQLColumn, PriTextBoxF4 objParentControl, Form objParentForm)
Parameters
Type | Name | Description |
---|---|---|
StdBEValoresStr | objValores | |
System.String | strSQLColumn | |
PriTextBoxF4100.PriTextBoxF4 | objParentControl | |
System.Windows.Forms.Form | objParentForm |
Returns
Type | Description |
---|---|
System.Object |
getF4Values(StdBEValoresStr, String, PriTextBoxF4, Form, ref Boolean)
Declaration
public object getF4Values(StdBEValoresStr objValores, string strSQLColumn, PriTextBoxF4 objParentControl, Form objParentForm, ref bool blnRefreshData)
Parameters
Type | Name | Description |
---|---|---|
StdBEValoresStr | objValores | |
System.String | strSQLColumn | |
PriTextBoxF4100.PriTextBoxF4 | objParentControl | |
System.Windows.Forms.Form | objParentForm | |
System.Boolean | blnRefreshData |
Returns
Type | Description |
---|---|
System.Object |
getF4Values(StdBEValoresStr, String, PriTextBoxF4, Form, ref Boolean, String)
Declaration
public object getF4Values(StdBEValoresStr objValores, string strSQLColumn, PriTextBoxF4 objParentControl, Form objParentForm, ref bool blnRefreshData, string strListDescription)
Parameters
Type | Name | Description |
---|---|---|
StdBEValoresStr | objValores | |
System.String | strSQLColumn | |
PriTextBoxF4100.PriTextBoxF4 | objParentControl | |
System.Windows.Forms.Form | objParentForm | |
System.Boolean | blnRefreshData | |
System.String | strListDescription |
Returns
Type | Description |
---|---|
System.Object |
LimpaIntelisence()
Limpa o controlo de intelisence
Declaration
public void LimpaIntelisence()
MostraIntellisense(ref String, String, PriTextBoxF4, String, String)
Mostra intellisense.
Declaration
public void MostraIntellisense(ref string strSql, string strCampo, PriTextBoxF4 objControlo, string strClausulaWhere = "", string strClausulaOrderBy = "")
Parameters
Type | Name | Description |
---|---|---|
System.String | strSql | Query SQL. |
System.String | strCampo | Campo. |
PriTextBoxF4100.PriTextBoxF4 | objControlo | Controlo. |
System.String | strClausulaWhere | Cláusula de condição. |
System.String | strClausulaOrderBy | Cláusula de ordenação. |
Remove(String)
Remove uma lista.
Declaration
public void Remove(string strGUID)
Parameters
Type | Name | Description |
---|---|---|
System.String | strGUID | Identificador do Id da Lista. |
TrataF4(String, String, Form, Control, String, Int32, Int32, Boolean, String, Boolean)
Invoca uma pesquisa para devolver o valor de um campo (que deve existir em qualquer lista da categoria).
Declaration
public void TrataF4(string sCategoria, string sCampo, Form oFormF4, Control oControlo, string sNomeAudit, int iLinhaSpread = -11, int iColunaSpread = -11, bool bCampoNumerico = false, string sClausulaWhere = "", bool bModal = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | sCategoria | Identificador da Categoria. |
System.String | sCampo | Identificador do Campo. |
System.Windows.Forms.Form | oFormF4 | Objecto identificador do Formulário. |
System.Windows.Forms.Control | oControlo | Objecto identificador do Controlo. |
System.String | sNomeAudit | Identificador do Nome do Audit. |
System.Int32 | iLinhaSpread | Identificador da Linha da Spread. |
System.Int32 | iColunaSpread | Identificador da Coluna da Spread. |
System.Boolean | bCampoNumerico | Indicador de Campo Númerico. |
System.String | sClausulaWhere | Identificador da Clausula WHERE. |
System.Boolean | bModal | Indicador de Modal. |
TrataF4Ex(String, String, Form, Control, String, Int32, Int32, Boolean, String, Boolean)
Invoca uma pesquisa para devolver o valor de vários campos (que devem existir em qualquer lista da categoria)
Declaration
public void TrataF4Ex(string sCategoria, string sCampos, Form oFormF4, Control oControlo, string sNomeAudit, int iLinhaSpread = -11, int iColunaSpread = -11, bool bCampoNumerico = false, string sClausulaWhere = "", bool bModal = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | sCategoria | Identificador da Categoria. |
System.String | sCampos | Identificador dos Campos. |
System.Windows.Forms.Form | oFormF4 | Objecto identificador do Formulário. |
System.Windows.Forms.Control | oControlo | Objecto identificador do Controlo. |
System.String | sNomeAudit | Identificador do Nome do Audit. |
System.Int32 | iLinhaSpread | Identificador da Linha da Spread. |
System.Int32 | iColunaSpread | Identificador da Coluna da Spread. |
System.Boolean | bCampoNumerico | Indicador de Campo Númerico. |
System.String | sClausulaWhere | Identificador da Clausula WHERE. |
System.Boolean | bModal | Indicador de Modal. |
TrataF4Ex2(String, String, Form, Control, String, Int32, Int32, Boolean, String, String, Boolean)
Invoca uma pesquisa para devolver o valor de um campo (que deve existir em qualquer lista da categoria).
Declaration
public void TrataF4Ex2(string sCategoria, string sCampo, Form oFormF4, Control oControlo, string sNomeAudit, int iLinhaSpread = -11, int iColunaSpread = -11, bool bCampoNumerico = false, string sClausulaWhere = "", string sSelFormula = "", bool bModal = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | sCategoria | Identificador da Categoria. |
System.String | sCampo | Identificador do Campo. |
System.Windows.Forms.Form | oFormF4 | Objecto identificador do Formulário. |
System.Windows.Forms.Control | oControlo | Objecto identificador do Controlo. |
System.String | sNomeAudit | Identificador do Nome do Audit. |
System.Int32 | iLinhaSpread | Identificador da Linha da Spread. |
System.Int32 | iColunaSpread | Identificador da Coluna da Spread. |
System.Boolean | bCampoNumerico | Indicador de Campo Númerico. |
System.String | sClausulaWhere | Identificador da Clausula WHERE. |
System.String | sSelFormula | Identificador da Selection Formula. |
System.Boolean | bModal | Indicador de Modal. |
TrataF4Id(String, String, Form, Control, String, String, Int32, Int32, Boolean, String, Boolean)
Invoca uma pesquisa para devolver o valor de um campo (que deve existir em qualquer lista da categoria) permitindo indicar exactamente qual a query a utilizar.
Declaration
public void TrataF4Id(string sCategoria, string sCampo, Form oFormF4, Control oControlo, string sNomeAudit, string sIdQuery, int iLinhaSpread = -11, int iColunaSpread = -11, bool bCampoNumerico = false, string sClausulaWhere = "", bool bModal = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | sCategoria | Identificador da Categoria. |
System.String | sCampo | Identificador do Campo. |
System.Windows.Forms.Form | oFormF4 | Objecto identificador do Formulário. |
System.Windows.Forms.Control | oControlo | Objecto identificador do Controlo. |
System.String | sNomeAudit | Identificador do Nome do Audit. |
System.String | sIdQuery | Identificador do Id do Query. |
System.Int32 | iLinhaSpread | Identificador da Linha da Spread. |
System.Int32 | iColunaSpread | Identificador da Coluna da Spread. |
System.Boolean | bCampoNumerico | Indicador de Campo Númerico. |
System.String | sClausulaWhere | Identificador da Clausula WHERE. |
System.Boolean | bModal | Indicador de Modal. |
TrataF4IdEx(String, String, Form, Control, String, String, Int32, Int32, Boolean, String, Boolean)
Invoca uma pesquisa para devolver o valor de um campo (que deve existir em qualquer lista da categoria) permitindo indicar exactamente qual a query a utilizar.
Declaration
public void TrataF4IdEx(string sCategoria, string sCampos, Form oFormF4, Control oControlo, string sNomeAudit, string sIdQuery, int iLinhaSpread = -11, int iColunaSpread = -11, bool bCampoNumerico = false, string sClausulaWhere = "", bool bModal = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | sCategoria | Identificador da Categoria. |
System.String | sCampos | Identificador dos Campos (separado por virgulas). |
System.Windows.Forms.Form | oFormF4 | Objecto identificador do Formulário. |
System.Windows.Forms.Control | oControlo | Objecto identificador do Controlo. |
System.String | sNomeAudit | Identificador do Nome do Audit. |
System.String | sIdQuery | Identificador do Id do Query. |
System.Int32 | iLinhaSpread | Identificador da Linha da Spread. |
System.Int32 | iColunaSpread | Identificador da Coluna da Spread. |
System.Boolean | bCampoNumerico | Indicador de Campo Númerico. |
System.String | sClausulaWhere | Identificador da Clausula WHERE. |
System.Boolean | bModal | Indicador de Modal. |
TrataF4IdEx2(String, String, Form, Control, String, String, Int32, Int32, Boolean, String, String, Boolean)
Invoca uma pesquisa para devolver o valor de um campo (que deve existir em qualquer lista da categoria) permitindo indicar exactamente qual a query a utilizar.
Declaration
public void TrataF4IdEx2(string sCategoria, string sCampo, Form oFormF4, Control oControlo, string sNomeAudit, string sIdQuery, int iLinhaSpread = -11, int iColunaSpread = -11, bool bCampoNumerico = false, string sClausulaWhere = "", string sSelFormula = "", bool bModal = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | sCategoria | Identificador da Categoria. |
System.String | sCampo | Identificador do Campo. |
System.Windows.Forms.Form | oFormF4 | Objecto identificador do Formulário. |
System.Windows.Forms.Control | oControlo | Objecto identificador do Controlo. |
System.String | sNomeAudit | Identificador do Nome do Audit. |
System.String | sIdQuery | Identificador do Id do Query. |
System.Int32 | iLinhaSpread | Identificador da Linha da Spread. |
System.Int32 | iColunaSpread | Identificador da Coluna da Spread. |
System.Boolean | bCampoNumerico | Indicador de Campo Númerico. |
System.String | sClausulaWhere | Identificador da Clausula WHERE. |
System.String | sSelFormula | Identificador da Selection Formula. |
System.Boolean | bModal | Indicador de Modal. |
TrataF4InterfPub(Int32, String, String, Control, Control, String, Int32, Int32, Boolean, String, String, Boolean, String)
Invoca uma pesquisa para devolver o valor de um ou mais campos no contexto de um projecto VBA.
Declaration
public void TrataF4InterfPub(int intTipoF4, string strCategoria, string strCampos, Control objFormF4, Control objControlo, string strNomeAudit, int intLinhaSpread = -11, int intColunaSpread = -11, bool blnCampoNumerico = false, string strClausulaWhere = "", string strSelFormula = "", bool blnModal = false, string strIdQuery = "")
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | intTipoF4 | (enuNormal = 0, enuVariosCampos = 1, enuNormalComId = 2) |
System.String | strCategoria | Identificador da Categoria. |
System.String | strCampos | Identificador do Campo (ou vários Campos separados por vírgulas). |
System.Windows.Forms.Control | objFormF4 | Objecto identificador do Formulário. |
System.Windows.Forms.Control | objControlo | Objecto identificador do Controlo onde é colocado o resultado da pesquisa. |
System.String | strNomeAudit | Identificador do Nome do Audit. |
System.Int32 | intLinhaSpread | Identificador da Linha da Spread. |
System.Int32 | intColunaSpread | Identificador da Coluna da Spread. |
System.Boolean | blnCampoNumerico | Indicador de Campo Númerico. |
System.String | strClausulaWhere | Identificador da Clausula WHERE. |
System.String | strSelFormula | Identificador da Selection Formula. |
System.Boolean | blnModal | Indicador de Modal. |
System.String | strIdQuery | Identificador da Query. |
TrataF4Restricoes(String, String, String, Form, Control, String, Int32, Int32, Boolean, String, Boolean, Boolean)
Invoca uma pesquisa no contexto das restrições.
Declaration
public void TrataF4Restricoes(string sCategoria, string sTabela, string sCampo, Form oFormF4, Control oControlo, string sNomeAudit, int iLinhaSpread = -11, int iColunaSpread = -11, bool bCampoNumerico = false, string sClausulaWhere = "", bool bModal = false, bool bMultiSelect = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | sCategoria | Identificador da Categoria. |
System.String | sTabela | |
System.String | sCampo | Identificador do Campo. |
System.Windows.Forms.Form | oFormF4 | Objecto identificador do Formulário. |
System.Windows.Forms.Control | oControlo | Objecto identificador do Controlo. |
System.String | sNomeAudit | Identificador do Nome do Audit. |
System.Int32 | iLinhaSpread | Identificador da Linha da Spread. |
System.Int32 | iColunaSpread | Identificador da Coluna da Spread. |
System.Boolean | bCampoNumerico | Indicador de Campo Númerico. |
System.String | sClausulaWhere | Identificador da Clausula WHERE. |
System.Boolean | bModal | Indicador de Modal. |
System.Boolean | bMultiSelect | Indicador de Multipla Selecção. |
TrataF4RestricoesEx(String, String, String, Form, FpSpread, String, String, Int32, Int32, Boolean, String, Boolean, Boolean)
Invoca uma pesquisa no contexto das restrições.
Declaration
public void TrataF4RestricoesEx(string sCategoria, string sTabela, string sCampo, Form oFormF4, FpSpread oControlo, string sNomeAudit, string strQueryId, int iLinhaSpread = -11, int iColunaSpread = -11, bool bCampoNumerico = false, string sClausulaWhere = "", bool bModal = false, bool bMultiSelect = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | sCategoria | Identificador da Categoria. |
System.String | sTabela | |
System.String | sCampo | Identificador do Campo. |
System.Windows.Forms.Form | oFormF4 | Objecto identificador do Formulário. |
UpgradeHelpers.Spread.FpSpread | oControlo | Objecto identificador do Controlo. |
System.String | sNomeAudit | Identificador do Nome do Audit. |
System.String | strQueryId | |
System.Int32 | iLinhaSpread | Identificador da Linha da Spread. |
System.Int32 | iColunaSpread | Identificador da Coluna da Spread. |
System.Boolean | bCampoNumerico | Indicador de Campo Númerico. |
System.String | sClausulaWhere | Identificador da Clausula WHERE. |
System.Boolean | bModal | Indicador de Modal. |
System.Boolean | bMultiSelect | Indicador de Multipla Selecção. |