diff --git a/.vs/compabetov2.csproj.dtbcache.json b/.vs/compabetov2.csproj.dtbcache.json index ab37ed8..f438667 100644 --- a/.vs/compabetov2.csproj.dtbcache.json +++ b/.vs/compabetov2.csproj.dtbcache.json @@ -1 +1 @@ -{"RootPath":"C:\\Users\\Googl\\Source\\Repos\\aspermaster23yeh\\compabetoOG","ProjectFileName":"compabetov2.csproj","Configuration":"Debug|AnyCPU","FrameworkPath":"","Sources":[{"SourceFile":"admin\\addvariante.cs"},{"SourceFile":"admin\\addvariante.Designer.cs"},{"SourceFile":"admin\\agregarproducto.cs"},{"SourceFile":"admin\\agregarproducto.Designer.cs"},{"SourceFile":"admin\\crud.cs"},{"SourceFile":"admin\\crud.Designer.cs"},{"SourceFile":"admin\\editar.cs"},{"SourceFile":"admin\\editar.Designer.cs"},{"SourceFile":"database\\modelos\\DetalleEnvioModel.cs"},{"SourceFile":"database\\modelos\\DetalleImporte.cs"},{"SourceFile":"database\\modelos\\DetalleImporteCuenta.cs"},{"SourceFile":"database\\modelos\\DetalleImporteEnvio.cs"},{"SourceFile":"database\\modelos\\Envio.cs"},{"SourceFile":"database\\modelos\\ImporteModel.cs"},{"SourceFile":"database\\modelos\\Variante.cs"},{"SourceFile":"Empleados\\AgregarEmpleado1.cs"},{"SourceFile":"Empleados\\AgregarEmpleado1.Designer.cs"},{"SourceFile":"Empleados\\AgregarLogin1.cs"},{"SourceFile":"Empleados\\AgregarLogin1.Designer.cs"},{"SourceFile":"Empleados\\EditarEmpleado1.cs"},{"SourceFile":"Empleados\\EditarEmpleado1.Designer.cs"},{"SourceFile":"Estadiscticas.cs"},{"SourceFile":"Estadiscticas.Designer.cs"},{"SourceFile":"Merma\\ActualizarMerma.cs"},{"SourceFile":"Merma\\ActualizarMerma.Designer.cs"},{"SourceFile":"Empleados\\AgregarEmpleado.cs"},{"SourceFile":"Empleados\\AgregarEmpleado.Designer.cs"},{"SourceFile":"Empleados\\AgregarLogin.cs"},{"SourceFile":"Empleados\\AgregarLogin.Designer.cs"},{"SourceFile":"Merma\\agregarmermas.cs"},{"SourceFile":"Merma\\agregarmermas.Designer.cs"},{"SourceFile":"Cuentas\\cuentas.cs"},{"SourceFile":"Cuentas\\cuentas.Designer.cs"},{"SourceFile":"database\\conexion.cs"},{"SourceFile":"database\\DAO.cs"},{"SourceFile":"database\\modelos\\Categoria.cs"},{"SourceFile":"database\\modelos\\Cliente.cs"},{"SourceFile":"database\\modelos\\Cuenta.cs"},{"SourceFile":"database\\modelos\\DetalleCuentaModel.cs"},{"SourceFile":"database\\modelos\\DetalleVentaModel.cs"},{"SourceFile":"database\\modelos\\Empleado.cs"},{"SourceFile":"database\\modelos\\LoginModel.cs"},{"SourceFile":"database\\modelos\\Merma.cs"},{"SourceFile":"database\\modelos\\Producto.cs"},{"SourceFile":"database\\modelos\\usuario.cs"},{"SourceFile":"database\\modelos\\VentaModel.cs"},{"SourceFile":"database\\service.cs"},{"SourceFile":"Empleados\\EditarEmpleado.cs"},{"SourceFile":"Empleados\\EditarEmpleado.Designer.cs"},{"SourceFile":"Envios\\envios.cs"},{"SourceFile":"Envios\\envios.Designer.cs"},{"SourceFile":"Inventario\\inventario.cs"},{"SourceFile":"Inventario\\inventario.Designer.cs"},{"SourceFile":"Principal\\login.cs"},{"SourceFile":"Principal\\login.Designer.cs"},{"SourceFile":"Principal\\MenuPrincipal.cs"},{"SourceFile":"Principal\\MenuPrincipal.Designer.cs"},{"SourceFile":"Merma\\mermas.cs"},{"SourceFile":"Merma\\mermas.Designer.cs"},{"SourceFile":"Empleados\\ModificarContra.cs"},{"SourceFile":"Empleados\\ModificarContra.Designer.cs"},{"SourceFile":"Empleados\\personal.cs"},{"SourceFile":"Empleados\\personal.Designer.cs"},{"SourceFile":"Empleados\\preguntaLogin.cs"},{"SourceFile":"Empleados\\preguntaLogin.Designer.cs"},{"SourceFile":"Program.cs"},{"SourceFile":"Properties\\AssemblyInfo.cs"},{"SourceFile":"SqlServerTypes\\Loader.cs"},{"SourceFile":"Ventas\\datosCuenta.cs"},{"SourceFile":"Ventas\\datosCuenta.Designer.cs"},{"SourceFile":"Ventas\\datosEnvio.cs"},{"SourceFile":"Ventas\\datosEnvio.Designer.cs"},{"SourceFile":"Ventas\\Importe.cs"},{"SourceFile":"Ventas\\Importe.Designer.cs"},{"SourceFile":"Ventas\\Importe1.cs"},{"SourceFile":"Ventas\\Importe1.Designer.cs"},{"SourceFile":"Ventas\\vender.cs"},{"SourceFile":"Ventas\\vender.Designer.cs"},{"SourceFile":"Merma\\verMerma.cs"},{"SourceFile":"Merma\\verMerma.Designer.cs"},{"SourceFile":"Properties\\Resources.Designer.cs"},{"SourceFile":"Properties\\Settings.Designer.cs"},{"SourceFile":"obj\\Debug\\.NETFramework,Version=v4.7.2.AssemblyAttributes.cs"}],"References":[{"Reference":"C:\\Users\\Googl\\Source\\Repos\\aspermaster23yeh\\compabetoOG\\packages\\EntityFramework.6.4.4\\lib\\net45\\EntityFramework.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Users\\Googl\\Source\\Repos\\aspermaster23yeh\\compabetoOG\\packages\\EntityFramework.6.4.4\\lib\\net45\\EntityFramework.SqlServer.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\Microsoft.CSharp.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Users\\Googl\\Source\\Repos\\aspermaster23yeh\\compabetoOG\\packages\\Microsoft.SqlServer.Types.14.0.314.76\\lib\\net40\\Microsoft.SqlServer.Types.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\mscorlib.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.ComponentModel.DataAnnotations.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Data.DataSetExtensions.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Data.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Users\\Googl\\Source\\Repos\\aspermaster23yeh\\compabetoOG\\packages\\Stub.System.Data.SQLite.Core.NetFramework.1.0.118.0\\lib\\net46\\System.Data.SQLite.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Users\\Googl\\Source\\Repos\\aspermaster23yeh\\compabetoOG\\packages\\System.Data.SQLite.EF6.1.0.118.0\\lib\\net46\\System.Data.SQLite.EF6.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Users\\Googl\\Source\\Repos\\aspermaster23yeh\\compabetoOG\\packages\\System.Data.SQLite.Linq.1.0.118.0\\lib\\net46\\System.Data.SQLite.Linq.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Deployment.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Drawing.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Net.Http.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Windows.Forms.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Xml.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Xml.Linq.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""}],"Analyzers":[],"Outputs":[{"OutputItemFullPath":"C:\\Users\\Googl\\Source\\Repos\\aspermaster23yeh\\compabetoOG\\bin\\Debug\\compabetov2.exe","OutputItemRelativePath":"compabetov2.exe"},{"OutputItemFullPath":"C:\\Users\\Googl\\Source\\Repos\\aspermaster23yeh\\compabetoOG\\bin\\Debug\\compabetov2.pdb","OutputItemRelativePath":"compabetov2.pdb"}],"CopyToOutputEntries":[]} \ No newline at end of file +{"RootPath":"C:\\Users\\carsu\\source\\repos\\compabetoOG","ProjectFileName":"compabetov2.csproj","Configuration":"Debug|AnyCPU","FrameworkPath":"","Sources":[{"SourceFile":"admin\\addvariante.cs"},{"SourceFile":"admin\\addvariante.Designer.cs"},{"SourceFile":"admin\\agregarproducto.cs"},{"SourceFile":"admin\\agregarproducto.Designer.cs"},{"SourceFile":"admin\\crud.cs"},{"SourceFile":"admin\\crud.Designer.cs"},{"SourceFile":"admin\\editar.cs"},{"SourceFile":"admin\\editar.Designer.cs"},{"SourceFile":"admin\\editarvariante.cs"},{"SourceFile":"admin\\editarvariante.Designer.cs"},{"SourceFile":"admin\\Variantes.cs"},{"SourceFile":"admin\\Variantes.Designer.cs"},{"SourceFile":"database\\modelos\\DetalleEnvioModel.cs"},{"SourceFile":"database\\modelos\\DetalleImporte.cs"},{"SourceFile":"database\\modelos\\DetalleImporteCuenta.cs"},{"SourceFile":"database\\modelos\\DetalleImporteEnvio.cs"},{"SourceFile":"database\\modelos\\Envio.cs"},{"SourceFile":"database\\modelos\\ImporteModel.cs"},{"SourceFile":"database\\modelos\\Variante.cs"},{"SourceFile":"Empleados\\AgregarEmpleado1.cs"},{"SourceFile":"Empleados\\AgregarEmpleado1.Designer.cs"},{"SourceFile":"Empleados\\AgregarLogin1.cs"},{"SourceFile":"Empleados\\AgregarLogin1.Designer.cs"},{"SourceFile":"Empleados\\EditarEmpleado1.cs"},{"SourceFile":"Empleados\\EditarEmpleado1.Designer.cs"},{"SourceFile":"Estadiscticas.cs"},{"SourceFile":"Estadiscticas.Designer.cs"},{"SourceFile":"Merma\\ActualizarMerma.cs"},{"SourceFile":"Merma\\ActualizarMerma.Designer.cs"},{"SourceFile":"Empleados\\AgregarEmpleado.cs"},{"SourceFile":"Empleados\\AgregarEmpleado.Designer.cs"},{"SourceFile":"Empleados\\AgregarLogin.cs"},{"SourceFile":"Empleados\\AgregarLogin.Designer.cs"},{"SourceFile":"Merma\\agregarmermas.cs"},{"SourceFile":"Merma\\agregarmermas.Designer.cs"},{"SourceFile":"Cuentas\\cuentas.cs"},{"SourceFile":"Cuentas\\cuentas.Designer.cs"},{"SourceFile":"database\\conexion.cs"},{"SourceFile":"database\\DAO.cs"},{"SourceFile":"database\\modelos\\Categoria.cs"},{"SourceFile":"database\\modelos\\Cliente.cs"},{"SourceFile":"database\\modelos\\Cuenta.cs"},{"SourceFile":"database\\modelos\\DetalleCuentaModel.cs"},{"SourceFile":"database\\modelos\\DetalleVentaModel.cs"},{"SourceFile":"database\\modelos\\Empleado.cs"},{"SourceFile":"database\\modelos\\LoginModel.cs"},{"SourceFile":"database\\modelos\\Merma.cs"},{"SourceFile":"database\\modelos\\Producto.cs"},{"SourceFile":"database\\modelos\\usuario.cs"},{"SourceFile":"database\\modelos\\VentaModel.cs"},{"SourceFile":"database\\service.cs"},{"SourceFile":"Empleados\\EditarEmpleado.cs"},{"SourceFile":"Empleados\\EditarEmpleado.Designer.cs"},{"SourceFile":"Envios\\envios.cs"},{"SourceFile":"Envios\\envios.Designer.cs"},{"SourceFile":"Inventario\\inventario.cs"},{"SourceFile":"Inventario\\inventario.Designer.cs"},{"SourceFile":"Principal\\login.cs"},{"SourceFile":"Principal\\login.Designer.cs"},{"SourceFile":"Principal\\MenuPrincipal.cs"},{"SourceFile":"Principal\\MenuPrincipal.Designer.cs"},{"SourceFile":"Merma\\mermas.cs"},{"SourceFile":"Merma\\mermas.Designer.cs"},{"SourceFile":"Empleados\\ModificarContra.cs"},{"SourceFile":"Empleados\\ModificarContra.Designer.cs"},{"SourceFile":"Empleados\\personal.cs"},{"SourceFile":"Empleados\\personal.Designer.cs"},{"SourceFile":"Empleados\\preguntaLogin.cs"},{"SourceFile":"Empleados\\preguntaLogin.Designer.cs"},{"SourceFile":"Program.cs"},{"SourceFile":"Properties\\AssemblyInfo.cs"},{"SourceFile":"RegistroVentas.cs"},{"SourceFile":"RegistroVentas.Designer.cs"},{"SourceFile":"SqlServerTypes\\Loader.cs"},{"SourceFile":"Ventas\\datosCuenta.cs"},{"SourceFile":"Ventas\\datosCuenta.Designer.cs"},{"SourceFile":"Ventas\\datosEnvio.cs"},{"SourceFile":"Ventas\\datosEnvio.Designer.cs"},{"SourceFile":"Ventas\\Importe.cs"},{"SourceFile":"Ventas\\Importe.Designer.cs"},{"SourceFile":"Ventas\\Importe1.cs"},{"SourceFile":"Ventas\\Importe1.Designer.cs"},{"SourceFile":"Ventas\\vender.cs"},{"SourceFile":"Ventas\\vender.Designer.cs"},{"SourceFile":"Merma\\verMerma.cs"},{"SourceFile":"Merma\\verMerma.Designer.cs"},{"SourceFile":"Properties\\Resources.Designer.cs"},{"SourceFile":"Properties\\Settings.Designer.cs"},{"SourceFile":"obj\\Debug\\.NETFramework,Version=v4.7.2.AssemblyAttributes.cs"}],"References":[{"Reference":"C:\\Users\\carsu\\source\\repos\\compabetoOG\\packages\\EntityFramework.6.4.4\\lib\\net45\\EntityFramework.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Users\\carsu\\source\\repos\\compabetoOG\\packages\\EntityFramework.6.4.4\\lib\\net45\\EntityFramework.SqlServer.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\Microsoft.CSharp.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Users\\carsu\\source\\repos\\compabetoOG\\packages\\Microsoft.SqlServer.Types.14.0.314.76\\lib\\net40\\Microsoft.SqlServer.Types.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\mscorlib.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.ComponentModel.DataAnnotations.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Data.DataSetExtensions.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Data.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Users\\carsu\\source\\repos\\compabetoOG\\packages\\Stub.System.Data.SQLite.Core.NetFramework.1.0.118.0\\lib\\net46\\System.Data.SQLite.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Users\\carsu\\source\\repos\\compabetoOG\\packages\\System.Data.SQLite.EF6.1.0.118.0\\lib\\net46\\System.Data.SQLite.EF6.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Users\\carsu\\source\\repos\\compabetoOG\\packages\\System.Data.SQLite.Linq.1.0.118.0\\lib\\net46\\System.Data.SQLite.Linq.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Deployment.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Drawing.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Net.Http.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Windows.Forms.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Xml.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Xml.Linq.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""}],"Analyzers":[],"Outputs":[{"OutputItemFullPath":"C:\\Users\\carsu\\source\\repos\\compabetoOG\\bin\\Debug\\compabetov2.exe","OutputItemRelativePath":"compabetov2.exe"},{"OutputItemFullPath":"C:\\Users\\carsu\\source\\repos\\compabetoOG\\bin\\Debug\\compabetov2.pdb","OutputItemRelativePath":"compabetov2.pdb"}],"CopyToOutputEntries":[]} \ No newline at end of file diff --git a/RegistroVentas.Designer.cs b/RegistroVentas.Designer.cs index 879cde4..8959325 100644 --- a/RegistroVentas.Designer.cs +++ b/RegistroVentas.Designer.cs @@ -33,6 +33,8 @@ this.btnMenos = new System.Windows.Forms.Button(); this.btnMas = new System.Windows.Forms.Button(); this.button1 = new System.Windows.Forms.Button(); + this.pictureBox1 = new System.Windows.Forms.PictureBox(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); this.SuspendLayout(); // // panelVentas @@ -91,6 +93,18 @@ this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.button1_Click); // + // pictureBox1 + // + this.pictureBox1.BackColor = System.Drawing.Color.Transparent; + this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.pictureBox1.Image = global::compabetov2.Properties.Resources.cancel1; + this.pictureBox1.Location = new System.Drawing.Point(1182, 12); + this.pictureBox1.Name = "pictureBox1"; + this.pictureBox1.Size = new System.Drawing.Size(100, 69); + this.pictureBox1.TabIndex = 22; + this.pictureBox1.TabStop = false; + this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click); + // // RegistroVentas // this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); @@ -100,6 +114,7 @@ this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.ClientSize = new System.Drawing.Size(1294, 1077); this.ControlBox = false; + this.Controls.Add(this.pictureBox1); this.Controls.Add(this.button1); this.Controls.Add(this.btnMas); this.Controls.Add(this.btnMenos); @@ -111,6 +126,7 @@ this.Name = "RegistroVentas"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Load += new System.EventHandler(this.RegistroVentas_Load); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); @@ -123,5 +139,6 @@ private System.Windows.Forms.Button btnMenos; private System.Windows.Forms.Button btnMas; private System.Windows.Forms.Button button1; + private System.Windows.Forms.PictureBox pictureBox1; } } \ No newline at end of file diff --git a/RegistroVentas.cs b/RegistroVentas.cs index eb52eb3..fa9ce16 100644 --- a/RegistroVentas.cs +++ b/RegistroVentas.cs @@ -163,5 +163,10 @@ namespace compabetov2 { Close(); } + + private void pictureBox1_Click(object sender, EventArgs e) + { + Close(); + } } } diff --git a/admin/AgregarImporte.Designer.cs b/admin/AgregarImporte.Designer.cs new file mode 100644 index 0000000..8393c54 --- /dev/null +++ b/admin/AgregarImporte.Designer.cs @@ -0,0 +1,140 @@ +namespace compabetov2.admin +{ + partial class AgregarImporte + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.label1 = new System.Windows.Forms.Label(); + this.txtNombre = new System.Windows.Forms.TextBox(); + this.txtPrecio = new System.Windows.Forms.TextBox(); + this.lbPrecio = new System.Windows.Forms.Label(); + this.button1 = new System.Windows.Forms.Button(); + this.lbImg = new System.Windows.Forms.Label(); + this.button2 = new System.Windows.Forms.Button(); + this.SuspendLayout(); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label1.Location = new System.Drawing.Point(202, 117); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(79, 24); + this.label1.TabIndex = 0; + this.label1.Text = "Nombre"; + // + // txtNombre + // + this.txtNombre.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.txtNombre.Location = new System.Drawing.Point(206, 157); + this.txtNombre.Name = "txtNombre"; + this.txtNombre.Size = new System.Drawing.Size(323, 29); + this.txtNombre.TabIndex = 1; + // + // txtPrecio + // + this.txtPrecio.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.txtPrecio.Location = new System.Drawing.Point(206, 246); + this.txtPrecio.Name = "txtPrecio"; + this.txtPrecio.Size = new System.Drawing.Size(323, 29); + this.txtPrecio.TabIndex = 3; + // + // lbPrecio + // + this.lbPrecio.AutoSize = true; + this.lbPrecio.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lbPrecio.Location = new System.Drawing.Point(202, 206); + this.lbPrecio.Name = "lbPrecio"; + this.lbPrecio.Size = new System.Drawing.Size(64, 24); + this.lbPrecio.TabIndex = 2; + this.lbPrecio.Text = "Precio"; + // + // button1 + // + this.button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.button1.ForeColor = System.Drawing.SystemColors.ActiveCaptionText; + this.button1.Location = new System.Drawing.Point(206, 309); + this.button1.Margin = new System.Windows.Forms.Padding(2); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(77, 37); + this.button1.TabIndex = 56; + this.button1.Text = "Subir"; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // lbImg + // + this.lbImg.AutoSize = true; + this.lbImg.BackColor = System.Drawing.Color.Transparent; + this.lbImg.Font = new System.Drawing.Font("Microsoft Sans Serif", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lbImg.ForeColor = System.Drawing.Color.Transparent; + this.lbImg.Location = new System.Drawing.Point(288, 314); + this.lbImg.Name = "lbImg"; + this.lbImg.Size = new System.Drawing.Size(78, 24); + this.lbImg.TabIndex = 55; + this.lbImg.Text = "Imagen:"; + // + // button2 + // + this.button2.Location = new System.Drawing.Point(254, 393); + this.button2.Name = "button2"; + this.button2.Size = new System.Drawing.Size(75, 23); + this.button2.TabIndex = 57; + this.button2.Text = "button2"; + this.button2.UseVisualStyleBackColor = true; + this.button2.Click += new System.EventHandler(this.button2_Click); + // + // AgregarImporte + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(800, 450); + this.Controls.Add(this.button2); + this.Controls.Add(this.button1); + this.Controls.Add(this.lbImg); + this.Controls.Add(this.txtPrecio); + this.Controls.Add(this.lbPrecio); + this.Controls.Add(this.txtNombre); + this.Controls.Add(this.label1); + this.Name = "AgregarImporte"; + this.Text = "AgregarImporte"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Label label1; + private System.Windows.Forms.TextBox txtNombre; + private System.Windows.Forms.TextBox txtPrecio; + private System.Windows.Forms.Label lbPrecio; + private System.Windows.Forms.Button button1; + private System.Windows.Forms.Label lbImg; + private System.Windows.Forms.Button button2; + } +} \ No newline at end of file diff --git a/admin/AgregarImporte.cs b/admin/AgregarImporte.cs new file mode 100644 index 0000000..6a07ea6 --- /dev/null +++ b/admin/AgregarImporte.cs @@ -0,0 +1,59 @@ +using compabetov2.database.modelos; +using compabetov2.Ventas; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace compabetov2.admin +{ + public partial class AgregarImporte : Form + { + private string imagePath; + private visualizarImportes ventanaPadre; + public AgregarImporte(visualizarImportes ventanaPadre) + { + InitializeComponent(); + this.ventanaPadre = ventanaPadre; + } + + + + private void button1_Click(object sender, EventArgs e) + { + OpenFileDialog openFileDialog1 = new OpenFileDialog(); + + openFileDialog1.Filter = "Archivos de imagen (*.jpg, *.jpeg, *.png, *.bmp)|*.jpg;*.jpeg;*.png;*.bmp"; + openFileDialog1.Title = "Seleccionar imagen"; + + if (openFileDialog1.ShowDialog() == DialogResult.OK) + { + imagePath = openFileDialog1.FileName; + lbImg.Text = $"Imagen: {Path.GetFileName(imagePath)}"; + } + } + + private void button2_Click(object sender, EventArgs e) + { + try + { + string nombre = txtNombre.Text; + decimal precio = decimal.Parse(txtPrecio.Text); + + ImporteModel importe = new ImporteModel(-1, nombre, precio, Path.GetFileName(imagePath)); + + } + catch + { + MessageBox.Show("Por favor introduzca un precio valido", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); + + } + } + } +} diff --git a/admin/AgregarImporte.resx b/admin/AgregarImporte.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/admin/AgregarImporte.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/admin/crud.Designer.cs b/admin/crud.Designer.cs index 7061e8e..8837fd1 100644 --- a/admin/crud.Designer.cs +++ b/admin/crud.Designer.cs @@ -28,6 +28,8 @@ /// private void InitializeComponent() { + this.AdminPanel = new System.Windows.Forms.FlowLayoutPanel(); + this.btnAgregar = new System.Windows.Forms.Button(); this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); this.panel2 = new System.Windows.Forms.Panel(); this.pictureBox7 = new System.Windows.Forms.PictureBox(); @@ -35,13 +37,32 @@ this.button2 = new System.Windows.Forms.Button(); this.button3 = new System.Windows.Forms.Button(); this.button5 = new System.Windows.Forms.Button(); - this.AdminPanel = new System.Windows.Forms.FlowLayoutPanel(); - this.btnAgregar = new System.Windows.Forms.Button(); this.flowLayoutPanel1.SuspendLayout(); this.panel2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox7)).BeginInit(); this.SuspendLayout(); // + // AdminPanel + // + this.AdminPanel.AutoScroll = true; + this.AdminPanel.BackColor = System.Drawing.SystemColors.Control; + this.AdminPanel.Location = new System.Drawing.Point(308, 189); + this.AdminPanel.Name = "AdminPanel"; + this.AdminPanel.Size = new System.Drawing.Size(1146, 615); + this.AdminPanel.TabIndex = 14; + // + // btnAgregar + // + this.btnAgregar.Font = new System.Drawing.Font("Microsoft Sans Serif", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnAgregar.Location = new System.Drawing.Point(813, 125); + this.btnAgregar.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.btnAgregar.Name = "btnAgregar"; + this.btnAgregar.Size = new System.Drawing.Size(90, 36); + this.btnAgregar.TabIndex = 15; + this.btnAgregar.Text = "Agregar"; + this.btnAgregar.UseVisualStyleBackColor = true; + this.btnAgregar.Click += new System.EventHandler(this.btnAgregar_Click); + // // flowLayoutPanel1 // this.flowLayoutPanel1.BackgroundImage = global::compabetov2.Properties.Resources.rec; @@ -51,26 +72,26 @@ this.flowLayoutPanel1.Controls.Add(this.button3); this.flowLayoutPanel1.Controls.Add(this.button5); this.flowLayoutPanel1.Location = new System.Drawing.Point(0, -1); - this.flowLayoutPanel1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.flowLayoutPanel1.Margin = new System.Windows.Forms.Padding(2); this.flowLayoutPanel1.Name = "flowLayoutPanel1"; - this.flowLayoutPanel1.Size = new System.Drawing.Size(324, 1061); + this.flowLayoutPanel1.Size = new System.Drawing.Size(243, 862); this.flowLayoutPanel1.TabIndex = 8; // // panel2 // this.panel2.BackColor = System.Drawing.Color.Transparent; this.panel2.Controls.Add(this.pictureBox7); - this.panel2.Location = new System.Drawing.Point(3, 2); - this.panel2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.panel2.Location = new System.Drawing.Point(2, 2); + this.panel2.Margin = new System.Windows.Forms.Padding(2); this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(312, 263); + this.panel2.Size = new System.Drawing.Size(234, 214); this.panel2.TabIndex = 8; // // pictureBox7 // this.pictureBox7.Image = global::compabetov2.Properties.Resources.HomeroMenu; - this.pictureBox7.Location = new System.Drawing.Point(64, 34); - this.pictureBox7.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.pictureBox7.Location = new System.Drawing.Point(48, 28); + this.pictureBox7.Margin = new System.Windows.Forms.Padding(2); this.pictureBox7.Name = "pictureBox7"; this.pictureBox7.Size = new System.Drawing.Size(190, 197); this.pictureBox7.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; @@ -86,11 +107,11 @@ this.button1.ForeColor = System.Drawing.SystemColors.ButtonHighlight; this.button1.Image = global::compabetov2.Properties.Resources.Menui1; this.button1.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; - this.button1.Location = new System.Drawing.Point(3, 269); - this.button1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.button1.Location = new System.Drawing.Point(2, 220); + this.button1.Margin = new System.Windows.Forms.Padding(2); this.button1.Name = "button1"; - this.button1.Padding = new System.Windows.Forms.Padding(51, 0, 0, 0); - this.button1.Size = new System.Drawing.Size(312, 114); + this.button1.Padding = new System.Windows.Forms.Padding(38, 0, 0, 0); + this.button1.Size = new System.Drawing.Size(234, 93); this.button1.TabIndex = 8; this.button1.Text = "Menú"; this.button1.UseVisualStyleBackColor = false; @@ -105,11 +126,11 @@ this.button2.ForeColor = System.Drawing.SystemColors.ButtonHighlight; this.button2.Image = global::compabetov2.Properties.Resources.estadisticasi; this.button2.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; - this.button2.Location = new System.Drawing.Point(3, 387); - this.button2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.button2.Location = new System.Drawing.Point(2, 317); + this.button2.Margin = new System.Windows.Forms.Padding(2); this.button2.Name = "button2"; - this.button2.Padding = new System.Windows.Forms.Padding(51, 0, 0, 0); - this.button2.Size = new System.Drawing.Size(312, 114); + this.button2.Padding = new System.Windows.Forms.Padding(38, 0, 0, 0); + this.button2.Size = new System.Drawing.Size(234, 93); this.button2.TabIndex = 9; this.button2.Text = "Reportes"; this.button2.UseVisualStyleBackColor = false; @@ -124,11 +145,11 @@ this.button3.ForeColor = System.Drawing.SystemColors.ButtonHighlight; this.button3.Image = global::compabetov2.Properties.Resources.productoi; this.button3.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; - this.button3.Location = new System.Drawing.Point(3, 505); - this.button3.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.button3.Location = new System.Drawing.Point(2, 414); + this.button3.Margin = new System.Windows.Forms.Padding(2); this.button3.Name = "button3"; - this.button3.Padding = new System.Windows.Forms.Padding(51, 0, 0, 0); - this.button3.Size = new System.Drawing.Size(312, 114); + this.button3.Padding = new System.Windows.Forms.Padding(38, 0, 0, 0); + this.button3.Size = new System.Drawing.Size(234, 93); this.button3.TabIndex = 10; this.button3.Text = "Productos"; this.button3.UseVisualStyleBackColor = false; @@ -142,47 +163,27 @@ this.button5.ForeColor = System.Drawing.SystemColors.ButtonHighlight; this.button5.Image = global::compabetov2.Properties.Resources.sesionc; this.button5.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; - this.button5.Location = new System.Drawing.Point(3, 623); - this.button5.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.button5.Location = new System.Drawing.Point(2, 511); + this.button5.Margin = new System.Windows.Forms.Padding(2); this.button5.Name = "button5"; - this.button5.Padding = new System.Windows.Forms.Padding(51, 0, 0, 0); - this.button5.Size = new System.Drawing.Size(312, 114); + this.button5.Padding = new System.Windows.Forms.Padding(38, 0, 0, 0); + this.button5.Size = new System.Drawing.Size(234, 93); this.button5.TabIndex = 12; this.button5.Text = "Salir"; this.button5.UseVisualStyleBackColor = false; this.button5.Click += new System.EventHandler(this.button5_Click); // - // AdminPanel - // - this.AdminPanel.AutoScroll = true; - this.AdminPanel.BackColor = System.Drawing.SystemColors.Control; - this.AdminPanel.Location = new System.Drawing.Point(410, 233); - this.AdminPanel.Margin = new System.Windows.Forms.Padding(4); - this.AdminPanel.Name = "AdminPanel"; - this.AdminPanel.Size = new System.Drawing.Size(1528, 757); - this.AdminPanel.TabIndex = 14; - // - // btnAgregar - // - this.btnAgregar.Font = new System.Drawing.Font("Microsoft Sans Serif", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnAgregar.Location = new System.Drawing.Point(1084, 154); - this.btnAgregar.Name = "btnAgregar"; - this.btnAgregar.Size = new System.Drawing.Size(120, 44); - this.btnAgregar.TabIndex = 15; - this.btnAgregar.Text = "Agregar"; - this.btnAgregar.UseVisualStyleBackColor = true; - this.btnAgregar.Click += new System.EventHandler(this.btnAgregar_Click); - // // crud // - this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(1942, 1037); + this.ClientSize = new System.Drawing.Size(1040, 640); this.ControlBox = false; this.Controls.Add(this.btnAgregar); this.Controls.Add(this.AdminPanel); this.Controls.Add(this.flowLayoutPanel1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; + this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.Name = "crud"; this.ShowIcon = false; this.WindowState = System.Windows.Forms.FormWindowState.Maximized; diff --git a/admin/crud.cs b/admin/crud.cs index f3afbbe..c6d7232 100644 --- a/admin/crud.cs +++ b/admin/crud.cs @@ -209,6 +209,13 @@ namespace compabetov2.admin login.ShowDialog(); this.Dispose(); } + + private void btnImporte_Click(object sender, EventArgs e) + { + visualizarImportes ventana = new visualizarImportes(); + ventana.Owner = this; + ventana.Show(); + } } diff --git a/admin/editarvariante.Designer.cs b/admin/editarvariante.Designer.cs index 7b98dd3..15b56e3 100644 --- a/admin/editarvariante.Designer.cs +++ b/admin/editarvariante.Designer.cs @@ -115,6 +115,7 @@ this.lbImg.Size = new System.Drawing.Size(78, 24); this.lbImg.TabIndex = 53; this.lbImg.Text = "Imagen:"; + this.lbImg.Click += new System.EventHandler(this.lbImg_Click); // // txtCantidad // diff --git a/admin/editarvariante.cs b/admin/editarvariante.cs index 2cc8c6a..2e5d7c0 100644 --- a/admin/editarvariante.cs +++ b/admin/editarvariante.cs @@ -124,5 +124,10 @@ namespace compabetov2.admin { } + + private void lbImg_Click(object sender, EventArgs e) + { + + } } } diff --git a/admin/visualizarImportes.Designer.cs b/admin/visualizarImportes.Designer.cs new file mode 100644 index 0000000..0d77f92 --- /dev/null +++ b/admin/visualizarImportes.Designer.cs @@ -0,0 +1,59 @@ +namespace compabetov2.admin +{ + partial class visualizarImportes + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.panelImporte = new System.Windows.Forms.FlowLayoutPanel(); + this.SuspendLayout(); + // + // panelImporte + // + this.panelImporte.BackColor = System.Drawing.Color.Transparent; + this.panelImporte.Location = new System.Drawing.Point(62, 43); + this.panelImporte.Name = "panelImporte"; + this.panelImporte.Size = new System.Drawing.Size(677, 364); + this.panelImporte.TabIndex = 2; + this.panelImporte.Paint += new System.Windows.Forms.PaintEventHandler(this.panelImporte_Paint); + // + // visualizarImportes + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(800, 450); + this.Controls.Add(this.panelImporte); + this.Name = "visualizarImportes"; + this.Text = "visualizarImportes"; + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.FlowLayoutPanel panelImporte; + } +} \ No newline at end of file diff --git a/admin/visualizarImportes.cs b/admin/visualizarImportes.cs new file mode 100644 index 0000000..2f83195 --- /dev/null +++ b/admin/visualizarImportes.cs @@ -0,0 +1,123 @@ +using compabetov2.database; +using compabetov2.database.modelos; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace compabetov2.admin +{ + public partial class visualizarImportes : Form + { + private List importes; + + public visualizarImportes() + { + InitializeComponent(); + llenarPanel(); + } + + private void llenarPanel() + { + panelImporte.Controls.Clear(); + importes = service.conseguirImportes(); + + foreach (ImporteModel importe in importes) + { + + TableLayoutPanel filaLayout = new TableLayoutPanel(); + filaLayout.RowCount = 1; + filaLayout.ColumnCount = 2; + filaLayout.Height = 100; + filaLayout.Width = 650; + filaLayout.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); + filaLayout.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); + filaLayout.RowStyles.Add(new RowStyle(SizeType.Percent, 100F)); + + TableLayoutPanel informacionProducto = new TableLayoutPanel(); + informacionProducto.RowCount = 1; + informacionProducto.ColumnCount = 2; + informacionProducto.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 20F)); + informacionProducto.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 80F)); + informacionProducto.RowStyles.Add(new RowStyle(SizeType.Percent, 100F)); + informacionProducto.Dock = DockStyle.Fill; + + PictureBox imagen = new PictureBox(); + string rutaImg = Path.Combine(Application.StartupPath, "Resources", importe.img); + imagen.Image = Image.FromFile(rutaImg); + imagen.Dock = DockStyle.Fill; + imagen.BackgroundImageLayout = ImageLayout.Stretch; + imagen.SizeMode = PictureBoxSizeMode.Zoom; + + + Label nombreStock = new Label(); + nombreStock.Text = importe.tipo; + nombreStock.Font = new Font(nombreStock.Font.FontFamily, 16); + nombreStock.Dock = DockStyle.Fill; + nombreStock.TextAlign = ContentAlignment.MiddleCenter; + + //panel de agregar stock + TableLayoutPanel agregarPanel = new TableLayoutPanel(); + agregarPanel.Dock = DockStyle.Fill; + agregarPanel.RowCount = 1; + agregarPanel.ColumnCount = 2; + agregarPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); + agregarPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); + agregarPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 100F)); + + + Button btnEditar = new Button(); + btnEditar.Text = "Editar"; + btnEditar.Width = 150; + btnEditar.Height = 60; + btnEditar.Font = new Font(btnEditar.Font.FontFamily, 14); + btnEditar.ForeColor = Color.White; + btnEditar.FlatStyle = FlatStyle.Flat; + btnEditar.FlatAppearance.BorderSize = 0; + btnEditar.BackColor = Color.FromArgb(33, 90, 255); + btnEditar.Anchor = AnchorStyles.None; + btnEditar.Click += new EventHandler(delegate (object sender, EventArgs e) + { + + }); + + Button btnEliminar = new Button(); + btnEliminar.Text = "Eliminar"; + btnEliminar.Width = 150; + btnEliminar.Height = 60; + btnEliminar.Font = new Font(btnEliminar.Font.FontFamily, 14); + btnEliminar.ForeColor = Color.Black; + btnEliminar.BackColor = Color.Red; + btnEliminar.FlatStyle = FlatStyle.Flat; + btnEliminar.FlatAppearance.BorderSize = 0; + btnEliminar.Anchor = AnchorStyles.None; + btnEliminar.Click += new EventHandler(delegate (object sender, EventArgs e) + { + }); + + + informacionProducto.Controls.Add(imagen, 0, 0); + informacionProducto.Controls.Add(nombreStock, 1, 0); + + agregarPanel.Controls.Add(btnEditar, 0, 0); + agregarPanel.Controls.Add(btnEliminar, 1, 0); + + + filaLayout.Controls.Add(informacionProducto, 0, 0); + filaLayout.Controls.Add(agregarPanel, 1, 0); + panelImporte.Controls.Add(filaLayout); + } + } + + private void panelImporte_Paint(object sender, PaintEventArgs e) + { + + } + } +} diff --git a/admin/visualizarImportes.resx b/admin/visualizarImportes.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/admin/visualizarImportes.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/bin/Debug/compabetov2.exe b/bin/Debug/compabetov2.exe index 5e88b24..068b31b 100644 Binary files a/bin/Debug/compabetov2.exe and b/bin/Debug/compabetov2.exe differ diff --git a/bin/Debug/compabetov2.pdb b/bin/Debug/compabetov2.pdb index 641bfd3..67f7996 100644 Binary files a/bin/Debug/compabetov2.pdb and b/bin/Debug/compabetov2.pdb differ diff --git a/compabetov2.csproj b/compabetov2.csproj index 9fd3e03..c31313f 100644 --- a/compabetov2.csproj +++ b/compabetov2.csproj @@ -112,6 +112,12 @@ addvariante.cs + + Form + + + AgregarImporte.cs + Form @@ -142,6 +148,12 @@ Variantes.cs + + Form + + + visualizarImportes.cs + @@ -320,6 +332,9 @@ addvariante.cs Designer + + AgregarImporte.cs + agregarproducto.cs @@ -335,6 +350,9 @@ Variantes.cs + + visualizarImportes.cs + AgregarEmpleado1.cs diff --git a/database/DAO.cs b/database/DAO.cs index dd9c97e..5c00c03 100644 --- a/database/DAO.cs +++ b/database/DAO.cs @@ -13,6 +13,7 @@ using System.Windows.Forms; using compabetov2.admin; using compabetov2.database; using compabetov2.database.modelos; +using compabetov2.Ventas; namespace compabetov2.database { @@ -1981,6 +1982,33 @@ namespace compabetov2.database } } + public static bool insertarImporteDAO(ImporteModel importe) + { + var db_conexion = new Conexion(); + try + { + SQLiteConnection conexion = db_conexion.get_connection(); + conexion.Open(); + + string sql = "INSERT INTO importe (tipo, precioImporte, img) VALUES(@tipo, @precioImporte, @img); "; + + + SQLiteCommand command = new SQLiteCommand(sql, conexion); + command.Parameters.AddWithValue("@tipo",importe.tipo); + command.Parameters.AddWithValue("@precioImporte", importe.precioImporte); + command.Parameters.AddWithValue("@img",importe.img); + + command.ExecuteNonQuery(); + + return true; + } + catch (SQLiteException ex) + { + MessageBox.Show(ex.Message); + return false; + } + } + private static void crearDB() { var db_conexion = new Conexion(); diff --git a/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/obj/Debug/DesignTimeResolveAssemblyReferences.cache index 10a1a65..d0b7c31 100644 Binary files a/obj/Debug/DesignTimeResolveAssemblyReferences.cache and b/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/obj/Debug/compabetov2.csproj.CoreCompileInputs.cache b/obj/Debug/compabetov2.csproj.CoreCompileInputs.cache index 52fce8f..3a36b37 100644 --- a/obj/Debug/compabetov2.csproj.CoreCompileInputs.cache +++ b/obj/Debug/compabetov2.csproj.CoreCompileInputs.cache @@ -1 +1 @@ -4bc0b21d4c0f19e1e9ae1bfa37f9e96b5658ecea100004a31759a9d5405753d7 +7667a5999934c1a74b47acd40b7c90e3bc381844d0d29d1440ec77954ef70622 diff --git a/obj/Debug/compabetov2.csproj.FileListAbsolute.txt b/obj/Debug/compabetov2.csproj.FileListAbsolute.txt index 18057e1..54089ce 100644 --- a/obj/Debug/compabetov2.csproj.FileListAbsolute.txt +++ b/obj/Debug/compabetov2.csproj.FileListAbsolute.txt @@ -167,3 +167,5 @@ C:\Users\Googl\Source\Repos\aspermaster23yeh\compabetoOG\obj\Debug\compabetov2.a C:\Users\carsu\source\repos\compabetoOG\obj\Debug\compabetov2.admin.editarvariante.resources C:\Users\carsu\source\repos\compabetoOG\obj\Debug\compabetov2.RegistroVentas.resources C:\Users\Googl\Source\Repos\aspermaster23yeh\compabetoOG\obj\Debug\compabetov2.RegistroVentas.resources +C:\Users\carsu\source\repos\compabetoOG\obj\Debug\compabetov2.admin.visualizarImportes.resources +C:\Users\carsu\source\repos\compabetoOG\obj\Debug\compabetov2.admin.AgregarImporte.resources diff --git a/obj/Debug/compabetov2.csproj.GenerateResource.cache b/obj/Debug/compabetov2.csproj.GenerateResource.cache index cac9163..65ab9c3 100644 Binary files a/obj/Debug/compabetov2.csproj.GenerateResource.cache and b/obj/Debug/compabetov2.csproj.GenerateResource.cache differ diff --git a/obj/Debug/compabetov2.exe b/obj/Debug/compabetov2.exe index 5e88b24..068b31b 100644 Binary files a/obj/Debug/compabetov2.exe and b/obj/Debug/compabetov2.exe differ diff --git a/obj/Debug/compabetov2.pdb b/obj/Debug/compabetov2.pdb index 641bfd3..67f7996 100644 Binary files a/obj/Debug/compabetov2.pdb and b/obj/Debug/compabetov2.pdb differ