Ing Sistema
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;namespace WAppsumadora
{
public partial class FrmNominaSemanal : Form
{
public FrmNominaSemanal()
{
InitializeComponent();
}
private voidbutton1_Click(object sender, EventArgs e)
{
int L = 0, Ma = 0, Mi = 0, J = 0, V = 0, S = 0, D = 0, Cant=0, HN=0, HE = 0, PHN=0,PHE=0,TotalG = 0;
L =int.Parse(textBox1.Text);
Ma = int.Parse(textBox2.Text);
Mi = int.Parse(textBox3.Text);
J = int.Parse(textBox4.Text);
V = int.Parse(textBox5.Text);
S =int.Parse(textBox6.Text);
D = int.Parse(textBox7.Text);
Cant = L + Ma + Mi + J + V + S + D;
if (Cant > 44)
{
HN = 44;HE = Cant - 44;
PHN = HN * 220;
PHE = HE * 300;
TotalG = PHN + PHE;
}
else
{
HN = Cant;HE = 0;
PHN = HN * 220;
PHE = HE * 300;
TotalG = PHN + PHE;
}
textBox8.Text =TotalG.ToString();
textBox9.Text = HN.ToString();
textBox10.Text = HE.ToString();
textBox11.Text = PHN.ToString();
textBox12.Text = PHE.ToString();
}private void button2_Click(object sender, EventArgs e)
{
Close();
}
private void button3_Click(object sender, EventArgs e)
{Form1 frmsumadora = new Form1();
frmsumadora.Show();
}
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using...
Regístrate para leer el documento completo.