protected void Page_Load(object sender, EventArgs e) { this.tpaternidad = new DTAdnPaternidad(); this.tcliente = new DTcliente(); this.registro = this.tcliente.listarCliente(); Mcodigoalzheimer.Text = tpaternidad.generarCodigoAlzheimer(); }
protected void Page_Load(object sender, EventArgs e) { this.dtadnpaternidad = new DTAdnPaternidad(); dtexamen = new DTexamenes(); ord = new OrdenAdn(); //Obtener id del cliente String valor = Request.QueryString["id"]; int id = int.Parse(valor); ord.Id_orden = id; this.registro = dtadnpaternidad.getOrdenporid(id); Id_orden.Value = valor; //Comenzamos a recorer el sqldatareader if (registro.Read()) { //seteamos los datos de los campos de ese cliente this.ord.Id_codigo = this.registro["Id_codigo"].ToString(); ord.Nombre_pareja = this.registro["Nombre_pareja"].ToString(); ord.Nombre_menor = this.registro["Nombre_menor"].ToString(); ord.Fecha = Convert.ToDateTime(this.registro["Fecha"].ToString()); ord.Tipo_Caso = this.registro["Tipo_caso"].ToString(); ord.Observaciones = this.registro["Observaciones"].ToString(); ord.Baucher = this.registro["Baucher"].ToString(); } }
protected void Page_Load(object sender, EventArgs e) { this.tpaternidad = new DTAdnPaternidad(); this.tcliente = new DTcliente(); this.conexion = new Conexion(); this.registro = this.tcliente.listarCliente(); //Generar el codigo Mcodigo.Text = tpaternidad.generarCodigo(); Mcodigomadre.Text = tpaternidad.generarCodigo(); Mcodigoabuela.Text = tpaternidad.generarCodigo(); }
protected void Page_Load(object sender, EventArgs e) { this.dtadnpaternidad = new DTAdnPaternidad(); OrdenAdn ord = new OrdenAdn(); String valor = Request.QueryString["id"]; int id = int.Parse(valor); ord.Id_orden = id; this.dtadnpaternidad.eliminar(ord); Response.Redirect("BuscarMultiAdnOrden.aspx"); }
public static bool Eliminarord(String id) { bool resp = false; OrdenAdn ep = new OrdenAdn() { Id_orden = Convert.ToInt32(id) }; Console.Write(ep); resp = DTAdnPaternidad.getInstance().eliminar(ep); return(resp); }
protected void Page_Load(object sender, EventArgs e) { this.dtadnpaternidad = new DTAdnPaternidad(); ord = new OrdenAdn(); //Obtener id del cliente String valor = Request.QueryString["id"]; int id = int.Parse(valor); ord.Id_orden = id; //Cargar el Combobox de tipo orden examen this.registro = dtadnpaternidad.getOrdenporid(id); Id_orden.Value = valor; //Comenzamos a recorer el sqldatareader if (registro.Read()) { //seteamos los datos de los campos de ese cliente this.ord.Id_codigo = this.registro["Id_codigo"].ToString(); ord.Nombre_pareja = this.registro["Nombre_pareja"].ToString(); ord.Nombre_menor = this.registro["Nombre_menor"].ToString(); ord.Fecha = Convert.ToDateTime(this.registro["Fecha"].ToString()); ord.Tipo_Caso = this.registro["Tipo_caso"].ToString(); ord.Observaciones = this.registro["Observaciones"].ToString(); ord.Baucher = this.registro["Baucher"].ToString(); //Datos Cliente idcliente = Convert.ToInt32(registro["Id_cliente"].ToString()); } //Mostrar datos en el textbox this.cliente = NGcliente.getInstance().ListarClientePorId(idcliente); if (cliente.Read()) { Mcliente.Text = cliente["Nombre"].ToString() + " " + cliente["Apellido"].ToString(); Mcedula.Text = cliente["Cedula"].ToString(); } }
public static List <OrdenAdn> GetData() { DTAdnPaternidad dtp = new DTAdnPaternidad(); return(dtp.GetData()); }
public bool modificarord(OrdenAdn ord) { return(DTAdnPaternidad.getInstance().modificar(ord)); }
public bool eliminarord(OrdenAdn ord) { return(DTAdnPaternidad.getInstance().eliminar(ord)); }
public bool guardarord(OrdenAdn ord) { return(DTAdnPaternidad.getInstance().crear(ord)); }