Agregue Responsables de las ventas

This commit is contained in:
Michael Robles
2024-01-21 20:51:37 -07:00
parent f2352c1078
commit 2ac592a901
9 changed files with 18 additions and 13 deletions
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+14 -12
View File
@@ -50,7 +50,7 @@
this.textBox1 = new System.Windows.Forms.TextBox(); this.textBox1 = new System.Windows.Forms.TextBox();
this.textBox2 = new System.Windows.Forms.TextBox(); this.textBox2 = new System.Windows.Forms.TextBox();
this.bntImprimir = new System.Windows.Forms.Button(); 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.flowLayoutPanel2.SuspendLayout();
this.panel1.SuspendLayout(); this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox9)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox9)).BeginInit();
@@ -313,16 +313,18 @@
this.bntImprimir.UseVisualStyleBackColor = true; this.bntImprimir.UseVisualStyleBackColor = true;
this.bntImprimir.Click += new System.EventHandler(this.bntImprimir_Click); this.bntImprimir.Click += new System.EventHandler(this.bntImprimir_Click);
// //
// btnVender // responsablecb
// //
this.btnVender.Location = new System.Drawing.Point(1311, 135); this.responsablecb.FormattingEnabled = true;
this.btnVender.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.responsablecb.Items.AddRange(new object[] {
this.btnVender.Name = "btnVender"; "Fabian Herrera",
this.btnVender.Size = new System.Drawing.Size(100, 28); "Cristofer Perez ",
this.btnVender.TabIndex = 19; "Angel Alexander",
this.btnVender.Text = "Vender"; "Emilio Urenda"});
this.btnVender.UseVisualStyleBackColor = true; this.responsablecb.Location = new System.Drawing.Point(1441, 76);
this.btnVender.Click += new System.EventHandler(this.button7_Click); this.responsablecb.Name = "responsablecb";
this.responsablecb.Size = new System.Drawing.Size(121, 24);
this.responsablecb.TabIndex = 18;
// //
// vender // vender
// //
@@ -330,7 +332,7 @@
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.AutoScroll = true; this.AutoScroll = true;
this.ClientSize = new System.Drawing.Size(1783, 750); 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.bntImprimir);
this.Controls.Add(this.textBox2); this.Controls.Add(this.textBox2);
this.Controls.Add(this.textBox1); this.Controls.Add(this.textBox1);
@@ -381,6 +383,6 @@
private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label labeltotal; private System.Windows.Forms.Label labeltotal;
private System.Windows.Forms.Button bntImprimir; private System.Windows.Forms.Button bntImprimir;
private System.Windows.Forms.Button btnVender; private System.Windows.Forms.ComboBox responsablecb;
} }
} }
+4 -1
View File
@@ -448,6 +448,7 @@ namespace compabetov2
private void ImprimirContenido(PrintPageEventArgs e) private void ImprimirContenido(PrintPageEventArgs e)
{ {
string responsable = responsablecb.SelectedItem.ToString();
// Contenido que deseas imprimir // Contenido que deseas imprimir
string contenido = " Mini Súper\n" + string contenido = " Mini Súper\n" +
" Compa BETO\n" + " Compa BETO\n" +
@@ -455,7 +456,9 @@ namespace compabetov2
" Lomas de la Laguna\n" + " Lomas de la Laguna\n" +
" 311 169 2829\n" + " 311 169 2829\n" +
$" Fecha: {DateTime.Now.ToString("dd/MM/yyyy")}\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" + "Producto | Precio | Cantidad\n" +
"------------------------------------\n"; "------------------------------------\n";