├── README.md
├── capaPresentacion
├── Resources
│ ├── historial.png
│ ├── inspection.png
│ ├── pacientes.png
│ ├── buscar_paciente.png
│ └── Creciendo-Sanos-y-Felices-LOGO.png
├── packages.config
├── Properties
│ ├── Settings.settings
│ ├── Settings.Designer.cs
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ └── Resources.resx
├── Program.cs
├── ucCardReport.cs
├── formBuscarPaciente.cs
├── formPaciente.cs
├── App.config
├── formBuscarPaciente.Designer.cs
├── formSelecPaciente.cs
├── formHistoriaClinica.cs
├── ucCardReport.Designer.cs
├── formPrincipal.cs
├── formAgregarPaciente.cs
├── formPaciente.resx
├── ucCardReport.resx
├── formBuscarPaciente.resx
├── formHistoriaClinica.resx
├── formSelecPaciente.resx
├── formPaciente.Designer.cs
├── formSelecPaciente.Designer.cs
├── capaPresentacion.csproj
├── formAgregarPaciente.Designer.cs
├── formPrincipal.Designer.cs
└── formHistoriaClinica.Designer.cs
├── capaDatos
├── conexionCD.cs
├── packages.config
├── Properties
│ └── AssemblyInfo.cs
├── app.config
├── historiaCD.cs
├── capaDatos.csproj
└── pacienteCD.cs
├── capaNegocio
├── historiaCN.cs
├── Properties
│ └── AssemblyInfo.cs
├── app.config
├── capaNegocio.csproj
└── pacienteCN.cs
├── capaEntidad
├── pacienteCE.cs
├── historiaCE.cs
├── Properties
│ └── AssemblyInfo.cs
└── capaEntidad.csproj
├── clinica.sln
├── .gitattributes
├── .gitignore
└── LICENSE.txt
/README.md:
--------------------------------------------------------------------------------
1 | # clinica
--------------------------------------------------------------------------------
/capaPresentacion/Resources/historial.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodingMarin/history-clinic-system/HEAD/capaPresentacion/Resources/historial.png
--------------------------------------------------------------------------------
/capaPresentacion/Resources/inspection.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodingMarin/history-clinic-system/HEAD/capaPresentacion/Resources/inspection.png
--------------------------------------------------------------------------------
/capaPresentacion/Resources/pacientes.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodingMarin/history-clinic-system/HEAD/capaPresentacion/Resources/pacientes.png
--------------------------------------------------------------------------------
/capaPresentacion/Resources/buscar_paciente.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodingMarin/history-clinic-system/HEAD/capaPresentacion/Resources/buscar_paciente.png
--------------------------------------------------------------------------------
/capaPresentacion/Resources/Creciendo-Sanos-y-Felices-LOGO.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodingMarin/history-clinic-system/HEAD/capaPresentacion/Resources/Creciendo-Sanos-y-Felices-LOGO.png
--------------------------------------------------------------------------------
/capaPresentacion/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/capaPresentacion/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/capaDatos/conexionCD.cs:
--------------------------------------------------------------------------------
1 | using MySql.Data.MySqlClient;
2 | using System.Configuration;
3 |
4 | namespace capaDatos
5 | {
6 | public class conexionCD
7 | {
8 | static public MySqlConnection cnx()
9 | {
10 | string connetionString = ConfigurationManager.ConnectionStrings["MySQLConnection"].ConnectionString;
11 |
12 | MySqlConnection connetion = new MySqlConnection(connetionString);
13 |
14 | return connetion;
15 | }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/capaNegocio/historiaCN.cs:
--------------------------------------------------------------------------------
1 | using capaEntidad;
2 | using capaDatos;
3 | using System;
4 | using System.Collections.Generic;
5 | using System.Linq;
6 | using System.Text;
7 | using System.Threading.Tasks;
8 |
9 | namespace capaNegocio
10 | {
11 | public class historiaCN
12 | {
13 | public int insertar(historiaCE historiaCE)
14 | {
15 | historiaCD historiaCD = new historiaCD();
16 | int idNuevo = historiaCD.insertar(historiaCE);
17 | return idNuevo;
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/capaEntidad/pacienteCE.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace capaEntidad
8 | {
9 | public class pacienteCE
10 | {
11 | public int paciente_id { get; set; }
12 | public string nombre { get; set; }
13 | public string direccion { get; set; }
14 | public int DNI { get; set; }
15 | public string telefono { get; set; }
16 | public DateTime fecha_nacimiento { get; set; }
17 | public string mami_nombre { get; set; }
18 | public string papi_nombre { get; set; }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/capaPresentacion/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Threading.Tasks;
5 | using System.Windows.Forms;
6 |
7 | namespace capaPresentacion
8 | {
9 | internal static class Program
10 | {
11 | ///
12 | /// Punto de entrada principal para la aplicación.
13 | ///
14 | [STAThread]
15 | static void Main()
16 | {
17 | Application.EnableVisualStyles();
18 | Application.SetCompatibleTextRenderingDefault(false);
19 | Application.Run(new formPrincipal());
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/capaPresentacion/ucCardReport.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Data;
5 | using System.Drawing;
6 | using System.Linq;
7 | using System.Text;
8 | using System.Threading.Tasks;
9 | using System.Windows.Forms;
10 |
11 | namespace capaPresentacion
12 | {
13 | public partial class ucCardReport : UserControl
14 | {
15 | public ucCardReport()
16 | {
17 | InitializeComponent();
18 | }
19 |
20 | public string Title { get { return lblTitle.Text; } set => lblTitle.Text = value; }
21 | public int Count { get { return int.Parse(lblData.Text); } set => lblData.Text = value.ToString(); }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/capaPresentacion/formBuscarPaciente.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Data;
5 | using System.Drawing;
6 | using System.Linq;
7 | using System.Text;
8 | using System.Threading.Tasks;
9 | using System.Windows.Forms;
10 |
11 | namespace capaPresentacion
12 | {
13 | public partial class formBuscarPaciente : Form
14 | {
15 | public string Titulo { get; set; }
16 | public string Mensaje { get; set; }
17 |
18 | public formBuscarPaciente()
19 | {
20 | InitializeComponent();
21 | }
22 |
23 | private void formBuscarPaciente_Load(object sender, EventArgs e)
24 | {
25 | Text = Titulo;
26 | lblMensaje.Text = Mensaje;
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/capaEntidad/historiaCE.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace capaEntidad
8 | {
9 | public class historiaCE
10 | {
11 | public int paciente_id { get; set; }
12 | public DateTime fecha_consulta { get; set; }
13 | public int edad { get; set; }
14 | public decimal peso { get; set; }
15 | public decimal talla { get; set; }
16 | public int frecuencia_respiratoria { get; set; }
17 | public int frecuencia_cardiaca { get; set; }
18 | public decimal temperatura { get; set; }
19 | public string presion_arterial { get; set; }
20 | public int tiempo { get; set; }
21 | public string signos_sintomas { get; set; }
22 | public string relato { get; set; }
23 | public string examen_fisico { get; set; }
24 | public string antecedentes { get; set; }
25 | public string diagnosticos { get; set; }
26 | public string prescripcion_medica { get; set; }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/capaPresentacion/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace capaPresentacion.Properties
12 | {
13 |
14 |
15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
18 | {
19 |
20 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
21 |
22 | public static Settings Default
23 | {
24 | get
25 | {
26 | return defaultInstance;
27 | }
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/capaDatos/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/capaPresentacion/formPaciente.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Data;
5 | using System.Drawing;
6 | using System.Linq;
7 | using System.Text;
8 | using System.Threading.Tasks;
9 | using System.Windows.Forms;
10 | using capaEntidad;
11 | using capaNegocio;
12 |
13 | namespace capaPresentacion
14 | {
15 | public partial class formPaciente : Form
16 | {
17 | public formPaciente()
18 | {
19 | InitializeComponent();
20 |
21 | mostrarPacientes();
22 | this.ControlBox = true;
23 | this.MaximizeBox = false;
24 |
25 | dgvMostrarPacientes.Columns["paciente_id"].HeaderText = "Codigo";
26 | dgvMostrarPacientes.Columns["nombre"].HeaderText = "Nombre";
27 | dgvMostrarPacientes.Columns["direccion"].HeaderText = "Dirección";
28 | dgvMostrarPacientes.Columns["telefono"].HeaderText = "Télefono";
29 | dgvMostrarPacientes.Columns["fecha_nacimiento"].HeaderText = "Fecha N.";
30 | dgvMostrarPacientes.Columns["mami_nombre"].HeaderText = "Apoderado M.";
31 | dgvMostrarPacientes.Columns["papi_nombre"].HeaderText = "Apoderado P.";
32 | dgvMostrarPacientes.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
33 | }
34 | private void mostrarPacientes()
35 | {
36 | pacienteCN pacienteCN = new pacienteCN();
37 | List pacienteCE = pacienteCN.mostrarPacientes();
38 | dgvMostrarPacientes.DataSource = pacienteCE;
39 | }
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/capaDatos/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // La información general de un ensamblado se controla mediante el siguiente
6 | // conjunto de atributos. Cambie estos valores de atributo para modificar la información
7 | // asociada con un ensamblado.
8 | [assembly: AssemblyTitle("capaDatos")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("capaDatos")]
13 | [assembly: AssemblyCopyright("Copyright © 2024")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Si establece ComVisible en false, los tipos de este ensamblado no estarán visibles
18 | // para los componentes COM. Si es necesario obtener acceso a un tipo en este ensamblado desde
19 | // COM, establezca el atributo ComVisible en true en este tipo.
20 | [assembly: ComVisible(false)]
21 |
22 | // El siguiente GUID sirve como id. de typelib si este proyecto se expone a COM.
23 | [assembly: Guid("a3f2f806-e00b-4267-bb49-14a818fd5244")]
24 |
25 | // La información de versión de un ensamblado consta de los cuatro valores siguientes:
26 | //
27 | // Versión principal
28 | // Versión secundaria
29 | // Número de compilación
30 | // Revisión
31 | //
32 | // Puede especificar todos los valores o usar los valores predeterminados de número de compilación y de revisión
33 | // utilizando el carácter "*", como se muestra a continuación:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/capaEntidad/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // La información general de un ensamblado se controla mediante el siguiente
6 | // conjunto de atributos. Cambie estos valores de atributo para modificar la información
7 | // asociada con un ensamblado.
8 | [assembly: AssemblyTitle("capaEntidad")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("capaEntidad")]
13 | [assembly: AssemblyCopyright("Copyright © 2024")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Si establece ComVisible en false, los tipos de este ensamblado no estarán visibles
18 | // para los componentes COM. Si es necesario obtener acceso a un tipo en este ensamblado desde
19 | // COM, establezca el atributo ComVisible en true en este tipo.
20 | [assembly: ComVisible(false)]
21 |
22 | // El siguiente GUID sirve como id. de typelib si este proyecto se expone a COM.
23 | [assembly: Guid("26720e12-b8a3-43a2-80e4-4be89c36e29b")]
24 |
25 | // La información de versión de un ensamblado consta de los cuatro valores siguientes:
26 | //
27 | // Versión principal
28 | // Versión secundaria
29 | // Número de compilación
30 | // Revisión
31 | //
32 | // Puede especificar todos los valores o usar los valores predeterminados de número de compilación y de revisión
33 | // utilizando el carácter "*", como se muestra a continuación:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/capaNegocio/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // La información general de un ensamblado se controla mediante el siguiente
6 | // conjunto de atributos. Cambie estos valores de atributo para modificar la información
7 | // asociada con un ensamblado.
8 | [assembly: AssemblyTitle("capaNegocio")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("capaNegocio")]
13 | [assembly: AssemblyCopyright("Copyright © 2024")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Si establece ComVisible en false, los tipos de este ensamblado no estarán visibles
18 | // para los componentes COM. Si es necesario obtener acceso a un tipo en este ensamblado desde
19 | // COM, establezca el atributo ComVisible en true en este tipo.
20 | [assembly: ComVisible(false)]
21 |
22 | // El siguiente GUID sirve como id. de typelib si este proyecto se expone a COM.
23 | [assembly: Guid("997cd380-2972-4a29-967e-24f7e7fe8421")]
24 |
25 | // La información de versión de un ensamblado consta de los cuatro valores siguientes:
26 | //
27 | // Versión principal
28 | // Versión secundaria
29 | // Número de compilación
30 | // Revisión
31 | //
32 | // Puede especificar todos los valores o usar los valores predeterminados de número de compilación y de revisión
33 | // utilizando el carácter "*", como se muestra a continuación:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/capaPresentacion/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // La información general de un ensamblado se controla mediante el siguiente
6 | // conjunto de atributos. Cambie estos valores de atributo para modificar la información
7 | // asociada con un ensamblado.
8 | [assembly: AssemblyTitle("capaPresentacion")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("capaPresentacion")]
13 | [assembly: AssemblyCopyright("Copyright © 2024")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Si establece ComVisible en false, los tipos de este ensamblado no estarán visibles
18 | // para los componentes COM. Si es necesario obtener acceso a un tipo en este ensamblado desde
19 | // COM, establezca el atributo ComVisible en true en este tipo.
20 | [assembly: ComVisible(false)]
21 |
22 | // El siguiente GUID sirve como id. de typelib si este proyecto se expone a COM.
23 | [assembly: Guid("e02e84f7-2bc9-4683-974f-83d1fa061d1f")]
24 |
25 | // La información de versión de un ensamblado consta de los cuatro valores siguientes:
26 | //
27 | // Versión principal
28 | // Versión secundaria
29 | // Número de compilación
30 | // Revisión
31 | //
32 | // Puede especificar todos los valores o usar los valores predeterminados de número de compilación y de revisión
33 | // utilizando el carácter "*", como se muestra a continuación:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/capaDatos/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/capaNegocio/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/capaPresentacion/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/capaPresentacion/formBuscarPaciente.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace capaPresentacion
2 | {
3 | partial class formBuscarPaciente
4 | {
5 | ///
6 | /// Required designer variable.
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// Clean up any resources being used.
12 | ///
13 | /// true if managed resources should be disposed; otherwise, false.
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region Windows Form Designer generated code
24 |
25 | ///
26 | /// Required method for Designer support - do not modify
27 | /// the contents of this method with the code editor.
28 | ///
29 | private void InitializeComponent()
30 | {
31 | this.lblMensaje = new System.Windows.Forms.Label();
32 | this.SuspendLayout();
33 | //
34 | // lblMensaje
35 | //
36 | this.lblMensaje.AutoSize = true;
37 | this.lblMensaje.Location = new System.Drawing.Point(386, 138);
38 | this.lblMensaje.Name = "lblMensaje";
39 | this.lblMensaje.Size = new System.Drawing.Size(35, 13);
40 | this.lblMensaje.TabIndex = 0;
41 | this.lblMensaje.Text = "label1";
42 | //
43 | // formBuscarPaciente
44 | //
45 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
46 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
47 | this.ClientSize = new System.Drawing.Size(800, 450);
48 | this.Controls.Add(this.lblMensaje);
49 | this.Name = "formBuscarPaciente";
50 | this.Text = "formBuscarPaciente";
51 | this.Load += new System.EventHandler(this.formBuscarPaciente_Load);
52 | this.ResumeLayout(false);
53 | this.PerformLayout();
54 |
55 | }
56 |
57 | #endregion
58 |
59 | private System.Windows.Forms.Label lblMensaje;
60 | }
61 | }
--------------------------------------------------------------------------------
/capaEntidad/capaEntidad.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {26720E12-B8A3-43A2-80E4-4BE89C36E29B}
8 | Library
9 | Properties
10 | capaEntidad
11 | capaEntidad
12 | v4.8.1
13 | 512
14 | true
15 |
16 |
17 | true
18 | full
19 | false
20 | bin\Debug\
21 | DEBUG;TRACE
22 | prompt
23 | 4
24 |
25 |
26 | pdbonly
27 | true
28 | bin\Release\
29 | TRACE
30 | prompt
31 | 4
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/capaDatos/historiaCD.cs:
--------------------------------------------------------------------------------
1 | using capaEntidad;
2 | using MySql.Data.MySqlClient;
3 | using System;
4 | using System.Data;
5 |
6 | namespace capaDatos
7 | {
8 | public class historiaCD
9 | {
10 | public int insertar(historiaCE historia)
11 | {
12 | MySqlConnection cnx = conexionCD.cnx();
13 | cnx.Open();
14 |
15 | MySqlCommand cmd = cnx.CreateCommand();
16 | cmd.CommandType = CommandType.StoredProcedure;
17 | cmd.CommandText = "RegistrarConsulta";
18 |
19 | cmd.Parameters.AddWithValue("@p_paciente_id", historia.paciente_id);
20 | cmd.Parameters.AddWithValue("@p_fecha_consulta", historia.fecha_consulta);
21 | cmd.Parameters.AddWithValue("@p_edad", historia.edad);
22 | cmd.Parameters.AddWithValue("@p_peso", historia.peso);
23 | cmd.Parameters.AddWithValue("@p_talla", historia.talla);
24 | cmd.Parameters.AddWithValue("@p_frecuencia_respiratoria", historia.frecuencia_respiratoria);
25 | cmd.Parameters.AddWithValue("@p_frecuencia_cardiaca", historia.frecuencia_cardiaca);
26 | cmd.Parameters.AddWithValue("@p_temperatura", historia.temperatura);
27 | cmd.Parameters.AddWithValue("@p_presion_arterial", historia.presion_arterial);
28 | cmd.Parameters.AddWithValue("@p_tiempo", historia.tiempo);
29 | cmd.Parameters.AddWithValue("@p_signos_sintomas", historia.signos_sintomas);
30 | cmd.Parameters.AddWithValue("@p_relato", historia.relato);
31 | cmd.Parameters.AddWithValue("@p_examen_fisico", historia.examen_fisico);
32 | cmd.Parameters.AddWithValue("@p_antecedentes", historia.antecedentes);
33 | cmd.Parameters.AddWithValue("@p_diagnosticos", historia.diagnosticos);
34 | cmd.Parameters.AddWithValue("@p_prescripcion_medica", historia.prescripcion_medica);
35 |
36 | // Parámetro de salida para el nuevo ID
37 | MySqlParameter nuevoIdParam = new MySqlParameter("@nuevoId", MySqlDbType.Int32);
38 | nuevoIdParam.Direction = ParameterDirection.Output;
39 | cmd.Parameters.Add(nuevoIdParam);
40 |
41 | cmd.ExecuteNonQuery();
42 |
43 | int nuevoId = Convert.ToInt32(cmd.Parameters["@nuevoId"].Value);
44 |
45 | cnx.Close();
46 | return nuevoId;
47 | }
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/clinica.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 17
4 | VisualStudioVersion = 17.8.34525.116
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "capaDatos", "capaDatos\capaDatos.csproj", "{A3F2F806-E00B-4267-BB49-14A818FD5244}"
7 | EndProject
8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "capaNegocio", "capaNegocio\capaNegocio.csproj", "{997CD380-2972-4A29-967E-24F7E7FE8421}"
9 | EndProject
10 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "capaEntidad", "capaEntidad\capaEntidad.csproj", "{26720E12-B8A3-43A2-80E4-4BE89C36E29B}"
11 | EndProject
12 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "capaPresentacion", "capaPresentacion\capaPresentacion.csproj", "{E02E84F7-2BC9-4683-974F-83D1FA061D1F}"
13 | EndProject
14 | Global
15 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
16 | Debug|Any CPU = Debug|Any CPU
17 | Release|Any CPU = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
20 | {A3F2F806-E00B-4267-BB49-14A818FD5244}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21 | {A3F2F806-E00B-4267-BB49-14A818FD5244}.Debug|Any CPU.Build.0 = Debug|Any CPU
22 | {A3F2F806-E00B-4267-BB49-14A818FD5244}.Release|Any CPU.ActiveCfg = Release|Any CPU
23 | {A3F2F806-E00B-4267-BB49-14A818FD5244}.Release|Any CPU.Build.0 = Release|Any CPU
24 | {997CD380-2972-4A29-967E-24F7E7FE8421}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
25 | {997CD380-2972-4A29-967E-24F7E7FE8421}.Debug|Any CPU.Build.0 = Debug|Any CPU
26 | {997CD380-2972-4A29-967E-24F7E7FE8421}.Release|Any CPU.ActiveCfg = Release|Any CPU
27 | {997CD380-2972-4A29-967E-24F7E7FE8421}.Release|Any CPU.Build.0 = Release|Any CPU
28 | {26720E12-B8A3-43A2-80E4-4BE89C36E29B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
29 | {26720E12-B8A3-43A2-80E4-4BE89C36E29B}.Debug|Any CPU.Build.0 = Debug|Any CPU
30 | {26720E12-B8A3-43A2-80E4-4BE89C36E29B}.Release|Any CPU.ActiveCfg = Release|Any CPU
31 | {26720E12-B8A3-43A2-80E4-4BE89C36E29B}.Release|Any CPU.Build.0 = Release|Any CPU
32 | {E02E84F7-2BC9-4683-974F-83D1FA061D1F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
33 | {E02E84F7-2BC9-4683-974F-83D1FA061D1F}.Debug|Any CPU.Build.0 = Debug|Any CPU
34 | {E02E84F7-2BC9-4683-974F-83D1FA061D1F}.Release|Any CPU.ActiveCfg = Release|Any CPU
35 | {E02E84F7-2BC9-4683-974F-83D1FA061D1F}.Release|Any CPU.Build.0 = Release|Any CPU
36 | EndGlobalSection
37 | GlobalSection(SolutionProperties) = preSolution
38 | HideSolutionNode = FALSE
39 | EndGlobalSection
40 | GlobalSection(ExtensibilityGlobals) = postSolution
41 | SolutionGuid = {71AA12CD-3044-41BE-BB75-388DEAF14A46}
42 | EndGlobalSection
43 | EndGlobal
44 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Set default behavior to automatically normalize line endings.
3 | ###############################################################################
4 | * text=auto
5 |
6 | ###############################################################################
7 | # Set default behavior for command prompt diff.
8 | #
9 | # This is need for earlier builds of msysgit that does not have it on by
10 | # default for csharp files.
11 | # Note: This is only used by command line
12 | ###############################################################################
13 | #*.cs diff=csharp
14 |
15 | ###############################################################################
16 | # Set the merge driver for project and solution files
17 | #
18 | # Merging from the command prompt will add diff markers to the files if there
19 | # are conflicts (Merging from VS is not affected by the settings below, in VS
20 | # the diff markers are never inserted). Diff markers may cause the following
21 | # file extensions to fail to load in VS. An alternative would be to treat
22 | # these files as binary and thus will always conflict and require user
23 | # intervention with every merge. To do so, just uncomment the entries below
24 | ###############################################################################
25 | #*.sln merge=binary
26 | #*.csproj merge=binary
27 | #*.vbproj merge=binary
28 | #*.vcxproj merge=binary
29 | #*.vcproj merge=binary
30 | #*.dbproj merge=binary
31 | #*.fsproj merge=binary
32 | #*.lsproj merge=binary
33 | #*.wixproj merge=binary
34 | #*.modelproj merge=binary
35 | #*.sqlproj merge=binary
36 | #*.wwaproj merge=binary
37 |
38 | ###############################################################################
39 | # behavior for image files
40 | #
41 | # image files are treated as binary by default.
42 | ###############################################################################
43 | #*.jpg binary
44 | #*.png binary
45 | #*.gif binary
46 |
47 | ###############################################################################
48 | # diff behavior for common document formats
49 | #
50 | # Convert binary document formats to text before diffing them. This feature
51 | # is only available from the command line. Turn it on by uncommenting the
52 | # entries below.
53 | ###############################################################################
54 | #*.doc diff=astextplain
55 | #*.DOC diff=astextplain
56 | #*.docx diff=astextplain
57 | #*.DOCX diff=astextplain
58 | #*.dot diff=astextplain
59 | #*.DOT diff=astextplain
60 | #*.pdf diff=astextplain
61 | #*.PDF diff=astextplain
62 | #*.rtf diff=astextplain
63 | #*.RTF diff=astextplain
64 |
--------------------------------------------------------------------------------
/capaNegocio/capaNegocio.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {997CD380-2972-4A29-967E-24F7E7FE8421}
8 | Library
9 | Properties
10 | capaNegocio
11 | capaNegocio
12 | v4.8.1
13 | 512
14 | true
15 |
16 |
17 | true
18 | full
19 | false
20 | bin\Debug\
21 | DEBUG;TRACE
22 | prompt
23 | 4
24 |
25 |
26 | pdbonly
27 | true
28 | bin\Release\
29 | TRACE
30 | prompt
31 | 4
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 | {a3f2f806-e00b-4267-bb49-14a818fd5244}
51 | capaDatos
52 |
53 |
54 | {26720e12-b8a3-43a2-80e4-4be89c36e29b}
55 | capaEntidad
56 |
57 |
58 |
59 |
60 |
61 |
62 |
--------------------------------------------------------------------------------
/capaPresentacion/formSelecPaciente.cs:
--------------------------------------------------------------------------------
1 | using capaEntidad;
2 | using capaNegocio;
3 | using System;
4 | using System.Collections.Generic;
5 | using System.ComponentModel;
6 | using System.Data;
7 | using System.Drawing;
8 | using System.Linq;
9 | using System.Text;
10 | using System.Threading.Tasks;
11 | using System.Windows.Forms;
12 |
13 | namespace capaPresentacion
14 | {
15 | public partial class formSelecPaciente : Form
16 | {
17 | private static formSelecPaciente instancia;
18 |
19 | public formSelecPaciente()
20 | {
21 | InitializeComponent();
22 | dgvMostrarPaciente.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
23 | this.ControlBox = false;
24 | this.KeyPreview = true;
25 | }
26 |
27 | public static formSelecPaciente ObtenerInstancia()
28 | {
29 | if (instancia == null)
30 | {
31 | instancia = new formSelecPaciente();
32 | return instancia;
33 | }
34 |
35 | return instancia;
36 | }
37 |
38 | private void btnBuscarPaciente_Click(object sender, EventArgs e)
39 | {
40 | if (txtBuscarNombre.Text == string.Empty)
41 | {
42 | MessageBox.Show("Inserte un valor", "Advertencia", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
43 | txtBuscarNombre.Focus();
44 | return;
45 | }
46 |
47 | string valorBuscado = txtBuscarNombre.Text;
48 | pacienteCN pacienteCN = new pacienteCN();
49 | List pacientes = pacienteCN.buscarByNombre(valorBuscado);
50 |
51 | // Limpiar las columnas existentes
52 | dgvMostrarPaciente.Columns.Clear();
53 |
54 | // Agregar columnas personalizadas (ID y Nombre)
55 | dgvMostrarPaciente.Columns.Add("paciente_id", "ID");
56 | dgvMostrarPaciente.Columns.Add("nombre", "Nombre");
57 |
58 | // Vincular los datos a las columnas
59 | foreach (var paciente in pacientes)
60 | {
61 | dgvMostrarPaciente.Rows.Add(paciente.paciente_id, paciente.nombre);
62 | }
63 | }
64 |
65 |
66 | private void dgvMostrarPaciente_SelectionChanged(object sender, EventArgs e)
67 | {
68 | if (dgvMostrarPaciente.SelectedRows.Count > 0)
69 | {
70 | DataGridViewRow fila = dgvMostrarPaciente.SelectedRows[0];
71 |
72 | txtCodigo.Text = fila.Cells["paciente_id"].Value.ToString();
73 | txtNombre.Text = (string)fila.Cells["nombre"].Value;
74 | }
75 | }
76 |
77 | private void formSelecPaciente_KeyDown(object sender, KeyEventArgs e)
78 | {
79 | if (e.KeyCode == Keys.Escape)
80 | {
81 | this.Close();
82 | }
83 | }
84 | }
85 | }
86 |
--------------------------------------------------------------------------------
/capaPresentacion/formHistoriaClinica.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Data;
5 | using System.Drawing;
6 | using System.Linq;
7 | using System.Text;
8 | using System.Threading.Tasks;
9 | using System.Windows.Forms;
10 |
11 | namespace capaPresentacion
12 | {
13 | public partial class formHistoriaClinica : Form
14 | {
15 | private static formAgregarPaciente instancia;
16 | private static NotifyIcon notifyIcon;
17 |
18 | public formHistoriaClinica()
19 | {
20 | this.ControlBox = false;
21 | this.KeyPreview = true;
22 | InitializeComponent();
23 | }
24 |
25 | public static formAgregarPaciente ObtenerInstancia()
26 | {
27 | if (instancia == null)
28 | {
29 | instancia = new formAgregarPaciente();
30 | return instancia;
31 | }
32 |
33 | return instancia;
34 | }
35 |
36 | public static void ShowNotification(string message, string title)
37 | {
38 | if (notifyIcon == null)
39 | {
40 | notifyIcon = new NotifyIcon();
41 | notifyIcon.Icon = SystemIcons.Information;
42 | notifyIcon.Visible = true;
43 | }
44 | notifyIcon.ShowBalloonTip(3000, title, message, ToolTipIcon.Info);
45 | }
46 |
47 | public static new void Dispose()
48 | {
49 | if (notifyIcon != null)
50 | {
51 | notifyIcon.Dispose();
52 | }
53 | }
54 |
55 |
56 | private void formHistoriaClinica_KeyDown(object sender, KeyEventArgs e)
57 | {
58 | if (e.KeyCode == Keys.Escape)
59 | {
60 | this.Close();
61 | }
62 | }
63 |
64 | private void btnSeleccionarPaciente_Click(object sender, EventArgs e)
65 | {
66 | formSelecPaciente frm = new formSelecPaciente();
67 | frm.ShowDialog();
68 | txtCodigoPaciente.Text =frm.txtCodigo.Text;
69 | }
70 |
71 | private void btnRegistrarHistoria_Click(object sender, EventArgs e)
72 | {
73 | string codigo_paciente = txtCodigoPaciente.Text;
74 | string edad = txtEdad.Text;
75 | string peso = txtPeso.Text;
76 | string talla = txtTalla.Text;
77 | string frec_resp = txtFrecResp.Text;
78 | string frec_card = txtFrecCard.Text;
79 | string temperatura = txtTemperatura.Text;
80 | string pres_art = txtPresionArterial.Text;
81 | int tiempo = (int)numTiempo.Value;
82 | string signos_sintomas = richSignosSintomas.Text;
83 | string relato = txtRelato.Text;
84 | string examen_fisico = txtExamenFisico.Text;
85 | string antecedentes = richAntecedentes.Text;
86 | string diagnostico = txtDiagnostico.Text;
87 | string prescripcion_medica = richPresMedica.Text;
88 |
89 | }
90 | }
91 | }
92 |
--------------------------------------------------------------------------------
/capaPresentacion/ucCardReport.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace capaPresentacion
2 | {
3 | partial class ucCardReport
4 | {
5 | ///
6 | /// Variable del diseñador necesaria.
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// Limpiar los recursos que se estén usando.
12 | ///
13 | /// true si los recursos administrados se deben desechar; false en caso contrario.
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region Código generado por el Diseñador de componentes
24 |
25 | ///
26 | /// Método necesario para admitir el Diseñador. No se puede modificar
27 | /// el contenido de este método con el editor de código.
28 | ///
29 | private void InitializeComponent()
30 | {
31 | this.lblTitle = new System.Windows.Forms.Label();
32 | this.lblData = new System.Windows.Forms.Label();
33 | this.SuspendLayout();
34 | //
35 | // lblTitle
36 | //
37 | this.lblTitle.AutoSize = true;
38 | this.lblTitle.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
39 | this.lblTitle.Location = new System.Drawing.Point(17, 15);
40 | this.lblTitle.Name = "lblTitle";
41 | this.lblTitle.Size = new System.Drawing.Size(62, 13);
42 | this.lblTitle.TabIndex = 0;
43 | this.lblTitle.Text = "lorem ipsum";
44 | //
45 | // lblData
46 | //
47 | this.lblData.AutoSize = true;
48 | this.lblData.Font = new System.Drawing.Font("Segoe UI Semibold", 13F, System.Drawing.FontStyle.Bold);
49 | this.lblData.Location = new System.Drawing.Point(17, 38);
50 | this.lblData.Name = "lblData";
51 | this.lblData.Size = new System.Drawing.Size(22, 25);
52 | this.lblData.TabIndex = 1;
53 | this.lblData.Text = "0";
54 | //
55 | // ucCardReport
56 | //
57 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
58 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
59 | this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(244)))), ((int)(((byte)(248)))));
60 | this.Controls.Add(this.lblData);
61 | this.Controls.Add(this.lblTitle);
62 | this.Name = "ucCardReport";
63 | this.Size = new System.Drawing.Size(150, 74);
64 | this.ResumeLayout(false);
65 | this.PerformLayout();
66 |
67 | }
68 |
69 | #endregion
70 |
71 | public System.Windows.Forms.Label lblTitle;
72 | public System.Windows.Forms.Label lblData;
73 | }
74 | }
75 |
--------------------------------------------------------------------------------
/capaNegocio/pacienteCN.cs:
--------------------------------------------------------------------------------
1 | using capaDatos;
2 | using capaEntidad;
3 | using System;
4 | using System.Collections.Generic;
5 | using System.Linq;
6 | using System.Text;
7 | using System.Threading.Tasks;
8 |
9 | namespace capaNegocio
10 | {
11 | public class pacienteCN
12 | {
13 | public bool validarId(int id)
14 | {
15 | pacienteCD pacienteCD = new pacienteCD();
16 | bool validado = pacienteCD.validarId(id);
17 | return validado;
18 | }
19 | public pacienteCE buscarById(int idBuscado)
20 | {
21 | pacienteCD pacienteCD = new pacienteCD();
22 | pacienteCE pacienteCE = pacienteCD.buscarById(idBuscado);
23 | return pacienteCE;
24 | }
25 | public List buscarByNombre(string nombrePaciente)
26 | {
27 | pacienteCD pacienteCD = new pacienteCD();
28 | List pacienteCE = pacienteCD.buscarByNombre(nombrePaciente);
29 | return pacienteCE;
30 | }
31 | public int insertar(pacienteCE pacienteCE)
32 | {
33 | pacienteCD pacienteCD = new pacienteCD();
34 | int idNuevo = pacienteCD.insertar(pacienteCE);
35 | return idNuevo;
36 | }
37 | public bool actualizar(pacienteCE pacienteCE)
38 | {
39 | pacienteCD pacienteCD = new pacienteCD();
40 | bool estado = pacienteCD.actualizar(pacienteCE);
41 | return estado;
42 | }
43 | public bool eliminar(int idEliminar)
44 | {
45 | pacienteCD pacienteCD = new pacienteCD();
46 | bool estado = pacienteCD.eliminar(idEliminar);
47 | return estado;
48 | }
49 | public List mostrarPacientes()
50 | {
51 | pacienteCD pacienteCD = new pacienteCD();
52 | List pacientes = pacienteCD.LeerTodosLosPacientes();
53 | return pacientes;
54 | }
55 | public int mostrarCantidadPacientes()
56 | {
57 | pacienteCD paciente = new pacienteCD();
58 | int totalPacientes = paciente.mostrarCantidadPacientes();
59 | return totalPacientes;
60 | }
61 | public int mostrarCantidadHistorias()
62 | {
63 | pacienteCD paciente = new pacienteCD();
64 | int totalHistorias = paciente.mostrarCantidadHistorias();
65 | return totalHistorias;
66 | }
67 | public bool validarCampos(pacienteCE paciente)
68 | {
69 | bool result = false;
70 |
71 | if (paciente.nombre == string.Empty)
72 | {
73 | result = true;
74 | }
75 | else if (paciente.direccion == string.Empty)
76 | {
77 | result = true;
78 | }
79 | else if (paciente.DNI == 0)
80 | {
81 | result = true;
82 | }
83 | else if (paciente.telefono == string.Empty)
84 | {
85 | result = true;
86 | }
87 | else if (paciente.fecha_nacimiento == DateTime.MinValue)
88 | {
89 | result = true;
90 | }
91 |
92 | return result;
93 | }
94 | }
95 | }
96 |
--------------------------------------------------------------------------------
/capaPresentacion/formPrincipal.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Globalization;
4 | using System.Threading;
5 | using System.Windows.Forms;
6 | using capaEntidad;
7 | using capaNegocio;
8 |
9 | namespace capaPresentacion
10 | {
11 | public partial class formPrincipal : Form
12 | {
13 | pacienteCN paciente = new pacienteCN();
14 |
15 | public formPrincipal()
16 | {
17 | InitializeComponent();
18 | this.ControlBox = true;
19 | this.MaximizeBox = false;
20 | DateTime now = DateTime.Now;
21 | lblFecha.Text = ObtenerFechaFormateada(now);
22 | Thread thread = new Thread(ActualizarHora);
23 | thread.IsBackground = true;
24 | thread.Start();
25 | }
26 |
27 | private void btnShowPacienteForm_Click(object sender, EventArgs e)
28 | {
29 | formAgregarPaciente frm = new formAgregarPaciente();
30 | frm.FormClosed += (s, args) => loadPacientes();
31 | frm.ShowDialog();
32 | }
33 |
34 | private string ObtenerFechaFormateada(DateTime fecha)
35 | {
36 | CultureInfo culture = new CultureInfo("es-ES");
37 | string fechaFormateada = fecha.ToString("yyyy-MMMM-dd", culture);
38 | return fechaFormateada;
39 | }
40 |
41 | private void ActualizarHora()
42 | {
43 | while (true)
44 | {
45 | Thread.Sleep(1000);
46 | DateTime now = DateTime.Now;
47 | this.Invoke((MethodInvoker)delegate
48 | {
49 | lblFecha.Text = now.ToString("yyyy-MMMM-dd HH:mm:ss");
50 | });
51 | }
52 | }
53 |
54 | private void formPrincipal_FormClosing(object sender, FormClosingEventArgs e)
55 | {
56 | if (e.CloseReason == CloseReason.UserClosing)
57 | {
58 | DialogResult result = MessageBox.Show("¿Está seguro de que desea salir?", "Salir", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
59 | if (result == DialogResult.No)
60 | {
61 | e.Cancel = true;
62 | }
63 | }
64 | }
65 |
66 | private void btnMostrarFormHistoria_Click(object sender, EventArgs e)
67 | {
68 | formHistoriaClinica frm = new formHistoriaClinica();
69 | frm.FormClosed += (s, args) => loadConsultas();
70 | frm.ShowDialog();
71 | }
72 |
73 | private void loadPacientes()
74 | {
75 |
76 | int total = paciente.mostrarCantidadPacientes();
77 | ucCardPacientes.lblData.Text = total.ToString();
78 | }
79 |
80 | private void loadConsultas()
81 | {
82 | int total = paciente.mostrarCantidadHistorias();
83 | ucCardHistorias.lblData.Text = total.ToString();
84 | }
85 |
86 | private void formPrincipal_Load(object sender, EventArgs e)
87 | {
88 | loadPacientes();
89 | loadConsultas();
90 | }
91 |
92 | private void btnBuscarPaciente_Click(object sender, EventArgs e)
93 | {
94 | using (var formularioEmergente = new formBuscarPaciente())
95 | {
96 | formularioEmergente.Titulo = "asd";
97 | formularioEmergente.ShowDialog();
98 | }
99 | }
100 |
101 | private void btnMostrarPacientes_Click(object sender, EventArgs e)
102 | {
103 | using (var formPaciente = new formPaciente())
104 | {
105 | formPaciente.ShowDialog();
106 | }
107 | }
108 | }
109 | }
110 |
--------------------------------------------------------------------------------
/capaPresentacion/formAgregarPaciente.cs:
--------------------------------------------------------------------------------
1 | using capaEntidad;
2 | using capaNegocio;
3 | using System;
4 | using System.Drawing;
5 | using System.Windows.Forms;
6 |
7 | namespace capaPresentacion
8 | {
9 | public partial class formAgregarPaciente : Form
10 | {
11 | private static formAgregarPaciente instancia;
12 | private static NotifyIcon notifyIcon;
13 |
14 | public formAgregarPaciente()
15 | {
16 | InitializeComponent();
17 | this.KeyPreview = true;
18 | }
19 |
20 | public static formAgregarPaciente ObtenerInstancia()
21 | {
22 | if (instancia == null)
23 | {
24 | instancia = new formAgregarPaciente();
25 | return instancia;
26 | }
27 |
28 | return instancia;
29 | }
30 |
31 | private void btnLimpiarCampos_Click(object sender, EventArgs e)
32 | {
33 | limpiarCampos();
34 | }
35 | private void limpiarCampos()
36 | {
37 | txtNombrePaciente.Text = string.Empty;
38 | txtTelefonoPaciente.Text = string.Empty;
39 | txtDNI.Text = string.Empty;
40 | txtPapaPaciente.Text = string.Empty;
41 | txtMamaPaciente.Text = string.Empty;
42 | txtDireccionPaciente.Text = string.Empty;
43 | }
44 | private void btnRegistrarPaciente_Click(object sender, EventArgs e)
45 | {
46 | string nombre = txtNombrePaciente.Text;
47 | string direccion = txtDireccionPaciente.Text;
48 | string dniText = txtDNI.Text;
49 |
50 | if (dniText.Length != 8)
51 | {
52 | MessageBox.Show("El DNI debe tener exactamente 8 dígitos.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
53 | txtDNI.Focus();
54 | return;
55 | }
56 |
57 | int dni;
58 | if (!int.TryParse(dniText, out dni))
59 | {
60 | MessageBox.Show("El DNI debe ser un número entero válido.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
61 | txtDNI.Focus();
62 | return;
63 | }
64 |
65 | string telefono = txtTelefonoPaciente.Text;
66 | DateTime fechaNacimiento = dtFechaNacimientoPaciente.Value.Date;
67 | string mami = txtMamaPaciente.Text;
68 | string papa = txtPapaPaciente.Text;
69 |
70 | pacienteCE pacienteCE = new pacienteCE();
71 | pacienteCE.nombre = nombre;
72 | pacienteCE.direccion = direccion;
73 | pacienteCE.DNI = dni;
74 | pacienteCE.telefono = telefono;
75 | pacienteCE.direccion = direccion;
76 | pacienteCE.fecha_nacimiento= fechaNacimiento;
77 | pacienteCE.mami_nombre = mami;
78 | pacienteCE.papi_nombre = papa;
79 | pacienteCN pacienteCN = new pacienteCN();
80 |
81 | bool r = pacienteCN.validarCampos(pacienteCE);
82 |
83 | if (r == true)
84 | {
85 | MessageBox.Show("Los campos no pueden estar vacios", "Advertencia", MessageBoxButtons.OK, MessageBoxIcon.Warning);
86 | txtNombrePaciente.Focus();
87 | return;
88 | }
89 |
90 | pacienteCN.insertar(pacienteCE);
91 | ShowNotification("Agregado satisfactoriamente", "Nueva notificación");
92 | MessageBox.Show("Paciente " + pacienteCE.nombre + " Registrado");
93 | limpiarCampos();
94 | }
95 | public static void ShowNotification(string message, string title)
96 | {
97 | if (notifyIcon == null)
98 | {
99 | notifyIcon = new NotifyIcon();
100 | notifyIcon.Icon = SystemIcons.Information;
101 | notifyIcon.Visible = true;
102 | }
103 | notifyIcon.ShowBalloonTip(3000, title, message, ToolTipIcon.Info);
104 | }
105 | public static new void Dispose()
106 | {
107 | if (notifyIcon != null)
108 | {
109 | notifyIcon.Dispose();
110 | }
111 | }
112 | private void formPaciente_KeyDown(object sender, KeyEventArgs e)
113 | {
114 | if (e.KeyCode == Keys.Escape)
115 | {
116 | if (txtNombrePaciente.Text.Length > 0 || txtDireccionPaciente.Text.Length > 0 || txtDNI.Text.Length > 0 || txtDireccionPaciente.Text.Length > 0 || txtMamaPaciente.Text.Length > 0 || txtPapaPaciente.Text.Length > 0)
117 | {
118 | DialogResult result = MessageBox.Show("¿Estás seguro de que deseas salir?", "Confirmar salida", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
119 | if (result == DialogResult.Yes)
120 | {
121 | this.Close();
122 | }
123 | } else
124 | {
125 | this.Close();
126 | }
127 | }
128 | }
129 | }
130 | }
131 |
--------------------------------------------------------------------------------
/capaPresentacion/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Este código fue generado por una herramienta.
4 | // Versión de runtime:4.0.30319.42000
5 | //
6 | // Los cambios en este archivo podrían causar un comportamiento incorrecto y se perderán si
7 | // se vuelve a generar el código.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace capaPresentacion.Properties {
12 | using System;
13 |
14 |
15 | ///
16 | /// Clase de recurso fuertemente tipado, para buscar cadenas traducidas, etc.
17 | ///
18 | // StronglyTypedResourceBuilder generó automáticamente esta clase
19 | // a través de una herramienta como ResGen o Visual Studio.
20 | // Para agregar o quitar un miembro, edite el archivo .ResX y, a continuación, vuelva a ejecutar ResGen
21 | // con la opción /str o recompile su proyecto de VS.
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources {
26 |
27 | private static global::System.Resources.ResourceManager resourceMan;
28 |
29 | private static global::System.Globalization.CultureInfo resourceCulture;
30 |
31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 | internal Resources() {
33 | }
34 |
35 | ///
36 | /// Devuelve la instancia de ResourceManager almacenada en caché utilizada por esta clase.
37 | ///
38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 | internal static global::System.Resources.ResourceManager ResourceManager {
40 | get {
41 | if (object.ReferenceEquals(resourceMan, null)) {
42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("capaPresentacion.Properties.Resources", typeof(Resources).Assembly);
43 | resourceMan = temp;
44 | }
45 | return resourceMan;
46 | }
47 | }
48 |
49 | ///
50 | /// Reemplaza la propiedad CurrentUICulture del subproceso actual para todas las
51 | /// búsquedas de recursos mediante esta clase de recurso fuertemente tipado.
52 | ///
53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 | internal static global::System.Globalization.CultureInfo Culture {
55 | get {
56 | return resourceCulture;
57 | }
58 | set {
59 | resourceCulture = value;
60 | }
61 | }
62 |
63 | ///
64 | /// Busca un recurso adaptado de tipo System.Drawing.Bitmap.
65 | ///
66 | internal static System.Drawing.Bitmap buscar_paciente {
67 | get {
68 | object obj = ResourceManager.GetObject("buscar_paciente", resourceCulture);
69 | return ((System.Drawing.Bitmap)(obj));
70 | }
71 | }
72 |
73 | ///
74 | /// Busca un recurso adaptado de tipo System.Drawing.Bitmap.
75 | ///
76 | internal static System.Drawing.Bitmap Creciendo_Sanos_y_Felices_LOGO {
77 | get {
78 | object obj = ResourceManager.GetObject("Creciendo-Sanos-y-Felices-LOGO", resourceCulture);
79 | return ((System.Drawing.Bitmap)(obj));
80 | }
81 | }
82 |
83 | ///
84 | /// Busca un recurso adaptado de tipo System.Drawing.Bitmap.
85 | ///
86 | internal static System.Drawing.Bitmap historial {
87 | get {
88 | object obj = ResourceManager.GetObject("historial", resourceCulture);
89 | return ((System.Drawing.Bitmap)(obj));
90 | }
91 | }
92 |
93 | ///
94 | /// Busca un recurso adaptado de tipo System.Drawing.Bitmap.
95 | ///
96 | internal static System.Drawing.Bitmap inspection {
97 | get {
98 | object obj = ResourceManager.GetObject("inspection", resourceCulture);
99 | return ((System.Drawing.Bitmap)(obj));
100 | }
101 | }
102 |
103 | ///
104 | /// Busca un recurso adaptado de tipo System.Drawing.Bitmap.
105 | ///
106 | internal static System.Drawing.Bitmap pacientes {
107 | get {
108 | object obj = ResourceManager.GetObject("pacientes", resourceCulture);
109 | return ((System.Drawing.Bitmap)(obj));
110 | }
111 | }
112 | }
113 | }
114 |
--------------------------------------------------------------------------------
/capaPresentacion/formPaciente.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | text/microsoft-resx
110 |
111 |
112 | 2.0
113 |
114 |
115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
119 |
120 |
--------------------------------------------------------------------------------
/capaPresentacion/ucCardReport.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | text/microsoft-resx
110 |
111 |
112 | 2.0
113 |
114 |
115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
119 |
120 |
--------------------------------------------------------------------------------
/capaPresentacion/formBuscarPaciente.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | text/microsoft-resx
110 |
111 |
112 | 2.0
113 |
114 |
115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
119 |
120 |
--------------------------------------------------------------------------------
/capaPresentacion/formHistoriaClinica.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | text/microsoft-resx
110 |
111 |
112 | 2.0
113 |
114 |
115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
119 |
120 |
--------------------------------------------------------------------------------
/capaPresentacion/formSelecPaciente.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | text/microsoft-resx
110 |
111 |
112 | 2.0
113 |
114 |
115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
119 |
120 |
--------------------------------------------------------------------------------
/capaPresentacion/formPaciente.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace capaPresentacion
2 | {
3 | partial class formPaciente
4 | {
5 | ///
6 | /// Required designer variable.
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// Clean up any resources being used.
12 | ///
13 | /// true if managed resources should be disposed; otherwise, false.
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region Windows Form Designer generated code
24 |
25 | ///
26 | /// Required method for Designer support - do not modify
27 | /// the contents of this method with the code editor.
28 | ///
29 | private void InitializeComponent()
30 | {
31 | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
32 | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
33 | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
34 | this.dgvMostrarPacientes = new System.Windows.Forms.DataGridView();
35 | ((System.ComponentModel.ISupportInitialize)(this.dgvMostrarPacientes)).BeginInit();
36 | this.SuspendLayout();
37 | //
38 | // dgvMostrarPacientes
39 | //
40 | this.dgvMostrarPacientes.AllowUserToOrderColumns = true;
41 | this.dgvMostrarPacientes.AllowUserToResizeRows = false;
42 | dataGridViewCellStyle4.BackColor = System.Drawing.Color.White;
43 | dataGridViewCellStyle4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
44 | dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.ControlText;
45 | dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight;
46 | dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
47 | this.dgvMostrarPacientes.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle4;
48 | this.dgvMostrarPacientes.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
49 | this.dgvMostrarPacientes.BackgroundColor = System.Drawing.SystemColors.ButtonFace;
50 | this.dgvMostrarPacientes.BorderStyle = System.Windows.Forms.BorderStyle.None;
51 | this.dgvMostrarPacientes.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None;
52 | this.dgvMostrarPacientes.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None;
53 | dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
54 | dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Control;
55 | dataGridViewCellStyle5.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
56 | dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.WindowText;
57 | dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Control;
58 | dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
59 | dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
60 | this.dgvMostrarPacientes.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle5;
61 | this.dgvMostrarPacientes.ColumnHeadersHeight = 18;
62 | this.dgvMostrarPacientes.EnableHeadersVisualStyles = false;
63 | this.dgvMostrarPacientes.GridColor = System.Drawing.SystemColors.ButtonFace;
64 | this.dgvMostrarPacientes.Location = new System.Drawing.Point(12, 12);
65 | this.dgvMostrarPacientes.Name = "dgvMostrarPacientes";
66 | this.dgvMostrarPacientes.ReadOnly = true;
67 | this.dgvMostrarPacientes.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None;
68 | dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
69 | dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Window;
70 | dataGridViewCellStyle6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
71 | dataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.WindowText;
72 | dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Window;
73 | dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
74 | dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
75 | this.dgvMostrarPacientes.RowHeadersDefaultCellStyle = dataGridViewCellStyle6;
76 | this.dgvMostrarPacientes.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
77 | this.dgvMostrarPacientes.Size = new System.Drawing.Size(932, 498);
78 | this.dgvMostrarPacientes.TabIndex = 1;
79 | //
80 | // formPaciente
81 | //
82 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
83 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
84 | this.BackColor = System.Drawing.Color.White;
85 | this.ClientSize = new System.Drawing.Size(956, 522);
86 | this.Controls.Add(this.dgvMostrarPacientes);
87 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
88 | this.Name = "formPaciente";
89 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
90 | this.Text = "Pacientes - Mostrando todos los registros actuales";
91 | ((System.ComponentModel.ISupportInitialize)(this.dgvMostrarPacientes)).EndInit();
92 | this.ResumeLayout(false);
93 |
94 | }
95 |
96 | #endregion
97 |
98 | private System.Windows.Forms.DataGridView dgvMostrarPacientes;
99 | }
100 | }
--------------------------------------------------------------------------------
/capaDatos/capaDatos.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {A3F2F806-E00B-4267-BB49-14A818FD5244}
8 | Library
9 | Properties
10 | capaDatos
11 | capaDatos
12 | v4.8.1
13 | 512
14 | true
15 |
16 |
17 | true
18 | full
19 | false
20 | bin\Debug\
21 | DEBUG;TRACE
22 | prompt
23 | 4
24 |
25 |
26 | pdbonly
27 | true
28 | bin\Release\
29 | TRACE
30 | prompt
31 | 4
32 |
33 |
34 |
35 | ..\packages\BouncyCastle.Cryptography.2.3.0\lib\net461\BouncyCastle.Cryptography.dll
36 |
37 |
38 | ..\packages\Google.Protobuf.3.26.0\lib\net45\Google.Protobuf.dll
39 |
40 |
41 | ..\packages\K4os.Compression.LZ4.1.3.8\lib\net462\K4os.Compression.LZ4.dll
42 |
43 |
44 | ..\packages\K4os.Compression.LZ4.Streams.1.3.8\lib\net462\K4os.Compression.LZ4.Streams.dll
45 |
46 |
47 | ..\packages\K4os.Hash.xxHash.1.0.8\lib\net462\K4os.Hash.xxHash.dll
48 |
49 |
50 | ..\packages\Microsoft.Bcl.AsyncInterfaces.8.0.0\lib\net462\Microsoft.Bcl.AsyncInterfaces.dll
51 |
52 |
53 | ..\packages\MySql.Data.8.3.0\lib\net48\MySql.Data.dll
54 |
55 |
56 |
57 | ..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll
58 |
59 |
60 |
61 | ..\packages\System.Configuration.ConfigurationManager.8.0.0\lib\net462\System.Configuration.ConfigurationManager.dll
62 |
63 |
64 |
65 | ..\packages\System.Diagnostics.DiagnosticSource.8.0.0\lib\net462\System.Diagnostics.DiagnosticSource.dll
66 |
67 |
68 | ..\packages\System.IO.Pipelines.8.0.0\lib\net462\System.IO.Pipelines.dll
69 |
70 |
71 |
72 | ..\packages\System.Memory.4.5.5\lib\net461\System.Memory.dll
73 |
74 |
75 |
76 | ..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll
77 |
78 |
79 | ..\packages\System.Runtime.CompilerServices.Unsafe.6.0.0\lib\net461\System.Runtime.CompilerServices.Unsafe.dll
80 |
81 |
82 | ..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 | ..\packages\ZstdSharp.Port.0.7.6\lib\net462\ZstdSharp.dll
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 | {26720e12-b8a3-43a2-80e4-4be89c36e29b}
104 | capaEntidad
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
--------------------------------------------------------------------------------
/capaPresentacion/Properties/Resources.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | text/microsoft-resx
110 |
111 |
112 | 2.0
113 |
114 |
115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
119 |
120 |
121 |
122 | ..\Resources\buscar_paciente.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
123 |
124 |
125 | ..\Resources\historial.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
126 |
127 |
128 | ..\Resources\Creciendo-Sanos-y-Felices-LOGO.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
129 |
130 |
131 | ..\Resources\pacientes.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
132 |
133 |
134 | ..\Resources\inspection.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
135 |
136 |
--------------------------------------------------------------------------------
/capaPresentacion/formSelecPaciente.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace capaPresentacion
2 | {
3 | partial class formSelecPaciente
4 | {
5 | ///
6 | /// Required designer variable.
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// Clean up any resources being used.
12 | ///
13 | /// true if managed resources should be disposed; otherwise, false.
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region Windows Form Designer generated code
24 |
25 | ///
26 | /// Required method for Designer support - do not modify
27 | /// the contents of this method with the code editor.
28 | ///
29 | private void InitializeComponent()
30 | {
31 | this.txtCodigo = new System.Windows.Forms.TextBox();
32 | this.txtBuscarNombre = new System.Windows.Forms.TextBox();
33 | this.txtNombre = new System.Windows.Forms.TextBox();
34 | this.dgvMostrarPaciente = new System.Windows.Forms.DataGridView();
35 | this.label1 = new System.Windows.Forms.Label();
36 | this.label2 = new System.Windows.Forms.Label();
37 | this.label3 = new System.Windows.Forms.Label();
38 | this.label4 = new System.Windows.Forms.Label();
39 | this.btnBuscarPaciente = new System.Windows.Forms.Button();
40 | ((System.ComponentModel.ISupportInitialize)(this.dgvMostrarPaciente)).BeginInit();
41 | this.SuspendLayout();
42 | //
43 | // txtCodigo
44 | //
45 | this.txtCodigo.Enabled = false;
46 | this.txtCodigo.Location = new System.Drawing.Point(12, 45);
47 | this.txtCodigo.Name = "txtCodigo";
48 | this.txtCodigo.ReadOnly = true;
49 | this.txtCodigo.Size = new System.Drawing.Size(84, 20);
50 | this.txtCodigo.TabIndex = 2;
51 | //
52 | // txtBuscarNombre
53 | //
54 | this.txtBuscarNombre.Location = new System.Drawing.Point(12, 168);
55 | this.txtBuscarNombre.Name = "txtBuscarNombre";
56 | this.txtBuscarNombre.Size = new System.Drawing.Size(190, 20);
57 | this.txtBuscarNombre.TabIndex = 0;
58 | //
59 | // txtNombre
60 | //
61 | this.txtNombre.Enabled = false;
62 | this.txtNombre.Location = new System.Drawing.Point(12, 94);
63 | this.txtNombre.Name = "txtNombre";
64 | this.txtNombre.ReadOnly = true;
65 | this.txtNombre.Size = new System.Drawing.Size(190, 20);
66 | this.txtNombre.TabIndex = 1;
67 | //
68 | // dgvMostrarPaciente
69 | //
70 | this.dgvMostrarPaciente.AllowUserToOrderColumns = true;
71 | this.dgvMostrarPaciente.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
72 | this.dgvMostrarPaciente.Location = new System.Drawing.Point(12, 194);
73 | this.dgvMostrarPaciente.Name = "dgvMostrarPaciente";
74 | this.dgvMostrarPaciente.Size = new System.Drawing.Size(298, 121);
75 | this.dgvMostrarPaciente.TabIndex = 4;
76 | this.dgvMostrarPaciente.SelectionChanged += new System.EventHandler(this.dgvMostrarPaciente_SelectionChanged);
77 | //
78 | // label1
79 | //
80 | this.label1.AutoSize = true;
81 | this.label1.Location = new System.Drawing.Point(9, 29);
82 | this.label1.Name = "label1";
83 | this.label1.Size = new System.Drawing.Size(87, 13);
84 | this.label1.TabIndex = 5;
85 | this.label1.Text = "Codigo paciente:";
86 | //
87 | // label2
88 | //
89 | this.label2.AutoSize = true;
90 | this.label2.Location = new System.Drawing.Point(9, 78);
91 | this.label2.Name = "label2";
92 | this.label2.Size = new System.Drawing.Size(91, 13);
93 | this.label2.TabIndex = 6;
94 | this.label2.Text = "Nombre paciente:";
95 | //
96 | // label3
97 | //
98 | this.label3.AutoSize = true;
99 | this.label3.Location = new System.Drawing.Point(9, 125);
100 | this.label3.Name = "label3";
101 | this.label3.Size = new System.Drawing.Size(307, 13);
102 | this.label3.TabIndex = 7;
103 | this.label3.Text = "................................................................................." +
104 | "...................";
105 | //
106 | // label4
107 | //
108 | this.label4.AutoSize = true;
109 | this.label4.Location = new System.Drawing.Point(12, 152);
110 | this.label4.Name = "label4";
111 | this.label4.Size = new System.Drawing.Size(135, 13);
112 | this.label4.TabIndex = 8;
113 | this.label4.Text = "Inserta el nombre a buscar:";
114 | //
115 | // btnBuscarPaciente
116 | //
117 | this.btnBuscarPaciente.Location = new System.Drawing.Point(208, 166);
118 | this.btnBuscarPaciente.Name = "btnBuscarPaciente";
119 | this.btnBuscarPaciente.Size = new System.Drawing.Size(102, 23);
120 | this.btnBuscarPaciente.TabIndex = 9;
121 | this.btnBuscarPaciente.Text = "Buscar paciente";
122 | this.btnBuscarPaciente.UseVisualStyleBackColor = true;
123 | this.btnBuscarPaciente.Click += new System.EventHandler(this.btnBuscarPaciente_Click);
124 | //
125 | // formSelecPaciente
126 | //
127 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
128 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
129 | this.ClientSize = new System.Drawing.Size(322, 327);
130 | this.Controls.Add(this.btnBuscarPaciente);
131 | this.Controls.Add(this.label4);
132 | this.Controls.Add(this.label3);
133 | this.Controls.Add(this.label2);
134 | this.Controls.Add(this.label1);
135 | this.Controls.Add(this.dgvMostrarPaciente);
136 | this.Controls.Add(this.txtNombre);
137 | this.Controls.Add(this.txtBuscarNombre);
138 | this.Controls.Add(this.txtCodigo);
139 | this.Name = "formSelecPaciente";
140 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
141 | this.Text = "Seleccionar paciente";
142 | this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.formSelecPaciente_KeyDown);
143 | ((System.ComponentModel.ISupportInitialize)(this.dgvMostrarPaciente)).EndInit();
144 | this.ResumeLayout(false);
145 | this.PerformLayout();
146 |
147 | }
148 |
149 | #endregion
150 | private System.Windows.Forms.TextBox txtBuscarNombre;
151 | private System.Windows.Forms.TextBox txtNombre;
152 | private System.Windows.Forms.DataGridView dgvMostrarPaciente;
153 | private System.Windows.Forms.Label label1;
154 | private System.Windows.Forms.Label label2;
155 | private System.Windows.Forms.Label label3;
156 | private System.Windows.Forms.Label label4;
157 | private System.Windows.Forms.Button btnBuscarPaciente;
158 | public System.Windows.Forms.TextBox txtCodigo;
159 | }
160 | }
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 | ##
4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
5 |
6 | # User-specific files
7 | *.rsuser
8 | *.suo
9 | *.user
10 | *.userosscache
11 | *.sln.docstates
12 |
13 | # User-specific files (MonoDevelop/Xamarin Studio)
14 | *.userprefs
15 |
16 | # Mono auto generated files
17 | mono_crash.*
18 |
19 | # Build results
20 | [Dd]ebug/
21 | [Dd]ebugPublic/
22 | [Rr]elease/
23 | [Rr]eleases/
24 | x64/
25 | x86/
26 | [Ww][Ii][Nn]32/
27 | [Aa][Rr][Mm]/
28 | [Aa][Rr][Mm]64/
29 | bld/
30 | [Bb]in/
31 | [Oo]bj/
32 | [Oo]ut/
33 | [Ll]og/
34 | [Ll]ogs/
35 |
36 | # Visual Studio 2015/2017 cache/options directory
37 | .vs/
38 | # Uncomment if you have tasks that create the project's static files in wwwroot
39 | #wwwroot/
40 |
41 | # Visual Studio 2017 auto generated files
42 | Generated\ Files/
43 |
44 | # MSTest test Results
45 | [Tt]est[Rr]esult*/
46 | [Bb]uild[Ll]og.*
47 |
48 | # NUnit
49 | *.VisualState.xml
50 | TestResult.xml
51 | nunit-*.xml
52 |
53 | # Build Results of an ATL Project
54 | [Dd]ebugPS/
55 | [Rr]eleasePS/
56 | dlldata.c
57 |
58 | # Benchmark Results
59 | BenchmarkDotNet.Artifacts/
60 |
61 | # .NET Core
62 | project.lock.json
63 | project.fragment.lock.json
64 | artifacts/
65 |
66 | # ASP.NET Scaffolding
67 | ScaffoldingReadMe.txt
68 |
69 | # StyleCop
70 | StyleCopReport.xml
71 |
72 | # Files built by Visual Studio
73 | *_i.c
74 | *_p.c
75 | *_h.h
76 | *.ilk
77 | *.meta
78 | *.obj
79 | *.iobj
80 | *.pch
81 | *.pdb
82 | *.ipdb
83 | *.pgc
84 | *.pgd
85 | *.rsp
86 | *.sbr
87 | *.tlb
88 | *.tli
89 | *.tlh
90 | *.tmp
91 | *.tmp_proj
92 | *_wpftmp.csproj
93 | *.log
94 | *.vspscc
95 | *.vssscc
96 | .builds
97 | *.pidb
98 | *.svclog
99 | *.scc
100 |
101 | # Chutzpah Test files
102 | _Chutzpah*
103 |
104 | # Visual C++ cache files
105 | ipch/
106 | *.aps
107 | *.ncb
108 | *.opendb
109 | *.opensdf
110 | *.sdf
111 | *.cachefile
112 | *.VC.db
113 | *.VC.VC.opendb
114 |
115 | # Visual Studio profiler
116 | *.psess
117 | *.vsp
118 | *.vspx
119 | *.sap
120 |
121 | # Visual Studio Trace Files
122 | *.e2e
123 |
124 | # TFS 2012 Local Workspace
125 | $tf/
126 |
127 | # Guidance Automation Toolkit
128 | *.gpState
129 |
130 | # ReSharper is a .NET coding add-in
131 | _ReSharper*/
132 | *.[Rr]e[Ss]harper
133 | *.DotSettings.user
134 |
135 | # TeamCity is a build add-in
136 | _TeamCity*
137 |
138 | # DotCover is a Code Coverage Tool
139 | *.dotCover
140 |
141 | # AxoCover is a Code Coverage Tool
142 | .axoCover/*
143 | !.axoCover/settings.json
144 |
145 | # Coverlet is a free, cross platform Code Coverage Tool
146 | coverage*.json
147 | coverage*.xml
148 | coverage*.info
149 |
150 | # Visual Studio code coverage results
151 | *.coverage
152 | *.coveragexml
153 |
154 | # NCrunch
155 | _NCrunch_*
156 | .*crunch*.local.xml
157 | nCrunchTemp_*
158 |
159 | # MightyMoose
160 | *.mm.*
161 | AutoTest.Net/
162 |
163 | # Web workbench (sass)
164 | .sass-cache/
165 |
166 | # Installshield output folder
167 | [Ee]xpress/
168 |
169 | # DocProject is a documentation generator add-in
170 | DocProject/buildhelp/
171 | DocProject/Help/*.HxT
172 | DocProject/Help/*.HxC
173 | DocProject/Help/*.hhc
174 | DocProject/Help/*.hhk
175 | DocProject/Help/*.hhp
176 | DocProject/Help/Html2
177 | DocProject/Help/html
178 |
179 | # Click-Once directory
180 | publish/
181 |
182 | # Publish Web Output
183 | *.[Pp]ublish.xml
184 | *.azurePubxml
185 | # Note: Comment the next line if you want to checkin your web deploy settings,
186 | # but database connection strings (with potential passwords) will be unencrypted
187 | *.pubxml
188 | *.publishproj
189 |
190 | # Microsoft Azure Web App publish settings. Comment the next line if you want to
191 | # checkin your Azure Web App publish settings, but sensitive information contained
192 | # in these scripts will be unencrypted
193 | PublishScripts/
194 |
195 | # NuGet Packages
196 | *.nupkg
197 | # NuGet Symbol Packages
198 | *.snupkg
199 | # The packages folder can be ignored because of Package Restore
200 | **/[Pp]ackages/*
201 | # except build/, which is used as an MSBuild target.
202 | !**/[Pp]ackages/build/
203 | # Uncomment if necessary however generally it will be regenerated when needed
204 | #!**/[Pp]ackages/repositories.config
205 | # NuGet v3's project.json files produces more ignorable files
206 | *.nuget.props
207 | *.nuget.targets
208 |
209 | # Microsoft Azure Build Output
210 | csx/
211 | *.build.csdef
212 |
213 | # Microsoft Azure Emulator
214 | ecf/
215 | rcf/
216 |
217 | # Windows Store app package directories and files
218 | AppPackages/
219 | BundleArtifacts/
220 | Package.StoreAssociation.xml
221 | _pkginfo.txt
222 | *.appx
223 | *.appxbundle
224 | *.appxupload
225 |
226 | # Visual Studio cache files
227 | # files ending in .cache can be ignored
228 | *.[Cc]ache
229 | # but keep track of directories ending in .cache
230 | !?*.[Cc]ache/
231 |
232 | # Others
233 | ClientBin/
234 | ~$*
235 | *~
236 | *.dbmdl
237 | *.dbproj.schemaview
238 | *.jfm
239 | *.pfx
240 | *.publishsettings
241 | orleans.codegen.cs
242 |
243 | # Including strong name files can present a security risk
244 | # (https://github.com/github/gitignore/pull/2483#issue-259490424)
245 | #*.snk
246 |
247 | # Since there are multiple workflows, uncomment next line to ignore bower_components
248 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
249 | #bower_components/
250 |
251 | # RIA/Silverlight projects
252 | Generated_Code/
253 |
254 | # Backup & report files from converting an old project file
255 | # to a newer Visual Studio version. Backup files are not needed,
256 | # because we have git ;-)
257 | _UpgradeReport_Files/
258 | Backup*/
259 | UpgradeLog*.XML
260 | UpgradeLog*.htm
261 | ServiceFabricBackup/
262 | *.rptproj.bak
263 |
264 | # SQL Server files
265 | *.mdf
266 | *.ldf
267 | *.ndf
268 |
269 | # Business Intelligence projects
270 | *.rdl.data
271 | *.bim.layout
272 | *.bim_*.settings
273 | *.rptproj.rsuser
274 | *- [Bb]ackup.rdl
275 | *- [Bb]ackup ([0-9]).rdl
276 | *- [Bb]ackup ([0-9][0-9]).rdl
277 |
278 | # Microsoft Fakes
279 | FakesAssemblies/
280 |
281 | # GhostDoc plugin setting file
282 | *.GhostDoc.xml
283 |
284 | # Node.js Tools for Visual Studio
285 | .ntvs_analysis.dat
286 | node_modules/
287 |
288 | # Visual Studio 6 build log
289 | *.plg
290 |
291 | # Visual Studio 6 workspace options file
292 | *.opt
293 |
294 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
295 | *.vbw
296 |
297 | # Visual Studio LightSwitch build output
298 | **/*.HTMLClient/GeneratedArtifacts
299 | **/*.DesktopClient/GeneratedArtifacts
300 | **/*.DesktopClient/ModelManifest.xml
301 | **/*.Server/GeneratedArtifacts
302 | **/*.Server/ModelManifest.xml
303 | _Pvt_Extensions
304 |
305 | # Paket dependency manager
306 | .paket/paket.exe
307 | paket-files/
308 |
309 | # FAKE - F# Make
310 | .fake/
311 |
312 | # CodeRush personal settings
313 | .cr/personal
314 |
315 | # Python Tools for Visual Studio (PTVS)
316 | __pycache__/
317 | *.pyc
318 |
319 | # Cake - Uncomment if you are using it
320 | # tools/**
321 | # !tools/packages.config
322 |
323 | # Tabs Studio
324 | *.tss
325 |
326 | # Telerik's JustMock configuration file
327 | *.jmconfig
328 |
329 | # BizTalk build output
330 | *.btp.cs
331 | *.btm.cs
332 | *.odx.cs
333 | *.xsd.cs
334 |
335 | # OpenCover UI analysis results
336 | OpenCover/
337 |
338 | # Azure Stream Analytics local run output
339 | ASALocalRun/
340 |
341 | # MSBuild Binary and Structured Log
342 | *.binlog
343 |
344 | # NVidia Nsight GPU debugger configuration file
345 | *.nvuser
346 |
347 | # MFractors (Xamarin productivity tool) working folder
348 | .mfractor/
349 |
350 | # Local History for Visual Studio
351 | .localhistory/
352 |
353 | # BeatPulse healthcheck temp database
354 | healthchecksdb
355 |
356 | # Backup folder for Package Reference Convert tool in Visual Studio 2017
357 | MigrationBackup/
358 |
359 | # Ionide (cross platform F# VS Code tools) working folder
360 | .ionide/
361 |
362 | # Fody - auto-generated XML schema
363 | FodyWeavers.xsd
--------------------------------------------------------------------------------
/capaPresentacion/capaPresentacion.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {E02E84F7-2BC9-4683-974F-83D1FA061D1F}
8 | WinExe
9 | capaPresentacion
10 | capaPresentacion
11 | v4.8.1
12 | 512
13 | true
14 | true
15 |
16 |
17 | AnyCPU
18 | true
19 | full
20 | false
21 | bin\Debug\
22 | DEBUG;TRACE
23 | prompt
24 | 4
25 |
26 |
27 | AnyCPU
28 | pdbonly
29 | true
30 | bin\Release\
31 | TRACE
32 | prompt
33 | 4
34 |
35 |
36 |
37 | ..\packages\Guna.Charts.WinForms.1.0.9\lib\net48\Guna.Charts.WinForms.dll
38 |
39 |
40 | ..\packages\Guna.UI2.WinForms.2.0.4.6\lib\net48\Guna.UI2.dll
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 | Form
60 |
61 |
62 | formBuscarPaciente.cs
63 |
64 |
65 | Form
66 |
67 |
68 | formHistoriaClinica.cs
69 |
70 |
71 | Form
72 |
73 |
74 | formAgregarPaciente.cs
75 |
76 |
77 | Form
78 |
79 |
80 | formPaciente.cs
81 |
82 |
83 | Form
84 |
85 |
86 | formPrincipal.cs
87 |
88 |
89 | Form
90 |
91 |
92 | formSelecPaciente.cs
93 |
94 |
95 |
96 |
97 | UserControl
98 |
99 |
100 | ucCardReport.cs
101 |
102 |
103 | formBuscarPaciente.cs
104 |
105 |
106 | formHistoriaClinica.cs
107 |
108 |
109 | formAgregarPaciente.cs
110 |
111 |
112 | formAgregarPaciente.cs
113 |
114 |
115 | formPaciente.cs
116 |
117 |
118 | formPrincipal.cs
119 |
120 |
121 | formSelecPaciente.cs
122 |
123 |
124 | ResXFileCodeGenerator
125 | Designer
126 | Resources.Designer.cs
127 |
128 |
129 | ucCardReport.cs
130 |
131 |
132 |
133 | SettingsSingleFileGenerator
134 | Settings.Designer.cs
135 |
136 |
137 | True
138 | True
139 | Resources.resx
140 |
141 |
142 | True
143 | Settings.settings
144 | True
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 | {26720e12-b8a3-43a2-80e4-4be89c36e29b}
153 | capaEntidad
154 |
155 |
156 | {997cd380-2972-4a29-967e-24f7e7fe8421}
157 | capaNegocio
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
--------------------------------------------------------------------------------
/capaPresentacion/formAgregarPaciente.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace capaPresentacion
2 | {
3 | partial class formAgregarPaciente
4 | {
5 | ///
6 | /// Variable del diseñador necesaria.
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// Limpiar los recursos que se estén usando.
12 | ///
13 | /// true si los recursos administrados se deben desechar; false en caso contrario.
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region Código generado por el Diseñador de Windows Forms
24 |
25 | ///
26 | /// Método necesario para admitir el Diseñador. No se puede modificar
27 | /// el contenido de este método con el editor de código.
28 | ///
29 | private void InitializeComponent()
30 | {
31 | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(formAgregarPaciente));
32 | this.label1 = new System.Windows.Forms.Label();
33 | this.txtNombrePaciente = new System.Windows.Forms.TextBox();
34 | this.label3 = new System.Windows.Forms.Label();
35 | this.txtDireccionPaciente = new System.Windows.Forms.TextBox();
36 | this.txtTelefonoPaciente = new System.Windows.Forms.TextBox();
37 | this.label4 = new System.Windows.Forms.Label();
38 | this.label5 = new System.Windows.Forms.Label();
39 | this.dtFechaNacimientoPaciente = new System.Windows.Forms.DateTimePicker();
40 | this.label6 = new System.Windows.Forms.Label();
41 | this.txtMamaPaciente = new System.Windows.Forms.TextBox();
42 | this.label7 = new System.Windows.Forms.Label();
43 | this.txtPapaPaciente = new System.Windows.Forms.TextBox();
44 | this.btnRegistrarPaciente = new System.Windows.Forms.Button();
45 | this.btnLimpiarCampos = new System.Windows.Forms.Button();
46 | this.txtDNI = new System.Windows.Forms.TextBox();
47 | this.label2 = new System.Windows.Forms.Label();
48 | this.label8 = new System.Windows.Forms.Label();
49 | this.SuspendLayout();
50 | //
51 | // label1
52 | //
53 | resources.ApplyResources(this.label1, "label1");
54 | this.label1.ForeColor = System.Drawing.Color.Black;
55 | this.label1.Name = "label1";
56 | //
57 | // txtNombrePaciente
58 | //
59 | resources.ApplyResources(this.txtNombrePaciente, "txtNombrePaciente");
60 | this.txtNombrePaciente.Name = "txtNombrePaciente";
61 | //
62 | // label3
63 | //
64 | resources.ApplyResources(this.label3, "label3");
65 | this.label3.ForeColor = System.Drawing.Color.Black;
66 | this.label3.Name = "label3";
67 | //
68 | // txtDireccionPaciente
69 | //
70 | resources.ApplyResources(this.txtDireccionPaciente, "txtDireccionPaciente");
71 | this.txtDireccionPaciente.Name = "txtDireccionPaciente";
72 | //
73 | // txtTelefonoPaciente
74 | //
75 | resources.ApplyResources(this.txtTelefonoPaciente, "txtTelefonoPaciente");
76 | this.txtTelefonoPaciente.Name = "txtTelefonoPaciente";
77 | //
78 | // label4
79 | //
80 | resources.ApplyResources(this.label4, "label4");
81 | this.label4.ForeColor = System.Drawing.Color.Black;
82 | this.label4.Name = "label4";
83 | //
84 | // label5
85 | //
86 | resources.ApplyResources(this.label5, "label5");
87 | this.label5.ForeColor = System.Drawing.Color.Black;
88 | this.label5.Name = "label5";
89 | //
90 | // dtFechaNacimientoPaciente
91 | //
92 | this.dtFechaNacimientoPaciente.Format = System.Windows.Forms.DateTimePickerFormat.Short;
93 | resources.ApplyResources(this.dtFechaNacimientoPaciente, "dtFechaNacimientoPaciente");
94 | this.dtFechaNacimientoPaciente.Name = "dtFechaNacimientoPaciente";
95 | //
96 | // label6
97 | //
98 | resources.ApplyResources(this.label6, "label6");
99 | this.label6.ForeColor = System.Drawing.Color.Black;
100 | this.label6.Name = "label6";
101 | //
102 | // txtMamaPaciente
103 | //
104 | resources.ApplyResources(this.txtMamaPaciente, "txtMamaPaciente");
105 | this.txtMamaPaciente.Name = "txtMamaPaciente";
106 | //
107 | // label7
108 | //
109 | resources.ApplyResources(this.label7, "label7");
110 | this.label7.ForeColor = System.Drawing.Color.Black;
111 | this.label7.Name = "label7";
112 | //
113 | // txtPapaPaciente
114 | //
115 | resources.ApplyResources(this.txtPapaPaciente, "txtPapaPaciente");
116 | this.txtPapaPaciente.Name = "txtPapaPaciente";
117 | //
118 | // btnRegistrarPaciente
119 | //
120 | this.btnRegistrarPaciente.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(39)))), ((int)(((byte)(174)))), ((int)(((byte)(96)))));
121 | this.btnRegistrarPaciente.FlatAppearance.BorderColor = System.Drawing.Color.Red;
122 | this.btnRegistrarPaciente.FlatAppearance.BorderSize = 0;
123 | resources.ApplyResources(this.btnRegistrarPaciente, "btnRegistrarPaciente");
124 | this.btnRegistrarPaciente.ForeColor = System.Drawing.Color.White;
125 | this.btnRegistrarPaciente.Name = "btnRegistrarPaciente";
126 | this.btnRegistrarPaciente.UseVisualStyleBackColor = false;
127 | this.btnRegistrarPaciente.Click += new System.EventHandler(this.btnRegistrarPaciente_Click);
128 | //
129 | // btnLimpiarCampos
130 | //
131 | this.btnLimpiarCampos.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(230)))), ((int)(((byte)(233)))));
132 | this.btnLimpiarCampos.FlatAppearance.BorderSize = 0;
133 | resources.ApplyResources(this.btnLimpiarCampos, "btnLimpiarCampos");
134 | this.btnLimpiarCampos.ForeColor = System.Drawing.Color.Black;
135 | this.btnLimpiarCampos.Name = "btnLimpiarCampos";
136 | this.btnLimpiarCampos.UseVisualStyleBackColor = false;
137 | this.btnLimpiarCampos.Click += new System.EventHandler(this.btnLimpiarCampos_Click);
138 | //
139 | // txtDNI
140 | //
141 | resources.ApplyResources(this.txtDNI, "txtDNI");
142 | this.txtDNI.Name = "txtDNI";
143 | //
144 | // label2
145 | //
146 | resources.ApplyResources(this.label2, "label2");
147 | this.label2.ForeColor = System.Drawing.Color.Black;
148 | this.label2.Name = "label2";
149 | //
150 | // label8
151 | //
152 | resources.ApplyResources(this.label8, "label8");
153 | this.label8.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(52)))), ((int)(((byte)(54)))));
154 | this.label8.Name = "label8";
155 | //
156 | // formAgregarPaciente
157 | //
158 | resources.ApplyResources(this, "$this");
159 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
160 | this.BackColor = System.Drawing.Color.White;
161 | this.Controls.Add(this.label8);
162 | this.Controls.Add(this.label2);
163 | this.Controls.Add(this.txtDNI);
164 | this.Controls.Add(this.btnLimpiarCampos);
165 | this.Controls.Add(this.btnRegistrarPaciente);
166 | this.Controls.Add(this.txtPapaPaciente);
167 | this.Controls.Add(this.label7);
168 | this.Controls.Add(this.txtMamaPaciente);
169 | this.Controls.Add(this.label6);
170 | this.Controls.Add(this.dtFechaNacimientoPaciente);
171 | this.Controls.Add(this.label5);
172 | this.Controls.Add(this.txtTelefonoPaciente);
173 | this.Controls.Add(this.label4);
174 | this.Controls.Add(this.txtDireccionPaciente);
175 | this.Controls.Add(this.label3);
176 | this.Controls.Add(this.txtNombrePaciente);
177 | this.Controls.Add(this.label1);
178 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
179 | this.MaximizeBox = false;
180 | this.Name = "formAgregarPaciente";
181 | this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.formPaciente_KeyDown);
182 | this.ResumeLayout(false);
183 | this.PerformLayout();
184 |
185 | }
186 |
187 | #endregion
188 | private System.Windows.Forms.Label label1;
189 | private System.Windows.Forms.TextBox txtNombrePaciente;
190 | private System.Windows.Forms.Label label3;
191 | private System.Windows.Forms.TextBox txtDireccionPaciente;
192 | private System.Windows.Forms.TextBox txtTelefonoPaciente;
193 | private System.Windows.Forms.Label label4;
194 | private System.Windows.Forms.DateTimePicker dtFechaNacimientoPaciente;
195 | private System.Windows.Forms.Label label6;
196 | private System.Windows.Forms.TextBox txtMamaPaciente;
197 | private System.Windows.Forms.Label label7;
198 | private System.Windows.Forms.TextBox txtPapaPaciente;
199 | private System.Windows.Forms.Button btnRegistrarPaciente;
200 | private System.Windows.Forms.Button btnLimpiarCampos;
201 | public System.Windows.Forms.Label label5;
202 | private System.Windows.Forms.TextBox txtDNI;
203 | private System.Windows.Forms.Label label2;
204 | private System.Windows.Forms.Label label8;
205 | }
206 | }
207 |
208 |
--------------------------------------------------------------------------------
/capaDatos/pacienteCD.cs:
--------------------------------------------------------------------------------
1 |
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Data;
5 | using System.Data.SqlClient;
6 | using capaEntidad;
7 | using MySql.Data.MySqlClient;
8 |
9 | namespace capaDatos
10 | {
11 | public class pacienteCD
12 | {
13 | public bool validarId(int paciente_id)
14 | {
15 | MySqlConnection cnx = conexionCD.cnx();
16 | cnx.Open();
17 |
18 | MySqlCommand cmd = cnx.CreateCommand();
19 | cmd.CommandType = CommandType.Text;
20 | cmd.CommandText = "select count(*) from pacientes where paciente_id = @paciente_id;";
21 | cmd.Parameters.AddWithValue("@paciente_id", paciente_id);
22 |
23 | int count = (int)cmd.ExecuteScalar();
24 |
25 | if (count > 0)
26 | {
27 | return true;
28 | }
29 | else
30 | {
31 | return false;
32 | }
33 | }
34 |
35 | public pacienteCE buscarById(int idBuscado)
36 | {
37 | MySqlConnection cnx = conexionCD.cnx();
38 | cnx.Open();
39 |
40 | MySqlCommand cmd = cnx.CreateCommand();
41 | cmd.CommandType = CommandType.Text;
42 | cmd.CommandText = "select * from pacientes where paciente_id=@paciente_id;";
43 | cmd.Parameters.AddWithValue("@paciente_id", idBuscado);
44 |
45 | MySqlDataReader dr = cmd.ExecuteReader();
46 | bool exiteFila = dr.Read();
47 |
48 | pacienteCE paciente = new pacienteCE();
49 |
50 | if (exiteFila)
51 | {
52 | paciente.paciente_id = (int)dr["paciente_id"];
53 | paciente.nombre = (string)dr["nombre"];
54 | paciente.direccion = (string)dr["direccion"];
55 | paciente.telefono = (string)dr["telefono"];
56 | paciente.fecha_nacimiento = (DateTime)dr["fecha_nacimiento"];
57 | paciente.mami_nombre = (string)dr["mami_nombre"];
58 | paciente.papi_nombre = (string)dr["papi_nombre"];
59 | }
60 | else
61 | {
62 | paciente.paciente_id = 0;
63 | paciente.nombre = "Sin registrar";
64 | paciente.direccion = "sin valor";
65 | paciente.telefono = "000-000-000";
66 | paciente.fecha_nacimiento = DateTime.MinValue;
67 | paciente.mami_nombre = "sin valor";
68 | paciente.papi_nombre = "sin valor";
69 | }
70 | cnx.Close();
71 | return paciente;
72 | }
73 |
74 | public List buscarByNombre(string nombrePaciente)
75 | {
76 | List pacienteCE = new List();
77 | MySqlConnection cnx = conexionCD.cnx();
78 |
79 | try
80 | {
81 | cnx.Open();
82 | MySqlCommand cmd = cnx.CreateCommand();
83 | cmd.CommandType = CommandType.Text;
84 | cmd.CommandText = "select * from pacientes where nombre like @nombre;";
85 | cmd.Parameters.AddWithValue("@nombre", "%" + nombrePaciente + "%");
86 |
87 | using (MySqlDataReader dr = cmd.ExecuteReader())
88 | {
89 | while (dr.Read())
90 | {
91 | int paciente_id = Convert.ToInt32(dr["paciente_id"]);
92 | string nombre = (string)dr["nombre"];
93 | string direccion = (string)dr["direccion"];
94 | string telefono = (string)dr["telefono"];
95 | DateTime fecha_nacimiento = (DateTime)dr["fecha_nacimiento"];
96 | string mami_nombre = (string)dr["mami_nombre"];
97 | string papi_nombre = (string)dr["papi_nombre"];
98 |
99 | pacienteCE paciente = new pacienteCE();
100 | paciente.paciente_id = paciente_id;
101 | paciente.nombre = nombre;
102 | paciente.direccion = direccion;
103 | paciente.telefono = telefono;
104 | paciente.fecha_nacimiento = fecha_nacimiento;
105 | paciente.mami_nombre = mami_nombre;
106 | paciente.papi_nombre = papi_nombre;
107 |
108 | pacienteCE.Add(paciente);
109 | }
110 | }
111 | }
112 | catch (Exception ex)
113 | {
114 | Console.WriteLine("Error: " + ex.Message);
115 | }
116 | finally
117 | {
118 | cnx.Close();
119 | }
120 | return pacienteCE;
121 | }
122 |
123 | public int insertar(pacienteCE paciente)
124 | {
125 | MySqlConnection cnx = conexionCD.cnx();
126 | cnx.Open();
127 |
128 | MySqlCommand cmd = cnx.CreateCommand();
129 | cmd.CommandType = CommandType.Text;
130 | cmd.CommandText = "insert into pacientes (nombre, direccion, telefono, fecha_nacimiento, mami_nombre, papi_nombre, DNI) values (@nombre, @direccion, @telefono, @fecha_nacimiento, @mami_nombre, @papi_nombre, @DNI);";
131 | cmd.Parameters.AddWithValue("@nombre", paciente.nombre);
132 | cmd.Parameters.AddWithValue("@direccion", paciente.direccion);
133 | cmd.Parameters.AddWithValue("@telefono", paciente.telefono);
134 | cmd.Parameters.AddWithValue("@fecha_nacimiento", paciente.fecha_nacimiento);
135 | cmd.Parameters.AddWithValue("@mami_nombre", paciente.mami_nombre);
136 | cmd.Parameters.AddWithValue("@papi_nombre", paciente.papi_nombre);
137 | cmd.Parameters.AddWithValue("@dni", paciente.DNI);
138 |
139 | cmd.ExecuteNonQuery();
140 | cmd.CommandText = "select max(paciente_id) as nuevoId from pacientes where nombre=@nombre;";
141 | cmd.Parameters["@nombre"].Value = paciente.nombre;
142 |
143 | MySqlDataReader dr = cmd.ExecuteReader();
144 |
145 | int nuevoId;
146 |
147 | if (dr.Read())
148 | {
149 | nuevoId = Convert.ToInt32(dr["nuevoId"]);
150 | }
151 | else
152 | {
153 | nuevoId = 0;
154 | }
155 | cnx.Close();
156 | return nuevoId;
157 | }
158 |
159 | public bool actualizar(pacienteCE paciente)
160 | {
161 | bool estado = false;
162 | MySqlConnection cnx = conexionCD.cnx();
163 | cnx.Open();
164 |
165 | MySqlCommand cmd = cnx.CreateCommand();
166 | cmd.CommandType = CommandType.Text;
167 | cmd.CommandText = "update paciente set nombre=@nombre, direccion=@direccion, telefono=@telefono, mami_nombre=@mami_nombre, papi_nombre=papi_nombre where paciente_id=@paciente_id;";
168 | cmd.Parameters.AddWithValue("@paciente_id", paciente.paciente_id);
169 | cmd.Parameters.AddWithValue("@nombre", paciente.nombre);
170 | cmd.Parameters.AddWithValue("@direccion", paciente.direccion);
171 | cmd.Parameters.AddWithValue("@telefono", paciente.telefono);
172 | cmd.Parameters.AddWithValue("@mami_nombre", paciente.mami_nombre);
173 | cmd.Parameters.AddWithValue("@papi_nombre", paciente.papi_nombre);
174 |
175 | cmd.ExecuteNonQuery();
176 | cnx.Close();
177 | estado = true;
178 | return estado;
179 | }
180 |
181 | public bool eliminar(int idEliminar)
182 | {
183 | bool estado = false;
184 | MySqlConnection cnx = conexionCD.cnx();
185 | cnx.Open();
186 |
187 | MySqlCommand cmd = cnx.CreateCommand();
188 | cmd.CommandType = CommandType.Text;
189 | cmd.CommandText = "delete from pacientes where paciente_id=@paciente_id;";
190 | cmd.Parameters.AddWithValue("@paciente_id", idEliminar);
191 |
192 | cmd.ExecuteNonQuery();
193 | cnx.Close();
194 | estado = true;
195 | return estado;
196 | }
197 |
198 | public List LeerTodosLosPacientes()
199 | {
200 | MySqlConnection cnx = conexionCD.cnx();
201 | cnx.Open();
202 |
203 | MySqlCommand cmd = cnx.CreateCommand();
204 | cmd.CommandType = CommandType.StoredProcedure;
205 | cmd.CommandText = "LeerTodosLosPacientes";
206 |
207 | MySqlDataReader dr = cmd.ExecuteReader();
208 | List pacientes = new List();
209 |
210 | while (dr.Read())
211 | {
212 | int paciente_id = Convert.ToInt32(dr["paciente_id"]);
213 | string nombre = dr["nombre"] == DBNull.Value ? "sin valor" : (string)dr["nombre"];
214 | string direccion = dr["direccion"] == DBNull.Value ? "sin valor" : (string)dr["direccion"];
215 | int dni = dr["DNI"] == DBNull.Value ? 0 : Convert.ToInt32(dr["DNI"]);
216 | string telefono = dr["telefono"] == DBNull.Value ? "sin valor" : (string)dr["telefono"];
217 | DateTime fecha_nacimiento = dr["fecha_nacimiento"] == DBNull.Value ? DateTime.MinValue : (DateTime)dr["fecha_nacimiento"];
218 | string mami_nombre = dr["mami_nombre"] == DBNull.Value ? "sin valor" : (string)dr["mami_nombre"];
219 | string papi_nombre = dr["papi_nombre"] == DBNull.Value ? "sin valor" : (string)dr["papi_nombre"];
220 |
221 | pacienteCE paciente = new pacienteCE();
222 | paciente.paciente_id = paciente_id;
223 | paciente.nombre = nombre;
224 | paciente.direccion = direccion;
225 | paciente.DNI = dni;
226 | paciente.telefono = telefono;
227 | paciente.fecha_nacimiento = fecha_nacimiento;
228 | paciente.mami_nombre = mami_nombre;
229 | paciente.papi_nombre = papi_nombre;
230 | pacientes.Add(paciente);
231 | }
232 |
233 | cnx.Close();
234 |
235 | return pacientes;
236 | }
237 |
238 | public int mostrarCantidadPacientes()
239 | {
240 | MySqlConnection cnx = conexionCD.cnx();
241 | cnx.Open();
242 |
243 | string sql = "SELECT COUNT(*) FROM Pacientes";
244 | MySqlCommand cmd = new MySqlCommand(sql, cnx);
245 |
246 | int totalPacientes = Convert.ToInt32(cmd.ExecuteScalar());
247 | cnx.Close();
248 |
249 | return totalPacientes;
250 | }
251 |
252 | public int mostrarCantidadHistorias()
253 | {
254 | MySqlConnection cnx = conexionCD.cnx();
255 | cnx.Open();
256 |
257 | string sql = "SELECT COUNT(*) FROM Consultas";
258 | MySqlCommand cmd = new MySqlCommand(sql, cnx);
259 |
260 | int totalPacientes = Convert.ToInt32(cmd.ExecuteScalar());
261 | cnx.Close();
262 |
263 | return totalPacientes;
264 | }
265 | }
266 | }
267 |
--------------------------------------------------------------------------------
/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Apache License
2 | Version 2.0, January 2004
3 | http://www.apache.org/licenses/
4 |
5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6 |
7 | 1. Definitions.
8 |
9 | "License" shall mean the terms and conditions for use, reproduction,
10 | and distribution as defined by Sections 1 through 9 of this document.
11 |
12 | "Licensor" shall mean the copyright owner or entity authorized by
13 | the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all
16 | other entities that control, are controlled by, or are under common
17 | control with that entity. For the purposes of this definition,
18 | "control" means (i) the power, direct or indirect, to cause the
19 | direction or management of such entity, whether by contract or
20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
21 | outstanding shares, or (iii) beneficial ownership of such entity.
22 |
23 | "You" (or "Your") shall mean an individual or Legal Entity
24 | exercising permissions granted by this License.
25 |
26 | "Source" form shall mean the preferred form for making modifications,
27 | including but not limited to software source code, documentation
28 | source, and configuration files.
29 |
30 | "Object" form shall mean any form resulting from mechanical
31 | transformation or translation of a Source form, including but
32 | not limited to compiled object code, generated documentation,
33 | and conversions to other media types.
34 |
35 | "Work" shall mean the work of authorship, whether in Source or
36 | Object form, made available under the License, as indicated by a
37 | copyright notice that is included in or attached to the work
38 | (an example is provided in the Appendix below).
39 |
40 | "Derivative Works" shall mean any work, whether in Source or Object
41 | form, that is based on (or derived from) the Work and for which the
42 | editorial revisions, annotations, elaborations, or other modifications
43 | represent, as a whole, an original work of authorship. For the purposes
44 | of this License, Derivative Works shall not include works that remain
45 | separable from, or merely link (or bind by name) to the interfaces of,
46 | the Work and Derivative Works thereof.
47 |
48 | "Contribution" shall mean any work of authorship, including
49 | the original version of the Work and any modifications or additions
50 | to that Work or Derivative Works thereof, that is intentionally
51 | submitted to Licensor for inclusion in the Work by the copyright owner
52 | or by an individual or Legal Entity authorized to submit on behalf of
53 | the copyright owner. For the purposes of this definition, "submitted"
54 | means any form of electronic, verbal, or written communication sent
55 | to the Licensor or its representatives, including but not limited to
56 | communication on electronic mailing lists, source code control systems,
57 | and issue tracking systems that are managed by, or on behalf of, the
58 | Licensor for the purpose of discussing and improving the Work, but
59 | excluding communication that is conspicuously marked or otherwise
60 | designated in writing by the copyright owner as "Not a Contribution."
61 |
62 | "Contributor" shall mean Licensor and any individual or Legal Entity
63 | on behalf of whom a Contribution has been received by Licensor and
64 | subsequently incorporated within the Work.
65 |
66 | 2. Grant of Copyright License. Subject to the terms and conditions of
67 | this License, each Contributor hereby grants to You a perpetual,
68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69 | copyright license to reproduce, prepare Derivative Works of,
70 | publicly display, publicly perform, sublicense, and distribute the
71 | Work and such Derivative Works in Source or Object form.
72 |
73 | 3. Grant of Patent License. Subject to the terms and conditions of
74 | this License, each Contributor hereby grants to You a perpetual,
75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 | (except as stated in this section) patent license to make, have made,
77 | use, offer to sell, sell, import, and otherwise transfer the Work,
78 | where such license applies only to those patent claims licensable
79 | by such Contributor that are necessarily infringed by their
80 | Contribution(s) alone or by combination of their Contribution(s)
81 | with the Work to which such Contribution(s) was submitted. If You
82 | institute patent litigation against any entity (including a
83 | cross-claim or counterclaim in a lawsuit) alleging that the Work
84 | or a Contribution incorporated within the Work constitutes direct
85 | or contributory patent infringement, then any patent licenses
86 | granted to You under this License for that Work shall terminate
87 | as of the date such litigation is filed.
88 |
89 | 4. Redistribution. You may reproduce and distribute copies of the
90 | Work or Derivative Works thereof in any medium, with or without
91 | modifications, and in Source or Object form, provided that You
92 | meet the following conditions:
93 |
94 | (a) You must give any other recipients of the Work or
95 | Derivative Works a copy of this License; and
96 |
97 | (b) You must cause any modified files to carry prominent notices
98 | stating that You changed the files; and
99 |
100 | (c) You must retain, in the Source form of any Derivative Works
101 | that You distribute, all copyright, patent, trademark, and
102 | attribution notices from the Source form of the Work,
103 | excluding those notices that do not pertain to any part of
104 | the Derivative Works; and
105 |
106 | (d) If the Work includes a "NOTICE" text file as part of its
107 | distribution, then any Derivative Works that You distribute must
108 | include a readable copy of the attribution notices contained
109 | within such NOTICE file, excluding those notices that do not
110 | pertain to any part of the Derivative Works, in at least one
111 | of the following places: within a NOTICE text file distributed
112 | as part of the Derivative Works; within the Source form or
113 | documentation, if provided along with the Derivative Works; or,
114 | within a display generated by the Derivative Works, if and
115 | wherever such third-party notices normally appear. The contents
116 | of the NOTICE file are for informational purposes only and
117 | do not modify the License. You may add Your own attribution
118 | notices within Derivative Works that You distribute, alongside
119 | or as an addendum to the NOTICE text from the Work, provided
120 | that such additional attribution notices cannot be construed
121 | as modifying the License.
122 |
123 | You may add Your own copyright statement to Your modifications and
124 | may provide additional or different license terms and conditions
125 | for use, reproduction, or distribution of Your modifications, or
126 | for any such Derivative Works as a whole, provided Your use,
127 | reproduction, and distribution of the Work otherwise complies with
128 | the conditions stated in this License.
129 |
130 | 5. Submission of Contributions. Unless You explicitly state otherwise,
131 | any Contribution intentionally submitted for inclusion in the Work
132 | by You to the Licensor shall be under the terms and conditions of
133 | this License, without any additional terms or conditions.
134 | Notwithstanding the above, nothing herein shall supersede or modify
135 | the terms of any separate license agreement you may have executed
136 | with Licensor regarding such Contributions.
137 |
138 | 6. Trademarks. This License does not grant permission to use the trade
139 | names, trademarks, service marks, or product names of the Licensor,
140 | except as required for reasonable and customary use in describing the
141 | origin of the Work and reproducing the content of the NOTICE file.
142 |
143 | 7. Disclaimer of Warranty. Unless required by applicable law or
144 | agreed to in writing, Licensor provides the Work (and each
145 | Contributor provides its Contributions) on an "AS IS" BASIS,
146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 | implied, including, without limitation, any warranties or conditions
148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 | PARTICULAR PURPOSE. You are solely responsible for determining the
150 | appropriateness of using or redistributing the Work and assume any
151 | risks associated with Your exercise of permissions under this License.
152 |
153 | 8. Limitation of Liability. In no event and under no legal theory,
154 | whether in tort (including negligence), contract, or otherwise,
155 | unless required by applicable law (such as deliberate and grossly
156 | negligent acts) or agreed to in writing, shall any Contributor be
157 | liable to You for damages, including any direct, indirect, special,
158 | incidental, or consequential damages of any character arising as a
159 | result of this License or out of the use or inability to use the
160 | Work (including but not limited to damages for loss of goodwill,
161 | work stoppage, computer failure or malfunction, or any and all
162 | other commercial damages or losses), even if such Contributor
163 | has been advised of the possibility of such damages.
164 |
165 | 9. Accepting Warranty or Additional Liability. While redistributing
166 | the Work or Derivative Works thereof, You may choose to offer,
167 | and charge a fee for, acceptance of support, warranty, indemnity,
168 | or other liability obligations and/or rights consistent with this
169 | License. However, in accepting such obligations, You may act only
170 | on Your own behalf and on Your sole responsibility, not on behalf
171 | of any other Contributor, and only if You agree to indemnify,
172 | defend, and hold each Contributor harmless for any liability
173 | incurred by, or claims asserted against, such Contributor by reason
174 | of your accepting any such warranty or additional liability.
175 |
176 | END OF TERMS AND CONDITIONS
177 |
178 | APPENDIX: How to apply the Apache License to your work.
179 |
180 | To apply the Apache License to your work, attach the following
181 | boilerplate notice, with the fields enclosed by brackets "[]"
182 | replaced with your own identifying information. (Don't include
183 | the brackets!) The text should be enclosed in the appropriate
184 | comment syntax for the file format. We also recommend that a
185 | file or class name and description of purpose be included on the
186 | same "printed page" as the copyright notice for easier
187 | identification within third-party archives.
188 |
189 | Copyright [yyyy] [name of copyright owner]
190 |
191 | Licensed under the Apache License, Version 2.0 (the "License");
192 | you may not use this file except in compliance with the License.
193 | You may obtain a copy of the License at
194 |
195 | http://www.apache.org/licenses/LICENSE-2.0
196 |
197 | Unless required by applicable law or agreed to in writing, software
198 | distributed under the License is distributed on an "AS IS" BASIS,
199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 | See the License for the specific language governing permissions and
201 | limitations under the License.
202 |
--------------------------------------------------------------------------------
/capaPresentacion/formPrincipal.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace capaPresentacion
2 | {
3 | partial class formPrincipal
4 | {
5 | ///
6 | /// Required designer variable.
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// Clean up any resources being used.
12 | ///
13 | /// true if managed resources should be disposed; otherwise, false.
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region Windows Form Designer generated code
24 |
25 | ///
26 | /// Required method for Designer support - do not modify
27 | /// the contents of this method with the code editor.
28 | ///
29 | private void InitializeComponent()
30 | {
31 | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(formPrincipal));
32 | this.menu_nav = new System.Windows.Forms.MenuStrip();
33 | this.ayudaToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
34 | this.registroDePacientesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
35 | this.registroDeHistoriasCToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
36 | this.opcionesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
37 | this.soporteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
38 | this.contactarAlDesarrolladorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
39 | this.reportarUnProblemaToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
40 | this.btnMostrarFormHistoria = new System.Windows.Forms.Button();
41 | this.btnPaciente = new System.Windows.Forms.Button();
42 | this.lblFecha = new System.Windows.Forms.Label();
43 | this.bg_container = new System.Windows.Forms.Panel();
44 | this.btnHistorial = new System.Windows.Forms.Button();
45 | this.btnBuscarPaciente = new System.Windows.Forms.Button();
46 | this.btnMostrarPacientes = new System.Windows.Forms.Button();
47 | this.pictureBox5 = new System.Windows.Forms.PictureBox();
48 | this.pictureBox4 = new System.Windows.Forms.PictureBox();
49 | this.pictureBox3 = new System.Windows.Forms.PictureBox();
50 | this.pictureBox2 = new System.Windows.Forms.PictureBox();
51 | this.pictureBox1 = new System.Windows.Forms.PictureBox();
52 | this.ucCardReport1 = new capaPresentacion.ucCardReport();
53 | this.ucCardReport2 = new capaPresentacion.ucCardReport();
54 | this.ucCardHistorias = new capaPresentacion.ucCardReport();
55 | this.ucCardPacientes = new capaPresentacion.ucCardReport();
56 | this.menu_nav.SuspendLayout();
57 | this.bg_container.SuspendLayout();
58 | ((System.ComponentModel.ISupportInitialize)(this.pictureBox5)).BeginInit();
59 | ((System.ComponentModel.ISupportInitialize)(this.pictureBox4)).BeginInit();
60 | ((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).BeginInit();
61 | ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
62 | ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
63 | this.SuspendLayout();
64 | //
65 | // menu_nav
66 | //
67 | this.menu_nav.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(239)))), ((int)(((byte)(245)))));
68 | this.menu_nav.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
69 | this.ayudaToolStripMenuItem,
70 | this.opcionesToolStripMenuItem,
71 | this.soporteToolStripMenuItem});
72 | this.menu_nav.Location = new System.Drawing.Point(0, 0);
73 | this.menu_nav.Name = "menu_nav";
74 | this.menu_nav.Size = new System.Drawing.Size(976, 24);
75 | this.menu_nav.TabIndex = 1;
76 | this.menu_nav.Text = "menu_navigator";
77 | //
78 | // ayudaToolStripMenuItem
79 | //
80 | this.ayudaToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
81 | this.registroDePacientesToolStripMenuItem,
82 | this.registroDeHistoriasCToolStripMenuItem});
83 | this.ayudaToolStripMenuItem.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
84 | this.ayudaToolStripMenuItem.Name = "ayudaToolStripMenuItem";
85 | this.ayudaToolStripMenuItem.Size = new System.Drawing.Size(53, 20);
86 | this.ayudaToolStripMenuItem.Text = "Ayuda";
87 | //
88 | // registroDePacientesToolStripMenuItem
89 | //
90 | this.registroDePacientesToolStripMenuItem.Name = "registroDePacientesToolStripMenuItem";
91 | this.registroDePacientesToolStripMenuItem.Size = new System.Drawing.Size(192, 22);
92 | this.registroDePacientesToolStripMenuItem.Text = "Registro de pacientes.";
93 | //
94 | // registroDeHistoriasCToolStripMenuItem
95 | //
96 | this.registroDeHistoriasCToolStripMenuItem.Name = "registroDeHistoriasCToolStripMenuItem";
97 | this.registroDeHistoriasCToolStripMenuItem.Size = new System.Drawing.Size(192, 22);
98 | this.registroDeHistoriasCToolStripMenuItem.Text = "Registro de historias c.";
99 | //
100 | // opcionesToolStripMenuItem
101 | //
102 | this.opcionesToolStripMenuItem.Name = "opcionesToolStripMenuItem";
103 | this.opcionesToolStripMenuItem.Size = new System.Drawing.Size(69, 20);
104 | this.opcionesToolStripMenuItem.Text = "Opciones";
105 | //
106 | // soporteToolStripMenuItem
107 | //
108 | this.soporteToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
109 | this.contactarAlDesarrolladorToolStripMenuItem,
110 | this.reportarUnProblemaToolStripMenuItem});
111 | this.soporteToolStripMenuItem.Name = "soporteToolStripMenuItem";
112 | this.soporteToolStripMenuItem.Size = new System.Drawing.Size(60, 20);
113 | this.soporteToolStripMenuItem.Text = "Soporte";
114 | //
115 | // contactarAlDesarrolladorToolStripMenuItem
116 | //
117 | this.contactarAlDesarrolladorToolStripMenuItem.Name = "contactarAlDesarrolladorToolStripMenuItem";
118 | this.contactarAlDesarrolladorToolStripMenuItem.Size = new System.Drawing.Size(213, 22);
119 | this.contactarAlDesarrolladorToolStripMenuItem.Text = "Contactar al desarrollador.";
120 | //
121 | // reportarUnProblemaToolStripMenuItem
122 | //
123 | this.reportarUnProblemaToolStripMenuItem.Name = "reportarUnProblemaToolStripMenuItem";
124 | this.reportarUnProblemaToolStripMenuItem.Size = new System.Drawing.Size(213, 22);
125 | this.reportarUnProblemaToolStripMenuItem.Text = "Reportar un problema.";
126 | //
127 | // btnMostrarFormHistoria
128 | //
129 | this.btnMostrarFormHistoria.Location = new System.Drawing.Point(680, 242);
130 | this.btnMostrarFormHistoria.Name = "btnMostrarFormHistoria";
131 | this.btnMostrarFormHistoria.Size = new System.Drawing.Size(148, 35);
132 | this.btnMostrarFormHistoria.TabIndex = 4;
133 | this.btnMostrarFormHistoria.Text = "Generar Historia Clinica";
134 | this.btnMostrarFormHistoria.UseVisualStyleBackColor = true;
135 | this.btnMostrarFormHistoria.Click += new System.EventHandler(this.btnMostrarFormHistoria_Click);
136 | //
137 | // btnPaciente
138 | //
139 | this.btnPaciente.Location = new System.Drawing.Point(185, 242);
140 | this.btnPaciente.Name = "btnPaciente";
141 | this.btnPaciente.Size = new System.Drawing.Size(150, 35);
142 | this.btnPaciente.TabIndex = 6;
143 | this.btnPaciente.Text = "Agregar paciente";
144 | this.btnPaciente.UseVisualStyleBackColor = true;
145 | this.btnPaciente.Click += new System.EventHandler(this.btnShowPacienteForm_Click);
146 | //
147 | // lblFecha
148 | //
149 | this.lblFecha.AutoSize = true;
150 | this.lblFecha.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
151 | this.lblFecha.ForeColor = System.Drawing.Color.Black;
152 | this.lblFecha.Location = new System.Drawing.Point(826, 35);
153 | this.lblFecha.Name = "lblFecha";
154 | this.lblFecha.Size = new System.Drawing.Size(122, 15);
155 | this.lblFecha.TabIndex = 9;
156 | this.lblFecha.Text = "0000-00-00 00:00:00";
157 | this.lblFecha.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
158 | //
159 | // bg_container
160 | //
161 | this.bg_container.BackColor = System.Drawing.Color.White;
162 | this.bg_container.Controls.Add(this.ucCardReport1);
163 | this.bg_container.Controls.Add(this.pictureBox5);
164 | this.bg_container.Controls.Add(this.pictureBox4);
165 | this.bg_container.Controls.Add(this.btnMostrarPacientes);
166 | this.bg_container.Controls.Add(this.pictureBox3);
167 | this.bg_container.Controls.Add(this.btnHistorial);
168 | this.bg_container.Controls.Add(this.pictureBox2);
169 | this.bg_container.Controls.Add(this.pictureBox1);
170 | this.bg_container.Controls.Add(this.btnBuscarPaciente);
171 | this.bg_container.Controls.Add(this.ucCardReport2);
172 | this.bg_container.Controls.Add(this.ucCardHistorias);
173 | this.bg_container.Controls.Add(this.ucCardPacientes);
174 | this.bg_container.Controls.Add(this.lblFecha);
175 | this.bg_container.Controls.Add(this.btnPaciente);
176 | this.bg_container.Controls.Add(this.btnMostrarFormHistoria);
177 | this.bg_container.Controls.Add(this.menu_nav);
178 | this.bg_container.Dock = System.Windows.Forms.DockStyle.Fill;
179 | this.bg_container.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
180 | this.bg_container.Location = new System.Drawing.Point(0, 0);
181 | this.bg_container.Name = "bg_container";
182 | this.bg_container.Size = new System.Drawing.Size(976, 542);
183 | this.bg_container.TabIndex = 3;
184 | //
185 | // btnHistorial
186 | //
187 | this.btnHistorial.Location = new System.Drawing.Point(515, 242);
188 | this.btnHistorial.Name = "btnHistorial";
189 | this.btnHistorial.Size = new System.Drawing.Size(150, 35);
190 | this.btnHistorial.TabIndex = 18;
191 | this.btnHistorial.Text = "Historial";
192 | this.btnHistorial.UseVisualStyleBackColor = true;
193 | //
194 | // btnBuscarPaciente
195 | //
196 | this.btnBuscarPaciente.Location = new System.Drawing.Point(19, 242);
197 | this.btnBuscarPaciente.Name = "btnBuscarPaciente";
198 | this.btnBuscarPaciente.Size = new System.Drawing.Size(150, 35);
199 | this.btnBuscarPaciente.TabIndex = 14;
200 | this.btnBuscarPaciente.Text = "Buscar paciente";
201 | this.btnBuscarPaciente.UseVisualStyleBackColor = true;
202 | this.btnBuscarPaciente.Click += new System.EventHandler(this.btnBuscarPaciente_Click);
203 | //
204 | // btnMostrarPacientes
205 | //
206 | this.btnMostrarPacientes.Location = new System.Drawing.Point(350, 242);
207 | this.btnMostrarPacientes.Name = "btnMostrarPacientes";
208 | this.btnMostrarPacientes.Size = new System.Drawing.Size(150, 35);
209 | this.btnMostrarPacientes.TabIndex = 20;
210 | this.btnMostrarPacientes.Text = "Mostrar Pacientes";
211 | this.btnMostrarPacientes.UseVisualStyleBackColor = true;
212 | this.btnMostrarPacientes.Click += new System.EventHandler(this.btnMostrarPacientes_Click);
213 | //
214 | // pictureBox5
215 | //
216 | this.pictureBox5.Image = global::capaPresentacion.Properties.Resources.Creciendo_Sanos_y_Felices_LOGO;
217 | this.pictureBox5.ImeMode = System.Windows.Forms.ImeMode.NoControl;
218 | this.pictureBox5.Location = new System.Drawing.Point(34, 40);
219 | this.pictureBox5.Name = "pictureBox5";
220 | this.pictureBox5.Size = new System.Drawing.Size(100, 100);
221 | this.pictureBox5.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
222 | this.pictureBox5.TabIndex = 22;
223 | this.pictureBox5.TabStop = false;
224 | //
225 | // pictureBox4
226 | //
227 | this.pictureBox4.Image = global::capaPresentacion.Properties.Resources.inspection;
228 | this.pictureBox4.Location = new System.Drawing.Point(395, 175);
229 | this.pictureBox4.Name = "pictureBox4";
230 | this.pictureBox4.Size = new System.Drawing.Size(68, 61);
231 | this.pictureBox4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
232 | this.pictureBox4.TabIndex = 21;
233 | this.pictureBox4.TabStop = false;
234 | //
235 | // pictureBox3
236 | //
237 | this.pictureBox3.Image = global::capaPresentacion.Properties.Resources.historial;
238 | this.pictureBox3.Location = new System.Drawing.Point(560, 175);
239 | this.pictureBox3.Name = "pictureBox3";
240 | this.pictureBox3.Size = new System.Drawing.Size(61, 61);
241 | this.pictureBox3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
242 | this.pictureBox3.TabIndex = 19;
243 | this.pictureBox3.TabStop = false;
244 | //
245 | // pictureBox2
246 | //
247 | this.pictureBox2.Image = global::capaPresentacion.Properties.Resources.buscar_paciente;
248 | this.pictureBox2.Location = new System.Drawing.Point(61, 175);
249 | this.pictureBox2.Name = "pictureBox2";
250 | this.pictureBox2.Size = new System.Drawing.Size(69, 61);
251 | this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
252 | this.pictureBox2.TabIndex = 16;
253 | this.pictureBox2.TabStop = false;
254 | //
255 | // pictureBox1
256 | //
257 | this.pictureBox1.Image = global::capaPresentacion.Properties.Resources.pacientes;
258 | this.pictureBox1.Location = new System.Drawing.Point(218, 175);
259 | this.pictureBox1.Name = "pictureBox1";
260 | this.pictureBox1.Size = new System.Drawing.Size(87, 61);
261 | this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
262 | this.pictureBox1.TabIndex = 15;
263 | this.pictureBox1.TabStop = false;
264 | //
265 | // ucCardReport1
266 | //
267 | this.ucCardReport1.BackColor = System.Drawing.SystemColors.ButtonFace;
268 | this.ucCardReport1.Count = 0;
269 | this.ucCardReport1.Location = new System.Drawing.Point(680, 66);
270 | this.ucCardReport1.Name = "ucCardReport1";
271 | this.ucCardReport1.Size = new System.Drawing.Size(150, 74);
272 | this.ucCardReport1.TabIndex = 23;
273 | this.ucCardReport1.Title = "Usuarios";
274 | //
275 | // ucCardReport2
276 | //
277 | this.ucCardReport2.BackColor = System.Drawing.SystemColors.ButtonFace;
278 | this.ucCardReport2.Count = 0;
279 | this.ucCardReport2.Location = new System.Drawing.Point(515, 66);
280 | this.ucCardReport2.Name = "ucCardReport2";
281 | this.ucCardReport2.Size = new System.Drawing.Size(150, 74);
282 | this.ucCardReport2.TabIndex = 13;
283 | this.ucCardReport2.Title = "Pendientes";
284 | //
285 | // ucCardHistorias
286 | //
287 | this.ucCardHistorias.BackColor = System.Drawing.SystemColors.ButtonFace;
288 | this.ucCardHistorias.Count = 0;
289 | this.ucCardHistorias.Location = new System.Drawing.Point(350, 66);
290 | this.ucCardHistorias.Name = "ucCardHistorias";
291 | this.ucCardHistorias.Size = new System.Drawing.Size(150, 74);
292 | this.ucCardHistorias.TabIndex = 12;
293 | this.ucCardHistorias.Title = "Historias clinicas";
294 | //
295 | // ucCardPacientes
296 | //
297 | this.ucCardPacientes.BackColor = System.Drawing.SystemColors.ButtonFace;
298 | this.ucCardPacientes.Count = 0;
299 | this.ucCardPacientes.Location = new System.Drawing.Point(185, 66);
300 | this.ucCardPacientes.Name = "ucCardPacientes";
301 | this.ucCardPacientes.Size = new System.Drawing.Size(150, 74);
302 | this.ucCardPacientes.TabIndex = 11;
303 | this.ucCardPacientes.Title = "Pacientes registrados";
304 | //
305 | // formPrincipal
306 | //
307 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
308 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
309 | this.ClientSize = new System.Drawing.Size(976, 542);
310 | this.Controls.Add(this.bg_container);
311 | this.HelpButton = true;
312 | this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
313 | this.IsMdiContainer = true;
314 | this.Name = "formPrincipal";
315 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
316 | this.Text = "Creciendo Sanos y Felices - Clinica";
317 | this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.formPrincipal_FormClosing);
318 | this.Load += new System.EventHandler(this.formPrincipal_Load);
319 | this.menu_nav.ResumeLayout(false);
320 | this.menu_nav.PerformLayout();
321 | this.bg_container.ResumeLayout(false);
322 | this.bg_container.PerformLayout();
323 | ((System.ComponentModel.ISupportInitialize)(this.pictureBox5)).EndInit();
324 | ((System.ComponentModel.ISupportInitialize)(this.pictureBox4)).EndInit();
325 | ((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).EndInit();
326 | ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
327 | ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
328 | this.ResumeLayout(false);
329 |
330 | }
331 |
332 | #endregion
333 |
334 | private System.Windows.Forms.MenuStrip menu_nav;
335 | private System.Windows.Forms.ToolStripMenuItem ayudaToolStripMenuItem;
336 | private System.Windows.Forms.ToolStripMenuItem registroDePacientesToolStripMenuItem;
337 | private System.Windows.Forms.ToolStripMenuItem registroDeHistoriasCToolStripMenuItem;
338 | private System.Windows.Forms.ToolStripMenuItem opcionesToolStripMenuItem;
339 | private System.Windows.Forms.ToolStripMenuItem soporteToolStripMenuItem;
340 | private System.Windows.Forms.ToolStripMenuItem contactarAlDesarrolladorToolStripMenuItem;
341 | private System.Windows.Forms.ToolStripMenuItem reportarUnProblemaToolStripMenuItem;
342 | private System.Windows.Forms.Button btnMostrarFormHistoria;
343 | private System.Windows.Forms.Button btnPaciente;
344 | private System.Windows.Forms.Label lblFecha;
345 | private System.Windows.Forms.Panel bg_container;
346 | private ucCardReport ucCardPacientes;
347 | private ucCardReport ucCardHistorias;
348 | private ucCardReport ucCardReport2;
349 | private System.Windows.Forms.Button btnBuscarPaciente;
350 | private System.Windows.Forms.PictureBox pictureBox1;
351 | private System.Windows.Forms.PictureBox pictureBox2;
352 | private System.Windows.Forms.PictureBox pictureBox3;
353 | private System.Windows.Forms.Button btnHistorial;
354 | private System.Windows.Forms.PictureBox pictureBox4;
355 | private System.Windows.Forms.Button btnMostrarPacientes;
356 | private System.Windows.Forms.PictureBox pictureBox5;
357 | private ucCardReport ucCardReport1;
358 | }
359 | }
--------------------------------------------------------------------------------
/capaPresentacion/formHistoriaClinica.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace capaPresentacion
2 | {
3 | partial class formHistoriaClinica
4 | {
5 | ///
6 | /// Required designer variable.
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// Clean up any resources being used.
12 | ///
13 | /// true if managed resources should be disposed; otherwise, false.
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region Windows Form Designer generated code
24 |
25 | ///
26 | /// Required method for Designer support - do not modify
27 | /// the contents of this method with the code editor.
28 | ///
29 | private void InitializeComponent()
30 | {
31 | this.btnLimpiarCampos = new System.Windows.Forms.Button();
32 | this.btnRegistrarHistoria = new System.Windows.Forms.Button();
33 | this.dtFecha = new System.Windows.Forms.DateTimePicker();
34 | this.label5 = new System.Windows.Forms.Label();
35 | this.txtTalla = new System.Windows.Forms.TextBox();
36 | this.label4 = new System.Windows.Forms.Label();
37 | this.txtPeso = new System.Windows.Forms.TextBox();
38 | this.label3 = new System.Windows.Forms.Label();
39 | this.txtEdad = new System.Windows.Forms.TextBox();
40 | this.label1 = new System.Windows.Forms.Label();
41 | this.label9 = new System.Windows.Forms.Label();
42 | this.label10 = new System.Windows.Forms.Label();
43 | this.txtFrecResp = new System.Windows.Forms.TextBox();
44 | this.txtFrecCard = new System.Windows.Forms.TextBox();
45 | this.label11 = new System.Windows.Forms.Label();
46 | this.txtTemperatura = new System.Windows.Forms.TextBox();
47 | this.label12 = new System.Windows.Forms.Label();
48 | this.label13 = new System.Windows.Forms.Label();
49 | this.txtPresionArterial = new System.Windows.Forms.TextBox();
50 | this.label14 = new System.Windows.Forms.Label();
51 | this.txtExamenFisico = new System.Windows.Forms.RichTextBox();
52 | this.label6 = new System.Windows.Forms.Label();
53 | this.label16 = new System.Windows.Forms.Label();
54 | this.txtRelato = new System.Windows.Forms.TextBox();
55 | this.richAntecedentes = new System.Windows.Forms.RichTextBox();
56 | this.label17 = new System.Windows.Forms.Label();
57 | this.txtDiagnostico = new System.Windows.Forms.TextBox();
58 | this.label7 = new System.Windows.Forms.Label();
59 | this.label15 = new System.Windows.Forms.Label();
60 | this.richSignosSintomas = new System.Windows.Forms.RichTextBox();
61 | this.richPresMedica = new System.Windows.Forms.RichTextBox();
62 | this.label8 = new System.Windows.Forms.Label();
63 | this.btnSeleccionarPaciente = new System.Windows.Forms.Button();
64 | this.txtCodigoPaciente = new System.Windows.Forms.TextBox();
65 | this.label2 = new System.Windows.Forms.Label();
66 | this.label18 = new System.Windows.Forms.Label();
67 | this.button2 = new System.Windows.Forms.Button();
68 | this.pictureBox1 = new System.Windows.Forms.PictureBox();
69 | this.numTiempo = new System.Windows.Forms.NumericUpDown();
70 | ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
71 | ((System.ComponentModel.ISupportInitialize)(this.numTiempo)).BeginInit();
72 | this.SuspendLayout();
73 | //
74 | // btnLimpiarCampos
75 | //
76 | this.btnLimpiarCampos.Location = new System.Drawing.Point(369, 537);
77 | this.btnLimpiarCampos.Name = "btnLimpiarCampos";
78 | this.btnLimpiarCampos.Size = new System.Drawing.Size(152, 31);
79 | this.btnLimpiarCampos.TabIndex = 34;
80 | this.btnLimpiarCampos.Text = "Limpiar Campos";
81 | this.btnLimpiarCampos.UseVisualStyleBackColor = true;
82 | //
83 | // btnRegistrarHistoria
84 | //
85 | this.btnRegistrarHistoria.Location = new System.Drawing.Point(211, 537);
86 | this.btnRegistrarHistoria.Name = "btnRegistrarHistoria";
87 | this.btnRegistrarHistoria.Size = new System.Drawing.Size(152, 31);
88 | this.btnRegistrarHistoria.TabIndex = 33;
89 | this.btnRegistrarHistoria.Text = "Guardar Registro";
90 | this.btnRegistrarHistoria.UseVisualStyleBackColor = true;
91 | this.btnRegistrarHistoria.Click += new System.EventHandler(this.btnRegistrarHistoria_Click);
92 | //
93 | // dtFecha
94 | //
95 | this.dtFecha.Enabled = false;
96 | this.dtFecha.Format = System.Windows.Forms.DateTimePickerFormat.Short;
97 | this.dtFecha.Location = new System.Drawing.Point(248, 42);
98 | this.dtFecha.Name = "dtFecha";
99 | this.dtFecha.Size = new System.Drawing.Size(104, 20);
100 | this.dtFecha.TabIndex = 28;
101 | //
102 | // label5
103 | //
104 | this.label5.AutoSize = true;
105 | this.label5.Location = new System.Drawing.Point(205, 45);
106 | this.label5.Name = "label5";
107 | this.label5.Size = new System.Drawing.Size(37, 13);
108 | this.label5.TabIndex = 27;
109 | this.label5.Text = "Fecha";
110 | //
111 | // txtTalla
112 | //
113 | this.txtTalla.Location = new System.Drawing.Point(141, 155);
114 | this.txtTalla.Name = "txtTalla";
115 | this.txtTalla.Size = new System.Drawing.Size(52, 20);
116 | this.txtTalla.TabIndex = 26;
117 | this.txtTalla.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
118 | //
119 | // label4
120 | //
121 | this.label4.AutoSize = true;
122 | this.label4.ForeColor = System.Drawing.SystemColors.ControlText;
123 | this.label4.Location = new System.Drawing.Point(138, 141);
124 | this.label4.Name = "label4";
125 | this.label4.Size = new System.Drawing.Size(33, 13);
126 | this.label4.TabIndex = 25;
127 | this.label4.Text = "Talla:";
128 | //
129 | // txtPeso
130 | //
131 | this.txtPeso.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
132 | this.txtPeso.Location = new System.Drawing.Point(77, 156);
133 | this.txtPeso.Name = "txtPeso";
134 | this.txtPeso.Size = new System.Drawing.Size(56, 20);
135 | this.txtPeso.TabIndex = 24;
136 | this.txtPeso.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
137 | //
138 | // label3
139 | //
140 | this.label3.AutoSize = true;
141 | this.label3.ForeColor = System.Drawing.SystemColors.ControlText;
142 | this.label3.Location = new System.Drawing.Point(12, 141);
143 | this.label3.Name = "label3";
144 | this.label3.Size = new System.Drawing.Size(35, 13);
145 | this.label3.TabIndex = 23;
146 | this.label3.Text = "Edad:";
147 | //
148 | // txtEdad
149 | //
150 | this.txtEdad.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
151 | this.txtEdad.Location = new System.Drawing.Point(15, 157);
152 | this.txtEdad.Name = "txtEdad";
153 | this.txtEdad.Size = new System.Drawing.Size(56, 20);
154 | this.txtEdad.TabIndex = 22;
155 | this.txtEdad.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
156 | //
157 | // label1
158 | //
159 | this.label1.AutoSize = true;
160 | this.label1.ForeColor = System.Drawing.SystemColors.ControlText;
161 | this.label1.Location = new System.Drawing.Point(74, 141);
162 | this.label1.Name = "label1";
163 | this.label1.Size = new System.Drawing.Size(34, 13);
164 | this.label1.TabIndex = 21;
165 | this.label1.Text = "Peso:";
166 | //
167 | // label9
168 | //
169 | this.label9.AutoSize = true;
170 | this.label9.Font = new System.Drawing.Font("Segoe UI Semibold", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
171 | this.label9.Location = new System.Drawing.Point(151, 12);
172 | this.label9.Name = "label9";
173 | this.label9.Size = new System.Drawing.Size(244, 15);
174 | this.label9.TabIndex = 37;
175 | this.label9.Text = "FORMATO DE ATENCIÓN EN CONSULTORIO";
176 | //
177 | // label10
178 | //
179 | this.label10.AutoSize = true;
180 | this.label10.ForeColor = System.Drawing.SystemColors.ControlText;
181 | this.label10.Location = new System.Drawing.Point(196, 141);
182 | this.label10.Name = "label10";
183 | this.label10.Size = new System.Drawing.Size(62, 13);
184 | this.label10.TabIndex = 38;
185 | this.label10.Text = "Frec. Resp:";
186 | //
187 | // txtFrecResp
188 | //
189 | this.txtFrecResp.Location = new System.Drawing.Point(199, 155);
190 | this.txtFrecResp.Name = "txtFrecResp";
191 | this.txtFrecResp.Size = new System.Drawing.Size(66, 20);
192 | this.txtFrecResp.TabIndex = 39;
193 | this.txtFrecResp.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
194 | //
195 | // txtFrecCard
196 | //
197 | this.txtFrecCard.Location = new System.Drawing.Point(271, 155);
198 | this.txtFrecCard.Name = "txtFrecCard";
199 | this.txtFrecCard.Size = new System.Drawing.Size(66, 20);
200 | this.txtFrecCard.TabIndex = 41;
201 | this.txtFrecCard.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
202 | //
203 | // label11
204 | //
205 | this.label11.AutoSize = true;
206 | this.label11.ForeColor = System.Drawing.SystemColors.ControlText;
207 | this.label11.Location = new System.Drawing.Point(268, 141);
208 | this.label11.Name = "label11";
209 | this.label11.Size = new System.Drawing.Size(59, 13);
210 | this.label11.TabIndex = 40;
211 | this.label11.Text = "Frec. Card:";
212 | //
213 | // txtTemperatura
214 | //
215 | this.txtTemperatura.Location = new System.Drawing.Point(343, 155);
216 | this.txtTemperatura.Name = "txtTemperatura";
217 | this.txtTemperatura.Size = new System.Drawing.Size(52, 20);
218 | this.txtTemperatura.TabIndex = 43;
219 | this.txtTemperatura.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
220 | //
221 | // label12
222 | //
223 | this.label12.AutoSize = true;
224 | this.label12.ForeColor = System.Drawing.SystemColors.ControlText;
225 | this.label12.Location = new System.Drawing.Point(340, 141);
226 | this.label12.Name = "label12";
227 | this.label12.Size = new System.Drawing.Size(37, 13);
228 | this.label12.TabIndex = 42;
229 | this.label12.Text = "Temp:";
230 | //
231 | // label13
232 | //
233 | this.label13.AutoSize = true;
234 | this.label13.ForeColor = System.Drawing.SystemColors.ControlText;
235 | this.label13.Location = new System.Drawing.Point(398, 141);
236 | this.label13.Name = "label13";
237 | this.label13.Size = new System.Drawing.Size(50, 13);
238 | this.label13.TabIndex = 44;
239 | this.label13.Text = "Pres. Art:";
240 | //
241 | // txtPresionArterial
242 | //
243 | this.txtPresionArterial.Location = new System.Drawing.Point(401, 155);
244 | this.txtPresionArterial.Name = "txtPresionArterial";
245 | this.txtPresionArterial.Size = new System.Drawing.Size(52, 20);
246 | this.txtPresionArterial.TabIndex = 45;
247 | this.txtPresionArterial.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
248 | //
249 | // label14
250 | //
251 | this.label14.AutoSize = true;
252 | this.label14.ForeColor = System.Drawing.SystemColors.ControlText;
253 | this.label14.Location = new System.Drawing.Point(456, 141);
254 | this.label14.Name = "label14";
255 | this.label14.Size = new System.Drawing.Size(45, 13);
256 | this.label14.TabIndex = 46;
257 | this.label14.Text = "Tiempo:";
258 | //
259 | // txtExamenFisico
260 | //
261 | this.txtExamenFisico.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
262 | this.txtExamenFisico.Location = new System.Drawing.Point(15, 324);
263 | this.txtExamenFisico.Name = "txtExamenFisico";
264 | this.txtExamenFisico.Size = new System.Drawing.Size(250, 67);
265 | this.txtExamenFisico.TabIndex = 52;
266 | this.txtExamenFisico.Text = "";
267 | //
268 | // label6
269 | //
270 | this.label6.AutoSize = true;
271 | this.label6.ForeColor = System.Drawing.SystemColors.ControlText;
272 | this.label6.Location = new System.Drawing.Point(12, 308);
273 | this.label6.Name = "label6";
274 | this.label6.Size = new System.Drawing.Size(80, 13);
275 | this.label6.TabIndex = 29;
276 | this.label6.Text = "Examen Físico:";
277 | //
278 | // label16
279 | //
280 | this.label16.AutoSize = true;
281 | this.label16.ForeColor = System.Drawing.SystemColors.ControlText;
282 | this.label16.Location = new System.Drawing.Point(12, 261);
283 | this.label16.Name = "label16";
284 | this.label16.Size = new System.Drawing.Size(41, 13);
285 | this.label16.TabIndex = 53;
286 | this.label16.Text = "Relato:";
287 | //
288 | // txtRelato
289 | //
290 | this.txtRelato.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
291 | this.txtRelato.Location = new System.Drawing.Point(15, 277);
292 | this.txtRelato.Name = "txtRelato";
293 | this.txtRelato.Size = new System.Drawing.Size(250, 20);
294 | this.txtRelato.TabIndex = 55;
295 | //
296 | // richAntecedentes
297 | //
298 | this.richAntecedentes.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
299 | this.richAntecedentes.Location = new System.Drawing.Point(271, 324);
300 | this.richAntecedentes.Name = "richAntecedentes";
301 | this.richAntecedentes.Size = new System.Drawing.Size(250, 67);
302 | this.richAntecedentes.TabIndex = 57;
303 | this.richAntecedentes.Text = "";
304 | //
305 | // label17
306 | //
307 | this.label17.AutoSize = true;
308 | this.label17.ForeColor = System.Drawing.SystemColors.ControlText;
309 | this.label17.Location = new System.Drawing.Point(268, 308);
310 | this.label17.Name = "label17";
311 | this.label17.Size = new System.Drawing.Size(76, 13);
312 | this.label17.TabIndex = 56;
313 | this.label17.Text = "Antecedentes:";
314 | //
315 | // txtDiagnostico
316 | //
317 | this.txtDiagnostico.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
318 | this.txtDiagnostico.Location = new System.Drawing.Point(15, 418);
319 | this.txtDiagnostico.Name = "txtDiagnostico";
320 | this.txtDiagnostico.Size = new System.Drawing.Size(506, 20);
321 | this.txtDiagnostico.TabIndex = 59;
322 | //
323 | // label7
324 | //
325 | this.label7.AutoSize = true;
326 | this.label7.ForeColor = System.Drawing.SystemColors.ControlText;
327 | this.label7.Location = new System.Drawing.Point(12, 402);
328 | this.label7.Name = "label7";
329 | this.label7.Size = new System.Drawing.Size(66, 13);
330 | this.label7.TabIndex = 58;
331 | this.label7.Text = "Diagnostico:";
332 | //
333 | // label15
334 | //
335 | this.label15.AutoSize = true;
336 | this.label15.ForeColor = System.Drawing.SystemColors.ControlText;
337 | this.label15.Location = new System.Drawing.Point(10, 189);
338 | this.label15.Name = "label15";
339 | this.label15.Size = new System.Drawing.Size(94, 13);
340 | this.label15.TabIndex = 49;
341 | this.label15.Text = "Signos y sintomas:";
342 | //
343 | // richSignosSintomas
344 | //
345 | this.richSignosSintomas.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
346 | this.richSignosSintomas.Location = new System.Drawing.Point(15, 205);
347 | this.richSignosSintomas.MaxLength = 2147;
348 | this.richSignosSintomas.Name = "richSignosSintomas";
349 | this.richSignosSintomas.Size = new System.Drawing.Size(506, 45);
350 | this.richSignosSintomas.TabIndex = 50;
351 | this.richSignosSintomas.Text = "";
352 | //
353 | // richPresMedica
354 | //
355 | this.richPresMedica.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
356 | this.richPresMedica.Location = new System.Drawing.Point(15, 465);
357 | this.richPresMedica.Name = "richPresMedica";
358 | this.richPresMedica.Size = new System.Drawing.Size(506, 64);
359 | this.richPresMedica.TabIndex = 61;
360 | this.richPresMedica.Text = "";
361 | //
362 | // label8
363 | //
364 | this.label8.AutoSize = true;
365 | this.label8.ForeColor = System.Drawing.SystemColors.ControlText;
366 | this.label8.Location = new System.Drawing.Point(12, 449);
367 | this.label8.Name = "label8";
368 | this.label8.Size = new System.Drawing.Size(106, 13);
369 | this.label8.TabIndex = 60;
370 | this.label8.Text = "Prescripción Médica:";
371 | //
372 | // btnSeleccionarPaciente
373 | //
374 | this.btnSeleccionarPaciente.Location = new System.Drawing.Point(15, 95);
375 | this.btnSeleccionarPaciente.Name = "btnSeleccionarPaciente";
376 | this.btnSeleccionarPaciente.Size = new System.Drawing.Size(118, 23);
377 | this.btnSeleccionarPaciente.TabIndex = 62;
378 | this.btnSeleccionarPaciente.Text = "Seleccionar paciente";
379 | this.btnSeleccionarPaciente.UseVisualStyleBackColor = true;
380 | this.btnSeleccionarPaciente.Click += new System.EventHandler(this.btnSeleccionarPaciente_Click);
381 | //
382 | // txtCodigoPaciente
383 | //
384 | this.txtCodigoPaciente.Enabled = false;
385 | this.txtCodigoPaciente.Location = new System.Drawing.Point(139, 97);
386 | this.txtCodigoPaciente.Name = "txtCodigoPaciente";
387 | this.txtCodigoPaciente.ReadOnly = true;
388 | this.txtCodigoPaciente.Size = new System.Drawing.Size(52, 20);
389 | this.txtCodigoPaciente.TabIndex = 63;
390 | this.txtCodigoPaciente.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
391 | //
392 | // label2
393 | //
394 | this.label2.AutoSize = true;
395 | this.label2.ForeColor = System.Drawing.SystemColors.ControlText;
396 | this.label2.Location = new System.Drawing.Point(139, 81);
397 | this.label2.Name = "label2";
398 | this.label2.Size = new System.Drawing.Size(43, 13);
399 | this.label2.TabIndex = 64;
400 | this.label2.Text = "Codigo:";
401 | //
402 | // label18
403 | //
404 | this.label18.AutoSize = true;
405 | this.label18.ForeColor = System.Drawing.SystemColors.ControlDarkDark;
406 | this.label18.Location = new System.Drawing.Point(12, 118);
407 | this.label18.Name = "label18";
408 | this.label18.Size = new System.Drawing.Size(514, 13);
409 | this.label18.TabIndex = 65;
410 | this.label18.Text = "................................................................................." +
411 | "................................................................................" +
412 | "........";
413 | //
414 | // button2
415 | //
416 | this.button2.Enabled = false;
417 | this.button2.Location = new System.Drawing.Point(271, 276);
418 | this.button2.Name = "button2";
419 | this.button2.Size = new System.Drawing.Size(182, 23);
420 | this.button2.TabIndex = 66;
421 | this.button2.Text = "Seleccionar Encargado";
422 | this.button2.UseVisualStyleBackColor = true;
423 | //
424 | // pictureBox1
425 | //
426 | this.pictureBox1.Image = global::capaPresentacion.Properties.Resources.Creciendo_Sanos_y_Felices_LOGO;
427 | this.pictureBox1.Location = new System.Drawing.Point(13, 12);
428 | this.pictureBox1.Name = "pictureBox1";
429 | this.pictureBox1.Size = new System.Drawing.Size(50, 50);
430 | this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
431 | this.pictureBox1.TabIndex = 20;
432 | this.pictureBox1.TabStop = false;
433 | //
434 | // numTiempo
435 | //
436 | this.numTiempo.Location = new System.Drawing.Point(459, 156);
437 | this.numTiempo.Name = "numTiempo";
438 | this.numTiempo.Size = new System.Drawing.Size(62, 20);
439 | this.numTiempo.TabIndex = 67;
440 | //
441 | // formHistoriaClinica
442 | //
443 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
444 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
445 | this.ClientSize = new System.Drawing.Size(533, 580);
446 | this.Controls.Add(this.numTiempo);
447 | this.Controls.Add(this.button2);
448 | this.Controls.Add(this.label18);
449 | this.Controls.Add(this.label2);
450 | this.Controls.Add(this.txtCodigoPaciente);
451 | this.Controls.Add(this.btnSeleccionarPaciente);
452 | this.Controls.Add(this.richPresMedica);
453 | this.Controls.Add(this.label8);
454 | this.Controls.Add(this.txtDiagnostico);
455 | this.Controls.Add(this.label7);
456 | this.Controls.Add(this.richAntecedentes);
457 | this.Controls.Add(this.label17);
458 | this.Controls.Add(this.txtRelato);
459 | this.Controls.Add(this.label16);
460 | this.Controls.Add(this.txtExamenFisico);
461 | this.Controls.Add(this.richSignosSintomas);
462 | this.Controls.Add(this.label15);
463 | this.Controls.Add(this.label14);
464 | this.Controls.Add(this.txtPresionArterial);
465 | this.Controls.Add(this.label13);
466 | this.Controls.Add(this.txtTemperatura);
467 | this.Controls.Add(this.label12);
468 | this.Controls.Add(this.txtFrecCard);
469 | this.Controls.Add(this.label11);
470 | this.Controls.Add(this.txtFrecResp);
471 | this.Controls.Add(this.label10);
472 | this.Controls.Add(this.label9);
473 | this.Controls.Add(this.btnLimpiarCampos);
474 | this.Controls.Add(this.btnRegistrarHistoria);
475 | this.Controls.Add(this.label6);
476 | this.Controls.Add(this.dtFecha);
477 | this.Controls.Add(this.label5);
478 | this.Controls.Add(this.txtTalla);
479 | this.Controls.Add(this.label4);
480 | this.Controls.Add(this.txtPeso);
481 | this.Controls.Add(this.label3);
482 | this.Controls.Add(this.txtEdad);
483 | this.Controls.Add(this.label1);
484 | this.Controls.Add(this.pictureBox1);
485 | this.Name = "formHistoriaClinica";
486 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
487 | this.Text = "Historia Clinica - Registrar";
488 | this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.formHistoriaClinica_KeyDown);
489 | ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
490 | ((System.ComponentModel.ISupportInitialize)(this.numTiempo)).EndInit();
491 | this.ResumeLayout(false);
492 | this.PerformLayout();
493 |
494 | }
495 |
496 | #endregion
497 | private System.Windows.Forms.Button btnLimpiarCampos;
498 | private System.Windows.Forms.Button btnRegistrarHistoria;
499 | private System.Windows.Forms.DateTimePicker dtFecha;
500 | private System.Windows.Forms.Label label5;
501 | private System.Windows.Forms.TextBox txtTalla;
502 | private System.Windows.Forms.Label label4;
503 | private System.Windows.Forms.TextBox txtPeso;
504 | private System.Windows.Forms.Label label3;
505 | private System.Windows.Forms.TextBox txtEdad;
506 | private System.Windows.Forms.Label label1;
507 | private System.Windows.Forms.PictureBox pictureBox1;
508 | private System.Windows.Forms.Label label9;
509 | private System.Windows.Forms.Label label10;
510 | private System.Windows.Forms.TextBox txtFrecResp;
511 | private System.Windows.Forms.TextBox txtFrecCard;
512 | private System.Windows.Forms.Label label11;
513 | private System.Windows.Forms.TextBox txtTemperatura;
514 | private System.Windows.Forms.Label label12;
515 | private System.Windows.Forms.Label label13;
516 | private System.Windows.Forms.TextBox txtPresionArterial;
517 | private System.Windows.Forms.Label label14;
518 | private System.Windows.Forms.RichTextBox txtExamenFisico;
519 | private System.Windows.Forms.Label label6;
520 | private System.Windows.Forms.Label label16;
521 | private System.Windows.Forms.TextBox txtRelato;
522 | private System.Windows.Forms.RichTextBox richAntecedentes;
523 | private System.Windows.Forms.Label label17;
524 | private System.Windows.Forms.TextBox txtDiagnostico;
525 | private System.Windows.Forms.Label label7;
526 | private System.Windows.Forms.Label label15;
527 | private System.Windows.Forms.RichTextBox richSignosSintomas;
528 | private System.Windows.Forms.RichTextBox richPresMedica;
529 | private System.Windows.Forms.Label label8;
530 | private System.Windows.Forms.Button btnSeleccionarPaciente;
531 | private System.Windows.Forms.TextBox txtCodigoPaciente;
532 | private System.Windows.Forms.Label label2;
533 | private System.Windows.Forms.Label label18;
534 | private System.Windows.Forms.Button button2;
535 | private System.Windows.Forms.NumericUpDown numTiempo;
536 | }
537 | }
--------------------------------------------------------------------------------