You are on page 1of 8

Public Class Form1

Dim
Dim
Dim
Dim
Dim
Dim
Dim
Dim
Dim
Dim
Dim
Dim
Dim
Dim
Dim
Dim
Dim
Dim
Dim
Dim

ptel As Integer
pref As Integer
psec As Integer
pcoc As Integer
plav As Integer
plus As Integer
pcon As Integer
pcom As Integer
pcal As Integer
pfot As Integer
pimp As Integer
pfax As Integer
totpagsimp As Double
totpagcimp As Double
totpagcpro As Double
repe As String
res As Integer
por As Integer
desc As Integer
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\faxConfigu
ratorHeroImg.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
-automatico-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.p
ng")
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\calculator
1337624084148.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

End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.Even
tArgs) Handles MyBase.Load
TextBox17.Text
TextBox18.Text
TextBox19.Text
TextBox20.Text
TextBox21.Text
TextBox22.Text
TextBox28.Text
TextBox25.Text
TextBox27.Text
TextBox26.Text
TextBox23.Text
TextBox24.Text

=
=
=
=
=
=
=
=
=
=
=
=

100
120
130
150
180
80
210
20
350
600
2000
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

X700U-Cinema-Series-46-class-1080p-120Hz-LED-TV.png")
End Sub
Private Sub Button1_Click(ByVal
ventArgs) Handles Button1.Click
totpagsimp = 0
If CheckBox1.Checked = True
totpagsimp = totpagsimp
End If
If CheckBox4.Checked = True
totpagsimp = totpagsimp
End If
If CheckBox2.Checked = True
totpagsimp = totpagsimp
End If
If CheckBox5.Checked = True
totpagsimp = totpagsimp
End If
If CheckBox6.Checked = True
totpagsimp = totpagsimp
End If
If CheckBox3.Checked = True
totpagsimp = totpagsimp
End If

sender As System.Object, ByVal e As System.E


Then
+ Val(TextBox3.Text) * Val(TextBox17.Text)
Then
+ Val(TextBox6.Text) * Val(TextBox20.Text)
Then
+ Val(TextBox4.Text) * Val(TextBox18.Text)
Then
+ Val(TextBox7.Text) * Val(TextBox21.Text)
Then
+ Val(TextBox8.Text) * Val(TextBox22.Text)
Then
+ Val(TextBox5.Text) * Val(TextBox19.Text)

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
ventArgs) Handles Button2.Click
totpagcimp = 0
If CheckBox1.Checked = True
totpagcimp = totpagcimp
End If
If CheckBox4.Checked = True
totpagcimp = totpagcimp
End If

sender As System.Object, ByVal e As System.E


Then
+ Val(TextBox3.Text) * Val(TextBox17.Text)
Then
+ Val(TextBox6.Text) * Val(TextBox20.Text)

If CheckBox2.Checked = True
totpagcimp = totpagcimp
End If
If CheckBox5.Checked = True
totpagcimp = totpagcimp
End If
If CheckBox6.Checked = True
totpagcimp = totpagcimp
End If
If CheckBox3.Checked = True
totpagcimp = totpagcimp
End If

Then
+ Val(TextBox4.Text) * Val(TextBox18.Text)
Then
+ Val(TextBox7.Text) * Val(TextBox21.Text)
Then
+ Val(TextBox8.Text) * Val(TextBox22.Text)
Then
+ Val(TextBox5.Text) * Val(TextBox19.Text)

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 Syst
em.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\W0201208095
11694285693.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-pl
atform-plus-vortex-pro-ionic-tourmaline-ceramic-hair-blow-dryer-14.gif.png")
End Sub

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_ro
minas_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.pn
g")
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\lustradoras
c1500gde.png")
End Sub
Private Sub PictureBox8_Click(ByVal sender As System.Object, ByVal e As Syst
em.EventArgs) Handles PictureBox8.Click
PictureBox6.Image = Image.FromFile("")
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.Eve
ntArgs) 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 S
ystem.EventArgs) Handles TextBox2.TextChanged
End Sub
Private Sub Label5_Click(ByVal sender As System.Object, ByVal e As System.Ev
entArgs) Handles Label5.Click
End Sub
Private Sub PictureBox2_Click(ByVal sender As System.Object, ByVal e As Syst

em.EventArgs) Handles PictureBox2.Click


End Sub
Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.Ev
entArgs) Handles Label1.Click
End Sub
Private Sub Button3_Click(ByVal
ventArgs) Handles Button3.Click
Label4.Text = " "
totpagcpro = 0
If CheckBox1.Checked = True
totpagcpro = totpagcpro
End If
If CheckBox4.Checked = True
totpagcpro = totpagcpro
End If
If CheckBox2.Checked = True
totpagcpro = totpagcpro
End If
If CheckBox5.Checked = True
totpagcpro = totpagcpro
End If
If CheckBox6.Checked = True
totpagcpro = totpagcpro
End If
If CheckBox3.Checked = True
totpagcpro = totpagcpro
End If

sender As System.Object, ByVal e As System.E

Then
+ Val(TextBox3.Text) * Val(TextBox17.Text)
Then
+ Val(TextBox6.Text) * Val(TextBox20.Text)
Then
+ Val(TextBox4.Text) * Val(TextBox18.Text)
Then
+ Val(TextBox7.Text) * Val(TextBox21.Text)
Then
+ Val(TextBox8.Text) * Val(TextBox22.Text)
Then
+ Val(TextBox5.Text) * Val(TextBox19.Text)

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

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.E
ventArgs) 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 S
ystem.EventArgs)
End Sub
Private Sub TextBox1_TextChanged_1(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles TextBox1.TextChanged

End Sub
Private Sub Label16_Click(ByVal sender As System.Object, ByVal e As System.E
ventArgs) 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.Ev
entArgs) Handles Label8.Click
End Sub
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.E
ventArgs) Handles Button5.Click
End
End Sub
End Class

You might also like