Exemplo n.º 1
0
 public string insert_cuenta_correo(cuenta_correo obj)
 {
     if (obj_cuenta_correo.insert_cuenta_correo(obj))
     {
         return("I200");
     }
     else
     {
         return("I500");
     }
 }
Exemplo n.º 2
0
 public string update_cuenta_correo(cuenta_correo obj)
 {
     if (obj_cuenta_correo.update_cuenta_correo(obj))
     {
         return("U200");
     }
     else
     {
         return("U500");
     }
 }
Exemplo n.º 3
0
        public cuenta_correo[] data()
        {
            DataTable dt = obj_cuenta_correo.get_cuenta_correo();
            DataRow   row;

            cuenta_correo[] cuenta_correos = null;
            if (dt.Rows.Count > 0)
            {
                cuenta_correos = new cuenta_correo[dt.Rows.Count];
                for (int i = 0; i < dt.Rows.Count; i++)
                {
                    row = dt.Rows[i];
                    cuenta_correos[i] = new cuenta_correo(Convert.ToInt32(row["ccrr_idcorreo"].ToString()), row["ccrr_nombrecorreo"].ToString(), row["ccrr_estado"].ToString(), Convert.ToInt32(row["smlr_idsemillero"].ToString()));
                }
            }
            return(cuenta_correos);
        }