예제 #1
0
    public static string  stringFromSex(TypeSex the_enum)
    {
        switch (the_enum)
        {
        case TypeSex.Sex_Female:
            return("Female");

        case TypeSex.Sex_Male:
            return("Male");

        default:
            Debug.Assert(false);
            return(null);
        }
    }
예제 #2
0
 public void InsertRegistrosTypeSex(TypeSex model)
 {
     db.TypeSex.Add(model);
     db.SaveChanges();
 }
예제 #3
0
 protected override void handle_result(TypeSex result)
 {
     top.value.Add(result);
 }
예제 #4
0
            protected override void handle_result(TypeSex result)
            {
//@@@        Debug.Assert(!have_value);
                have_value = true;
                value      = result;
            }
예제 #5
0
 protected abstract void handle_result(TypeSex result);
예제 #6
0
 public void setSex(TypeSex new_value)
 {
     flagHasSex = true;
     storeSex   = new_value;
 }
예제 #7
0
        public JsonResult InsertRegisterTable(string tableName, string descripcion)
        {
            if (tableName == "TypeAtencion")
            {
                var model = new TypeAtencion()
                {
                    Ide = descripcion, Atencion = descripcion
                };
                types.InsertRegistrosTypeAtencion(model);
            }
            else if (tableName == "TypeContextura")
            {
                var model = new TypeContextura()
                {
                    Ide = descripcion, Contextura = descripcion
                };
                types.InsertRegistrosTypeContextura(model);
            }
            else if (tableName == "TypeCountry")
            {
                var model = new TypeCountry()
                {
                    Ide = descripcion, Pais = descripcion
                };
                types.InsertRegistrosTypeCountry(model);
            }
            else if (tableName == "TypeDepilacion")
            {
                var model = new TypeDepilacion()
                {
                    Ide = descripcion, Depilacion = descripcion
                };
                types.InsertRegistrosTypeDepilacion(model);
            }
            else if (tableName == "TypeDrink")
            {
                var model = new TypeDrink()
                {
                    Ide = descripcion, Drink = descripcion
                };
                types.InsertRegistrosTypeDrink(model);
            }
            else if (tableName == "TypeEscort")
            {
                var model = new TypeEscort()
                {
                    Ide = descripcion, Categoria = descripcion
                };
                types.InsertRegistrosTypeEscort(model);
            }
            else if (tableName == "TypeEyes")
            {
                var model = new TypeEyes()
                {
                    Ide = descripcion, Ojos = descripcion
                };
                types.InsertRegistrosTypeEyes(model);
            }
            else if (tableName == "TypeGirls")
            {
                var model = new TypeGirls()
                {
                    Ide = descripcion, Type = descripcion
                };
                types.InsertRegistrosTypeGirls(model);
            }
            else if (tableName == "TypeHair")
            {
                var model = new TypeHair()
                {
                    Ide = descripcion, ColorCabello = descripcion
                };
                types.InsertRegistrosTypeHair(model);
            }
            else if (tableName == "TypeNacionalidad")
            {
                var model = new TypeNacionalidad()
                {
                    Ide = descripcion, Nacionalidad = descripcion
                };
                types.InsertRegistrosTypeNacionalidad(model);
            }
            else if (tableName == "TypePiel")
            {
                var model = new TypePiel()
                {
                    Ide = descripcion, Piel = descripcion
                };
                types.InsertRegistrosTypePiel(model);
            }
            else if (tableName == "TypeServicesSex")
            {
                var model = new TypeServicesSex()
                {
                    Ide = descripcion, Servicio = descripcion
                };
                types.InsertRegistrosTypeServicesSex(model);
            }
            else if (tableName == "TypeSex")
            {
                var model = new TypeSex()
                {
                    Ide = descripcion, Sexo = descripcion
                };
                types.InsertRegistrosTypeSex(model);
            }
            else if (tableName == "TypeSmoke")
            {
                var model = new TypeSmoke()
                {
                    Ide = descripcion, Smoke = descripcion
                };
                types.InsertRegistrosTypeSmoke(model);
            }


            return(Json("Ok"));
        }