コード例 #1
0
 public void Excluir()
 {
     if (IdItem > 0)
     {
         Controle.ExecutaSQL("DELETE FROM CotacaoPessoas WHERE Id_Pessoa=" + IdPessoa.ToString().Trim() + " and Id_Item=" + IdItem.ToString() + " and Id_Pessoa=" + IdPessoa.ToString());
     }
 }
コード例 #2
0
        public override string ToString()
        {
            char sep = SeparadorSplit;

            return(IdCnae.ToString()
                   + sep + IdPessoa.ToString()
                   + sep + (int)TipoCnae
                   + sep + CodigoCnae
                   + sep + DescricaoCnae);
        }
コード例 #3
0
        public override string ToString()
        {
            char sep = SeparadorSplit;

            return(IdPessoa.ToString()
                   + sep + (int)TipoPessoa
                   + sep + (int)SituacaoPessoa
                   + sep + (int)Vinculo
                   + sep + NomePessoa
                   + sep + (int)Sexo);
        }
コード例 #4
0
 public void Excluir()
 {
     if (IdPessoa > 0)
     {
         Controle.ExecutaSQL("DELETE FROM Pessoas WHERE Id_Pessoa=" + IdPessoa.ToString().Trim());
         if (Clie_Forn == 4)
         {
             Controle.ExecutaSQL("UPDATE Pessoas SET ID_VINCULO=0 WHERE ID_VINCULO=" + IdPessoa.ToString().Trim());
         }
     }
 }
コード例 #5
0
        public void SetaAutPessoaF(int IdUsu, bool NaoVerPrzo)
        {
            string sSQL = "UPDATE MvVenda Set Id_UsuBoleto=" + IdUsu.ToString() + "  Where Id_Venda=" + IdVenda.ToString();

            Controle.ExecutaSQL(sSQL);
            if (NaoVerPrzo)
            {
                sSQL = "UPDATE Pessoas Set NaoVerPrazoPg=1  Where Id_Pessoa=" + IdPessoa.ToString();
                Controle.ExecutaSQL(sSQL);
            }
        }
コード例 #6
0
        public override string ToString()
        {
            char sep = SeparadorSplit;

            return(IdPessoa.ToString()
                   + sep + (int)TipoPessoa
                   + sep + (int)SituacaoPessoa
                   + sep + (int)Vinculo + sep
                   + sep + Cnpj
                   + sep + (int)TipoEstabelecimento
                   + sep + DataAbertura
                   + sep + NomeEmpresarial
                   + sep + NomeFantasia
                   + sep + PortePJ
                   + sep + CodigoNaturezaJuridica
                   + sep + DescricaoNaturezaJuridica
                   + sep + Efr
                   + sep + (int)SituacaoCnpj
                   + sep + DataSituacaoCadastral
                   + sep + MotivoSituacaoCadastral
                   + sep + SituacaoEspecial
                   + sep + DataSituacaoEspecial);
        }
コード例 #7
0
 public void LerDados(int Id)
 {
     if (Id > 0)
     {
         SqlDataReader Tabela;
         Tabela = Controle.ConsultaSQL("SELECT * FROM CotacaoPessoas WHERE Id_Item=" + Id.ToString() + " and Id_Pessoa=" + IdPessoa.ToString());
         if (Tabela.HasRows)
         {
             Tabela.Read();
             IdCotacao   = int.Parse(Tabela["Id_Cotacao"].ToString());
             IdItem      = int.Parse(Tabela["Id_Item"].ToString());
             IdPessoa    = int.Parse(Tabela["Id_Pessoa"].ToString());
             VlrUnitario = decimal.Parse(Tabela["VlrUnitario"].ToString());
         }
     }
     else
     {
         IdItem      = 0;
         IdCotacao   = 0;
         IdPessoa    = 0;
         VlrUnitario = 0;
     }
 }