public void NewProveedor(IFormGridReload frmGrid) { _frmGrid = frmGrid; this.Text = "Nuevo Proveedor"; this.operacion = OperacionFormProv.frmAlta; this.ShowDialog(); }
public void NewCategoria(IFormGridReload frmGrid) { _frmGrid = frmGrid; this.Text = "Nuevo Categoria"; this.operacion = OperacionForm.frmAlta; this.ShowDialog(); }
public void NewOrden(IFormGridReload frmGrid) { _frmGrid = frmGrid; this.Text = "Nueva Orden"; this.operacion = OperacionForm.frmAlta; this.ShowDialog(); }
public void NewPaciente(IFormGridReload frmGrid) { _frmGrid = frmGrid; this.Text = "Nuevo Paciente"; this.operacion = OperacionForm.frmAlta; this.ShowDialog(); }
public void NewProfesional(IFormGridReload frmGrid) { _frmGrid = frmGrid; this.Text = "Nuevo Profesional"; this.operacion = OperacionForm.frmAlta; this.ShowDialog(); }
public void NewEmpleado(IFormGridReload frmGrid) { _frmGrid = frmGrid; this.Text = "Nuevo Empleado"; this.operacion = OperacionForm.frmAlta; this.ShowDialog(); }
public void NewDetalleOrden(IFormGridReload frmGrid, string orden) { _frmGrid = frmGrid; this.Text = "Nuevo DetalleOrden"; this.operacion = OperacionForm.frmAlta; this._ord = orden; this.ShowDialog(); }
public void ShowCategoria(Categoria c, IFormGridReload frmGrid) { _frmGrid = frmGrid; this.operacion = OperacionForm.frmModificacion; this.Text = "Modificacion de infromacion de Categoria"; nuevaCategoria = c; this.AltaCategoria.Text = nuevaCategoria.NombreCategoria; this.ShowDialog(); }
public void ShowObraSocial(ObraSocial obraSocial, IFormGridReload frmGrid) { _frmGrid = frmGrid; this.operacion = OperacionForm.frmModificacion; this.Text = "Modificación de información de paciente"; os = obraSocial; this.txtNombre.Text = os.Nombre; this.ShowDialog(); }
public void NewDetalleOrden(IFormGridReload frmGrid, int OrdenId, int cantrenglones) { _frmGrid = frmGrid; this.Text = "Nuevo detalle de Orden"; this.operacion = OperacionForm.frmAlta; cantrenglones++; this.OrdenIdTxt.Text = OrdenId.ToString(); this.DetalleId.Text = cantrenglones.ToString(); this.ShowDialog(); }
public void ShowDetalleOrden(DetalleOrden detordenIvk, IFormGridReload frmGrid) { _frmGrid = frmGrid; this.operacion = OperacionForm.frmModificacion; this.Text = "Modificacion de informacion de detalle de orden"; detalle_orden = detordenIvk; this.OrdenIdTxt.Text = detalle_orden.OrdenId.ToString(); DetalleId.Text = detalle_orden.DetalleId.ToString(); ProductoCbo.SelectedItem = detalle_orden.ProductoObj; CantidadTxt.Text = detalle_orden.Cantidad.ToString(); }
public void ShowCategoria(Categoria categoria, IFormGridReload frmGrid) { _frmGrid = frmGrid; this.operacion = OperacionForm.frmModificacion; this.Text = "Modificacion de informacion de categoria"; cat = categoria; this.IdMsk.Enabled = false; this.NombreTxt.Text = cat.NombreCategoria; this.IdMsk.Text = cat.CategoriaId.ToString(); this.ShowDialog(); }
public void ShowProveedor(Proveedor proveedor, IFormGridReload frmGrid) { _frmGrid = frmGrid; this.operacion = OperacionFormProv.frmModificacion; this.Text = "Modificacion de informacion de Proveedor"; prov = proveedor; //this.IdMsk.Enabled = false; this.id.Text = Convert.ToString(prov.ProveedorId); this.nombre.Text = prov.NombreProveedor; this.contacto.Text = prov.ContactoProveedor; this.celular.Text = prov.CeluProveedor; this.fijo.Text = prov.FijoProveedor; this.ShowDialog(); }
public void ShowEmpleado(Empleado empleado, IFormGridReload frmGrid) { _frmGrid = frmGrid; this.operacion = OperacionFormEmpleado.frmModificacion; this.Text = "Modificacion de informacion de Empleado"; emp = empleado; this.IdMsk.Enabled = false; // this.EmpleadoIdTxt = Convert.ToInt32(em.EmpleadoId); this.NombreTxt.Text = emp.Nombre; this.fechaEmpleadoDte.Value = emp.FechaNac; this.Reporta_aCbo.SelectedItem = emp.EmpleadoId; this.ShowDialog(); }
public void ShowPaciente(Paciente paciente, IFormGridReload frmGrid) { _frmGrid = frmGrid; this.operacion = OperacionForm.frmModificacion; this.Text = "Modificación de información de paciente"; p = paciente; this.DniMsk.Enabled = false; this.ApellidoTxt.Text = p.Apellido; this.NombresTxt.Text = p.Nombres; this.DniMsk.Text = p.Dni.ToString(); this.DomicilioTxt.Text = p.Domicilio; this.TelefonoTxt.Text = p.Telefono; this.ShowDialog(); }
public void ShowOrden(Orden orden, IFormGridReload frmGrid) { _frmGrid = frmGrid; this.operacion = OperacionForm.frmModificacion; this.Text = "Modificacion de informacion de Orden"; ord = orden; this.IdMsk.Enabled = false; this.EmpleadoIdTxt.Text = ord.EmpleadoId.ToString(); this.ClienteTxt.Text = ord.ClienteId.ToString(); this.IdMsk.Text = ord.OrdenId.ToString(); this.FechaTxt.Text = ord.FechaOrden.ToString(); this.DescuentoTxt.Text = ord.Descuento.ToString(); this.ShowDialog(); }
public void ShowEmpleado(Empleado empelado, IFormGridReload frmGrid) { _frmGrid = frmGrid; this.operacion = OperacionForm.frmModificacion; this.Text = "Modificacion de informacion de Empleado"; emp = empelado; this.IdMsk.Enabled = false; this.NombreTxt.Text = emp.Nombre; this.ApellidoTxt.Text = emp.Apellido; this.IdMsk.Text = emp.EmpleadoId.ToString(); this.FechaNacimientoTxt.Text = emp.FechaNac.ToString(); this.ReportarATxt.Text = emp.ReportaA.ToString(); this.ExtensionTxt.Text = emp.Extension.ToString(); this.ShowDialog(); }
public void ShowProfesional(Profesional profesional, IFormGridReload frmGrid) { _frmGrid = frmGrid; this.operacion = OperacionForm.frmModificacion; this.Text = "Modificacion de informacion de profesional"; p = profesional; this.MatriculaTxt.Text = p.Matricula; this.FechaMatricula.Value = p.FechaMatricula; this.NombreTxt.Text = p.Nombres; this.ApellidoTxt.Text = p.Apellido; this.TelefonoTxt.Text = p.Telefono; this.EsActivo.Checked = p.Activo; this.ShowDialog(); }
public void ShowCliente(Cliente cliente, IFormGridReload frmGrid) { _frmGrid = frmGrid; this.operacion = OperacionForm.frmModificacion; this.Text = "Modificacion de informacion de cliente"; cl = cliente; this.IdMsk.Enabled = false; this.CedulaRucTxt.Text = cl.NombreCia; this.NombreCiaTxt.Text = cl.CedulaRuc; this.IdMsk.Text = cl.ClienteId.ToString(); this.ContactoTxt.Text = cl.NombreContacto; this.DireccionTxt.Text = cl.DirCliente; this.ShowDialog(); }
public void ShowProducto(Producto producto, IFormGridReload frmGrid) { _frmGrid = frmGrid; this.operacion = OperacionForm.frmModificacion; this.Text = "Modificacion de informacion de Producto"; prod = producto; //this.IdM.Enabled = false; this.IdProovcbo.Text = Convert.ToString(prod.ProveedorId); this.IdCategoriaBco.Text = Convert.ToString(prod.CategoriaId); this.DescripcionTxt.Text = prod.Descripcion; this.PrecioUnitTxt.Text = Convert.ToString(prod.PrecioUnitario); this.ExistenciaTxt.Text = Convert.ToString(prod.Existencia); this.ShowDialog(); }
public void ShowProducto(Producto producto, IFormGridReload frmGrid) { _frmGrid = frmGrid; this.operacion = OperacionForm.frmModificacion; this.Text = "Modificacion de informacion de Producto"; prod = producto; this.IdMsk.Enabled = false; this.IdProveedorTxt.Text = String.Format("{0}", prod.ProveedorId); this.IdCategoriaTxt.Text = String.Format("{0}", prod.CategoriaId); this.IdMsk.Text = prod.ProductoId.ToString(); this.DescripcionTxt.Text = prod.Descripcion; this.PrecioUnitarioTxt.Text = String.Format("{0}", prod.PrecioUnitario); this.ExistenciaTxt.Text = String.Format("{0}", prod.Existencia); this.ShowDialog(); }
public void ShowProveedor(Proveedor proveedor, IFormGridReload frmGrid) { _frmGrid = frmGrid; this.operacion = OperacionForm.frmModificacion; this.Text = "Modificacion de informacion de Proveedor"; prov = proveedor; this.IdMsk.Enabled = false; this.NombreProveedorTxt.Text = prov.NombreProveedor; this.ContactoTxt.Text = prov.ContactoProveedor; this.IdMsk.Text = prov.ProveedorId.ToString(); this.CelularTxt.Text = prov.CeluProveedor; this.FijoTxt.Text = prov.FijoProveedor; this.ShowDialog(); }
public void ShowOrden(Orden ordenIvk, IFormGridReload frmGrid) { _frmGrid = frmGrid; this.operacion = OperacionForm.frmModificacion; this.Text = "Modificacion de informacion de orden"; orden = ordenIvk; this.OrdenIdTxt.Text = orden.OrdenId.ToString(); this.EmpleadoCbo.SelectedItem = orden.EmpleadoObj; //cliente this.ClienteCbo.SelectedItem = orden.ClienteObj; this.FechaOrdenDtp.Value = orden.FechaOrden; this.DescuentoTxt.Text = orden.Descuento.ToString(); this.gridDetallesOrden.AutoGenerateColumns = false; this.gridDetallesOrden.DataSource = ManagerDB <DetalleOrden> .findAll("orden_id= " + orden.OrdenId.ToString()); this.ShowDialog(); }
public void ShowDetalleOrden(DetalleOrden detalleOrden, IFormGridReload frmGrid) { _frmGrid = frmGrid; this.operacion = OperacionForm.frmModificacion; this.Text = "Modificacion de informacion de DetalleOrden"; dOrd = detalleOrden; this.IdMsk.Enabled = false; this.ProductoIdTxt.Text = dOrd.ProductoId.ToString(); this.CantidadTxt.Text = dOrd.Cantidad.ToString(); this.IdMsk.Text = dOrd.DetalleId.ToString(); //prueba xd // propiedades del control a configurar para que se carguen en el control this.ShowDialog(); }
public void ShowDetalleOrden(DetalleOrden ordenIvk, IFormGridReload frmGrid) { _frmGrid = frmGrid; this.operacion = OperacionForm.frmModificacion; this.Text = "Modificacion de informacion de orden"; detalleOrden = ordenIvk; this.OrdenIdTxt.Text = detalleOrden.OrdenId.ToString(); this.DetalleIdTxt.Text = detalleOrden.DetalleId.ToString(); this.ProductoCbo.SelectedItem = detalleOrden.ProductoObj; this.cantidadTxt.Text = detalleOrden.Cantidad.ToString(); this.detalleOrden.Cantidad = Convert.ToInt32(this.cantidadTxt.Text); //cliente /*this.FechaOrdenDtp.Value = orden.FechaOrden; * this.DescuentoTxt.Text = orden.Descuento.ToString(); * this.DetallesOrden.AutoGenerateColumns = false; * this.DetallesOrden.DataSource = ManagerDB<DetalleOrden>.findAll("orden_id= " + orden.OrdenId.ToString()); */ this.ShowDialog(); }