Tienda codigo
-
Upload
e-chambi-lenis -
Category
Documents
-
view
213 -
download
0
description
Transcript of Tienda codigo
![Page 1: Tienda codigo](https://reader035.fdocuments.mx/reader035/viewer/2022080317/577c80481a28abe054a8035f/html5/thumbnails/1.jpg)
Public Class Form1
Dim ptel As Integer Dim pref As Integer Dim psec As Integer Dim pcoc As Integer Dim plav As Integer Dim plus As Integer Dim pcon As Integer Dim pcom As Integer Dim pcal As Integer Dim pfot As Integer Dim pimp As Integer Dim pfax As Integer Dim totpagsimp As Double Dim totpagcimp As Double Dim totpagcpro As Double Dim repe As String Dim res As Integer Dim por As Integer Dim desc As Integer Dim total As Integer
Private Sub CheckBox12_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox12.CheckedChanged PictureBox12.Image = Image.FromFile("C:\Users\Usuario\Desktop\181.png") End Sub Private Sub CheckBox11_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox11.CheckedChanged PictureBox11.Image = Image.FromFile("C:\Users\Usuario\Desktop\faxConfiguratorHeroImg.png") End Sub Private Sub CheckBox7_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox7.CheckedChanged PictureBox7.Image = Image.FromFile("C:\Users\Usuario\Desktop\contestador-automa´tico-answer-machine-spctelecom-1550.png") End Sub Private Sub CheckBox9_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox9.CheckedChanged PictureBox9.Image = Image.FromFile("C:\Users\Usuario\Desktop\impresora.png") End Sub Private Sub CheckBox8_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox8.CheckedChanged PictureBox8.Image = Image.FromFile("C:\Users\Usuario\Desktop\SCX-4521F_1.png") End Sub Private Sub CheckBox10_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox10.CheckedChanged PictureBox10.Image = Image.FromFile("C:\Users\Usuario\Desktop\calculator1337624084148.png") End Sub
Private Sub RadioButton1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton1.CheckedChanged
End Sub
Private Sub RadioButton2_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton2.CheckedChanged
![Page 2: Tienda codigo](https://reader035.fdocuments.mx/reader035/viewer/2022080317/577c80481a28abe054a8035f/html5/thumbnails/2.jpg)
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
TextBox17.Text = 100 TextBox18.Text = 120 TextBox19.Text = 130 TextBox20.Text = 150 TextBox21.Text = 180 TextBox22.Text = 80 TextBox28.Text = 210 TextBox25.Text = 20 TextBox27.Text = 350 TextBox26.Text = 600 TextBox23.Text = 2000 TextBox24.Text = 100
TextBox1.Text = 0 TextBox2.Text = 7.0# TextBox3.Text = 1 TextBox4.Text = 1 TextBox5.Text = 1 TextBox6.Text = 1 TextBox7.Text = 1 TextBox8.Text = 1 TextBox9.Text = 1 TextBox10.Text = 1 TextBox11.Text = 1 TextBox12.Text = 1 TextBox13.Text = 1 TextBox14.Text = 1 Label5.BackColor = Color.Transparent Label1.BackColor = Color.Transparent Label2.BackColor = Color.Transparent Label3.BackColor = Color.Transparent Label6.BackColor = Color.Transparent Label7.BackColor = Color.Transparent Label8.BackColor = Color.Transparent Label9.BackColor = Color.Transparent Label10.BackColor = Color.Transparent Label11.BackColor = Color.Transparent Label12.BackColor = Color.Transparent Label13.BackColor = Color.Transparent Label14.BackColor = Color.Transparent Label15.BackColor = Color.Transparent Label16.BackColor = Color.Transparent Label17.BackColor = Color.Transparent Label18.BackColor = Color.Transparent Label19.BackColor = Color.Transparent Label20.BackColor = Color.Transparent Label21.BackColor = Color.Transparent End Sub
Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged PictureBox1.Image = Image.FromFile("C:\Users\Usuario\Desktop\Toshiba-46V
![Page 3: Tienda codigo](https://reader035.fdocuments.mx/reader035/viewer/2022080317/577c80481a28abe054a8035f/html5/thumbnails/3.jpg)
X700U-Cinema-Series-46-class-1080p-120Hz-LED-TV.png") End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click totpagsimp = 0 If CheckBox1.Checked = True Then totpagsimp = totpagsimp + Val(TextBox3.Text) * Val(TextBox17.Text) End If If CheckBox4.Checked = True Then totpagsimp = totpagsimp + Val(TextBox6.Text) * Val(TextBox20.Text) End If If CheckBox2.Checked = True Then totpagsimp = totpagsimp + Val(TextBox4.Text) * Val(TextBox18.Text) End If If CheckBox5.Checked = True Then totpagsimp = totpagsimp + Val(TextBox7.Text) * Val(TextBox21.Text) End If If CheckBox6.Checked = True Then totpagsimp = totpagsimp + Val(TextBox8.Text) * Val(TextBox22.Text) End If If CheckBox3.Checked = True Then totpagsimp = totpagsimp + Val(TextBox5.Text) * Val(TextBox19.Text) End If
If CheckBox7.Checked = True Then totpagsimp = totpagsimp + Val(TextBox9.Text) * Val(TextBox28.Text) End If If CheckBox8.Checked = True Then totpagsimp = totpagsimp + Val(TextBox10.Text) * Val(TextBox27.Text) End If If CheckBox9.Checked = True Then totpagsimp = totpagsimp + Val(TextBox11.Text) * Val(TextBox26.Text) End If If CheckBox11.Checked = True Then totpagsimp = totpagsimp + Val(TextBox13.Text) * Val(TextBox24.Text) End If If CheckBox10.Checked = True Then totpagsimp = totpagsimp + Val(TextBox12.Text) * Val(TextBox25.Text) End If If CheckBox12.Checked = True Then totpagsimp = totpagsimp + Val(TextBox14.Text) * Val(TextBox23.Text) End If If RadioButton1.Checked = True Then Label4.Text = totpagsimp End If If RadioButton2.Checked = True Then Label4.Text = totpagsimp * Val(TextBox2.Text) End If End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click totpagcimp = 0 If CheckBox1.Checked = True Then totpagcimp = totpagcimp + Val(TextBox3.Text) * Val(TextBox17.Text) End If If CheckBox4.Checked = True Then totpagcimp = totpagcimp + Val(TextBox6.Text) * Val(TextBox20.Text) End If
![Page 4: Tienda codigo](https://reader035.fdocuments.mx/reader035/viewer/2022080317/577c80481a28abe054a8035f/html5/thumbnails/4.jpg)
If CheckBox2.Checked = True Then totpagcimp = totpagcimp + Val(TextBox4.Text) * Val(TextBox18.Text) End If If CheckBox5.Checked = True Then totpagcimp = totpagcimp + Val(TextBox7.Text) * Val(TextBox21.Text) End If If CheckBox6.Checked = True Then totpagcimp = totpagcimp + Val(TextBox8.Text) * Val(TextBox22.Text) End If If CheckBox3.Checked = True Then totpagcimp = totpagcimp + Val(TextBox5.Text) * Val(TextBox19.Text) End If
If CheckBox7.Checked = True Then totpagcimp = totpagcimp + Val(TextBox9.Text) * Val(TextBox28.Text) End If If CheckBox8.Checked = True Then totpagcimp = totpagcimp + Val(TextBox10.Text) * Val(TextBox27.Text) End If If CheckBox9.Checked = True Then totpagcimp = totpagcimp + Val(TextBox11.Text) * Val(TextBox26.Text) End If If CheckBox11.Checked = True Then totpagcimp = totpagcimp + Val(TextBox13.Text) * Val(TextBox24.Text) End If If CheckBox10.Checked = True Then totpagcimp = totpagcimp + Val(TextBox12.Text) * Val(TextBox25.Text) End If If CheckBox12.Checked = True Then totpagcimp = totpagcimp + Val(TextBox14.Text) * Val(TextBox23.Text) End If If RadioButton1.Checked = True Then Label4.Text = totpagcimp + totpagcimp * Val(TextBox1.Text / 100) End If If RadioButton2.Checked = True Then Label4.Text = (totpagcimp + totpagcimp * Val(TextBox1.Text / 100)) * Val(TextBox2.Text) End If
End Sub
Private Sub PictureBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.Click If CheckBox1.Checked = True Then
End If
End Sub
Private Sub CheckBox2_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox2.CheckedChanged PictureBox2.Image = Image.FromFile("C:\Users\Usuario\Desktop\W020120809511694285693.png") End Sub
Private Sub CheckBox3_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox3.CheckedChanged PictureBox3.Image = Image.FromFile("C:\Users\Usuario\Desktop\fhi-heat-platform-plus-vortex-pro-ionic-tourmaline-ceramic-hair-blow-dryer-14.gif.png") End Sub
![Page 5: Tienda codigo](https://reader035.fdocuments.mx/reader035/viewer/2022080317/577c80481a28abe054a8035f/html5/thumbnails/5.jpg)
Private Sub CheckBox4_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox4.CheckedChanged PictureBox4.Image = Image.FromFile("C:\Users\Usuario\Desktop\c-_users_rominas_desktop_cocina-5h.png") End Sub
Private Sub CheckBox5_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox5.CheckedChanged PictureBox5.Image = Image.FromFile("C:\Users\Usuario\Desktop\zwh7125x.png") End Sub
Private Sub CheckBox6_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox6.CheckedChanged PictureBox6.Image = Image.FromFile("C:\Users\Usuario\Desktop\lustradorasc1500gde.png") End Sub
Private Sub PictureBox8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox8.Click PictureBox6.Image = Image.FromFile("") End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick Static c As Integer Label5.Left -= 8 If Label5.Left <= -Width Then Label5.Left = Width End If
c = c + 1 If c = 1 Then Label5.ForeColor = Color.Red ElseIf c = 2 Then Label5.ForeColor = Color.Yellow ElseIf c = 3 Then Label5.ForeColor = Color.Blue Else : c = 4 c = 0 End If End Sub
Private Sub TextBox11_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox11.TextChanged
End Sub
Private Sub TextBox2_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox2.TextChanged
End Sub
Private Sub Label5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label5.Click
End Sub
Private Sub PictureBox2_Click(ByVal sender As System.Object, ByVal e As Syst
![Page 6: Tienda codigo](https://reader035.fdocuments.mx/reader035/viewer/2022080317/577c80481a28abe054a8035f/html5/thumbnails/6.jpg)
em.EventArgs) Handles PictureBox2.Click
End Sub
Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.Click
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Label4.Text = " " totpagcpro = 0 If CheckBox1.Checked = True Then totpagcpro = totpagcpro + Val(TextBox3.Text) * Val(TextBox17.Text) End If If CheckBox4.Checked = True Then totpagcpro = totpagcpro + Val(TextBox6.Text) * Val(TextBox20.Text) End If If CheckBox2.Checked = True Then totpagcpro = totpagcpro + Val(TextBox4.Text) * Val(TextBox18.Text) End If If CheckBox5.Checked = True Then totpagcpro = totpagcpro + Val(TextBox7.Text) * Val(TextBox21.Text) End If If CheckBox6.Checked = True Then totpagcpro = totpagcpro + Val(TextBox8.Text) * Val(TextBox22.Text) End If If CheckBox3.Checked = True Then totpagcpro = totpagcpro + Val(TextBox5.Text) * Val(TextBox19.Text) End If
If CheckBox7.Checked = True Then totpagcpro = totpagcpro + Val(TextBox9.Text) * Val(TextBox28.Text) End If If CheckBox8.Checked = True Then totpagcpro = totpagcpro + Val(TextBox10.Text) * Val(TextBox27.Text) End If If CheckBox9.Checked = True Then totpagcpro = totpagcpro + Val(TextBox11.Text) * Val(TextBox26.Text) End If If CheckBox11.Checked = True Then totpagcpro = totpagcpro + Val(TextBox13.Text) * Val(TextBox24.Text) End If If CheckBox10.Checked = True Then totpagcpro = totpagcpro + Val(TextBox12.Text) * Val(TextBox25.Text) End If If CheckBox12.Checked = True Then totpagcpro = totpagcpro + Val(TextBox14.Text) * Val(TextBox23.Text) End If If RadioButton1.Checked = True Then totpagcpro = totpagcpro * Val(TextBox2.Text) 'Label4.Text = totpagcpro' res = totpagcpro Mod 1000 totpagcpro = totpagcpro - res por = (totpagcpro / 1000) * 20 If por >= 2 Then
total = totpagcpro - por End If
![Page 7: Tienda codigo](https://reader035.fdocuments.mx/reader035/viewer/2022080317/577c80481a28abe054a8035f/html5/thumbnails/7.jpg)
Label4.Text = (total + res) / 7
End If If RadioButton2.Checked = True Then totpagcpro = totpagcpro * Val(TextBox2.Text) 'Label4.Text = totpagcpro' res = totpagcpro Mod 1000 totpagcpro = totpagcpro - res por = (totpagcpro / 1000) * 20 If por >= 2 Then
total = totpagcpro - por End If Label4.Text = total + res End If End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click If TextBox15.Text = "OPERADOR" And TextBox16.Text = "CHAMBI" Then TextBox17.Visible = True TextBox18.Visible = True TextBox19.Visible = True TextBox20.Visible = True TextBox21.Visible = True TextBox22.Visible = True TextBox23.Visible = True TextBox24.Visible = True TextBox25.Visible = True TextBox26.Visible = True TextBox27.Visible = True TextBox28.Visible = True Label9.Visible = True Label10.Visible = True Label11.Visible = True Label12.Visible = True Label13.Visible = True Label14.Visible = True Label15.Visible = True Label16.Visible = True Label17.Visible = True Label18.Visible = True Label19.Visible = True Label20.Visible = True Label21.Visible = True Label8.Visible = False
Else Label8.Visible = True
End If End Sub
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
End Sub
Private Sub TextBox1_TextChanged_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
![Page 8: Tienda codigo](https://reader035.fdocuments.mx/reader035/viewer/2022080317/577c80481a28abe054a8035f/html5/thumbnails/8.jpg)
End Sub
Private Sub Label16_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label16.Click
End Sub
Private Sub TextBox15_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox15.TextChanged
End Sub
Private Sub TextBox17_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox17.TextChanged
End Sub
Private Sub Label8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label8.Click
End Sub
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click End
End SubEnd Class