Beispiel #1
0
        public Dictionary <string, string> GetFieldsToDisplay()
        {
            Dictionary <string, string> displayFields = new Dictionary <string, string>
            {
                { "Id", Id.ToString() },
                { "Nome", Name },
                { "CPF", GetMaskedCPF() },
                { "E-mail", Email },
                { "Data de nascimento", Dt_nasc.ToString("dd/MM/yyyy") }
            };

            return(displayFields);
        }
Beispiel #2
0
        public override Dictionary <string, string> GenerateDictFields()
        {
            Dictionary <string, string> fieldsQuery = base.GenerateDictFields();

            fieldsQuery.Add("rg", Rg);
            fieldsQuery.Add("org_exp", Org_exp);
            fieldsQuery.Add("nationality", Nationality);
            fieldsQuery.Add("father_name", Father_name);
            fieldsQuery.Add("mother_name", Mother_name);
            fieldsQuery.Add("address", Address);
            fieldsQuery.Add("city", City);
            fieldsQuery.Add("state", State);
            fieldsQuery.Add("district", District);
            fieldsQuery.Add("cep", Cep);
            fieldsQuery.Add("phone", Phone);
            fieldsQuery.Add("celphone", Celphone);
            fieldsQuery.Add("dt_exp", Dt_exp.ToString("yyyy-MM-dd"));
            fieldsQuery.Add("dt_nasc", Dt_nasc.ToString("yyyy-MM-dd"));

            return(fieldsQuery);
        }