public TRegistro_CadUsuario() { this.lEtapaPed = new CamadaDados.Faturamento.Cadastros.TList_CadEtapa(); this.lEtapaPedDel = new CamadaDados.Faturamento.Cadastros.TList_CadEtapa(); this.lAcesso = new TList_CadAcesso(); this.lGrupo = new TList_CadUsuario_Grupo(); this.lGrupoDel = new TList_CadUsuario_Grupo(); this.lEmpresa = new TList_CadUsuario_Empresa(); this.lEmpresaDel = new TList_CadUsuario_Empresa(); this.lTerminal = new TList_CadUsuarioxTerminal(); this.lTerminalDel = new TList_CadUsuarioxTerminal(); this.lPesagem = new TList_CadUsuario_TipoPesagem(); this.lPesagemDel = new TList_CadUsuario_TipoPesagem(); this.lPedido = new TList_CadUsuario_CFGPedido(); this.lPedidoDel = new TList_CadUsuario_CFGPedido(); this.lContaGer = new TList_Usuario_ContaGer(); this.lContaGerDel = new TList_Usuario_ContaGer(); this.lRegra = new TList_Usuario_RegraEspecial(); this.lRegraDel = new TList_Usuario_RegraEspecial(); this.lTpRequisicao = new TList_Usuario_TpRequisicao(); this.lTpRequisicaoDel = new TList_Usuario_TpRequisicao(); this.lTpDuplicata = new TList_Usuario_TpDuplicata(); this.lTpDupDel = new TList_Usuario_TpDuplicata(); this.St_processar = false; this.Login = string.Empty; this.Senha = string.Empty; this.Nome_usuario = string.Empty; this.tp_registro = string.Empty; this.tipo_registro = string.Empty; this.st_expirarsenha = string.Empty; this.st_expirarsenhabool = false; this.Qt_DiasExpirar = 0; this.St_Registro = "A"; this.dt_altsenha = null; this.dt_altsenhastring = string.Empty; this.Email_padrao = string.Empty; this.st_AlterarSenha = string.Empty; this.st_alterarsenhabool = false; this.Login_BI = string.Empty; this.Senha_BI = string.Empty; this.st_loginPDV = "N"; this.st_loginPDVbool = false; this.Cor_1 = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(169)))), ((int)(((byte)(212)))), ((int)(((byte)(121))))); this.Cor_2 = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(125)))), ((int)(((byte)(199)))), ((int)(((byte)(212))))); this.Cor_3 = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(183)))), ((int)(((byte)(182)))), ((int)(((byte)(181))))); }
public CamadaDados.Faturamento.Cadastros.TList_CadEtapa Select(TpBusca[] vBusca, Int32 vTop, string vNM_Campo) { CamadaDados.Faturamento.Cadastros.TList_CadEtapa lista = new CamadaDados.Faturamento.Cadastros.TList_CadEtapa(); SqlDataReader reader = null; bool podeFecharBco = false; if (Banco_Dados == null) { podeFecharBco = this.CriarBanco_Dados(false); } try { if (vNM_Campo == "") { reader = this.ExecutarBusca(this.SqlCodeBusca(vBusca, Convert.ToInt16(vTop), "")); } else { reader = this.ExecutarBusca(this.SqlCodeBusca(vBusca, Convert.ToInt16(vTop), vNM_Campo)); } while (reader.Read()) { CamadaDados.Faturamento.Cadastros.TRegistro_CadEtapa reg = new CamadaDados.Faturamento.Cadastros.TRegistro_CadEtapa(); if (!(reader.IsDBNull(reader.GetOrdinal("Login")))) { reg.Login = reader.GetString(reader.GetOrdinal("Login")); } if (!reader.IsDBNull(reader.GetOrdinal("id_etapa"))) { reg.Id_etapa = reader.GetDecimal(reader.GetOrdinal("id_etapa")); } if (!reader.IsDBNull(reader.GetOrdinal("ds_etapa"))) { reg.DS_Etapa = reader.GetString(reader.GetOrdinal("ds_etapa")); } lista.Add(reg); } } finally { reader.Close(); reader.Dispose(); if (podeFecharBco) { this.deletarBanco_Dados(); } } return(lista); }