Ejemplo n.º 1
0
 public void NewCategoria(IFormGridReload frmGrid)
 {
     _frmGrid       = frmGrid;
     this.Text      = "Nuevo Categoria";
     this.operacion = OperacionForm.frmAlta;
     this.ShowDialog();
 }
Ejemplo n.º 2
0
 public void NewPaciente(IFormGridReload frmGrid)
 {
     _frmGrid       = frmGrid;
     this.Text      = "Nuevo Paciente";
     this.operacion = OperacionForm.frmAlta;
     this.ShowDialog();
 }
Ejemplo n.º 3
0
 public void NewEmpleado(IFormGridReload frmGrid)
 {
     _frmGrid       = frmGrid;
     this.Text      = "Nuevo Empleado";
     this.operacion = OperacionForm.frmAlta;
     this.ShowDialog();
 }
Ejemplo n.º 4
0
 public void NewProfesional(IFormGridReload frmGrid)
 {
     _frmGrid       = frmGrid;
     this.Text      = "Nuevo Profesional";
     this.operacion = OperacionForm.frmAlta;
     this.ShowDialog();
 }
Ejemplo n.º 5
0
 public void NewOrden(IFormGridReload frmGrid)
 {
     _frmGrid       = frmGrid;
     this.Text      = "Nueva Orden";
     this.operacion = OperacionForm.frmAlta;
     this.ShowDialog();
 }
Ejemplo n.º 6
0
 public void NewDetalleOrden(IFormGridReload frmGrid, string orden)
 {
     _frmGrid       = frmGrid;
     this.Text      = "Nuevo DetalleOrden";
     this.operacion = OperacionForm.frmAlta;
     this._ord      = orden;
     this.ShowDialog();
 }
Ejemplo n.º 7
0
 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 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();
 }
Ejemplo n.º 9
0
 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();
 }
Ejemplo n.º 10
0
 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();
 }
Ejemplo n.º 11
0
        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();
        }
Ejemplo n.º 12
0
 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();
 }
Ejemplo n.º 13
0
 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();
 }
Ejemplo n.º 14
0
        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();
        }
Ejemplo n.º 15
0
 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();
 }
Ejemplo n.º 16
0
 public void ShowPaciente(Paciente paciente)
 {
     this.operacion = OperacionForm.frmModificacion;
     this.Text      = "Modificacion de informacion de paciente";
     p = paciente;
     this.ApellidoTxt.Text  = p.Apellido;
     this.NombresTxt.Text   = p.Nombre;
     this.DnitTxt.Text      = p.Dni.ToString();
     this.DomicilioTxt.Text = p.Domicilio;
     this.TelefonoTxt.Text  = p.Telefono;
     this.FechaNacDpk.Value = p.FechaNac;
     this.PesoTxt.Text      = p.PesoInicial.ToString();
     this.TallaTxt.Text     = p.Talla.ToString();
     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();
        }
Ejemplo n.º 18
0
        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();
 }
Ejemplo n.º 20
0
        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();
        }
Ejemplo n.º 21
0
        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();
        }
Ejemplo n.º 22
0
        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();
        }
Ejemplo n.º 23
0
        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();
        }
Ejemplo n.º 24
0
 public void NewListado()
 {
     this.operacion = OperacionForm.frmConsulta;
 }
Ejemplo n.º 25
0
 public void NewPaciente()
 {
     this.Text      = "Nuevo Paciente";
     this.operacion = OperacionForm.frmAlta;
     this.ShowDialog();
 }