コード例 #1
0
        private void LimparFormulario()
        {
            try
            {
                txtID.Text = string.Format("{0:000000}", ClienteBll.RetornaNovoID());
            }
            catch (Exception ex)
            {
                LogBll.InserirLog(new Log
                {
                    Login    = User.Identity.Name,
                    Mensagem = ex.Message,
                    Operacao = TipoOperacao.Read.ToString(),
                    Tabela   = "Cliente"
                });
                Msg.Erro(Resource.ContateAdminstrador, this);
            }

            txtBairro.Text            = string.Empty;
            txtCelular.Text           = string.Empty;
            txtCep.Text               = string.Empty;
            txtCidade.Text            = string.Empty;
            txtComplemento.Text       = string.Empty;
            txtCPFCNPJ.Text           = string.Empty;
            txtEmail.Text             = string.Empty;
            txtEndereco.Text          = string.Empty;
            txtInscricaoEstadual.Text = string.Empty;
            txtNomeFantasia.Text      = string.Empty;
            txtNumero.Text            = string.Empty;
            txtRazaoSocial.Text       = string.Empty;
            txtTelefone.Text          = string.Empty;
            cbAtivo.Checked           = true;

            hfTipoOperacao.Value = TipoOperacao.Create.ToString();
        }