public HttpResponseMessage Get() { Otros otros = new Otros(); HttpResponseMessage response = Request.CreateResponse <List <Models.Otros> >(HttpStatusCode.Created, otros.Select_Todo_Otros()); return(response); }
public HttpResponseMessage Get([FromUri] String id) { Otros otros = new Otros(); Factura clave = new Factura(); clave.Clave1 = id; otros.Clave1 = clave; HttpResponseMessage response = Request.CreateResponse <Models.Otros>(HttpStatusCode.Created, otros.Select_Otros()); return(response); }
public Form1() { scene = new Scene(); scene.redraw += new EventHandler(scene_redraw); InitializeComponent(); simpleOpenglControl1.InitializeContexts(); scene.Initialize(); Otros.LoadTexture(); scene.element = new Lugar(); //new Base111(new Point3D(0,-2.6,-20),7,new float[]{1.0f,0.4f,0.2f,1.0f}); rc = new RC(this); rc.Show(); }
private void PressMotive(short motive) { ReasonId = motive; switch (motive) { case 5: Medidas.SetBackgroundResource(Resource.Drawable.ButtonPresses); Clausurado.SetBackgroundResource(Resource.Drawable.Blue_Button); Arrendamiento.SetBackgroundResource(Resource.Drawable.Blue_Button); Arte.SetBackgroundResource(Resource.Drawable.Blue_Button); Otros.SetBackgroundResource(Resource.Drawable.Blue_Button); break; case 6: Medidas.SetBackgroundResource(Resource.Drawable.Blue_Button); Clausurado.SetBackgroundResource(Resource.Drawable.ButtonPresses); Arrendamiento.SetBackgroundResource(Resource.Drawable.Blue_Button); Arte.SetBackgroundResource(Resource.Drawable.Blue_Button); Otros.SetBackgroundResource(Resource.Drawable.Blue_Button); break; case 7: Medidas.SetBackgroundResource(Resource.Drawable.Blue_Button); Clausurado.SetBackgroundResource(Resource.Drawable.Blue_Button); Arrendamiento.SetBackgroundResource(Resource.Drawable.ButtonPresses); Arte.SetBackgroundResource(Resource.Drawable.Blue_Button); Otros.SetBackgroundResource(Resource.Drawable.Blue_Button); break; case 8: Medidas.SetBackgroundResource(Resource.Drawable.Blue_Button); Clausurado.SetBackgroundResource(Resource.Drawable.Blue_Button); Arrendamiento.SetBackgroundResource(Resource.Drawable.Blue_Button); Arte.SetBackgroundResource(Resource.Drawable.ButtonPresses); Otros.SetBackgroundResource(Resource.Drawable.Blue_Button); break; case 9: Medidas.SetBackgroundResource(Resource.Drawable.Blue_Button); Clausurado.SetBackgroundResource(Resource.Drawable.Blue_Button); Arrendamiento.SetBackgroundResource(Resource.Drawable.Blue_Button); Arte.SetBackgroundResource(Resource.Drawable.Blue_Button); Otros.SetBackgroundResource(Resource.Drawable.ButtonPresses); break; } }
public HttpResponseMessage Delete(FormDataCollection form) { Otros otros = new Otros(); Factura clave = new Factura(); clave.Clave1 = form.Get("Clave"); otros.Clave1 = clave; string[] respuesta = new string[2]; respuesta[0] = otros.Delete_Otros(); respuesta[1] = form.Get("Clave"); HttpResponseMessage response = Request.CreateResponse <string[]>(HttpStatusCode.Created, respuesta); return(response); }
private Otros CrearSeccionOtros() { if (SeccionOtros == null) { return(null); } var otros = new Otros(); var listaOtroTexto = new List <OtrosOtroTexto>(); SeccionOtros.ToList().ForEach(t => { listaOtroTexto.Add(new OtrosOtroTexto { codigo = t.Key, Value = t.Value }); }); otros.OtroTexto = listaOtroTexto.ToArray(); return(otros); }