diff --git a/bin/Debug/compabetov2.exe b/bin/Debug/compabetov2.exe index 96a09a1..31b7ac1 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 17d7a4b..b7eda20 100644 Binary files a/bin/Debug/compabetov2.pdb and b/bin/Debug/compabetov2.pdb differ diff --git a/bin/Debug/data.db b/bin/Debug/data.db index b2db752..ce082d9 100644 Binary files a/bin/Debug/data.db and b/bin/Debug/data.db differ diff --git a/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/obj/Debug/DesignTimeResolveAssemblyReferences.cache index dcd055a..3613537 100644 Binary files a/obj/Debug/DesignTimeResolveAssemblyReferences.cache and b/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/obj/Debug/compabetov2.csproj.GenerateResource.cache b/obj/Debug/compabetov2.csproj.GenerateResource.cache index 60f9a95..679b506 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 96a09a1..31b7ac1 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 17d7a4b..b7eda20 100644 Binary files a/obj/Debug/compabetov2.pdb and b/obj/Debug/compabetov2.pdb differ diff --git a/vender.Designer.cs b/vender.Designer.cs index d029455..71621aa 100644 --- a/vender.Designer.cs +++ b/vender.Designer.cs @@ -50,7 +50,7 @@ this.textBox1 = new System.Windows.Forms.TextBox(); this.textBox2 = new System.Windows.Forms.TextBox(); this.bntImprimir = new System.Windows.Forms.Button(); - this.btnVender = new System.Windows.Forms.Button(); + this.responsablecb = new System.Windows.Forms.ComboBox(); this.flowLayoutPanel2.SuspendLayout(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox9)).BeginInit(); @@ -313,16 +313,18 @@ this.bntImprimir.UseVisualStyleBackColor = true; this.bntImprimir.Click += new System.EventHandler(this.bntImprimir_Click); // - // btnVender + // responsablecb // - this.btnVender.Location = new System.Drawing.Point(1311, 135); - this.btnVender.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); - this.btnVender.Name = "btnVender"; - this.btnVender.Size = new System.Drawing.Size(100, 28); - this.btnVender.TabIndex = 19; - this.btnVender.Text = "Vender"; - this.btnVender.UseVisualStyleBackColor = true; - this.btnVender.Click += new System.EventHandler(this.button7_Click); + this.responsablecb.FormattingEnabled = true; + this.responsablecb.Items.AddRange(new object[] { + "Fabian Herrera", + "Cristofer Perez ", + "Angel Alexander", + "Emilio Urenda"}); + this.responsablecb.Location = new System.Drawing.Point(1441, 76); + this.responsablecb.Name = "responsablecb"; + this.responsablecb.Size = new System.Drawing.Size(121, 24); + this.responsablecb.TabIndex = 18; // // vender // @@ -330,7 +332,7 @@ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScroll = true; this.ClientSize = new System.Drawing.Size(1783, 750); - this.Controls.Add(this.btnVender); + this.Controls.Add(this.responsablecb); this.Controls.Add(this.bntImprimir); this.Controls.Add(this.textBox2); this.Controls.Add(this.textBox1); @@ -381,6 +383,6 @@ private System.Windows.Forms.Label label1; private System.Windows.Forms.Label labeltotal; private System.Windows.Forms.Button bntImprimir; - private System.Windows.Forms.Button btnVender; + private System.Windows.Forms.ComboBox responsablecb; } } \ No newline at end of file diff --git a/vender.cs b/vender.cs index 8aab2d8..92abf50 100644 --- a/vender.cs +++ b/vender.cs @@ -448,6 +448,7 @@ namespace compabetov2 private void ImprimirContenido(PrintPageEventArgs e) { + string responsable = responsablecb.SelectedItem.ToString(); // Contenido que deseas imprimir string contenido = " Mini Súper\n" + " Compa BETO\n" + @@ -455,7 +456,9 @@ namespace compabetov2 " Lomas de la Laguna\n" + " 311 169 2829\n" + $" Fecha: {DateTime.Now.ToString("dd/MM/yyyy")}\n" + - $" Hora: {DateTime.Now.ToString("hh:mm:ss")}\n\n" + + $" Hora: {DateTime.Now.ToString("hh:mm:ss")}\n" + + $" Atendió:\n " + + $" {responsable}\n" + "Producto | Precio | Cantidad\n" + "------------------------------------\n";